@saasquatch/mint-components 1.3.2-8 → 1.3.2-9

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 (240) hide show
  1. package/dist/cjs/{ShadowViewAddon-75c18b96.js → ShadowViewAddon-a85b8c8d.js} +1 -1
  2. package/dist/cjs/{global-041b5338.js → global-ff7fbc86.js} +107 -56
  3. package/dist/cjs/{index.module-6a7bda18.js → index.module-7dd4b981.js} +2 -1
  4. package/dist/cjs/loader.cjs.js +3 -4
  5. package/dist/cjs/mint-components.cjs.js +3 -4
  6. package/dist/cjs/{re-render-7cdb2d81.js → re-render-6111d4bd.js} +1 -1
  7. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
  9. package/dist/cjs/{sqm-divided-layout_28.cjs.entry.js → sqm-divided-layout_30.cjs.entry.js} +745 -83
  10. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  11. package/dist/cjs/{index-19309631.js → sqm-leaderboard-rank-view-a99b4cd9.js} +10 -3
  12. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -9
  13. package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
  15. package/dist/cjs/{sqm-navigation-sidebar-item-view-e99b4a10.js → sqm-navigation-sidebar-item-view-6c7f78e6.js} +1 -1
  16. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-portal-email-verification-view-5e955797.js → sqm-portal-email-verification-view-2cebd06b.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -4
  20. package/dist/cjs/{sqm-portal-footer-view-9089feb7.js → sqm-portal-footer-view-de1763c4.js} +1 -1
  21. package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -4
  22. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
  23. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  24. package/dist/cjs/{sqm-portal-profile-view-a23ea292.js → sqm-portal-profile-view-680ee551.js} +1 -1
  25. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -4
  26. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  27. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  28. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  29. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
  31. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
  32. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
  33. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
  34. package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
  35. package/dist/cjs/{useDemoBigStat-051a69f7.js → useDemoBigStat-2786227e.js} +1 -1
  36. package/dist/collection/collection-manifest.json +2 -1
  37. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +21 -0
  38. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +218 -0
  39. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +57 -42
  40. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +2 -2
  41. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +1 -1
  42. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
  43. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
  44. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +11 -12
  45. package/dist/collection/components/{sqm-rewards-table → sqm-router}/Router.stories.js +0 -0
  46. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  47. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +5 -1
  48. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +1 -1
  49. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +2 -2
  50. package/dist/esm/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-a3f510db.js} +1 -1
  51. package/dist/esm/{global-5ecbf81a.js → global-923aa737.js} +54 -3
  52. package/dist/esm/{index.module-f80561db.js → index.module-90d2c3ad.js} +2 -2
  53. package/dist/esm/loader.js +3 -4
  54. package/dist/esm/mint-components.js +3 -4
  55. package/dist/esm/{re-render-9ab5fe0f.js → re-render-e06f2f7f.js} +1 -1
  56. package/dist/esm/sqm-asset-card.entry.js +1 -1
  57. package/dist/esm/sqm-big-stat.entry.js +2 -2
  58. package/dist/esm/{sqm-divided-layout_28.entry.js → sqm-divided-layout_30.entry.js} +739 -79
  59. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  60. package/dist/esm/{index-2f5dd0a1.js → sqm-leaderboard-rank-view-747ffda8.js} +9 -3
  61. package/dist/esm/sqm-leaderboard-rank.entry.js +3 -5
  62. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  63. package/dist/esm/sqm-name-fields.entry.js +1 -1
  64. package/dist/esm/{sqm-navigation-sidebar-item-view-8a3f374b.js → sqm-navigation-sidebar-item-view-f2304ad9.js} +1 -1
  65. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  66. package/dist/esm/sqm-popup-container.entry.js +1 -1
  67. package/dist/esm/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-a3ebc4a2.js} +1 -1
  68. package/dist/esm/sqm-portal-email-verification.entry.js +3 -4
  69. package/dist/esm/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-7b8a02b1.js} +1 -1
  70. package/dist/esm/sqm-portal-footer.entry.js +3 -4
  71. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  72. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  73. package/dist/esm/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-4ce8d89d.js} +1 -1
  74. package/dist/esm/sqm-portal-profile.entry.js +3 -4
  75. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  76. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  77. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  78. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  79. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  80. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  81. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  82. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  83. package/dist/esm/sqm-share-code.entry.js +1 -1
  84. package/dist/esm/{useDemoBigStat-95889548.js → useDemoBigStat-c3b955b7.js} +1 -1
  85. package/dist/esm-es5/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-a3f510db.js} +1 -1
  86. package/dist/esm-es5/{global-5ecbf81a.js → global-923aa737.js} +16 -2
  87. package/dist/esm-es5/{index.module-f80561db.js → index.module-90d2c3ad.js} +1 -1
  88. package/dist/esm-es5/loader.js +1 -1
  89. package/dist/esm-es5/mint-components.js +1 -1
  90. package/dist/esm-es5/{re-render-9ab5fe0f.js → re-render-e06f2f7f.js} +1 -1
  91. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  92. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  93. package/dist/esm-es5/sqm-divided-layout_30.entry.js +1 -0
  94. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  95. package/dist/esm-es5/sqm-leaderboard-rank-view-747ffda8.js +1 -0
  96. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  97. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  98. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  99. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-8a3f374b.js → sqm-navigation-sidebar-item-view-f2304ad9.js} +1 -1
  100. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  101. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  102. package/dist/esm-es5/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-a3ebc4a2.js} +1 -1
  103. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  104. package/dist/esm-es5/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-7b8a02b1.js} +1 -1
  105. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  106. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  107. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  108. package/dist/esm-es5/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-4ce8d89d.js} +1 -1
  109. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  110. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  111. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  112. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  113. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  114. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  115. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  116. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  117. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  118. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  119. package/dist/esm-es5/{useDemoBigStat-95889548.js → useDemoBigStat-c3b955b7.js} +1 -1
  120. package/dist/mint-components/mint-components.esm.js +1 -1
  121. package/dist/mint-components/mint-components.js +1 -1
  122. package/dist/mint-components/p-0382a7b0.entry.js +1 -0
  123. package/dist/mint-components/p-08e75345.system.entry.js +1 -0
  124. package/dist/mint-components/p-0b4af41a.system.entry.js +1 -0
  125. package/dist/mint-components/p-0c67ccfd.system.entry.js +1 -0
  126. package/dist/mint-components/{p-337b49ee.entry.js → p-160bd62f.entry.js} +1 -1
  127. package/dist/mint-components/{p-4ba2faf2.system.entry.js → p-1a09e4e1.system.entry.js} +1 -1
  128. package/dist/mint-components/{p-3052c913.system.js → p-1bfed119.system.js} +1 -1
  129. package/dist/mint-components/p-1c8b0290.entry.js +1 -0
  130. package/dist/mint-components/{p-7c13e32e.system.entry.js → p-1dcdca58.system.entry.js} +1 -1
  131. package/dist/mint-components/p-20d41ab1.entry.js +1 -0
  132. package/dist/mint-components/{p-e9ab90a1.entry.js → p-221a4097.entry.js} +1 -1
  133. package/dist/mint-components/{p-a0045707.system.entry.js → p-223b42bd.system.entry.js} +1 -1
  134. package/dist/mint-components/{p-cc3510c8.js → p-224504ad.js} +1 -1
  135. package/dist/mint-components/{p-2a025d2a.system.entry.js → p-24b3c6f0.system.entry.js} +1 -1
  136. package/dist/mint-components/{p-1b414d8f.system.entry.js → p-24c9a599.system.entry.js} +1 -1
  137. package/dist/mint-components/{p-a7f0b2f6.entry.js → p-29fab29b.entry.js} +1 -1
  138. package/dist/mint-components/p-2e43ba45.entry.js +13 -0
  139. package/dist/mint-components/{p-e475a5ff.system.entry.js → p-304e6c82.system.entry.js} +1 -1
  140. package/dist/mint-components/{p-5f28af29.entry.js → p-3397167c.entry.js} +1 -1
  141. package/dist/mint-components/{p-04516274.system.entry.js → p-396bf448.system.entry.js} +1 -1
  142. package/dist/mint-components/p-3b97aed8.system.js +1 -0
  143. package/dist/mint-components/{p-3b0acfcd.system.js → p-3ce2fb83.system.js} +1 -1
  144. package/dist/mint-components/{p-82d7a2ba.entry.js → p-3d856985.entry.js} +1 -1
  145. package/dist/mint-components/{p-af06ea5b.system.entry.js → p-4052b948.system.entry.js} +1 -1
  146. package/dist/mint-components/{p-57a53dbd.system.entry.js → p-412a9226.system.entry.js} +1 -1
  147. package/dist/mint-components/{p-1fb688a9.system.js → p-43fc3f99.system.js} +1 -1
  148. package/dist/mint-components/{p-844f9bad.entry.js → p-45c752a0.entry.js} +1 -1
  149. package/dist/mint-components/p-5480e4ee.entry.js +1 -0
  150. package/dist/mint-components/{p-db723323.system.entry.js → p-55508395.system.entry.js} +1 -1
  151. package/dist/mint-components/{p-844fd903.js → p-563253e8.js} +1 -1
  152. package/dist/mint-components/{p-ceeaf074.system.js → p-593d2266.system.js} +35 -21
  153. package/dist/mint-components/{p-1ac9c24b.system.entry.js → p-69bcf4fa.system.entry.js} +1 -1
  154. package/dist/mint-components/p-6e245fa3.system.entry.js +1 -0
  155. package/dist/mint-components/{p-5dfc6804.system.entry.js → p-73148868.system.entry.js} +1 -1
  156. package/dist/mint-components/{p-a4a00461.entry.js → p-772f52da.entry.js} +1 -1
  157. package/dist/mint-components/{p-6cdc70f4.entry.js → p-8435a22d.entry.js} +1 -1
  158. package/dist/mint-components/p-883a32e7.entry.js +1 -0
  159. package/dist/mint-components/p-8a7ac67b.entry.js +335 -0
  160. package/dist/mint-components/{p-1813b9b9.system.js → p-8ee4c2d2.system.js} +1 -1
  161. package/dist/mint-components/{p-0faf1857.system.js → p-9c554ca0.system.js} +1 -1
  162. package/dist/mint-components/{p-d3787c3a.entry.js → p-9d6dbb2d.entry.js} +1 -1
  163. package/dist/mint-components/p-9e4fee30.system.entry.js +1 -0
  164. package/dist/mint-components/{p-2bce988c.js → p-a2c3cff3.js} +1 -1
  165. package/dist/mint-components/{p-d9cc041f.entry.js → p-a4c2c7ed.entry.js} +1 -1
  166. package/dist/mint-components/{p-05cca77b.js → p-ad0f47dc.js} +1 -1
  167. package/dist/mint-components/{p-aba21f90.entry.js → p-ade44a4e.entry.js} +1 -1
  168. package/dist/mint-components/{p-8e37c08d.js → p-b7ea778a.js} +1 -1
  169. package/dist/mint-components/p-b7fc2c67.entry.js +1 -0
  170. package/dist/mint-components/{p-2f171597.entry.js → p-b8bd2607.entry.js} +1 -1
  171. package/dist/mint-components/p-bbf5ba89.system.entry.js +1 -0
  172. package/dist/mint-components/{p-0688c9c2.system.entry.js → p-be2738b0.system.entry.js} +1 -1
  173. package/dist/mint-components/{p-82ab88fe.system.js → p-c6114bfe.system.js} +1 -1
  174. package/dist/mint-components/{p-16535642.system.entry.js → p-c79c608d.system.entry.js} +1 -1
  175. package/dist/mint-components/p-c9e3b7bc.js +1 -0
  176. package/dist/mint-components/{p-505f5c59.system.entry.js → p-cca9026f.system.entry.js} +1 -1
  177. package/dist/mint-components/{p-71d942af.entry.js → p-cd410a05.entry.js} +2 -2
  178. package/dist/mint-components/{p-a0cfd3d9.system.js → p-cdeae699.system.js} +1 -1
  179. package/dist/mint-components/{p-3fd33dee.system.entry.js → p-d174d0bc.system.entry.js} +1 -1
  180. package/dist/mint-components/{p-00190438.js → p-d35b0366.js} +1 -1
  181. package/dist/mint-components/p-d60085ae.system.entry.js +1 -0
  182. package/dist/mint-components/{p-f1e1086e.js → p-dc75a335.js} +17 -2
  183. package/dist/mint-components/{p-434ee9c1.js → p-e817ca6b.js} +1 -1
  184. package/dist/mint-components/{p-16da5146.entry.js → p-f17050de.entry.js} +1 -1
  185. package/dist/mint-components/{p-b6e6be5e.js → p-f90486ca.js} +1 -1
  186. package/dist/mint-components/p-fce1dbf6.entry.js +1 -0
  187. package/dist/mint-components/p-ff616282.system.js +1 -0
  188. package/dist/mint-components/p-ffbe112d.system.js +1 -0
  189. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +6 -0
  190. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +81 -0
  191. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +1 -3
  192. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
  193. package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
  194. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +33 -0
  195. package/dist/types/components/{sqm-rewards-table → sqm-router}/Router.stories.d.ts +0 -0
  196. package/dist/types/components.d.ts +32 -0
  197. package/grapesjs/grapesjs.js +1 -1
  198. package/package.json +1 -1
  199. package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +0 -10
  200. package/dist/cjs/sqm-rewards-table.cjs.entry.js +0 -332
  201. package/dist/cjs/tslib.es6-0e81fab1.js +0 -56
  202. package/dist/cjs/useChildElements-428ca5b8.js +0 -21
  203. package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +0 -8
  204. package/dist/esm/sqm-rewards-table.entry.js +0 -328
  205. package/dist/esm/tslib.es6-7ac9d7e4.js +0 -53
  206. package/dist/esm/useChildElements-506f00d0.js +0 -19
  207. package/dist/esm-es5/index-2f5dd0a1.js +0 -1
  208. package/dist/esm-es5/sqm-divided-layout_28.entry.js +0 -1
  209. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +0 -1
  210. package/dist/esm-es5/sqm-rewards-table.entry.js +0 -1
  211. package/dist/esm-es5/tslib.es6-7ac9d7e4.js +0 -15
  212. package/dist/esm-es5/useChildElements-506f00d0.js +0 -1
  213. package/dist/mint-components/p-11c75956.entry.js +0 -1
  214. package/dist/mint-components/p-189219ee.system.js +0 -1
  215. package/dist/mint-components/p-1d445125.entry.js +0 -1
  216. package/dist/mint-components/p-21dfdeb8.entry.js +0 -1
  217. package/dist/mint-components/p-23a0bdae.entry.js +0 -1
  218. package/dist/mint-components/p-55e02769.entry.js +0 -13
  219. package/dist/mint-components/p-58d9b2f0.js +0 -15
  220. package/dist/mint-components/p-6d545e13.entry.js +0 -1
  221. package/dist/mint-components/p-70837c1c.entry.js +0 -49
  222. package/dist/mint-components/p-7c138c84.entry.js +0 -1
  223. package/dist/mint-components/p-7c261ea0.system.entry.js +0 -1
  224. package/dist/mint-components/p-8034f81c.system.entry.js +0 -1
  225. package/dist/mint-components/p-8c16f04e.js +0 -1
  226. package/dist/mint-components/p-91d39961.system.js +0 -1
  227. package/dist/mint-components/p-a7f26a72.entry.js +0 -288
  228. package/dist/mint-components/p-b2633117.system.entry.js +0 -1
  229. package/dist/mint-components/p-b3af1c6f.js +0 -1
  230. package/dist/mint-components/p-bf04a8e1.system.entry.js +0 -1
  231. package/dist/mint-components/p-bf055b6c.system.js +0 -1
  232. package/dist/mint-components/p-c3866bfa.system.entry.js +0 -1
  233. package/dist/mint-components/p-dd6a666e.system.js +0 -15
  234. package/dist/mint-components/p-dfc3cf82.js +0 -1
  235. package/dist/mint-components/p-e0290737.system.entry.js +0 -1
  236. package/dist/mint-components/p-e19a57a4.system.entry.js +0 -1
  237. package/dist/mint-components/p-e2ebe90c.entry.js +0 -1
  238. package/dist/mint-components/p-ecbabf6e.system.js +0 -1
  239. package/dist/mint-components/p-f41ab9e1.system.js +0 -1
  240. package/dist/mint-components/p-fcaa5886.system.entry.js +0 -1
