@saasquatch/mint-components 1.3.2-14 → 1.3.2-18

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 (208) hide show
  1. package/dist/cjs/{ShadowViewAddon-a85b8c8d.js → ShadowViewAddon-d6a442a9.js} +1 -1
  2. package/dist/cjs/{global-6223fe8f.js → global-b957dd98.js} +1 -1
  3. package/dist/cjs/{index.module-7dd4b981.js → index.module-85eb6b4d.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/mint-components.cjs.js +3 -3
  6. package/dist/cjs/{re-render-6111d4bd.js → re-render-59955561.js} +1 -1
  7. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  8. package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
  9. package/dist/cjs/sqm-divided-layout_30.cjs.entry.js +258 -179
  10. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  11. package/dist/cjs/{sqm-leaderboard-rank-view-7dd44d62.js → sqm-leaderboard-rank-view-9114d9ad.js} +2 -2
  12. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
  13. package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
  15. package/dist/cjs/{sqm-navigation-sidebar-item-view-6c7f78e6.js → sqm-navigation-sidebar-item-view-b565a10a.js} +1 -1
  16. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-portal-email-verification-view-08d1848c.js → sqm-portal-email-verification-view-bd40f7eb.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
  20. package/dist/cjs/{sqm-portal-footer-view-69c73802.js → sqm-portal-footer-view-b60e17c8.js} +1 -1
  21. package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
  22. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
  23. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  24. package/dist/cjs/{sqm-portal-profile-view-14b41436.js → sqm-portal-profile-view-c3b889d4.js} +1 -1
  25. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
  26. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  27. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  28. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  29. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
  31. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
  32. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
  33. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
  34. package/dist/cjs/sqm-share-code.cjs.entry.js +1 -1
  35. package/dist/cjs/{useDemoBigStat-2786227e.js → useDemoBigStat-9193e8c5.js} +1 -1
  36. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +6 -2
  37. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +80 -57
  38. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +97 -53
  39. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +3 -2
  40. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +1 -1
  41. package/dist/collection/components/sqm-task-card/Matrix.js +4 -1
  42. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +13 -10
  43. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +4 -8
  44. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +28 -22
  45. package/dist/collection/components/sqm-task-card/sqm-task-card.js +34 -13
  46. package/dist/esm/{ShadowViewAddon-a3f510db.js → ShadowViewAddon-2338f393.js} +1 -1
  47. package/dist/esm/{global-90da933f.js → global-0e81c5e6.js} +1 -1
  48. package/dist/esm/{index.module-90d2c3ad.js → index.module-9b5bb6a2.js} +1 -1
  49. package/dist/esm/loader.js +3 -3
  50. package/dist/esm/mint-components.js +3 -3
  51. package/dist/esm/{re-render-e06f2f7f.js → re-render-57ac6584.js} +1 -1
  52. package/dist/esm/sqm-asset-card.entry.js +1 -1
  53. package/dist/esm/sqm-big-stat.entry.js +2 -2
  54. package/dist/esm/sqm-divided-layout_30.entry.js +258 -179
  55. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  56. package/dist/esm/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-3f0dc20e.js} +2 -2
  57. package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
  58. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  59. package/dist/esm/sqm-name-fields.entry.js +1 -1
  60. package/dist/esm/{sqm-navigation-sidebar-item-view-f2304ad9.js → sqm-navigation-sidebar-item-view-79b0748c.js} +1 -1
  61. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  62. package/dist/esm/sqm-popup-container.entry.js +1 -1
  63. package/dist/esm/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-8f253fb7.js} +1 -1
  64. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  65. package/dist/esm/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-b8a2f15e.js} +1 -1
  66. package/dist/esm/sqm-portal-footer.entry.js +3 -3
  67. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  68. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  69. package/dist/esm/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-831dea85.js} +1 -1
  70. package/dist/esm/sqm-portal-profile.entry.js +3 -3
  71. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  72. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  73. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  74. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  75. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  76. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  77. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  78. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  79. package/dist/esm/sqm-share-code.entry.js +1 -1
  80. package/dist/esm/{useDemoBigStat-c3b955b7.js → useDemoBigStat-660c8672.js} +1 -1
  81. package/dist/esm-es5/{ShadowViewAddon-a3f510db.js → ShadowViewAddon-2338f393.js} +1 -1
  82. package/dist/esm-es5/{global-90da933f.js → global-0e81c5e6.js} +1 -1
  83. package/dist/esm-es5/{index.module-90d2c3ad.js → index.module-9b5bb6a2.js} +1 -1
  84. package/dist/esm-es5/loader.js +1 -1
  85. package/dist/esm-es5/mint-components.js +1 -1
  86. package/dist/esm-es5/{re-render-e06f2f7f.js → re-render-57ac6584.js} +1 -1
  87. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  88. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  89. package/dist/esm-es5/sqm-divided-layout_30.entry.js +1 -1
  90. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  91. package/dist/esm-es5/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-3f0dc20e.js} +1 -1
  92. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  93. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  94. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  95. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-f2304ad9.js → sqm-navigation-sidebar-item-view-79b0748c.js} +1 -1
  96. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  97. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  98. package/dist/esm-es5/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-8f253fb7.js} +1 -1
  99. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  100. package/dist/esm-es5/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-b8a2f15e.js} +1 -1
  101. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  102. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  103. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  104. package/dist/esm-es5/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-831dea85.js} +1 -1
  105. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  106. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  107. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  108. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  109. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  110. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  111. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  112. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  113. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  114. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  115. package/dist/esm-es5/{useDemoBigStat-c3b955b7.js → useDemoBigStat-660c8672.js} +1 -1
  116. package/dist/mint-components/mint-components.esm.js +1 -1
  117. package/dist/mint-components/mint-components.js +1 -1
  118. package/dist/mint-components/p-024cc1be.system.entry.js +1 -0
  119. package/dist/mint-components/{p-223b42bd.system.entry.js → p-0a882bab.system.entry.js} +1 -1
  120. package/dist/mint-components/{p-67ae18d1.system.entry.js → p-0e49a93f.system.entry.js} +1 -1
  121. package/dist/mint-components/{p-a2c3cff3.js → p-101fafa3.js} +1 -1
  122. package/dist/mint-components/{p-52802c88.entry.js → p-16b0b00b.entry.js} +2 -2
  123. package/dist/mint-components/{p-be2738b0.system.entry.js → p-17e6fc02.system.entry.js} +1 -1
  124. package/dist/mint-components/{p-4052b948.system.entry.js → p-1dc2793a.system.entry.js} +1 -1
  125. package/dist/mint-components/{p-6bf0a4d9.system.entry.js → p-1dc2e37a.system.entry.js} +1 -1
  126. package/dist/mint-components/{p-cca9026f.system.entry.js → p-1dd1105d.system.entry.js} +1 -1
  127. package/dist/mint-components/{p-3ce2fb83.system.js → p-1ec1dcb3.system.js} +1 -1
  128. package/dist/mint-components/p-22d56623.entry.js +9 -0
  129. package/dist/mint-components/{p-d174d0bc.system.entry.js → p-232dddcc.system.entry.js} +1 -1
  130. package/dist/mint-components/{p-db2e4c42.js → p-24d13567.js} +1 -1
  131. package/dist/mint-components/{p-ade44a4e.entry.js → p-25021e09.entry.js} +1 -1
  132. package/dist/mint-components/{p-224504ad.js → p-27bb0aa9.js} +1 -1
  133. package/dist/mint-components/{p-0eb3e89c.js → p-295b306a.js} +1 -1
  134. package/dist/mint-components/p-3098bb1b.system.entry.js +1 -0
  135. package/dist/mint-components/{p-24c9a599.system.entry.js → p-3404b8d2.system.entry.js} +1 -1
  136. package/dist/mint-components/{p-dc603d08.system.entry.js → p-35103a1b.system.entry.js} +1 -1
  137. package/dist/mint-components/p-35ba4a8b.entry.js +1 -0
  138. package/dist/mint-components/{p-f90486ca.js → p-441119ee.js} +15 -15
  139. package/dist/mint-components/{p-412a9226.system.entry.js → p-46cb29e2.system.entry.js} +1 -1
  140. package/dist/mint-components/{p-b8bd2607.entry.js → p-503192e9.entry.js} +1 -1
  141. package/dist/mint-components/p-51277d8e.system.entry.js +1 -0
  142. package/dist/mint-components/{p-1a09e4e1.system.entry.js → p-55f029cd.system.entry.js} +1 -1
  143. package/dist/mint-components/{p-16f5a7cb.system.js → p-58bf2a30.system.js} +1 -1
  144. package/dist/mint-components/{p-60855d33.system.js → p-58fb3d02.system.js} +1 -1
  145. package/dist/mint-components/{p-33c5ffb7.entry.js → p-62102076.entry.js} +1 -1
  146. package/dist/mint-components/{p-6d0cfe2b.entry.js → p-623e7f8c.entry.js} +10 -10
  147. package/dist/mint-components/p-6410316b.entry.js +1 -0
  148. package/dist/mint-components/{p-3b97aed8.system.js → p-69902f7c.system.js} +1 -1
  149. package/dist/mint-components/{p-a4c2c7ed.entry.js → p-6acfe4a0.entry.js} +1 -1
  150. package/dist/mint-components/p-6cbb3a00.entry.js +1 -0
  151. package/dist/mint-components/{p-24b3c6f0.system.entry.js → p-7062ab8e.system.entry.js} +1 -1
  152. package/dist/mint-components/{p-9d6dbb2d.entry.js → p-75ae6fc0.entry.js} +1 -1
  153. package/dist/mint-components/{p-44d0fc80.system.entry.js → p-75b143ac.system.entry.js} +1 -1
  154. package/dist/mint-components/{p-723ebe45.entry.js → p-77f9b4af.entry.js} +1 -1
  155. package/dist/mint-components/{p-9c554ca0.system.js → p-7ee8a7ed.system.js} +1 -1
  156. package/dist/mint-components/p-853bd4bd.entry.js +1 -0
  157. package/dist/mint-components/p-85728f98.entry.js +1 -0
  158. package/dist/mint-components/{p-e7f633b9.system.js → p-8a9966fc.system.js} +1 -1
  159. package/dist/mint-components/{p-6882070c.js → p-8bfe1f7d.js} +1 -1
  160. package/dist/mint-components/p-8ec40f9a.entry.js +1 -0
  161. package/dist/mint-components/{p-3397167c.entry.js → p-8f5b80f2.entry.js} +1 -1
  162. package/dist/mint-components/{p-396bf448.system.entry.js → p-98e29140.system.entry.js} +1 -1
  163. package/dist/mint-components/{p-563253e8.js → p-a59e65f2.js} +1 -1
  164. package/dist/mint-components/{p-221a4097.entry.js → p-a93149f4.entry.js} +1 -1
  165. package/dist/mint-components/p-aa39d9c0.entry.js +1 -0
  166. package/dist/mint-components/{p-304e6c82.system.entry.js → p-ad1c6eb8.system.entry.js} +1 -1
  167. package/dist/mint-components/{p-29fab29b.entry.js → p-aee2a2b9.entry.js} +1 -1
  168. package/dist/mint-components/{p-c6114bfe.system.js → p-b2cb66f5.system.js} +1 -1
  169. package/dist/mint-components/{p-46a4269a.js → p-b6107771.js} +1 -1
  170. package/dist/mint-components/{p-1dcdca58.system.entry.js → p-b893904c.system.entry.js} +1 -1
  171. package/dist/mint-components/{p-6e245fa3.system.entry.js → p-b9edc48d.system.entry.js} +1 -1
  172. package/dist/mint-components/{p-d21e0dbd.js → p-bafc60df.js} +1 -1
  173. package/dist/mint-components/{p-07c924fa.system.js → p-be615f03.system.js} +1 -1
  174. package/dist/mint-components/{p-b1bb07db.entry.js → p-be62004c.entry.js} +1 -1
  175. package/dist/mint-components/{p-69bcf4fa.system.entry.js → p-cafc22bf.system.entry.js} +1 -1
  176. package/dist/mint-components/{p-b608f7a4.system.js → p-d4fe6a69.system.js} +1 -1
  177. package/dist/mint-components/{p-c79c608d.system.entry.js → p-d5a00e40.system.entry.js} +1 -1
  178. package/dist/mint-components/{p-d35b0366.js → p-d5b84d6b.js} +1 -1
  179. package/dist/mint-components/p-dea06c92.entry.js +1 -0
  180. package/dist/mint-components/{p-73148868.system.entry.js → p-e53399e5.system.entry.js} +1 -1
  181. package/dist/mint-components/p-eb5aae94.entry.js +1 -0
  182. package/dist/mint-components/{p-a6094ff9.system.js → p-f3ea7918.system.js} +1 -1
  183. package/dist/mint-components/p-f7b80ac0.entry.js +1 -0
  184. package/dist/mint-components/p-f7d7e44d.system.js +1 -0
  185. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +2 -1
  186. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +33 -2
  187. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
  188. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +2 -2
  189. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +2 -1
  190. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +8 -8
  191. package/dist/types/components.d.ts +22 -14
  192. package/grapesjs/grapesjs.js +1 -1
  193. package/package.json +1 -1
  194. package/dist/mint-components/p-160bd62f.entry.js +0 -1
  195. package/dist/mint-components/p-1c8b0290.entry.js +0 -1
  196. package/dist/mint-components/p-20d41ab1.entry.js +0 -1
  197. package/dist/mint-components/p-3d856985.entry.js +0 -1
  198. package/dist/mint-components/p-45c752a0.entry.js +0 -1
  199. package/dist/mint-components/p-5480e4ee.entry.js +0 -1
  200. package/dist/mint-components/p-55508395.system.entry.js +0 -1
  201. package/dist/mint-components/p-8435a22d.entry.js +0 -1
  202. package/dist/mint-components/p-86988aa2.system.entry.js +0 -1
  203. package/dist/mint-components/p-883a32e7.entry.js +0 -1
  204. package/dist/mint-components/p-9e4fee30.system.entry.js +0 -1
  205. package/dist/mint-components/p-cd410a05.entry.js +0 -9
  206. package/dist/mint-components/p-cdeae699.system.js +0 -1
  207. package/dist/mint-components/p-f17050de.entry.js +0 -1
  208. package/dist/mint-components/p-fce1dbf6.entry.js +0 -1
