@saasquatch/mint-components 1.3.1-6 → 1.3.2-2

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 (361) hide show
  1. package/CHANGELOG.md +23 -31
  2. package/dist/cjs/{ShadowViewAddon-a33867b9.js → ShadowViewAddon-75c18b96.js} +1 -1
  3. package/dist/cjs/{global-f4f5e602.js → global-041b5338.js} +334 -176
  4. package/dist/cjs/{sqm-leaderboard-rank-view-54299e38.js → index-19309631.js} +3 -10
  5. package/dist/cjs/{index.module-e9dac160.js → index.module-6a7bda18.js} +3 -2
  6. package/dist/cjs/loader.cjs.js +4 -3
  7. package/dist/cjs/mint-components.cjs.js +4 -3
  8. package/dist/cjs/{re-render-3acba68a.js → re-render-7cdb2d81.js} +1 -1
  9. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
  11. package/dist/cjs/{sqm-divided-layout_26.cjs.entry.js → sqm-divided-layout_27.cjs.entry.js} +1254 -65
  12. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +10 -0
  14. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -7
  15. package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
  16. package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
  17. package/dist/cjs/{sqm-navigation-sidebar-item-view-daa9c2e1.js → sqm-navigation-sidebar-item-view-e99b4a10.js} +1 -1
  18. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  19. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  20. package/dist/cjs/{sqm-portal-email-verification-view-395079fe.js → sqm-portal-email-verification-view-5e955797.js} +1 -1
  21. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -4
  22. package/dist/cjs/{sqm-portal-footer-view-c82aedb5.js → sqm-portal-footer-view-9089feb7.js} +1 -1
  23. package/dist/cjs/sqm-portal-footer.cjs.entry.js +4 -3
  24. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
  25. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  26. package/dist/cjs/{sqm-portal-profile-view-9fa00ccd.js → sqm-portal-profile-view-a23ea292.js} +1 -1
  27. package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -3
  28. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  29. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  30. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  31. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
  32. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
  33. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
  34. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
  35. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
  36. package/dist/cjs/sqm-rewards-table.cjs.entry.js +332 -0
  37. package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
  38. package/dist/cjs/sqm-task-card-view-57066e67.js +476 -0
  39. package/dist/cjs/sqm-task-card.cjs.entry.js +56 -0
  40. package/dist/cjs/tslib.es6-0e81fab1.js +56 -0
  41. package/dist/cjs/useChildElements-428ca5b8.js +21 -0
  42. package/dist/cjs/{useDemoBigStat-e99cc8a2.js → useDemoBigStat-17e61803.js} +3 -2
  43. package/dist/collection/collection-manifest.json +6 -3
  44. package/dist/collection/{stories → components/sqm-asset-card}/AssetCard.stories.js +2 -2
  45. package/dist/collection/{stories → components/sqm-big-stat}/BigStat.stories.js +2 -2
  46. package/dist/collection/{stories → components/sqm-big-stat}/UseBigStat.stories.js +4 -4
  47. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +0 -20
  48. package/dist/collection/components/sqm-big-stat/useBigStat.js +2 -1
  49. package/dist/collection/{stories → components/sqm-divided-layout}/DividedLayout.stories.js +4 -4
  50. package/dist/collection/{stories → components/sqm-edit-profile}/EditProfileForm.stories.js +2 -2
  51. package/dist/collection/{stories → components/sqm-edit-profile}/UseEditProfile.stories.js +1 -1
  52. package/dist/collection/{stories → components/sqm-form-message}/FormMessage.stories.js +1 -1
  53. package/dist/collection/{stories → components/sqm-hero}/Hero.stories.js +2 -2
  54. package/dist/collection/{stories → components/sqm-leaderboard}/Leaderboard.stories.js +2 -2
  55. package/dist/collection/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.js +3 -3
  56. package/dist/collection/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.js +2 -2
  57. package/dist/collection/{stories → components/sqm-name-fields}/NameFields.stories.js +2 -2
  58. package/dist/collection/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.js +3 -3
  59. package/dist/collection/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.js +2 -2
  60. package/dist/collection/{stories → components/sqm-password-field}/PasswordField.stories.js +1 -1
  61. package/dist/collection/{stories → components/sqm-portal-change-password}/ChangePassword.stories.js +3 -3
  62. package/dist/collection/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.js +3 -3
  63. package/dist/collection/{stories → components/sqm-portal-footer}/PortalFooter.stories.js +2 -2
  64. package/dist/collection/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.js +3 -3
  65. package/dist/collection/{stories → components/sqm-portal-frame}/PortalFrame.stories.js +2 -2
  66. package/dist/collection/{stories → components/sqm-portal-login}/PortalLogin.stories.js +2 -2
  67. package/dist/collection/{stories → components/sqm-portal-profile}/PortalProfile.stories.js +2 -2
  68. package/dist/collection/{stories → components/sqm-portal-register}/PortalRegister.stories.js +2 -2
  69. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -1
  70. package/dist/collection/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.js +3 -3
  71. package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js +3 -3
  72. package/dist/collection/{stories → components/sqm-program-menu}/ProgramMenu.stories.js +2 -2
  73. package/dist/collection/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.js +2 -2
  74. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTable.stories.js +2 -2
  75. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableCell.stories.js +1 -1
  76. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.js +1 -1
  77. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
  78. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -1
  79. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -1
  80. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -1
  81. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +1 -1
  82. package/dist/collection/components/sqm-referral-table/useReferralTable.js +2 -2
  83. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +17 -0
  84. package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +143 -0
  85. package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
  86. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +74 -0
  87. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +234 -0
  88. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +120 -0
  89. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +196 -0
  90. package/dist/collection/{stories → components/sqm-rewards-table}/Router.stories.js +1 -1
  91. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +222 -0
  92. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +195 -0
  93. package/dist/collection/{stories → components/sqm-share-button}/ShareButton.stories.js +2 -2
  94. package/dist/collection/{stories → components/sqm-share-button}/UseShareButton.stories.js +2 -2
  95. package/dist/collection/{stories → components/sqm-share-link}/ShareLink.stories.js +2 -2
  96. package/dist/collection/{stories → components/sqm-share-link}/UseShareLink.stories.js +3 -3
  97. package/dist/collection/components/sqm-share-link/useShareLink.js +1 -2
  98. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +40 -36
  99. package/dist/collection/components/sqm-task-card/Matrix.js +63 -0
  100. package/dist/collection/components/sqm-task-card/SVGs.js +15 -0
  101. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +499 -0
  102. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +458 -0
  103. package/dist/collection/components/sqm-task-card/sqm-task-card.js +324 -0
  104. package/dist/collection/{stories → components/sqm-user-name}/UserName.stories.js +3 -3
  105. package/dist/collection/global/styles.js +278 -69
  106. package/dist/collection/global/styles.ts +278 -69
  107. package/dist/collection/tables/GenericTableView.js +51 -0
  108. package/dist/collection/tables/TableSlots.js +22 -0
  109. package/dist/collection/{components/sqm-referral-table → tables}/re-render.js +0 -0
  110. package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-cell.js +0 -0
  111. package/dist/collection/{components/sqm-referral-table → tables}/sqm-table-row.js +0 -0
  112. package/dist/collection/{components/sqm-referral-table → tables}/useChildElements.js +0 -0
  113. package/dist/esm/{ShadowViewAddon-7cbc6390.js → ShadowViewAddon-fff5d35d.js} +1 -1
  114. package/dist/esm/{global-5dfb4fa8.js → global-5ecbf81a.js} +281 -123
  115. package/dist/esm/{sqm-leaderboard-rank-view-04161da4.js → index-2f5dd0a1.js} +3 -9
  116. package/dist/esm/{index.module-07f3fbb0.js → index.module-f80561db.js} +2 -2
  117. package/dist/esm/loader.js +4 -3
  118. package/dist/esm/mint-components.js +4 -3
  119. package/dist/esm/{re-render-0be5746e.js → re-render-9ab5fe0f.js} +1 -1
  120. package/dist/esm/sqm-asset-card.entry.js +1 -1
  121. package/dist/esm/sqm-big-stat.entry.js +2 -2
  122. package/dist/esm/{sqm-divided-layout_26.entry.js → sqm-divided-layout_27.entry.js} +1250 -62
  123. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  124. package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +8 -0
  125. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -3
  126. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  127. package/dist/esm/sqm-name-fields.entry.js +1 -1
  128. package/dist/esm/{sqm-navigation-sidebar-item-view-78631800.js → sqm-navigation-sidebar-item-view-8a3f374b.js} +1 -1
  129. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  130. package/dist/esm/sqm-popup-container.entry.js +1 -1
  131. package/dist/esm/{sqm-portal-email-verification-view-d6ffe3b8.js → sqm-portal-email-verification-view-90781be2.js} +1 -1
  132. package/dist/esm/sqm-portal-email-verification.entry.js +5 -4
  133. package/dist/esm/{sqm-portal-footer-view-5aa288c9.js → sqm-portal-footer-view-c317518e.js} +1 -1
  134. package/dist/esm/sqm-portal-footer.entry.js +4 -3
  135. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  136. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  137. package/dist/esm/{sqm-portal-profile-view-636a8688.js → sqm-portal-profile-view-824c8242.js} +1 -1
  138. package/dist/esm/sqm-portal-profile.entry.js +4 -3
  139. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  140. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  141. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  142. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  143. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  144. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  145. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  146. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  147. package/dist/esm/sqm-rewards-table.entry.js +328 -0
  148. package/dist/esm/sqm-share-code.entry.js +1 -1
  149. package/dist/esm/sqm-task-card-view-2ee495af.js +474 -0
  150. package/dist/esm/sqm-task-card.entry.js +52 -0
  151. package/dist/esm/tslib.es6-7ac9d7e4.js +53 -0
  152. package/dist/esm/useChildElements-506f00d0.js +19 -0
  153. package/dist/esm/{useDemoBigStat-531a4d2a.js → useDemoBigStat-b71fe122.js} +3 -2
  154. package/dist/esm-es5/{ShadowViewAddon-7cbc6390.js → ShadowViewAddon-fff5d35d.js} +1 -1
  155. package/dist/esm-es5/{global-5dfb4fa8.js → global-5ecbf81a.js} +2 -16
  156. package/dist/esm-es5/index-2f5dd0a1.js +1 -0
  157. package/dist/esm-es5/{index.module-07f3fbb0.js → index.module-f80561db.js} +1 -1
  158. package/dist/esm-es5/loader.js +1 -1
  159. package/dist/esm-es5/mint-components.js +1 -1
  160. package/dist/esm-es5/{re-render-0be5746e.js → re-render-9ab5fe0f.js} +1 -1
  161. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  162. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  163. package/dist/esm-es5/sqm-divided-layout_27.entry.js +1 -0
  164. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  165. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +1 -0
  166. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  167. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  168. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  169. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-78631800.js → sqm-navigation-sidebar-item-view-8a3f374b.js} +1 -1
  170. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  171. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  172. package/dist/esm-es5/{sqm-portal-email-verification-view-d6ffe3b8.js → sqm-portal-email-verification-view-90781be2.js} +1 -1
  173. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  174. package/dist/esm-es5/{sqm-portal-footer-view-5aa288c9.js → sqm-portal-footer-view-c317518e.js} +1 -1
  175. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  176. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  177. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  178. package/dist/esm-es5/{sqm-portal-profile-view-636a8688.js → sqm-portal-profile-view-824c8242.js} +1 -1
  179. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  180. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  181. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  182. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  183. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  184. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  185. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  186. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  187. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  188. package/dist/esm-es5/sqm-rewards-table.entry.js +1 -0
  189. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  190. package/dist/esm-es5/sqm-task-card-view-2ee495af.js +1 -0
  191. package/dist/esm-es5/sqm-task-card.entry.js +1 -0
  192. package/dist/esm-es5/tslib.es6-7ac9d7e4.js +15 -0
  193. package/dist/esm-es5/useChildElements-506f00d0.js +1 -0
  194. package/dist/esm-es5/{useDemoBigStat-531a4d2a.js → useDemoBigStat-b71fe122.js} +1 -1
  195. package/dist/mint-components/assets/Reward-icon.png +0 -0
  196. package/dist/mint-components/global/styles.ts +278 -69
  197. package/dist/mint-components/mint-components.esm.js +1 -1
  198. package/dist/mint-components/mint-components.js +1 -1
  199. package/dist/mint-components/{p-f7118fd5.js → p-00190438.js} +1 -1
  200. package/dist/mint-components/{p-40f1482a.system.entry.js → p-04516274.system.entry.js} +1 -1
  201. package/dist/mint-components/{p-99f85aae.js → p-05cca77b.js} +1 -1
  202. package/dist/mint-components/{p-f5333477.system.entry.js → p-0688c9c2.system.entry.js} +1 -1
  203. package/dist/mint-components/p-0ba3c956.system.entry.js +1 -0
  204. package/dist/mint-components/{p-420e50a8.entry.js → p-11c75956.entry.js} +1 -1
  205. package/dist/mint-components/{p-a1029019.system.entry.js → p-16535642.system.entry.js} +1 -1
  206. package/dist/mint-components/{p-d98a6a1c.entry.js → p-16da5146.entry.js} +1 -1
  207. package/dist/mint-components/{p-730785e9.system.js → p-1813b9b9.system.js} +1 -1
  208. package/dist/mint-components/p-189219ee.system.js +1 -0
  209. package/dist/mint-components/{p-84da6c55.system.entry.js → p-1ac9c24b.system.entry.js} +1 -1
  210. package/dist/mint-components/{p-1af6d49d.system.entry.js → p-1b414d8f.system.entry.js} +1 -1
  211. package/dist/mint-components/p-1e248afc.system.entry.js +1 -0
  212. package/dist/mint-components/{p-d32ebb2d.system.js → p-1fb688a9.system.js} +1 -1
  213. package/dist/mint-components/p-21dfdeb8.entry.js +1 -0
  214. package/dist/mint-components/p-23a0bdae.entry.js +1 -0
  215. package/dist/mint-components/{p-f05f6004.system.entry.js → p-2a025d2a.system.entry.js} +1 -1
  216. package/dist/mint-components/{p-91c46672.js → p-2bce988c.js} +1 -1
  217. package/dist/mint-components/{p-aeb995ca.entry.js → p-2f171597.entry.js} +1 -1
  218. package/dist/mint-components/{p-3f3b81de.system.js → p-3052c913.system.js} +1 -1
  219. package/dist/mint-components/{p-a12e34b0.entry.js → p-337b49ee.entry.js} +1 -1
  220. package/dist/mint-components/p-353b4413.system.js +1 -0
  221. package/dist/mint-components/{p-552a99b9.system.js → p-3b0acfcd.system.js} +1 -1
  222. package/dist/mint-components/{p-24cc7ee3.system.entry.js → p-3fd33dee.system.entry.js} +1 -1
  223. package/dist/mint-components/{p-52be0df6.js → p-405a9253.js} +2 -2
  224. package/dist/mint-components/{p-1c69eba7.js → p-434ee9c1.js} +1 -1
  225. package/dist/mint-components/p-4ba2faf2.system.entry.js +1 -0
  226. package/dist/mint-components/{p-e1549548.system.entry.js → p-505f5c59.system.entry.js} +1 -1
  227. package/dist/mint-components/p-55e02769.entry.js +13 -0
  228. package/dist/mint-components/{p-cb8a3610.system.entry.js → p-57a53dbd.system.entry.js} +1 -1
  229. package/dist/mint-components/p-58d9b2f0.js +15 -0
  230. package/dist/mint-components/{p-d9123a4a.system.entry.js → p-5dfc6804.system.entry.js} +1 -1
  231. package/dist/mint-components/{p-94c25cfe.entry.js → p-5f28af29.entry.js} +1 -1
  232. package/dist/mint-components/{p-6a9b7f7c.entry.js → p-6cdc70f4.entry.js} +1 -1
  233. package/dist/mint-components/{p-e3d75555.entry.js → p-6d545e13.entry.js} +1 -1
  234. package/dist/mint-components/p-70837c1c.entry.js +49 -0
  235. package/dist/mint-components/p-71d942af.entry.js +9 -0
  236. package/dist/mint-components/p-7c138c84.entry.js +1 -0
  237. package/dist/mint-components/{p-7e6a38d0.system.entry.js → p-7c13e32e.system.entry.js} +1 -1
  238. package/dist/mint-components/p-7c261ea0.system.entry.js +1 -0
  239. package/dist/mint-components/p-8034f81c.system.entry.js +1 -0
  240. package/dist/mint-components/p-82ab88fe.system.js +1 -0
  241. package/dist/mint-components/{p-453df041.entry.js → p-82d7a2ba.entry.js} +1 -1
  242. package/dist/mint-components/{p-df3a9a38.entry.js → p-844f9bad.entry.js} +1 -1
  243. package/dist/mint-components/{p-8edba448.js → p-844fd903.js} +1 -1
  244. package/dist/mint-components/p-8c16f04e.js +1 -0
  245. package/dist/mint-components/{p-ccddec52.js → p-8e37c08d.js} +1 -1
  246. package/dist/mint-components/p-8f5e2af4.entry.js +1 -0
  247. package/dist/mint-components/p-91d39961.system.js +1 -0
  248. package/dist/mint-components/{p-23f0e229.system.entry.js → p-a0045707.system.entry.js} +1 -1
  249. package/dist/mint-components/{p-6a95537b.system.js → p-a0cfd3d9.system.js} +1 -1
  250. package/dist/mint-components/{p-0d3f2c66.entry.js → p-a4a00461.entry.js} +1 -1
  251. package/dist/mint-components/{p-2818f3a0.entry.js → p-a7f0b2f6.entry.js} +1 -1
  252. package/dist/mint-components/{p-48b04ef0.entry.js → p-aba21f90.entry.js} +1 -1
  253. package/dist/mint-components/{p-92671ed2.system.entry.js → p-af06ea5b.system.entry.js} +1 -1
  254. package/dist/mint-components/p-b3af1c6f.js +1 -0
  255. package/dist/mint-components/p-bca8867d.entry.js +287 -0
  256. package/dist/mint-components/p-bf04a8e1.system.entry.js +1 -0
  257. package/dist/mint-components/p-bf055b6c.system.js +1 -0
  258. package/dist/mint-components/p-c3866bfa.system.entry.js +1 -0
  259. package/dist/mint-components/p-c9c4f31b.system.entry.js +1 -0
  260. package/dist/mint-components/{p-6accffd6.js → p-cc3510c8.js} +1 -1
  261. package/dist/mint-components/{p-77cf28f1.system.js → p-ceeaf074.system.js} +21 -35
  262. package/dist/mint-components/{p-4018d7eb.entry.js → p-d3787c3a.entry.js} +1 -1
  263. package/dist/mint-components/{p-705141c1.entry.js → p-d9cc041f.entry.js} +1 -1
  264. package/dist/mint-components/p-db723323.system.entry.js +1 -0
  265. package/dist/mint-components/p-dd6a666e.system.js +15 -0
  266. package/dist/mint-components/p-dfc3cf82.js +1 -0
  267. package/dist/mint-components/p-e19a57a4.system.entry.js +1 -0
  268. package/dist/mint-components/{p-3e5c8dc2.entry.js → p-e22eed7b.entry.js} +1 -1
  269. package/dist/mint-components/p-e2ebe90c.entry.js +1 -0
  270. package/dist/mint-components/{p-9fb97b00.system.entry.js → p-e475a5ff.system.entry.js} +1 -1
  271. package/dist/mint-components/p-e78a5a91.js +1 -0
  272. package/dist/mint-components/{p-11fe72bd.entry.js → p-e9ab90a1.entry.js} +1 -1
  273. package/dist/mint-components/p-ecbabf6e.system.js +1 -0
  274. package/dist/mint-components/{p-80a40e90.js → p-f1e1086e.js} +2 -17
  275. package/dist/mint-components/p-f41ab9e1.system.js +1 -0
  276. package/dist/mint-components/{p-44a83e6e.system.js → p-f87d8f53.system.js} +1 -1
  277. package/dist/mint-components/p-fcaa5886.system.entry.js +1 -0
  278. package/dist/types/{stories → components/sqm-asset-card}/AssetCard.stories.d.ts +0 -0
  279. package/dist/types/{stories → components/sqm-big-stat}/BigStat.stories.d.ts +0 -0
  280. package/dist/types/{stories → components/sqm-big-stat}/UseBigStat.stories.d.ts +0 -0
  281. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +0 -6
  282. package/dist/types/{stories → components/sqm-divided-layout}/DividedLayout.stories.d.ts +0 -0
  283. package/dist/types/{stories → components/sqm-edit-profile}/EditProfileForm.stories.d.ts +0 -0
  284. package/dist/types/{stories → components/sqm-edit-profile}/UseEditProfile.stories.d.ts +0 -0
  285. package/dist/types/{stories → components/sqm-form-message}/FormMessage.stories.d.ts +0 -0
  286. package/dist/types/{stories → components/sqm-hero}/Hero.stories.d.ts +0 -0
  287. package/dist/types/{stories → components/sqm-leaderboard}/Leaderboard.stories.d.ts +0 -0
  288. package/dist/types/{stories → components/sqm-leaderboard}/UseLeaderboard.stories.d.ts +0 -0
  289. package/dist/types/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.d.ts +0 -0
  290. package/dist/types/{stories → components/sqm-name-fields}/NameFields.stories.d.ts +0 -0
  291. package/dist/types/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.d.ts +0 -0
  292. package/dist/types/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.d.ts +0 -0
  293. package/dist/types/{stories → components/sqm-password-field}/PasswordField.stories.d.ts +0 -0
  294. package/dist/types/{stories → components/sqm-portal-change-password}/ChangePassword.stories.d.ts +0 -0
  295. package/dist/types/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.d.ts +0 -0
  296. package/dist/types/{stories → components/sqm-portal-footer}/PortalFooter.stories.d.ts +0 -0
  297. package/dist/types/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.d.ts +0 -0
  298. package/dist/types/{stories → components/sqm-portal-frame}/PortalFrame.stories.d.ts +0 -0
  299. package/dist/types/{stories → components/sqm-portal-login}/PortalLogin.stories.d.ts +0 -0
  300. package/dist/types/{stories → components/sqm-portal-profile}/PortalProfile.stories.d.ts +0 -0
  301. package/dist/types/{stories → components/sqm-portal-register}/PortalRegister.stories.d.ts +0 -0
  302. package/dist/types/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.d.ts +0 -0
  303. package/dist/types/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.d.ts +0 -0
  304. package/dist/types/{stories → components/sqm-program-menu}/ProgramMenu.stories.d.ts +0 -0
  305. package/dist/types/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.d.ts +0 -0
  306. package/dist/types/{stories → components/sqm-referral-table}/ReferralTable.stories.d.ts +0 -0
  307. package/dist/types/{stories → components/sqm-referral-table}/ReferralTableCell.stories.d.ts +0 -0
  308. package/dist/types/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.d.ts +0 -0
  309. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +2 -0
  310. package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +28 -0
  311. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +3 -0
  312. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +26 -0
  313. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +20 -0
  314. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +43 -0
  315. package/dist/types/{stories → components/sqm-rewards-table}/Router.stories.d.ts +0 -0
  316. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +32 -0
  317. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +5 -0
  318. package/dist/types/{stories → components/sqm-share-button}/ShareButton.stories.d.ts +0 -0
  319. package/dist/types/{stories → components/sqm-share-button}/UseShareButton.stories.d.ts +0 -0
  320. package/dist/types/{stories → components/sqm-share-link}/ShareLink.stories.d.ts +0 -0
  321. package/dist/types/{stories → components/sqm-share-link}/UseShareLink.stories.d.ts +0 -0
  322. package/dist/types/components/sqm-task-card/Matrix.d.ts +11 -0
  323. package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -0
  324. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +9 -0
  325. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +25 -0
  326. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +61 -0
  327. package/dist/types/components/sqm-user-name/UserName.stories.d.ts +6 -0
  328. package/dist/types/components.d.ts +223 -10
  329. package/dist/types/global/styles.d.ts +1 -1
  330. package/dist/types/tables/GenericTableView.d.ts +29 -0
  331. package/dist/types/tables/TableSlots.d.ts +8 -0
  332. package/dist/types/{components/sqm-referral-table → tables}/re-render.d.ts +0 -0
  333. package/dist/types/{components/sqm-referral-table → tables}/sqm-table-cell.d.ts +0 -0
  334. package/dist/types/{components/sqm-referral-table → tables}/sqm-table-row.d.ts +0 -0
  335. package/dist/types/{components/sqm-referral-table → tables}/useChildElements.d.ts +0 -0
  336. package/grapesjs/grapesjs.js +1 -1
  337. package/package.json +2 -2
  338. package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
  339. package/dist/esm-es5/sqm-leaderboard-rank-view-04161da4.js +0 -1
  340. package/dist/mint-components/p-087571f1.entry.js +0 -13
  341. package/dist/mint-components/p-0996811b.entry.js +0 -1
  342. package/dist/mint-components/p-0ed2de6a.js +0 -1
  343. package/dist/mint-components/p-253d07a3.system.entry.js +0 -1
  344. package/dist/mint-components/p-3ace9bab.entry.js +0 -230
  345. package/dist/mint-components/p-3fc2b5d4.system.js +0 -1
  346. package/dist/mint-components/p-45befbb8.system.entry.js +0 -1
  347. package/dist/mint-components/p-4a9dcc1f.system.js +0 -1
  348. package/dist/mint-components/p-4ca49eb2.system.entry.js +0 -1
  349. package/dist/mint-components/p-54d90d9f.system.entry.js +0 -1
  350. package/dist/mint-components/p-55580223.system.js +0 -1
  351. package/dist/mint-components/p-6bbb9d5a.system.entry.js +0 -1
  352. package/dist/mint-components/p-72420d6b.system.entry.js +0 -1
  353. package/dist/mint-components/p-7f7f60ea.entry.js +0 -1
  354. package/dist/mint-components/p-a60e8e00.system.entry.js +0 -1
  355. package/dist/mint-components/p-ab551be3.system.entry.js +0 -1
  356. package/dist/mint-components/p-ab9ef09d.entry.js +0 -9
  357. package/dist/mint-components/p-b745adaa.system.js +0 -1
  358. package/dist/mint-components/p-b95eaf63.entry.js +0 -1
  359. package/dist/mint-components/p-c6f2d1f4.system.entry.js +0 -1
  360. package/dist/mint-components/p-cac1ffd0.entry.js +0 -1
  361. package/dist/types/stories/UserName.stories.d.ts +0 -6