@@ -1,10 +1,9 @@
1
1
  import { h, r as registerInstance, c as Host, d as getAssetPath } from './index-17b4da69.js';
2
2
  import { m as h$1, j as useState, e as useEffect, f as useRef, n as d$2, y as y$1, b as browser, u as useReducer, c as createCommonjsModule, a as commonjsGlobal, k as useMemo } from './extends-3a3f9fe2.js';
3
- import { i as intl, a as insertCSS } from './global-5ecbf81a.js';
3
+ import { i as intl, a as insertCSS } from './global-923aa737.js';
4
4
  import { u as useCallback } from './use-callback-b38a1523.js';
5
- import { d as dist, T as T$1, e as en, b as be, j as j$1, Z as Ze, r as rn, D as De, q as qe, P as P$1, E as Ee, M as M$1, a as sn, c as an, x as x$1, f as D$1, L as L$1, N as Ne } from './index.module-f80561db.js';
5
+ import { d as dist, T as T$1, e as en, b as be, j as j$1, Z as Ze, r as rn, D as De, q as qe, P as P$1, E as Ee, M as M$1, a as sn, c as an, x as x$1, f as D$1, L as L$1, N as Ne, A as A$1 } from './index.module-90d2c3ad.js';
6
6
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
7
- import './tslib.es6-7ac9d7e4.js';
8
7
  import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
9
8
  import { g as getProps, a as getMissingProps } from './utils-454405f5.js';
