@saasquatch/mint-components 1.3.1-5 → 1.3.2-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/CHANGELOG.md +23 -31
  2. package/dist/cjs/{ShadowViewAddon-9d9b4da1.js → ShadowViewAddon-75c18b96.js} +1 -1
  3. package/dist/cjs/{global-9b408ea0.js → global-041b5338.js} +334 -176
  4. package/dist/cjs/{sqm-leaderboard-rank-view-a4ea1781.js → index-19309631.js} +3 -10
  5. package/dist/cjs/{index.module-435791cb.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-34807c3a.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} +1253 -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-49029e07.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-6c500dad.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-ad7ff6dc.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-5c4c0a1a.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-d25d26ee.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 +73 -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-e538cfd1.js → ShadowViewAddon-fff5d35d.js} +1 -1
  114. package/dist/esm/{global-3d4e07e4.js → global-5ecbf81a.js} +281 -123
  115. package/dist/esm/{sqm-leaderboard-rank-view-4d078542.js → index-2f5dd0a1.js} +3 -9
  116. package/dist/esm/{index.module-ba6a3c0b.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-7cac2256.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} +1249 -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-c1bfbabf.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-2ec16b3e.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-e7833f1d.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-f654c4ea.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-3cb7e027.js → useDemoBigStat-b71fe122.js} +3 -2
  154. package/dist/esm-es5/{ShadowViewAddon-e538cfd1.js → ShadowViewAddon-fff5d35d.js} +1 -1
  155. package/dist/esm-es5/{global-3d4e07e4.js → global-5ecbf81a.js} +2 -16
  156. package/dist/esm-es5/index-2f5dd0a1.js +1 -0
  157. package/dist/esm-es5/{index.module-ba6a3c0b.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-7cac2256.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-c1bfbabf.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-2ec16b3e.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-e7833f1d.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-f654c4ea.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-3cb7e027.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-5cda2ff8.js → p-00190438.js} +1 -1
  200. package/dist/mint-components/{p-f68887c5.system.entry.js → p-04516274.system.entry.js} +1 -1
  201. package/dist/mint-components/{p-ea6def69.js → p-05cca77b.js} +1 -1
  202. package/dist/mint-components/{p-7542e748.system.entry.js → p-0688c9c2.system.entry.js} +1 -1
  203. package/dist/mint-components/p-11c75956.entry.js +1 -0
  204. package/dist/mint-components/{p-020925bd.system.entry.js → p-16535642.system.entry.js} +1 -1
  205. package/dist/mint-components/{p-f0ca034f.entry.js → p-16da5146.entry.js} +1 -1
  206. package/dist/mint-components/{p-4eb147bc.system.js → p-1813b9b9.system.js} +1 -1
  207. package/dist/mint-components/p-189219ee.system.js +1 -0
  208. package/dist/mint-components/{p-2a62048f.system.entry.js → p-1ac9c24b.system.entry.js} +1 -1
  209. package/dist/mint-components/{p-55ab4a7d.system.entry.js → p-1b414d8f.system.entry.js} +1 -1
  210. package/dist/mint-components/p-1e248afc.system.entry.js +1 -0
  211. package/dist/mint-components/{p-2916bbca.system.js → p-1fb688a9.system.js} +1 -1
  212. package/dist/mint-components/p-21dfdeb8.entry.js +1 -0
  213. package/dist/mint-components/p-23a0bdae.entry.js +1 -0
  214. package/dist/mint-components/{p-a92546db.system.entry.js → p-2a025d2a.system.entry.js} +1 -1
  215. package/dist/mint-components/{p-b1c49238.js → p-2bce988c.js} +1 -1
  216. package/dist/mint-components/{p-18f4ba8b.entry.js → p-2f171597.entry.js} +1 -1
  217. package/dist/mint-components/{p-5715623e.system.js → p-3052c913.system.js} +1 -1
  218. package/dist/mint-components/{p-53f0a6b3.entry.js → p-337b49ee.entry.js} +1 -1
  219. package/dist/mint-components/p-353b4413.system.js +1 -0
  220. package/dist/mint-components/{p-5a2851cc.system.js → p-3b0acfcd.system.js} +1 -1
  221. package/dist/mint-components/{p-03f4acde.system.entry.js → p-3fd33dee.system.entry.js} +1 -1
  222. package/dist/mint-components/{p-fa35ce9a.js → p-405a9253.js} +2 -2
  223. package/dist/mint-components/{p-eea2a0c4.js → p-434ee9c1.js} +1 -1
  224. package/dist/mint-components/{p-a642d1ec.system.entry.js → p-4ba2faf2.system.entry.js} +1 -1
  225. package/dist/mint-components/{p-0709229c.system.entry.js → p-505f5c59.system.entry.js} +1 -1
  226. package/dist/mint-components/p-55e02769.entry.js +13 -0
  227. package/dist/mint-components/{p-6330f23f.system.entry.js → p-57a53dbd.system.entry.js} +1 -1
  228. package/dist/mint-components/p-58d9b2f0.js +15 -0
  229. package/dist/mint-components/{p-6d35f2ee.system.entry.js → p-5dfc6804.system.entry.js} +1 -1
  230. package/dist/mint-components/{p-ca90520a.entry.js → p-5f28af29.entry.js} +1 -1
  231. package/dist/mint-components/p-684850a7.entry.js +287 -0
  232. package/dist/mint-components/{p-30e77766.entry.js → p-6cdc70f4.entry.js} +1 -1
  233. package/dist/mint-components/{p-5fe2fb00.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-2815a088.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-81dbda90.system.entry.js +1 -0
  241. package/dist/mint-components/p-82ab88fe.system.js +1 -0
  242. package/dist/mint-components/{p-5385bbfe.entry.js → p-82d7a2ba.entry.js} +1 -1
  243. package/dist/mint-components/{p-a547f406.entry.js → p-844f9bad.entry.js} +1 -1
  244. package/dist/mint-components/{p-87b98a2c.js → p-844fd903.js} +1 -1
  245. package/dist/mint-components/p-8c16f04e.js +1 -0
  246. package/dist/mint-components/{p-9af736be.js → p-8e37c08d.js} +1 -1
  247. package/dist/mint-components/p-8f5e2af4.entry.js +1 -0
  248. package/dist/mint-components/p-91d39961.system.js +1 -0
  249. package/dist/mint-components/{p-5270cb55.system.entry.js → p-a0045707.system.entry.js} +1 -1
  250. package/dist/mint-components/p-a0cfd3d9.system.js +1 -0
  251. package/dist/mint-components/{p-5061bf8f.entry.js → p-a4a00461.entry.js} +1 -1
  252. package/dist/mint-components/{p-5aa7b1fb.entry.js → p-a7f0b2f6.entry.js} +1 -1
  253. package/dist/mint-components/{p-df3538c0.entry.js → p-aba21f90.entry.js} +1 -1
  254. package/dist/mint-components/{p-4aab72ca.system.entry.js → p-af06ea5b.system.entry.js} +1 -1
  255. package/dist/mint-components/p-b3af1c6f.js +1 -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-bdae889b.js → p-cc3510c8.js} +1 -1
  261. package/dist/mint-components/{p-752356cf.system.js → p-ceeaf074.system.js} +21 -35
  262. package/dist/mint-components/{p-7c90cd8c.entry.js → p-d3787c3a.entry.js} +1 -1
  263. package/dist/mint-components/{p-94506902.entry.js → p-d9cc041f.entry.js} +1 -1
  264. package/dist/mint-components/{p-4ffa1eb6.system.entry.js → p-db723323.system.entry.js} +1 -1
  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-e22eed7b.entry.js +1 -0
  269. package/dist/mint-components/p-e2ebe90c.entry.js +1 -0
  270. package/dist/mint-components/{p-56364fb0.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-d9bb3af3.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-52bdd5fa.js → p-f1e1086e.js} +2 -17
  275. package/dist/mint-components/p-f41ab9e1.system.js +1 -0
  276. package/dist/mint-components/{p-454a81a7.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-4d078542.js +0 -1
  340. package/dist/mint-components/p-041dfea5.entry.js +0 -1
  341. package/dist/mint-components/p-1cb6494c.entry.js +0 -1
  342. package/dist/mint-components/p-1e4273ca.system.entry.js +0 -1
  343. package/dist/mint-components/p-24dde2f1.system.js +0 -1
  344. package/dist/mint-components/p-32e57678.system.js +0 -1
  345. package/dist/mint-components/p-43fec887.entry.js +0 -1
  346. package/dist/mint-components/p-4b19d12b.system.js +0 -1
  347. package/dist/mint-components/p-5e3052b6.system.entry.js +0 -1
  348. package/dist/mint-components/p-65127485.entry.js +0 -1
  349. package/dist/mint-components/p-71489612.entry.js +0 -230
  350. package/dist/mint-components/p-79d13c1d.entry.js +0 -1
  351. package/dist/mint-components/p-7ad6a139.system.js +0 -1
  352. package/dist/mint-components/p-7c13e715.entry.js +0 -13
  353. package/dist/mint-components/p-84dbf729.js +0 -1
  354. package/dist/mint-components/p-8701caac.system.entry.js +0 -1
  355. package/dist/mint-components/p-8b0a7181.system.entry.js +0 -1
  356. package/dist/mint-components/p-a2a4936e.system.entry.js +0 -1
  357. package/dist/mint-components/p-b7b2e183.system.entry.js +0 -1
  358. package/dist/mint-components/p-bad52e11.entry.js +0 -1
  359. package/dist/mint-components/p-d49ad5d9.system.entry.js +0 -1
  360. package/dist/mint-components/p-e081270c.system.js +0 -1
  361. package/dist/mint-components/p-f0c81c23.entry.js +0 -9
  362. package/dist/types/stories/UserName.stories.d.ts +0 -6
@@ -4,10 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
6
  const _extends = require('./extends-0302d27d.js');
7
- const global = require('./global-9b408ea0.js');
7
+ const global = require('./global-041b5338.js');
8
8
  const useCallback = require('./use-callback-fadb2643.js');
9
- const index_module = require('./index.module-435791cb.js');
9
+ const index_module = require('./index.module-6a7bda18.js');
10
10
  const jsonpointer = require('./jsonpointer-11327262.js');
11
+ require('./tslib.es6-0e81fab1.js');
11
12
  const jssPresetDefault_esm = require('./jss-preset-default.esm-6304d24f.js');
12
13
  const utils = require('./utils-95e5317c.js');
13
14
  const cjs = require('./cjs-1066ec21.js');
@@ -15,21 +16,24 @@ const mixins = require('./mixins-7b7c59fe.js');
15
16
  const sqmPortalContainerView = require('./sqm-portal-container-view-d144735a.js');
16
17
  const sqmPortalSectionView = require('./sqm-portal-section-view-3b008930.js');
17
18
  const sqmTextSpanView = require('./sqm-text-span-view-b5ae787b.js');
18
- const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-a4ea1781.js');
19
- const reRender = require('./re-render-34807c3a.js');
20
- const useDemoBigStat = require('./useDemoBigStat-d25d26ee.js');
19
+ const index$1 = require('./index-19309631.js');
20
+ const reRender = require('./re-render-7cdb2d81.js');
21
+ const useChildElements = require('./useChildElements-428ca5b8.js');
22
+ const useDemoBigStat = require('./useDemoBigStat-17e61803.js');
21
23
  const sqmShareLinkView = require('./sqm-share-link-view-a935d07e.js');
22
- const ShadowViewAddon = require('./ShadowViewAddon-9d9b4da1.js');
24
+ const ShadowViewAddon = require('./ShadowViewAddon-75c18b96.js');
25
+ const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-35015d30.js');
23
26
  const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-d06e1885.js');
24
- const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-49029e07.js');
27
+ const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-e99b4a10.js');
25
28
  const sqmStatContainerView = require('./sqm-stat-container-view-ee7b00ff.js');
26
- const sqmPortalProfileView = require('./sqm-portal-profile-view-5c4c0a1a.js');
29
+ const sqmPortalProfileView = require('./sqm-portal-profile-view-a23ea292.js');
27
30
  const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-1704d285.js');
28
- const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-6c500dad.js');
31
+ const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-5e955797.js');
29
32
  const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-4d78fd6d.js');
30
33
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-b595e302.js');
31
34
  const sqmAssetCardView = require('./sqm-asset-card-view-07f86880.js');
32
- const sqmPortalFooterView = require('./sqm-portal-footer-view-ad7ff6dc.js');
35
+ const sqmTaskCardView = require('./sqm-task-card-view-57066e67.js');
36
+ const sqmPortalFooterView = require('./sqm-portal-footer-view-9089feb7.js');
33
37
  const sqmHeroView = require('./sqm-hero-view-bb3d00a1.js');
34
38
  const sqmNameFieldsView = require('./sqm-name-fields-view-24614ac7.js');
35
39
 
@@ -5876,22 +5880,7 @@ function ReferralTableView(props) {
5876
5880
  index.h("sl-button", { size: "small", loading: states.loading, disabled: !states.hasNext, onClick: callbacks.nextPage, exportparts: "base: defaultbutton-base" }, data.textOverrides.moreLabel))));