@@ -1,8 +1,8 @@
1
1
  import { h, r as registerInstance, c as Host, d as getAssetPath } from './index-17b4da69.js';
2
2
  import { m as h$1, j as useState, e as useEffect, f as useRef, n as d$2, y as y$1, b as browser, u as useReducer, c as createCommonjsModule, a as commonjsGlobal, k as useMemo } from './extends-3a3f9fe2.js';
3
- import { i as intl, a as insertCSS } from './global-90da933f.js';
3
+ import { i as intl, a as insertCSS } from './global-0e81c5e6.js';
4
4
  import { u as useCallback } from './use-callback-b38a1523.js';
5
- import { d as dist, T as T$1, e as en, b as be, j as j$1, Z as Ze, r as rn, D as De, q as qe, P as P$1, E as Ee, M as M$1, a as sn, c as an, x as x$1, f as D$1, L as L$1, N as Ne, A as A$1 } from './index.module-90d2c3ad.js';
5
+ import { d as dist, T as T$1, e as en, b as be, j as j$1, Z as Ze, r as rn, D as De, q as qe, P as P$1, E as Ee, M as M$1, a as sn, c as an, x as x$1, f as D$1, L as L$1, N as Ne, A as A$1 } from './index.module-9b5bb6a2.js';
6
6
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
7
7
  import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
8
8
  import { g as getProps, a as getMissingProps } from './utils-454405f5.js';