10
9
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -12,23 +11,21 @@ import { E as ErrorStyles, H as HostBlock, A as AuthWrapper, a as AuthColumn, b
12
11
  import { P as PortalContainerView } from './sqm-portal-container-view-73757ca5.js';
13
12
  import { P as PortalSectionView } from './sqm-portal-section-view-f0876545.js';
14
13
  import { T as TextSpanView } from './sqm-text-span-view-1781df94.js';
15
- import { g as gql } from './index-2f5dd0a1.js';
16
- import { u as useRerenderListener } from './re-render-9ab5fe0f.js';
17
- import { u as useChildElements } from './useChildElements-506f00d0.js';
18
- import { p as pathToRegexp, B as BigStatView, u as useBigStat, a as useDemoBigStat } from './useDemoBigStat-95889548.js';
14
+ import { g as gql, L as LeaderboardRankView } from './sqm-leaderboard-rank-view-747ffda8.js';
15
+ import { u as useRerenderListener, a as useRequestRerender } from './re-render-e06f2f7f.js';
16
+ import { p as pathToRegexp, B as BigStatView, u as useBigStat, a as useDemoBigStat } from './useDemoBigStat-c3b955b7.js';
19
17
  import { S as ShareLinkView } from './sqm-share-link-view-9282b8e8.js';
20
- import { L as LeaderboardView, u as useLeaderboard, S as ShadowViewAddon } from './ShadowViewAddon-fff5d35d.js';
21
- import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-da91f5f3.js';
18
+ import { L as LeaderboardView, u as useLeaderboard, S as ShadowViewAddon } from './ShadowViewAddon-a3f510db.js';
22
19
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-2242502c.js';
23
- import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-8a3f374b.js';
20
+ import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-f2304ad9.js';
24
21
  import { S as StatContainerView } from './sqm-stat-container-view-4133feb6.js';
25
- import { P as PortalProfileView } from './sqm-portal-profile-view-824c8242.js';
22
+ import { P as PortalProfileView } from './sqm-portal-profile-view-4ce8d89d.js';
26
23
  import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-e3a6a716.js';
27
- import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-90781be2.js';
24
+ import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-a3ebc4a2.js';
28
25
  import { P as PortalResetPasswordView$1 } from './sqm-portal-reset-password-view-a4e50da2.js';
29
26
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-6f18bac2.js';
30
27
  import { A as AssetCardView } from './sqm-asset-card-view-6f360937.js';
31
- import { P as PoweredByImg$1, a as PortalFooterView } from './sqm-portal-footer-view-c317518e.js';
28
+ import { P as PoweredByImg$1, a as PortalFooterView } from './sqm-portal-footer-view-7b8a02b1.js';
32
29
  import { H as HeroView } from './sqm-hero-view-bfd8abd1.js';
33
30
  import { N as NameFieldsView } from './sqm-name-fields-view-4162fb7b.js';
34
31
 
@@ -5875,6 +5872,21 @@ function ReferralTableView(props) {
5875
5872
  h("sl-button", { size: "small", loading: states.loading, disabled: !states.hasNext, onClick: callbacks.nextPage, exportparts: "base: defaultbutton-base" }, data.textOverrides.moreLabel))));
5876
5873
  }
5877
5874
 