5877
5881
  }
5878
5882
 
5879
- function useChildElements() {
5880
- const host = index_module.P();
5881
- const initialState = host.children.length ? Array.from(host.children) : [];
5882
- const [childElements, setChildElements] = _extends.useState(initialState);
5883
- _extends.useEffect(() => {
5884
- const observer = new MutationObserver(() => {
5885
- const children = Array.from(host.children);
5886
- setChildElements([...children]);
5887
- });
5888
- observer.observe(host, { childList: true });
5889
- return () => observer.disconnect();
5890
- }, [host]);
5891
- return childElements;
5892
- }
5893
-
5894
- const GET_REFERRER_DATA = sqmLeaderboardRankView.gql `
5883
+ const GET_REFERRER_DATA = index$1.gql `
5895
5884
  query getReferrals($programId: ID, $rewardFilter: RewardFilterInput) {
5896
5885
  viewer {
5897
5886
  ... on User {
@@ -5938,7 +5927,7 @@ const GET_REFERRER_DATA = sqmLeaderboardRankView.gql `
5938
5927
  }
5939
5928
  }
5940
5929
  `;
5941
- const GET_REFERRAL_DATA = sqmLeaderboardRankView.gql `
5930
+ const GET_REFERRAL_DATA = index$1.gql `
5942
5931
  query getReferrals(
5943
5932
  $limit: Int!
5944
5933
  $offset: Int!
@@ -6102,7 +6091,7 @@ function useReferralTable(props, emptyElement, loadingElement) {
6102
6091
  }, [props.showReferrer]);
6103
6092
  const tick = reRender.useRerenderListener();
6104
6093
  const data = referralData === null || referralData === void 0 ? void 0 : referralData.data;
6105
- const components = useChildElements();
6094
+ const components = useChildElements.useChildElements();
6106
6095
  async function getComponentData(components) {
6107
6096
  // filter out loading and empty states from columns array
6108
6097
  const columnComponents = components.filter((component) => component.slot !== "loading" && component.slot !== "empty");
@@ -14749,6 +14738,560 @@ const ReferralTableUserCell = class {
14749
14738
  }
14750
14739
  };
14751
14740
 
14741
+ const GET_EXCHANGE_LIST = index_module.dist.gql `
14742
+ query getExchangeList {
14743
+ viewer {
14744
+ ... on User {
14745
+ visibleRewardExchangeItems(limit: 20, offset: 0) {
14746
+ data {
14747
+ key
14748
+ name
14749
+ description
14750
+ imageUrl
14751
+ available
14752
+ unavailableReason
14753
+ unavailableReasonCode
14754
+ ruleType
14755
+ sourceUnit
14756
+ sourceValue
14757
+ prettySourceValue
14758
+ sourceMinValue
14759
+ prettySourceMinValue
14760
+ sourceMaxValue
14761
+ prettySourceMaxValue
14762
+ destinationMinValue
14763
+ prettyDestinationMinValue
14764
+ destinationMaxValue
14765
+ prettyDestinationMaxValue
14766
+ globalRewardKey
14767
+ destinationUnit
14768
+ steps {
14769
+ sourceValue
14770
+ prettySourceValue
14771
+ destinationValue
14772
+ prettyDestinationValue
14773
+ available
14774
+ }
14775
+ }
14776
+ totalCount
14777
+ }
14778
+ }
14779
+ }
14780
+ }
14781
+ `;
14782
+ const EXCHANGE = index_module.dist.gql `
14783
+ mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
14784
+ exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
14785
+ reward {
14786
+ id
14787
+ fuelTankCode
14788
+ }
14789
+ }
14790
+ }
14791
+ `;
14792
+ function useRewardExchangeList(props) {
14793
+ var _a, _b, _c, _d;
14794
+ const drawerRef = _extends.useRef();
14795
+ const [exchangeState, setExchangeState] = _extends.useReducer((state, next) => ({
14796
+ ...state,
14797
+ ...next,
14798
+ }), {
14799
+ selectedItem: undefined,
14800
+ selectedStep: undefined,
14801
+ redeemStage: "",
14802
+ amount: 0,
14803
+ exchangeError: false,
14804
+ });
14805
+ const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
14806
+ const user = index_module.T();
14807
+ const [exchange, { data: exchangeResponse, errors }] = index_module.be(EXCHANGE);
14808
+ const { data } = index_module.en(GET_EXCHANGE_LIST, !(user === null || user === void 0 ? void 0 : user.jwt));
14809
+ _extends.useEffect(() => {
14810
+ var _a, _b;
14811
+ 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) {
14812
+ setExchangeState({ redeemStage: "success" });
14813
+ }
14814
+ if (!!errors) {
14815
+ console.log("YEA");
14816
+ setExchangeState({ exchangeError: true });
14817
+ }
14818
+ }, [exchangeResponse, errors]);
14819
+ function openDrawer() {
14820
+ var _a;
14821
+ setExchangeState({ redeemStage: "chooseReward" });
14822
+ (_a = drawerRef.current) === null || _a === void 0 ? void 0 : _a.show();
14823
+ }
14824
+ function exchangeReward() {
14825
+ if (!selectedItem)
14826
+ return;
14827
+ let exchangeVariables = {
14828
+ accountId: user === null || user === void 0 ? void 0 : user.accountId,
14829
+ userId: user.id,
14830
+ };
14831
+ switch (selectedItem.ruleType) {
14832
+ case "FIXED_GLOBAL_REWARD":
14833
+ exchangeVariables = {
14834
+ ...exchangeVariables,
14835
+ redeemCreditInput: {
14836
+ amount: selectedItem.sourceValue,
14837
+ unit: selectedItem.sourceUnit,
14838
+ },
14839
+ globalRewardKey: selectedItem.globalRewardKey,
14840
+ };
14841
+ break;
14842
+ case "VARIABLE_GLOBAL_REWARD":
14843
+ exchangeVariables = {
14844
+ ...exchangeVariables,
14845
+ redeemCreditInput: {
14846
+ amount: amount,
14847
+ unit: selectedItem.sourceUnit,
14848
+ },
14849
+ globalRewardKey: selectedItem.globalRewardKey,
14850
+ rewardInput: {
14851
+ valueInCents: selectedStep.destinationValue,
14852
+ },
14853
+ };
14854
+ break;
14855
+ case "VARIABLE_CREDIT_REWARD":
14856
+ exchangeVariables = {
14857
+ ...exchangeVariables,
14858
+ redeemCreditInput: {
14859
+ amount: amount,
14860
+ unit: selectedItem.sourceUnit,
14861
+ },
14862
+ rewardInput: {
14863
+ type: "CREDIT",
14864
+ unit: selectedItem.destinationUnit,
14865
+ assignedCredit: selectedStep.destinationValue,
14866
+ },
14867
+ };
14868
+ break;
14869
+ default:
14870
+ exchangeVariables = {
14871
+ ...exchangeVariables,
14872
+ redeemCreditInput: {
14873
+ amount: selectedItem.sourceValue,
14874
+ unit: selectedItem.sourceUnit,
14875
+ },
14876
+ globalRewardKey: selectedItem.globalRewardKey,
14877
+ };
14878
+ }
14879
+ exchange({ exchangeRewardInput: exchangeVariables });
14880
+ }
14881
+ const resetState = useCallback.useCallback((e) => {
14882
+ var _a, _b;
14883
+ // selects also trigger an sl-hide event :(
14884
+ //@ts-ignore - componentId is not private here
14885
+ 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))
14886
+ return;
14887
+ setExchangeState({
14888
+ amount: 0,
14889
+ selectedStep: undefined,
14890
+ selectedItem: undefined,
14891
+ exchangeError: false,
14892
+ });
14893
+ }, []);
14894
+ _extends.useEffect(() => {
14895
+ if (!(drawerRef === null || drawerRef === void 0 ? void 0 : drawerRef.current))
14896
+ return;
14897
+ const drawer = drawerRef.current;
14898
+ // Clear input value when drawer is closed
14899
+ drawer.addEventListener("sl-hide", resetState);
14900
+ return () => {
14901
+ drawer.removeEventListener("sl-hide", resetState);
14902
+ };
14903
+ }, [drawerRef.current]);
14904
+ function setStage(stage) {
14905
+ setExchangeState({ redeemStage: stage });
14906
+ }
14907
+ return {
14908
+ states: {
14909
+ content: {
14910
+ text: props,
14911
+ },
14912
+ selectedItem,
14913
+ redeemStage,
14914
+ amount,
14915
+ selectedStep,
14916
+ exchangeError,
14917
+ },
14918
+ data: {
14919
+ 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,
14920
+ //@ts-ignore
14921
+ 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,
14922
+ },
14923
+ callbacks: {
14924
+ exchangeReward,
14925
+ openDrawer,
14926
+ setExchangeState,
14927
+ setStage,
14928
+ },
14929
+ refs: {
14930
+ drawerRef,
14931
+ },
14932
+ };
14933
+ }
14934
+
14935
+ function Dot({ active, completed, incomplete, }) {
14936
+ return (index.h("div", { style: {
14937
+ flex: "0 0 0",
14938
+ content: "''",
14939
+ height: "4px",
14940
+ borderRadius: "4px",
14941
+ background: incomplete ? "#E5E5E5" : "#9E9E9E",
14942
+ position: "relative",
14943
+ bottom: "0",
14944
+ left: "0",
14945
+ display: "flex",
14946
+ justifyContent: "center",
14947
+ columnGap: "50px",
14948
+ marginRight: "-2px",
14949
+ boxSizing: "content-box",
14950
+ } },
14951
+ index.h("div", { style: {
14952
+ backgroundColor: completed ? "#9E9E9E" : "#FFF",
14953
+ border: active
14954
+ ? "2px solid #9E9E9E"
14955
+ : incomplete
14956
+ ? "2px solid #E5E5E5"
14957
+ : "none",
14958
+ borderRadius: "50%",
14959
+ width: completed ? "12px" : "8px",
14960
+ height: completed ? "12px" : "8px",
14961
+ margin: "-4px auto 0px",
14962
+ zIndex: "1",
14963
+ } })));
14964
+ }
14965
+ function Progress({ active, completed, incomplete }) {
14966
+ return [
14967
+ index.h("div", { style: {
14968
+ content: "''",
14969
+ flex: "0.5 0.5 0",
14970
+ height: "4px",
14971
+ borderRadius: "4px",
14972
+ background: incomplete ? "#E5E5E5" : "#9E9E9E",
14973
+ position: "relative",
14974
+ bottom: "0",
14975
+ left: "0",
14976
+ display: "flex",
14977
+ justifyContent: "center",
14978
+ columnGap: "50px",
14979
+ marginRight: "-2px",
14980
+ boxSizing: "content-box",
14981
+ } }),
14982
+ index.h(Dot, { active: active, completed: completed, incomplete: incomplete }),
14983
+ index.h("div", { style: {
14984
+ content: "''",
14985
+ flex: "0.5 0.5 0",
14986
+ height: "4px",
14987
+ borderRadius: "4px",
14988
+ background: incomplete || active ? "#E5E5E5" : "#9E9E9E",
14989
+ position: "relative",
14990
+ bottom: "0",
14991
+ left: "0",
14992
+ display: "flex",
14993
+ justifyContent: "center",
14994
+ columnGap: "50px",
14995
+ marginRight: "-2px",
14996
+ boxSizing: "content-box",
14997
+ } }),
14998
+ ];
14999
+ }
15000
+ function ProgressBar({ stage }) {
15001
+ console.log({ stage });
15002
+ return (index.h("div", { style: { display: "flex", columnGap: "-2px" } },
15003
+ index.h(Progress, { active: stage === 0, completed: stage > 0, incomplete: stage < 0 }),
15004
+ index.h(Progress, { active: stage === 1, completed: stage > 1, incomplete: stage < 1 }),
15005
+ index.h(Progress, { active: stage === 2, completed: stage > 2, incomplete: stage < 2 })));
15006
+ }
15007
+
15008
+ const LeftArrow = () => (index.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" } },
15009
+ index.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" })));
15010
+
15011
+ const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
15012
+ const stageProgressList = {
15013
+ chooseReward: "Choose reward",
15014
+ chooseAmount: "Amount",
15015
+ confirmation: "Confirm",
15016
+ };
15017
+ function RewardExchangeView(props) {
15018
+ const style = {
15019
+ Container: {
15020
+ position: "relative",
15021
+ display: "flex",
15022
+ },
15023
+ CardContainer: {
15024
+ "&:hover": {
15025
+ boxShadow: "0 3px 10px #87ceeb6e!important",
15026
+ },
15027
+ },
15028
+ Base: {
15029
+ display: "block",
15030
+ cursor: "pointer",
15031
+ textAlign: "center",
15032
+ "&::part(base)": {
15033
+ width: "100%",
15034
+ height: "170px",
15035
+ display: "flex",
15036
+ justifyContent: "space-between",
15037
+ alignItems: "center",
15038
+ },
15039
+ "&::part(body)": {
15040
+ padding: "10px 0",
15041
+ },
15042
+ },
15043
+ Drawer: {
15044
+ "&::part(base)": {
15045
+ minWidth: "400px",
15046
+ width: "50%",
15047
+ margin: "0 auto",
15048
+ right: "0",
15049
+ },
15050
+ "&::part(panel)": {
15051
+ height: "85vh",
15052
+ },
15053
+ },
15054
+ FullImage: {
15055
+ objectFit: "contain",
15056
+ maxWidth: "100%",
15057
+ height: "100px",
15058
+ },
15059
+ PreviewImage: {
15060
+ objectFit: "contain",
15061
+ maxWidth: "100%",
15062
+ height: "75px",
15063
+ },
15064
+ InputBox: {
15065
+ width: "100%",
15066
+ marginBottom: "20px",
15067
+ },
15068
+ Select: {
15069
+ "&::part(base)": {
15070
+ flex: "0.75",
15071
+ },
15072
+ "&::part(menu)": {
15073
+ maxHeight: "40vh",
15074
+ },
15075
+ },
15076
+ Buttons: {
15077
+ bottom: "0",
15078
+ width: "100%",
15079
+ },
15080
+ Button: {
15081
+ margin: "10px 0",
15082
+ display: "block",
15083
+ textAlign: "center",
15084
+ cursor: "pointer",
15085
+ },
15086
+ };
15087
+ // JSS config
15088
+ jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
15089
+ const sheet = jssPresetDefault_esm.jss.createStyleSheet(style);
15090
+ const styleString = sheet.toString();
15091
+ const { states, data, callbacks, refs } = props;
15092
+ const { selectedItem, selectedStep } = states;
15093
+ function getInput() {
15094
+ var _a, _b;
15095
+ const item = states.selectedItem;
15096
+ if (!item || (item === null || item === void 0 ? void 0 : item.ruleType) === "FIXED_GLOBAL_REWARD")
15097
+ return index.h("span", null);
15098
+ if (!((_a = item.steps) === null || _a === void 0 ? void 0 : _a.length)) {
15099
+ return index.h("p", null,
15100
+ "Not enough ",
15101
+ item.sourceUnit,
15102
+ " to redeem for this reward.");
15103
+ }
15104
+ return (index.h("sl-select", { style: { width: "auto" }, label: "Select amount to receive", class: sheet.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
15105
+ var _a, _b, _c, _d, _e;
15106
+ return callbacks.setExchangeState({
15107
+ 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,
15108
+ selectedStep: (_e = (_d = e.detail) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.value,
15109
+ });
15110
+ } }, (_b = item.steps) === null || _b === void 0 ? void 0 : _b.map((step) => (index.h("sl-menu-item", { value: step, disabled: !step.available },
15111
+ step.prettyDestinationValue,
15112
+ index.h("span", { slot: "suffix", style: { fontSize: "75%" } }, step.prettySourceValue))))));
15113
+ }
15114
+ function chooseReward() {
15115
+ var _a;
15116
+ const nextStage = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
15117
+ ? "confirmation"
15118
+ : "chooseAmount";
15119
+ console.log({ nextStage, ruleType: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType });
15120
+ return (index.h("div", { style: {
15121
+ display: "flex",
15122
+ justifyContent: "center",
15123
+ flexWrap: "wrap",
15124
+ alignItems: "center",
15125
+ columnGap: "12px",
15126
+ rowGap: "12px",
15127
+ } }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 :
15128
+ _a.map((item) => {
15129
+ const style = {
15130
+ boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) ? "0 1px 8px #87ceeb" : "none",
15131
+ marginBottom: "10px 0",
15132
+ flex: "1",
15133
+ minWidth: "45%",
15134
+ };
15135
+ return (index.h("div", { key: item.key, class: sheet.classes.CardContainer, style: style },
15136
+ index.h("sl-card", { class: sheet.classes.Base, onClick: () => callbacks.setExchangeState({ selectedItem: item }), disabled: !item.available },
15137
+ index.h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || index.getAssetPath("./assets/Reward-icon.png") }),
15138
+ index.h("p", null, item.description))));
15139
+ }),
15140
+ index.h("div", { class: sheet.classes.Buttons },
15141
+ index.h("sl-button", { onClick: () => callbacks.setStage(nextStage), style: { display: "block" }, class: sheet.classes.Button, disabled: !states.selectedItem }, "Continue"),
15142
+ index.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"))));
15143
+ }
15144
+ function chooseAmount() {
15145
+ const input = getInput();
15146
+ return (index.h("div", null,
15147
+ index.h("div", { style: { width: "50%", margin: "0 auto" } }, (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) && (index.h("img", { class: sheet.classes.FullImage, src: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl }))),
15148
+ index.h("p", null, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description),
15149
+ index.h("div", { class: sheet.classes.InputBox }, input),
15150
+ index.h("div", { class: sheet.classes.Buttons },
15151
+ index.h("sl-button", { onClick: () => callbacks.setStage("confirmation"), disabled: input && !states.amount, style: { display: "block" }, class: sheet.classes.Button }, "Continue"),
15152
+ index.h("a", { onClick: () => callbacks.setStage("chooseReward"), style: { display: "block" }, class: sheet.classes.Button }, "Back"))));
15153
+ }
15154
+ console.log({ selectedItem, selectedStep });
15155
+ function confirmation() {
15156
+ console.log("confirmation:", { selectedItem });
15157
+ const redemptionAmount = () => {
15158
+ var _a;
15159
+ if ((selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD") {
15160
+ 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}`;
15161
+ }
15162
+ else {
15163
+ const amount = states.amount;
15164
+ 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}`;
15165
+ return `Redeem ${amount} ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.sourceUnit} for ${reward}`;
15166
+ }
15167
+ };
15168
+ const previousStage = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
15169
+ ? "chooseReward"
15170
+ : "chooseAmount";
15171
+ return (index.h("div", null,
15172
+ index.h("h2", null, "Confirm your redemption:"),
15173
+ redemptionAmount(),
15174
+ index.h("div", { class: sheet.classes.Buttons },
15175
+ index.h("sl-button", { onClick: callbacks.exchangeReward, style: { display: "block" }, class: sheet.classes.Button }, "Redeem"),
15176
+ index.h("a", { onClick: () => callbacks.setStage(previousStage), style: { display: "block" }, class: sheet.classes.Button }, "Back"))));
15177
+ }
15178
+ function success() {
15179
+ return (index.h("div", { style: { textAlign: "center" } },
15180
+ index.h("img", { class: sheet.classes.FullImage, src: index.getAssetPath("./assets/Reward-icon.png") }),
15181
+ index.h("p", { style: { color: "forestgreen" } }, "Reward Redeemed"),
15182
+ (data === null || data === void 0 ? void 0 : data.fuelTankCode) && index.h("pre", null, data === null || data === void 0 ? void 0 : data.fuelTankCode),
15183
+ index.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")));
15184
+ }
15185
+ const stages = {
15186
+ chooseReward: () => chooseReward(),
15187
+ chooseAmount: () => chooseAmount(),
15188
+ confirmation: () => confirmation(),
15189
+ success: () => success(),
15190
+ };
15191
+ const currentStage = stages[states.redeemStage];
15192
+ function stageMap() {
15193
+ const stageNumber = stageList.indexOf(states.redeemStage);
15194
+ return (index.h("div", { style: { fontSize: "80%" } },
15195
+ index.h(ProgressBar, { stage: stageNumber }),
15196
+ index.h("div", { style: {
15197
+ marginTop: "5px",
15198
+ display: "flex",
15199
+ justifyContent: "center",
15200
+ textAlign: "center",
15201
+ whiteSpace: "nowrap",
15202
+ marginBottom: "10px",
15203
+ } }, Object.keys(stageProgressList).map((stage) => {
15204
+ if (stage === states.redeemStage)
15205
+ return (index.h("b", { style: { flex: "1 1 0" } },
15206
+ " ",
15207
+ stageProgressList[stage]));
15208
+ return index.h("i", { style: { flex: "1 1 0" } }, stageProgressList[stage]);
15209
+ }))));
15210
+ }
15211
+ const Label = () => {
15212
+ if (states.redeemStage === "success")
15213
+ return "";
15214
+ let previousStage = "";
15215
+ if (states.redeemStage === "confirmation") {
15216
+ previousStage =
15217
+ (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
15218
+ ? "chooseReward"
15219
+ : "chooseAmount";
15220
+ }
15221
+ else if (states.redeemStage === "chooseAmount") {
15222
+ previousStage = "chooseReward";
15223
+ }
15224
+ return (index.h("div", { slot: "label" },
15225
+ index.h("a", { style: { cursor: "pointer", fontSize: "80%", color: "#858585" }, onClick: () => callbacks.setStage(previousStage) },
15226
+ index.h(LeftArrow, null),
15227
+ " Back")));
15228
+ };
15229
+ return (index.h("div", { class: sheet.classes.Container },
15230
+ index.h("style", { type: "text/css" }, styleString),
15231
+ index.h("div", null,
15232
+ index.h("sl-drawer", { ref: (ref) => (refs.drawerRef.current = ref), placement: "right", class: sheet.classes.Drawer, open: stageList.indexOf(states.redeemStage) >= 0 },
15233
+ index.h(Label, null),
15234
+ stageMap(),
15235
+ currentStage && currentStage(),
15236
+ states.exchangeError &&
15237
+ "Something went wrong. Please contact support or try again."),
15238
+ index.h("sl-button", { onClick: () => callbacks.openDrawer() }, "Redeem Rewards"))));
15239
+ }
15240
+
15241
+ const SqmRewardExchangeList = class {
15242
+ constructor(hostRef) {
15243
+ index.registerInstance(this, hostRef);
15244
+ this.ignored = true;
15245
+ /**
15246
+ * @uiName Exchange button text
15247
+ */
15248
+ this.buttonText = "Exchange Rewards";
15249
+ _extends.h$1(this);
15250
+ }
15251
+ disconnectedCallback() { }
15252
+ render() {
15253
+ // const missingProps = getMissingProps([
15254
+ // {
15255
+ // attribute: "listType",
15256
+ // value: this.listType,
15257
+ // },
15258
+ // ]);
15259
+ // if (missingProps) {
15260
+ // return <RequiredPropsError missingProps={missingProps} />;
15261
+ // }
15262
+ const { states, data, callbacks, refs } = index_module.j()
15263
+ ? useRewardExchangeListDemo(utils.getProps(this))
15264
+ : useRewardExchangeList(utils.getProps(this));
15265
+ return (index.h(index.Host, { style: { display: "contents" } }, index.h(RewardExchangeView, { states: states, data: data, callbacks: callbacks, refs: refs })));
15266
+ }
15267
+ static get assetsDirs() { return ["assets"]; }
15268
+ };
15269
+ function useRewardExchangeListDemo(props) {
15270
+ return cjs.cjs({
15271
+ states: {
15272
+ content: {
15273
+ text: props,
15274
+ },
15275
+ redeemStage: "",
15276
+ amount: 0,
15277
+ selectedStep: undefined,
15278
+ exchangeError: false,
15279
+ },
15280
+ data: {
15281
+ shareCode: "SHARECODE123",
15282
+ },
15283
+ callbacks: {
15284
+ exchangeReward: () => { },
15285
+ openDrawer: () => { },
15286
+ setExchangeState: (_) => { },
15287
+ setStage: (_) => { },
15288
+ },
15289
+ refs: {
15290
+ drawerRef: {},
15291
+ },
15292
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
15293
+ }
15294
+
14752
15295
  const debug$1 = _extends.browser("sq:useRouter");
14753
15296
  function matchPath(pattern, page) {
14754
15297
  if (!pattern)
@@ -14858,7 +15401,7 @@ function ShareButtonView(props, children) {
14858
15401
  !props.hidetext && children)));
14859
15402
  }
14860
15403
 
14861
- const MessageLinkQuery = sqmLeaderboardRankView.gql `
15404
+ const MessageLinkQuery = index$1.gql `
14862
15405
  query (
14863
15406
  $programId: ID
14864
15407
  $engagementMedium: UserEngagementMedium!
@@ -15012,14 +15555,13 @@ const MessageLinkQuery$1 = index_module.dist.gql `
15012
15555
  }
15013
15556
  `;
15014
15557
  function useShareLink(props) {
15015
- var _a, _b, _c;
15558
+ var _a, _b;
15016
15559
  const { programId = index_module.M() } = props;
15017
15560
  const user = index_module.T();
15018
15561
  const { data } = index_module.en(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
15019
15562
  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 :
15020
15563
  // Shown during loading
15021
15564
  "...";
15022
- console.log((_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.shareLink, shareString);
15023
15565
  const [open, setOpen] = _extends.useState(false);
15024
15566
  function onClick() {
15025
15567
  // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
@@ -16492,7 +17034,7 @@ var _createEmotion = createEmotion({
16492
17034
  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?index.h:b,g=f.title,m=void 0===g?"Stencilbook":g,x=f.homepage,h=void 0===x?y("h3",null,"Select a story!"):x,v=f.addons,k=void 0===v?[]:v,w=_extends.useMemo(function(){return a.map(d$1).reduce(p$1,{_:[]})},a),S=_extends.useState(void 0),C=S[0],z=S[1],O=null==C?void 0:C.key,j=_extends.useState("desktop"),T=j[0],_=j[1],B=_extends.useState(!0),D=B[0],L=B[1],N=_extends.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,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}}
16493
17035
 
16494
17036
  const ShareButton_stories = {
16495
- title: "Share Button",
17037
+ title: "Components/Share Button",
16496
17038
  };
16497
17039
  const WithIcon = () => {
16498
17040
  const props = { medium: "facebook", iconslot: "suffix" };
@@ -16548,7 +17090,7 @@ const ShareButton$1 = /*#__PURE__*/Object.freeze({
16548
17090
  });
16549
17091
 
16550
17092
  const ShareLink_stories = {
16551
- title: "Share Link",
17093
+ title: "Components/Share Link",
16552
17094
  };
16553
17095
  const Default = () => {
16554
17096
  const props = {
@@ -16589,7 +17131,7 @@ const ShareLink$1 = /*#__PURE__*/Object.freeze({
16589
17131
  });
16590
17132
 
16591
17133
  const BigStat_stories = {
16592
- title: "Big Stat",
17134
+ title: "Components/Big Stat",
16593
17135
  };
16594
17136
  const Default$1 = () => {
16595
17137
  const props = { statvalue: "9.900,00" };
@@ -16659,7 +17201,7 @@ const BigStat = /*#__PURE__*/Object.freeze({
16659
17201
  });
16660
17202
 
16661
17203
  const Leaderboard_stories = {
16662
- title: "Leaderboard",
17204
+ title: "Components/Leaderboard",
16663
17205
  parameters: {
16664
17206
  tagname: "sqm-leaderboard",
16665
17207
  },
@@ -16936,7 +17478,7 @@ const Router = /*#__PURE__*/Object.freeze({
16936
17478
  });
16937
17479
 
16938
17480
  const LeaderboardRank_stories = {
16939
- title: "Leaderboard Rank",
17481
+ title: "Components/Leaderboard Rank",
16940
17482
  };
16941
17483
  const First = () => {
16942
17484
  const props = { data: { rank: "1st" } };
@@ -16983,7 +17525,7 @@ function setupLoggedOut() {
16983
17525
  };
16984
17526
  }
16985
17527
  const PortalFrame_stories = {
16986
- title: "Portal Frame",
17528
+ title: "Components/Portal Frame",
16987
17529
  };
16988
17530
  const defaultProps = {
16989
17531
  data: {
@@ -17078,7 +17620,7 @@ const PortalFrame$1 = /*#__PURE__*/Object.freeze({
17078
17620
  });
17079
17621
 
17080
17622
  const EditProfileForm_stories = {
17081
- title: "Edit Profile Form",
17623
+ title: "Components/Edit Profile Form",
17082
17624
  };
17083
17625
  const defaultProps$1 = {
17084
17626
  states: {
@@ -17525,7 +18067,7 @@ const UseLeaderboard = /*#__PURE__*/Object.freeze({
17525
18067
  });
17526
18068
 
17527
18069
  const FormMessage_stories = {
17528
- title: "Form Message",
18070
+ title: "Components/Form Message",
17529
18071
  };
17530
18072
  const SuccessAlert = () => {
17531
18073
  return (index.h("sqm-form-message", { type: "success" },
@@ -17561,6 +18103,148 @@ const FormMessage$1 = /*#__PURE__*/Object.freeze({
17561
18103
  FullStackSuccess: FullStackSuccess
17562
18104
  });
17563
18105
 
18106
+ const EXCHANGE$1 = index_module.dist.gql `
18107
+ mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
18108
+ exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
18109
+ reward {
18110
+ id
18111
+ }
18112
+ }
18113
+ }
18114
+ `;
18115
+ const UseRewardExchangeList_stories = {
18116
+ title: "Hooks / useRewardExchange",
18117
+ };
18118
+ function setupGraphQL$6() {
18119
+ const id = "testestest";
18120
+ const accountId = id;
18121
+ const programId = "sam-partner-test-2";
18122
+ //@ts-ignore
18123
+ window.widgetIdent = {
18124
+ tenantAlias: "test_a8b41jotf8a1v",
18125
+ appDomain: "https://staging.referralsaasquatch.com",
18126
+ programId,
18127
+ };
18128
+ _extends.useEffect(() => {
18129
+ index_module.L({
18130
+ accountId,
18131
+ id,
18132
+ jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
18133
+ });
18134
+ return () => {
18135
+ window.widgetIdent = undefined;
18136
+ index_module.L(undefined);
18137
+ };
18138
+ }, []);
18139
+ return { id, accountId };
18140
+ }
18141
+ function useExchangeButton() {
18142
+ const { id, accountId } = setupGraphQL$6();
18143
+ const [points, setPoints] = _extends.useState(10);
18144
+ const [rate, setRate] = _extends.useState(100);
18145
+ const [exchange, { data, errors }] = index_module.Ne(EXCHANGE$1);
18146
+ return {
18147
+ states: {
18148
+ points,
18149
+ rate,
18150
+ },
18151
+ data: {
18152
+ id,
18153
+ accountId,
18154
+ data,
18155
+ errors,
18156
+ },
18157
+ callbacks: {
18158
+ exchange,
18159
+ setPoints,
18160
+ setRate,
18161
+ },
18162
+ };
18163
+ }
18164
+ const DefaultView = (props) => {
18165
+ const { states, data, callbacks } = props;
18166
+ return (index.h("div", null,
18167
+ index.h("div", null,
18168
+ index.h("label", null, "Rate:"),
18169
+ index.h("input", { value: states.rate, onInput: (e) =>
18170
+ // @ts-ignore
18171
+ callbacks.setRate(e.target.value) })),
18172
+ index.h("input", { value: states.points, onInput: (e) =>
18173
+ // @ts-ignore
18174
+ callbacks.setPoints(e.target.value) }),
18175
+ index.h("button", { onClick: () => callbacks.exchange(props.input) }, "Exchange"),
18176
+ index.h("details", null,
18177
+ index.h("summary", null, "response"),
18178
+ index.h("h4", null, "data"),
18179
+ index.h("div", { style: { maxWidth: "500px" } },
18180
+ index.h("pre", { style: { width: "500px", whiteSpace: "pre-wrap" } }, JSON.stringify(data.data))),
18181
+ index.h("h4", null, "errors"),
18182
+ index.h("div", { style: { maxWidth: "500px" } },
18183
+ index.h("pre", { style: { maxWidth: "500px", whiteSpace: "pre-wrap" } }, JSON.stringify(data.errors))))));
18184
+ };
18185
+ const RewardList = createHookStory(() => {
18186
+ setupGraphQL$6();
18187
+ return (index.h("sqm-reward-exchange-list", { "list-type": "something" }));
18188
+ });
18189
+ const FixedGlobalReward = createHookStory(() => {
18190
+ const { states, data, callbacks } = useExchangeButton();
18191
+ return (index.h(DefaultView, { states: states, data: data, callbacks: callbacks, input: {
18192
+ exchangeRewardInput: {
18193
+ userId: data.id,
18194
+ accountId: data.accountId,
18195
+ redeemCreditInput: {
18196
+ amount: states.points,
18197
+ unit: "POINT",
18198
+ },
18199
+ globalRewardKey: "gc1",
18200
+ },
18201
+ } }));
18202
+ });
18203
+ const VariableGlobalReward = createHookStory(() => {
18204
+ const { states, data, callbacks } = useExchangeButton();
18205
+ return (index.h(DefaultView, { states: states, data: data, callbacks: callbacks, input: {
18206
+ exchangeRewardInput: {
18207
+ userId: data.id,
18208
+ accountId: data.accountId,
18209
+ redeemCreditInput: {
18210
+ amount: states.points,
18211
+ unit: "POINT",
18212
+ },
18213
+ globalRewardKey: "gc1",
18214
+ rewardInput: {
18215
+ valueInCents: Math.ceil(states.points * states.rate),
18216
+ },
18217
+ },
18218
+ } }));
18219
+ });
18220
+ const VariableCreditReward = createHookStory(() => {
18221
+ const { states, data, callbacks } = useExchangeButton();
18222
+ return (index.h(DefaultView, { states: states, data: data, callbacks: callbacks, input: {
18223
+ exchangeRewardInput: {
18224
+ userId: data.id,
18225
+ accountId: data.accountId,
18226
+ redeemCreditInput: {
18227
+ amount: states.points,
18228
+ unit: "POINT",
18229
+ },
18230
+ rewardInput: {
18231
+ type: "CREDIT",
18232
+ unit: "foo",
18233
+ assignedCredit: Math.ceil(states.points * states.rate),
18234
+ },
18235
+ },
18236
+ } }));
18237
+ });
18238
+
18239
+ const UseRewardExchangeList = /*#__PURE__*/Object.freeze({
18240
+ __proto__: null,
18241
+ 'default': UseRewardExchangeList_stories,
18242
+ RewardList: RewardList,
18243
+ FixedGlobalReward: FixedGlobalReward,
18244
+ VariableGlobalReward: VariableGlobalReward,
18245
+ VariableCreditReward: VariableCreditReward
18246
+ });
18247
+
17564
18248
  const NewPortal_stories = {
17565
18249
  title: "New Portal",
17566
18250
  };
@@ -17864,7 +18548,7 @@ const NewPortal = /*#__PURE__*/Object.freeze({
17864
18548
  });
17865
18549
 
17866
18550
  const SidebarItem_stories = {
17867
- title: "Sidebar Item",
18551
+ title: "Components/Sidebar Item",
17868
18552
  };
17869
18553
  const InactiveItem = () => {
17870
18554
  const props = {
@@ -17901,7 +18585,7 @@ const SidebarItem = /*#__PURE__*/Object.freeze({
17901
18585
  });
17902
18586
 
17903
18587
  const NavigationSidebar_stories = {
17904
- title: "Navigation Sidebar",
18588
+ title: "Components/Navigation Sidebar",
17905
18589
  };
17906
18590
  const DefaultNavigationSidebar = () => {
17907
18591
  const barProps = {
@@ -17950,7 +18634,7 @@ const NavigationSidebar = /*#__PURE__*/Object.freeze({
17950
18634
  });
17951
18635
 
17952
18636
  const PortalLogin_stories = {
17953
- title: "Portal Login",
18637
+ title: "Components/Portal Login",
17954
18638
  };
17955
18639
  const defaultProps$2 = {
17956
18640
  states: {
@@ -17995,7 +18679,7 @@ const PortalLogin$1 = /*#__PURE__*/Object.freeze({
17995
18679
  });
17996
18680
 
17997
18681
  const PortalRegister_stories = {
17998
- title: "Portal Register",
18682
+ title: "Components/Portal Register",
17999
18683
  };
18000
18684
  const defaultProps$3 = {
18001
18685
  states: {
@@ -18098,7 +18782,7 @@ const PortalRegister$1 = /*#__PURE__*/Object.freeze({
18098
18782
  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";
18099
18783
 
18100
18784
  const PortalForgotPassword_stories = {
18101
- title: "Portal Forgot Password",
18785
+ title: "Components/Portal Forgot Password",
18102
18786
  parameters: {
18103
18787
  scenario,
18104
18788
  },
@@ -18176,7 +18860,7 @@ const PortalForgotPassword = /*#__PURE__*/Object.freeze({
18176
18860
  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";
18177
18861
 
18178
18862
  const PortalEmailVerification_stories = {
18179
- title: "Portal Email Verification",
18863
+ title: "Components/Portal Email Verification",
18180
18864
  parameters: {
18181
18865
  scenario: scenario$1,
18182
18866
  },
@@ -18262,7 +18946,7 @@ const PortalEmailVerification = /*#__PURE__*/Object.freeze({
18262
18946
  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\"";
18263
18947
 
18264
18948
  const PortalResetPassword_stories = {
18265
- title: "Portal Reset Password",
18949
+ title: "Components/Portal Reset Password",
18266
18950
  parameters: {
18267
18951
  scenario: scenario$2,
18268
18952
  },
@@ -18426,7 +19110,7 @@ const PortalResetPassword = /*#__PURE__*/Object.freeze({
18426
19110
  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 |";
18427
19111
 
18428
19112
  const PortalVerifyEmail_stories = {
18429
- title: "Portal Verify Email",
19113
+ title: "Components/Portal Verify Email",
18430
19114
  parameters: {
18431
19115
  scenario: scenario$3,
18432
19116
  },
@@ -18470,7 +19154,7 @@ const PortalVerifyEmail = /*#__PURE__*/Object.freeze({
18470
19154
  });
18471
19155
 
18472
19156
  const AssetCard_stories = {
18473
- title: "Asset Card",
19157
+ title: "Components/Asset Card",
18474
19158
  };
18475
19159
  const Default$7 = () => {
18476
19160
  const props = {
@@ -18506,7 +19190,7 @@ const AssetCard = /*#__PURE__*/Object.freeze({
18506
19190
  });
18507
19191
 
18508
19192
  const DividedLayout_stories = {
18509
- title: "Divided Layout",
19193
+ title: "Components/Divided Layout",
18510
19194
  };
18511
19195
  const barProps$1 = {
18512
19196
  data: {
@@ -18598,7 +19282,7 @@ const DividedLayout$1 = /*#__PURE__*/Object.freeze({
18598
19282
  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";
18599
19283
 
18600
19284
  const ChangePassword_stories = {
18601
- title: "Change Password",
19285
+ title: "Components/Change Password",
18602
19286
  parameters: {
18603
19287
  scenario: scenario$4,
18604
19288
  },
@@ -18754,7 +19438,7 @@ const ChangePassword = /*#__PURE__*/Object.freeze({
18754
19438
  });
18755
19439
 
18756
19440
  const PortalProfile_stories = {
18757
- title: "Portal Profile",
19441
+ title: "Components/Portal Profile",
18758
19442
  };
18759
19443
  // const style = {};
18760
19444
  jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
@@ -18995,7 +19679,7 @@ const PortalProfile = /*#__PURE__*/Object.freeze({
18995
19679
  });
18996
19680
 
18997
19681
  const ReferralTableRewardsCell_stories = {
18998
- title: "Referral Table Rewards Cell",
19682
+ title: "Components/Referral Table Rewards Cell",
18999
19683
  };
19000
19684
  const baseReward = {
19001
19685
  id: "123",
@@ -19227,7 +19911,7 @@ const ReferralTableRewardsCell$1 = /*#__PURE__*/Object.freeze({
19227
19911
  });
19228
19912
 
19229
19913
  const ReferralTable_stories = {
19230
- title: "Referral Table",
19914
+ title: "Components/Referral Table",
19231
19915
  };
19232
19916
  const loadingElement = (index.h("div", { slot: "loading", style: { display: "contents" } },
19233
19917
  index.h("sqm-table-row", null,
@@ -19714,7 +20398,7 @@ const ReferralTable$1 = /*#__PURE__*/Object.freeze({
19714
20398
  });
19715
20399
 
19716
20400
  const ReferralTableCell_stories = {
19717
- title: "Referral Table Cell",
20401
+ title: "Components/Referral Table Cell",
19718
20402
  };
19719
20403
  const TableCell = () => {
19720
20404
  return (index.h("sqm-referral-table-cell", { innerTemplate: "Table Cell Text" }));
@@ -19787,28 +20471,28 @@ const ReferralTableCell$1 = /*#__PURE__*/Object.freeze({
19787
20471
  });
19788
20472
 
19789
20473
  const UserName_stories = {
19790
- title: "User Name",
20474
+ title: "Tests/User Name",
19791
20475
  };
19792
- const FullStack$1 = () => {
20476
+ const DemoData = () => {
19793
20477
  return (index.h("sqm-user-name", { demoData: {
19794
20478
  loading: false,
19795
20479
  loadingText: "...",
19796
20480
  username: "Test Testerson",
19797
20481
  } }));
19798
20482
  };
19799
- const FullStackDefault = () => {
20483
+ const Username = () => {
19800
20484
  return index.h("sqm-user-name", null);
19801
20485
  };
19802
20486
 
19803
20487
  const UserName = /*#__PURE__*/Object.freeze({
19804
20488
  __proto__: null,
19805
20489
  'default': UserName_stories,
19806
- FullStack: FullStack$1,
19807
- FullStackDefault: FullStackDefault
20490
+ DemoData: DemoData,
20491
+ Username: Username
19808
20492
  });
19809
20493
 
19810
20494
  const PasswordField_stories = {
19811
- title: "Portal Password Field",
20495
+ title: "Components/Portal Password Field",
19812
20496
  };
19813
20497
  const Start = () => {
19814
20498
  return (index.h("sqm-password-field", { demoData: {
@@ -19855,6 +20539,507 @@ const PasswordField = /*#__PURE__*/Object.freeze({
19855
20539
  ValidationError: ValidationError
19856
20540
  });
19857
20541
 
20542
+ const TaskCard_stories = {
20543
+ title: "Components/Task Card",
20544
+ };
20545
+ const resizable = {
20546
+ width: "347px",
20547
+ minWidth: "347px",
20548
+ resize: "horizontal",
20549
+ height: "fit-content",
20550
+ overflow: "hidden",
20551
+ };
20552
+ const Default$a = () => {
20553
+ // @ts-ignore
20554
+ return index.h(sqmTaskCardView.TaskCardView, null);
20555
+ };
20556
+ const NotRepeatable = () => {
20557
+ const oneAction = {
20558
+ points: 20,
20559
+ cardTitle: "Complete a survey",
20560
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20561
+ buttonText: "Take survey",
20562
+ goal: 1,
20563
+ };
20564
+ const coupleActions = {
20565
+ points: 40,
20566
+ cardTitle: "Comment on 5 articles",
20567
+ showProgressBar: true,
20568
+ goal: 5,
20569
+ steps: 1,
20570
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20571
+ buttonText: "Start reading",
20572
+ };
20573
+ const manyActions = {
20574
+ points: 150,
20575
+ cardTitle: "Spend $500 at our Store",
20576
+ showProgressBar: true,
20577
+ goal: 500,
20578
+ unit: "$",
20579
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20580
+ buttonText: "Visit our Store",
20581
+ };
20582
+ return (index.h("div", { style: { display: "inline-flex", gap: "32px" } },
20583
+ index.h("div", { style: resizable },
20584
+ index.h("h4", null, "One Action"),
20585
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
20586
+ " ",
20587
+ index.h("h5", null),
20588
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
20589
+ " ",
20590
+ index.h("h5", null)),
20591
+ index.h("div", { style: resizable },
20592
+ index.h("h4", null, "A Couple Actions"),
20593
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 0 })),
20594
+ " ",
20595
+ index.h("h5", null),
20596
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
20597
+ " ",
20598
+ index.h("h5", null),
20599
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
20600
+ " ",
20601
+ index.h("h5", null),
20602
+ index.h("h5", null,
20603
+ "Progress ",
20604
+ ">",
20605
+ " Goal"),
20606
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 9 })),
20607
+ " ",
20608
+ index.h("h5", null)),
20609
+ index.h("div", { style: resizable },
20610
+ index.h("h4", null, "Many Actions"),
20611
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 0 })),
20612
+ " ",
20613
+ index.h("h5", null),
20614
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
20615
+ " ",
20616
+ index.h("h5", null),
20617
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
20618
+ " ",
20619
+ index.h("h5", null),
20620
+ index.h("h5", null,
20621
+ "Progress ",
20622
+ ">",
20623
+ " Goal"),
20624
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 700 })),
20625
+ " ",
20626
+ index.h("h5", null))));
20627
+ };
20628
+ const NotRepeatableWithExpiry = () => {
20629
+ const oneAction = {
20630
+ points: 20,
20631
+ cardTitle: "Complete a survey",
20632
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20633
+ buttonText: "Take survey",
20634
+ goal: 1,
20635
+ expire: true,
20636
+ dateExpire: "Nov 1, 2021",
20637
+ };
20638
+ const coupleActions = {
20639
+ points: 40,
20640
+ cardTitle: "Comment on 5 articles",
20641
+ showProgressBar: true,
20642
+ goal: 5,
20643
+ steps: 1,
20644
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20645
+ buttonText: "Start reading",
20646
+ expire: true,
20647
+ dateExpire: "Nov 1, 2021",
20648
+ };
20649
+ const manyActions = {
20650
+ points: 150,
20651
+ cardTitle: "Spend $500 at our Store",
20652
+ showProgressBar: true,
20653
+ goal: 500,
20654
+ unit: "$",
20655
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20656
+ buttonText: "Visit our Store",
20657
+ expire: true,
20658
+ dateExpire: "Nov 1, 2021",
20659
+ };
20660
+ return (index.h("div", { style: { display: "inline-flex", gap: "32px" } },
20661
+ index.h("div", { style: resizable },
20662
+ index.h("h4", null, "One Action"),
20663
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
20664
+ " ",
20665
+ index.h("h5", null),
20666
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
20667
+ " ",
20668
+ index.h("h5", null)),
20669
+ index.h("div", { style: resizable },
20670
+ index.h("h4", null, "A Couple Actions"),
20671
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 0 })),
20672
+ " ",
20673
+ index.h("h5", null),
20674
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
20675
+ " ",
20676
+ index.h("h5", null),
20677
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
20678
+ " ",
20679
+ index.h("h5", null),
20680
+ index.h("h5", null,
20681
+ "Progress ",
20682
+ ">",
20683
+ " Goal"),
20684
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 9 })),
20685
+ " ",
20686
+ index.h("h5", null)),
20687
+ index.h("div", { style: resizable },
20688
+ index.h("h4", null, "Many Actions"),
20689
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 0 })),
20690
+ " ",
20691
+ index.h("h5", null),
20692
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 230 })),
20693
+ " ",
20694
+ index.h("h5", null),
20695
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
20696
+ " ",
20697
+ index.h("h5", null),
20698
+ index.h("h5", null,
20699
+ "Progress ",
20700
+ ">",
20701
+ " Goal"),
20702
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 700 })),
20703
+ " ",
20704
+ index.h("h5", null))));
20705
+ };
20706
+ const Repeatable = () => {
20707
+ const oneAction = {
20708
+ points: 20,
20709
+ cardTitle: "Complete a survey",
20710
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20711
+ buttonText: "Take survey",
20712
+ goal: 1,
20713
+ repeatable: true,
20714
+ };
20715
+ const coupleActions = {
20716
+ points: 40,
20717
+ cardTitle: "Comment on 5 articles",
20718
+ showProgressBar: true,
20719
+ repeatable: true,
20720
+ goal: 5,
20721
+ steps: 1,
20722
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20723
+ buttonText: "Start reading",
20724
+ };
20725
+ const manyActions = {
20726
+ points: 150,
20727
+ cardTitle: "Spend $500 at our Store",
20728
+ showProgressBar: true,
20729
+ repeatable: true,
20730
+ goal: 500,
20731
+ unit: "$",
20732
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20733
+ buttonText: "Visit our Store",
20734
+ };
20735
+ return (index.h("div", { style: { display: "inline-flex", gap: "32px" } },
20736
+ index.h("div", { style: resizable },
20737
+ index.h("h4", null, "One Action"),
20738
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
20739
+ " ",
20740
+ index.h("h5", null),
20741
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
20742
+ " ",
20743
+ index.h("h5", null)),
20744
+ index.h("div", { style: resizable },
20745
+ index.h("h4", null, "A Couple Actions"),
20746
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
20747
+ " ",
20748
+ index.h("h5", null),
20749
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
20750
+ " ",
20751
+ index.h("h5", null),
20752
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 7 })),
20753
+ " ",
20754
+ index.h("h5", null),
20755
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 10 })),
20756
+ " ",
20757
+ index.h("h5", null),
20758
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 12 })),
20759
+ " ",
20760
+ index.h("h5", null),
20761
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 15 })),
20762
+ " ",
20763
+ index.h("h5", null),
20764
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 17 })),
20765
+ " ",
20766
+ index.h("h5", null),
20767
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 22 })),
20768
+ " ",
20769
+ index.h("h5", null)),
20770
+ index.h("div", { style: resizable },
20771
+ index.h("h4", null, "Many Actions"),
20772
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 100 })),
20773
+ " ",
20774
+ index.h("h5", null),
20775
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
20776
+ " ",
20777
+ index.h("h5", null),
20778
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 650 })),
20779
+ " ",
20780
+ index.h("h5", null),
20781
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 1000 })),
20782
+ " ",
20783
+ index.h("h5", null),
20784
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 1200 })),
20785
+ " ",
20786
+ index.h("h5", null),
20787
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 1500 })),
20788
+ " ",
20789
+ index.h("h5", null),
20790
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 1700 })),
20791
+ " ",
20792
+ index.h("h5", null),
20793
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 2200 })),
20794
+ " ",
20795
+ index.h("h5", null))));
20796
+ };
20797
+ const RepeatableWithExpiry = () => {
20798
+ const oneAction = {
20799
+ points: 20,
20800
+ cardTitle: "Complete a survey",
20801
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20802
+ buttonText: "Take survey",
20803
+ goal: 1,
20804
+ repeatable: true,
20805
+ expire: true,
20806
+ dateExpire: "Nov 1, 2021",
20807
+ };
20808
+ const coupleActions = {
20809
+ points: 40,
20810
+ cardTitle: "Comment on 5 articles",
20811
+ showProgressBar: true,
20812
+ repeatable: true,
20813
+ goal: 5,
20814
+ steps: 1,
20815
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20816
+ buttonText: "Start reading",
20817
+ expire: true,
20818
+ dateExpire: "Nov 1, 2021",
20819
+ };
20820
+ const manyActions = {
20821
+ points: 150,
20822
+ cardTitle: "Spend $500 at our Store",
20823
+ showProgressBar: true,
20824
+ repeatable: true,
20825
+ goal: 500,
20826
+ unit: "$",
20827
+ description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20828
+ buttonText: "Visit our Store",
20829
+ expire: true,
20830
+ dateExpire: "Nov 1, 2021",
20831
+ };
20832
+ return (index.h("div", { style: { display: "inline-flex", gap: "32px" } },
20833
+ index.h("div", { style: resizable },
20834
+ index.h("h4", null, "One Action"),
20835
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { progress: 0 })),
20836
+ " ",
20837
+ index.h("h5", null),
20838
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { progress: 1 })),
20839
+ " ",
20840
+ index.h("h5", null)),
20841
+ index.h("div", { style: resizable },
20842
+ index.h("h4", null, "A Couple Actions"),
20843
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 1 })),
20844
+ " ",
20845
+ index.h("h5", null),
20846
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 5 })),
20847
+ " ",
20848
+ index.h("h5", null),
20849
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 7 })),
20850
+ " ",
20851
+ index.h("h5", null),
20852
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 10 })),
20853
+ " ",
20854
+ index.h("h5", null),
20855
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 12 })),
20856
+ " ",
20857
+ index.h("h5", null),
20858
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 15 })),
20859
+ " ",
20860
+ index.h("h5", null),
20861
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 17 })),
20862
+ " ",
20863
+ index.h("h5", null),
20864
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { progress: 22 })),
20865
+ " ",
20866
+ index.h("h5", null)),
20867
+ index.h("div", { style: resizable },
20868
+ index.h("h4", null, "Many Actions"),
20869
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 100 })),
20870
+ " ",
20871
+ index.h("h5", null),
20872
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 500 })),
20873
+ " ",
20874
+ index.h("h5", null),
20875
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 650 })),
20876
+ " ",
20877
+ index.h("h5", null),
20878
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 1000 })),
20879
+ " ",
20880
+ index.h("h5", null),
20881
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 1200 })),
20882
+ " ",
20883
+ index.h("h5", null),
20884
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 1500 })),
20885
+ " ",
20886
+ index.h("h5", null),
20887
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 1700 })),
20888
+ " ",
20889
+ index.h("h5", null),
20890
+ index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { progress: 2200 })),
20891
+ " ",
20892
+ index.h("h5", null))));
20893
+ };
20894
+ // export const Repeatable = () => {
20895
+ // const oneAction = {
20896
+ // points: 20,
20897
+ // cardTitle: "Complete a survey",
20898
+ // description:
20899
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20900
+ // repeatable: 0,
20901
+ // buttonText: "Take survey",
20902
+ // buttonOnClick: () => {},
20903
+ // };
20904
+ // const coupleActions = {
20905
+ // points: 40,
20906
+ // cardTitle: "Comment on 5 articles",
20907
+ // goal: 5,
20908
+ // steps: 1,
20909
+ // repeatable: true,
20910
+ // description:
20911
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20912
+ // buttonText: "Start reading",
20913
+ // buttonOnClick: () => {},
20914
+ // };
20915
+ // const manyActions = {
20916
+ // points: 150,
20917
+ // cardTitle: "Spend $500 at our Store",
20918
+ // goal: 500,
20919
+ // repeatable: true,
20920
+ // unit: "$",
20921
+ // description:
20922
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20923
+ // buttonText: "Visit our Store",
20924
+ // buttonOnClick: () => {},
20925
+ // };
20926
+ // return (
20927
+ // <div style={{ display: "inline-flex", gap: "32px" }}>
20928
+ // <div style={resizable}>
20929
+ // <h4>One Action</h4>
20930
+ // <TaskCardView {...oneAction} /> <h5 />
20931
+ // <TaskCardView {...oneAction} repeatable={1} complete /> <h5 />
20932
+ // </div>
20933
+ // <div style={resizable}>
20934
+ // <h4>A Couple Actions</h4>
20935
+ // <TaskCardView {...coupleActions} progress={1} /> <h5 />
20936
+ // <TaskCardView {...coupleActions} progress={5} /> <h5 />
20937
+ // <TaskCardView {...coupleActions} progress={7} /> <h5 />
20938
+ // <TaskCardView {...coupleActions} progress={10} /> <h5 />
20939
+ // <TaskCardView {...coupleActions} progress={12} /> <h5 />
20940
+ // </div>
20941
+ // <div style={resizable}>
20942
+ // <h4>Many Actions</h4>
20943
+ // <TaskCardView {...manyActions} progress={100} /> <h5 />
20944
+ // <TaskCardView {...manyActions} progress={500} /> <h5 />
20945
+ // <TaskCardView {...manyActions} progress={650} /> <h5 />
20946
+ // <TaskCardView {...manyActions} progress={1000} /> <h5 />
20947
+ // <TaskCardView {...manyActions} progress={1200} /> <h5 />
20948
+ // </div>
20949
+ // </div>
20950
+ // );
20951
+ // };
20952
+ // export const RepeatableWithExpiry = () => {
20953
+ // const oneAction = {
20954
+ // points: 20,
20955
+ // cardTitle: "Complete a survey",
20956
+ // expire: "Nov 30, 2021",
20957
+ // description:
20958
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20959
+ // repeatable: 0,
20960
+ // buttonText: "Take survey",
20961
+ // buttonOnClick: () => {},
20962
+ // };
20963
+ // const coupleActions = {
20964
+ // points: 40,
20965
+ // cardTitle: "Comment on 5 articles",
20966
+ // expire: "Nov 30, 2021",
20967
+ // goal: 5,
20968
+ // steps: 1,
20969
+ // repeatable: true,
20970
+ // description:
20971
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20972
+ // buttonText: "Start reading",
20973
+ // buttonOnClick: () => {},
20974
+ // };
20975
+ // const manyActions = {
20976
+ // points: 150,
20977
+ // cardTitle: "Spend $500 at our Store",
20978
+ // expire: "Nov 30, 2021",
20979
+ // goal: 500,
20980
+ // repeatable: true,
20981
+ // unit: "$",
20982
+ // description:
20983
+ // "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
20984
+ // buttonText: "Visit our Store",
20985
+ // buttonOnClick: () => {},
20986
+ // };
20987
+ // return (
20988
+ // <div style={{ display: "inline-flex", gap: "32px" }}>
20989
+ // <div style={resizable}>
20990
+ // <h4>One Action</h4>
20991
+ // <TaskCardView {...oneAction} /> <h5 />
20992
+ // <TaskCardView {...oneAction} repeatable={1} complete /> <h5 />
20993
+ // </div>
20994
+ // <div style={resizable}>
20995
+ // <h4>A Couple Actions</h4>
20996
+ // <TaskCardView {...coupleActions} progress={1} /> <h5 />
20997
+ // <TaskCardView {...coupleActions} progress={5} /> <h5 />
20998
+ // <TaskCardView {...coupleActions} progress={7} /> <h5 />
20999
+ // <TaskCardView {...coupleActions} progress={10} /> <h5 />
21000
+ // <TaskCardView {...coupleActions} progress={12} /> <h5 />
21001
+ // </div>
21002
+ // <div style={resizable}>
21003
+ // <h4>Many Actions</h4>
21004
+ // <TaskCardView {...manyActions} progress={100} /> <h5 />
21005
+ // <TaskCardView {...manyActions} progress={500} /> <h5 />
21006
+ // <TaskCardView {...manyActions} progress={650} /> <h5 />
21007
+ // <TaskCardView {...manyActions} progress={1000} /> <h5 />
21008
+ // <TaskCardView {...manyActions} progress={1200} /> <h5 />
21009
+ // </div>
21010
+ // </div>
21011
+ // );
21012
+ // };
21013
+ // export const ProgressBar = () => {
21014
+ // const props = {
21015
+ // goal: 5,
21016
+ // };
21017
+ // return (
21018
+ // <div>
21019
+ // <MatrixStory
21020
+ // matrix={{ progress: [1, 2, 5], steps: [0, 1], repeatable: [false] }}
21021
+ // props={props}
21022
+ // Component={ProgressBarView}
21023
+ // />
21024
+ // <MatrixStory
21025
+ // matrix={{ progress: [2, 5, 7, 12], steps: [0, 1], repeatable: [true] }}
21026
+ // props={props}
21027
+ // Component={ProgressBarView}
21028
+ // />
21029
+ // </div>
21030
+ // );
21031
+ // };
21032
+
21033
+ const TaskCard = /*#__PURE__*/Object.freeze({
21034
+ __proto__: null,
21035
+ 'default': TaskCard_stories,
21036
+ Default: Default$a,
21037
+ NotRepeatable: NotRepeatable,
21038
+ NotRepeatableWithExpiry: NotRepeatableWithExpiry,
21039
+ Repeatable: Repeatable,
21040
+ RepeatableWithExpiry: RepeatableWithExpiry
21041
+ });
21042
+
19858
21043
  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";