@@ -11,21 +11,21 @@ import { E as ErrorStyles, H as HostBlock, A as AuthWrapper, a as AuthColumn, b
11
11
  import { P as PortalContainerView } from './sqm-portal-container-view-73757ca5.js';
12
12
  import { P as PortalSectionView } from './sqm-portal-section-view-f0876545.js';
13
13
  import { T as TextSpanView } from './sqm-text-span-view-1781df94.js';
14
- import { g as gql, L as LeaderboardRankView } from './sqm-leaderboard-rank-view-47844836.js';
15
- import { u as useRerenderListener, a as useRequestRerender } from './re-render-e06f2f7f.js';
16
- import { p as pathToRegexp, B as BigStatView, u as useBigStat, a as useDemoBigStat } from './useDemoBigStat-c3b955b7.js';
14
+ import { g as gql, L as LeaderboardRankView } from './sqm-leaderboard-rank-view-3f0dc20e.js';
15
+ import { u as useRerenderListener, a as useRequestRerender } from './re-render-57ac6584.js';
16
+ import { p as pathToRegexp, B as BigStatView, u as useBigStat, a as useDemoBigStat } from './useDemoBigStat-660c8672.js';
17
17
  import { S as ShareLinkView } from './sqm-share-link-view-9282b8e8.js';
18
- import { L as LeaderboardView, u as useLeaderboard, S as ShadowViewAddon } from './ShadowViewAddon-a3f510db.js';
18
+ import { L as LeaderboardView, u as useLeaderboard, S as ShadowViewAddon } from './ShadowViewAddon-2338f393.js';
19
19
  import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-2242502c.js';
20
- import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-f2304ad9.js';
20
+ import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-79b0748c.js';
21
21
  import { S as StatContainerView } from './sqm-stat-container-view-4133feb6.js';
22
- import { P as PortalProfileView } from './sqm-portal-profile-view-b67467b4.js';
22
+ import { P as PortalProfileView } from './sqm-portal-profile-view-831dea85.js';
23
23
  import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-e3a6a716.js';
24
- import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-8cefe480.js';
24
+ import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-8f253fb7.js';
25
25
  import { P as PortalResetPasswordView$1 } from './sqm-portal-reset-password-view-a4e50da2.js';
26
26
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-6f18bac2.js';
27
27
  import { A as AssetCardView } from './sqm-asset-card-view-6f360937.js';
28
- import { P as PoweredByImg$1, a as PortalFooterView } from './sqm-portal-footer-view-d9fe0bf8.js';
28
+ import { P as PoweredByImg$1, a as PortalFooterView } from './sqm-portal-footer-view-b8a2f15e.js';
29
29
  import { H as HeroView } from './sqm-hero-view-bfd8abd1.js';
30
30
  import { N as NameFieldsView } from './sqm-name-fields-view-4162fb7b.js';
31
31
 
@@ -14816,7 +14816,7 @@ function useRewardExchangeList(props) {
14816
14816
  useEffect(() => {
14817
14817
  var _a, _b;
14818
14818
  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) {
14819
- setExchangeState({ redeemStage: "success" });
14819
+ setExchangeState({ redeemStage: "success", exchangeError: false });
14820
14820
  }
14821
14821
  if (!!errors) {
14822
14822
  setExchangeState({ exchangeError: true });
@@ -14990,7 +14990,9 @@ const stageProgressList = {
14990
14990
  confirmation: "Confirm",
14991
14991
  };
14992
14992
  function RewardExchangeView(props) {
14993
+ console.log(props);
14993
14994
  const style = {
14995
+ HostBlock: HostBlock,
14994
14996
  Container: {
14995
14997
  padding: "var(--sl-spacing-medium)",
14996
14998
  position: "relative",
@@ -15017,6 +15019,35 @@ function RewardExchangeView(props) {
15017
15019
  display: "flex",
15018
15020
  width: "100%",
15019
15021
  },
15022
+ "& .text-area": {
15023
+ textAlign: "left",
15024
+ padding: "8px",
15025
+ },
15026
+ "& .title": {
15027
+ fontSize: "var(--sl-font-size-medium)",
15028
+ fontWeight: "var(--sl-font-weight-semibold)",
15029
+ },
15030
+ "& .amount": {
15031
+ fontSize: "var(--sl-font-size-small)",
15032
+ },
15033
+ "& .error": {
15034
+ fontSize: "var(--sl-font-size-small)",
15035
+ color: "var(--sl-color-warning-500)",
15036
+ },
15037
+ "& .selected-outline": {
15038
+ width: "18px",
15039
+ height: "18px",
15040
+ minWidth: "18px",
15041
+ borderRadius: "50%",
15042
+ background: "var(--sl-color-primary-500)",
15043
+ position: "relative",
15044
+ margin: "-9px",
15045
+ left: "100%",
15046
+ },
15047
+ "& .selected-checkmark": {
15048
+ position: "relative",
15049
+ top: "-6px",
15050
+ },
15020
15051
  },
15021
15052
  Drawer: {
15022
15053
  "&::part(base)": {
@@ -15034,7 +15065,9 @@ function RewardExchangeView(props) {
15034
15065
  FullImage: {
15035
15066
  objectFit: "contain",
15036
15067
  maxWidth: "100%",
15037
- height: "100px",
15068
+ height: "150px",
15069
+ display: "flex",
15070
+ margin: "0 auto",
15038
15071
  },
15039
15072
  PreviewImage: {
15040
15073
  objectFit: "contain",
@@ -15090,24 +15123,33 @@ function RewardExchangeView(props) {
15090
15123
  },
15091
15124
  KutayButton: {
15092
15125
  display: "flex",
15093
- flexWrap: "wrap",
15126
+ flexWrap: "wrap-reverse",
15094
15127
  margin: "var(--sl-spacing-medium) 0",
15095
15128
  "& .cancel": {
15096
- width: "20%",
15097
15129
  marginLeft: "auto",
15098
15130
  marginRight: "var(--sl-spacing-medium)",
15099
15131
  "&::part(base)": {
15100
15132
  fontWeight: "var(--sl-font-weight-normal)",
15101
15133
  color: "var(--sl-color-neutral-1000)",
15102
15134
  },
15135
+ "@media (max-width: 1024px)": {
15136
+ width: "100%",
15137
+ marginRight: "0",
15138
+ },
15103
15139
  },
15104
15140
  "& .continue": {
15105
- width: "20%",
15106
15141
  "&::part(base)": {
15107
- background: "var(--sl-color-neutral-500)",
15142
+ background: "var(--sl-color-primary-500)",
15143
+ borderColor: "var(--sl-color-primary-500)",
15108
15144
  fontWeight: "var(--sl-font-weight-normal)",
15109
15145
  color: "var(--sl-color-neutral-0)",
15110
15146
  },
15147
+ "@media (max-width: 1024px)": {
15148
+ width: "100%",
15149
+ },
15150
+ },
15151
+ "& .continue.right": {
15152
+ marginLeft: "auto",
15111
15153
  },
15112
15154
  },
15113
15155
  };
@@ -15121,7 +15163,7 @@ function RewardExchangeView(props) {
15121
15163
  var _a, _b;
15122
15164
  const item = states.selectedItem;
15123
15165
  if (!item || (item === null || item === void 0 ? void 0 : item.ruleType) === "FIXED_GLOBAL_REWARD")
15124
- return h("span", null);
15166
+ return h("span", null, item === null || item === void 0 ? void 0 : item.prettySourceValue);
15125
15167
  if (!((_a = item.steps) === null || _a === void 0 ? void 0 : _a.length)) {
15126
15168
  return h("p", null,
15127
15169
  "Not enough ",
@@ -15134,14 +15176,19 @@ function RewardExchangeView(props) {
15134
15176
  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,
15135
15177
  selectedStep: (_e = (_d = e.detail) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.value,
15136
15178
  });
15137
- } }, (_b = item.steps) === null || _b === void 0 ? void 0 : _b.map((step) => (h("sl-menu-item", { value: step, disabled: !step.available },
15138
- step.prettyDestinationValue,
15139
- h("div", { slot: "suffix", style: { fontSize: "75%", float: "right" } },
15140
- step.prettySourceValue,
15141
- step.unavailableReasonCode && (h("p", { style: { fontSize: "70%", color: "#F2994A" } }, intl.formatMessage({
15142
- id: "unavailableCode",
15143
- defaultMessage: states.content.text.notAvailableError,
15144
- }, { unavailableReasonCode: step.unavailableReasonCode })))))))));
15179
+ } }, (_b = item.steps) === null || _b === void 0 ? void 0 : _b.map((step) => {
15180
+ var _a, _b;
15181
+ return (h("sl-menu-item", { value: step, disabled: !step.available },
15182
+ step.prettyDestinationValue,
15183
+ h("div", { slot: "suffix", style: { fontSize: "75%", float: "right" } },
15184
+ step.prettySourceValue,
15185
+ step.unavailableReasonCode && (h("p", { style: { fontSize: "70%", color: "#F2994A" } }, intl.formatMessage({
15186
+ id: "unavailableCode",
15187
+ defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
15188
+ }, {
15189
+ unavailableReason: step.unavailableReason || step.unavailableReasonCode,
15190
+ }))))));
15191
+ })));
15145
15192
  }
15146
15193
  function chooseReward() {
15147
15194
  var _a;
@@ -15152,6 +15199,7 @@ function RewardExchangeView(props) {
15152
15199
  gap: "20px",
15153
15200
  gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
15154
15201
  } }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
15202
+ var _a, _b;
15155
15203
  const style = {
15156
15204
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
15157
15205
  ? "0 0 0 2px var(--sl-color-primary-500)"
@@ -15168,58 +15216,49 @@ function RewardExchangeView(props) {
15168
15216
  return (h("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
15169
15217
  h("sl-card", { class: sheet.classes.Base, onClick: () => item.available &&
15170
15218
  callbacks.setExchangeState({ selectedItem: item }) },
15171
- item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (h("div", { style: {
15172
- width: "18px",
15173
- height: "18px",
15174
- borderRadius: "50%",
15175
- background: "var(--sl-color-primary-500)",
15176
- position: "relative",
15177
- margin: "-9px",
15178
- left: "350px",
15179
- } },
15180
- h("div", { style: { position: "relative", top: "-6px" } },
15219
+ item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (h("div", { class: "selected-outline" },
15220
+ h("div", { class: "selected-checkmark" },
15181
15221
  h(CheckMark, null)))),
15182
15222
  // item?.imageUrl &&
15183
15223
  h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || getAssetPath("./assets/Reward-icon.png") }),
15184
- h("p", { style: {
15185
- textAlign: "left",
15186
- margin: "0",
15187
- flex: "1",
15188
- fontSize: "90%",
15189
- padding: "8px",
15190
- } },
15191
- h("b", null, item.description),
15192
- h("p", { style: { margin: "0" } }, amount),
15193
- item.unavailableReasonCode && (h("p", { style: {
15194
- fontSize: "70%",
15195
- color: "#F2994A",
15196
- marginTop: "0",
15197
- } }, intl.formatMessage({
15224
+ h("div", { class: "text-area" },
15225
+ h("div", { class: "title" }, item.description),
15226
+ h("div", { class: "amount" }, amount),
15227
+ item.unavailableReasonCode && (h("div", { class: "error" }, intl.formatMessage({
15198
15228
  id: "unavailableCode",
15199
- defaultMessage: states.content.text.notAvailableError,
15200
- }, { unavailableReasonCode: item.unavailableReasonCode })))))));
15229
+ defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
15230
+ }, {
15231
+ unavailableReason: item.unavailableReason ||
15232
+ item.unavailableReasonCode,
15233
+ })))))));
15201
15234
  })),