5875
+ function useChildElements() {
5876
+ const host = P$1();
5877
+ const initialState = host.children.length ? Array.from(host.children) : [];
5878
+ const [childElements, setChildElements] = useState(initialState);
5879
+ useEffect(() => {
5880
+ const observer = new MutationObserver(() => {
5881
+ const children = Array.from(host.children);
5882
+ setChildElements([...children]);
5883
+ });
5884
+ observer.observe(host, { childList: true });
5885
+ return () => observer.disconnect();
5886
+ }, [host]);
5887
+ return childElements;
5888
+ }
5889
+
5878
5890
  const GET_REFERRER_DATA = gql `
5879
5891
  query getReferrals($programId: ID, $rewardFilter: RewardFilterInput) {
5880
5892
  viewer {
@@ -14794,7 +14806,7 @@ function useRewardExchangeList(props) {
14794
14806
  }), {
14795
14807
  selectedItem: undefined,
14796
14808
  selectedStep: undefined,
14797
- redeemStage: "",
14809
+ redeemStage: "chooseReward",
14798
14810
  amount: 0,
14799
14811
  exchangeError: false,
14800
14812
  });
@@ -15077,6 +15089,24 @@ function RewardExchangeView(props) {
15077
15089
  textAlign: "center",
15078
15090
  cursor: "pointer",
15079
15091
  },
15092
+ ProgressBar: {
15093
+ fontSize: "80%",
15094
+ marginBottom: "20px",
15095
+ "& .text-area": {
15096
+ marginTop: "5px",
15097
+ display: "flex",
15098
+ justifyContent: "center",
15099
+ textAlign: "center",
15100
+ whiteSpace: "nowrap",
15101
+ marginBottom: "6px",
15102
+ "& .text": {
15103
+ flex: "1 1 0",
15104
+ },
15105
+ "& .text.subdued": {
15106
+ color: "#BDBDBD",
15107
+ },
15108
+ },
15109
+ },
15080
15110
  };
15081
15111
  // JSS config
15082
15112
  jss.setup(create());
@@ -15109,16 +15139,14 @@ function RewardExchangeView(props) {
15109
15139
  }
15110
15140
  function chooseReward() {
15111
15141
  var _a;
15112
- const nextStage = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
15113
- ? "confirmation"
15114
- : "chooseAmount";
15115
- console.log({ nextStage, ruleType: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType });
15142
+ const nextStage = "chooseAmount";
15143
+ // console.log({ nextStage, ruleType: selectedItem?.ruleType });
15116
15144
  return [
15117
15145
  h("div", { style: {
15118
15146
  display: "grid",
15119
15147
  justifyContent: "center",
15120
15148
  gap: "20px",
15121
- gridTemplateColumns: "repeat(auto-fill, minmax(220px, 1fr))",
15149
+ gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
15122
15150
  } }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
15123
15151
  const style = {
15124
15152
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) ? "0 1px 8px #87ceeb" : "none",
@@ -15129,23 +15157,35 @@ function RewardExchangeView(props) {
15129
15157
  };
15130
15158
  const amount = item.ruleType === "FIXED_GLOBAL_REWARD"
15131
15159
  ? item.prettySourceValue
15132
- : `${item.sourceMinValue} to ${item.sourceMaxValue} ${item.sourceUnit}`;
15160
+ : `${item.sourceMinValue} to ${item.prettySourceMaxValue}`;
15133
15161
  return (h("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
15134
15162
  h("sl-card", { class: sheet.classes.Base, onClick: () => item.available &&
15135
15163
  callbacks.setExchangeState({ selectedItem: item }) },
15136
- (item === null || item === void 0 ? void 0 : item.imageUrl) && (h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || getAssetPath("./assets/Reward-icon.png") })),
15137
- h("p", { style: { margin: "0", flex: "1", fontSize: "90%" } },
15164
+ // item?.imageUrl &&
15165
+ h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || getAssetPath("./assets/Reward-icon.png") }),
15166
+ h("p", { style: {
15167
+ textAlign: "left",
15168
+ margin: "0",
15169
+ flex: "1",
15170
+ fontSize: "90%",
15171
+ padding: "8px"
15172
+ } },
15138
15173
  h("b", null, item.description),
15139
15174
  h("p", { style: { margin: "0" } }, amount),
15140
15175
  item.unavailableReasonCode && (h("p", { style: {
15141
15176
  fontSize: "70%",
15142
15177
  color: "#F2994A",
15143
15178
  marginTop: "0",
15144
- } }, item.unavailableReasonCode))))));
15179
+ } }, item.unavailableReasonCode ===
15180
+ "INSUFFICIENT_REDEEMABLE_CREDIT"
15181
+ ? "Not enough points"
15182
+ : item.unavailableReasonCode))))));
15145
15183
  })),
15146
15184
  h("div", { class: sheet.classes.Buttons },
15147
15185
  h("sl-button", { onClick: () => callbacks.setStage(nextStage), style: { display: "block" }, class: sheet.classes.Button, disabled: !states.selectedItem }, "Continue"),
15148
- h("a", { onClick: () => { var _a; return (_a = refs.drawerRef.current) === null || _a === void 0 ? void 0 : _a.hide(); }, style: { display: "block" }, class: sheet.classes.Button }, "Cancel")),
15186
+ h("a", {
15187
+ // onClick={() => refs.drawerRef.current?.hide()}
15188
+ style: { display: "block" }, class: sheet.classes.Button }, "Cancel")),
15149
15189
  ];
15150
15190
  }
15151
15191
  function chooseAmount() {
@@ -15158,11 +15198,9 @@ function RewardExchangeView(props) {
15158
15198
  h("sl-button", { onClick: () => callbacks.setStage("confirmation"), disabled: input && !states.amount, style: { display: "block" }, class: sheet.classes.Button }, "Continue"),
15159
15199
  h("a", { onClick: () => callbacks.setStage("chooseReward"), style: { display: "block" }, class: sheet.classes.Button }, "Back"))));
15160
15200
  }
15161
- console.log({ selectedItem, selectedStep });
15201
+ // console.log({ selectedItem, selectedStep });
15162
15202
  function confirmation() {
15163
- const previousStage = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
15164
- ? "chooseReward"
15165
- : "chooseAmount";
15203
+ const previousStage = "chooseAmount";
15166
15204
  return (h("div", null,
15167
15205
  h("h2", null, "Confirm and redeem"),
15168
15206
  h("div", { style: { textAlign: "center" } },
@@ -15188,8 +15226,7 @@ function RewardExchangeView(props) {
15188
15226
  return (h("div", { style: { textAlign: "center" } },
15189
15227
  h("img", { class: sheet.classes.FullImage, src: getAssetPath("./assets/Reward-icon.png") }),
15190
15228
  h("p", { style: { color: "forestgreen" } }, "Reward Redeemed"),
15191
- (data === null || data === void 0 ? void 0 : data.fuelTankCode) && h("pre", null, data === null || data === void 0 ? void 0 : data.fuelTankCode),
15192
- h("sl-button", { onClick: () => { var _a, _b; return (_b = (_a = refs.drawerRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.hide(); } }, "Done")));
15229
+ (data === null || data === void 0 ? void 0 : data.fuelTankCode) && h("pre", null, data === null || data === void 0 ? void 0 : data.fuelTankCode)));
15193
15230
  }
15194
15231
  const stages = {
15195
15232
  chooseReward: () => chooseReward(),
@@ -15200,20 +15237,14 @@ function RewardExchangeView(props) {
15200
15237
  const currentStage = stages[states.redeemStage];
15201
15238
  function stageMap() {
15202
15239
  const stageNumber = stageList.indexOf(states.redeemStage);
15203
- return (h("div", { style: { fontSize: "80%", marginBottom: "20px" } },
15204
- h("div", { style: {
15205
- marginTop: "5px",
15206
- display: "flex",
15207
- justifyContent: "center",
15208
- textAlign: "center",
15209
- whiteSpace: "nowrap",
15210
- marginBottom: "6px",
15211
- } }, Object.keys(stageProgressList).map((stage) => {
15212
- if (stage === states.redeemStage)
15213
- return (h("b", { style: { flex: "1 1 0" } },
15214
- " ",
15215
- stageProgressList[stage]));
15216
- return h("i", { style: { flex: "1 1 0" } }, stageProgressList[stage]);
15240
+ return (h("div", { class: sheet.classes.ProgressBar },
15241
+ h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
15242
+ if (stage === states.redeemStage) {
15243
+ return h("span", { class: "text" }, stageProgressList[stage]);
15244
+ }
15245
+ else {
15246
+ return (h("span", { class: "text subdued" }, stageProgressList[stage]));
15247
+ }
15217
15248
  })),
15218
15249
  h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
15219
15250
  }
@@ -15222,10 +15253,7 @@ function RewardExchangeView(props) {
15222
15253
  return "";
15223
15254
  let previousStage = "";
15224
15255
  if (states.redeemStage === "confirmation") {
15225
- previousStage =
15226
- (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
15227
- ? "chooseReward"
15228
- : "chooseAmount";
15256
+ previousStage = "chooseAmount";
15229
15257
  }
15230
15258
  else if (states.redeemStage === "chooseAmount") {
15231
15259
  previousStage = "chooseReward";
@@ -15235,16 +15263,15 @@ function RewardExchangeView(props) {
15235
15263
  h(LeftArrow, null),
15236
15264
  " Back")));
15237
15265
  };
15266
+ console.log(props);
15238
15267
  return (h("div", { class: sheet.classes.Container },
15239
15268
  h("style", { type: "text/css" }, styleString),
15240
- h("div", null,
15241
- h("sl-drawer", { ref: (ref) => (refs.drawerRef.current = ref), placement: "right", class: sheet.classes.Drawer, open: stageList.indexOf(states.redeemStage) >= 0 },
15242
- h(BackButton, null),
15243
- stageMap(),
15244
- currentStage && currentStage(),
15245
- states.exchangeError &&
15246
- "Something went wrong. Please contact support or try again."),
15247
- h("sl-button", { loading: states.loading, onClick: () => callbacks.openDrawer() }, "Redeem Rewards"))));
15269
+ h("div", { style: { width: "1920px" } },
15270
+ h(BackButton, null),
15271
+ stageMap(),
15272
+ currentStage && currentStage(),
15273
+ states.exchangeError &&
15274
+ "Something went wrong. Please contact support or try again.")));
15248
15275
  }
15249
15276
 
15250
15277
  const SqmRewardExchangeList = class {
@@ -15281,7 +15308,7 @@ function useRewardExchangeListDemo(props) {
15281
15308
  content: {
15282
15309
  text: props,
15283
15310
  },
15284
- redeemStage: "",
15311
+ redeemStage: "chooseReward",
15285
15312
  amount: 0,
15286
15313
  selectedStep: undefined,
15287
15314
  exchangeError: false,
@@ -15302,6 +15329,348 @@ function useRewardExchangeListDemo(props) {
15302
15329
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
15303
15330
  }
15304
15331
 
15332
+ const style$7 = {
15333
+ THead: {
15334
+ padding: "var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0",
15335
+ "text-align": "left",
15336
+ },
15337
+ TCell: {
15338
+ padding: "var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0",
15339
+ },
15340
+ TRow: {
15341
+ "border-top": "1px solid #EAEAEA",
15342
+ },
15343
+ Table: {
15344
+ "border-collapse": "collapse",
15345
+ width: "100%",
15346
+ },
15347
+ ButtonContainer: {
15348
+ display: "flex",
15349
+ "justify-content": "flex-end",
15350
+ "margin-top": "var(--sl-spacing-small)",
15351
+ ...gap({ direction: "row", size: "var(--sl-spacing-small)" }),
15352
+ },
15353
+ };
15354
+ jss.setup(create());
15355
+ const sheet$7 = jss.createStyleSheet(style$7);
15356
+ const styleString$7 = sheet$7.toString();
15357
+ function GenericTableView(props) {
15358
+ const { states, data, callbacks, elements } = props;
15359
+ const { columns, rows } = elements;
15360
+ const { show } = states;
15361
+ return (h("div", null,
15362
+ h("style", { type: "text/css" }, styleString$7),
15363
+ h("table", { class: sheet$7.classes.Table },
15364
+ data.textOverrides.showLabels && (h("thead", null,
15365
+ h("tr", null, columns === null || columns === void 0 ? void 0 : columns.map((column) => (h("th", { class: sheet$7.classes.THead },
15366
+ h(TextSpanView, { type: "h3" }, column))))))),
15367
+ h("tbody", null,
15368
+ show === "loading" && elements.loadingElement,
15369
+ show === "empty" && elements.emptyElement,
15370
+ show === "rows" && (rows === null || rows === void 0 ? void 0 : rows.map((row, i) => (h("tr", { class: sheet$7.classes.TRow, style: {
15371
+ borderTop: `${!data.textOverrides.showLabels && i === 0 ? "none" : ""}`,
15372
+ }, part: "table-row" }, row.map((cell) => (h("td", { class: sheet$7.classes.TCell },
15373
+ h(TextSpanView, { type: "p" }, cell)))))))))),
15374
+ h("div", { class: sheet$7.classes.ButtonContainer, part: states.namespace + "-button-wrapper" },
15375
+ h("sl-button", { size: "small", disabled: !states.hasPrev, loading: show === "loading", onClick: callbacks.prevPage, exportparts: "base: defaultbutton-base" }, data.textOverrides.prevLabel),
15376
+ h("sl-button", { size: "small", loading: show === "loading", disabled: !states.hasNext, onClick: callbacks.nextPage, exportparts: "base: defaultbutton-base" }, data.textOverrides.moreLabel))));
15377
+ }
15378
+
15379
+ function LoadingSlot$1() {
15380
+ return (h("slot", { name: "loading" },
15381
+ h(LoadingSkeleton, null)));
15382
+ }
15383
+ function LoadingSkeleton() {
15384
+ return (h("div", { style: { width: "100%" } },
15385
+ h("sl-skeleton", { style: { marginBottom: "28px" } }),
15386
+ h("sl-skeleton", { style: { marginBottom: "28px" } }),
15387
+ h("sl-skeleton", { style: { marginBottom: "28px" } }),
15388
+ h("sl-skeleton", { style: { marginBottom: "28px" } }),
15389
+ h("sl-skeleton", null)));
15390
+ }
15391
+ function EmptySlot$1({ label }) {
15392
+ return (h("slot", { name: "empty" },
15393
+ h(EmptySkeleton, { label: label })));
15394
+ }
15395
+ function EmptySkeleton({ label }) {
15396
+ return (h("div", { style: { width: "100%" } },
15397
+ h("sqm-text", null,
15398
+ h("h3", { style: { color: "#777777" } }, label))));
15399
+ }
15400
+
15401
+ const CSS_NAMESPACE = "sqm-rewards-table";
15402
+ const GET_REWARDS = gql `
15403
+ query getRewards(
15404
+ $limit: Int!
15405
+ $offset: Int!
15406
+ $rewardFilter: RewardFilterInput
15407
+ ) {
15408
+ viewer {
15409
+ ... on User {
15410
+ id
15411
+ rewards(limit: $limit, offset: $offset, filter: $rewardFilter) {
15412
+ totalCount
15413
+ count
15414
+ data {
15415
+ id
15416
+ type
15417
+ value
15418
+ unit
15419
+ name
15420
+ dateGiven
15421
+ dateExpires
15422
+ dateCancelled
15423
+ dateRedeemed
15424
+ dateScheduledFor
15425
+ fuelTankCode
15426
+ fuelTankType
15427
+ currency
15428
+ prettyValue
15429
+ statuses
15430
+ globalRewardKey
15431
+ programRewardKey
15432
+ rewardRedemptionTransactions {
15433
+ data {
15434
+ exchangedRewards {
15435
+ data {
15436
+ prettyValue
15437
+ type
15438
+ fuelTankCode
15439
+ globalRewardKey
15440
+ }
15441
+ }
15442
+ }
15443
+ }
15444
+ }
15445
+ }
15446
+ }
15447
+ }
15448
+ }
15449
+ `;
15450
+ function useRewardsTable(props, emptyElement, loadingElement) {
15451
+ var _a, _b;
15452
+ const user = T$1();
15453
+ const programIdContext = M$1();
15454
+ // Default to context, overriden by props
15455
+ const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
15456
+ const rewardFilter = {
15457
+ userId_eq: user === null || user === void 0 ? void 0 : user.id,
15458
+ accountId_eq: user === null || user === void 0 ? void 0 : user.accountId,
15459
+ // If no program ID, shows all programs
15460
+ ...(programId
15461
+ ? programId === "classic"
15462
+ ? { programId_exists: false }
15463
+ : { programId_eq: programId }
15464
+ : {}),
15465
+ };
15466
+ const [content, setContent] = useReducer((state, next) => ({
15467
+ ...state,
15468
+ ...next,
15469
+ }), {
15470
+ columns: [],
15471
+ rows: [],
15472
+ loading: false,
15473
+ page: 0,
15474
+ });
15475
+ const { envelope: rewardsData, states, callbacks, } = sn(GET_REWARDS, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.rewards; }, {
15476
+ limit: props.perPage,
15477
+ offset: 0,
15478
+ }, {
15479
+ rewardFilter,
15480
+ }, !(user === null || user === void 0 ? void 0 : user.jwt));
15481
+ const tick = useRerenderListener();
15482
+ const components = useChildElements();
15483
+ const data = rewardsData === null || rewardsData === void 0 ? void 0 : rewardsData.data;
15484
+ async function getComponentData(components) {
15485
+ // filter out loading and empty states from columns array
15486
+ const columnComponents = components.filter((component) => component.slot !== "loading" && component.slot !== "empty");
15487
+ // get the column titles (renderLabel is asynchronous)
15488
+ const columnsPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod$1(c, () => c.renderLabel()));
15489
+ // get the column cells (renderCell is asynchronous)
15490
+ const cellsPromise = data === null || data === void 0 ? void 0 : data.map(async (r) => {
15491
+ const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod$1(c, () => c.renderCell([r], c)));
15492
+ const cells = await Promise.all(cellPromise);
15493
+ return cells;
15494
+ });
15495
+ const rows = cellsPromise && (await Promise.all(cellsPromise)).filter((i) => i);
15496
+ setContent({ rows });
15497
+ const columns = columnsPromise && (await Promise.all(columnsPromise));
15498
+ // Set the content to render and finish loading components
15499
+ setContent({ columns, loading: false, page: states.currentPage });
15500
+ }
15501
+ useEffect(() => {
15502
+ setContent({ loading: true });
15503
+ rewardsData && getComponentData(components);
15504
+ }, [rewardsData, components, tick]);
15505
+ const isEmpty = !((_b = content === null || content === void 0 ? void 0 : content.rows) === null || _b === void 0 ? void 0 : _b.length) && !(data === null || data === void 0 ? void 0 : data.length);
15506
+ console.log(states.loading, content.loading, rewardsData);
15507
+ const show =
15508
+ // 1 - Loading if loading
15509
+ states.loading || content.loading
15510
+ ? "loading"
15511
+ : // 2 - Empty if empty
15512
+ isEmpty
15513
+ ? "empty"
15514
+ : // 3 - Then show rows
15515
+ "rows";
15516
+ return {
15517
+ states: {
15518
+ hasNext: states.currentPage < states.pageCount - 1,
15519
+ hasPrev: states.currentPage > 0,
15520
+ show,
15521
+ namespace: CSS_NAMESPACE,
15522
+ },
15523
+ data: {
15524
+ textOverrides: {
15525
+ showLabels: props.showLabels,
15526
+ prevLabel: props.prevLabel,
15527
+ moreLabel: props.moreLabel,
15528
+ },
15529
+ },
15530
+ elements: {
15531
+ columns: content.columns,
15532
+ rows: content.rows,
15533
+ emptyElement,
15534
+ loadingElement,
15535
+ },
15536
+ callbacks: {
15537
+ nextPage: () => {
15538
+ if (states.currentPage === 0)
15539
+ callbacks.setLimit(props.perPage);
15540
+ callbacks.setCurrentPage(states.currentPage + 1);
15541
+ },
15542
+ prevPage: () => {
15543
+ if (states.currentPage === 1)
15544
+ callbacks.setLimit(props.perPage - 1);
15545
+ callbacks.setCurrentPage(states.currentPage - 1);
15546
+ },
15547
+ },
15548
+ };
15549
+ }
15550
+ function generateUserError$1(e) {
15551
+ try {
15552
+ return JSON.stringify(e);
15553
+ }
15554
+ catch (e) {
15555
+ return "An unknown error";
15556
+ }
15557
+ }
15558
+ async function tryMethod$1(c, callback) {
15559
+ const tag = c.tagName.toLowerCase();
15560
+ await customElements.whenDefined(tag);
15561
+ let labelPromise;
15562
+ try {
15563
+ labelPromise = callback();
15564
+ }
15565
+ catch (e) {
15566
+ // renderLabel did not return a promise, so this method probably doesn't exist
15567
+ // therefore, we IGNORE the label
15568
+ if (callback.name === "renderReferrerCell") {
15569
+ console.error("column does not have a renderReferrerCell method.");
15570
+ }
15571
+ else {
15572
+ console.error("label promise failed", e);
15573
+ }
15574
+ return h("span", null);
15575
+ }
15576
+ try {
15577
+ return await labelPromise;
15578
+ }
15579
+ catch (e) {
15580
+ // The column returned a promise, and that promise failed.
15581
+ // This should not happen so we fail fast
15582
+ console.error("Error rendering label", e);
15583
+ const userError = generateUserError$1(e);
15584
+ return (h("details", null,
15585
+ h("summary", null, "Error"),
15586
+ userError));
15587
+ }
15588
+ }
15589
+
15590
+ const RewardsTable = class {
15591
+ constructor(hostRef) {
15592
+ registerInstance(this, hostRef);
15593
+ /** @uiName Number of rewards per page */
15594
+ this.perPage = 3;
15595
+ /** @uiName Show column labels */
15596
+ this.showLabels = true;
15597
+ /** @uiName Previous button text */
15598
+ this.prevLabel = "Prev";
15599
+ /** @uiName View More button text */
15600
+ this.moreLabel = "Next";
15601
+ /** @uiName Show Referred by user in table */
15602
+ this.showReferrer = false;
15603
+ h$1(this);
15604
+ }
15605
+ disconnectedCallback() { }
15606
+ render() {
15607
+ const empty = h(EmptySlot$1, { label: "No Rewards Yet" });
15608
+ const loading = h(LoadingSlot$1, null);
15609
+ const { states, data, callbacks, elements } = j$1()
15610
+ ? useRewardsTableDemo(this)
15611
+ : useRewardsTable(this, empty, loading);
15612
+ return (h(GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements }));
15613
+ }
15614
+ };
15615
+ function useRewardsTableDemo(props) {
15616
+ return cjs({
15617
+ states: {
15618
+ hasPrev: false,
15619
+ hasNext: false,
15620
+ loading: false,
15621
+ namespace: CSS_NAMESPACE,
15622
+ },
15623
+ callbacks: {
15624
+ prevPage: () => console.log("Prev"),
15625
+ nextPage: () => console.log("Next"),
15626
+ },
15627
+ data: {
15628
+ textOverrides: {
15629
+ showLabels: props.showLabels,
15630
+ prevLabel: props.prevLabel,
15631
+ moreLabel: props.moreLabel,
15632
+ },
15633
+ referralData: [],
15634
+ },
15635
+ elements: {
15636
+ emptyElement: h(EmptySkeleton, { label: "No Rewards Yet" }),
15637
+ loadingElement: h(LoadingSkeleton, null),
15638
+ // TODO: This should be smarter
15639
+ columns: [h("div", null, "Name"), h("div", null, "Email"), h("div", null, "DOB")],
15640
+ rows: [],
15641
+ },
15642
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
15643
+ }
15644
+
15645
+ const RewardsTableColumn = class {
15646
+ constructor(hostRef) {
15647
+ registerInstance(this, hostRef);
15648
+ /**
15649
+ * @uiName Reward column title
15650
+ */
15651
+ this.columnTitle = "Rewards";
15652
+ /**
15653
+ * @uiName Hide dropdown details of reward
15654
+ */
15655
+ this.hideDetails = false;
15656
+ h$1(this);
15657
+ }
15658
+ disconnectedCallback() { }
15659
+ //@ts-ignore
15660
+ async renderCell(data) {
15661
+ // TODO: Do the right thing with many rewards, pending rewards, canceled rewards
15662
+ console.log({ data });
15663
+ return (h("sqm-referral-table-rewards-cell", { rewards: data, hideDetails: this.hideDetails }));
15664
+ }
15665
+ async renderLabel() {
15666
+ return this.columnTitle;
15667
+ }
15668
+ render() {
15669
+ useRequestRerender([this.columnTitle]);
15670
+ return h(Host, { style: { display: "none" } });
15671
+ }
15672
+ };
15673
+
15305
15674
  const debug$1 = browser("sq:useRouter");
15306
15675
  function matchPath(pattern, page) {
15307
15676
  if (!pattern)
@@ -15394,19 +15763,19 @@ const SqmRouter = class {
15394
15763
  };
15395
15764
  SqmRouter.style = sqmRouterCss;
15396
15765
 
15397
- const style$7 = {
15766
+ const style$8 = {
15398
15767
  HostBlock: HostBlock,
15399
15768
  buttonStyle: {
15400
15769
  display: "block",
15401
15770
  },
15402
15771
  };
15403
15772
  jss.setup(create());
15404
- const sheet$7 = jss.createStyleSheet(style$7);
15405
- const styleString$7 = sheet$7.toString();
15773
+ const sheet$8 = jss.createStyleSheet(style$8);
15774
+ const styleString$8 = sheet$8.toString();
15406
15775
  function ShareButtonView(props, children) {
15407
15776
  return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
15408
- h("style", { type: "text/css" }, styleString$7),
15409
- h("sl-button", { class: sheet$7.classes.buttonStyle, loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, exportparts: `base: ${props.type}sharebutton-base` },
15777
+ h("style", { type: "text/css" }, styleString$8),
15778
+ h("sl-button", { class: sheet$8.classes.buttonStyle, loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, exportparts: `base: ${props.type}sharebutton-base` },
15410
15779
  !props.hideicon && (h("sl-icon", { slot: props.iconslot, name: props.icon ? props.icon : props.medium, exportparts: "icon" })),
15411
15780
  !props.hidetext && children)));
15412
15781
  }
@@ -18266,11 +18635,55 @@ const UseRewardExchangeList = /*#__PURE__*/Object.freeze({
18266
18635
  VariableCreditReward: VariableCreditReward
18267
18636
  });
18268
18637
 
18638
+ const UseRewardsTable_stories = {
18639
+ title: "Hooks / useRewardsTable",
18640
+ };
18641
+ function setupGraphQL$7() {
18642
+ const id = "testestest";
18643
+ const accountId = id;
18644
+ //@ts-ignore
18645
+ window.widgetIdent = {
18646
+ tenantAlias: "test_a8b41jotf8a1v",
18647
+ appDomain: "https://staging.referralsaasquatch.com",
18648
+ };
18649
+ useEffect(() => {
18650
+ L$1({
18651
+ accountId,
18652
+ id,
18653
+ jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
18654
+ });
18655
+ return () => {
18656
+ window.widgetIdent = undefined;
18657
+ L$1(undefined);
18658
+ };
18659
+ }, []);
18660
+ return { id, accountId };
18661
+ }
18662
+ const RewardsTableWithProgram = createHookStory(() => {
18663
+ setupGraphQL$7();
18664
+ A$1("sam-partner-test-2");
18665
+ return (h("sqm-rewards-table", null,
18666
+ h("sqm-rewards-table-column", null)));
18667
+ });
18668
+ const RewardsTableNoProgram = createHookStory(() => {
18669
+ setupGraphQL$7();
18670
+ A$1(undefined);
18671
+ return (h("sqm-rewards-table", null,
18672
+ h("sqm-rewards-table-column", null)));
18673
+ });
18674
+
18675
+ const UseRewardsTable = /*#__PURE__*/Object.freeze({
18676
+ __proto__: null,
18677
+ 'default': UseRewardsTable_stories,
18678
+ RewardsTableWithProgram: RewardsTableWithProgram,
18679
+ RewardsTableNoProgram: RewardsTableNoProgram
18680
+ });
18681
+
18269
18682
  const JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoic2FtK2tsaXBAc2Fhc3F1YXQuY2giLCJhY2NvdW50SWQiOiJzYW0ra2xpcEBzYWFzcXVhdC5jaCJ9fQ.FMNZ6oajyr6SiCcRqKKdyPqvNTvWROQ60MKAyfvWGfc";
18270
18683
  const UseTaskCard_stories = {
18271
18684
  title: "Hooks / useTaskCard",
18272
18685
  };
18273
- function setupGraphQL$7() {
18686
+ function setupGraphQL$8() {
18274
18687
  const id = "sam+klip@saasquat.ch";
18275
18688
  const accountId = id;
18276
18689
  const programId = "klip-referral-program";
@@ -18294,7 +18707,7 @@ function setupGraphQL$7() {
18294
18707
  return { id, accountId };
18295
18708
  }
18296
18709
  const TaskCard = createHookStory(() => {
18297
- setupGraphQL$7();
18710
+ setupGraphQL$8();
18298
18711
  return (h("sqm-task-card", { "card-title": "Comment on 5 articles", "button-text": "Start reading", goal: 5, steps: true, "show-progress-bar": true }));
18299
18712
  });
18300
18713
 
@@ -18307,15 +18720,15 @@ const UseTaskCard = /*#__PURE__*/Object.freeze({
18307
18720
  const NewPortal_stories = {
18308
18721
  title: "New Portal",
18309
18722
  };
18310
- const style$8 = {
18723
+ const style$9 = {
18311
18724
  HeaderSubtitleBold: {
18312
18725
  "font-weight": 500,
18313
18726
  "text-decoration": "underline",
18314
18727
  },
18315
18728
  };
18316
18729
  jss.setup(create());
18317
- const sheet$8 = jss.createStyleSheet(style$8);
18318
- const styleString$8 = sheet$8.toString();
18730
+ const sheet$9 = jss.createStyleSheet(style$9);
18731
+ const styleString$9 = sheet$9.toString();
18319
18732
  const barProps = {
18320
18733
  data: {
18321
18734
  programs: [
@@ -18410,7 +18823,7 @@ const Dashboard = () => {
18410
18823
  hide: false,
18411
18824
  };
18412
18825
  return (h("sqm-divided-layout", { direction: "row" },
18413
- h("style", { type: "text/css" }, styleString$8),
18826
+ h("style", { type: "text/css" }, styleString$9),
18414
18827
  h(Sidebar, null),
18415
18828
  h("sqm-divided-layout", { direction: "column" },
18416
18829
  h(PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
@@ -18468,7 +18881,7 @@ const Dashboard = () => {
18468
18881
  };
18469
18882
  const EditProfile$2 = () => {
18470
18883
  return (h("sqm-divided-layout", { direction: "row" },
18471
- h("style", { type: "text/css" }, styleString$8),
18884
+ h("style", { type: "text/css" }, styleString$9),
18472
18885
  h(Sidebar, null),
18473
18886
  h("sqm-divided-layout", { direction: "column" },
18474
18887
  h(PortalProfileView, Object.assign({}, {
@@ -18532,7 +18945,7 @@ const EditProfile$2 = () => {
18532
18945
  };
18533
18946
  const Commissions = () => {
18534
18947
  return (h("sqm-divided-layout", { direction: "row" },
18535
- h("style", { type: "text/css" }, styleString$8),
18948
+ h("style", { type: "text/css" }, styleString$9),
18536
18949
  h(Sidebar, null),
18537
18950
  h("sqm-divided-layout", { direction: "column" },
18538
18951
  h(PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
@@ -18545,7 +18958,7 @@ const Commissions = () => {
18545
18958
  h("p", null,
18546
18959
  "for the",
18547
18960
  " ",
18548
- h("span", { class: sheet$8.classes.HeaderSubtitleBold }, "Partner Program #1"),
18961
+ h("span", { class: sheet$9.classes.HeaderSubtitleBold }, "Partner Program #1"),
18549
18962
  " ",
18550
18963
  "program"))),
18551
18964
  })),
@@ -18557,7 +18970,7 @@ const Commissions = () => {
18557
18970
  };
18558
18971
  const Activity = () => {
18559
18972
  return (h("sqm-divided-layout", { direction: "row" },
18560
- h("style", { type: "text/css" }, styleString$8),
18973
+ h("style", { type: "text/css" }, styleString$9),
18561
18974
  h(Sidebar, null),
18562
18975
  h("sqm-divided-layout", { direction: "column" },
18563
18976
  h(PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
@@ -18570,7 +18983,7 @@ const Activity = () => {
18570
18983
  h("p", null,
18571
18984
  "for the",
18572
18985
  " ",
18573
- h("span", { class: sheet$8.classes.HeaderSubtitleBold }, "Partner Program #1"),
18986
+ h("span", { class: sheet$9.classes.HeaderSubtitleBold }, "Partner Program #1"),
18574
18987
  " ",
18575
18988
  "program"))),
18576
18989
  })),
@@ -20644,7 +21057,7 @@ function ProgressBarView(props) {
20644
21057
  ProgressBar: {
20645
21058
  "& .progress-bar": {
20646
21059
  height: "15px",
20647
- marginTop: "var(--sl-spacing-xx-large)",
21060
+ marginTop: steps ? "var(--sl-spacing-x-large)" : "var(--sl-spacing-xx-large)",
20648
21061
  marginBottom: "var(--sl-spacing-xx-large)",
20649
21062
  marginRight: "var(--sl-spacing-x-small)",
20650
21063
  fontSize: "var(--sl-font-size-x-small)",
@@ -21015,8 +21428,8 @@ function TaskCardView(props) {
21015
21428
  h("span", { class: "value" }, rewardAmount),
21016
21429
  h("span", { class: "text" }, rewardUnit)),
21017
21430
  h("div", { class: sheet.classes.Title }, cardTitle),
21018
- showProgressBar && loading ? (h("sl-skeleton", { style: { width: "98%", margin: "0 auto" } })) : (showProgressBar && h(ProgressBarView, Object.assign({}, props))),
21019
21431
  h(Details, { description: description }),
21432
+ showProgressBar && loading ? (h("sl-skeleton", { style: { width: "98%", margin: "0 auto" } })) : (showProgressBar && h(ProgressBarView, Object.assign({}, props))),
21020
21433
  h("div", { class: sheet.classes.Footer },
21021
21434
  h("span", { class: "text" },
21022
21435
  repeatable && (h("div", null,
@@ -21029,7 +21442,7 @@ function TaskCardView(props) {
21029
21442
  "Ends ",
21030
21443
  " ",
21031
21444
  dateExpires))),
21032
- h("sl-button", { class: "action", size: "small", onClick: () => alert(buttonLink), disabled: showComplete && repeatable == false }, showComplete && repeatable == false
21445
+ h("sl-button", { class: "action", size: "small", onClick: () => window.open(buttonLink), disabled: showComplete && repeatable == false }, showComplete && repeatable == false
21033
21446
  ? "Task completed"
21034
21447
  : buttonText)))));
21035
21448
  }
@@ -24557,7 +24970,7 @@ const ReferralIframeReadme = "# sqm-referral-iframe\r\n\r\n\r\n\r\n<!-- Auto Gen
24557
24970
 
24558
24971
  const ForgotPasswordReadme = "# sqm-portal-forgot-password\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------- | -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\r\n| `submitLabel` | `submit-label` | | `string` | `\"Request Password Reset\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-forgot-password --> sqm-form-message\r\n style sqm-portal-forgot-password fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