@@ -1,9 +1,10 @@
1
- import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
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-5dfb4fa8.js';
3
+ import { i as intl, a as insertCSS } from './global-5ecbf81a.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 } from './index.module-07f3fbb0.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';
6
6
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
7
+ import './tslib.es6-7ac9d7e4.js';
7
8
  import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
8
9
  import { g as getProps, a as getMissingProps } from './utils-454405f5.js';
9
10
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -11,21 +12,24 @@ import { E as ErrorStyles, H as HostBlock, A as AuthWrapper, a as AuthColumn, b
11
12
  import { P as PortalContainerView } from './sqm-portal-container-view-73757ca5.js';
12
13
  import { P as PortalSectionView } from './sqm-portal-section-view-f0876545.js';
13
14
  import { T as TextSpanView } from './sqm-text-span-view-1781df94.js';
14
- import { g as gql, L as LeaderboardRankView } from './sqm-leaderboard-rank-view-04161da4.js';
15
- import { u as useRerenderListener } from './re-render-0be5746e.js';
16
- import { p as pathToRegexp, B as BigStatView, u as useBigStat, a as useDemoBigStat } from './useDemoBigStat-531a4d2a.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-b71fe122.js';
17
19
  import { S as ShareLinkView } from './sqm-share-link-view-9282b8e8.js';
18
- import { L as LeaderboardView, u as useLeaderboard, S as ShadowViewAddon } from './ShadowViewAddon-7cbc6390.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';
19
22
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-2242502c.js';
20
- import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-78631800.js';
23
+ import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-8a3f374b.js';
21
24
  import { S as StatContainerView } from './sqm-stat-container-view-4133feb6.js';
22
- import { P as PortalProfileView } from './sqm-portal-profile-view-636a8688.js';
25
+ import { P as PortalProfileView } from './sqm-portal-profile-view-824c8242.js';
23
26
  import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-e3a6a716.js';
24
- import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-d6ffe3b8.js';
27
+ import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-90781be2.js';
25
28
  import { P as PortalResetPasswordView$1 } from './sqm-portal-reset-password-view-a4e50da2.js';
26
29
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-6f18bac2.js';
27
30
  import { A as AssetCardView } from './sqm-asset-card-view-6f360937.js';
28
- import { P as PoweredByImg$1, a as PortalFooterView } from './sqm-portal-footer-view-5aa288c9.js';
31
+ import { T as TaskCardView } from './sqm-task-card-view-2ee495af.js';
32
+ import { P as PoweredByImg$1, a as PortalFooterView } from './sqm-portal-footer-view-c317518e.js';
29
33
  import { H as HeroView } from './sqm-hero-view-bfd8abd1.js';
30
34
  import { N as NameFieldsView } from './sqm-name-fields-view-4162fb7b.js';
31
35
 
@@ -5872,21 +5876,6 @@ function ReferralTableView(props) {
5872
5876
  h("sl-button", { size: "small", loading: states.loading, disabled: !states.hasNext, onClick: callbacks.nextPage, exportparts: "base: defaultbutton-base" }, data.textOverrides.moreLabel))));