15202
15235
  h("div", { class: sheet.classes.KutayButton },
15203
- h("sl-button", { class: "cancel", size: "large", type: "text" }, "Cancel"),
15204
- h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("chooseAmount"), disabled: !states.selectedItem }, "Continue")),
15236
+ h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), disabled: !states.selectedItem }, "Continue")),
15205
15237
  ];
15206
15238
  }
15207
15239
  function chooseAmount() {
15240
+ var _a;
15208
15241
  const input = getInput();
15242
+ const isDisabled = ((_a = states.selectedItem) === null || _a === void 0 ? void 0 : _a.ruleType) === "FIXED_GLOBAL_REWARD"
15243
+ ? false
15244
+ : input && !states.amount;
15209
15245
  return (h("div", null,
15210
- h("div", { style: { width: "50%", margin: "0 auto" } }, (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) && (h("img", { class: sheet.classes.FullImage, src: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl }))),
15211
- h("p", null, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description),
15246
+ h("div", null,
15247
+ //selectedItem?.imageUrl &&
15248
+ h("img", { class: sheet.classes.FullImage, src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
15249
+ getAssetPath("./assets/Reward-icon.png") })),
15250
+ h("b", null, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description),
15212
15251
  h("div", { class: sheet.classes.InputBox }, input),
15213
15252
  h("div", { class: sheet.classes.KutayButton },
15214
15253
  h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, "Cancel"),
15215
- h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: input && !states.amount }, "Continue to confirmation"))));
15254
+ h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, "Continue to confirmation"))));
15216
15255
  }
15217
15256
  function confirmation() {
15218
15257
  return (h("div", null,
15219
15258
  h("h2", null, "Confirm and redeem"),
15220
15259
  h("div", { style: { textAlign: "center" } },
15221
15260
  h("p", null,
15222
- h("b", null, selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue)),
15261
+ h("b", null, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.prettySourceValue))),
15223
15262
  h("p", null,
15224
15263
  h(ExchangeArrows, null)),
15225
15264
  h("div", { class: sheet.classes.CardContainer, style: {
@@ -15232,16 +15271,16 @@ function RewardExchangeView(props) {
15232
15271
  h("img", { class: sheet.classes.PreviewImage, src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
15233
15272
  getAssetPath("./assets/Reward-icon.png") }),
15234
15273
  h("p", { style: { marginBottom: "0", flex: "1" } }, selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue)))),
15235
- h("div", { class: sheet.classes.Buttons },
15236
- h("sl-button", { onClick: callbacks.exchangeReward, style: { display: "block" }, class: sheet.classes.Button }, "Redeem"),
15237
- h("a", { onClick: () => callbacks.setStage("chooseAmount"), style: { display: "block" }, class: sheet.classes.Button }, "Back"))));
15274
+ h("div", { class: sheet.classes.KutayButton },
15275
+ h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, "Back"),
15276
+ h("sl-button", { class: "continue", size: "large", onClick: callbacks.exchangeReward }, "Redeem"))));
15238
15277
  }
15239
15278
  function success() {
15240
15279
  return (h("div", { style: { textAlign: "center" } },
15241
15280
  h("img", { class: sheet.classes.FullImage, src: getAssetPath("./assets/Reward-icon.png") }),
15242
15281
  h("p", { style: { color: "forestgreen" } }, "Reward Redeemed"),
15243
15282
  (data === null || data === void 0 ? void 0 : data.fuelTankCode) && h("pre", null, data === null || data === void 0 ? void 0 : data.fuelTankCode),
15244
- h("sl-button", { onClick: () => callbacks.resetState(true) }, "Done")));
15283
+ h("sl-button", { class: "continue", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, "Done")));
15245
15284
  }
15246
15285
  const stages = {
15247
15286
  chooseReward: () => chooseReward(),
@@ -15282,13 +15321,17 @@ function RewardExchangeView(props) {
15282
15321
  // </div>
15283
15322
  // );
15284
15323
  // };
15324
+ function errorMessage() {
15325
+ return (h("sl-alert", { type: "danger", open: true },
15326
+ h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
15327
+ "An error occured trying to redeem this reward. Please try again."));
15328
+ }
15285
15329
  return (h("div", { class: sheet.classes.Container },
15286
15330
  h("style", { type: "text/css" }, styleString),
15287
15331
  h("div", null,
15288
15332
  stageMap(),
15289
- currentStage && currentStage(),
15290
- states.exchangeError &&
15291
- "Something went wrong. Please contact support or try again.")));
15333
+ states.exchangeError && errorMessage(),
15334
+ currentStage && currentStage())));
15292
15335
  }
15293
15336
 
15294
15337
  const SqmRewardExchangeList = class {
@@ -15302,7 +15345,7 @@ const SqmRewardExchangeList = class {
15302
15345
  /**
15303
15346
  * @uiName Exchange button text
15304
15347
  */
15305
- this.notAvailableError = "{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }";
15348
+ this.notAvailableError = "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }";
15306
15349
  h$1(this);
15307
15350
  }
15308
15351
  disconnectedCallback() { }
@@ -21053,7 +21096,10 @@ function MatrixStory({ matrix, props, Component, }) {
21053
21096
  return (h("div", null,
21054
21097
  h(PropsTable, { values: example }),
21055
21098
  h("hr", null),
21056
- h(Component, Object.assign({}, example))));
21099
+ " ",
21100
+ h("br", null),
21101
+ h(Component, Object.assign({}, example)),
21102
+ h("br", null)));
21057
21103
  });
21058
21104
  }
21059
21105
  function PropsTable({ values }) {
@@ -21105,7 +21151,7 @@ const gift = () => {
21105
21151
  };
21106
21152
 
21107
21153
  function ProgressBarView(props) {
21108
- const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, } = props;
21154
+ const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, expired = false, } = props;
21109
21155
  console.log("progress bar props", props);
21110
21156
  const gift1 = gift();
21111
21157
  const gift2 = gift();
@@ -21155,9 +21201,7 @@ function ProgressBarView(props) {
21155
21201
  width: "100%",
21156
21202
  height: "4px",
21157
21203
  borderRadius: "4px",
21158
- backgroundColor: complete
21159
- ? "var(--sl-color-success-500)"
21160
- : "var(--sl-color-primary-500)",
21204
+ backgroundColor: "var(--sl-color-primary-300)",
21161
21205
  },
21162
21206
  "& .progress": {
21163
21207
  display: "block",
@@ -21170,9 +21214,7 @@ function ProgressBarView(props) {
21170
21214
  width: "12px",
21171
21215
  height: "12px",
21172
21216
  display: "flex",
21173
- backgroundColor: complete
21174
- ? "var(--sl-color-success-500)"
21175
- : "var(--sl-color-primary-500)",
21217
+ backgroundColor: "var(--sl-color-primary-300)",
21176
21218
  borderRadius: "50%",
21177
21219
  position: "relative",
21178
21220
  left: "47%",
@@ -21260,7 +21302,7 @@ function ProgressBarView(props) {
21260
21302
  ? ""
21261
21303
  : progressBarUnit + clamp(progress, 0, goal)));
21262
21304
  items.push(h("div", { class: "remain" }));
21263
- items.push(h("div", { class: "progress bg" }, goal));
21305
+ items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
21264
21306
  items.push(h("div", { class: "gift" }, gift1));
21265
21307
  }