24559
24972
 
24560
- const RegisterReadme = "# sqm-portal-register\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| -------------------------- | ---------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\r\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\r\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `\"Confirm Password\"` |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; }; refs?: { formRef: any; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\r\n| `enablePasswordValidation` | `enable-password-validation` | | `boolean` | `true` |\r\n| `hideInputs` | `hide-inputs` | | `boolean` | `false` |\r\n| `loginLabel` | `login-label` | | `string` | `\"Sign in\"` |\r\n| `nextPage` | `next-page` | | `string` | `\"/\"` |\r\n| `pageLabel` | `page-label` | | `string` | `\"Register\"` |\r\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\r\n| `submitLabel` | `submit-label` | | `string` | `\"Register\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Used by\r\n\r\n - [sqm-stencilbook](../sqm-stencilbook)\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n- [sqm-password-field](../sqm-password-field)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-register --> sqm-form-message\r\n sqm-portal-register --> sqm-password-field\r\n sqm-stencilbook --> sqm-portal-register\r\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
24973
+ const RegisterReadme = "# sqm-portal-register\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------------------------- | ---------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `\"Confirm Password\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; }; refs?: { formRef: any; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `enablePasswordValidation` | `enable-password-validation` | | `boolean` | `true` |\n| `hideInputs` | `hide-inputs` | | `boolean` | `false` |\n| `loginLabel` | `login-label` | | `string` | `\"Sign in\"` |\n| `nextPage` | `next-page` | | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Register\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Register\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n- [sqm-password-field](../sqm-password-field)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-register --> sqm-form-message\n sqm-portal-register --> sqm-password-field\n sqm-stencilbook --> sqm-portal-register\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
24561
24974
 