5873
5877
  }
5874
5878
 
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
-
5890
5879
  const GET_REFERRER_DATA = gql `
5891
5880
  query getReferrals($programId: ID, $rewardFilter: RewardFilterInput) {
5892
5881
  viewer {
@@ -14745,6 +14734,561 @@ const ReferralTableUserCell = class {
14745
14734
  }
14746
14735
  };
14747
14736
 
14737
+ const GET_EXCHANGE_LIST = dist.gql `
14738
+ query getExchangeList {
14739
+ viewer {
14740
+ ... on User {
14741
+ visibleRewardExchangeItems(limit: 20, offset: 0) {
14742
+ data {
14743
+ key
14744
+ name
14745
+ description
14746
+ imageUrl
14747
+ available
14748
+ unavailableReason
14749
+ unavailableReasonCode
14750
+ ruleType
14751
+ sourceUnit
14752
+ sourceValue
14753
+ prettySourceValue
14754
+ sourceMinValue
14755
+ prettySourceMinValue
14756
+ sourceMaxValue
14757
+ prettySourceMaxValue
14758
+ destinationMinValue
14759
+ prettyDestinationMinValue
14760
+ destinationMaxValue
14761
+ prettyDestinationMaxValue
14762
+ globalRewardKey
14763
+ destinationUnit
14764
+ steps {
14765
+ sourceValue
14766
+ prettySourceValue
14767
+ destinationValue
14768
+ prettyDestinationValue
14769
+ available
14770
+ }
14771
+ }
14772
+ totalCount
14773
+ }
14774
+ }
14775
+ }
14776
+ }
14777
+ `;
14778
+ const EXCHANGE = dist.gql `
14779
+ mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
14780
+ exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
14781
+ reward {
14782
+ id
14783
+ fuelTankCode
14784
+ }
14785
+ }
14786
+ }
14787
+ `;
14788
+ function useRewardExchangeList(props) {
14789
+ var _a, _b, _c, _d;
14790
+ const drawerRef = useRef();
14791
+ const [exchangeState, setExchangeState] = useReducer((state, next) => ({
14792
+ ...state,
14793
+ ...next,
14794
+ }), {
14795
+ selectedItem: undefined,
14796
+ selectedStep: undefined,
14797
+ redeemStage: "",
14798
+ amount: 0,
14799
+ exchangeError: false,
14800
+ });
14801
+ const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
14802
+ const user = T$1();
14803
+ const [exchange, { data: exchangeResponse, errors }] = be(EXCHANGE);
14804
+ const { data } = en(GET_EXCHANGE_LIST, !(user === null || user === void 0 ? void 0 : user.jwt));
14805
+ useEffect(() => {
14806
+ var _a, _b;
14807
+ if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
14808
+ setExchangeState({ redeemStage: "success" });
14809
+ }
14810
+ if (!!errors) {
14811
+ console.log("YEA");
14812
+ setExchangeState({ exchangeError: true });
14813
+ }
14814
+ }, [exchangeResponse, errors]);
14815
+ function openDrawer() {
14816
+ var _a;
14817
+ setExchangeState({ redeemStage: "chooseReward" });
14818
+ (_a = drawerRef.current) === null || _a === void 0 ? void 0 : _a.show();
14819
+ }
14820
+ function exchangeReward() {
14821
+ if (!selectedItem)
14822
+ return;
14823
+ let exchangeVariables = {
14824
+ accountId: user === null || user === void 0 ? void 0 : user.accountId,
14825
+ userId: user.id,
14826
+ };
14827
+ switch (selectedItem.ruleType) {
14828
+ case "FIXED_GLOBAL_REWARD":
14829
+ exchangeVariables = {
14830
+ ...exchangeVariables,
14831
+ redeemCreditInput: {
14832
+ amount: selectedItem.sourceValue,
14833
+ unit: selectedItem.sourceUnit,
14834
+ },
14835
+ globalRewardKey: selectedItem.globalRewardKey,
14836
+ };
14837
+ break;
14838
+ case "VARIABLE_GLOBAL_REWARD":
14839
+ exchangeVariables = {
14840
+ ...exchangeVariables,
14841
+ redeemCreditInput: {
14842
+ amount: amount,
14843
+ unit: selectedItem.sourceUnit,
14844
+ },
14845
+ globalRewardKey: selectedItem.globalRewardKey,
14846
+ rewardInput: {
14847
+ valueInCents: selectedStep.destinationValue,
14848
+ },
14849
+ };
14850
+ break;
14851
+ case "VARIABLE_CREDIT_REWARD":
14852
+ exchangeVariables = {
14853
+ ...exchangeVariables,
14854
+ redeemCreditInput: {
14855
+ amount: amount,
14856
+ unit: selectedItem.sourceUnit,
14857
+ },
14858
+ rewardInput: {
14859
+ type: "CREDIT",
14860
+ unit: selectedItem.destinationUnit,
14861
+ assignedCredit: selectedStep.destinationValue,
14862
+ },
14863
+ };
14864
+ break;
14865
+ default:
14866
+ exchangeVariables = {
14867
+ ...exchangeVariables,
14868
+ redeemCreditInput: {
14869
+ amount: selectedItem.sourceValue,
14870
+ unit: selectedItem.sourceUnit,
14871
+ },
14872
+ globalRewardKey: selectedItem.globalRewardKey,
14873
+ };
14874
+ }
14875
+ exchange({ exchangeRewardInput: exchangeVariables });
14876
+ }
14877
+ const resetState = useCallback((e) => {
14878
+ var _a, _b;
14879
+ // selects also trigger an sl-hide event :(
14880
+ //@ts-ignore - componentId is not private here
14881
+ if (((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.componentId) !== ((_b = drawerRef.current) === null || _b === void 0 ? void 0 : _b.componentId))
14882
+ return;
14883
+ setExchangeState({
14884
+ amount: 0,
14885
+ selectedStep: undefined,
14886
+ selectedItem: undefined,
14887
+ exchangeError: false,
14888
+ });
14889
+ }, []);
14890
+ useEffect(() => {
14891
+ if (!(drawerRef === null || drawerRef === void 0 ? void 0 : drawerRef.current))
14892
+ return;
14893
+ const drawer = drawerRef.current;
14894
+ // Clear input value when drawer is closed
14895
+ drawer.addEventListener("sl-hide", resetState);
14896
+ return () => {
14897
+ drawer.removeEventListener("sl-hide", resetState);
14898
+ };
14899
+ }, [drawerRef.current]);
14900
+ function setStage(stage) {
14901
+ setExchangeState({ redeemStage: stage });
14902
+ }
14903
+ return {
14904
+ states: {
14905
+ content: {
14906
+ text: props,
14907
+ },
14908
+ selectedItem,
14909
+ redeemStage,
14910
+ amount,
14911
+ selectedStep,
14912
+ exchangeError,
14913
+ },
14914
+ data: {
14915
+ exchangeList: (_b = (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.visibleRewardExchangeItems) === null || _b === void 0 ? void 0 : _b.data,
14916
+ //@ts-ignore
14917
+ fuelTankCode: (_d = (_c = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _c === void 0 ? void 0 : _c.reward) === null || _d === void 0 ? void 0 : _d.fuelTankCode,
14918
+ },
14919
+ callbacks: {
14920
+ exchangeReward,
14921
+ openDrawer,
14922
+ setExchangeState,
14923
+ setStage,
14924
+ },
14925
+ refs: {
14926
+ drawerRef,
14927
+ },
14928
+ };
14929
+ }
14930
+
14931
+ function Dot({ active, completed, incomplete, }) {
14932
+ return (h("div", { style: {
14933
+ flex: "0 0 0",
14934
+ content: "''",
14935
+ height: "4px",
14936
+ borderRadius: "4px",
14937
+ background: incomplete ? "#E5E5E5" : "#9E9E9E",
14938
+ position: "relative",
14939
+ bottom: "0",
14940
+ left: "0",
14941
+ display: "flex",
14942
+ justifyContent: "center",
14943
+ columnGap: "50px",
14944
+ marginRight: "-2px",
14945
+ boxSizing: "content-box",
14946
+ } },
14947
+ h("div", { style: {
14948
+ backgroundColor: completed ? "#9E9E9E" : "#FFF",
14949
+ border: active
14950
+ ? "2px solid #9E9E9E"
14951
+ : incomplete
14952
+ ? "2px solid #E5E5E5"
14953
+ : "none",
14954
+ borderRadius: "50%",
14955
+ width: completed ? "12px" : "8px",
14956
+ height: completed ? "12px" : "8px",
14957
+ margin: "-4px auto 0px",
14958
+ zIndex: "1",
14959
+ boxSizing: "content-box",
14960
+ } })));
14961
+ }
14962
+ function Progress({ active, completed, incomplete }) {
14963
+ return [
14964
+ h("div", { style: {
14965
+ content: "''",
14966
+ flex: "0.5 0.5 0",
14967
+ height: "4px",
14968
+ borderRadius: "4px",
14969
+ background: incomplete ? "#E5E5E5" : "#9E9E9E",
14970
+ position: "relative",
14971
+ bottom: "0",
14972
+ left: "0",
14973
+ display: "flex",
14974
+ justifyContent: "center",
14975
+ columnGap: "50px",
14976
+ marginRight: "-2px",
14977
+ boxSizing: "content-box",
14978
+ } }),
14979
+ h(Dot, { active: active, completed: completed, incomplete: incomplete }),
14980
+ h("div", { style: {
14981
+ content: "''",
14982
+ flex: "0.5 0.5 0",
14983
+ height: "4px",
14984
+ borderRadius: "4px",
14985
+ background: incomplete || active ? "#E5E5E5" : "#9E9E9E",
14986
+ position: "relative",
14987
+ bottom: "0",
14988
+ left: "0",
14989
+ display: "flex",
14990
+ justifyContent: "center",
14991
+ columnGap: "50px",
14992
+ marginRight: "-2px",
14993
+ boxSizing: "content-box",
14994
+ } }),
14995
+ ];
14996
+ }
14997
+ function ProgressBar({ stage }) {
14998
+ console.log({ stage });
14999
+ return (h("div", { style: { display: "flex", columnGap: "-2px" } },
15000
+ h(Progress, { active: stage === 0, completed: stage > 0, incomplete: stage < 0 }),
15001
+ h(Progress, { active: stage === 1, completed: stage > 1, incomplete: stage < 1 }),
15002
+ h(Progress, { active: stage === 2, completed: stage > 2, incomplete: stage < 2 })));
15003
+ }
15004
+
15005
+ const LeftArrow = () => (h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { marginBottom: "-2px", marginRight: "5px" } },
15006
+ h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.34655 1.90573C7.75405 2.31323 7.75405 2.97392 7.34655 3.38143L3.56266 7.16531H14.9565C15.5328 7.16531 16 7.6325 16 8.20879C16 8.78509 15.5328 9.25227 14.9565 9.25227H3.56266L7.69437 13.384C8.10188 13.7915 8.10188 14.4522 7.69437 14.8597C7.28687 15.2672 6.62617 15.2672 6.21867 14.8597L0.305628 8.94664C-0.101876 8.53914 -0.101876 7.87845 0.305628 7.47094L5.87084 1.90573C6.27835 1.49822 6.93904 1.49822 7.34655 1.90573Z", fill: "#858585" })));
15007
+
15008
+ const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
15009
+ const stageProgressList = {
15010
+ chooseReward: "Choose reward",
15011
+ chooseAmount: "Amount",
15012
+ confirmation: "Confirm",
15013
+ };
15014
+ function RewardExchangeView(props) {
15015
+ const style = {
15016
+ Container: {
15017
+ position: "relative",
15018
+ display: "flex",
15019
+ },
15020
+ CardContainer: {
15021
+ "&:hover": {
15022
+ boxShadow: "0 3px 10px #87ceeb6e!important",
15023
+ },
15024
+ },
15025
+ Base: {
15026
+ display: "block",
15027
+ cursor: "pointer",
15028
+ textAlign: "center",
15029
+ "&::part(base)": {
15030
+ width: "100%",
15031
+ height: "170px",
15032
+ display: "flex",
15033
+ justifyContent: "space-between",
15034
+ alignItems: "center",
15035
+ },
15036
+ "&::part(body)": {
15037
+ padding: "10px 0",
15038
+ },
15039
+ },
15040
+ Drawer: {
15041
+ "&::part(base)": {
15042
+ minWidth: "400px",
15043
+ width: "50%",
15044
+ margin: "0 auto",
15045
+ right: "0",
15046
+ },
15047
+ "&::part(panel)": {
15048
+ height: "85vh",
15049
+ },
15050
+ },
15051
+ FullImage: {
15052
+ objectFit: "contain",
15053
+ maxWidth: "100%",
15054
+ height: "100px",
15055
+ },
15056
+ PreviewImage: {
15057
+ objectFit: "contain",
15058
+ maxWidth: "100%",
15059
+ height: "75px",
15060
+ },
15061
+ InputBox: {
15062
+ width: "100%",
15063
+ marginBottom: "20px",
15064
+ },
15065
+ Select: {
15066
+ "&::part(base)": {
15067
+ flex: "0.75",
15068
+ },
15069
+ "&::part(menu)": {
15070
+ maxHeight: "40vh",
15071
+ },
15072
+ },
15073
+ Buttons: {
15074
+ bottom: "0",
15075
+ width: "100%",
15076
+ },
15077
+ Button: {
15078
+ margin: "10px 0",
15079
+ display: "block",
15080
+ textAlign: "center",
15081
+ cursor: "pointer",
15082
+ },
15083
+ };
15084
+ // JSS config
15085
+ jss.setup(create());
15086
+ const sheet = jss.createStyleSheet(style);
15087
+ const styleString = sheet.toString();
15088
+ const { states, data, callbacks, refs } = props;
15089
+ const { selectedItem, selectedStep } = states;
15090
+ function getInput() {
15091
+ var _a, _b;
15092
+ const item = states.selectedItem;
15093
+ if (!item || (item === null || item === void 0 ? void 0 : item.ruleType) === "FIXED_GLOBAL_REWARD")
15094
+ return h("span", null);
15095
+ if (!((_a = item.steps) === null || _a === void 0 ? void 0 : _a.length)) {
15096
+ return h("p", null,
15097
+ "Not enough ",
15098
+ item.sourceUnit,
15099
+ " to redeem for this reward.");
15100
+ }
15101
+ return (h("sl-select", { style: { width: "auto" }, label: "Select amount to receive", class: sheet.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
15102
+ var _a, _b, _c, _d, _e;
15103
+ return callbacks.setExchangeState({
15104
+ 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,
15105
+ selectedStep: (_e = (_d = e.detail) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.value,
15106
+ });
15107
+ } }, (_b = item.steps) === null || _b === void 0 ? void 0 : _b.map((step) => (h("sl-menu-item", { value: step, disabled: !step.available },
15108
+ step.prettyDestinationValue,
15109
+ h("span", { slot: "suffix", style: { fontSize: "75%" } }, step.prettySourceValue))))));
15110
+ }
15111
+ function chooseReward() {
15112
+ var _a;
15113
+ const nextStage = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
15114
+ ? "confirmation"
15115
+ : "chooseAmount";
15116
+ console.log({ nextStage, ruleType: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType });
15117
+ return (h("div", { style: {
15118
+ display: "flex",
15119
+ justifyContent: "center",
15120
+ flexWrap: "wrap",
15121
+ alignItems: "center",
15122
+ columnGap: "12px",
15123
+ rowGap: "12px",
15124
+ } }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 :
15125
+ _a.map((item) => {
15126
+ const style = {
15127
+ boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) ? "0 1px 8px #87ceeb" : "none",
15128
+ marginBottom: "10px 0",
15129
+ flex: "1",
15130
+ minWidth: "45%",
15131
+ };
15132
+ return (h("div", { key: item.key, class: sheet.classes.CardContainer, style: style },
15133
+ h("sl-card", { class: sheet.classes.Base, onClick: () => callbacks.setExchangeState({ selectedItem: item }), disabled: !item.available },
15134
+ h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || getAssetPath("./assets/Reward-icon.png") }),
15135
+ h("p", null, item.description))));
15136
+ }),
15137
+ h("div", { class: sheet.classes.Buttons },
15138
+ h("sl-button", { onClick: () => callbacks.setStage(nextStage), style: { display: "block" }, class: sheet.classes.Button, disabled: !states.selectedItem }, "Continue"),
15139
+ 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"))));
15140
+ }
15141
+ function chooseAmount() {
15142
+ const input = getInput();
15143
+ return (h("div", null,
15144
+ h("div", { style: { width: "50%", margin: "0 auto" } }, (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) && (h("img", { class: sheet.classes.FullImage, src: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl }))),
15145
+ h("p", null, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description),
15146
+ h("div", { class: sheet.classes.InputBox }, input),
15147
+ h("div", { class: sheet.classes.Buttons },
15148
+ h("sl-button", { onClick: () => callbacks.setStage("confirmation"), disabled: input && !states.amount, style: { display: "block" }, class: sheet.classes.Button }, "Continue"),
15149
+ h("a", { onClick: () => callbacks.setStage("chooseReward"), style: { display: "block" }, class: sheet.classes.Button }, "Back"))));
15150
+ }
15151
+ console.log({ selectedItem, selectedStep });
15152
+ function confirmation() {
15153
+ console.log("confirmation:", { selectedItem });
15154
+ const redemptionAmount = () => {
15155
+ var _a;
15156
+ if ((selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD") {
15157
+ return `Redeem ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.sourceValue} ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.sourceUnit} for ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.globalRewardKey}`;
15158
+ }
15159
+ else {
15160
+ const amount = states.amount;
15161
+ const reward = (_a = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) !== null && _a !== void 0 ? _a : `${amount} ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.destinationUnit}`;
15162
+ return `Redeem ${amount} ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.sourceUnit} for ${reward}`;
15163
+ }
15164
+ };
15165
+ const previousStage = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
15166
+ ? "chooseReward"
15167
+ : "chooseAmount";
15168
+ return (h("div", null,
15169
+ h("h2", null, "Confirm your redemption:"),
15170
+ redemptionAmount(),
15171
+ h("div", { class: sheet.classes.Buttons },
15172
+ h("sl-button", { onClick: callbacks.exchangeReward, style: { display: "block" }, class: sheet.classes.Button }, "Redeem"),
15173
+ h("a", { onClick: () => callbacks.setStage(previousStage), style: { display: "block" }, class: sheet.classes.Button }, "Back"))));
15174
+ }
15175
+ function success() {
15176
+ return (h("div", { style: { textAlign: "center" } },
15177
+ h("img", { class: sheet.classes.FullImage, src: getAssetPath("./assets/Reward-icon.png") }),
15178
+ h("p", { style: { color: "forestgreen" } }, "Reward Redeemed"),
15179
+ (data === null || data === void 0 ? void 0 : data.fuelTankCode) && h("pre", null, data === null || data === void 0 ? void 0 : data.fuelTankCode),
15180
+ 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")));
15181
+ }
15182
+ const stages = {
15183
+ chooseReward: () => chooseReward(),
15184
+ chooseAmount: () => chooseAmount(),
15185
+ confirmation: () => confirmation(),
15186
+ success: () => success(),
15187
+ };
15188
+ const currentStage = stages[states.redeemStage];
15189
+ function stageMap() {
15190
+ const stageNumber = stageList.indexOf(states.redeemStage);
15191
+ return (h("div", { style: { fontSize: "80%" } },
15192
+ h(ProgressBar, { stage: stageNumber }),
15193
+ h("div", { style: {
15194
+ marginTop: "5px",
15195
+ display: "flex",
15196
+ justifyContent: "center",
15197
+ textAlign: "center",
15198
+ whiteSpace: "nowrap",
15199
+ marginBottom: "10px",
15200
+ } }, Object.keys(stageProgressList).map((stage) => {
15201
+ if (stage === states.redeemStage)
15202
+ return (h("b", { style: { flex: "1 1 0" } },
15203
+ " ",
15204
+ stageProgressList[stage]));
15205
+ return h("i", { style: { flex: "1 1 0" } }, stageProgressList[stage]);
15206
+ }))));
15207
+ }
15208
+ const Label = () => {
15209
+ if (states.redeemStage === "success")
15210
+ return "";
15211
+ let previousStage = "";
15212
+ if (states.redeemStage === "confirmation") {
15213
+ previousStage =
15214
+ (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
15215
+ ? "chooseReward"
15216
+ : "chooseAmount";
15217
+ }
15218
+ else if (states.redeemStage === "chooseAmount") {
15219
+ previousStage = "chooseReward";
15220
+ }
15221
+ return (h("div", { slot: "label" },
15222
+ h("a", { style: { cursor: "pointer", fontSize: "80%", color: "#858585" }, onClick: () => callbacks.setStage(previousStage) },
15223
+ h(LeftArrow, null),
15224
+ " Back")));
15225
+ };
15226
+ return (h("div", { class: sheet.classes.Container },
15227
+ h("style", { type: "text/css" }, styleString),
15228
+ h("div", null,
15229
+ h("sl-drawer", { ref: (ref) => (refs.drawerRef.current = ref), placement: "right", class: sheet.classes.Drawer, open: stageList.indexOf(states.redeemStage) >= 0 },
15230
+ h(Label, null),
15231
+ stageMap(),
15232
+ currentStage && currentStage(),
15233
+ states.exchangeError &&
15234
+ "Something went wrong. Please contact support or try again."),
15235
+ h("sl-button", { onClick: () => callbacks.openDrawer() }, "Redeem Rewards"))));
15236
+ }
15237
+
15238
+ const SqmRewardExchangeList = class {
15239
+ constructor(hostRef) {
15240
+ registerInstance(this, hostRef);
15241
+ this.ignored = true;
15242
+ /**
15243
+ * @uiName Exchange button text
15244
+ */
15245
+ this.buttonText = "Exchange Rewards";
15246
+ h$1(this);
15247
+ }
15248
+ disconnectedCallback() { }
15249
+ render() {
15250
+ // const missingProps = getMissingProps([
15251
+ // {
15252
+ // attribute: "listType",
15253
+ // value: this.listType,
15254
+ // },
15255
+ // ]);
15256
+ // if (missingProps) {
15257
+ // return <RequiredPropsError missingProps={missingProps} />;
15258
+ // }
15259
+ const { states, data, callbacks, refs } = j$1()
15260
+ ? useRewardExchangeListDemo(getProps(this))
15261
+ : useRewardExchangeList(getProps(this));
15262
+ return (h(Host, { style: { display: "contents" } }, h(RewardExchangeView, { states: states, data: data, callbacks: callbacks, refs: refs })));
15263
+ }
15264
+ static get assetsDirs() { return ["assets"]; }
15265
+ };
15266
+ function useRewardExchangeListDemo(props) {
15267
+ return cjs({
15268
+ states: {
15269
+ content: {
15270
+ text: props,
15271
+ },
15272
+ redeemStage: "",
15273
+ amount: 0,
15274
+ selectedStep: undefined,
15275
+ exchangeError: false,
15276
+ },
15277
+ data: {
15278
+ shareCode: "SHARECODE123",
15279
+ },
15280
+ callbacks: {
15281
+ exchangeReward: () => { },
15282
+ openDrawer: () => { },
15283
+ setExchangeState: (_) => { },
15284
+ setStage: (_) => { },
15285
+ },
15286
+ refs: {
15287
+ drawerRef: {},
15288
+ },
15289
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
15290
+ }
15291
+
14748
15292
  const debug$1 = browser("sq:useRouter");
14749
15293
  function matchPath(pattern, page) {
14750
15294
  if (!pattern)
@@ -15008,14 +15552,13 @@ const MessageLinkQuery$1 = dist.gql `
15008
15552
  }