19859
21044
 
19860
21045
  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";
@@ -22867,7 +24052,7 @@ const ReferralIframeReadme = "# sqm-referral-iframe\r\n\r\n\r\n\r\n<!-- Auto Gen
22867
24052
 
22868
24053
  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";
22869
24054
 
22870
- 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";
24055
+ 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";
22871
24056
 
22872
24057
  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";
22873
24058
 
@@ -22875,7 +24060,7 @@ const ResetPasswordReadme = "# sqm-portal-reset-password\r\n\r\n\r\n\r\n<!-- Aut
22875
24060
 
22876
24061
  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";
22877
24062
 
22878
- 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";
24063
+ 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";
22879
24064
 
22880
24065
  const PortalTemplates_stories = {
22881
24066
  title: "Templates / Portal",
@@ -23073,7 +24258,7 @@ const ProgramMenu$1 = /*#__PURE__*/Object.freeze({
23073
24258
  const PoweredByImg_stories = {
23074
24259
  title: "Powered By",
23075
24260
  };
23076
- const Default$a = () => {
24261
+ const Default$b = () => {
23077
24262
  return index.h(sqmPortalFooterView.PoweredByImg, null);
23078
24263
  };
23079
24264
  const CustomColor = () => {
@@ -23086,7 +24271,7 @@ const CustomWidthAndHeight = () => {
23086
24271
  const PoweredByImg = /*#__PURE__*/Object.freeze({
23087
24272
  __proto__: null,
23088
24273
  'default': PoweredByImg_stories,
23089
- Default: Default$a,
24274
+ Default: Default$b,
23090
24275
  CustomColor: CustomColor,
23091
24276
  CustomWidthAndHeight: CustomWidthAndHeight
23092
24277
  });
@@ -26003,6 +27188,7 @@ const stories = [
26003
27188
  ReferralTableRewardsCell$1,
26004
27189
  UserName,
26005
27190
  PasswordField,
27191
+ TaskCard,
26006
27192
  PortalTemplates,
26007
27193
  ProgramMenu$1,
26008
27194
  PoweredByImg,
@@ -26010,6 +27196,7 @@ const stories = [
26010
27196
  Hero,
26011
27197
  ReferralIframe$1,
26012
27198
  NameFields$1,
27199
+ UseRewardExchangeList,
26013
27200
  ];
26014
27201
  const StencilStorybook = class {
26015
27202
  constructor(hostRef) {
@@ -26121,7 +27308,7 @@ function UserNameView(props) {
26121
27308
  return index.h(index.Host, null, props.loading ? props.loadingText : props.username);
26122
27309
  }
26123
27310
 
26124
- const GET_USER_NAME = sqmLeaderboardRankView.gql `
27311
+ const GET_USER_NAME = index$1.gql `
26125
27312
  query getUserName {
26126
27313
  viewer {
26127
27314
  ... on User {
@@ -26192,6 +27379,7 @@ exports.sqm_referral_table_date_cell = ReferralTableDateCell;
26192
27379
  exports.sqm_referral_table_rewards_cell = ReferralTableRewardsCell;
26193
27380
  exports.sqm_referral_table_status_cell = ReferralTableStatusCell;
26194
27381
  exports.sqm_referral_table_user_cell = ReferralTableUserCell;
27382
+ exports.sqm_reward_exchange_list = SqmRewardExchangeList;
26195
27383
  exports.sqm_router = SqmRouter;
26196
27384
  exports.sqm_share_button = ShareButton;
26197
27385
  exports.sqm_share_link = ShareLink;