24562
24975
  const EditProfileReadme = "# sqm-portal-profile\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------------------ | --------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |\r\n| `countrytext` | `countrytext` | | `string` | `\"Country\"` |\r\n| `demoData` | -- | | `{ states?: { success: boolean; loading: boolean; submitDisabled: boolean; showCountry: boolean; formState: { country: string; firstName: string; lastName: string; errors: any; error: string; }; user: { id: string; accountId: string; firstName: string; lastName: string; email: string; countryCode: string; }; text: { firstnametext: string; lastnametext: string; emailtext: string; countrytext: string; editProfileHeader: string; editProfileSubHeader: string; submitChangeButtonText: string; }; }; }` | `undefined` |\r\n| `editProfileHeader` | `edit-profile-header` | | `string` | `\"Edit your profile\"` |\r\n| `editProfileSubHeader` | `edit-profile-sub-header` | | `string` | `\"Personal Information\"` |\r\n| `emailtext` | `emailtext` | | `string` | `\"Email\"` |\r\n| `firstnametext` | `firstnametext` | | `string` | `\"First Name\"` |\r\n| `lastnametext` | `lastnametext` | | `string` | `\"Last Name\"` |\r\n| `showCountry` | `show-country` | | `boolean` | `true` |\r\n| `submitChangeButtonText` | `submit-change-button-text` | | `string` | `\"Submit Changes\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-profile --> sqm-form-message\r\n style sqm-portal-profile fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