15009
15553
  `;
15010
15554
  function useShareLink(props) {
15011
- var _a, _b, _c;
15555
+ var _a, _b;
15012
15556
  const { programId = M$1() } = props;
15013
15557
  const user = T$1();
15014
15558
  const { data } = en(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
15015
15559
  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 :
15016
15560
  // Shown during loading
15017
15561
  "...";
15018
- console.log((_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.shareLink, shareString);
15019
15562
  const [open, setOpen] = useState(false);
15020
15563
  function onClick() {
15021
15564
  // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
@@ -16488,7 +17031,7 @@ var _createEmotion = createEmotion({
16488
17031
  function i$1(){return (i$1=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r]);}return n}).apply(this,arguments)}function s(n,t){return t||(t=n.slice(0)),n.raw=t,n}var a$1,l,u,c$1=css(a$1||(a$1=s(['\n width: 100vw;\n height: 100vh;\n\n .story-book-outer-div {\n .story-div {\n font-family: "Arial", sans-serif;\n font-size: 12px;\n }\n padding-bottom: 500px;\n }\n\n .story-div {\n position: fixed;\n box-sizing: border-box;\n top: 0;\n width: 250px;\n height: 100vh;\n z-index: 999;\n overflow-y: scroll;\n background: white;\n margin-bottom: 32px;\n }\n\n .header {\n padding: 24px 0 16px 16px;\n margin-bottom: 24px;\n color: white;\n background: #333;\n cursor: pointer;\n\n h2 {\n letter-spacing: 3px;\n font-weight: 400;\n }\n }\n\n .parentStoryList {\n list-style: none;\n padding-left: 16px;\n\n summary {\n margin-bottom: 4px;\n }\n }\n .parentStory {\n cursor: pointer;\n }\n .parentStory.selected {\n font-weight: bold;\n }\n\n .subStory {\n font-size: 12px;\n cursor: pointer;\n line-height: 1.5em;\n margin-top: 4px;\n\n a {\n display: block;\n padding: 4px 4px 4px 16px;\n }\n }\n .subStory:hover {\n background-color: #eee;\n }\n .subStory.selected {\n background-color: lightgreen;\n }\n\n .component {\n padding: 24px 16px;\n }\n\n h4.group-header {\n margin: 8px 0;\n text-transform: uppercase;\n font-weight: 600;\n font-size: 14px;\n color: #575757;\n }\n\n .group-wrapper {\n margin-bottom: 24px;\n }\n\n .dynamic-display-wrapper {\n position: fixed;\n display: flex;\n flex-direction: column;\n bottom: 0;\n left: 100%;\n padding: 16px;\n z-index: 1000;\n background: white;\n transform: translateX(-100%);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n\n & > :not(:first-child) {\n margin-top: 12px;\n }\n\n p {\n font-size: 12px;\n margin: 0;\n padding: 0;\n }\n\n .button-wrapper {\n display: flex;\n\n & > :not(:first-child) {\n margin-left: 12px;\n }\n }\n\n & button {\n border: 1px solid #eaeaea;\n background: white;\n border-radius: 4px;\n color: #777;\n padding: 4px 12px;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n &.active {\n background: #555;\n border-color: #555;\n color: white;\n }\n }\n }\n'])));function p$1(n,t){var o,r=t.story.title.split("/"),e=r[1]?r[0]:"_";return i$1({},n,((o={})[e]=[].concat(n[e]||[],[{story:i$1({},t.story,{title:r[1]||r[0]}),subs:t.subs}]).sort(function(n,t){return n.story.title.localeCompare(t.story.title)}),o))}function d$1(n){return {story:n.default,subs:function(n,t){if(null==n)return {};var o,r,e={},i=Object.keys(n);for(r=0;r<i.length;r++)t.indexOf(o=i[r])>=0||(e[o]=n[o]);return e}(n,["default"])}}function f(a,f){var b=f.h,y=void 0===b?h:b,g=f.title,m=void 0===g?"Stencilbook":g,x=f.homepage,h$1=void 0===x?y("h3",null,"Select a story!"):x,v=f.addons,k=void 0===v?[]:v,w=useMemo(function(){return a.map(d$1).reduce(p$1,{_:[]})},a),S=useState(void 0),C=S[0],z=S[1],O=null==C?void 0:C.key,j=useState("desktop"),T=j[0],_=j[1],B=useState(!0),D=B[0],L=B[1],N=useState(!1),q=N[0],A=N[1],M=function(){return y("div",{class:"dynamic-display-wrapper"},y("div",{class:"button-wrapper"},y("button",{class:"desktop"===T?"active":"",onClick:function(){return _("desktop")}},"Desktop"),y("button",{class:"tablet"===T?"active":"",onClick:function(){return _("tablet")}},"Tablet"),y("button",{class:"mobile"===T?"active":"",onClick:function(){return _("mobile")}},"Mobile")),y("p",null,"Note: Currently doesn't test breakpoints, use the native tester for now"),y("hr",null),y("button",{class:q?"active":"",onClick:function(){return A(function(n){return !n})}},"Toggle Dark Background"),y("hr",null),y("button",{class:D?"active":"",onClick:function(){return L(function(n){return !n})}},"Toggle Sidebar"))},P="mobile"===T?"375px":"tablet"===T?"768px":"1124px",V=css(l||(l=s(["\n max-width: ",";\n margin-left: ",";\n "])),P,D?"250px":"0px"),X=css(u||(u=s(["\n display: none;\n "])));document.body.style.backgroundColor=q?"#232323":"#fafafa";var E=function(n){var t=n.selected,o=k.reduce(function(n,o){return function(){return y(o,{story:i$1({},t)},y(n,null))}},null==t?void 0:t.story);return y(o,null)},F=function(){return y("div",{class:"story-book-outer-div"},y("div",{class:"story-div "+(D?"":X)},y("div",{class:"header",onClick:function(){z(void 0);}},y("h2",null,m)),y("ul",{class:"parentStoryList"},Object.keys(w).sort().map(function(n){return y("div",{class:"group-wrapper"},"_"!==n&&y("h4",{class:"group-header"},n),w[n].map(function(t){return y("li",{class:"parentStory"},y("details",{style:{marginBottom:"10px"}},y("summary",{style:{outline:"none"}},t.story.title),t.subs&&Object.keys(t.subs).map(function(o){var e=n+"/"+o,i=t.subs[o],s=i.storyName||lodash_startcase(o);return y("div",{class:"subStory "+(O===e?"selected":"")},y("a",{onClick:function(){return function(n,t,o,r){z({key:t,story:n,parent:o,label:r});}(i,e,t.story,s)}},s))})))}))}))),y(M,null),y("div",{class:"component "+V},!O&&h$1,O&&y("div",null,y("h3",null,C.label),y(E,{selected:C}))))};return {class:c$1,children:y(F,null),View:F,selected:C}}
16489
17032
 
16490
17033
  const ShareButton_stories = {
16491
- title: "Share Button",
17034
+ title: "Components/Share Button",
16492
17035
  };
16493
17036
  const WithIcon = () => {
16494
17037
  const props = { medium: "facebook", iconslot: "suffix" };
@@ -16544,7 +17087,7 @@ const ShareButton$1 = /*#__PURE__*/Object.freeze({
16544
17087
  });
16545
17088
 
16546
17089
  const ShareLink_stories = {
16547
- title: "Share Link",
17090
+ title: "Components/Share Link",
16548
17091
  };
16549
17092
  const Default = () => {
16550
17093
  const props = {
@@ -16585,7 +17128,7 @@ const ShareLink$1 = /*#__PURE__*/Object.freeze({
16585
17128
  });
16586
17129
 
16587
17130
  const BigStat_stories = {
16588
- title: "Big Stat",
17131
+ title: "Components/Big Stat",
16589
17132
  };
16590
17133
  const Default$1 = () => {
16591
17134
  const props = { statvalue: "9.900,00" };
@@ -16655,7 +17198,7 @@ const BigStat = /*#__PURE__*/Object.freeze({
16655
17198
  });
16656
17199
 
16657
17200
  const Leaderboard_stories = {
16658
- title: "Leaderboard",
17201
+ title: "Components/Leaderboard",
16659
17202
  parameters: {
16660
17203
  tagname: "sqm-leaderboard",
16661
17204
  },
@@ -16932,7 +17475,7 @@ const Router = /*#__PURE__*/Object.freeze({
16932
17475
  });
16933
17476
 
16934
17477
  const LeaderboardRank_stories = {
16935
- title: "Leaderboard Rank",
17478
+ title: "Components/Leaderboard Rank",
16936
17479
  };
16937
17480
  const First = () => {
16938
17481
  const props = { data: { rank: "1st" } };
@@ -16979,7 +17522,7 @@ function setupLoggedOut() {
16979
17522
  };
16980
17523
  }
16981
17524
  const PortalFrame_stories = {
16982
- title: "Portal Frame",
17525
+ title: "Components/Portal Frame",
16983
17526
  };
16984
17527
  const defaultProps = {
16985
17528
  data: {
@@ -17074,7 +17617,7 @@ const PortalFrame$1 = /*#__PURE__*/Object.freeze({
17074
17617
  });
17075
17618
 
17076
17619
  const EditProfileForm_stories = {
17077
- title: "Edit Profile Form",
17620
+ title: "Components/Edit Profile Form",
17078
17621
  };
17079
17622
  const defaultProps$1 = {
17080
17623
  states: {
@@ -17521,7 +18064,7 @@ const UseLeaderboard = /*#__PURE__*/Object.freeze({
17521
18064
  });
17522
18065
 
17523
18066
  const FormMessage_stories = {
17524
- title: "Form Message",
18067
+ title: "Components/Form Message",
17525
18068
  };
17526
18069
  const SuccessAlert = () => {
17527
18070
  return (h("sqm-form-message", { type: "success" },
@@ -17557,6 +18100,148 @@ const FormMessage$1 = /*#__PURE__*/Object.freeze({
17557
18100
  FullStackSuccess: FullStackSuccess
17558
18101
  });
17559
18102
 
18103
+ const EXCHANGE$1 = dist.gql `
18104
+ mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
18105
+ exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
18106
+ reward {
18107
+ id
18108
+ }
18109
+ }
18110
+ }
18111
+ `;
18112
+ const UseRewardExchangeList_stories = {
18113
+ title: "Hooks / useRewardExchange",
18114
+ };
18115
+ function setupGraphQL$6() {
18116
+ const id = "testestest";
18117
+ const accountId = id;
18118
+ const programId = "sam-partner-test-2";
18119
+ //@ts-ignore
18120
+ window.widgetIdent = {
18121
+ tenantAlias: "test_a8b41jotf8a1v",
18122
+ appDomain: "https://staging.referralsaasquatch.com",
18123
+ programId,
18124
+ };
18125
+ useEffect(() => {
18126
+ L$1({
18127
+ accountId,
18128
+ id,
18129
+ jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
18130
+ });
18131
+ return () => {
18132
+ window.widgetIdent = undefined;
18133
+ L$1(undefined);
18134
+ };
18135
+ }, []);
18136
+ return { id, accountId };
18137
+ }
18138
+ function useExchangeButton() {
18139
+ const { id, accountId } = setupGraphQL$6();
18140
+ const [points, setPoints] = useState(10);
18141
+ const [rate, setRate] = useState(100);
18142
+ const [exchange, { data, errors }] = Ne(EXCHANGE$1);
18143
+ return {
18144
+ states: {
18145
+ points,
18146
+ rate,
18147
+ },
18148
+ data: {
18149
+ id,
18150
+ accountId,
18151
+ data,
18152
+ errors,
18153
+ },
18154
+ callbacks: {
18155
+ exchange,
18156
+ setPoints,
18157
+ setRate,
18158
+ },
18159
+ };
18160
+ }
18161
+ const DefaultView = (props) => {
18162
+ const { states, data, callbacks } = props;
18163
+ return (h("div", null,
18164
+ h("div", null,
18165
+ h("label", null, "Rate:"),
18166
+ h("input", { value: states.rate, onInput: (e) =>
18167
+ // @ts-ignore
18168
+ callbacks.setRate(e.target.value) })),
18169
+ h("input", { value: states.points, onInput: (e) =>
18170
+ // @ts-ignore
18171
+ callbacks.setPoints(e.target.value) }),
18172
+ h("button", { onClick: () => callbacks.exchange(props.input) }, "Exchange"),
18173
+ h("details", null,
18174
+ h("summary", null, "response"),
18175
+ h("h4", null, "data"),
18176
+ h("div", { style: { maxWidth: "500px" } },
18177
+ h("pre", { style: { width: "500px", whiteSpace: "pre-wrap" } }, JSON.stringify(data.data))),
18178
+ h("h4", null, "errors"),
18179
+ h("div", { style: { maxWidth: "500px" } },
18180
+ h("pre", { style: { maxWidth: "500px", whiteSpace: "pre-wrap" } }, JSON.stringify(data.errors))))));
18181
+ };
18182
+ const RewardList = createHookStory(() => {
18183
+ setupGraphQL$6();
18184
+ return (h("sqm-reward-exchange-list", { "list-type": "something" }));
18185
+ });
18186
+ const FixedGlobalReward = createHookStory(() => {
18187
+ const { states, data, callbacks } = useExchangeButton();
18188
+ return (h(DefaultView, { states: states, data: data, callbacks: callbacks, input: {
18189
+ exchangeRewardInput: {
18190
+ userId: data.id,
18191
+ accountId: data.accountId,
18192
+ redeemCreditInput: {
18193
+ amount: states.points,
18194
+ unit: "POINT",
18195
+ },
18196
+ globalRewardKey: "gc1",
18197
+ },
18198
+ } }));
18199
+ });
18200
+ const VariableGlobalReward = createHookStory(() => {
18201
+ const { states, data, callbacks } = useExchangeButton();
18202
+ return (h(DefaultView, { states: states, data: data, callbacks: callbacks, input: {
18203
+ exchangeRewardInput: {
18204
+ userId: data.id,
18205
+ accountId: data.accountId,
18206
+ redeemCreditInput: {
18207
+ amount: states.points,
18208
+ unit: "POINT",
18209
+ },
18210
+ globalRewardKey: "gc1",
18211
+ rewardInput: {
18212
+ valueInCents: Math.ceil(states.points * states.rate),
18213
+ },
18214
+ },
18215
+ } }));
18216
+ });
18217
+ const VariableCreditReward = createHookStory(() => {
18218
+ const { states, data, callbacks } = useExchangeButton();
18219
+ return (h(DefaultView, { states: states, data: data, callbacks: callbacks, input: {
18220
+ exchangeRewardInput: {
18221
+ userId: data.id,
18222
+ accountId: data.accountId,
18223
+ redeemCreditInput: {
18224
+ amount: states.points,
18225
+ unit: "POINT",
18226
+ },
18227
+ rewardInput: {
18228
+ type: "CREDIT",
18229
+ unit: "foo",
18230
+ assignedCredit: Math.ceil(states.points * states.rate),
18231
+ },
18232
+ },
18233
+ } }));
18234
+ });
18235
+
18236
+ const UseRewardExchangeList = /*#__PURE__*/Object.freeze({
18237
+ __proto__: null,
18238
+ 'default': UseRewardExchangeList_stories,
18239
+ RewardList: RewardList,
18240
+ FixedGlobalReward: FixedGlobalReward,
18241
+ VariableGlobalReward: VariableGlobalReward,
18242
+ VariableCreditReward: VariableCreditReward
18243
+ });
18244
+
17560
18245
  const NewPortal_stories = {
17561
18246
  title: "New Portal",
17562
18247
  };
@@ -17860,7 +18545,7 @@ const NewPortal = /*#__PURE__*/Object.freeze({
17860
18545
  });
17861
18546
 
17862
18547
  const SidebarItem_stories = {
17863
- title: "Sidebar Item",
18548
+ title: "Components/Sidebar Item",
17864
18549
  };
17865
18550
  const InactiveItem = () => {
17866
18551
  const props = {
@@ -17897,7 +18582,7 @@ const SidebarItem = /*#__PURE__*/Object.freeze({
17897
18582
  });
17898
18583
 
17899
18584
  const NavigationSidebar_stories = {
17900
- title: "Navigation Sidebar",
18585
+ title: "Components/Navigation Sidebar",
17901
18586
  };
17902
18587
  const DefaultNavigationSidebar = () => {
17903
18588
  const barProps = {
@@ -17946,7 +18631,7 @@ const NavigationSidebar = /*#__PURE__*/Object.freeze({
17946
18631
  });
17947
18632
 
17948
18633
  const PortalLogin_stories = {
17949
- title: "Portal Login",
18634
+ title: "Components/Portal Login",
17950
18635
  };
17951
18636
  const defaultProps$2 = {
17952
18637
  states: {
@@ -17991,7 +18676,7 @@ const PortalLogin$1 = /*#__PURE__*/Object.freeze({
17991
18676
  });
17992
18677
 
17993
18678
  const PortalRegister_stories = {
17994
- title: "Portal Register",
18679
+ title: "Components/Portal Register",
17995
18680
  };
17996
18681
  const defaultProps$3 = {
17997
18682
  states: {
@@ -18094,7 +18779,7 @@ const PortalRegister$1 = /*#__PURE__*/Object.freeze({
18094
18779
  const scenario = "@author:\r\n@owner:ian\r\nFeature: Forgot Password\r\n\r\n @motivating\r\n Scenario: Users can request to reset their password\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n When the password reset email is sent\r\n Then a confirmation banner is shown stating a password reset email was sent\r\n\r\n @motivating\r\n Scenario: Users are notified if sending their password reset email fails\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n When the password reset email fails to send\r\n Then the user will not receive a password reset email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n @landmine\r\n Scenario: If the input email is not associated to an account a success banner will be shown but an email will not be sent\r\n Given the user entered an email address that is not associated to an accoun\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n But no email will be sent\r\n And a success banner is shown stating a password reset email was sent if the given email was associated to an account\r\n\r\n @motivating\r\n Scenario: Users can resend password reset email\r\n Given a user had previously requested to reset their password\r\n When they enter their email address\r\n And that email address is linked to a previously created account\r\n And they click \"Reset Password\"\r\n Then the user will receive a second password reset email\r\n And a success banner is shown stating that their email was sent\r\n";
18095
18780
 
18096
18781
  const PortalForgotPassword_stories = {
18097
- title: "Portal Forgot Password",
18782
+ title: "Components/Portal Forgot Password",
18098
18783
  parameters: {
18099
18784
  scenario,
18100
18785
  },
@@ -18172,7 +18857,7 @@ const PortalForgotPassword = /*#__PURE__*/Object.freeze({
18172
18857
  const scenario$1 = "@author:\r\n@owner: ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User's redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message will be displayed\r\n And it will reflect that a email has already been sent to their email\r\n But they can still re-send the email\r\n When they click to \"Resend-Email\"\r\n Then the user will receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user with an email was stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user will not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user with an email was stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user will receive a verification email\r\n And a success banner is shown stating that their email was resent";
18173
18858
 
18174
18859
  const PortalEmailVerification_stories = {
18175
- title: "Portal Email Verification",
18860
+ title: "Components/Portal Email Verification",
18176
18861
  parameters: {
18177
18862
  scenario: scenario$1,
18178
18863
  },
@@ -18258,7 +18943,7 @@ const PortalEmailVerification = /*#__PURE__*/Object.freeze({
18258
18943
  const scenario$2 = "@author:\r\n@owner:ian\r\nFeature: Reset Password\r\n\r\n\r\n Background: A user in on the password reset page\r\n Given a user who has been redirected to the password reset page\r\n\r\n @motivating\r\n Scenario: Users can reset their password\r\n Given a user has a valid oob code as a url query parameter\r\n When they enter their password twice\r\n And they click \"Update\"\r\n Then their password is updated\r\n And a banner with a success message will be displayed\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario Outline: Users cannot reset their password with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their password reset code is invalid or expired\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users must enter the same password twice to successfully reset their password\r\n Given a user has been redirected to the password reset page\r\n And they have a valid oob code as a url query parameter\r\n When they enter two different passwords into the password reset form\r\n And they click \"Update\"\r\n Then their password is not be reset\r\n And an error banner stating the input passwords must match appears\r\n And their password will not be reset\r\n When they enter the same password twice\r\n And they click \"Update\"\r\n Then a banner appears with a success message\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario: Users are redirected to \"/\" by default\r\n Given the component does not have prop \"nextPage\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has entered their password twice\r\n When they click \"Update\"\r\n Then their password is updated\r\n And they are redirected to \"/\"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop \"nextPage\" with value \"/activity\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has entered their password twice\r\n When they click \"Update\"\r\n Then their password is updated\r\n And they are redirected to \"/activity\"";
18259
18944
 
18260
18945
  const PortalResetPassword_stories = {
18261
- title: "Portal Reset Password",
18946
+ title: "Components/Portal Reset Password",
18262
18947
  parameters: {
18263
18948
  scenario: scenario$2,
18264
18949
  },
@@ -18422,7 +19107,7 @@ const PortalResetPassword = /*#__PURE__*/Object.freeze({
18422
19107
  const scenario$3 = "@author:\r\n@owner:ian\r\nFeature: Verify Email\r\n\r\n\r\n Background: A user is on the email verification page\r\n Given a user who has been redirected to the email verification page\r\n\r\n @motivating\r\n Scenario: Verifying your email will take you to the portal login page\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says \"Continue\" will appear\r\n When they click \"Continue\"\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users will be automatically redirected if they dont click \"Continue\"\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says \"Continue\" will appear\r\n When they wait 5 seconds\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users are notified if verifying their email has failed\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email fails to be validated\r\n Then an banner is shown stating that an error occured\r\n\r\n @motivating\r\n Scenario Outline: Users cannot verify their email with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their verification code is invalid or expired\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users are redirected to \"/\" by default\r\n Given the component does not have prop \"nextPage\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has verified their email\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop \"nextPage\" with value \"/activity\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has verified their email\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/activity\"\r\n\r\n @motivating\r\n Scenario Outline: Users will be redirected to the value of the nextPage url parameter if it exists\r\n Given the component <mayHave> prop \"nextPage\" with <nextPageValue>\r\n And the users url contains a \"nextPage\" query paramater with <nextPageParamValue>\r\n And the user has verified their email\r\n When they click \"Continue\"\r\n Then they are redirected to <nextPageParamValue>\r\n Examples:\r\n | mayHave | nextPageValue | nextPageParamValue |\r\n | has | /dashboard | /activity |\r\n | does not have | N/A | /activity |";
18423
19108
 
18424
19109
  const PortalVerifyEmail_stories = {
18425
- title: "Portal Verify Email",
19110
+ title: "Components/Portal Verify Email",
18426
19111
  parameters: {
18427
19112
  scenario: scenario$3,
18428
19113
  },
@@ -18466,7 +19151,7 @@ const PortalVerifyEmail = /*#__PURE__*/Object.freeze({
18466
19151
  });
18467
19152
 
18468
19153
  const AssetCard_stories = {
18469
- title: "Asset Card",
19154
+ title: "Components/Asset Card",
18470
19155
  };
18471
19156
  const Default$7 = () => {
18472
19157
  const props = {
@@ -18502,7 +19187,7 @@ const AssetCard = /*#__PURE__*/Object.freeze({
18502
19187
  });
18503
19188
 
18504
19189
  const DividedLayout_stories = {
18505
- title: "Divided Layout",
19190
+ title: "Components/Divided Layout",
18506
19191
  };
18507
19192
  const barProps$1 = {
18508
19193
  data: {
@@ -18594,7 +19279,7 @@ const DividedLayout$1 = /*#__PURE__*/Object.freeze({
18594
19279
  const scenario$4 = "Feature: Change Password\r\n\r\n @motivating\r\n Scenario: Users can change their password\r\n Given a user has registered for the portal\r\n And they have a password\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they enter their new password\r\n And confirm it\r\n And click \"Change Password\"\r\n Then they will see a success banner stating that the change was successful\r\n When they logout\r\n And try to login\r\n Then they will not be able to login with their old password\r\n But they will be able to login with their new password\r\n\r\n @motivating\r\n Scenario: Users must confirm their password change\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they enter their new password\r\n But they enter a different password to confirm\r\n And click \"Change Password\"\r\n Then they will see an error banner stating that the passwords didnt match\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password\r\n\r\n @motivating\r\n Scenario: Users must enter a new password and confirm it to change their password\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they click \"Change password\"\r\n Then a validation error will appear for the new password field\r\n And their password will not be changed\r\n When they enter a new password\r\n And they click \"Change password\"\r\n Then a validation error will appear for the confirm new password field\r\n And their password will not be changed\r\n\r\n @motivating\r\n Scenario: An error banner will be displayed if the password change fails\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n When they enter their new password\r\n And confirm it\r\n And click \"Change Password\"\r\n But the change fails\r\n Then they will see an error banner stating that the change failed\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password";
18595
19280
 
18596
19281
  const ChangePassword_stories = {
18597
- title: "Change Password",
19282
+ title: "Components/Change Password",
18598
19283
  parameters: {
18599
19284
  scenario: scenario$4,
18600
19285
  },
@@ -18750,7 +19435,7 @@ const ChangePassword = /*#__PURE__*/Object.freeze({
18750
19435
  });
18751
19436
 
18752
19437
  const PortalProfile_stories = {
18753
- title: "Portal Profile",
19438
+ title: "Components/Portal Profile",
18754
19439
  };
18755
19440
  // const style = {};
18756
19441
  jss.setup(create());
@@ -18991,7 +19676,7 @@ const PortalProfile = /*#__PURE__*/Object.freeze({
18991
19676
  });
18992
19677
 
18993
19678
  const ReferralTableRewardsCell_stories = {
18994
- title: "Referral Table Rewards Cell",
19679
+ title: "Components/Referral Table Rewards Cell",
18995
19680
  };
18996
19681
  const baseReward = {
18997
19682
  id: "123",
@@ -19223,7 +19908,7 @@ const ReferralTableRewardsCell$1 = /*#__PURE__*/Object.freeze({
19223
19908
  });
19224
19909
 
19225
19910
  const ReferralTable_stories = {
19226
- title: "Referral Table",
19911
+ title: "Components/Referral Table",
19227
19912
  };
19228
19913
  const loadingElement = (h("div", { slot: "loading", style: { display: "contents" } },
19229
19914
  h("sqm-table-row", null,
@@ -19710,7 +20395,7 @@ const ReferralTable$1 = /*#__PURE__*/Object.freeze({
19710
20395
  });
19711
20396
 
19712
20397
  const ReferralTableCell_stories = {
19713
- title: "Referral Table Cell",
20398
+ title: "Components/Referral Table Cell",
19714
20399
  };
19715
20400
  const TableCell = () => {
19716
20401
  return (h("sqm-referral-table-cell", { innerTemplate: "Table Cell Text" }));
@@ -19783,28 +20468,28 @@ const ReferralTableCell$1 = /*#__PURE__*/Object.freeze({
19783
20468
  });
19784
20469
 
19785
20470
  const UserName_stories = {
19786
- title: "User Name",
20471
+ title: "Tests/User Name",
19787
20472
  };
19788
- const FullStack$1 = () => {
20473
+ const DemoData = () => {
19789
20474
  return (h("sqm-user-name", { demoData: {
19790
20475
  loading: false,
19791
20476
  loadingText: "...",
19792
20477
  username: "Test Testerson",
19793
20478
  } }));
19794
20479
  };
19795
- const FullStackDefault = () => {
20480
+ const Username = () => {
19796
20481
  return h("sqm-user-name", null);
19797
20482
  };
19798
20483
 
19799
20484
  const UserName = /*#__PURE__*/Object.freeze({
19800
20485
  __proto__: null,
19801
20486
  'default': UserName_stories,
19802
- FullStack: FullStack$1,
19803
- FullStackDefault: FullStackDefault
20487
+ DemoData: DemoData,
20488
+ Username: Username
19804
20489
  });
19805
20490
 
19806
20491
  const PasswordField_stories = {
19807
- title: "Portal Password Field",
20492
+ title: "Components/Portal Password Field",
19808
20493
  };
19809
20494
  const Start = () => {
19810
20495
  return (h("sqm-password-field", { demoData: {
@@ -19851,6 +20536,507 @@ const PasswordField = /*#__PURE__*/Object.freeze({
19851
20536
  ValidationError: ValidationError
19852
20537
  });
19853
20538
 
20539
+ const TaskCard_stories = {
20540
+ title: "Components/Task Card",
20541
+ };
20542
+ const resizable = {
20543
+ width: "347px",
20544
+ minWidth: "347px",
20545
+ resize: "horizontal",
20546
+ height: "fit-content",
20547
+ overflow: "hidden",
20548
+ };
20549
+ const Default$a = () => {
20550
+ // @ts-ignore
20551
+ return h(TaskCardView, null);
20552
+ };
20553
+ const NotRepeatable = () => {
20554
+ const oneAction = {
20555
+ points: 20,
20556
+ cardTitle: "Complete a survey",
20557
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20558
+ buttonText: "Take survey",
20559
+ goal: 1,
20560
+ };
20561
+ const coupleActions = {
20562
+ points: 40,
20563
+ cardTitle: "Comment on 5 articles",
20564
+ showProgressBar: true,
20565
+ goal: 5,
20566
+ steps: 1,
20567
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20568
+ buttonText: "Start reading",
20569
+ };
20570
+ const manyActions = {
20571
+ points: 150,
20572
+ cardTitle: "Spend $500 at our Store",
20573
+ showProgressBar: true,
20574
+ goal: 500,
20575
+ unit: "$",
20576
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20577
+ buttonText: "Visit our Store",
20578
+ };
20579
+ return (h("div", { style: { display: "inline-flex", gap: "32px" } },
20580
+ h("div", { style: resizable },
20581
+ h("h4", null, "One Action"),
20582
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
20583
+ " ",
20584
+ h("h5", null),
20585
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
20586
+ " ",
20587
+ h("h5", null)),
20588
+ h("div", { style: resizable },
20589
+ h("h4", null, "A Couple Actions"),
20590
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 0 })),
20591
+ " ",
20592
+ h("h5", null),
20593
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
20594
+ " ",
20595
+ h("h5", null),
20596
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
20597
+ " ",
20598
+ h("h5", null),
20599
+ h("h5", null,
20600
+ "Progress ",
20601
+ ">",
20602
+ " Goal"),
20603
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 9 })),
20604
+ " ",
20605
+ h("h5", null)),
20606
+ h("div", { style: resizable },
20607
+ h("h4", null, "Many Actions"),
20608
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 0 })),
20609
+ " ",
20610
+ h("h5", null),
20611
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
20612
+ " ",
20613
+ h("h5", null),
20614
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
20615
+ " ",
20616
+ h("h5", null),
20617
+ h("h5", null,
20618
+ "Progress ",
20619
+ ">",
20620
+ " Goal"),
20621
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 700 })),
20622
+ " ",
20623
+ h("h5", null))));
20624
+ };
20625
+ const NotRepeatableWithExpiry = () => {
20626
+ const oneAction = {
20627
+ points: 20,
20628
+ cardTitle: "Complete a survey",
20629
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20630
+ buttonText: "Take survey",
20631
+ goal: 1,
20632
+ expire: true,
20633
+ dateExpire: "Nov 1, 2021",
20634
+ };
20635
+ const coupleActions = {
20636
+ points: 40,
20637
+ cardTitle: "Comment on 5 articles",
20638
+ showProgressBar: true,
20639
+ goal: 5,
20640
+ steps: 1,
20641
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20642
+ buttonText: "Start reading",
20643
+ expire: true,
20644
+ dateExpire: "Nov 1, 2021",
20645
+ };
20646
+ const manyActions = {
20647
+ points: 150,
20648
+ cardTitle: "Spend $500 at our Store",
20649
+ showProgressBar: true,
20650
+ goal: 500,
20651
+ unit: "$",
20652
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20653
+ buttonText: "Visit our Store",
20654
+ expire: true,
20655
+ dateExpire: "Nov 1, 2021",
20656
+ };
20657
+ return (h("div", { style: { display: "inline-flex", gap: "32px" } },
20658
+ h("div", { style: resizable },
20659
+ h("h4", null, "One Action"),
20660
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
20661
+ " ",
20662
+ h("h5", null),
20663
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
20664
+ " ",
20665
+ h("h5", null)),
20666
+ h("div", { style: resizable },
20667
+ h("h4", null, "A Couple Actions"),
20668
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 0 })),
20669
+ " ",
20670
+ h("h5", null),
20671
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
20672
+ " ",
20673
+ h("h5", null),
20674
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
20675
+ " ",
20676
+ h("h5", null),
20677
+ h("h5", null,
20678
+ "Progress ",
20679
+ ">",
20680
+ " Goal"),
20681
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 9 })),
20682
+ " ",
20683
+ h("h5", null)),
20684
+ h("div", { style: resizable },
20685
+ h("h4", null, "Many Actions"),
20686
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 0 })),
20687
+ " ",
20688
+ h("h5", null),
20689
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
20690
+ " ",
20691
+ h("h5", null),
20692
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
20693
+ " ",
20694
+ h("h5", null),
20695
+ h("h5", null,
20696
+ "Progress ",
20697
+ ">",
20698
+ " Goal"),
20699
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 700 })),
20700
+ " ",
20701
+ h("h5", null))));
20702
+ };
20703
+ const Repeatable = () => {
20704
+ const oneAction = {
20705
+ points: 20,
20706
+ cardTitle: "Complete a survey",
20707
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20708
+ buttonText: "Take survey",
20709
+ goal: 1,
20710
+ repeatable: true,
20711
+ };
20712
+ const coupleActions = {
20713
+ points: 40,
20714
+ cardTitle: "Comment on 5 articles",
20715
+ showProgressBar: true,
20716
+ repeatable: true,
20717
+ goal: 5,
20718
+ steps: 1,
20719
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20720
+ buttonText: "Start reading",
20721
+ };
20722
+ const manyActions = {
20723
+ points: 150,
20724
+ cardTitle: "Spend $500 at our Store",
20725
+ showProgressBar: true,
20726
+ repeatable: true,
20727
+ goal: 500,
20728
+ unit: "$",
20729
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20730
+ buttonText: "Visit our Store",
20731
+ };
20732
+ return (h("div", { style: { display: "inline-flex", gap: "32px" } },
20733
+ h("div", { style: resizable },
20734
+ h("h4", null, "One Action"),
20735
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
20736
+ " ",
20737
+ h("h5", null),
20738
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
20739
+ " ",
20740
+ h("h5", null)),
20741
+ h("div", { style: resizable },
20742
+ h("h4", null, "A Couple Actions"),
20743
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
20744
+ " ",
20745
+ h("h5", null),
20746
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
20747
+ " ",
20748
+ h("h5", null),
20749
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 7 })),
20750
+ " ",
20751
+ h("h5", null),
20752
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 10 })),
20753
+ " ",
20754
+ h("h5", null),
20755
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 12 })),
20756
+ " ",
20757
+ h("h5", null),
20758
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 15 })),
20759
+ " ",
20760
+ h("h5", null),
20761
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 17 })),
20762
+ " ",
20763
+ h("h5", null),
20764
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 22 })),
20765
+ " ",
20766
+ h("h5", null)),
20767
+ h("div", { style: resizable },
20768
+ h("h4", null, "Many Actions"),
20769
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 100 })),
20770
+ " ",
20771
+ h("h5", null),
20772
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
20773
+ " ",
20774
+ h("h5", null),
20775
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 650 })),
20776
+ " ",
20777
+ h("h5", null),
20778
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1000 })),
20779
+ " ",
20780
+ h("h5", null),
20781
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1200 })),
20782
+ " ",
20783
+ h("h5", null),
20784
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1500 })),
20785
+ " ",
20786
+ h("h5", null),
20787
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1700 })),
20788
+ " ",
20789
+ h("h5", null),
20790
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 2200 })),
20791
+ " ",
20792
+ h("h5", null))));
20793
+ };
20794
+ const RepeatableWithExpiry = () => {
20795
+ const oneAction = {
20796
+ points: 20,
20797
+ cardTitle: "Complete a survey",
20798
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20799
+ buttonText: "Take survey",
20800
+ goal: 1,
20801
+ repeatable: true,
20802
+ expire: true,
20803
+ dateExpire: "Nov 1, 2021",
20804
+ };
20805
+ const coupleActions = {
20806
+ points: 40,
20807
+ cardTitle: "Comment on 5 articles",
20808
+ showProgressBar: true,
20809
+ repeatable: true,
20810
+ goal: 5,
20811
+ steps: 1,
20812
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20813
+ buttonText: "Start reading",
20814
+ expire: true,
20815
+ dateExpire: "Nov 1, 2021",
20816
+ };
20817
+ const manyActions = {
20818
+ points: 150,
20819
+ cardTitle: "Spend $500 at our Store",
20820
+ showProgressBar: true,
20821
+ repeatable: true,
20822
+ goal: 500,
20823
+ unit: "$",
20824
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20825
+ buttonText: "Visit our Store",
20826
+ expire: true,
20827
+ dateExpire: "Nov 1, 2021",
20828
+ };
20829
+ return (h("div", { style: { display: "inline-flex", gap: "32px" } },
20830
+ h("div", { style: resizable },
20831
+ h("h4", null, "One Action"),
20832
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
20833
+ " ",
20834
+ h("h5", null),
20835
+ h(TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
20836
+ " ",
20837
+ h("h5", null)),
20838
+ h("div", { style: resizable },
20839
+ h("h4", null, "A Couple Actions"),
20840
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
20841
+ " ",
20842
+ h("h5", null),
20843
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
20844
+ " ",
20845
+ h("h5", null),
20846
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 7 })),
20847
+ " ",
20848
+ h("h5", null),
20849
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 10 })),
20850
+ " ",
20851
+ h("h5", null),
20852
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 12 })),
20853
+ " ",
20854
+ h("h5", null),
20855
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 15 })),
20856
+ " ",
20857
+ h("h5", null),
20858
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 17 })),
20859
+ " ",
20860
+ h("h5", null),
20861
+ h(TaskCardView, Object.assign({}, coupleActions, { progress: 22 })),
20862
+ " ",
20863
+ h("h5", null)),
20864
+ h("div", { style: resizable },
20865
+ h("h4", null, "Many Actions"),
20866
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 100 })),
20867
+ " ",
20868
+ h("h5", null),
20869
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
20870
+ " ",
20871
+ h("h5", null),
20872
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 650 })),
20873
+ " ",
20874
+ h("h5", null),
20875
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1000 })),
20876
+ " ",
20877
+ h("h5", null),
20878
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1200 })),
20879
+ " ",
20880
+ h("h5", null),
20881
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1500 })),
20882
+ " ",
20883
+ h("h5", null),
20884
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 1700 })),
20885
+ " ",
20886
+ h("h5", null),
20887
+ h(TaskCardView, Object.assign({}, manyActions, { progress: 2200 })),
20888
+ " ",
20889
+ h("h5", null))));
20890
+ };
20891
+ // export const Repeatable = () => {
20892
+ // const oneAction = {
20893
+ // points: 20,
20894
+ // cardTitle: "Complete a survey",
20895
+ // description:
20896
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20897
+ // repeatable: 0,
20898
+ // buttonText: "Take survey",
20899
+ // buttonOnClick: () => {},
20900
+ // };
20901
+ // const coupleActions = {
20902
+ // points: 40,
20903
+ // cardTitle: "Comment on 5 articles",
20904
+ // goal: 5,
20905
+ // steps: 1,
20906
+ // repeatable: true,
20907
+ // description:
20908
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20909
+ // buttonText: "Start reading",
20910
+ // buttonOnClick: () => {},
20911
+ // };
20912
+ // const manyActions = {
20913
+ // points: 150,
20914
+ // cardTitle: "Spend $500 at our Store",
20915
+ // goal: 500,
20916
+ // repeatable: true,
20917
+ // unit: "$",
20918
+ // description:
20919
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20920
+ // buttonText: "Visit our Store",
20921
+ // buttonOnClick: () => {},
20922
+ // };
20923
+ // return (
20924
+ // <div style={{ display: "inline-flex", gap: "32px" }}>
20925
+ // <div style={resizable}>
20926
+ // <h4>One Action</h4>
20927
+ // <TaskCardView {...oneAction} /> <h5 />
20928
+ // <TaskCardView {...oneAction} repeatable={1} complete /> <h5 />
20929
+ // </div>
20930
+ // <div style={resizable}>
20931
+ // <h4>A Couple Actions</h4>
20932
+ // <TaskCardView {...coupleActions} progress={1} /> <h5 />
20933
+ // <TaskCardView {...coupleActions} progress={5} /> <h5 />
20934
+ // <TaskCardView {...coupleActions} progress={7} /> <h5 />
20935
+ // <TaskCardView {...coupleActions} progress={10} /> <h5 />
20936
+ // <TaskCardView {...coupleActions} progress={12} /> <h5 />
20937
+ // </div>
20938
+ // <div style={resizable}>
20939
+ // <h4>Many Actions</h4>
20940
+ // <TaskCardView {...manyActions} progress={100} /> <h5 />
20941
+ // <TaskCardView {...manyActions} progress={500} /> <h5 />
20942
+ // <TaskCardView {...manyActions} progress={650} /> <h5 />
20943
+ // <TaskCardView {...manyActions} progress={1000} /> <h5 />
20944
+ // <TaskCardView {...manyActions} progress={1200} /> <h5 />
20945
+ // </div>
20946
+ // </div>
20947
+ // );
20948
+ // };
20949
+ // export const RepeatableWithExpiry = () => {
20950
+ // const oneAction = {
20951
+ // points: 20,
20952
+ // cardTitle: "Complete a survey",
20953
+ // expire: "Nov 30, 2021",
20954
+ // description:
20955
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20956
+ // repeatable: 0,
20957
+ // buttonText: "Take survey",
20958
+ // buttonOnClick: () => {},
20959
+ // };
20960
+ // const coupleActions = {
20961
+ // points: 40,
20962
+ // cardTitle: "Comment on 5 articles",
20963
+ // expire: "Nov 30, 2021",
20964
+ // goal: 5,
20965
+ // steps: 1,
20966
+ // repeatable: true,
20967
+ // description:
20968
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20969
+ // buttonText: "Start reading",
20970
+ // buttonOnClick: () => {},
20971
+ // };
20972
+ // const manyActions = {
20973
+ // points: 150,
20974
+ // cardTitle: "Spend $500 at our Store",
20975
+ // expire: "Nov 30, 2021",
20976
+ // goal: 500,
20977
+ // repeatable: true,
20978
+ // unit: "$",
20979
+ // description:
20980
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20981
+ // buttonText: "Visit our Store",
20982
+ // buttonOnClick: () => {},
20983
+ // };
20984
+ // return (
20985
+ // <div style={{ display: "inline-flex", gap: "32px" }}>
20986
+ // <div style={resizable}>
20987
+ // <h4>One Action</h4>
20988
+ // <TaskCardView {...oneAction} /> <h5 />
20989
+ // <TaskCardView {...oneAction} repeatable={1} complete /> <h5 />
20990
+ // </div>
20991
+ // <div style={resizable}>
20992
+ // <h4>A Couple Actions</h4>
20993
+ // <TaskCardView {...coupleActions} progress={1} /> <h5 />
20994
+ // <TaskCardView {...coupleActions} progress={5} /> <h5 />
20995
+ // <TaskCardView {...coupleActions} progress={7} /> <h5 />
20996
+ // <TaskCardView {...coupleActions} progress={10} /> <h5 />
20997
+ // <TaskCardView {...coupleActions} progress={12} /> <h5 />
20998
+ // </div>
20999
+ // <div style={resizable}>
21000
+ // <h4>Many Actions</h4>
21001
+ // <TaskCardView {...manyActions} progress={100} /> <h5 />
21002
+ // <TaskCardView {...manyActions} progress={500} /> <h5 />
21003
+ // <TaskCardView {...manyActions} progress={650} /> <h5 />
21004
+ // <TaskCardView {...manyActions} progress={1000} /> <h5 />
21005
+ // <TaskCardView {...manyActions} progress={1200} /> <h5 />
21006
+ // </div>
21007
+ // </div>
21008
+ // );
21009
+ // };
21010
+ // export const ProgressBar = () => {
21011
+ // const props = {
21012
+ // goal: 5,
21013
+ // };
21014
+ // return (
21015
+ // <div>
21016
+ // <MatrixStory
21017
+ // matrix={{ progress: [1, 2, 5], steps: [0, 1], repeatable: [false] }}
21018
+ // props={props}
21019
+ // Component={ProgressBarView}
21020
+ // />
21021
+ // <MatrixStory
21022
+ // matrix={{ progress: [2, 5, 7, 12], steps: [0, 1], repeatable: [true] }}
21023
+ // props={props}
21024
+ // Component={ProgressBarView}
21025
+ // />
21026
+ // </div>
21027
+ // );
21028
+ // };
21029
+
21030
+ const TaskCard = /*#__PURE__*/Object.freeze({
21031
+ __proto__: null,
21032
+ 'default': TaskCard_stories,
21033
+ Default: Default$a,
21034
+ NotRepeatable: NotRepeatable,
21035
+ NotRepeatableWithExpiry: NotRepeatableWithExpiry,
21036
+ Repeatable: Repeatable,
21037
+ RepeatableWithExpiry: RepeatableWithExpiry
21038
+ });
21039
+
19854
21040
  const portalTemplate = "<sqm-portal-frame>\r\n <a slot=\"header\" href=\"/\">\r\n <sqm-text style=\"height: 60px\">\r\n <img\r\n style=\"height: 60px\"\r\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id=\"referral-program\">\r\n <sqm-router>\r\n <template\r\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\r\n >\r\n <sqm-graphql-client-provider\r\n domain=\"https://managed-identity.saasquatch.com\"\r\n >\r\n <sqm-hero\r\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\r\n >\r\n <sqm-router>\r\n <template path=\"/register\">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path=\"/emailVerification\">\r\n <sqm-portal-protected-route\r\n redirect-to=\"/login\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path=\"/login\">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path=\"/verifyEmail\">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path=\"/forgotPassword\">\r\n <sqm-portal-forgot-password\r\n email-label=\"Business Email\"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path=\"/resetPassword\">\r\n <sqm-portal-reset-password\r\n confirm-password=\"true\"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path=\"/logout\">\r\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\r\n <sqm-divided-layout\r\n direction=\"row\"\r\n style=\"\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n \"\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path=\"/\"\r\n icon=\"house\"\r\n label=\"Dashboard\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/activity\"\r\n icon=\"bar-chart\"\r\n label=\"Activity\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/editProfile\"\r\n icon=\"person\"\r\n label=\"Edit Profile\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/logout\"\r\n icon=\"box-arrow-right\"\r\n label=\"Logout\"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction=\"column\">\r\n <sqm-router>\r\n <template path=\"/\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqb-widget\r\n widget-type=\"p/referral-program/w/referrerWidget\"\r\n track-loads=\"true\"\r\n ></sqb-widget>\r\n </template>\r\n <template path=\"/editProfile\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-graphql-client-provider\r\n domain=\"https://managed-identity.saasquatch.com\"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n\r\n <template path=\"/activity\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space=\"xxxx-large\"\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title=\"Referred\"\r\n date-shown=\"dateReferralStarted\"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot=\"footer\"\r\n support-email=\"support@example.com\"\r\n terms-link=\"https://example.com\"\r\n faq-link=\"https://example.com\"\r\n terms-text=\"Terms And Conditions\"\r\n faq-text=\"FAQ\"\r\n show-powered-by=\"true\"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n";
19855
21041
 
19856
21042
  const portalLeadSubmitTemplate = "<sqm-portal-frame>\r\n <a slot=\"header\" href=\"/\">\r\n <sqm-text style=\"height: 60px\">\r\n <img\r\n style=\"height: 60px\"\r\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id=\"referral-program\">\r\n <sqm-router>\r\n <template\r\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\r\n >\r\n <sqm-graphql-client-provider\r\n domain=\"https://managed-identity.saasquatch.com\"\r\n >\r\n <sqm-hero\r\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\r\n >\r\n <sqm-router>\r\n <template path=\"/register\">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path=\"/emailVerification\">\r\n <sqm-portal-protected-route\r\n redirect-to=\"/login\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path=\"/login\">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path=\"/verifyEmail\">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path=\"/forgotPassword\">\r\n <sqm-portal-forgot-password\r\n email-label=\"Business Email\"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path=\"/resetPassword\">\r\n <sqm-portal-reset-password\r\n confirm-password=\"true\"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path=\"/logout\">\r\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?\">\r\n <sqm-divided-layout\r\n direction=\"row\"\r\n style=\"\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n \"\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path=\"/\"\r\n icon=\"house\"\r\n label=\"Dashboard\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/refer\"\r\n icon=\"inbox\"\r\n label=\"Submit A Lead\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/activity\"\r\n icon=\"bar-chart\"\r\n label=\"Activity\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/editProfile\"\r\n icon=\"person\"\r\n label=\"Edit Profile\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/logout\"\r\n icon=\"box-arrow-right\"\r\n label=\"Logout\"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction=\"column\">\r\n <sqm-router>\r\n <template path=\"/\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqb-widget\r\n widget-type=\"p/referral-program/w/referrerWidget\"\r\n track-loads=\"true\"\r\n ></sqb-widget>\r\n </template>\r\n <template path=\"/editProfile\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-graphql-client-provider\r\n domain=\"https://managed-identity.saasquatch.com\"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n <template path=\"/refer\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-referral-iframe></sqm-referral-iframe>\r\n </template>\r\n <template path=\"/activity\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space=\"xxxx-large\"\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title=\"Referred\"\r\n date-shown=\"dateReferralStarted\"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot=\"footer\"\r\n support-email=\"support@example.com\"\r\n terms-link=\"https://example.com\"\r\n faq-link=\"https://example.com\"\r\n terms-text=\"Terms And Conditions\"\r\n faq-text=\"FAQ\"\r\n show-powered-by=\"true\"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n";
@@ -22863,7 +24049,7 @@ const ReferralIframeReadme = "# sqm-referral-iframe\r\n\r\n\r\n\r\n<!-- Auto Gen
22863
24049
 
22864
24050
  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";
22865
24051
 
22866
- 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; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; refs?: { formRef: any; }; }` | `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";
24052
+ 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";
22867
24053
 
22868
24054
  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";
22869
24055
 
@@ -22871,7 +24057,7 @@ const ResetPasswordReadme = "# sqm-portal-reset-password\r\n\r\n\r\n\r\n<!-- Aut
22871
24057
 
22872
24058
  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";
22873
24059
 
22874
- 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";
24060
+ 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";
22875
24061
 
22876
24062
  const PortalTemplates_stories = {
22877
24063
  title: "Templates / Portal",
@@ -23069,7 +24255,7 @@ const ProgramMenu$1 = /*#__PURE__*/Object.freeze({
23069
24255
  const PoweredByImg_stories = {
23070
24256
  title: "Powered By",
23071
24257
  };
23072
- const Default$a = () => {
24258
+ const Default$b = () => {
23073
24259
  return h(PoweredByImg$1, null);
23074
24260
  };
23075
24261
  const CustomColor = () => {
@@ -23082,7 +24268,7 @@ const CustomWidthAndHeight = () => {
23082
24268
  const PoweredByImg = /*#__PURE__*/Object.freeze({
23083
24269
  __proto__: null,
23084
24270
  'default': PoweredByImg_stories,
23085
- Default: Default$a,
24271
+ Default: Default$b,
23086
24272
  CustomColor: CustomColor,
23087
24273
  CustomWidthAndHeight: CustomWidthAndHeight
23088
24274
  });
@@ -25999,6 +27185,7 @@ const stories = [
25999
27185
  ReferralTableRewardsCell$1,
26000
27186
  UserName,
26001
27187
  PasswordField,
27188
+ TaskCard,
26002
27189
  PortalTemplates,
26003
27190
  ProgramMenu$1,
26004
27191
  PoweredByImg,
@@ -26006,6 +27193,7 @@ const stories = [
26006
27193
  Hero,
26007
27194
  ReferralIframe$1,
26008
27195
  NameFields$1,
27196
+ UseRewardExchangeList,
26009
27197
  ];
26010
27198
  const StencilStorybook = class {
26011
27199
  constructor(hostRef) {
@@ -26170,4 +27358,4 @@ function useUserNameDemo(props) {
26170
27358
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
26171
27359
  }
26172
27360
 
26173
- 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, 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, Text as sqm_text, UserName$1 as sqm_user_name };
27361
+ 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, Text as sqm_text, UserName$1 as sqm_user_name };