21266
21308
  function addSteps() {
@@ -21446,7 +21488,7 @@ function TaskCardView(props) {
21446
21488
  },
21447
21489
  "& .main.expired": {
21448
21490
  color: "var(--sl-color-neutral-400)",
21449
- background: "var(--sl-color-neutral-100)",
21491
+ background: "var(--sl-color-neutral-50)",
21450
21492
  },
21451
21493
  "& .title": {
21452
21494
  fontSize: "var(--sl-font-size-small)",
@@ -21480,7 +21522,7 @@ function TaskCardView(props) {
21480
21522
  marginRight: "var(--sl-spacing-xx-small)",
21481
21523
  },
21482
21524
  "& .end": {
21483
- color: "var(--sl-color-warning-600)",
21525
+ color: "var(--sl-color-warning-500)",
21484
21526
  fontWeight: "var(--sl-font-weight-semibold)",
21485
21527
  marginBottom: "var(--sl-spacing-xx-small)",
21486
21528
  },
@@ -21530,40 +21572,46 @@ function TaskCardView(props) {
21530
21572
  const repetitions = props.showProgressBar
21531
21573
  ? Math.floor(props.progress / props.goal)
21532
21574
  : props.progress;
21575
+ const dateStart = props.showExpiry && luxon.DateTime.fromISO(props.rewardDuration.split("/")[0]);
21576
+ const dateEnd = props.showExpiry && luxon.DateTime.fromISO(props.rewardDuration.split("/")[1]);
21577
+ const dateToday = luxon.DateTime.now();
21533
21578
  const taskComplete = showComplete && props.repeatable === false;
21534
- const dateExpire = props.showExpiry && luxon.DateTime.fromISO(props.dateExpires.split("/").pop());
21535
- const taskExpired = props.showExpiry && luxon.DateTime.now() > dateExpire;
21536
- const dateExpireText = dateExpire.toLocaleString(luxon.DateTime.DATE_FULL);
21537
- console.log(taskExpired);
21579
+ const taskUnavailable = props.showExpiry && (dateEnd < dateToday || dateToday < dateStart);
21538
21580
  return (h("div", { class: sheet.classes.TaskCard },
21539
- h("div", { class: taskExpired ? "main expired" : taskComplete ? "main complete" : "main" },
21581
+ h("div", { class: taskUnavailable
21582
+ ? "main expired"
21583
+ : taskComplete
21584
+ ? "main complete"
21585
+ : "main" },
21540
21586
  h("style", { type: "text/css" }, styleString),
21541
- h("div", { class: sheet.classes.Header }, props.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
21542
- taskExpired && (h("div", { class: "end" },
21543
- " ",
21544
- "Ended " + dateExpireText,
21545
- " ")),
21546
- showComplete && (h("span", { class: taskExpired ? "icon neutral" : "icon" }, checkmark_circle$1)),
21547
- h("span", { class: taskExpired ? "value" : "value black" }, props.rewardAmount),
21587
+ h("div", { class: sheet.classes.Header }, props.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0", height: "12px" } })) : (h("div", null,
21588
+ taskUnavailable && (h("div", { class: "end" }, "Available " +
21589
+ dateStart.toLocaleString(luxon.DateTime.DATE_MED).split(",")[0] +
21590
+ " - " +
21591
+ dateEnd.toLocaleString(luxon.DateTime.DATE_MED).split(",")[0])),
21592
+ showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, checkmark_circle$1)),
21593
+ h("span", { class: taskUnavailable ? "value" : "value black" }, props.rewardAmount),
21548
21594
  h("span", { class: "text" }, props.rewardUnit)))),
21549
- props.loading ? (h("sl-skeleton", { style: { width: "42%", margin: "0 16px" } })) : (h("div", { class: taskExpired ? "title" : "title black" }, props.cardTitle)),
21550
- props.loading ? (h("sl-skeleton", { style: { width: "91%", margin: "12px 16px" } })) : (h(Details, Object.assign({}, props))),
21551
- props.showProgressBar && props.loading ? (h("sl-skeleton", { style: { width: "91%", margin: "0 auto" } })) : (props.showProgressBar && (h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired: taskExpired })))),
21552
- h("div", { class: sheet.classes.Footer }, props.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
21595
+ props.loading ? (h("sl-skeleton", { style: { width: "42%", margin: "0 16px", height: "12px" } })) : (h("div", { class: taskUnavailable ? "title" : "title black" }, props.cardTitle)),
21596
+ props.loading ? (h("sl-skeleton", { style: { margin: "12px 16px", height: "12px" } })) : (h(Details, Object.assign({}, props))),
21597
+ props.showProgressBar && props.loading ? (h("sl-skeleton", { style: { margin: "0 16px", height: "12px" } })) : (props.showProgressBar && (h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired: taskUnavailable })))),
21598
+ h("div", { class: sheet.classes.Footer }, props.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto", height: "12px" } })) : (h("div", { style: { display: "contents" } },
21553
21599
  h("span", { class: "text" },
21554
21600
  props.repeatable && (h("div", null,
21555
21601
  h("span", { class: repetitions > 0
21556
- ? taskExpired
21602
+ ? taskUnavailable
21557
21603
  ? "icon neutral"
21558
21604
  : "icon success"
21559
21605
  : "icon" }, arrow_left_right$1),
21560
21606
  h("span", { class: repetitions > 0
21561
- ? taskExpired
21607
+ ? taskUnavailable
21562
21608
  ? "neutral"
21563
21609
  : "success"
21564
21610
  : "" }, "Completed " + repetitions + " times"))),
21565
- props.showExpiry && !taskExpired && (h("span", null, "Ends " + dateExpireText))),
21566
- h("sl-button", { class: taskComplete || taskExpired ? "action disabled" : "action", type: "primary", size: "small", onClick: () => window.open(props.buttonLink), disabled: taskComplete || taskExpired }, props.buttonText)))))));
21611
+ props.showExpiry && !taskUnavailable && (h("span", null, "Ends " + dateEnd.toLocaleString(luxon.DateTime.DATE_FULL)))),
21612
+ h("sl-button", { class: taskComplete || taskUnavailable ? "action disabled" : "action", type: "primary", size: "small", onClick: () => props.openNewTab
21613
+ ? window.open(props.buttonLink)
21614
+ : window.open(props.buttonLink, "_self"), disabled: taskComplete || taskUnavailable }, props.buttonText)))))));
21567
21615
  }