24563
24976
 
@@ -24565,7 +24978,7 @@ const ResetPasswordReadme = "# sqm-portal-reset-password\r\n\r\n\r\n\r\n<!-- Aut
24565
24978
 
24566
24979
  const EmailVerificationReadme = "# sqm-portal-email-verification\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------------------- | --------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; }; content?: { email: string; verifyMessage: string; emailVerificationHeader: string; resendEmailButtonText: string; }; }` | `undefined` |\r\n| `emailVerificationHeader` | `email-verification-header` | | `string` | `\"Verify your email\"` |\r\n| `resendEmailButtonText` | `resend-email-button-text` | | `string` | `\"Re-send Email\"` |\r\n| `verifyMessage` | `verify-message` | | `string` | `\"A verification email was sent to {email}. Please verify your email to continue to the portal.\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-email-verification --> sqm-form-message\r\n style sqm-portal-email-verification fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
24567
24980
 
24568
- const EmailVerifiedReadme = "# sqm-portal-verify-email\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ---------- | ----------- | ----------- | ---------------------------------------------------------------------------------------------------- | ----------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; }` | `undefined` |\n| `nextPage` | `next-page` | | `string` | `\"/\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-verify-email --> sqm-form-message\n style sqm-portal-verify-email fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
24981
+ const EmailVerifiedReadme = "# sqm-portal-verify-email\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ---------- | ----------- | ----------- | ---------------------------------------------------------------------------------------------------- | ----------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; }` | `undefined` |\r\n| `nextPage` | `next-page` | | `string` | `\"/\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-verify-email --> sqm-form-message\r\n style sqm-portal-verify-email fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
24569
24982
 
24570
24983
  const PortalTemplates_stories = {
24571
24984
  title: "Templates / Portal",
@@ -25076,6 +25489,251 @@ const NameFields$1 = /*#__PURE__*/Object.freeze({
25076
25489
  NameFieldsWithErrors: NameFieldsWithErrors
25077
25490
  });
25078
25491
 
25492
+ const baseResponse = (data) => ({
25493
+ states: {
25494
+ content: null,
25495
+ redeemStage: "chooseReward",
25496
+ amount: 0,
25497
+ exchangeError: false,
25498
+ loading: false,
25499
+ selectedItem: null,
25500
+ selectedStep: null,
25501
+ },
25502
+ data: {
25503
+ exchangeList: data,
25504
+ },
25505
+ callbacks: {
25506
+ exchangeReward: null,
25507
+ openDrawer: null,
25508
+ setStage: null,
25509
+ setExchangeState: null,
25510
+ refs: null,
25511
+ },
25512
+ refs: null,
25513
+ });
25514
+ const baseReward$2 = {
25515
+ key: "",
25516
+ name: "",
25517
+ description: "",
25518
+ imageUrl: "",
25519
+ available: true,
25520
+ unavailableReason: null,
25521
+ unavailableReasonCode: null,
25522
+ ruleType: "FIXED_GLOBAL_REWARD",
25523
+ sourceUnit: "POINT",
25524
+ sourceValue: 10,
25525
+ prettySourceValue: "10 SaaSquatch Points",
25526
+ sourceMinValue: null,
25527
+ prettySourceMinValue: null,
25528
+ sourceMaxValue: null,
25529
+ prettySourceMaxValue: null,
25530
+ destinationMinValue: null,
25531
+ prettyDestinationMinValue: null,
25532
+ destinationMaxValue: null,
25533
+ prettyDestinationMaxValue: null,
25534
+ globalRewardKey: "",
25535
+ destinationUnit: null,
25536
+ steps: [],
25537
+ };
25538
+ const notEnoughPoints = {
25539
+ available: false,
25540
+ unavailableReasonCode: "INSUFFICIENT_REDEEMABLE_CREDIT",
25541
+ };
25542
+ const usTax = {
25543
+ available: false,
25544
+ unavailableReasonCode: "US_TAX",
25545
+ };
25546
+ const imageUrl = (props) => ({
25547
+ imageUrl: props,
25548
+ });
25549
+ const description = (props) => ({
25550
+ description: props,
25551
+ });
25552
+ const fixedValue = (props) => ({
25553
+ prettySourceValue: props,
25554
+ });
25555
+ const variableValue = (min, max, text) => ({
25556
+ ruleType: "VARIABLE_CREDIT_REWARD",
25557
+ sourceMinValue: min,
25558
+ prettySourceMinValue: min + " " + text,
25559
+ sourceMaxValue: max,
25560
+ prettySourceMaxValue: max + " " + text,
25561
+ });
25562
+ const test = {
25563
+ ...baseResponse([
25564
+ {
25565
+ ...baseReward$2,
25566
+ ...description("Free swag with a promo code"),
25567
+ ...imageUrl("https://i.imgur.com/Ds7M19I.png"),
25568
+ ...fixedValue("40 SaaSquatch Points"),
25569
+ },
25570
+ {
25571
+ ...baseReward$2,
25572
+ ...description("Visa® Prepaid Card USD"),
25573
+ ...imageUrl("https://i.imgur.com/4s3q2zz.png"),
25574
+ ...variableValue(20, 80, "SaaSquatch Points"),
25575
+ },
25576
+ {
25577
+ ...baseReward$2,
25578
+ ...description("A very exclusive gift box"),
25579
+ ...imageUrl("https://i.imgur.com/XuiJi4l.png"),
25580
+ ...fixedValue("30 SaaSquatch Points"),
25581
+ },
25582
+ {
25583
+ ...baseReward$2,
25584
+ ...description("$50 Store credit"),
25585
+ ...imageUrl("https://i.imgur.com/WkCMVSE.png"),
25586
+ ...fixedValue("100 SaaSquatch Points"),
25587
+ },
25588
+ {
25589
+ ...baseReward$2,
25590
+ ...description("Variable amount of store credit"),
25591
+ ...imageUrl("https://i.imgur.com/Jn2fE0s.png"),
25592
+ ...variableValue(20, 100, "SaaSquatch Points"),
25593
+ },
25594
+ {
25595
+ ...baseReward$2,
25596
+ ...notEnoughPoints,
25597
+ ...description("A very rare cactus"),
25598
+ ...imageUrl("https://i.imgur.com/CvCdpXc.png"),
25599
+ ...fixedValue("2000 SaaSquatch Points"),
25600
+ },
25601
+ {
25602
+ ...baseReward$2,
25603
+ ...usTax,
25604
+ ...description("$1000 Store credit"),
25605
+ ...imageUrl("https://i.imgur.com/I9FCh9Z.png"),
25606
+ ...fixedValue("2000 SaaSquatch Points"),
25607
+ },
25608
+ {
25609
+ ...baseReward$2,
25610
+ ...notEnoughPoints,
25611
+ ...description("A holiday gift box"),
25612
+ ...imageUrl("https://i.imgur.com/HBJS1WH.png"),
25613
+ ...fixedValue("100 SaaSquatch Points"),
25614
+ },
25615
+ ]),
25616
+ };
25617
+ const test2 = {
25618
+ states: {
25619
+ content: {
25620
+ text: {
25621
+ buttonText: "Exchange Rewards",
25622
+ ignored: true,
25623
+ },
25624
+ },
25625
+ redeemStage: "chooseAmount",
25626
+ amount: 0,
25627
+ exchangeError: false,
25628
+ loading: false,
25629
+ selectedItem: {
25630
+ key: "r4",
25631
+ name: "Salmon Coins",
25632
+ description: "Points for Salmon Coins",
25633
+ imageUrl: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUWFRgWFRYYGRgZGh4cHBocHR4aHxwdGRwZHBwfHh4cIS4lHB4rHxoYJjgnKy8xNTU1GiQ7QD00Py40NTEBDAwMEA8QHhISHzQrJCs0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NP/AABEIAIABiQMBIgACEQEDEQH/xAAcAAEAAQUBAQAAAAAAAAAAAAAABAECAwUGBwj/xAA+EAABAwICBgYHBwQCAwAAAAABAAIRAyEEMQUSQVFhcQYTgZGhsQciMkJScvAUYoKSwdHhorLC8SMzFUNj/8QAGAEBAQEBAQAAAAAAAAAAAAAAAAECAwT/xAAfEQEBAQEBAQEAAwEBAAAAAAAAARECEiExE0FRYQP/2gAMAwEAAhEDEQA/APZkREBERAREQEREBERAREQEREBERAREQERY6jw0EkgACSTYADMk7AgvVjHgzBBixgzBXmfSjpqapNLDuLaeTqgs58Zhl/Vbx28BnA0Lj3UXNcx0G0tmxHwkW1tvLhks3qRZHryqtdonSjK7dZtnCzmzJaf1HFbFWXUERFQREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBFSVqdNafoYVoNaoAT7LBdzvlaLxxyG0oNlUqBoLnEAASSTAAFySTkF5H0z6WHEuNKiSKANx7JqkXl20MFoHfsAidKemVTFeo31KPwAgl0ZF7hY7IaLA39aBHNsIO0cv34eaCVSeBlcnblb/FqnY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MThzVFZmoxwbAJBlwJuIOUE35dncopn1dVREVQREQEREBERAREQEREBERAREQEREBERAREQEREGuxuiqNW72An4hLXfmbBjhktFi+h+2nV5B4y/EyI7l1qLN5l/VlsaDo9oytQLmvc0sI2OJOtaDBYItO07Fv0RWTJhbqqIiqCIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIg//Z",
25634
+ available: true,
25635
+ unavailableReason: null,
25636
+ unavailableReasonCode: null,
25637
+ ruleType: "VARIABLE_CREDIT_REWARD",
25638
+ sourceUnit: "POINT",
25639
+ sourceValue: null,
25640
+ prettySourceValue: null,
25641
+ sourceMinValue: 1,
25642
+ prettySourceMinValue: "1 Point",
25643
+ sourceMaxValue: 100,
25644
+ prettySourceMaxValue: "100 Points",
25645
+ destinationMinValue: 1,
25646
+ prettyDestinationMinValue: "1 Salmon Coin",
25647
+ destinationMaxValue: 100,
25648
+ prettyDestinationMaxValue: "100 Salmons",
25649
+ globalRewardKey: null,
25650
+ destinationUnit: "TESTUNIT",
25651
+ steps: [
25652
+ {
25653
+ sourceValue: 1,
25654
+ prettySourceValue: "1 Point",
25655
+ destinationValue: 1,
25656
+ prettyDestinationValue: "1 Salmon Coin",
25657
+ available: true,
25658
+ unavailableReasonCode: null,
25659
+ },
25660
+ {
25661
+ sourceValue: 2,
25662
+ prettySourceValue: "2 Points",
25663
+ destinationValue: 2,
25664
+ prettyDestinationValue: "2 Salmons",
25665
+ available: true,
25666
+ unavailableReasonCode: null,
25667
+ },
25668
+ {
25669
+ sourceValue: 3,
25670
+ prettySourceValue: "3 Points",
25671
+ destinationValue: 3,
25672
+ prettyDestinationValue: "3 Salmons",
25673
+ available: true,
25674
+ unavailableReasonCode: null,
25675
+ },
25676
+ {
25677
+ sourceValue: 4,
25678
+ prettySourceValue: "4 Points",
25679
+ destinationValue: 4,
25680
+ prettyDestinationValue: "4 Salmons",
25681
+ available: true,
25682
+ unavailableReasonCode: null,
25683
+ },
25684
+ {
25685
+ sourceValue: 5,
25686
+ prettySourceValue: "5 Points",
25687
+ destinationValue: 5,
25688
+ prettyDestinationValue: "5 Salmons",
25689
+ available: true,
25690
+ unavailableReasonCode: null,
25691
+ },
25692
+ ],
25693
+ },
25694
+ selectedStep: null,
25695
+ },
25696
+ data: {
25697
+ exchangeList: null,
25698
+ },
25699
+ callbacks: {
25700
+ exchangeReward: null,
25701
+ openDrawer: null,
25702
+ setStage: null,
25703
+ setExchangeState: null,
25704
+ refs: {
25705
+ drawerRef: {},
25706
+ },
25707
+ },
25708
+ refs: null,
25709
+ };
25710
+
25711
+ const RewardExchangeList_stories = {
25712
+ title: "Components/Reward Exchange List",
25713
+ };
25714
+ const resizable$1 = {
25715
+ width: "683px",
25716
+ minWidth: "260px",
25717
+ resize: "horizontal",
25718
+ height: "fit-content",
25719
+ overflow: "hidden",
25720
+ };
25721
+ const Default$c = () => {
25722
+ return (h("div", { style: resizable$1 },
25723
+ h(RewardExchangeView, Object.assign({}, test))));
25724
+ };
25725
+ const Default2 = () => {
25726
+ return (h("div", { style: { ...resizable$1, height: "700px" } },
25727
+ h(RewardExchangeView, Object.assign({}, test2))));
25728
+ };
25729
+
25730
+ const RewardExchangeList = /*#__PURE__*/Object.freeze({
25731
+ __proto__: null,
25732
+ 'default': RewardExchangeList_stories,
25733
+ Default: Default$c,
25734
+ Default2: Default2
25735
+ });
25736
+
25079
25737
  function deepFreeze(obj) {
25080
25738
  if (obj instanceof Map) {
25081
25739
  obj.clear = obj.delete = obj.set = function () {
@@ -27704,8 +28362,10 @@ const stories = [
27704
28362
  Hero,
27705
28363
  ReferralIframe$1,
27706
28364
  NameFields$1,
28365
+ RewardExchangeList,
27707
28366
  UseRewardExchangeList,
27708
28367
  UseTaskCard,
28368
+ UseRewardsTable
27709
28369
  ];
27710
28370
  const StencilStorybook = class {
27711
28371
  constructor(hostRef) {
@@ -27941,4 +28601,4 @@ function useUserNameDemo(props) {
27941
28601
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
27942
28602
  }
27943
28603
 
27944
- export { DividedLayout as sqm_divided_layout, EditProfile as sqm_edit_profile, FormMessage as sqm_form_message, SqmHookStoryContainer as sqm_hook_story_container, NavigationMenu as sqm_navigation_menu, PortalPasswordField as sqm_password_field, PortalChangePassword as sqm_portal_change_password, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramMenu as sqm_program_menu, SqmReferralIframe as sqm_referral_iframe, ReferralTable as sqm_referral_table, ReferralTableCell as sqm_referral_table_cell, ReferralTableDateCell as sqm_referral_table_date_cell, ReferralTableRewardsCell as sqm_referral_table_rewards_cell, ReferralTableStatusCell as sqm_referral_table_status_cell, ReferralTableUserCell as sqm_referral_table_user_cell, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareLink as sqm_share_link, StencilStorybook as sqm_stencilbook, TableCell$1 as sqm_table_cell, TableRow as sqm_table_row, TaskCard$2 as sqm_task_card, Text as sqm_text, UserName$1 as sqm_user_name };
28604
+ export { DividedLayout as sqm_divided_layout, EditProfile as sqm_edit_profile, FormMessage as sqm_form_message, SqmHookStoryContainer as sqm_hook_story_container, NavigationMenu as sqm_navigation_menu, PortalPasswordField as sqm_password_field, PortalChangePassword as sqm_portal_change_password, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramMenu as sqm_program_menu, SqmReferralIframe as sqm_referral_iframe, ReferralTable as sqm_referral_table, ReferralTableCell as sqm_referral_table_cell, ReferralTableDateCell as sqm_referral_table_date_cell, ReferralTableRewardsCell as sqm_referral_table_rewards_cell, ReferralTableStatusCell as sqm_referral_table_status_cell, ReferralTableUserCell as sqm_referral_table_user_cell, SqmRewardExchangeList as sqm_reward_exchange_list, RewardsTable as sqm_rewards_table, RewardsTableColumn as sqm_rewards_table_column, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareLink as sqm_share_link, StencilStorybook as sqm_stencilbook, TableCell$1 as sqm_table_cell, TableRow as sqm_table_row, TaskCard$2 as sqm_task_card, Text as sqm_text, UserName$1 as sqm_user_name };