21568
21616
  function Details(props) {
21569
21617
  const style = {
@@ -21620,7 +21668,7 @@ function Details(props) {
21620
21668
 
21621
21669
  const scenarioTaskCard = "@author:derek\r\n@owner:\r\nFeature: Task Card\r\n\r\n\tScenario: A header, body title, description and a CTA button are always displayed\r\n\t\tGiven the Task Card is configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| rewardAmount | \"40\" |\r\n\t\t\t| rewardUnit | \"Points\" |\r\n\t\t\t| cardTitle | Complete a survey |\r\n\t\t\t| description | Fill out our survey form and receive points! |\r\n\t\t\t| buttonText | Take Survey |\r\n\t\t\t| buttonLink | https://example.com/ |\r\n\t\tWhen a user views the Task Card\r\n\t\tThen they see \"40 Points\" as the heading\r\n\t\tAnd the \"40\" is bolded\r\n\t\tAnd they see \"Complete a survey\" bolded in the body\r\n\t\tAnd a details icon in the top right hand corner\r\n\t\tAnd a button with text \"Take Survey\" in the bottom right hand corner\r\n\t\tWhen they click the button\r\n\t\tThen they are redirected to \"example.com\" in a new window\r\n\t\tWhen they click the details icon\r\n\t\tThen \"Fill out our survey form and receive points!\" is shown as the card description\r\n\r\n\tScenario: A loading state is displayed while the Task Card is loading\r\n\t\tGiven a Task Card component\r\n\t\tWhen a user views the Task Card\r\n\t\tThen a loading state is displayed\r\n\t\tWhen the Task Card has loaded\r\n\t\tThen the loading state disapears\r\n\r\n\tScenario Outline: The Progress Bar can be shown or hidden but is hidden by default\r\n\t\tGiven a Task Card component\r\n\t\tAnd it <mayHave> \"showProgressBar\" <value>\r\n\t\tWhen a user views the Task Card\r\n\t\tThen the progress bar <mayBe> displayed\r\n\t\tExamples:\r\n\t\t\t| mayHave | value | mayBe |\r\n\t\t\t| has | true | is |\r\n\t\t\t| has | false | isn't |\r\n\t\t\t| doesn't have | | isn't |\r\n\r\n\tScenario Outline: Tasks can be repeatable or one-time only but are one-time only be default\r\n\t\tGiven a Task Card component\r\n\t\tAnd it <mayHave> \"repeatable\" <value>\r\n\t\tAnd a user who has already completed the task\r\n\t\tWhen they views the Task Card\r\n\t\tThen they see a green checkmark icon beside the card heading\r\n\t\tAnd the card <mayBe> green\r\n\t\tAnd the card's border <mayBe> green\r\n\t\tAnd the CTA button <mayBe> disabled\r\n\t\tAnd the CTA button <mayBe> grey\r\n\t\tExamples:\r\n\t\t\t| mayHave | value | mayBe |\r\n\t\t\t| has | true | isn't |\r\n\t\t\t| has | false | is |\r\n\t\t\t| doesn't have | | is |\r\n\r\n\tScenario: Task Expiries can be configured and disable the CTA after the expiry\r\n\t\tGiven a Task Card component\r\n\t\tAnd it is configured for <expiry>\r\n\t\tWhen a user views the Card on <day>\r\n\t\tThen they the expiry on <cardLocation>\r\n\t\tAnd the text <mayBe> orange\r\n\t\tAnd the card <mayBe> disabled\r\n\t\tAnd the card <mayBe> grey\r\n\t\tAnd the user <mayBe> unable to complete the loyalty task\r\n\t\tExamples:\r\n\t\t\t| expiry | day | cardLocation | mayBe |\r\n\t\t\t| Dec 31 2021 11:59:59 | Dec 1st 2021 12:00:00 | bottom left | isn't |\r\n\t\t\t| Dec 31 2021 11:59:59 | Dec 31 2021 11:00:00 | top right | isn't |\r\n\t\t\t| Dec 31 2021 11:59:59 | Jan 15th 2022 10:00:00 | top right | is |\r\n\r\n\tScenario Outline: Task expiry can be hidden or shown but is hidden by default\r\n\t\tGiven a Task Card\r\n\t\tAnd it is configured with an expiry\r\n\t\tAnd it <mayHave> \"showExpiry\" <value>\r\n\t\tWhen a user views the Task card\r\n\t\tThen the expiry <mayBe> shown in the bottom left hand corner\r\n\t\tExamples:\r\n\t\t\t| mayHave | value | mayBe |\r\n\t\t\t| has | true | is |\r\n\t\t\t| has | false | isn't |\r\n\t\t\t| doesn't have | | isn't |\r\n\r\n\t#DS: Currently this text is non configurable and isnt set up for proper pluralization\r\n\tScenario Outline: A task completion count is displayed for repeatable tasks\r\n\t\tGiven a Task Card is configured for a repeatable task\r\n\t\tAnd has \"goalCompletionNumber\" <goalCompletionNumberValue>\r\n\t\tAnd a user with <userGoalProgress>\r\n\t\tWhen the user views the task card\r\n\t\tThen they see a repeat icon\r\n\t\tAnd the <text> in the bottom left hand corner\r\n\t\tAnd the <text> is green\r\n\t\tExamples:\r\n\t\t\t| goalCompletionNumber | userGoalProgress | text |\r\n\t\t\t| 1 | 0 | Completed 0 times |\r\n\t\t\t| 1 | 1 | Completed 1 times |\r\n\t\t\t| 1 | 2 | Completed 2 times |\r\n\t\t\t| 10 | 5 | Completed 0 times |\r\n\t\t\t| 10 | 12 | Completed 1 times |\r\n\t\t\t| 10 | 29 | Completed 2 times |\r\n\r\n\tScenario Outline: The source of a user's progress can be a custom field or a program goal\r\n\t\tGiven a Task Card is configured to have <progressSourcePath> progress source\r\n\t\tAnd a user\r\n\t\tWhen they view the Task card\r\n\t\tThen the value at <progressSourcePath> is used to benchmark their progress against the Goal Completion Count\r\n\t\tExamples:\r\n\t\t\t| value |\r\n\t\t\t| /customFields/activityCount |\r\n\t\t\t| /customFields/purchaseTotal |\r\n\t\t\t| /programGoals/count%2FComment-on-Article |\r\n\t\t\t| /programGoals/count/Referral-Started%2Freferrals |\r\n\r\n\tScenario Outline: The users completion of a goal is calculated by the Goal Completion Number\r\n\t\tGiven a Task Card is configured to have <goalValue>\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen they are shown to have <progressValue> towards <goalValue>\r\n\t\tWhen their progress grows larger than <goalValue>\r\n\t\tThen the task is marked as completed\r\n\t\tExamples:\r\n\t\t\t| goalValue | progressValue |\r\n\t\t\t| 1 | 0 |\r\n\t\t\t| 10 | 9 |\r\n\t\t\t| 5 | 2 |\r\n\r\n\tScenario: The Goal Completion Number defaults to 1\r\n\t\tGiven a Task Card without a configured \"goalCompletionNumber\"\r\n\t\tAnd a user who has <progressValue>\r\n\t\tWhen they view the Task Card\r\n\t\tThen it <mayBe> marked as completed\r\n\t\tExamples:\r\n\t\t\t| progressValue | mayBe |\r\n\t\t\t| 0 | isn't |\r\n\t\t\t| 1 | is |\r\n\t\t\t| 2 | is |";
21622
21670
 
21623
- const scenarioProgressBar = "@author:\r\n@owner:\r\nFeature: Task Card Progress Bar\r\n\r\n\tScenario Outline: Progress Bar\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> with <unit> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | color |\r\n\t\t\t| -100 | 500 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 0 | 500 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 250 | 500 | ―――――――――●―――――――――🎁 | $ | no |\r\n\t\t\t| 500 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 1000 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\r\n\tScenario Outline: Progress Bar Steps\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tAnd steps is enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> has incrementing steps from 1 to <goal>\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | color |\r\n\t\t\t| -1 | 5 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 0 | 5 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 1 | 5 | ―――●―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 5 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\t\t\t| 7 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\r\n\r\n\tScenario Outline: Progress Bar Repeatable\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd <icon1> has <color1>\r\n\t\tAnd <icon2> has <color2>\r\n\t\tAnd <icon3> has <color3>\r\n\t\tAnd <icon1> shows <text1> below\r\n\t\tAnd <icon2> shows <text2> below\r\n\t\tAnd <icon3> shows <text3> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | icon1 | icon2 | icon3 | color1 | color2 | color3 | text 1 | text 2 | text 3 |\r\n\t\t\t| 250 | 500 | ――――●――――🎁―――――――🎁 | $ | NA | gift | gift | NA | no | no | NA | 500 | 1000 |\r\n\t\t\t| 500 | 500 | ―――――――――🎁―――――――🎁 | $ | NA | gift | gift | NA | yes | no | NA | 500 | 1000 |\r\n\t\t\t| 750 | 500 | ―――――――――🎁―――●―――🎁 | $ | NA | gift | gift | NA | yes | no | NA | 500 | 1000 |\r\n\t\t\t| 1000 | 500 | 🎁―――――――🎁―――――――🎁 | $ | gift | gift | gift | yes | yes | no | 500 | 1000 | 1500 |\r\n\t\t\t| 1250 | 500 | 🎁―――――――🎁―――●―――🎁 | $ | gift | gift | gift | yes | yes | no | 500 | 1000 | 1500 |\r\n\r\n\t# \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t math logic inside text ?\r\n\t# | 1250 | 500 | 🎁―――――――🎁―――●―――🎁 | gift | gift | gift | yes | yes | no | goal * (⌊ progress / goal ⌋ - 1) | goal * ⌊ progress / goal ⌋ | goal * (⌊ progress / goal ⌋ +1) |\r\n\r\n\r\n\tScenario Outline: Progress Bar Steps Repeatable\r\n\r\n\t\tGiven <progress> and <goal>\r\n\t\tAnd steps is enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> has incrementing steps\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar |";
21671
+ const scenarioProgressBar = "@author:\r\n@owner:\r\nFeature: Task Card Progress Bar\r\n\r\n\tScenario Outline: Progress Bar\r\n\r\n\t\tGiven a Task Card component\r\n\t\tAnd progress is <progress>\r\n\t\tAnd goal is <goal>\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> with <unit> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | color |\r\n\t\t\t| -100 | 500 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 0 | 500 | ●――――――――――――――――――🎁 | $ | no |\r\n\t\t\t| 250 | 500 | ―――――――――●―――――――――🎁 | $ | no |\r\n\t\t\t| 500 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\t\t\t| 1000 | 500 | ―――――――――――――――――――🎁 | $ | yes |\r\n\r\n\tScenario Outline: Progress Bar Steps\r\n\r\n\t\tGiven a Task Card component\r\n\t\tAnd progress is <progress>\r\n\t\tAnd goal is <goal>\r\n\t\tAnd steps is enabled\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> has incrementing steps from 1 to <goal>\r\n\t\tAnd gift icon has <color>\r\n\t\tAnd gift icon shows <goal> below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | color |\r\n\t\t\t| -1 | 5 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 0 | 5 | ―――○―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 1 | 5 | ―――●―――○―――○―――○―――🎁 | no |\r\n\t\t\t| 5 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\t\t\t| 7 | 5 | ―――○―――○―――○―――●―――🎁 | yes |\r\n\r\n\r\n\tScenario Outline: Progress Bar Repeatable\r\n\r\n\t\tGiven a Task Card component\r\n\t\tAnd progress is <progress>\r\n\t\tAnd goal is <goal>\r\n\t\tAnd it is repeatable\r\n\t\tThen I have <progressBar>\r\n\t\tAnd <progressBar> shows <progress> with <unit> above\r\n\t\tAnd <icon1> is <color1> with <text1> displayed below\r\n\t\tAnd <icon2> is <color2> with <text2> displayed below\r\n\t\tAnd <icon3> is <color3> with <text3> displayed below\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar | unit | icon1 | color1 | text1 | icon2 | color2 | text 2 | icon3 | color3 | text 1 | text 3 |\r\n\t\t\t| 250 | 500 | ――――●――――🎁―――――――🎁 | $ | NA | NA | NA | gift | greyscale | 500 | gift | greyscale | NA | 1000 |\r\n\t\t\t| 500 | 500 | ―――――――――🎁―――――――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | NA | 1000 |\r\n\t\t\t| 750 | 500 | ―――――――――🎁―――●―――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | NA | 1000 |\r\n\t\t\t| 1000 | 500 | 🎁―――――――🎁―――――――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 500 | 1500 |\r\n\t\t\t| 1250 | 500 | 🎁―――――――🎁―――●―――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 500 | 1500 |\r\n\r\n\tScenario Outline: Progress Bar Steps Repeatable\r\n\r\n\t\tGiven a Task Card component\r\n\t\tAnd progress is <progress>\r\n\t\tAnd goal is <goal>\r\n\t\tAnd steps is enabled\r\n\t\tAnd it is repeatable\r\n\t\tThen I have <progressBar>\r\n\r\n\t\tExamples:\r\n\t\t\t| progress | goal | progressBar |";
21624
21672
 
21625
21673
  const scenario$5 = scenarioTaskCard + scenarioProgressBar;
21626
21674
  const TaskCard_stories = {
@@ -21642,7 +21690,7 @@ const resizable = {
21642
21690
  };
21643
21691
  const oneAction = {
21644
21692
  rewardAmount: 20,
21645
- rewardUnit: "Points",
21693
+ rewardUnit: "SaaSquatch Points",
21646
21694
  cardTitle: "Complete a survey",
21647
21695
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
21648
21696
  repeatable: false,
@@ -21651,13 +21699,14 @@ const oneAction = {
21651
21699
  goal: 1,
21652
21700
  buttonText: "Take survey",
21653
21701
  buttonLink: "https://example.com/",
21702
+ openNewTab: false,
21654
21703
  showExpiry: false,
21655
- dateExpires: null,
21704
+ rewardDuration: null,
21656
21705
  loading: false,
21657
21706
  };
21658
21707
  const coupleActions = {
21659
21708
  rewardAmount: 40,
21660
- rewardUnit: "Points",
21709
+ rewardUnit: "SaaSquatch Points",
21661
21710
  cardTitle: "Comment on 5 articles",
21662
21711
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
21663
21712
  repeatable: false,
@@ -21667,13 +21716,14 @@ const coupleActions = {
21667
21716
  goal: 5,
21668
21717
  buttonText: "Take survey",
21669
21718
  buttonLink: "https://example.com/",
21719
+ openNewTab: false,
21670
21720
  showExpiry: false,
21671
- dateExpires: null,
21721
+ rewardDuration: null,
21672
21722
  loading: false,
21673
21723
  };
21674
21724
  const manyActions = {
21675
21725
  rewardAmount: 150,
21676
- rewardUnit: "Points",
21726
+ rewardUnit: "SaaSquatch Points",
21677
21727
  cardTitle: "Spend $500 at our Store",
21678
21728
  description: "Description of action and reward. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut eget quisque commodo leo.",
21679
21729
  repeatable: false,
@@ -21683,8 +21733,9 @@ const manyActions = {
21683
21733
  progressBarUnit: "$",
21684
21734
  buttonText: "Take survey",
21685
21735
  buttonLink: "https://example.com/",
21736
+ openNewTab: false,
21686
21737
  showExpiry: false,
21687
- dateExpires: null,
21738
+ rewardDuration: null,
21688
21739
  loading: false,
21689
21740
  };
21690
21741
  const TaskCardNotRepeatable = () => {
@@ -21745,10 +21796,10 @@ const TaskCardRepeatable = () => {
21745
21796
  h(TaskCardView, Object.assign({}, manyActions, { progress: 1000, repeatable: true })),
21746
21797
  h("h5", null))));
21747
21798
  };
21748
- const TaskCardDateExpires = () => {
21799
+ const TaskCardEndDate = () => {
21749
21800
  const expire = {
21750
21801
  showExpiry: true,
21751
- dateExpires: "2021-12-01T08:00:00.000Z/2077-12-01T08:00:00.000Z",
21802
+ rewardDuration: "2021-12-01T08:00:00.000Z/2077-12-01T08:00:00.000Z",
21752
21803
  };
21753
21804
  const expireRepeat = { ...expire, repeatable: true };
21754
21805
  return (h("div", { style: storyFrame },
@@ -21805,10 +21856,10 @@ const TaskCardLoading = () => {
21805
21856
  " ",
21806
21857
  h("h5", null))));
21807
21858
  };
21808
- const TaskCardExpired = () => {
21859
+ const TaskCardUnavailable = () => {
21809
21860
  const expire = {
21810
21861
  showExpiry: true,
21811
- dateExpires: "2021-12-01T08:00:00.000Z/2021-12-01T08:00:00.000Z",
21862
+ rewardDuration: "2021-11-30T08:00:00.000Z/2021-12-01T08:00:00.000Z",
21812
21863
  };
21813
21864
  const expireRepeat = { ...expire, repeatable: true };
21814
21865
  return (h("div", { style: storyFrame },
@@ -21897,9 +21948,9 @@ const TaskCard$1 = /*#__PURE__*/Object.freeze({
21897
21948
  'default': TaskCard_stories,
21898
21949
  TaskCardNotRepeatable: TaskCardNotRepeatable,
21899
21950
  TaskCardRepeatable: TaskCardRepeatable,
21900
- TaskCardDateExpires: TaskCardDateExpires,
21951
+ TaskCardEndDate: TaskCardEndDate,
21901
21952
  TaskCardLoading: TaskCardLoading,
21902
- TaskCardExpired: TaskCardExpired,
21953
+ TaskCardUnavailable: TaskCardUnavailable,
21903
21954
  ProgressBar: ProgressBar$1,
21904
21955
  ProgressBarSteps: ProgressBarSteps,
21905
21956
  ProgressBarRepeatable: ProgressBarRepeatable,
@@ -24918,7 +24969,7 @@ const ReferralIframeReadme = "# sqm-referral-iframe\r\n\r\n\r\n\r\n<!-- Auto Gen
24918
24969
 
24919
24970
  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";
24920
24971
 
24921
- 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; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; refs?: { formRef: any; }; }` | `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";
24972
+ 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";
24922
24973
 
24923
24974
  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";
24924
24975
 
@@ -24926,7 +24977,7 @@ const ResetPasswordReadme = "# sqm-portal-reset-password\r\n\r\n\r\n\r\n<!-- Aut
24926
24977
 
24927
24978
  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";
24928
24979
 
24929
- 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";
24980
+ 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";
24930
24981
 
24931
24982
  const PortalTemplates_stories = {
24932
24983
  title: "Templates / Portal",
@@ -25437,14 +25488,18 @@ const NameFields$1 = /*#__PURE__*/Object.freeze({
25437
25488
  NameFieldsWithErrors: NameFieldsWithErrors
25438
25489
  });
25439
25490
 
25440
- const baseResponse = (data) => ({
25491
+ const baseResponse = (data, selected = null) => ({
25441
25492
  states: {
25442
- content: null,
25493
+ content: {
25494
+ text: {
25495
+ notAvailableError: "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }",
25496
+ },
25497
+ },
25443
25498
  redeemStage: "chooseReward",
25444
25499
  amount: 0,
25445
25500
  exchangeError: false,
25446
25501
  loading: false,
25447
- selectedItem: null,
25502
+ selectedItem: selected,
25448
25503
  selectedStep: null,
25449
25504
  },
25450
25505
  data: {
@@ -25491,6 +25546,9 @@ const usTax = {
25491
25546
  available: false,
25492
25547
  unavailableReasonCode: "US_TAX",
25493
25548
  };
25549
+ const selected = {
25550
+ key: "r1",
25551
+ };
25494
25552
  const imageUrl = (props) => ({
25495
25553
  imageUrl: props,
25496
25554
  });
@@ -25507,60 +25565,71 @@ const variableValue = (min, max, text) => ({
25507
25565
  sourceMaxValue: max,
25508
25566
  prettySourceMaxValue: max + " " + text,
25509
25567
  });
25510
- const test = {
25511
- ...baseResponse([
25512
- {
25513
- ...baseReward$2,
25514
- ...description("Free swag with a promo code"),
25515
- ...imageUrl("https://i.imgur.com/Ds7M19I.png"),
25516
- ...fixedValue("40 SaaSquatch Points"),
25517
- },
25518
- {
25519
- ...baseReward$2,
25520
- ...description("Visa® Prepaid Card USD"),
25521
- ...imageUrl("https://i.imgur.com/4s3q2zz.png"),
25522
- ...variableValue(20, 80, "SaaSquatch Points"),
25523
- },
25524
- {
25525
- ...baseReward$2,
25526
- ...description("A very exclusive gift box"),
25527
- ...imageUrl("https://i.imgur.com/XuiJi4l.png"),
25528
- ...fixedValue("30 SaaSquatch Points"),
25529
- },
25530
- {
25531
- ...baseReward$2,
25532
- ...description("$50 Store credit"),
25533
- ...imageUrl("https://i.imgur.com/WkCMVSE.png"),
25534
- ...fixedValue("100 SaaSquatch Points"),
25535
- },
25536
- {
25537
- ...baseReward$2,
25538
- ...description("Variable amount of store credit"),
25539
- ...imageUrl("https://i.imgur.com/Jn2fE0s.png"),
25540
- ...variableValue(20, 100, "SaaSquatch Points"),
25541
- },
25542
- {
25543
- ...baseReward$2,
25544
- ...notEnoughPoints,
25545
- ...description("A very rare cactus"),
25546
- ...imageUrl("https://i.imgur.com/CvCdpXc.png"),
25547
- ...fixedValue("2000 SaaSquatch Points"),
25548
- },
25549
- {
25550
- ...baseReward$2,
25551
- ...usTax,
25552
- ...description("$1000 Store credit"),
25553
- ...imageUrl("https://i.imgur.com/I9FCh9Z.png"),
25554
- ...fixedValue("2000 SaaSquatch Points"),
25555
- },
25556
- {
25557
- ...baseReward$2,
25558
- ...notEnoughPoints,
25559
- ...description("A holiday gift box"),
25560
- ...imageUrl("https://i.imgur.com/HBJS1WH.png"),
25561
- ...fixedValue("100 SaaSquatch Points"),
25562
- },
25563
- ]),
25568
+ const data = [
25569
+ {
25570
+ ...baseReward$2,
25571
+ ...description("Free swag with a promo code"),
25572
+ ...imageUrl("https://i.imgur.com/Ds7M19I.png"),
25573
+ ...fixedValue("40 SaaSquatch Points"),
25574
+ },
25575
+ {
25576
+ ...baseReward$2,
25577
+ ...selected,
25578
+ ...description("Visa® Prepaid Card USD"),
25579
+ ...imageUrl("https://i.imgur.com/4s3q2zz.png"),
25580
+ ...variableValue(20, 80, "SaaSquatch Points"),
25581
+ },
25582
+ {
25583
+ ...baseReward$2,
25584
+ ...description("A very exclusive gift box"),
25585
+ ...imageUrl("https://i.imgur.com/XuiJi4l.png"),
25586
+ ...fixedValue("30 SaaSquatch Points"),
25587
+ },
25588
+ {
25589
+ ...baseReward$2,
25590
+ ...description("$50 Store credit"),
25591
+ ...imageUrl("https://i.imgur.com/WkCMVSE.png"),
25592
+ ...fixedValue("100 SaaSquatch Points"),
25593
+ },
25594
+ {
25595
+ ...baseReward$2,
25596
+ ...description("Variable amount of store credit"),
25597
+ ...imageUrl("https://i.imgur.com/Jn2fE0s.png"),
25598
+ ...variableValue(20, 100, "SaaSquatch Points"),
25599
+ },
25600
+ {
25601
+ ...baseReward$2,
25602
+ ...notEnoughPoints,
25603
+ ...description("A very rare cactus"),
25604
+ ...imageUrl("https://i.imgur.com/CvCdpXc.png"),
25605
+ ...fixedValue("2000 SaaSquatch Points"),
25606
+ },
25607
+ {
25608
+ ...baseReward$2,
25609
+ ...usTax,
25610
+ ...description("$1000 Store credit"),
25611
+ ...imageUrl("https://i.imgur.com/I9FCh9Z.png"),
25612
+ ...fixedValue("2000 SaaSquatch Points"),
25613
+ },
25614
+ {
25615
+ ...baseReward$2,
25616
+ ...notEnoughPoints,
25617
+ ...description("A holiday gift box"),
25618
+ ...imageUrl("https://i.imgur.com/HBJS1WH.png"),
25619
+ ...fixedValue("100 SaaSquatch Points"),
25620
+ },
25621
+ ];
25622
+ const rewardExchange = {
25623
+ ...baseResponse(data),
25624
+ };
25625
+ const rewardExchangeSelected = {
25626
+ ...baseResponse(data, {
25627
+ ...baseReward$2,
25628
+ ...selected,
25629
+ ...description("Visa® Prepaid Card USD"),
25630
+ ...imageUrl("https://i.imgur.com/4s3q2zz.png"),
25631
+ ...variableValue(20, 80, "SaaSquatch Points"),
25632
+ }),
25564
25633
  };
25565
25634
  const test2 = {
25566
25635
  states: {
@@ -25604,6 +25673,7 @@ const test2 = {
25604
25673
  prettyDestinationValue: "1 Salmon Coin",
25605
25674
  available: true,
25606
25675
  unavailableReasonCode: null,
25676
+ unavailableReason: "",
25607
25677
  },
25608
25678
  {
25609
25679
  sourceValue: 2,
@@ -25612,6 +25682,7 @@ const test2 = {
25612
25682
  prettyDestinationValue: "2 Salmons",
25613
25683
  available: true,
25614
25684
  unavailableReasonCode: null,
25685
+ unavailableReason: "",
25615
25686
  },
25616
25687
  {
25617
25688
  sourceValue: 3,
@@ -25620,6 +25691,7 @@ const test2 = {
25620
25691
  prettyDestinationValue: "3 Salmons",
25621
25692
  available: true,
25622
25693
  unavailableReasonCode: null,
25694
+ unavailableReason: "",
25623
25695
  },
25624
25696
  {
25625
25697
  sourceValue: 4,
@@ -25628,6 +25700,7 @@ const test2 = {
25628
25700
  prettyDestinationValue: "4 Salmons",
25629
25701
  available: true,
25630
25702
  unavailableReasonCode: null,
25703
+ unavailableReason: "",
25631
25704
  },
25632
25705
  {
25633
25706
  sourceValue: 5,
@@ -25636,6 +25709,7 @@ const test2 = {
25636
25709
  prettyDestinationValue: "5 Salmons",
25637
25710
  available: true,
25638
25711
  unavailableReasonCode: null,
25712
+ unavailableReason: "",
25639
25713
  },
25640
25714
  ],
25641
25715
  },
@@ -25666,9 +25740,13 @@ const resizable$1 = {
25666
25740
  height: "fit-content",
25667
25741
  overflow: "hidden",
25668
25742
  };
25669
- const Default$b = () => {
25743
+ const rewardExchange$1 = () => {
25744
+ return (h("div", { style: resizable$1 },
25745
+ h(RewardExchangeView, Object.assign({}, rewardExchange))));
25746
+ };
25747
+ const rewardExchangeSelected$1 = () => {
25670
25748
  return (h("div", { style: resizable$1 },
25671
- h(RewardExchangeView, Object.assign({}, test))));
25749
+ h(RewardExchangeView, Object.assign({}, rewardExchangeSelected))));
25672
25750
  };
25673
25751
  const Default2 = () => {
25674
25752
  return (h("div", { style: { ...resizable$1, height: "700px" } },
@@ -25678,7 +25756,8 @@ const Default2 = () => {
25678
25756
  const RewardExchangeList = /*#__PURE__*/Object.freeze({
25679
25757
  __proto__: null,
25680
25758
  'default': RewardExchangeList_stories,
25681
- Default: Default$b,
25759
+ rewardExchange: rewardExchange$1,
25760
+ rewardExchangeSelected: rewardExchangeSelected$1,
25682
25761
  Default2: Default2
25683
25762
  });
25684
25763
 
@@ -28380,10 +28459,6 @@ const TaskCard$2 = class {
28380
28459
  * @uiName Show Progress Bar
28381
28460
  */
28382
28461
  this.showProgressBar = false;
28383
- /**
28384
- * @uiName Goal Progress Source
28385
- */
28386
- this.progressSource = "";
28387
28462
  /**
28388
28463
  * @uiName Goal Completion Number
28389
28464
  */
@@ -28397,11 +28472,11 @@ const TaskCard$2 = class {
28397
28472
  */
28398
28473
  this.showExpiry = false;
28399
28474
  /**
28400
- * @uiName Date Goal Expires
28475
+ * @uiName Reward Duration
28401
28476
  * @uiWidget DateRange
28402
28477
  * @uiOptions {"allowPastDates":true, "months": 1}
28403
28478
  */
28404
- this.dateExpires = "/";
28479
+ this.rewardDuration = "/";
28405
28480
  /**
28406
28481
  * @uiName CTA Button Text
28407
28482
  */
@@ -28410,11 +28485,15 @@ const TaskCard$2 = class {
28410
28485
  * @uiName CTA Button Link
28411
28486
  */
28412
28487
  this.buttonLink = "https://example.com/";
28488
+ /**
28489
+ * @uiName CTA Button Link Open in New Tab
28490
+ */
28491
+ this.openNewTab = false;
28413
28492
  /**
28414
28493
  * Select what type of stat to display for the goal. Manual paths are also supported.
28415
28494
  *
28416
28495
  * @uiWidget StatTypeSelectWidget
28417
- * @uiName Stat Type
28496
+ * @uiName Goal Progress Source
28418
28497
  * @uiOptions {"version": 1.1}
28419
28498
  */
28420
28499
  this.statType = "/programGoals/count/Referral-Started%2Freferrals";
@@ -28425,7 +28504,7 @@ const TaskCard$2 = class {
28425
28504
  const { props } = j$1() ? useDemoBigStat(this) : useBigStat(this);
28426
28505
  const { value, statvalue } = props;
28427
28506
  console.log(props, j$1());
28428
- return (h(TaskCardView, Object.assign({}, getProps(this), { progress: value, loading: value === undefined })));
28507
+ return (h(TaskCardView, Object.assign({ progress: value, loading: !j$1() && value === undefined }, getProps(this))));
28429
28508
  }
28430
28509
  };
28431
28510