@saasquatch/mint-components 1.5.0-2 → 1.5.0-6

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 (253) hide show
  1. package/dist/cjs/{ShadowViewAddon-a85b8c8d.js → ShadowViewAddon-475e00d3.js} +3 -3
  2. package/dist/cjs/{global-6223fe8f.js → global-89f66e76.js} +2 -2
  3. package/dist/cjs/{index.module-7dd4b981.js → index.module-c0bf9df0.js} +16 -16
  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-124b56ee.js} +4 -4
  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-brand_31.cjs.entry.js +810 -586
  10. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
  11. package/dist/cjs/{sqm-leaderboard-rank-view-7dd44d62.js → sqm-leaderboard-rank-view-510f16d3.js} +2 -2
  12. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
  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-a2bdcf05.js} +2 -2
  16. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
  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-5093ac20.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
  20. package/dist/cjs/{sqm-portal-footer-view-69c73802.js → sqm-portal-footer-view-03408484.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 +3 -3
  23. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  24. package/dist/cjs/{sqm-portal-profile-view-14b41436.js → sqm-portal-profile-view-fa2db439.js} +1 -1
  25. package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -6
  26. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  27. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +5 -5
  28. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
  29. package/dist/cjs/sqm-program-explainer-step-view-6a01cda0.js +70 -0
  30. package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +3 -16
  31. package/dist/cjs/sqm-program-explainer-view-8a4af972.js +45 -0
  32. package/dist/cjs/sqm-program-explainer.cjs.entry.js +4 -33
  33. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
  34. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
  35. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
  36. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
  37. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
  38. package/dist/cjs/sqm-share-code.cjs.entry.js +4 -4
  39. package/dist/cjs/{useDemoBigStat-2786227e.js → useDemoBigStat-5d71bbdf.js} +3 -3
  40. package/dist/collection/components/sqm-brand/SqmBrand.stories.js +31 -13
  41. package/dist/collection/components/sqm-brand/sqm-brand.js +51 -13
  42. package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +45 -29
  43. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +36 -28
  44. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +112 -5
  45. package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +3 -2
  46. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +42 -21
  47. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +46 -46
  48. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +5 -3
  49. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +38 -19
  50. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +3 -0
  51. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +135 -87
  52. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +349 -3
  53. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +20 -12
  54. package/dist/collection/fonts/GoogleFonts.js +12 -0
  55. package/dist/esm/{ShadowViewAddon-a3f510db.js → ShadowViewAddon-558fabb7.js} +3 -3
  56. package/dist/esm/{global-90da933f.js → global-e0e25c22.js} +2 -2
  57. package/dist/esm/{index.module-90d2c3ad.js → index.module-eb50a8d2.js} +2 -2
  58. package/dist/esm/loader.js +3 -3
  59. package/dist/esm/mint-components.js +3 -3
  60. package/dist/esm/{re-render-e06f2f7f.js → re-render-6d5b856e.js} +4 -4
  61. package/dist/esm/sqm-asset-card.entry.js +1 -1
  62. package/dist/esm/sqm-big-stat.entry.js +2 -2
  63. package/dist/esm/sqm-brand_31.entry.js +811 -587
  64. package/dist/esm/sqm-graphql-client-provider.entry.js +4 -4
  65. package/dist/esm/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-cd1e8962.js} +2 -2
  66. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  67. package/dist/esm/sqm-leaderboard.entry.js +2 -2
  68. package/dist/esm/sqm-name-fields.entry.js +1 -1
  69. package/dist/esm/{sqm-navigation-sidebar-item-view-f2304ad9.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +2 -2
  70. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  71. package/dist/esm/sqm-popup-container.entry.js +1 -1
  72. package/dist/esm/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
  73. package/dist/esm/sqm-portal-email-verification.entry.js +5 -5
  74. package/dist/esm/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
  75. package/dist/esm/sqm-portal-footer.entry.js +3 -3
  76. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  77. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  78. package/dist/esm/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
  79. package/dist/esm/sqm-portal-profile.entry.js +6 -6
  80. package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
  81. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  82. package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
  83. package/dist/esm/sqm-program-explainer-step-view-41c1eecd.js +68 -0
  84. package/dist/esm/sqm-program-explainer-step.entry.js +3 -16
  85. package/dist/esm/sqm-program-explainer-view-098a64a9.js +43 -0
  86. package/dist/esm/sqm-program-explainer.entry.js +7 -36
  87. package/dist/esm/sqm-referral-table-column.entry.js +2 -2
  88. package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
  89. package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
  90. package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
  91. package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
  92. package/dist/esm/sqm-share-code.entry.js +4 -4
  93. package/dist/esm/{useDemoBigStat-c3b955b7.js → useDemoBigStat-d227b2f9.js} +3 -3
  94. package/dist/esm-es5/ShadowViewAddon-558fabb7.js +1 -0
  95. package/dist/esm-es5/{global-90da933f.js → global-e0e25c22.js} +2 -2
  96. package/dist/esm-es5/{index.module-90d2c3ad.js → index.module-eb50a8d2.js} +1 -1
  97. package/dist/esm-es5/loader.js +1 -1
  98. package/dist/esm-es5/mint-components.js +1 -1
  99. package/dist/esm-es5/{re-render-e06f2f7f.js → re-render-6d5b856e.js} +1 -1
  100. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  101. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  102. package/dist/esm-es5/sqm-brand_31.entry.js +2 -2
  103. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  104. package/dist/esm-es5/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-cd1e8962.js} +1 -1
  105. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  106. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  107. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  108. package/dist/esm-es5/sqm-navigation-sidebar-item-view-2d8c368c.js +1 -0
  109. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  110. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  111. package/dist/esm-es5/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
  112. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  113. package/dist/esm-es5/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
  114. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  115. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  116. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  117. package/dist/esm-es5/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
  118. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  119. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  120. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  121. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  122. package/dist/esm-es5/sqm-program-explainer-step-view-41c1eecd.js +1 -0
  123. package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -1
  124. package/dist/esm-es5/sqm-program-explainer-view-098a64a9.js +1 -0
  125. package/dist/esm-es5/sqm-program-explainer.entry.js +1 -1
  126. package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
  127. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
  128. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
  129. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
  130. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
  131. package/dist/esm-es5/sqm-share-code.entry.js +1 -1
  132. package/dist/esm-es5/useDemoBigStat-d227b2f9.js +1 -0
  133. package/dist/mint-components/mint-components.esm.js +1 -1
  134. package/dist/mint-components/mint-components.js +1 -1
  135. package/dist/mint-components/{p-a6094ff9.system.js → p-02dc36a4.system.js} +1 -1
  136. package/dist/mint-components/{p-3ce2fb83.system.js → p-03e93c82.system.js} +1 -1
  137. package/dist/mint-components/p-0d8b2757.system.entry.js +1 -0
  138. package/dist/mint-components/{p-b608f7a4.system.js → p-0e8ae7e3.system.js} +1 -1
  139. package/dist/mint-components/p-10103ce2.system.js +1 -0
  140. package/dist/mint-components/{p-221a4097.entry.js → p-1705e549.entry.js} +1 -1
  141. package/dist/mint-components/p-1b5b5928.system.js +1 -0
  142. package/dist/mint-components/{p-0eb3e89c.js → p-1f95b411.js} +1 -1
  143. package/dist/mint-components/{p-44d0fc80.system.entry.js → p-2027edc0.system.entry.js} +1 -1
  144. package/dist/mint-components/{p-a4c2c7ed.entry.js → p-20c95798.entry.js} +1 -1
  145. package/dist/mint-components/{p-b1bb07db.entry.js → p-21b4044a.entry.js} +1 -1
  146. package/dist/mint-components/p-21df3f85.system.entry.js +1 -0
  147. package/dist/mint-components/{p-db2e4c42.js → p-221bd06e.js} +1 -1
  148. package/dist/mint-components/p-2338162a.entry.js +1 -0
  149. package/dist/mint-components/{p-73148868.system.entry.js → p-24fa8920.system.entry.js} +1 -1
  150. package/dist/mint-components/{p-e6d77d20.system.entry.js → p-29ee7d11.system.entry.js} +1 -1
  151. package/dist/mint-components/{p-e7f633b9.system.js → p-2e63dcfd.system.js} +1 -1
  152. package/dist/mint-components/{p-9d6dbb2d.entry.js → p-3143cce4.entry.js} +1 -1
  153. package/dist/mint-components/p-34112d74.entry.js +1 -0
  154. package/dist/mint-components/{p-3b97aed8.system.js → p-40e83a85.system.js} +1 -1
  155. package/dist/mint-components/{p-be2738b0.system.entry.js → p-46493de5.system.entry.js} +1 -1
  156. package/dist/mint-components/{p-1dcdca58.system.entry.js → p-4658d225.system.entry.js} +1 -1
  157. package/dist/mint-components/{p-6882070c.js → p-4b719313.js} +1 -1
  158. package/dist/mint-components/{p-29fab29b.entry.js → p-53e51b3f.entry.js} +1 -1
  159. package/dist/mint-components/p-5939212e.system.entry.js +1 -0
  160. package/dist/mint-components/{p-d35b0366.js → p-5d925bb6.js} +1 -1
  161. package/dist/mint-components/{p-c6114bfe.system.js → p-5e4e7f01.system.js} +1 -1
  162. package/dist/mint-components/{p-224504ad.js → p-61acba7a.js} +1 -1
  163. package/dist/mint-components/{p-f17050de.entry.js → p-65c79eec.entry.js} +1 -1
  164. package/dist/mint-components/p-748ad4f5.entry.js +1 -0
  165. package/dist/mint-components/{p-52802c88.entry.js → p-759d3800.entry.js} +2 -2
  166. package/dist/mint-components/{p-49cbd0a2.entry.js → p-760762d3.entry.js} +2 -2
  167. package/dist/mint-components/{p-33c5ffb7.entry.js → p-7cdbe82a.entry.js} +1 -1
  168. package/dist/mint-components/{p-223b42bd.system.entry.js → p-7ff22998.system.entry.js} +1 -1
  169. package/dist/mint-components/p-81786aa0.js +1 -0
  170. package/dist/mint-components/p-85efd952.entry.js +1 -0
  171. package/dist/mint-components/p-86255b95.entry.js +1 -0
  172. package/dist/mint-components/{p-24c9a599.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
  173. package/dist/mint-components/p-8d6bb835.system.entry.js +58 -0
  174. package/dist/mint-components/p-8ec5127e.system.entry.js +1 -0
  175. package/dist/mint-components/{p-46a4269a.js → p-8fd8682c.js} +1 -1
  176. package/dist/mint-components/{p-7300b0ae.entry.js → p-90a4bcd0.entry.js} +16 -15
  177. package/dist/mint-components/{p-412a9226.system.entry.js → p-97b946c2.system.entry.js} +1 -1
  178. package/dist/mint-components/p-9be0cb19.entry.js +1 -0
  179. package/dist/mint-components/{p-1a09e4e1.system.entry.js → p-a0a26fc5.system.entry.js} +1 -1
  180. package/dist/mint-components/{p-304e6c82.system.entry.js → p-a355eeaf.system.entry.js} +1 -1
  181. package/dist/mint-components/{p-67ae18d1.system.entry.js → p-a8246a50.system.entry.js} +1 -1
  182. package/dist/mint-components/p-a831de18.entry.js +1 -0
  183. package/dist/mint-components/p-a833dbb3.js +1 -0
  184. package/dist/mint-components/p-a88a08bb.system.js +1 -0
  185. package/dist/mint-components/{p-b8bd2607.entry.js → p-a9a6f205.entry.js} +1 -1
  186. package/dist/mint-components/{p-6e245fa3.system.entry.js → p-aee83885.system.entry.js} +1 -1
  187. package/dist/mint-components/{p-cca9026f.system.entry.js → p-b86cbac3.system.entry.js} +1 -1
  188. package/dist/mint-components/{p-07c924fa.system.js → p-be3a0cc4.system.js} +1 -1
  189. package/dist/mint-components/{p-3397167c.entry.js → p-c0f9d0b1.entry.js} +1 -1
  190. package/dist/mint-components/{p-60855d33.system.js → p-c65cfc9d.system.js} +1 -1
  191. package/dist/mint-components/{p-dc603d08.system.entry.js → p-ca40dbaa.system.entry.js} +1 -1
  192. package/dist/mint-components/{p-9c554ca0.system.js → p-cc189fc4.system.js} +1 -1
  193. package/dist/mint-components/{p-fce1dbf6.entry.js → p-cc652a53.entry.js} +1 -1
  194. package/dist/mint-components/{p-f90486ca.js → p-d19d6012.js} +15 -15
  195. package/dist/mint-components/p-d3c7dbfc.entry.js +1 -0
  196. package/dist/mint-components/{p-24b3c6f0.system.entry.js → p-d4a1bce9.system.entry.js} +1 -1
  197. package/dist/mint-components/p-d68f6b64.system.entry.js +1 -0
  198. package/dist/mint-components/p-e36ff7fa.entry.js +1 -0
  199. package/dist/mint-components/{p-723ebe45.entry.js → p-e608f340.entry.js} +2 -2
  200. package/dist/mint-components/{p-c79c608d.system.entry.js → p-e7cb4274.system.entry.js} +1 -1
  201. package/dist/mint-components/p-ee684b5f.js +1 -0
  202. package/dist/mint-components/{p-6bf0a4d9.system.entry.js → p-ef7f70f2.system.entry.js} +1 -1
  203. package/dist/mint-components/{p-396bf448.system.entry.js → p-f20d9204.system.entry.js} +1 -1
  204. package/dist/mint-components/p-f5cfc52a.entry.js +1 -0
  205. package/dist/mint-components/{p-d21e0dbd.js → p-f7f87338.js} +1 -1
  206. package/dist/mint-components/{p-cdeae699.system.js → p-f9ada3d7.system.js} +1 -1
  207. package/dist/mint-components/{p-563253e8.js → p-faf66fdb.js} +1 -1
  208. package/dist/mint-components/p-fcd03042.entry.js +1 -0
  209. package/dist/mint-components/{p-69bcf4fa.system.entry.js → p-fd281e6b.system.entry.js} +1 -1
  210. package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +1 -0
  211. package/dist/types/components/sqm-brand/sqm-brand.d.ts +6 -0
  212. package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +3 -1
  213. package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +9 -0
  214. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +23 -3
  215. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +2 -1
  216. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +14 -12
  217. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +2 -0
  218. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +85 -0
  219. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
  220. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -0
  221. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +53 -0
  222. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +16 -0
  223. package/dist/types/components.d.ts +186 -19
  224. package/dist/types/fonts/GoogleFonts.d.ts +9 -0
  225. package/grapesjs/grapesjs.js +1 -1
  226. package/package.json +1 -1
  227. package/dist/cjs/sqm-program-explainer-step-view-0e66bea1.js +0 -49
  228. package/dist/esm/sqm-program-explainer-step-view-26920cf9.js +0 -47
  229. package/dist/esm-es5/ShadowViewAddon-a3f510db.js +0 -1
  230. package/dist/esm-es5/sqm-navigation-sidebar-item-view-f2304ad9.js +0 -1
  231. package/dist/esm-es5/sqm-program-explainer-step-view-26920cf9.js +0 -1
  232. package/dist/esm-es5/useDemoBigStat-c3b955b7.js +0 -1
  233. package/dist/mint-components/p-160bd62f.entry.js +0 -1
  234. package/dist/mint-components/p-16f5a7cb.system.js +0 -1
  235. package/dist/mint-components/p-1c8b0290.entry.js +0 -1
  236. package/dist/mint-components/p-1ea0804d.js +0 -1
  237. package/dist/mint-components/p-20d41ab1.entry.js +0 -1
  238. package/dist/mint-components/p-244f3d9b.system.entry.js +0 -1
  239. package/dist/mint-components/p-3d856985.entry.js +0 -1
  240. package/dist/mint-components/p-4052b948.system.entry.js +0 -1
  241. package/dist/mint-components/p-45c752a0.entry.js +0 -1
  242. package/dist/mint-components/p-4fd17832.entry.js +0 -1
  243. package/dist/mint-components/p-5480e4ee.entry.js +0 -1
  244. package/dist/mint-components/p-8435a22d.entry.js +0 -1
  245. package/dist/mint-components/p-883a32e7.entry.js +0 -1
  246. package/dist/mint-components/p-9bda1dc4.system.entry.js +0 -1
  247. package/dist/mint-components/p-9e4fee30.system.entry.js +0 -1
  248. package/dist/mint-components/p-a2c3cff3.js +0 -1
  249. package/dist/mint-components/p-ade44a4e.entry.js +0 -1
  250. package/dist/mint-components/p-d12c666e.system.js +0 -1
  251. package/dist/mint-components/p-d174d0bc.system.entry.js +0 -1
  252. package/dist/mint-components/p-ded1509b.entry.js +0 -1
  253. package/dist/mint-components/p-f8c5f710.system.entry.js +0 -58
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h as h$1, c as Host, d as getAssetPath } from './index-17b4da69.js';
2
- import { c as createCommonjsModule, a as commonjsGlobal, m as h, j as useState, e as useEffect, f as useRef, n as d$2, y as y$1, b as browser, u as useReducer, k as useMemo } from './extends-3a3f9fe2.js';
3
- import { i as intl, a as insertCSS } from './global-90da933f.js';
2
+ import { c as createCommonjsModule, a as commonjsGlobal, m as h, e as useEffect, j as useState, f as useRef, n as d$2, y as y$1, b as browser, u as useReducer, k as useMemo } from './extends-3a3f9fe2.js';
3
+ import { i as intl, a as insertCSS } from './global-e0e25c22.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, n as ne$1, c as cn, D as De, j as j$1, a as sn, b as mn, H as He, $ as $e, S as S$1, V as Ve, M as M$1, p as pn, v as vn, x as x$1, e as D$1, Y, z as ze, A as A$1 } from './index.module-eb50a8d2.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,24 +11,38 @@ 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-cd1e8962.js';
15
+ import { u as useRerenderListener, a as useRequestRerender } from './re-render-6d5b856e.js';
17
16
  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';
17
+ import { p as pathToRegexp, B as BigStatView, u as useBigStat, a as useDemoBigStat } from './useDemoBigStat-d227b2f9.js';
18
+ import { L as LeaderboardView, u as useLeaderboard, S as ShadowViewAddon } from './ShadowViewAddon-558fabb7.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-2d8c368c.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-f1deea0f.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-2af31979.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-60cd9ae5.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
- import { P as ProgramExplainerStepView } from './sqm-program-explainer-step-view-26920cf9.js';
31
+ import { P as ProgramExplainerView } from './sqm-program-explainer-view-098a64a9.js';
32
+ import { P as ProgramExplainerStepView } from './sqm-program-explainer-step-view-41c1eecd.js';
33
+
34
+ /**
35
+ * Build a font CSS URL using the Google Fonts CSS API
36
+ *
37
+ * Docs: https://developers.google.com/fonts/docs/css2
38
+ *
39
+ * @param fonts - the font family or families to load
40
+ * @returns url to a .css file
41
+ */
42
+ function buildFontsCssUrl(...fonts) {
43
+ const queryString = fonts.map(f => `family=${encodeURIComponent(f)}`).join("&");
44
+ return `https://fonts.googleapis.com/css2?${queryString}`;
45
+ }
32
46
 
33
47
  var chroma = createCommonjsModule(function (module, exports) {
34
48
  /**
@@ -3295,24 +3309,41 @@ function makeColorScale(color) {
3295
3309
  const BrandComponent = class {
3296
3310
  constructor(hostRef) {
3297
3311
  registerInstance(this, hostRef);
3298
- /**
3299
- * Controls the primary brand color used in the Mint Components library. Note that this
3300
- * does not affect vanilla components or other component libraries.
3301
- *
3302
- * @uiName Brand Color
3303
- */
3304
- this.brandColor = "#0000FF";
3305
3312
  h(this);
3306
3313
  }
3307
3314
  disconnectedCallback() { }
3308
3315
  render() {
3309
- const css = autoColorScaleCss(this.brandColor);
3316
+ var _a, _b;
3317
+ const brandColor = (_a = this.brandColor) !== null && _a !== void 0 ? _a : "inherit";
3318
+ const css = autoColorScaleCss(brandColor);
3319
+ const sanitizedFont = ((_b = this.brandFont) !== null && _b !== void 0 ? _b : "").trim() || undefined;
3320
+ useEffect(() => {
3321
+ if (!sanitizedFont) {
3322
+ // Nothing required in default case.
3323
+ return;
3324
+ }
3325
+ const sheet = document.createElement("link");
3326
+ sheet.setAttribute("href", buildFontsCssUrl(sanitizedFont));
3327
+ sheet.setAttribute("rel", "stylesheet");
3328
+ document.head.appendChild(sheet);
3329
+ return () => document.head.removeChild(sheet);
3330
+ }, [sanitizedFont]);
3331
+ const font = sanitizedFont !== null && sanitizedFont !== void 0 ? sanitizedFont : "inherit";
3310
3332
  return (h$1(Host, null, h$1("style", null, `
3311
3333
  :host{
3312
3334
  display: contents;
3313
3335
  }
3314
- /* Selects any element placed inside a slot */
3336
+ /*
3337
+ Selects any element placed inside a slot
3338
+ - resets css variable inheritence for fonts
3339
+
3340
+ */
3315
3341
  ::slotted(*) {
3342
+ --sl-font-sans: "${font}", arial;
3343
+ --sl-input-font-family: "${font}", arial;
3344
+ --sl-tooltip-font-family: "${font}", arial;
3345
+ font-family: "${font}", arial;
3346
+
3316
3347
  ${css}
3317
3348
  }`), h$1("slot", null)));
3318
3349
  }
@@ -3483,13 +3514,13 @@ const defaultFormState = {
3483
3514
  error: "",
3484
3515
  };
3485
3516
  function useEditProfile(props) {
3486
- const userIdent = T$1();
3517
+ const userIdent = ne$1();
3487
3518
  const [showEdit, setShowEdit] = useState(false);
3488
3519
  const [error, setError] = useState("");
3489
3520
  const [userData, setUserData] = useState(undefined);
3490
3521
  const [formState, setFormState] = useState(defaultFormState);
3491
- const userDataResponse = en(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
3492
- const [upsertUser, upsertUserResponse] = be(UPSERT_USER);
3522
+ const userDataResponse = cn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
3523
+ const [upsertUser, upsertUserResponse] = De(UPSERT_USER);
3493
3524
  useEffect(() => {
3494
3525
  if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
3495
3526
  return;
@@ -3715,12 +3746,12 @@ function NavigationMenuView(props) {
3715
3746
  }
3716
3747
 
3717
3748
  function handleMenu(e) {
3718
- rn.push(e.detail.item.value);
3749
+ mn.push(e.detail.item.value);
3719
3750
  }
3720
3751
  function useNavigationMenu(props) {
3721
3752
  const ref = useRef();
3722
- const [, rerender] = Ze();
3723
- const user = T$1();
3753
+ const [, rerender] = sn();
3754
+ const user = ne$1();
3724
3755
  useEffect(() => {
3725
3756
  var _a;
3726
3757
  (_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
@@ -4414,11 +4445,11 @@ function PortalChangePasswordView(props) {
4414
4445
 
4415
4446
  function usePortalChangePassword(props) {
4416
4447
  var _a, _b, _c, _d;
4417
- const [request, { loading, errors, data }] = De();
4448
+ const [request, { loading, errors, data }] = He();
4418
4449
  const [open, setOpen] = useState(false);
4419
4450
  const [error, setError] = useState("");
4420
4451
  const [success, setSuccess] = useState(false);
4421
- const user = T$1();
4452
+ const user = ne$1();
4422
4453
  const submit = async (event) => {
4423
4454
  var _a;
4424
4455
  setSuccess(false);
@@ -4593,7 +4624,7 @@ function PortalFrameView(props, children) {
4593
4624
  }
4594
4625
 
4595
4626
  function usePortalFrame(footerContent, headerContent) {
4596
- const [, rerender] = Ze();
4627
+ const [, rerender] = sn();
4597
4628
  return {
4598
4629
  data: {
4599
4630
  footer: footerContent,
@@ -4681,7 +4712,7 @@ function PortalLoginView(props) {
4681
4712
 
4682
4713
  function usePortalLogin({ nextPage }) {
4683
4714
  var _a, _b, _c, _d;
4684
- const [request, { loading, errors, data }] = qe();
4715
+ const [request, { loading, errors, data }] = $e();
4685
4716
  const [error, setError] = useState("");
4686
4717
  const urlParams = new URLSearchParams(window.location.search);
4687
4718
  const nextPageOverride = urlParams.get("nextPage");
@@ -4698,7 +4729,7 @@ function usePortalLogin({ nextPage }) {
4698
4729
  var _a;
4699
4730
  if ((_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
4700
4731
  urlParams.delete("nextPage");
4701
- rn.push({
4732
+ mn.push({
4702
4733
  pathname: nextPageOverride || nextPage,
4703
4734
  search: urlParams.toString() && "?" + urlParams.toString(),
4704
4735
  });
@@ -4762,8 +4793,8 @@ const PortalLogin = class {
4762
4793
  ? useLoginDemo(this)
4763
4794
  : usePortalLogin(this);
4764
4795
  const content = {
4765
- forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => rn.push("/forgotPassword") }, this.forgotPasswordLabel))),
4766
- secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => rn.push("/register") }, this.registerLabel))),
4796
+ forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => mn.push("/forgotPassword") }, this.forgotPasswordLabel))),
4797
+ secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => mn.push("/register") }, this.registerLabel))),
4767
4798
  emailLabel: this.emailLabel,
4768
4799
  passwordLabel: this.passwordLabel,
4769
4800
  submitLabel: this.submitLabel,
@@ -4856,7 +4887,7 @@ function PortalRegisterView(props) {
4856
4887
 
4857
4888
  const CONTEXT_NAME$1 = "sq:validation-state";
4858
4889
  function useValidationState(formState) {
4859
- const host = P$1();
4890
+ const host = S$1();
4860
4891
  const [validationState, setValidationState] = y$1(host, CONTEXT_NAME$1, formState);
4861
4892
  return { validationState, setValidationState };
4862
4893
  }
@@ -8736,7 +8767,7 @@ function usePortalRegister(props) {
8736
8767
  var _a, _b, _c, _d, _e, _f;
8737
8768
  const formRef = useRef(null);
8738
8769
  const { validationState, setValidationState } = useValidationState({});
8739
- const [request, { loading, errors, data }] = Ee();
8770
+ const [request, { loading, errors, data }] = Ve();
8740
8771
  const submit = async (event) => {
8741
8772
  let formControls = event.target.getFormControls();
8742
8773
  let formData = {};
@@ -8799,7 +8830,7 @@ function usePortalRegister(props) {
8799
8830
  useEffect(() => {
8800
8831
  var _a;
8801
8832
  if ((_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
8802
- rn.push(props.nextPage);
8833
+ mn.push(props.nextPage);
8803
8834
  }
8804
8835
  }, [(_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
8805
8836
  useEffect(() => {
@@ -8893,7 +8924,7 @@ const PortalRegister = class {
8893
8924
  : usePortalRegister(this);
8894
8925
  const content = {
8895
8926
  formData: h$1("slot", { name: "formData" }),
8896
- secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => rn.push("/login") }, this.loginLabel))),
8927
+ secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => mn.push("/login") }, this.loginLabel))),
8897
8928
  emailLabel: this.emailLabel,
8898
8929
  passwordLabel: this.passwordLabel,
8899
8930
  submitLabel: this.submitLabel,
@@ -8928,10 +8959,10 @@ const debug = browser('sq:useProgramMenu');
8928
8959
  const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
8929
8960
  function useProgramMenu(props) {
8930
8961
  const programId = M$1();
8931
- const host = P$1();
8962
+ const host = S$1();
8932
8963
  debug({ programId, props });
8933
8964
  const ref = useRef();
8934
- const [, rerender] = Ze();
8965
+ const [, rerender] = sn();
8935
8966
  useEffect(() => {
8936
8967
  var _a;
8937
8968
  (_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
@@ -8980,8 +9011,8 @@ const GET_USER_DETAILS = dist.gql `
8980
9011
  function useReferralIframe(props) {
8981
9012
  var _a;
8982
9013
  const programId = M$1();
8983
- const user = T$1();
8984
- const { data } = en(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
9014
+ const user = ne$1();
9015
+ const { data } = cn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
8985
9016
  return {
8986
9017
  states: {
8987
9018
  content: props,
@@ -9045,7 +9076,7 @@ const styleString$5 = sheet$5.toString();
9045
9076
  function RequiredPropsError({ missingProps }) {
9046
9077
  if (!missingProps)
9047
9078
  return false;
9048
- const host = P$1();
9079
+ const host = S$1();
9049
9080
  const [detailsOpen, setDetailsOpen] = useState(false);
9050
9081
  return (h$1("sl-alert", { type: "danger", open: true, class: sheet$5.classes.Alert },
9051
9082
  h$1("style", { type: "text/css" }, styleString$5),
@@ -9162,7 +9193,7 @@ function ReferralTableView(props) {
9162
9193
  }
9163
9194
 
9164
9195
  function useChildElements() {
9165
- const host = P$1();
9196
+ const host = S$1();
9166
9197
  const initialState = host.children.length ? Array.from(host.children) : [];
9167
9198
  const [childElements, setChildElements] = useState(initialState);
9168
9199
  useEffect(() => {
@@ -9335,7 +9366,7 @@ const GET_REFERRAL_DATA = gql `
9335
9366
  `;
9336
9367
  function useReferralTable(props, emptyElement, loadingElement) {
9337
9368
  var _a, _b;
9338
- const user = T$1();
9369
+ const user = ne$1();
9339
9370
  const programIdContext = M$1();
9340
9371
  // Default to context, overriden by props
9341
9372
  const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
@@ -9358,13 +9389,13 @@ function useReferralTable(props, emptyElement, loadingElement) {
9358
9389
  loading: false,
9359
9390
  page: 0,
9360
9391
  });
9361
- const { data: referrerResponse, loading: referrerLoading, refetch, } = en(GET_REFERRER_DATA, {
9392
+ const { data: referrerResponse, loading: referrerLoading, refetch, } = cn(GET_REFERRER_DATA, {
9362
9393
  programId: programId === "classic" ? null : programId,
9363
9394
  rewardFilter,
9364
9395
  }, !props.showReferrer || !(user === null || user === void 0 ? void 0 : user.jwt));
9365
9396
  const referrerData = (_b = referrerResponse === null || referrerResponse === void 0 ? void 0 : referrerResponse.viewer) === null || _b === void 0 ? void 0 : _b.referredByReferral;
9366
9397
  const showReferrerRow = props.showReferrer && !!(referrerData === null || referrerData === void 0 ? void 0 : referrerData.dateReferralStarted);
9367
- const { envelope: referralData, states, callbacks, } = sn(GET_REFERRAL_DATA, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.referrals; }, {
9398
+ const { envelope: referralData, states, callbacks, } = pn(GET_REFERRAL_DATA, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.referrals; }, {
9368
9399
  limit: props.perPage,
9369
9400
  offset: 0,
9370
9401
  }, {
@@ -18034,6 +18065,7 @@ const ReferralTableUserCell = class {
18034
18065
  }
18035
18066
  };
18036
18067
 
18068
+ // TODO: add rewardInput once it works
18037
18069
  const GET_EXCHANGE_LIST = dist.gql `
18038
18070
  query getExchangeList {
18039
18071
  viewer {
@@ -18069,6 +18101,7 @@ const GET_EXCHANGE_LIST = dist.gql `
18069
18101
  available
18070
18102
  globalRewardKey
18071
18103
  unavailableReasonCode
18104
+ rewardInput
18072
18105
  }
18073
18106
  }
18074
18107
  totalCount
@@ -18099,10 +18132,11 @@ function useRewardExchangeList(props) {
18099
18132
  amount: 0,
18100
18133
  exchangeError: false,
18101
18134
  });
18135
+ const [open, setOpen] = useState(false);
18102
18136
  const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
18103
- const user = T$1();
18104
- const [exchange, { data: exchangeResponse, errors }] = be(EXCHANGE);
18105
- const { data, loading, refetch } = en(GET_EXCHANGE_LIST, !(user === null || user === void 0 ? void 0 : user.jwt));
18137
+ const user = ne$1();
18138
+ const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = De(EXCHANGE);
18139
+ const { data, loading, refetch, errors: queryError, } = cn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
18106
18140
  useEffect(() => {
18107
18141
  var _a, _b;
18108
18142
  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) {
@@ -18148,9 +18182,7 @@ function useRewardExchangeList(props) {
18148
18182
  unit: selectedItem.sourceUnit,
18149
18183
  },
18150
18184
  globalRewardKey: selectedItem.globalRewardKey,
18151
- rewardInput: {
18152
- valueInCents: selectedStep.destinationValue,
18153
- },
18185
+ rewardInput: selectedStep.rewardInput,
18154
18186
  };
18155
18187
  break;
18156
18188
  case "VARIABLE_CREDIT_REWARD":
@@ -18170,11 +18202,7 @@ function useRewardExchangeList(props) {
18170
18202
  default:
18171
18203
  exchangeVariables = {
18172
18204
  ...exchangeVariables,
18173
- redeemCreditInput: {
18174
- amount: selectedItem.sourceValue,
18175
- unit: selectedItem.sourceUnit,
18176
- },
18177
- globalRewardKey: selectedItem.globalRewardKey,
18205
+ ...selectedStep.rewardInput,
18178
18206
  };
18179
18207
  }
18180
18208
  exchange({ exchangeRewardInput: exchangeVariables });
@@ -18192,6 +18220,14 @@ function useRewardExchangeList(props) {
18192
18220
  function setStage(stage) {
18193
18221
  setExchangeState({ redeemStage: stage });
18194
18222
  }
18223
+ function copyFuelTankCode() {
18224
+ var _a, _b;
18225
+ // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
18226
+ // Only if called from a user-initiated event
18227
+ navigator.clipboard.writeText((_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.fuelTankCode);
18228
+ setOpen(true);
18229
+ setTimeout(() => setOpen(false), 1000);
18230
+ }
18195
18231
  return {
18196
18232
  states: {
18197
18233
  content: {
@@ -18202,7 +18238,9 @@ function useRewardExchangeList(props) {
18202
18238
  amount,
18203
18239
  selectedStep,
18204
18240
  exchangeError,
18205
- loading,
18241
+ queryError: !!queryError,
18242
+ loading: loading || exchangeLoading,
18243
+ open,
18206
18244
  },
18207
18245
  data: {
18208
18246
  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,
@@ -18213,6 +18251,7 @@ function useRewardExchangeList(props) {
18213
18251
  setExchangeState,
18214
18252
  setStage,
18215
18253
  resetState,
18254
+ copyFuelTankCode,
18216
18255
  },
18217
18256
  };
18218
18257
  }
@@ -18221,6 +18260,9 @@ const ExchangeArrows = () => (h$1("svg", { width: 19, height: 15, fill: "none",
18221
18260
  h$1("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.125 14.783a.6.6 0 0 1-.851 0l-3.9-3.923a.6.6 0 1 1 .85-.846L4.1 12.905V1.52a.6.6 0 0 1 1.2 0v11.385l2.875-2.891a.6.6 0 1 1 .85.846l-3.9 3.923Zm9.6-13.686a.6.6 0 0 0-.851 0l-3.9 3.923a.6.6 0 0 0 .85.846L13.7 2.975V14.36a.6.6 0 1 0 1.2 0V2.975l2.875 2.891a.6.6 0 1 0 .85-.846l-3.9-3.923Z", fill: "#333" })));
18222
18261
  const CheckMark = () => (h$1("svg", { width: 12, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
18223
18262
  h$1("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.58.23c.475.371.56 1.057.19 1.532L5.69 9.554a1.091 1.091 0 0 1-1.631.1L.32 5.915a1.09 1.09 0 1 1 1.542-1.542L4.73 7.239 10.049.42A1.09 1.09 0 0 1 11.58.23Z", fill: "#fff" })));
18263
+ const CheckmarkFilled = () => (h$1("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
18264
+ h$1("path", { d: "M0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9Z", fill: "currentColor" }),
18265
+ h$1("path", { d: "M5.68394 8.77046C5.28103 8.39273 4.64819 8.41315 4.27046 8.81606C3.89273 9.21897 3.91315 9.85181 4.31606 10.2295L5.68394 8.77046ZM7.66667 12L6.98273 12.7295C7.36738 13.0902 7.96595 13.0902 8.35061 12.7295L7.66667 12ZM13.6839 7.72954C14.0869 7.35181 14.1073 6.71897 13.7295 6.31606C13.3518 5.91315 12.719 5.89273 12.3161 6.27046L13.6839 7.72954ZM4.31606 10.2295L6.98273 12.7295L8.35061 11.2705L5.68394 8.77046L4.31606 10.2295ZM8.35061 12.7295L13.6839 7.72954L12.3161 6.27046L6.98273 11.2705L8.35061 12.7295Z", fill: "white" })));
18224
18266
  const Gift = () => (h$1("svg", { width: 156, height: 157, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
18225
18267
  h$1("path", { d: "M40.18 126h83.663a3 3 0 0 0 3-3V73.966a3 3 0 0 0-3-3H40.18a3 3 0 0 0-3 3V123a3 3 0 0 0 3 3Z", fill: "#FFD34F" }),
18226
18268
  h$1("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M37.18 73.862v7.966h89.663v-7.966H37.18Z", fill: "#E9BB30" }),
@@ -18303,12 +18345,14 @@ function ProgressBar({ stageCount, currentStage, }) {
18303
18345
  }
18304
18346
 
18305
18347
  const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
18306
- const stageProgressList = {
18307
- chooseReward: "Choose reward",
18308
- chooseAmount: "Amount",
18309
- confirmation: "Confirm",
18310
- };
18311
18348
  function RewardExchangeView(props) {
18349
+ const { states, data, callbacks } = props;
18350
+ const { selectedItem, selectedStep } = states;
18351
+ const stageProgressList = {
18352
+ chooseReward: states.content.text.chooseRewardTitle,
18353
+ chooseAmount: states.content.text.chooseAmountTitle,
18354
+ confirmation: states.content.text.confirmationTitle,
18355
+ };
18312
18356
  const style = {
18313
18357
  HostBlock: HostBlock,
18314
18358
  Container: {
@@ -18372,17 +18416,6 @@ function RewardExchangeView(props) {
18372
18416
  color: "var(--sl-color-primary-500)",
18373
18417
  },
18374
18418
  },
18375
- Buttons: {
18376
- marginLeft: "auto",
18377
- width: "100%",
18378
- maxWidth: "300px",
18379
- },
18380
- Button: {
18381
- margin: "10px 0",
18382
- display: "block",
18383
- textAlign: "center",
18384
- cursor: "pointer",
18385
- },
18386
18419
  ProgressBar: {
18387
18420
  maxWidth: "350px",
18388
18421
  width: "100%",
@@ -18404,7 +18437,13 @@ function RewardExchangeView(props) {
18404
18437
  },
18405
18438
  },
18406
18439
  },
18407
- KutayCard: {
18440
+ CardLayout: {
18441
+ display: "flex",
18442
+ width: "100%",
18443
+ borderRadius: "3px",
18444
+ background: "rgba(0, 0, 0, 0)",
18445
+ },
18446
+ Card: {
18408
18447
  display: "flex",
18409
18448
  userSelect: "none",
18410
18449
  height: "120px",
@@ -18416,21 +18455,12 @@ function RewardExchangeView(props) {
18416
18455
  display: "flex",
18417
18456
  padding: 0,
18418
18457
  },
18419
- "& .selected-outline": {
18420
- width: "18px",
18421
- height: "18px",
18422
- minWidth: "18px",
18423
- borderRadius: "50%",
18424
- background: "var(--sl-color-primary-500)",
18458
+ "& .selected": {
18425
18459
  position: "relative",
18426
- margin: "-9px",
18460
+ top: "-2%",
18427
18461
  left: "100%",
18428
- },
18429
- "& .selected-checkmark": {
18430
- position: "relative",
18431
- left: "12%",
18432
- top: "-29%",
18433
- transform: "scale(0.8)",
18462
+ color: "var(--sl-color-primary-500)",
18463
+ margin: "-9px",
18434
18464
  },
18435
18465
  },
18436
18466
  Square: {
@@ -18449,14 +18479,18 @@ function RewardExchangeView(props) {
18449
18479
  },
18450
18480
  },
18451
18481
  Image: {
18482
+ padding: "8px",
18483
+ minWidth: "96px",
18484
+ maxWidth: "96px",
18452
18485
  "& .image": {
18486
+ width: "100%",
18487
+ height: "100%",
18453
18488
  objectFit: "contain",
18454
- width: "120px",
18455
- height: "118px",
18456
- flex: 0.33,
18489
+ borderRadius: "4px",
18457
18490
  },
18458
- "& .image.black": {
18459
- filter: "brightness(20%)",
18491
+ "& .image.subdued": {
18492
+ filter: "brightness(0.95)",
18493
+ opacity: "0.5",
18460
18494
  },
18461
18495
  },
18462
18496
  TextArea: {
@@ -18467,12 +18501,20 @@ function RewardExchangeView(props) {
18467
18501
  lineHeight: "20px",
18468
18502
  fontWeight: "600",
18469
18503
  color: "var(--sl-color-neutral-1000)",
18504
+ display: "-webkit-box",
18505
+ "-webkit-line-clamp": "1",
18506
+ "-webkit-box-orient": "vertical",
18507
+ overflow: "hidden",
18470
18508
  },
18471
18509
  "& .amount": {
18472
18510
  fontSize: "14px",
18473
18511
  lineHeight: "18px",
18474
18512
  marginTop: "8px",
18475
18513
  color: "var(--sl-color-neutral-500)",
18514
+ display: "-webkit-box",
18515
+ "-webkit-line-clamp": "1",
18516
+ "-webkit-box-orient": "vertical",
18517
+ overflow: "hidden",
18476
18518
  },
18477
18519
  "& .error": {
18478
18520
  fontSize: "14px",
@@ -18480,6 +18522,10 @@ function RewardExchangeView(props) {
18480
18522
  marginTop: "8px",
18481
18523
  fontWeight: "600",
18482
18524
  color: "var(--sl-color-warning-500)",
18525
+ display: "-webkit-box",
18526
+ "-webkit-line-clamp": "1",
18527
+ "-webkit-box-orient": "vertical",
18528
+ overflow: "hidden",
18483
18529
  },
18484
18530
  },
18485
18531
  ChooseAmount: {
@@ -18494,7 +18540,7 @@ function RewardExchangeView(props) {
18494
18540
  //fontSize: "var(--sl-font-size-large)",
18495
18541
  fontSize: "113%",
18496
18542
  fontWeight: "var(--sl-font-weight-semibold)",
18497
- color: "var(--sl-color-sky-500)",
18543
+ color: "var(--sl-color-primary-500)",
18498
18544
  },
18499
18545
  "& .description": {
18500
18546
  fontSize: "var(--sl-font-size-medium)",
@@ -18531,7 +18577,7 @@ function RewardExchangeView(props) {
18531
18577
  gap: "20px",
18532
18578
  gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
18533
18579
  },
18534
- KutayButton: {
18580
+ Button: {
18535
18581
  display: "flex",
18536
18582
  flexWrap: "wrap-reverse",
18537
18583
  margin: "var(--sl-spacing-medium) 0",
@@ -18570,18 +18616,18 @@ function RewardExchangeView(props) {
18570
18616
  jss.setup(create());
18571
18617
  const sheet = jss.createStyleSheet(style);
18572
18618
  const styleString = sheet.toString();
18573
- const { states, data, callbacks } = props;
18574
- const { selectedItem, selectedStep } = states;
18575
18619
  function getInput() {
18576
18620
  var _a, _b;
18577
18621
  const item = states.selectedItem;
18578
18622
  if (!item || (item === null || item === void 0 ? void 0 : item.ruleType) === "FIXED_GLOBAL_REWARD")
18579
18623
  return h$1("span", null, item === null || item === void 0 ? void 0 : item.prettySourceValue);
18580
18624
  if (!((_a = item.steps) === null || _a === void 0 ? void 0 : _a.length)) {
18581
- return h$1("p", null,
18582
- "Not enough ",
18583
- item.sourceUnit,
18584
- " to redeem for this reward.");
18625
+ return (h$1("p", null, intl.formatMessage({
18626
+ id: "notEnoughError",
18627
+ defaultMessage: states.content.text.notEnoughError,
18628
+ }, {
18629
+ sourceUnit: item.sourceUnit,
18630
+ })));
18585
18631
  }
18586
18632
  return (h$1("sl-select", { style: { width: "auto" }, label: "Select amount to receive", class: sheet.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
18587
18633
  var _a, _b, _c, _d, _e;
@@ -18600,6 +18646,8 @@ function RewardExchangeView(props) {
18600
18646
  defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
18601
18647
  }, {
18602
18648
  unavailableReason: step.unavailableReasonCode,
18649
+ sourceUnit: item.sourceUnit,
18650
+ sourceValue: step.prettySourceValue || item.prettySourceMinValue,
18603
18651
  }))))));
18604
18652
  })));
18605
18653
  }
@@ -18607,57 +18655,71 @@ function RewardExchangeView(props) {
18607
18655
  var _a;
18608
18656
  return [
18609
18657
  h$1("div", { class: sheet.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
18610
- var _a, _b;
18658
+ var _a, _b, _c, _d, _e;
18611
18659
  const style = {
18612
18660
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
18613
18661
  ? "0 0 0 2px var(--sl-color-primary-500)"
18614
18662
  : "none",
18663
+ borderRadius: "4px",
18615
18664
  };
18616
18665
  const amount = item.ruleType === "FIXED_GLOBAL_REWARD"
18617
18666
  ? item.prettySourceValue
18618
- : item.prettySourceMinValue && item.prettySourceMaxValue
18619
- ? `${item.prettySourceMinValue} to ${item.prettySourceMaxValue}`
18620
- : "";
18667
+ : item.ruleType === "STEPPED_FIXED_GLOBAL_REWARD"
18668
+ ? `${(_a = item.steps[0]) === null || _a === void 0 ? void 0 : _a.sourceValue} to ${(_b = item.steps.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.prettySourceValue}`
18669
+ : `${item.prettySourceMinValue} to ${item.prettySourceMaxValue}`;
18621
18670
  return (h$1("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
18622
- h$1("sl-card", { class: sheet.classes.KutayCard, style: {
18671
+ h$1("sl-card", { class: sheet.classes.Card, style: {
18623
18672
  cursor: item.unavailableReasonCode
18624
18673
  ? "not-allowed"
18625
18674
  : "pointer",
18626
18675
  }, onClick: () => item.available &&
18627
18676
  callbacks.setExchangeState({ selectedItem: item }) },
18628
- item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (h$1("div", { class: "selected-outline" },
18629
- h$1("div", { class: "selected-checkmark" },
18630
- h$1(CheckMark, null)))),
18677
+ item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (h$1("div", { class: "selected" },
18678
+ h$1(CheckmarkFilled, null))),
18631
18679
  h$1("div", { style: {
18632
18680
  display: "flex",
18633
18681
  width: "100%",
18682
+ height: "120px",
18634
18683
  borderRadius: "3px",
18635
18684
  background: item.unavailableReasonCode
18636
18685
  ? "rgba(0, 0, 0, 0.05)"
18637
18686
  : "rgba(0, 0, 0, 0)",
18638
18687
  } },
18639
- h$1("div", { class: sheet.classes.Square },
18688
+ h$1("div", { class: sheet.classes.Image, style: {
18689
+ opacity: item.unavailableReasonCode ? "0.5" : "1",
18690
+ } },
18640
18691
  h$1("img", { class: item.unavailableReasonCode ? "image subdued" : "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
18641
18692
  getAssetPath("./assets/placeholder.png") })),
18642
18693
  h$1("div", { class: sheet.classes.TextArea, style: {
18643
18694
  opacity: item.unavailableReasonCode ? "0.5" : "1",
18644
18695
  } },
18645
- h$1("div", { class: "title" }, item.name),
18646
- h$1("div", { class: "amount" }, amount),
18696
+ h$1("div", { class: "title", style: {
18697
+ "-webkit-line-clamp": item.unavailableReasonCode
18698
+ ? "1"
18699
+ : "2",
18700
+ } }, (_c = item.name) !== null && _c !== void 0 ? _c : ""),
18701
+ h$1("div", { class: "amount", style: {
18702
+ "-webkit-line-clamp": item.unavailableReasonCode
18703
+ ? "1"
18704
+ : "2",
18705
+ } }, amount),
18647
18706
  item.unavailableReasonCode && (h$1("div", { class: "error" }, intl.formatMessage({
18648
18707
  id: "unavailableCode",
18649
- defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
18708
+ defaultMessage: (_e = (_d = states.content) === null || _d === void 0 ? void 0 : _d.text) === null || _e === void 0 ? void 0 : _e.notAvailableError,
18650
18709
  }, {
18651
18710
  unavailableReason: item.unavailableReason ||
18652
18711
  item.unavailableReasonCode,
18712
+ sourceUnit: item.sourceUnit,
18713
+ sourceValue: item.prettySourceValue ||
18714
+ item.prettySourceMinValue,
18653
18715
  }))))))));
18654
18716
  })),
18655
- h$1("div", { class: sheet.classes.KutayButton },
18656
- h$1("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), disabled: !states.selectedItem }, "Continue")),
18717
+ h$1("div", { class: sheet.classes.Button },
18718
+ h$1("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText)),
18657
18719
  ];
18658
18720
  }
18659
18721
  function chooseAmount() {
18660
- var _a, _b, _c;
18722
+ var _a, _b, _c, _d;
18661
18723
  const input = getInput();
18662
18724
  const isDisabled = ((_a = states.selectedItem) === null || _a === void 0 ? void 0 : _a.ruleType) === "FIXED_GLOBAL_REWARD"
18663
18725
  ? false
@@ -18666,17 +18728,18 @@ function RewardExchangeView(props) {
18666
18728
  h$1("div", null, h$1("img", { class: sheet.classes.FullImage, src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
18667
18729
  getAssetPath("./assets/placeholder.png") })),
18668
18730
  h$1("div", { class: sheet.classes.ChooseAmount },
18669
- h$1("div", { class: "title" }, (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || ""),
18670
- ((_b = states.selectedItem) === null || _b === void 0 ? void 0 : _b.ruleType) === "FIXED_GLOBAL_REWARD" ? (h$1("div", { class: "points" }, input)) : (h$1("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
18671
- ((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (h$1("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (h$1("div", { class: "points" }, input)),
18731
+ h$1("div", { class: "title" }, (_b = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) !== null && _b !== void 0 ? _b : ""),
18732
+ ((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (h$1("div", { class: "points" }, input)) : (h$1("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
18733
+ ((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (h$1("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (h$1("div", { class: "points" }, input)),
18672
18734
  h$1("div", { class: "space" })),
18673
- h$1("div", { class: sheet.classes.KutayButton },
18674
- h$1("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, "Cancel"),
18675
- h$1("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, "Continue to confirmation"))));
18735
+ h$1("div", { class: sheet.classes.Button },
18736
+ h$1("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
18737
+ h$1("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText))));
18676
18738
  }
18677
18739
  function confirmation() {
18740
+ var _a, _b;
18678
18741
  return (h$1("div", null,
18679
- h$1("h2", { style: { margin: "20px 0" } }, "Confirm and redeem"),
18742
+ h$1("h2", { style: { margin: "20px 0" } }, states.content.text.redeemTitle),
18680
18743
  h$1("div", { style: {
18681
18744
  textAlign: "center",
18682
18745
  marginBottom: "var(--sl-spacing-xxx-large)",
@@ -18691,27 +18754,39 @@ function RewardExchangeView(props) {
18691
18754
  flex: "1",
18692
18755
  minWidth: "100%",
18693
18756
  } },
18694
- h$1("sl-card", { style: { width: "auto", maxWidth: "350px", margin: "auto" }, class: sheet.classes.KutayCard },
18757
+ h$1("sl-card", { style: { width: "auto", maxWidth: "350px", margin: "auto" }, class: sheet.classes.Card },
18695
18758
  h$1("div", { class: sheet.classes.Square },
18696
18759
  h$1("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
18697
18760
  getAssetPath("./assets/placeholder.png") })),
18698
18761
  h$1("div", { class: sheet.classes.TextArea, style: {
18699
18762
  lineHeight: "18px",
18700
18763
  alignSelf: "center",
18701
- } }, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) ? (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) +
18702
- " " + (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || ""
18703
- : (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || "")))),
18704
- h$1("div", { class: sheet.classes.KutayButton },
18705
- h$1("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, "Back"),
18706
- h$1("sl-button", { class: "continue", size: "large", onClick: callbacks.exchangeReward }, "Redeem"))));
18764
+ } }, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) ? (_a = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) +
18765
+ " " + (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name)) !== null && _a !== void 0 ? _a : "" : (_b = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) !== null && _b !== void 0 ? _b : "")))),
18766
+ h$1("div", { class: sheet.classes.Button },
18767
+ h$1("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
18768
+ h$1("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText))));
18707
18769
  }
18708
18770
  function success() {
18771
+ var _a, _b, _c;
18709
18772
  return (h$1("div", { class: sheet.classes.Success },
18710
18773
  h$1(Gift, null),
18711
- h$1("div", { class: "title" }, "Reward Redeemed"),
18712
- h$1("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description),
18713
- h$1("div", { class: sheet.classes.KutayButton },
18714
- h$1("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, "Done"))));
18774
+ h$1("div", { class: "title" }, states.content.text.rewardRedeemedText),
18775
+ h$1("div", { class: "description" }, intl.formatMessage({
18776
+ id: "successMessage",
18777
+ defaultMessage: states.content.text.redemptionSuccessText,
18778
+ }, {
18779
+ sourceValue: (_a = states.selectedItem.prettySourceValue) !== null && _a !== void 0 ? _a : (_b = states.selectedStep) === null || _b === void 0 ? void 0 : _b.prettySourceValue,
18780
+ destinationValue: ((_c = states.selectedStep) === null || _c === void 0 ? void 0 : _c.prettyDestinationValue) ||
18781
+ states.selectedItem.globalRewardKey,
18782
+ })),
18783
+ (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h$1("div", { style: {
18784
+ width: "40%",
18785
+ margin: "-30px auto var(--sl-spacing-xxx-large) auto",
18786
+ } },
18787
+ h$1(ShareLinkView, { shareString: data.fuelTankCode, tooltiptext: "Copied", open: states.open, onClick: callbacks.copyFuelTankCode }))),
18788
+ h$1("div", { class: sheet.classes.Button },
18789
+ h$1("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
18715
18790
  }
18716
18791
  const stages = {
18717
18792
  chooseReward: () => chooseReward(),
@@ -18734,26 +18809,40 @@ function RewardExchangeView(props) {
18734
18809
  h$1(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
18735
18810
  }
18736
18811
  function loading() {
18737
- return (h$1("div", { style: {
18738
- display: "flex",
18739
- height: "400px",
18740
- alignItems: "center",
18741
- justifyContent: "center",
18742
- } },
18743
- h$1("div", { style: { transform: "scale(5)" } },
18744
- h$1("sl-spinner", null))));
18812
+ return (h$1("div", { class: sheet.classes.Grid }, [...Array(8)].map(() => {
18813
+ return (h$1("div", { class: sheet.classes.CardContainer },
18814
+ h$1("sl-card", { class: sheet.classes.Card },
18815
+ h$1("div", { class: sheet.classes.CardLayout },
18816
+ h$1("div", null,
18817
+ h$1("sl-skeleton", { style: {
18818
+ width: "100px",
18819
+ height: "100px",
18820
+ margin: "9px",
18821
+ "--border-radius": "4px",
18822
+ } })),
18823
+ h$1("div", { style: { margin: "12px 12px 0 0", width: "100%" } },
18824
+ h$1("sl-skeleton", { style: { marginBottom: "12px" } }),
18825
+ h$1("sl-skeleton", { style: { marginBottom: "12px" } }),
18826
+ h$1("sl-skeleton", { style: { width: "45%" } }))))));
18827
+ })));
18745
18828
  }
18746
18829
  function errorMessage() {
18747
18830
  return (h$1("sl-alert", { type: "danger", open: true },
18748
18831
  h$1("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
18749
- "An error occured trying to redeem this reward. Please try again."));
18832
+ states.content.text.redemptionError));
18833
+ }
18834
+ function queryErrorMessage() {
18835
+ return (h$1("sl-alert", { type: "danger", open: true },
18836
+ h$1("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
18837
+ states.content.text.queryError));
18750
18838
  }
18751
18839
  return (h$1("div", { class: sheet.classes.Container },
18752
18840
  h$1("style", { type: "text/css" }, styleString),
18753
18841
  h$1("div", null,
18754
18842
  stageMap(),
18755
- states.loading && loading(),
18843
+ states.redeemStage === "chooseReward" && states.loading && loading(),
18756
18844
  states.exchangeError && errorMessage(),
18845
+ states.queryError && queryErrorMessage(),
18757
18846
  currentStage && currentStage())));
18758
18847
  }
18759
18848
 
@@ -18768,7 +18857,60 @@ const SqmRewardExchangeList = class {
18768
18857
  /**
18769
18858
  * @uiName Exchange button text
18770
18859
  */
18771
- this.notAvailableError = "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {Not enough points} other {Not available} }";
18860
+ this.notAvailableError = "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} other {Not available} }";
18861
+ /**
18862
+ * @uiName Choose Reward Progress Title
18863
+ */
18864
+ this.chooseRewardTitle = "Choose reward";
18865
+ /**
18866
+ * @uiName Choose Amount Progress Title
18867
+ */
18868
+ this.chooseAmountTitle = "Amount";
18869
+ /**
18870
+ * @uiName Confirmation Progress Title
18871
+ */
18872
+ this.confirmationTitle = "Confirm";
18873
+ /**
18874
+ * @uiName Cancel Button Text
18875
+ */
18876
+ this.cancelText = "Cancel";
18877
+ /**
18878
+ * @uiName Back Button Text
18879
+ */
18880
+ this.backText = "Back";
18881
+ /**
18882
+ * @uiName Continue Button Text
18883
+ */
18884
+ this.continueText = "Continue";
18885
+ /**
18886
+ * @uiName Continue to Confirmation Button Text
18887
+ */
18888
+ this.continueToConfirmationText = "Continue to confirmation";
18889
+ /**
18890
+ * @uiName Redeem Button Text
18891
+ */
18892
+ this.redeemText = "Redeem";
18893
+ /**
18894
+ * @uiName Confirmation Title Text
18895
+ */
18896
+ this.redeemTitle = "Confirm and redeem";
18897
+ this.redemptionSuccessText = "Successfully redeemed {sourceValue} for {destinationValue}";
18898
+ /**
18899
+ * @uiName Done Text
18900
+ */
18901
+ this.doneText = "Done";
18902
+ /**
18903
+ * @uiName Reward List Error Message
18904
+ */
18905
+ this.queryError = "Unable to load reward exchange list";
18906
+ /**
18907
+ * @uiName Redemption Error Message
18908
+ */
18909
+ this.redemptionError = "An error occured trying to redeem this reward. Please try again";
18910
+ /**
18911
+ * @uiName Not Enough Available Error Message
18912
+ */
18913
+ this.notEnoughError = "Not enough {sourceUnit} to redeem for this reward";
18772
18914
  h(this);
18773
18915
  }
18774
18916
  disconnectedCallback() { }
@@ -18799,6 +18941,7 @@ function useRewardExchangeListDemo(props) {
18799
18941
  amount: 0,
18800
18942
  selectedStep: undefined,
18801
18943
  exchangeError: false,
18944
+ queryError: false,
18802
18945
  loading: false,
18803
18946
  },
18804
18947
  data: {
@@ -18809,6 +18952,7 @@ function useRewardExchangeListDemo(props) {
18809
18952
  setExchangeState: (_) => { },
18810
18953
  setStage: (_) => { },
18811
18954
  resetState: () => { },
18955
+ copyFuelTankCode: () => { },
18812
18956
  },
18813
18957
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
18814
18958
  }
@@ -18933,7 +19077,7 @@ const GET_REWARDS = gql `
18933
19077
  `;
18934
19078
  function useRewardsTable(props, emptyElement, loadingElement) {
18935
19079
  var _a, _b;
18936
- const user = T$1();
19080
+ const user = ne$1();
18937
19081
  const programIdContext = M$1();
18938
19082
  // Default to context, overriden by props
18939
19083
  const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
@@ -18956,7 +19100,7 @@ function useRewardsTable(props, emptyElement, loadingElement) {
18956
19100
  loading: false,
18957
19101
  page: 0,
18958
19102
  });
18959
- const { envelope: rewardsData, states, callbacks, } = sn(GET_REWARDS, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.rewards; }, {
19103
+ const { envelope: rewardsData, states, callbacks, } = pn(GET_REWARDS, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.rewards; }, {
18960
19104
  limit: props.perPage,
18961
19105
  offset: 0,
18962
19106
  }, {
@@ -19158,8 +19302,8 @@ function matchPath(pattern, page) {
19158
19302
  return regexp.exec(page);
19159
19303
  }
19160
19304
  function useRouter() {
19161
- const location = an();
19162
- const host = P$1();
19305
+ const location = vn();
19306
+ const host = S$1();
19163
19307
  const [slot, setSlot] = useState(undefined);
19164
19308
  const [container, setContainer] = useState(undefined);
19165
19309
  const page = location.pathname;
@@ -19318,14 +19462,14 @@ function useShareButton(props) {
19318
19462
  var _a, _b;
19319
19463
  const { sharetitle, sharetext, medium } = props;
19320
19464
  const programId = props.programId ? props.programId : M$1();
19321
- const user = T$1();
19465
+ const user = ne$1();
19322
19466
  const variables = {
19323
19467
  engagementMedium: x$1(),
19324
19468
  programId: programId,
19325
19469
  shareMedium: medium.toUpperCase(),
19326
19470
  };
19327
19471
  // only queries if a programId is available
19328
- const res = en(MessageLinkQuery, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
19472
+ const res = cn(MessageLinkQuery, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
19329
19473
  const directLink = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink;
19330
19474
  const environment = D$1();
19331
19475
  const hide = (medium.toLocaleUpperCase() === "SMS" &&
@@ -19420,10 +19564,10 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
19420
19564
  function useShareLink(props) {
19421
19565
  var _a, _b;
19422
19566
  const { programId = M$1() } = props;
19423
- const user = T$1();
19567
+ const user = ne$1();
19424
19568
  const engagementMedium = x$1();
19425
- const { data } = en(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
19426
- const [sendLoadEvent] = be(WIDGET_ENGAGEMENT_EVENT);
19569
+ const { data } = cn(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
19570
+ const [sendLoadEvent] = De(WIDGET_ENGAGEMENT_EVENT);
19427
19571
  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 :
19428
19572
  // Shown during loading
19429
19573
  "...";
@@ -20955,15 +21099,15 @@ const FullStackIcon = () => {
20955
21099
  };
20956
21100
 
20957
21101
  const ShareButton$1 = /*#__PURE__*/Object.freeze({
20958
- __proto__: null,
20959
- 'default': ShareButton_stories,
20960
- WithIcon: WithIcon,
20961
- WithIconOverride: WithIconOverride,
20962
- TextStyle: TextStyle,
20963
- WithoutIcon: WithoutIcon,
20964
- WithoutText: WithoutText,
20965
- TextStyleWithoutIcon: TextStyleWithoutIcon,
20966
- FullStackIcon: FullStackIcon
21102
+ __proto__: null,
21103
+ 'default': ShareButton_stories,
21104
+ WithIcon: WithIcon,
21105
+ WithIconOverride: WithIconOverride,
21106
+ TextStyle: TextStyle,
21107
+ WithoutIcon: WithoutIcon,
21108
+ WithoutText: WithoutText,
21109
+ TextStyleWithoutIcon: TextStyleWithoutIcon,
21110
+ FullStackIcon: FullStackIcon
20967
21111
  });
20968
21112
 
20969
21113
  const ShareLink_stories = {
@@ -20999,12 +21143,12 @@ const FullStack = () => {
20999
21143
  };
21000
21144
 
21001
21145
  const ShareLink$1 = /*#__PURE__*/Object.freeze({
21002
- __proto__: null,
21003
- 'default': ShareLink_stories,
21004
- Default: Default,
21005
- Tooltip: Tooltip,
21006
- Disabled: Disabled,
21007
- FullStack: FullStack
21146
+ __proto__: null,
21147
+ 'default': ShareLink_stories,
21148
+ Default: Default,
21149
+ Tooltip: Tooltip,
21150
+ Disabled: Disabled,
21151
+ FullStack: FullStack
21008
21152
  });
21009
21153
 
21010
21154
  const BigStat_stories = {
@@ -21072,16 +21216,16 @@ const InvalidStatValue = () => {
21072
21216
  };
21073
21217
 
21074
21218
  const BigStat = /*#__PURE__*/Object.freeze({
21075
- __proto__: null,
21076
- 'default': BigStat_stories,
21077
- Default: Default$1,
21078
- LeftAlign: LeftAlign,
21079
- RightAlign: RightAlign,
21080
- FlexReverse: FlexReverse,
21081
- FlexReverseRight: FlexReverseRight,
21082
- FlexReverseLeft: FlexReverseLeft,
21083
- NoStatValue: NoStatValue,
21084
- InvalidStatValue: InvalidStatValue
21219
+ __proto__: null,
21220
+ 'default': BigStat_stories,
21221
+ Default: Default$1,
21222
+ LeftAlign: LeftAlign,
21223
+ RightAlign: RightAlign,
21224
+ FlexReverse: FlexReverse,
21225
+ FlexReverseRight: FlexReverseRight,
21226
+ FlexReverseLeft: FlexReverseLeft,
21227
+ NoStatValue: NoStatValue,
21228
+ InvalidStatValue: InvalidStatValue
21085
21229
  });
21086
21230
 
21087
21231
  const Leaderboard_stories = {
@@ -21184,12 +21328,12 @@ const Five = () => {
21184
21328
  };
21185
21329
 
21186
21330
  const Leaderboard = /*#__PURE__*/Object.freeze({
21187
- __proto__: null,
21188
- 'default': Leaderboard_stories,
21189
- Empty: Empty,
21190
- Loading: Loading,
21191
- One: One,
21192
- Five: Five
21331
+ __proto__: null,
21332
+ 'default': Leaderboard_stories,
21333
+ Empty: Empty,
21334
+ Loading: Loading,
21335
+ One: One,
21336
+ Five: Five
21193
21337
  });
21194
21338
 
21195
21339
  const HookStoryAddon = ({ story }, children) => {
@@ -21279,36 +21423,36 @@ const routes = `
21279
21423
  `;
21280
21424
  const TemplateNavigation = createHookStory(() => {
21281
21425
  return (h$1("div", null,
21282
- h$1("button", { onClick: () => rn.push("/") }, "/"),
21283
- h$1("button", { onClick: () => rn.push("/foo") }, "/foo"),
21284
- h$1("button", { onClick: () => rn.push("/bar") }, "/bar"),
21285
- h$1("button", { onClick: () => rn.push("/baz/bang") }, "/baz/bang"),
21286
- h$1("button", { onClick: () => rn.push("/refer") }, "/refer"),
21287
- h$1("button", { onClick: () => rn.push("/refer/1") }, "/refer/1"),
21288
- h$1("button", { onClick: () => rn.push("/refer/2") }, "/refer/2"),
21289
- h$1("button", { onClick: () => rn.back() }, "Back"),
21290
- h$1("button", { onClick: () => rn.forward() }, "Forward"),
21426
+ h$1("button", { onClick: () => mn.push("/") }, "/"),
21427
+ h$1("button", { onClick: () => mn.push("/foo") }, "/foo"),
21428
+ h$1("button", { onClick: () => mn.push("/bar") }, "/bar"),
21429
+ h$1("button", { onClick: () => mn.push("/baz/bang") }, "/baz/bang"),
21430
+ h$1("button", { onClick: () => mn.push("/refer") }, "/refer"),
21431
+ h$1("button", { onClick: () => mn.push("/refer/1") }, "/refer/1"),
21432
+ h$1("button", { onClick: () => mn.push("/refer/2") }, "/refer/2"),
21433
+ h$1("button", { onClick: () => mn.back() }, "Back"),
21434
+ h$1("button", { onClick: () => mn.forward() }, "Forward"),
21291
21435
  h$1("hr", null),
21292
21436
  h$1("sqm-router", { innerHTML: templates })));
21293
21437
  });
21294
21438
  const RouteNavigation = createHookStory(() => {
21295
21439
  return (h$1("div", null,
21296
- h$1("button", { onClick: () => rn.push("/") }, "/"),
21297
- h$1("button", { onClick: () => rn.push("/foo") }, "/foo"),
21298
- h$1("button", { onClick: () => rn.push("/bar") }, "/bar"),
21299
- h$1("button", { onClick: () => rn.push("/baz/bang") }, "/baz/bang"),
21300
- h$1("button", { onClick: () => rn.push("/refer") }, "/refer"),
21301
- h$1("button", { onClick: () => rn.push("/refer/1") }, "/refer/1"),
21302
- h$1("button", { onClick: () => rn.push("/refer/2") }, "/refer/2"),
21303
- h$1("button", { onClick: () => rn.back() }, "Back"),
21304
- h$1("button", { onClick: () => rn.forward() }, "Forward"),
21440
+ h$1("button", { onClick: () => mn.push("/") }, "/"),
21441
+ h$1("button", { onClick: () => mn.push("/foo") }, "/foo"),
21442
+ h$1("button", { onClick: () => mn.push("/bar") }, "/bar"),
21443
+ h$1("button", { onClick: () => mn.push("/baz/bang") }, "/baz/bang"),
21444
+ h$1("button", { onClick: () => mn.push("/refer") }, "/refer"),
21445
+ h$1("button", { onClick: () => mn.push("/refer/1") }, "/refer/1"),
21446
+ h$1("button", { onClick: () => mn.push("/refer/2") }, "/refer/2"),
21447
+ h$1("button", { onClick: () => mn.back() }, "Back"),
21448
+ h$1("button", { onClick: () => mn.forward() }, "Forward"),
21305
21449
  h$1("hr", null),
21306
21450
  h$1("sqm-router", { innerHTML: routes })));
21307
21451
  });
21308
21452
  const Styling = createHookStory(() => {
21309
21453
  return (h$1("div", null,
21310
- h$1("button", { onClick: () => rn.push("/") }, "/"),
21311
- h$1("button", { onClick: () => rn.push("/foo") }, "/foo"),
21454
+ h$1("button", { onClick: () => mn.push("/") }, "/"),
21455
+ h$1("button", { onClick: () => mn.push("/foo") }, "/foo"),
21312
21456
  h$1("hr", null),
21313
21457
  h$1("div", { style: { display: "flex", justifyContent: "space-around" } },
21314
21458
  h$1("sqm-router", { innerHTML: `<template path="/">
@@ -21322,7 +21466,7 @@ function useTemplate(templateString) {
21322
21466
  const [previewTemplate, setPreviewTemplate] = useState(templateString);
21323
21467
  function setPath(e) {
21324
21468
  //@ts-ignore
21325
- rn.push(e.target.value);
21469
+ mn.push(e.target.value);
21326
21470
  }
21327
21471
  return {
21328
21472
  states: { previewTemplate, editedTemplate },
@@ -21353,12 +21497,12 @@ const RouterPlayground = createHookStory(() => {
21353
21497
  });
21354
21498
 
21355
21499
  const Router = /*#__PURE__*/Object.freeze({
21356
- __proto__: null,
21357
- 'default': Router_stories,
21358
- TemplateNavigation: TemplateNavigation,
21359
- RouteNavigation: RouteNavigation,
21360
- Styling: Styling,
21361
- RouterPlayground: RouterPlayground
21500
+ __proto__: null,
21501
+ 'default': Router_stories,
21502
+ TemplateNavigation: TemplateNavigation,
21503
+ RouteNavigation: RouteNavigation,
21504
+ Styling: Styling,
21505
+ RouterPlayground: RouterPlayground
21362
21506
  });
21363
21507
 
21364
21508
  const LeaderboardRank_stories = {
@@ -21373,9 +21517,9 @@ const First = () => {
21373
21517
  };
21374
21518
 
21375
21519
  const LeaderboardRank = /*#__PURE__*/Object.freeze({
21376
- __proto__: null,
21377
- 'default': LeaderboardRank_stories,
21378
- First: First
21520
+ __proto__: null,
21521
+ 'default': LeaderboardRank_stories,
21522
+ First: First
21379
21523
  });
21380
21524
 
21381
21525
  function setupGraphQL() {
@@ -21465,8 +21609,8 @@ const FullStackFrame = () => {
21465
21609
  "Current path:",
21466
21610
  " ",
21467
21611
  h$1("code", null,
21468
- h$1("strong", null, (_a = an()) === null || _a === void 0 ? void 0 : _a.pathname))),
21469
- h$1("button", { onClick: rn.back }, "Go Back")));
21612
+ h$1("strong", null, (_a = vn()) === null || _a === void 0 ? void 0 : _a.pathname))),
21613
+ h$1("button", { onClick: mn.back }, "Go Back")));
21470
21614
  };
21471
21615
  const FullStackFrameLoggedOut = () => {
21472
21616
  var _a;
@@ -21490,17 +21634,17 @@ const FullStackFrameLoggedOut = () => {
21490
21634
  "Current path:",
21491
21635
  " ",
21492
21636
  h$1("code", null,
21493
- h$1("strong", null, (_a = an()) === null || _a === void 0 ? void 0 : _a.pathname))),
21494
- h$1("button", { onClick: rn.back }, "Go Back")));
21637
+ h$1("strong", null, (_a = vn()) === null || _a === void 0 ? void 0 : _a.pathname))),
21638
+ h$1("button", { onClick: mn.back }, "Go Back")));
21495
21639
  };
21496
21640
 
21497
21641
  const PortalFrame$1 = /*#__PURE__*/Object.freeze({
21498
- __proto__: null,
21499
- 'default': PortalFrame_stories,
21500
- FrameWithMenu: FrameWithMenu,
21501
- FrameWithoutMenu: FrameWithoutMenu,
21502
- FullStackFrame: FullStackFrame,
21503
- FullStackFrameLoggedOut: FullStackFrameLoggedOut
21642
+ __proto__: null,
21643
+ 'default': PortalFrame_stories,
21644
+ FrameWithMenu: FrameWithMenu,
21645
+ FrameWithoutMenu: FrameWithoutMenu,
21646
+ FullStackFrame: FullStackFrame,
21647
+ FullStackFrameLoggedOut: FullStackFrameLoggedOut
21504
21648
  });
21505
21649
 
21506
21650
  const EditProfileForm_stories = {
@@ -21564,11 +21708,11 @@ const FullStackFrameWithMenu = () => {
21564
21708
  };
21565
21709
 
21566
21710
  const EditProfile$1 = /*#__PURE__*/Object.freeze({
21567
- __proto__: null,
21568
- 'default': EditProfileForm_stories,
21569
- EditProfileFormDisabled: EditProfileFormDisabled,
21570
- EditProfileFormEnabled: EditProfileFormEnabled,
21571
- FullStackFrameWithMenu: FullStackFrameWithMenu
21711
+ __proto__: null,
21712
+ 'default': EditProfileForm_stories,
21713
+ EditProfileFormDisabled: EditProfileFormDisabled,
21714
+ EditProfileFormEnabled: EditProfileFormEnabled,
21715
+ FullStackFrameWithMenu: FullStackFrameWithMenu
21572
21716
  });
21573
21717
 
21574
21718
  const UseShareLink_stories = {
@@ -21585,14 +21729,14 @@ function setupGraphQL$1() {
21585
21729
  programId,
21586
21730
  };
21587
21731
  useEffect(() => {
21588
- L$1({
21732
+ Y({
21589
21733
  accountId,
21590
21734
  id,
21591
21735
  jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
21592
21736
  });
21593
21737
  return () => {
21594
21738
  window.widgetIdent = undefined;
21595
- L$1(undefined);
21739
+ Y(undefined);
21596
21740
  };
21597
21741
  }, []);
21598
21742
  }
@@ -21626,11 +21770,11 @@ const FastTooltip = createHookStory(() => {
21626
21770
  });
21627
21771
 
21628
21772
  const UseShareLink = /*#__PURE__*/Object.freeze({
21629
- __proto__: null,
21630
- 'default': UseShareLink_stories,
21631
- BareBonesView: BareBonesView,
21632
- RegularView: RegularView,
21633
- FastTooltip: FastTooltip
21773
+ __proto__: null,
21774
+ 'default': UseShareLink_stories,
21775
+ BareBonesView: BareBonesView,
21776
+ RegularView: RegularView,
21777
+ FastTooltip: FastTooltip
21634
21778
  });
21635
21779
 
21636
21780
  const UseShareButton_stories = {
@@ -21647,14 +21791,14 @@ function setupGraphQL$2() {
21647
21791
  programId,
21648
21792
  };
21649
21793
  useEffect(() => {
21650
- L$1({
21794
+ Y({
21651
21795
  accountId,
21652
21796
  id,
21653
21797
  jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
21654
21798
  });
21655
21799
  return () => {
21656
21800
  window.widgetIdent = undefined;
21657
- L$1(undefined);
21801
+ Y(undefined);
21658
21802
  };
21659
21803
  }, []);
21660
21804
  }
@@ -21689,10 +21833,10 @@ const RegularView$1 = createHookStory(() => {
21689
21833
  });
21690
21834
 
21691
21835
  const UseShareButton = /*#__PURE__*/Object.freeze({
21692
- __proto__: null,
21693
- 'default': UseShareButton_stories,
21694
- BareBonesView: BareBonesView$1,
21695
- RegularView: RegularView$1
21836
+ __proto__: null,
21837
+ 'default': UseShareButton_stories,
21838
+ BareBonesView: BareBonesView$1,
21839
+ RegularView: RegularView$1
21696
21840
  });
21697
21841
 
21698
21842
  const UseBigStat_stories = {
@@ -21709,14 +21853,14 @@ function setupGraphQL$3() {
21709
21853
  programId,
21710
21854
  };
21711
21855
  useEffect(() => {
21712
- L$1({
21856
+ Y({
21713
21857
  accountId,
21714
21858
  id,
21715
21859
  jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6Im55bmVsbGllIiwiaWQiOiJueW5lbGxpZSJ9fQ.3KV974VPLgk4tD8LQfJTi4IPkKCmnaB8w48HzVJYDuI",
21716
21860
  });
21717
21861
  return () => {
21718
21862
  window.widgetIdent = undefined;
21719
- L$1(undefined);
21863
+ Y(undefined);
21720
21864
  };
21721
21865
  }, []);
21722
21866
  }
@@ -21797,36 +21941,36 @@ const CustomField = createHookStory(() => {
21797
21941
  });
21798
21942
 
21799
21943
  const UseBigStat = /*#__PURE__*/Object.freeze({
21800
- __proto__: null,
21801
- 'default': UseBigStat_stories,
21802
- Demo: Demo,
21803
- ReferralsCount: ReferralsCount,
21804
- referralsConvertedCount: referralsConvertedCount,
21805
- referralsStartedCount: referralsStartedCount,
21806
- ReferralsMonth: ReferralsMonth,
21807
- ReferralsWeek: ReferralsWeek,
21808
- RewardsCount: RewardsCount,
21809
- GlobalRewardsCount: GlobalRewardsCount,
21810
- GlobalRewardsCountFiltered: GlobalRewardsCountFiltered,
21811
- GlobalRewardsCountPctDiscount: GlobalRewardsCountPctDiscount,
21812
- GlobalRewardsCountPctDiscountPending: GlobalRewardsCountPctDiscountPending,
21813
- RewardsCountByUnit: RewardsCountByUnit,
21814
- GlobalRewardsCountByUnit: GlobalRewardsCountByUnit,
21815
- GlobalPendingRewardsCount: GlobalPendingRewardsCount,
21816
- RewardsAvailableCount: RewardsAvailableCount,
21817
- GlobalRewardsCountByIntegration: GlobalRewardsCountByIntegration,
21818
- GlobalRewardsCountByPendingIntegration: GlobalRewardsCountByPendingIntegration,
21819
- RewardsMonth: RewardsMonth,
21820
- RewardsWeek: RewardsWeek,
21821
- RewardsAssigned: RewardsAssigned,
21822
- RewardsAssignedCashUSD: RewardsAssignedCashUSD,
21823
- RewardsRedeemed: RewardsRedeemed,
21824
- RewardsAvailable: RewardsAvailable,
21825
- RewardsAvailableWithSlash: RewardsAvailableWithSlash,
21826
- RewardBalance: RewardBalance,
21827
- RewardBalanceCashUSD: RewardBalanceCashUSD,
21828
- ProgramGoals: ProgramGoals,
21829
- CustomField: CustomField
21944
+ __proto__: null,
21945
+ 'default': UseBigStat_stories,
21946
+ Demo: Demo,
21947
+ ReferralsCount: ReferralsCount,
21948
+ referralsConvertedCount: referralsConvertedCount,
21949
+ referralsStartedCount: referralsStartedCount,
21950
+ ReferralsMonth: ReferralsMonth,
21951
+ ReferralsWeek: ReferralsWeek,
21952
+ RewardsCount: RewardsCount,
21953
+ GlobalRewardsCount: GlobalRewardsCount,
21954
+ GlobalRewardsCountFiltered: GlobalRewardsCountFiltered,
21955
+ GlobalRewardsCountPctDiscount: GlobalRewardsCountPctDiscount,
21956
+ GlobalRewardsCountPctDiscountPending: GlobalRewardsCountPctDiscountPending,
21957
+ RewardsCountByUnit: RewardsCountByUnit,
21958
+ GlobalRewardsCountByUnit: GlobalRewardsCountByUnit,
21959
+ GlobalPendingRewardsCount: GlobalPendingRewardsCount,
21960
+ RewardsAvailableCount: RewardsAvailableCount,
21961
+ GlobalRewardsCountByIntegration: GlobalRewardsCountByIntegration,
21962
+ GlobalRewardsCountByPendingIntegration: GlobalRewardsCountByPendingIntegration,
21963
+ RewardsMonth: RewardsMonth,
21964
+ RewardsWeek: RewardsWeek,
21965
+ RewardsAssigned: RewardsAssigned,
21966
+ RewardsAssignedCashUSD: RewardsAssignedCashUSD,
21967
+ RewardsRedeemed: RewardsRedeemed,
21968
+ RewardsAvailable: RewardsAvailable,
21969
+ RewardsAvailableWithSlash: RewardsAvailableWithSlash,
21970
+ RewardBalance: RewardBalance,
21971
+ RewardBalanceCashUSD: RewardBalanceCashUSD,
21972
+ ProgramGoals: ProgramGoals,
21973
+ CustomField: CustomField
21830
21974
  });
21831
21975
 
21832
21976
  function setupGraphQL$4() {
@@ -21840,14 +21984,14 @@ function setupGraphQL$4() {
21840
21984
  programId,
21841
21985
  };
21842
21986
  useEffect(() => {
21843
- L$1({
21987
+ Y({
21844
21988
  accountId,
21845
21989
  id,
21846
21990
  jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJpZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0In19.ziDWbdCwsTo1ijxl8d2__Ga-6iFOVShaJUPp2ZBMeO0",
21847
21991
  });
21848
21992
  return () => {
21849
21993
  window.widgetIdent = undefined;
21850
- L$1(undefined);
21994
+ Y(undefined);
21851
21995
  };
21852
21996
  }, []);
21853
21997
  }
@@ -21868,9 +22012,9 @@ const RegularView$2 = createHookStory(() => {
21868
22012
  });
21869
22013
 
21870
22014
  const UseEditProfile = /*#__PURE__*/Object.freeze({
21871
- __proto__: null,
21872
- 'default': UseEditProfile_stories,
21873
- RegularView: RegularView$2
22015
+ __proto__: null,
22016
+ 'default': UseEditProfile_stories,
22017
+ RegularView: RegularView$2
21874
22018
  });
21875
22019
 
21876
22020
  const UseLeaderboard_stories = {
@@ -21887,14 +22031,14 @@ function setupGraphQL$5() {
21887
22031
  programId,
21888
22032
  };
21889
22033
  useEffect(() => {
21890
- L$1({
22034
+ Y({
21891
22035
  accountId,
21892
22036
  id,
21893
22037
  jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
21894
22038
  });
21895
22039
  return () => {
21896
22040
  window.widgetIdent = undefined;
21897
- L$1(undefined);
22041
+ Y(undefined);
21898
22042
  };
21899
22043
  }, []);
21900
22044
  }
@@ -21948,10 +22092,10 @@ const TopStartedReferrers = createHookStory(() => {
21948
22092
  });
21949
22093
 
21950
22094
  const UseLeaderboard = /*#__PURE__*/Object.freeze({
21951
- __proto__: null,
21952
- 'default': UseLeaderboard_stories,
21953
- TopConvertedReferrers: TopConvertedReferrers,
21954
- TopStartedReferrers: TopStartedReferrers
22095
+ __proto__: null,
22096
+ 'default': UseLeaderboard_stories,
22097
+ TopConvertedReferrers: TopConvertedReferrers,
22098
+ TopStartedReferrers: TopStartedReferrers
21955
22099
  });
21956
22100
 
21957
22101
  const FormMessage_stories = {
@@ -21983,12 +22127,12 @@ const FullStackSuccess = () => {
21983
22127
  };
21984
22128
 
21985
22129
  const FormMessage$1 = /*#__PURE__*/Object.freeze({
21986
- __proto__: null,
21987
- 'default': FormMessage_stories,
21988
- SuccessAlert: SuccessAlert,
21989
- ErrorAlert: ErrorAlert,
21990
- InfoAlert: InfoAlert,
21991
- FullStackSuccess: FullStackSuccess
22130
+ __proto__: null,
22131
+ 'default': FormMessage_stories,
22132
+ SuccessAlert: SuccessAlert,
22133
+ ErrorAlert: ErrorAlert,
22134
+ InfoAlert: InfoAlert,
22135
+ FullStackSuccess: FullStackSuccess
21992
22136
  });
21993
22137
 
21994
22138
  const EXCHANGE$1 = dist.gql `
@@ -22014,14 +22158,14 @@ function setupGraphQL$6() {
22014
22158
  programId,
22015
22159
  };
22016
22160
  useEffect(() => {
22017
- L$1({
22161
+ Y({
22018
22162
  accountId,
22019
22163
  id,
22020
22164
  jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
22021
22165
  });
22022
22166
  return () => {
22023
22167
  window.widgetIdent = undefined;
22024
- L$1(undefined);
22168
+ Y(undefined);
22025
22169
  };
22026
22170
  }, []);
22027
22171
  return { id, accountId };
@@ -22030,7 +22174,7 @@ function useExchangeButton() {
22030
22174
  const { id, accountId } = setupGraphQL$6();
22031
22175
  const [points, setPoints] = useState(10);
22032
22176
  const [rate, setRate] = useState(100);
22033
- const [exchange, { data, errors }] = Ne(EXCHANGE$1);
22177
+ const [exchange, { data, errors }] = ze(EXCHANGE$1);
22034
22178
  return {
22035
22179
  states: {
22036
22180
  points,
@@ -22125,12 +22269,12 @@ const VariableCreditReward = createHookStory(() => {
22125
22269
  });
22126
22270
 
22127
22271
  const UseRewardExchangeList = /*#__PURE__*/Object.freeze({
22128
- __proto__: null,
22129
- 'default': UseRewardExchangeList_stories,
22130
- RewardList: RewardList,
22131
- FixedGlobalReward: FixedGlobalReward,
22132
- VariableGlobalReward: VariableGlobalReward,
22133
- VariableCreditReward: VariableCreditReward
22272
+ __proto__: null,
22273
+ 'default': UseRewardExchangeList_stories,
22274
+ RewardList: RewardList,
22275
+ FixedGlobalReward: FixedGlobalReward,
22276
+ VariableGlobalReward: VariableGlobalReward,
22277
+ VariableCreditReward: VariableCreditReward
22134
22278
  });
22135
22279
 
22136
22280
  const UseRewardsTable_stories = {
@@ -22145,14 +22289,14 @@ function setupGraphQL$7() {
22145
22289
  appDomain: "https://staging.referralsaasquatch.com",
22146
22290
  };
22147
22291
  useEffect(() => {
22148
- L$1({
22292
+ Y({
22149
22293
  accountId,
22150
22294
  id,
22151
22295
  jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
22152
22296
  });
22153
22297
  return () => {
22154
22298
  window.widgetIdent = undefined;
22155
- L$1(undefined);
22299
+ Y(undefined);
22156
22300
  };
22157
22301
  }, []);
22158
22302
  return { id, accountId };
@@ -22171,10 +22315,10 @@ const RewardsTableNoProgram = createHookStory(() => {
22171
22315
  });
22172
22316
 
22173
22317
  const UseRewardsTable = /*#__PURE__*/Object.freeze({
22174
- __proto__: null,
22175
- 'default': UseRewardsTable_stories,
22176
- RewardsTableWithProgram: RewardsTableWithProgram,
22177
- RewardsTableNoProgram: RewardsTableNoProgram
22318
+ __proto__: null,
22319
+ 'default': UseRewardsTable_stories,
22320
+ RewardsTableWithProgram: RewardsTableWithProgram,
22321
+ RewardsTableNoProgram: RewardsTableNoProgram
22178
22322
  });
22179
22323
 
22180
22324
  const JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoic2FtK2tsaXBAc2Fhc3F1YXQuY2giLCJhY2NvdW50SWQiOiJzYW0ra2xpcEBzYWFzcXVhdC5jaCJ9fQ.FMNZ6oajyr6SiCcRqKKdyPqvNTvWROQ60MKAyfvWGfc";
@@ -22192,14 +22336,14 @@ function setupGraphQL$8() {
22192
22336
  programId,
22193
22337
  };
22194
22338
  useEffect(() => {
22195
- L$1({
22339
+ Y({
22196
22340
  accountId,
22197
22341
  id,
22198
22342
  jwt: JWT,
22199
22343
  });
22200
22344
  return () => {
22201
22345
  window.widgetIdent = undefined;
22202
- L$1(undefined);
22346
+ Y(undefined);
22203
22347
  };
22204
22348
  }, []);
22205
22349
  return { id, accountId };
@@ -22210,9 +22354,9 @@ const TaskCard = createHookStory(() => {
22210
22354
  });
22211
22355
 
22212
22356
  const UseTaskCard = /*#__PURE__*/Object.freeze({
22213
- __proto__: null,
22214
- 'default': UseTaskCard_stories,
22215
- TaskCard: TaskCard
22357
+ __proto__: null,
22358
+ 'default': UseTaskCard_stories,
22359
+ TaskCard: TaskCard
22216
22360
  });
22217
22361
 
22218
22362
  const NewPortal_stories = {
@@ -22509,12 +22653,12 @@ const Activity = () => {
22509
22653
  };
22510
22654
 
22511
22655
  const NewPortal = /*#__PURE__*/Object.freeze({
22512
- __proto__: null,
22513
- 'default': NewPortal_stories,
22514
- Dashboard: Dashboard,
22515
- EditProfile: EditProfile$2,
22516
- Commissions: Commissions,
22517
- Activity: Activity
22656
+ __proto__: null,
22657
+ 'default': NewPortal_stories,
22658
+ Dashboard: Dashboard,
22659
+ EditProfile: EditProfile$2,
22660
+ Commissions: Commissions,
22661
+ Activity: Activity
22518
22662
  });
22519
22663
 
22520
22664
  const SidebarItem_stories = {
@@ -22548,10 +22692,10 @@ const ActiveItem = () => {
22548
22692
  };
22549
22693
 
22550
22694
  const SidebarItem = /*#__PURE__*/Object.freeze({
22551
- __proto__: null,
22552
- 'default': SidebarItem_stories,
22553
- InactiveItem: InactiveItem,
22554
- ActiveItem: ActiveItem
22695
+ __proto__: null,
22696
+ 'default': SidebarItem_stories,
22697
+ InactiveItem: InactiveItem,
22698
+ ActiveItem: ActiveItem
22555
22699
  });
22556
22700
 
22557
22701
  const NavigationSidebar_stories = {
@@ -22598,9 +22742,9 @@ const DefaultNavigationSidebar = () => {
22598
22742
  };
22599
22743
 
22600
22744
  const NavigationSidebar = /*#__PURE__*/Object.freeze({
22601
- __proto__: null,
22602
- 'default': NavigationSidebar_stories,
22603
- DefaultNavigationSidebar: DefaultNavigationSidebar
22745
+ __proto__: null,
22746
+ 'default': NavigationSidebar_stories,
22747
+ DefaultNavigationSidebar: DefaultNavigationSidebar
22604
22748
  });
22605
22749
 
22606
22750
  const PortalLogin_stories = {
@@ -22641,11 +22785,11 @@ const LoginWithError = () => h$1(PortalLoginView, Object.assign({}, errorProps))
22641
22785
  const LoginLoading = () => h$1(PortalLoginView, Object.assign({}, loadingProps));
22642
22786
 
22643
22787
  const PortalLogin$1 = /*#__PURE__*/Object.freeze({
22644
- __proto__: null,
22645
- 'default': PortalLogin_stories,
22646
- Default: Default$2,
22647
- LoginWithError: LoginWithError,
22648
- LoginLoading: LoginLoading
22788
+ __proto__: null,
22789
+ 'default': PortalLogin_stories,
22790
+ Default: Default$2,
22791
+ LoginWithError: LoginWithError,
22792
+ LoginLoading: LoginLoading
22649
22793
  });
22650
22794
 
22651
22795
  const PortalRegister_stories = {
@@ -22740,13 +22884,13 @@ const FieldsHidden = () => {
22740
22884
  const SlottedInputs = () => h$1(PortalRegisterView, Object.assign({}, slottedProps));
22741
22885
 
22742
22886
  const PortalRegister$1 = /*#__PURE__*/Object.freeze({
22743
- __proto__: null,
22744
- 'default': PortalRegister_stories,
22745
- Default: Default$3,
22746
- RegisterWithError: RegisterWithError,
22747
- RegisterLoading: RegisterLoading,
22748
- FieldsHidden: FieldsHidden,
22749
- SlottedInputs: SlottedInputs
22887
+ __proto__: null,
22888
+ 'default': PortalRegister_stories,
22889
+ Default: Default$3,
22890
+ RegisterWithError: RegisterWithError,
22891
+ RegisterLoading: RegisterLoading,
22892
+ FieldsHidden: FieldsHidden,
22893
+ SlottedInputs: SlottedInputs
22750
22894
  });
22751
22895
 
22752
22896
  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";
@@ -22819,12 +22963,12 @@ const ForgotPasswordLoading = () => (h$1(PortalForgotPasswordView, Object.assign
22819
22963
  const ForgotPasswordSuccess = () => (h$1(PortalForgotPasswordView, Object.assign({}, successProps)));
22820
22964
 
22821
22965
  const PortalForgotPassword = /*#__PURE__*/Object.freeze({
22822
- __proto__: null,
22823
- 'default': PortalForgotPassword_stories,
22824
- Default: Default$4,
22825
- ForgotPasswordWithError: ForgotPasswordWithError,
22826
- ForgotPasswordLoading: ForgotPasswordLoading,
22827
- ForgotPasswordSuccess: ForgotPasswordSuccess
22966
+ __proto__: null,
22967
+ 'default': PortalForgotPassword_stories,
22968
+ Default: Default$4,
22969
+ ForgotPasswordWithError: ForgotPasswordWithError,
22970
+ ForgotPasswordLoading: ForgotPasswordLoading,
22971
+ ForgotPasswordSuccess: ForgotPasswordSuccess
22828
22972
  });
22829
22973
 
22830
22974
  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";
@@ -22905,12 +23049,12 @@ const EmailVerificationLoading = () => (h$1(PortalEmailVerificationView, Object.
22905
23049
  const EmailVerificationSuccess = () => (h$1(PortalEmailVerificationView, Object.assign({}, successProps$1)));
22906
23050
 
22907
23051
  const PortalEmailVerification = /*#__PURE__*/Object.freeze({
22908
- __proto__: null,
22909
- 'default': PortalEmailVerification_stories,
22910
- Default: Default$5,
22911
- EmailVerificationWithError: EmailVerificationWithError,
22912
- EmailVerificationLoading: EmailVerificationLoading,
22913
- EmailVerificationSuccess: EmailVerificationSuccess
23052
+ __proto__: null,
23053
+ 'default': PortalEmailVerification_stories,
23054
+ Default: Default$5,
23055
+ EmailVerificationWithError: EmailVerificationWithError,
23056
+ EmailVerificationLoading: EmailVerificationLoading,
23057
+ EmailVerificationSuccess: EmailVerificationSuccess
22914
23058
  });
22915
23059
 
22916
23060
  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\"";
@@ -23067,14 +23211,14 @@ const ResetPasswordSuccess = () => (h$1(PortalResetPasswordView$1, Object.assign
23067
23211
  const CodeValidating = () => (h$1(PortalResetPasswordView$1, Object.assign({}, validatingCodeProps)));
23068
23212
 
23069
23213
  const PortalResetPassword = /*#__PURE__*/Object.freeze({
23070
- __proto__: null,
23071
- 'default': PortalResetPassword_stories,
23072
- Default: Default$6,
23073
- DefaultWithoutConfirmField: DefaultWithoutConfirmField,
23074
- ResetPasswordWithError: ResetPasswordWithError,
23075
- ResetPasswordLoading: ResetPasswordLoading,
23076
- ResetPasswordSuccess: ResetPasswordSuccess,
23077
- CodeValidating: CodeValidating
23214
+ __proto__: null,
23215
+ 'default': PortalResetPassword_stories,
23216
+ Default: Default$6,
23217
+ DefaultWithoutConfirmField: DefaultWithoutConfirmField,
23218
+ ResetPasswordWithError: ResetPasswordWithError,
23219
+ ResetPasswordLoading: ResetPasswordLoading,
23220
+ ResetPasswordSuccess: ResetPasswordSuccess,
23221
+ CodeValidating: CodeValidating
23078
23222
  });
23079
23223
 
23080
23224
  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 |";
@@ -23117,10 +23261,10 @@ const EmailVerificationWithError$1 = () => (h$1(PortalVerifyEmailView, Object.as
23117
23261
  const EmailVerificationSuccess$1 = () => (h$1(PortalVerifyEmailView, Object.assign({}, verifiedProps)));
23118
23262
 
23119
23263
  const PortalVerifyEmail = /*#__PURE__*/Object.freeze({
23120
- __proto__: null,
23121
- 'default': PortalVerifyEmail_stories,
23122
- EmailVerificationWithError: EmailVerificationWithError$1,
23123
- EmailVerificationSuccess: EmailVerificationSuccess$1
23264
+ __proto__: null,
23265
+ 'default': PortalVerifyEmail_stories,
23266
+ EmailVerificationWithError: EmailVerificationWithError$1,
23267
+ EmailVerificationSuccess: EmailVerificationSuccess$1
23124
23268
  });
23125
23269
 
23126
23270
  const AssetCard_stories = {
@@ -23152,11 +23296,11 @@ const CardWithNoImg = () => {
23152
23296
  };
23153
23297
 
23154
23298
  const AssetCard = /*#__PURE__*/Object.freeze({
23155
- __proto__: null,
23156
- 'default': AssetCard_stories,
23157
- Default: Default$7,
23158
- CardWithLongText: CardWithLongText,
23159
- CardWithNoImg: CardWithNoImg
23299
+ __proto__: null,
23300
+ 'default': AssetCard_stories,
23301
+ Default: Default$7,
23302
+ CardWithLongText: CardWithLongText,
23303
+ CardWithNoImg: CardWithNoImg
23160
23304
  });
23161
23305
 
23162
23306
  const DividedLayout_stories = {
@@ -23242,11 +23386,11 @@ const ColumnCustomDivider = () => {
23242
23386
  };
23243
23387
 
23244
23388
  const DividedLayout$1 = /*#__PURE__*/Object.freeze({
23245
- __proto__: null,
23246
- 'default': DividedLayout_stories,
23247
- Row: Row,
23248
- Column: Column,
23249
- ColumnCustomDivider: ColumnCustomDivider
23389
+ __proto__: null,
23390
+ 'default': DividedLayout_stories,
23391
+ Row: Row,
23392
+ Column: Column,
23393
+ ColumnCustomDivider: ColumnCustomDivider
23250
23394
  });
23251
23395
 
23252
23396
  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";
@@ -23397,14 +23541,14 @@ const Loading$1 = () => h$1(PortalChangePasswordView, Object.assign({}, loadingP
23397
23541
  const Success = () => h$1(PortalChangePasswordView, Object.assign({}, successProps$3));
23398
23542
 
23399
23543
  const ChangePassword = /*#__PURE__*/Object.freeze({
23400
- __proto__: null,
23401
- 'default': ChangePassword_stories,
23402
- Default: Default$8,
23403
- Open: Open,
23404
- Error: Error$1,
23405
- PaswordError: PaswordError,
23406
- Loading: Loading$1,
23407
- Success: Success
23544
+ __proto__: null,
23545
+ 'default': ChangePassword_stories,
23546
+ Default: Default$8,
23547
+ Open: Open,
23548
+ Error: Error$1,
23549
+ PaswordError: PaswordError,
23550
+ Loading: Loading$1,
23551
+ Success: Success
23408
23552
  });
23409
23553
 
23410
23554
  const PortalProfile_stories = {
@@ -23638,14 +23782,14 @@ const Error$2 = () => h$1(PortalProfileView, Object.assign({}, errorProps$7));
23638
23782
  const Success$1 = () => h$1(PortalProfileView, Object.assign({}, successProps$4));
23639
23783
 
23640
23784
  const PortalProfile = /*#__PURE__*/Object.freeze({
23641
- __proto__: null,
23642
- 'default': PortalProfile_stories,
23643
- Default: Default$9,
23644
- DefaultNoCountry: DefaultNoCountry,
23645
- Loading: Loading$2,
23646
- Disabled: Disabled$1,
23647
- Error: Error$2,
23648
- Success: Success$1
23785
+ __proto__: null,
23786
+ 'default': PortalProfile_stories,
23787
+ Default: Default$9,
23788
+ DefaultNoCountry: DefaultNoCountry,
23789
+ Loading: Loading$2,
23790
+ Disabled: Disabled$1,
23791
+ Error: Error$2,
23792
+ Success: Success$1
23649
23793
  });
23650
23794
 
23651
23795
  const ReferralTableRewardsCell_stories = {
@@ -23861,23 +24005,23 @@ const tenRewardsCell = () => {
23861
24005
  };
23862
24006
 
23863
24007
  const ReferralTableRewardsCell$1 = /*#__PURE__*/Object.freeze({
23864
- __proto__: null,
23865
- 'default': ReferralTableRewardsCell_stories,
23866
- PendingNoUnpend: PendingNoUnpend,
23867
- PendingNoUnpendNoDetails: PendingNoUnpendNoDetails,
23868
- PendingWithUnpend: PendingWithUnpend,
23869
- AvailableNoExpiry: AvailableNoExpiry,
23870
- AvailableWithExpiry: AvailableWithExpiry,
23871
- Redeemed: Redeemed,
23872
- Cancelled: Cancelled,
23873
- Expired: Expired,
23874
- EmptyCell: EmptyCell,
23875
- oneRewardCell: oneRewardCell,
23876
- twoRewardsCell: twoRewardsCell,
23877
- threeRewardsCell: threeRewardsCell,
23878
- fiveRewardsCell: fiveRewardsCell,
23879
- eightRewardsCell: eightRewardsCell,
23880
- tenRewardsCell: tenRewardsCell
24008
+ __proto__: null,
24009
+ 'default': ReferralTableRewardsCell_stories,
24010
+ PendingNoUnpend: PendingNoUnpend,
24011
+ PendingNoUnpendNoDetails: PendingNoUnpendNoDetails,
24012
+ PendingWithUnpend: PendingWithUnpend,
24013
+ AvailableNoExpiry: AvailableNoExpiry,
24014
+ AvailableWithExpiry: AvailableWithExpiry,
24015
+ Redeemed: Redeemed,
24016
+ Cancelled: Cancelled,
24017
+ Expired: Expired,
24018
+ EmptyCell: EmptyCell,
24019
+ oneRewardCell: oneRewardCell,
24020
+ twoRewardsCell: twoRewardsCell,
24021
+ threeRewardsCell: threeRewardsCell,
24022
+ fiveRewardsCell: fiveRewardsCell,
24023
+ eightRewardsCell: eightRewardsCell,
24024
+ tenRewardsCell: tenRewardsCell
23881
24025
  });
23882
24026
 
23883
24027
  const ReferralTable_stories = {
@@ -24354,17 +24498,17 @@ const FullRewardsTable = () => {
24354
24498
  };
24355
24499
 
24356
24500
  const ReferralTable$1 = /*#__PURE__*/Object.freeze({
24357
- __proto__: null,
24358
- 'default': ReferralTable_stories,
24359
- SimpleUserTable: SimpleUserTable,
24360
- HiddenLabelsTable: HiddenLabelsTable,
24361
- CustomButtonTextTable: CustomButtonTextTable,
24362
- FullUserTable: FullUserTable,
24363
- LongCellTextTable: LongCellTextTable,
24364
- LongColumnTextTable: LongColumnTextTable,
24365
- EmptyTable: EmptyTable,
24366
- LoadingTable: LoadingTable,
24367
- FullRewardsTable: FullRewardsTable
24501
+ __proto__: null,
24502
+ 'default': ReferralTable_stories,
24503
+ SimpleUserTable: SimpleUserTable,
24504
+ HiddenLabelsTable: HiddenLabelsTable,
24505
+ CustomButtonTextTable: CustomButtonTextTable,
24506
+ FullUserTable: FullUserTable,
24507
+ LongCellTextTable: LongCellTextTable,
24508
+ LongColumnTextTable: LongColumnTextTable,
24509
+ EmptyTable: EmptyTable,
24510
+ LoadingTable: LoadingTable,
24511
+ FullRewardsTable: FullRewardsTable
24368
24512
  });
24369
24513
 
24370
24514
  const ReferralTableCell_stories = {
@@ -24430,14 +24574,14 @@ const RewardsCell = () => {
24430
24574
  };
24431
24575
 
24432
24576
  const ReferralTableCell$1 = /*#__PURE__*/Object.freeze({
24433
- __proto__: null,
24434
- 'default': ReferralTableCell_stories,
24435
- TableCell: TableCell,
24436
- TableUserCell: TableUserCell,
24437
- EmptyCell: EmptyCell$1,
24438
- StatusCell: StatusCell,
24439
- DateCell: DateCell,
24440
- RewardsCell: RewardsCell
24577
+ __proto__: null,
24578
+ 'default': ReferralTableCell_stories,
24579
+ TableCell: TableCell,
24580
+ TableUserCell: TableUserCell,
24581
+ EmptyCell: EmptyCell$1,
24582
+ StatusCell: StatusCell,
24583
+ DateCell: DateCell,
24584
+ RewardsCell: RewardsCell
24441
24585
  });
24442
24586
 
24443
24587
  const UserName_stories = {
@@ -24455,10 +24599,10 @@ const Username = () => {
24455
24599
  };
24456
24600
 
24457
24601
  const UserName = /*#__PURE__*/Object.freeze({
24458
- __proto__: null,
24459
- 'default': UserName_stories,
24460
- DemoData: DemoData,
24461
- Username: Username
24602
+ __proto__: null,
24603
+ 'default': UserName_stories,
24604
+ DemoData: DemoData,
24605
+ Username: Username
24462
24606
  });
24463
24607
 
24464
24608
  const PasswordField_stories = {
@@ -24502,11 +24646,11 @@ const ValidationError = () => {
24502
24646
  };
24503
24647
 
24504
24648
  const PasswordField = /*#__PURE__*/Object.freeze({
24505
- __proto__: null,
24506
- 'default': PasswordField_stories,
24507
- Start: Start,
24508
- EmptyError: EmptyError,
24509
- ValidationError: ValidationError
24649
+ __proto__: null,
24650
+ 'default': PasswordField_stories,
24651
+ Start: Start,
24652
+ EmptyError: EmptyError,
24653
+ ValidationError: ValidationError
24510
24654
  });
24511
24655
 
24512
24656
  /**
@@ -25646,21 +25790,21 @@ const ProgressBarStepsRepeatableFinite = () => {
25646
25790
  };
25647
25791
 
25648
25792
  const TaskCard$2 = /*#__PURE__*/Object.freeze({
25649
- __proto__: null,
25650
- 'default': TaskCard_stories,
25651
- TaskCard: TaskCard$1,
25652
- TaskCardNotRepeatable: TaskCardNotRepeatable,
25653
- TaskCardRepeatable: TaskCardRepeatable,
25654
- TaskCardRepeatableFinite: TaskCardRepeatableFinite,
25655
- TaskCardEndDate: TaskCardEndDate,
25656
- TaskCardLoading: TaskCardLoading,
25657
- TaskCardNotStarted: TaskCardNotStarted,
25658
- TaskCardEnded: TaskCardEnded,
25659
- ProgressBar: ProgressBar$1,
25660
- ProgressBarSteps: ProgressBarSteps,
25661
- ProgressBarRepeatable: ProgressBarRepeatable,
25662
- ProgressBarStepsRepeatable: ProgressBarStepsRepeatable,
25663
- ProgressBarStepsRepeatableFinite: ProgressBarStepsRepeatableFinite
25793
+ __proto__: null,
25794
+ 'default': TaskCard_stories,
25795
+ TaskCard: TaskCard$1,
25796
+ TaskCardNotRepeatable: TaskCardNotRepeatable,
25797
+ TaskCardRepeatable: TaskCardRepeatable,
25798
+ TaskCardRepeatableFinite: TaskCardRepeatableFinite,
25799
+ TaskCardEndDate: TaskCardEndDate,
25800
+ TaskCardLoading: TaskCardLoading,
25801
+ TaskCardNotStarted: TaskCardNotStarted,
25802
+ TaskCardEnded: TaskCardEnded,
25803
+ ProgressBar: ProgressBar$1,
25804
+ ProgressBarSteps: ProgressBarSteps,
25805
+ ProgressBarRepeatable: ProgressBarRepeatable,
25806
+ ProgressBarStepsRepeatable: ProgressBarStepsRepeatable,
25807
+ ProgressBarStepsRepeatableFinite: ProgressBarStepsRepeatableFinite
25664
25808
  });
25665
25809
 
25666
25810
  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";
@@ -28730,16 +28874,16 @@ function DefaultTemplateView(props) {
28730
28874
  gridTemplateColumns: "repeat(9, 80px)",
28731
28875
  gridGap: "10px",
28732
28876
  } },
28733
- h$1("button", { onClick: () => rn.push("/") }, "Dashboard"),
28734
- props.leadSubmit && (h$1("button", { onClick: () => rn.push("/refer") }, "Submit a Referral")),
28735
- h$1("button", { onClick: () => rn.push("/activity") }, "Activity"),
28736
- h$1("button", { onClick: () => rn.push("/editProfile") }, "Edit Profile"),
28737
- h$1("button", { onClick: () => rn.push("/login") }, "Login"),
28738
- h$1("button", { onClick: () => rn.push("/register") }, "Register"),
28739
- h$1("button", { onClick: () => rn.push("/emailVerification") }, "Email Verification"),
28740
- h$1("button", { onClick: () => rn.push("/verifyEmail") }, "Verify Email"),
28741
- h$1("button", { onClick: () => rn.push("/forgotPassword") }, "Forgot Password"),
28742
- h$1("button", { onClick: () => rn.push("/resetPassword") }, "Reset Password")),
28877
+ h$1("button", { onClick: () => mn.push("/") }, "Dashboard"),
28878
+ props.leadSubmit && (h$1("button", { onClick: () => mn.push("/refer") }, "Submit a Referral")),
28879
+ h$1("button", { onClick: () => mn.push("/activity") }, "Activity"),
28880
+ h$1("button", { onClick: () => mn.push("/editProfile") }, "Edit Profile"),
28881
+ h$1("button", { onClick: () => mn.push("/login") }, "Login"),
28882
+ h$1("button", { onClick: () => mn.push("/register") }, "Register"),
28883
+ h$1("button", { onClick: () => mn.push("/emailVerification") }, "Email Verification"),
28884
+ h$1("button", { onClick: () => mn.push("/verifyEmail") }, "Verify Email"),
28885
+ h$1("button", { onClick: () => mn.push("/forgotPassword") }, "Forgot Password"),
28886
+ h$1("button", { onClick: () => mn.push("/resetPassword") }, "Reset Password")),
28743
28887
  h$1("br", null),
28744
28888
  h$1("div", { innerHTML: states.previewTemplate })));
28745
28889
  }
@@ -28812,24 +28956,24 @@ const VerifyEmail = createHookStory(() => {
28812
28956
  });
28813
28957
 
28814
28958
  const PortalTemplates = /*#__PURE__*/Object.freeze({
28815
- __proto__: null,
28816
- 'default': PortalTemplates_stories,
28817
- DefaultPortal: DefaultPortal,
28818
- MultiProgramPortal: MultiProgramPortal,
28819
- LeadSubmitPortal: LeadSubmitPortal,
28820
- Login: Login,
28821
- ForgotPassword: ForgotPassword,
28822
- Register: Register,
28823
- Dashboard: Dashboard$1,
28824
- LeadSubmitIframe: LeadSubmitIframe,
28825
- Activity: Activity$1,
28826
- EditProfile: EditProfile$3,
28827
- ResetPassword: ResetPassword,
28828
- EmailVerification: EmailVerification,
28829
- EmailVerified: EmailVerified,
28830
- Widget: Widget,
28831
- ResetPasswordEmail: ResetPasswordEmail,
28832
- VerifyEmail: VerifyEmail
28959
+ __proto__: null,
28960
+ 'default': PortalTemplates_stories,
28961
+ DefaultPortal: DefaultPortal,
28962
+ MultiProgramPortal: MultiProgramPortal,
28963
+ LeadSubmitPortal: LeadSubmitPortal,
28964
+ Login: Login,
28965
+ ForgotPassword: ForgotPassword,
28966
+ Register: Register,
28967
+ Dashboard: Dashboard$1,
28968
+ LeadSubmitIframe: LeadSubmitIframe,
28969
+ Activity: Activity$1,
28970
+ EditProfile: EditProfile$3,
28971
+ ResetPassword: ResetPassword,
28972
+ EmailVerification: EmailVerification,
28973
+ EmailVerified: EmailVerified,
28974
+ Widget: Widget,
28975
+ ResetPasswordEmail: ResetPasswordEmail,
28976
+ VerifyEmail: VerifyEmail
28833
28977
  });
28834
28978
 
28835
28979
  const ProgramMenu_stories = {
@@ -28870,12 +29014,12 @@ const ProgramMenuWithSwitch = createHookStory(() => {
28870
29014
  });
28871
29015
 
28872
29016
  const ProgramMenu$1 = /*#__PURE__*/Object.freeze({
28873
- __proto__: null,
28874
- 'default': ProgramMenu_stories,
28875
- OneProgram: OneProgram,
28876
- TwoProgram: TwoProgram,
28877
- FiveProgram: FiveProgram,
28878
- ProgramMenuWithSwitch: ProgramMenuWithSwitch
29017
+ __proto__: null,
29018
+ 'default': ProgramMenu_stories,
29019
+ OneProgram: OneProgram,
29020
+ TwoProgram: TwoProgram,
29021
+ FiveProgram: FiveProgram,
29022
+ ProgramMenuWithSwitch: ProgramMenuWithSwitch
28879
29023
  });
28880
29024
 
28881
29025
  const PoweredByImg_stories = {
@@ -28892,11 +29036,11 @@ const CustomWidthAndHeight = () => {
28892
29036
  };
28893
29037
 
28894
29038
  const PoweredByImg = /*#__PURE__*/Object.freeze({
28895
- __proto__: null,
28896
- 'default': PoweredByImg_stories,
28897
- Default: Default$a,
28898
- CustomColor: CustomColor,
28899
- CustomWidthAndHeight: CustomWidthAndHeight
29039
+ __proto__: null,
29040
+ 'default': PoweredByImg_stories,
29041
+ Default: Default$a,
29042
+ CustomColor: CustomColor,
29043
+ CustomWidthAndHeight: CustomWidthAndHeight
28900
29044
  });
28901
29045
 
28902
29046
  const scenario$6 = "Feature: Portal Footer\r\n\r\n Background: A user is viewing the portal\r\n Given a hosted portal\r\n And a user is viewing the portal\r\n And the portal has a footer\r\n\r\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\r\n Given the footer has prop \"terms-link\" with value \"https://example.com/terms\"\r\n And prop \"terms-text\" with value \"Terms and Conditions\"\r\n And prop \"faq-link\" with value \"https://example.com/FAQ\"\r\n And prop \"faq-text\" with value \"Visit FAQ\"\r\n When a user clicks on the \"Visit FAQ\" link\r\n Then they will be redirected to \"https://example.com/FAQ\" in a new page\r\n When they go back to the portal\r\n And click on the \"Terms and Conditions\" link\r\n Then they will be redirected to \"https://example.com/terms\" in a new page\r\n\r\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\r\n Given the footer does not have <linkProp>\r\n But it <mayHave> <textProp> with <value>\r\n Then the <link> will not be shown in the footer\r\n Examples:\r\n | linkProp | mayHave | textProp | value | link |\r\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\r\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\r\n | terms-link | doesn't have | | | T&C Link |\r\n | faq-link | doesn't have | | | FAQ Link |\r\n\r\n Scenario Outline: The support email and text is configurable but has a default\r\n Given the footer <mayHave> <emailPropWithValue>\r\n And the footer <mayAlsoHave> <textPropWithValue>\r\n Then the footer's support email text is <renderedEmailText>\r\n And the email address will be a mailto link with <mailtoEmail>\r\n When the user clicks on the email address mailto Link\r\n Then the users preferred email client will open with a draft email to <mailtoEmail>\r\n Examples:\r\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\r\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\r\n | doesn't have | N/A | doesn't have | N/A | support@example.com | For program support, contact support@example.com |\r\n\r\n Scenario Outline: Powered by SaaSquatch is shown by default\r\n Given the footer <mayHaveProp> \"show-powered-by\" with <value>\r\n Then the powered by SaaSquatch image <mayBeShown>\r\n Examples:\r\n | mayHaveProp | value | mayBeShown |\r\n | has prop | true | is shown |\r\n | has prop | false | isn't shown |\r\n | has prop | test | is shown |\r\n | has prop | | is shown |\r\n | doesn't have prop | | is shown |\r\n\r\n Scenario: Powered By Saasquatch links out to \"https://saasquatch.com\"\r\n Given the footer has the powered by SaaSquatch image\r\n When a user clicks on it\r\n Then they will be redirected to \"https://saasquatch.com\" in a new page";
@@ -28924,13 +29068,13 @@ const FooterWithTermsAndFAQ = () => (h$1(PortalFooterView, Object.assign({}, def
28924
29068
  const FooterNoPoweredBy = () => (h$1(PortalFooterView, Object.assign({}, defaultProps$9, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", showPoweredBy: false })));
28925
29069
 
28926
29070
  const PortalFooter = /*#__PURE__*/Object.freeze({
28927
- __proto__: null,
28928
- 'default': PortalFooter_stories,
28929
- DefaultFooter: DefaultFooter,
28930
- FooterWithTerms: FooterWithTerms,
28931
- FooterWithFAQ: FooterWithFAQ,
28932
- FooterWithTermsAndFAQ: FooterWithTermsAndFAQ,
28933
- FooterNoPoweredBy: FooterNoPoweredBy
29071
+ __proto__: null,
29072
+ 'default': PortalFooter_stories,
29073
+ DefaultFooter: DefaultFooter,
29074
+ FooterWithTerms: FooterWithTerms,
29075
+ FooterWithFAQ: FooterWithFAQ,
29076
+ FooterWithTermsAndFAQ: FooterWithTermsAndFAQ,
29077
+ FooterNoPoweredBy: FooterNoPoweredBy
28934
29078
  });
28935
29079
 
28936
29080
  const scenario$7 = "Feature: Hero Unit\r\n\r\n Background: A portal with a hero unit exists\r\n Given a hosted portal\r\n And the portal has hero unit on the login page\r\n And a user is viewing the login page\r\n\r\n Scenario: The hero unit defaults to a single column layout\r\n Given a hero unit does not have a \"columns\" prop\r\n But the following html is wrapped by the hero unit\r\n \"\"\"\r\n <sqm-portal-login></sqm-portal-login>\r\n <div slot=\"secondary-column\">\r\n <h1 style=\"text-align:center\">Get Referring!</h1>\r\n <p style=\"text-align:center\">\r\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\r\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\r\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\r\n aliquip ex ea commodo consequat. Duis aute irure dolor in\r\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\r\n pariatur.\r\n </p>\r\n </div>\r\n \"\"\"\r\n Then only a single column will be displayed\r\n And within it will be the login component\r\n\r\n Scenario Outline: The hero unit supports single or dual column layouts\r\n Given a hero unit with prop \"columns\" having <columnValue>\r\n And it wraps <html>\r\n Then the hero unit displays <columnValue> columns\r\n Examples:\r\n | columnValue | html |\r\n | 1 | <h1>Column 1!</h1> |\r\n | 2 | <h1>Column 1!</h1><div slot=\"secondary-column\"><h1 style=\"text-align:center\">Column 2!</h1></div> |\r\n\r\n Scenario: HTML to be displayed in the second column comes from the \"secondary-column\" slot\r\n Given a hero unit with \"columns\" \"2\"\r\n And the following html\r\n \"\"\"\r\n <h1>Column 1!</h1>\r\n <div>\r\n <h1 style=\"text-align:center\">Column 2!</h1>\r\n </div>\r\n \"\"\"\r\n When the hero unit is rendered\r\n Then only one column is displayed with content\r\n And column 1 will contain the \"Column 1!\" text\r\n And column 1 will contain the \"Column 2!\" text\r\n When the div for column two is updated to have 'slot=\"secondary-column\"'\r\n Then the two columns are displayed with content\r\n And column 1 will contain the \"Column 1!\" text\r\n And column 2 will contain the \"Column 2!\" text\r\n\r\n Scenario Outline: A background for the hero unit can be set as an image or colour\r\n Given a hero unit with <backgroundPropValue>\r\n Then the background will be <background>\r\n Examples:\r\n | background | background |\r\n | https://images.unsplash.com/photo-1599676821464-3555954838d | image of misty mountains |\r\n | LightSlateGrey | light slate grey |\r\n | #00FF00 | green |\r\n | rgb(128,0,128) | purple |\r\n\r\n Scenario Outline: Wrap Direction can be configured for mobile experiences\r\n Given a hero unit with the following HTML\r\n \"\"\"\r\n <h1>Column 1!</h1>\r\n <div slot=\"secondary-column\">\r\n <h1 style=\"text-align:center\">Column 2!</h1>\r\n </div>\r\n \"\"\"\r\n And prop \"wrap-direction\" has <value>\r\n When the window width is less than 600px\r\n Then the two columns will stack\r\n And <column> will be on top\r\n Examples:\r\n | value | column |\r\n | wrap | 1 |\r\n | wrap-reverse | 2 |\r\n | | 1 |";
@@ -29102,17 +29246,17 @@ const TwoColumnLoginWithImgElement = () => {
29102
29246
  };
29103
29247
 
29104
29248
  const Hero = /*#__PURE__*/Object.freeze({
29105
- __proto__: null,
29106
- 'default': Hero_stories,
29107
- LoginOneColumn: LoginOneColumn,
29108
- LoginOneColumnWithColor: LoginOneColumnWithColor,
29109
- LoginOneColumnWithImage: LoginOneColumnWithImage,
29110
- TwoColumnLoginLargePadding: TwoColumnLoginLargePadding,
29111
- TwoColumnLoginMediumPadding: TwoColumnLoginMediumPadding,
29112
- TwoColumnLoginSmallPadding: TwoColumnLoginSmallPadding,
29113
- TwoColumnLoginNoPadding: TwoColumnLoginNoPadding,
29114
- TwoColumnLoginReverseWrap: TwoColumnLoginReverseWrap,
29115
- TwoColumnLoginWithImgElement: TwoColumnLoginWithImgElement
29249
+ __proto__: null,
29250
+ 'default': Hero_stories,
29251
+ LoginOneColumn: LoginOneColumn,
29252
+ LoginOneColumnWithColor: LoginOneColumnWithColor,
29253
+ LoginOneColumnWithImage: LoginOneColumnWithImage,
29254
+ TwoColumnLoginLargePadding: TwoColumnLoginLargePadding,
29255
+ TwoColumnLoginMediumPadding: TwoColumnLoginMediumPadding,
29256
+ TwoColumnLoginSmallPadding: TwoColumnLoginSmallPadding,
29257
+ TwoColumnLoginNoPadding: TwoColumnLoginNoPadding,
29258
+ TwoColumnLoginReverseWrap: TwoColumnLoginReverseWrap,
29259
+ TwoColumnLoginWithImgElement: TwoColumnLoginWithImgElement
29116
29260
  });
29117
29261
 
29118
29262
  const scenario$8 = "@owner:sam\r\n@author:sam\r\n\r\nFeature: Referral Iframe\r\n\r\n Used to provide an external form for submitting referral leads using the current user's referral code\r\n\r\n Background: A user is logged in\r\n Given there is a logged in user\r\n\r\n @motivating\r\n Scenario: Referral code is passed to the iframe as a query parameter\r\n Given the \"iframe-src\" is \"https://example.com\"\r\n And the user has navigated to \"/refer\"\r\n And the user's referral code is \"BOBBYREFER\"\r\n When the iframe content is loaded\r\n Then the iframe url will be \"https://example.com?rsCode=BOBBYREFER\"\r\n\r\n @ui\r\n Scenario Outline: The height and width of the iFrame can be controlled via props\r\n Given the \"iframe-src\" is \"https://example.com\"\r\n And the iframe content is 1000x1000\r\n And the \"iframe-height\" is set to <heightValue>\r\n And the \"iframe-width\" is set to <widthValue>\r\n Then the content of the iframe will be displayed with scrollbars\r\n And the dimension of the iFrame displayed will be 500x500\r\n When the \"iframe-height\" is set to <heightValue>\r\n And the \"iframe-width\" is set to <widthValue>\r\n Then the full content of the iframe will be displayed on the page\r\n And the dimension of the iFrame displayed will be 1000x1000\r\n Examples:\r\n | heightValue | widthValue |\r\n | 500px | 500px |\r\n | 50% | 50% |\r\n\r\n @minutae\r\n Scenario Outline: The iFrame will fail fast if a iFrame source isn't provided\r\n Given \"iframe-src\" <mayBeAnAttribute>\r\n And it <mayHaveValue>\r\n When a user views the referral iFrame component\r\n Then an alert with an error message is displayed in place of the iFrame\r\n And it has a details section\r\n When \"More details\" is clicked\r\n Then the following information will be displayed\r\n | component being used |\r\n | missing attribute(s) |\r\n\r\n Examples:\r\n | mayBeAnAttribute | mayHaveValue |\r\n | is not an attribute | N/A |\r\n | is an attribute | \"\" |\r\n | is an attribute | |";
@@ -29145,10 +29289,10 @@ const ReferralIframeError = () => {
29145
29289
  };
29146
29290
 
29147
29291
  const ReferralIframe$1 = /*#__PURE__*/Object.freeze({
29148
- __proto__: null,
29149
- 'default': ReferralIframe_stories,
29150
- ReferralIframe: ReferralIframe,
29151
- ReferralIframeError: ReferralIframeError
29292
+ __proto__: null,
29293
+ 'default': ReferralIframe_stories,
29294
+ ReferralIframe: ReferralIframe,
29295
+ ReferralIframeError: ReferralIframeError
29152
29296
  });
29153
29297
 
29154
29298
  const scenario$9 = "@owner:sam\r\n@author:sam\r\n\r\nFeature: Name Fields\r\n\r\n Fields to be used to fill the first and last name of a user during registration\r\n\r\n Background:\r\n Given the current page is \"/register\"\r\n\r\n @motivating\r\n Scenario: Both first name and last name are required\r\n Given the email field has valid input\r\n And the password field has valid input\r\n And first name field is empty\r\n And last name field is empty\r\n When register is clicked\r\n Then the name fields will be highlighted in red\r\n And the error messages will say \"Cannot be empty\"\r\n\r\n @motivating\r\n Scenario: First and last name are upserted with the SaaSquatch user\r\n Given all fields have been filled with data\r\n | firstName | lastName | email | password |\r\n | Bob | Testerson | bob@example.com | SecurePassword1 |\r\n When register is clicked\r\n Then the email verification page will be loaded\r\n And the user will be upserted\r\n And the SaaSquatch user will contain data\r\n | firstName | lastName | email |\r\n | Bob | Testerson | bob@example.com |\r\n\r\n";
@@ -29188,13 +29332,13 @@ const NameFieldsWithErrors = () => {
29188
29332
  };
29189
29333
 
29190
29334
  const NameFields$1 = /*#__PURE__*/Object.freeze({
29191
- __proto__: null,
29192
- 'default': NameFields_stories,
29193
- NameFields: NameFields,
29194
- NameFieldsWithErrors: NameFieldsWithErrors
29335
+ __proto__: null,
29336
+ 'default': NameFields_stories,
29337
+ NameFields: NameFields,
29338
+ NameFieldsWithErrors: NameFieldsWithErrors
29195
29339
  });
29196
29340
 
29197
- const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false) => ({
29341
+ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false, fueltank = null) => ({
29198
29342
  states: {
29199
29343
  content: {
29200
29344
  text: {
@@ -29207,15 +29351,18 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
29207
29351
  loading: loading,
29208
29352
  selectedItem: selectedItem,
29209
29353
  selectedStep: selectedStep,
29354
+ open: false,
29210
29355
  },
29211
29356
  data: {
29212
29357
  exchangeList: data,
29358
+ fuelTankCode: fueltank,
29213
29359
  },
29214
29360
  callbacks: {
29215
29361
  exchangeReward: null,
29216
29362
  resetState: null,
29217
29363
  setStage: null,
29218
29364
  setExchangeState: null,
29365
+ copyFuelTankCode: null,
29219
29366
  refs: null,
29220
29367
  },
29221
29368
  refs: null,
@@ -29264,12 +29411,12 @@ const name = (props) => ({
29264
29411
  const fixedValue = (props) => ({
29265
29412
  prettySourceValue: props,
29266
29413
  });
29267
- const variableValue = (min, max, text) => ({
29414
+ const variableValue = (min, max, unit) => ({
29268
29415
  ruleType: "VARIABLE_CREDIT_REWARD",
29269
29416
  sourceMinValue: min,
29270
- prettySourceMinValue: min + " " + text,
29417
+ prettySourceMinValue: min + " " + unit,
29271
29418
  sourceMaxValue: max,
29272
- prettySourceMaxValue: max + " " + text,
29419
+ prettySourceMaxValue: max + " " + unit,
29273
29420
  });
29274
29421
  const data = [
29275
29422
  {
@@ -29283,7 +29430,7 @@ const data = [
29283
29430
  ...selected,
29284
29431
  ...name("Visa® Prepaid Card USD"),
29285
29432
  ...imageUrl("https://i.imgur.com/veHErQX.png"),
29286
- ...variableValue(20, 80, "SaaSquatch Points"),
29433
+ ...variableValue(20, 80, "Points"),
29287
29434
  },
29288
29435
  {
29289
29436
  ...baseReward$2,
@@ -29301,7 +29448,7 @@ const data = [
29301
29448
  ...baseReward$2,
29302
29449
  ...name("Variable amount of store credit"),
29303
29450
  ...imageUrl("https://i.imgur.com/Jn2fE0s.png"),
29304
- ...variableValue(20, 100, "SaaSquatch Points"),
29451
+ ...variableValue(20, 100, "Points"),
29305
29452
  },
29306
29453
  {
29307
29454
  ...baseReward$2,
@@ -29313,9 +29460,9 @@ const data = [
29313
29460
  {
29314
29461
  ...baseReward$2,
29315
29462
  ...usTax,
29316
- ...name("$1000 Store credit"),
29463
+ ...name("$1000 Store credit with a really super long name in the front page"),
29317
29464
  ...imageUrl("https://i.imgur.com/y9HSls1.png"),
29318
- ...fixedValue("2000 SaaSquatch Points"),
29465
+ ...fixedValue("2000 SaaSquatch Long Points"),
29319
29466
  },
29320
29467
  {
29321
29468
  ...baseReward$2,
@@ -29334,7 +29481,7 @@ const rewardExchangeSelected = {
29334
29481
  ...selected,
29335
29482
  ...name("Visa® Prepaid Card USD"),
29336
29483
  ...imageUrl("https://i.imgur.com/veHErQX.png"),
29337
- ...variableValue(20, 80, "SaaSquatch Points"),
29484
+ ...variableValue(20, 80, "Points"),
29338
29485
  }),
29339
29486
  };
29340
29487
  const baseStep = (dst, dstUnit, src, srcUnit, available = true) => ({
@@ -29351,13 +29498,13 @@ const chooseAmountVariable = {
29351
29498
  ...baseReward$2,
29352
29499
  ...name("Visa® Prepaid Card USD"),
29353
29500
  ...imageUrl("https://i.imgur.com/veHErQX.png"),
29354
- ...variableValue(20, 80, "SaaSquatch Points"),
29501
+ ...variableValue(20, 80, "Points"),
29355
29502
  steps: [
29356
- baseStep(20, "$", 40, "SaaSquatch Points"),
29357
- baseStep(30, "$", 60, "SaaSquatch Points"),
29358
- baseStep(40, "$", 80, "SaaSquatch Points"),
29359
- baseStep(50, "$", 100, "SaaSquatch Points"),
29360
- baseStep(60, "$", 120, "SaaSquatch Points"),
29503
+ baseStep(20, "$", 40, "Points"),
29504
+ baseStep(30, "$", 60, "Points"),
29505
+ baseStep(40, "$", 80, "Points"),
29506
+ baseStep(50, "$", 100, "Points"),
29507
+ baseStep(60, "$", 120, "Points"),
29361
29508
  ],
29362
29509
  }),
29363
29510
  };
@@ -29382,16 +29529,16 @@ const confirmVariable = {
29382
29529
  ...baseReward$2,
29383
29530
  ...name("Visa® Prepaid Card USD"),
29384
29531
  ...imageUrl("https://i.imgur.com/veHErQX.png"),
29385
- ...variableValue(20, 80, "SaaSquatch Points"),
29386
- }, baseStep(20, "$", 40, "SaaSquatch Points")),
29532
+ ...variableValue(20, 80, "Points"),
29533
+ }, baseStep(20, "$", 40, "Points")),
29387
29534
  };
29388
29535
  const error$1 = {
29389
29536
  ...baseResponse(data, "confirmation", {
29390
29537
  ...baseReward$2,
29391
29538
  ...name("Visa® Prepaid Card USD"),
29392
29539
  ...imageUrl("https://i.imgur.com/veHErQX.png"),
29393
- ...variableValue(20, 80, "SaaSquatch Points"),
29394
- }, baseStep(20, "$", 40, "SaaSquatch Points"), true),
29540
+ ...variableValue(20, 80, "Points"),
29541
+ }, baseStep(20, "$", 40, "Points"), true),
29395
29542
  };
29396
29543
  const success = {
29397
29544
  ...baseResponse(data, "success", {
@@ -29401,6 +29548,22 @@ const success = {
29401
29548
  ...fixedValue("30 SaaSquatch Points"),
29402
29549
  }),
29403
29550
  };
29551
+ const success2 = {
29552
+ ...baseResponse(data, "success", {
29553
+ ...baseReward$2,
29554
+ ...name("Visa® Prepaid Card USD"),
29555
+ ...imageUrl("https://i.imgur.com/93BvEgH.png"),
29556
+ ...variableValue(20, 80, "Points"),
29557
+ }, baseStep(20, "$", 40, "Points")),
29558
+ };
29559
+ const success3 = {
29560
+ ...baseResponse(data, "success", {
29561
+ ...baseReward$2,
29562
+ ...name("A very exclusive gift box"),
29563
+ ...imageUrl("https://i.imgur.com/93BvEgH.png"),
29564
+ ...fixedValue("30 SaaSquatch Points"),
29565
+ }, undefined, undefined, undefined, "4ah2-hh46-gk7r"),
29566
+ };
29404
29567
  const loading = {
29405
29568
  ...baseResponse(null, "chooseReward", null, null, false, true),
29406
29569
  };
@@ -29409,8 +29572,8 @@ const RewardExchangeList_stories = {
29409
29572
  title: "Components/Reward Exchange List",
29410
29573
  };
29411
29574
  const StoryBase = (props) => () => {
29412
- return h$1(Resizer, null,
29413
- h$1(RewardExchangeView, Object.assign({}, props)));
29575
+ return (h$1(Resizer, null,
29576
+ h$1(RewardExchangeView, Object.assign({}, props))));
29414
29577
  };
29415
29578
  const ChooseReward = StoryBase(rewardExchange);
29416
29579
  const ChooseRewardSelected = StoryBase(rewardExchangeSelected);
@@ -29420,38 +29583,79 @@ const Confirm = StoryBase(confirmFixed);
29420
29583
  const ConfirmVariable = StoryBase(confirmVariable);
29421
29584
  const Error$3 = StoryBase(error$1);
29422
29585
  const Success$2 = StoryBase(success);
29586
+ const SuccessVariable = StoryBase(success2);
29587
+ const SuccessPromo = StoryBase(success3);
29423
29588
  const Loading$3 = StoryBase(loading);
29424
29589
 
29425
29590
  const RewardExchangeList = /*#__PURE__*/Object.freeze({
29426
- __proto__: null,
29427
- 'default': RewardExchangeList_stories,
29428
- ChooseReward: ChooseReward,
29429
- ChooseRewardSelected: ChooseRewardSelected,
29430
- ChooseAmount: ChooseAmount,
29431
- ChooseAmountVariable: ChooseAmountVariable,
29432
- Confirm: Confirm,
29433
- ConfirmVariable: ConfirmVariable,
29434
- Error: Error$3,
29435
- Success: Success$2,
29436
- Loading: Loading$3
29591
+ __proto__: null,
29592
+ 'default': RewardExchangeList_stories,
29593
+ ChooseReward: ChooseReward,
29594
+ ChooseRewardSelected: ChooseRewardSelected,
29595
+ ChooseAmount: ChooseAmount,
29596
+ ChooseAmountVariable: ChooseAmountVariable,
29597
+ Confirm: Confirm,
29598
+ ConfirmVariable: ConfirmVariable,
29599
+ Error: Error$3,
29600
+ Success: Success$2,
29601
+ SuccessVariable: SuccessVariable,
29602
+ SuccessPromo: SuccessPromo,
29603
+ Loading: Loading$3
29437
29604
  });
29438
29605
 
29439
29606
  const ProgramExplainer_stories = {
29440
29607
  title: "Components/Program Explainer",
29441
29608
  };
29442
- const DefaultProgramExplainerView = () => {
29443
- return ("asd"
29444
- // <ProgramExplainerView {...barProps}>
29445
- // <ProgramExplainerStepView {...item1Props} />
29446
- // <ProgramExplainerStepView {...item2Props} />
29447
- // </ProgramExplainerView>
29448
- );
29609
+ const props$2 = {
29610
+ header: "Klip Rewards",
29611
+ cardTitle: "Earn rewards with our loyalty program",
29612
+ description: "Earn points by completing tasks like uploading your first video or sharing videos with friends. Use your points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America.",
29613
+ color: "black",
29614
+ background: "#F3F0EC",
29615
+ };
29616
+ const steps1 = {
29617
+ cardTitle: "Invite your friends to Klip",
29618
+ description: "Earn up to $1200 in rewards for each referral",
29619
+ color: "white",
29620
+ background: "#5B3EDA",
29621
+ icon: "person-plus-fill",
29622
+ };
29623
+ const steps2 = {
29624
+ cardTitle: "If your friend signs up for a Klip Business plan",
29625
+ description: "Get a $50 VISA giftcard when they pay for their first month",
29626
+ color: "black",
29627
+ background: "#F3CC66",
29628
+ icon: "server",
29629
+ };
29630
+ const steps3 = {
29631
+ cardTitle: "If your friend signs up for a Klip Enterprise plan",
29632
+ description: "Get up to $1200 in rewards - a $200 VISA giftcard when our sales team qualifies them as a good fit for Klip, and a $1000 VISA giftcard when they become a paying customer",
29633
+ color: "black",
29634
+ background: "#D3CCF5",
29635
+ icon: "people-fill",
29636
+ };
29637
+ const OneStep = () => {
29638
+ return (h$1(ProgramExplainerView, Object.assign({}, props$2),
29639
+ h$1(ProgramExplainerStepView, Object.assign({}, steps1))));
29640
+ };
29641
+ const TwoSteps = () => {
29642
+ return (h$1(ProgramExplainerView, Object.assign({}, props$2),
29643
+ h$1(ProgramExplainerStepView, Object.assign({}, steps1)),
29644
+ h$1(ProgramExplainerStepView, Object.assign({}, steps2))));
29645
+ };
29646
+ const ThreeSteps = () => {
29647
+ return (h$1(ProgramExplainerView, Object.assign({}, props$2),
29648
+ h$1(ProgramExplainerStepView, Object.assign({}, steps1)),
29649
+ h$1(ProgramExplainerStepView, Object.assign({}, steps2)),
29650
+ h$1(ProgramExplainerStepView, Object.assign({}, steps3))));
29449
29651
  };
29450
29652
 
29451
29653
  const ProgramExplainer = /*#__PURE__*/Object.freeze({
29452
- __proto__: null,
29453
- 'default': ProgramExplainer_stories,
29454
- DefaultProgramExplainerView: DefaultProgramExplainerView
29654
+ __proto__: null,
29655
+ 'default': ProgramExplainer_stories,
29656
+ OneStep: OneStep,
29657
+ TwoSteps: TwoSteps,
29658
+ ThreeSteps: ThreeSteps
29455
29659
  });
29456
29660
 
29457
29661
  const ProgramExplainerStep_stories = {
@@ -29459,10 +29663,11 @@ const ProgramExplainerStep_stories = {
29459
29663
  };
29460
29664
  const Example1 = () => {
29461
29665
  const props = {
29462
- title: "Invite your friends to Klip",
29666
+ cardTitle: "Invite your friends to Klip",
29463
29667
  description: "Earn up to $1200 in rewards for each referral",
29464
29668
  color: "white",
29465
- background: "#5B3EDA"
29669
+ background: "#5B3EDA",
29670
+ icon: "person-plus-fill",
29466
29671
  };
29467
29672
  return h$1(ProgramExplainerStepView, Object.assign({}, props));
29468
29673
  };
@@ -29475,27 +29680,28 @@ const Example1 = () => {
29475
29680
  // };
29476
29681
 
29477
29682
  const ProgramExplainerStep = /*#__PURE__*/Object.freeze({
29478
- __proto__: null,
29479
- 'default': ProgramExplainerStep_stories,
29480
- Example1: Example1
29683
+ __proto__: null,
29684
+ 'default': ProgramExplainerStep_stories,
29685
+ Example1: Example1
29481
29686
  });
29482
29687
 
29483
29688
  const SqmBrand_stories = {
29484
29689
  title: "Components/Brand",
29485
29690
  };
29486
29691
  const SampleComponents = () => (h$1("div", { style: { padding: "10px", border: "5px solid #EEE" } },
29487
- h$1("sl-button", { type: "default" }, "Default"),
29488
- h$1("sl-button", { type: "primary" }, "Primary"),
29489
- h$1("sl-button", { type: "success" }, "Success"),
29490
- h$1("sl-button", { type: "neutral" }, "Neutral"),
29491
- h$1("sl-button", { type: "warning" }, "Warning"),
29492
- h$1("sl-button", { type: "danger" }, "Danger"),
29493
- h$1("br", null),
29494
- h$1("sl-badge", { type: "primary" }, "Primary"),
29495
- h$1("sl-badge", { type: "success" }, "Success"),
29496
- h$1("sl-badge", { type: "neutral" }, "Neutral"),
29497
- h$1("sl-badge", { type: "warning" }, "Warning"),
29498
- h$1("sl-badge", { type: "danger" }, "Danger"),
29692
+ h$1("div", { style: { display: "flex", gap: "5px", padding: "5px" } },
29693
+ h$1("sl-button", { type: "default" }, "Default"),
29694
+ h$1("sl-button", { type: "primary" }, "Primary"),
29695
+ h$1("sl-button", { type: "success" }, "Success"),
29696
+ h$1("sl-button", { type: "neutral" }, "Neutral"),
29697
+ h$1("sl-button", { type: "warning" }, "Warning"),
29698
+ h$1("sl-button", { type: "danger" }, "Danger")),
29699
+ h$1("div", { style: { display: "flex", gap: "5px", padding: "5px" } },
29700
+ h$1("sl-badge", { type: "primary" }, "Primary"),
29701
+ h$1("sl-badge", { type: "success" }, "Success"),
29702
+ h$1("sl-badge", { type: "neutral" }, "Neutral"),
29703
+ h$1("sl-badge", { type: "warning" }, "Warning"),
29704
+ h$1("sl-badge", { type: "danger" }, "Danger")),
29499
29705
  h$1("div", { class: "color-palette" },
29500
29706
  h$1("div", { class: "color-palette__name" },
29501
29707
  "Primary",
@@ -29547,19 +29753,37 @@ const Nested = () => {
29547
29753
  function ColorSwatch({ depth }) {
29548
29754
  return (h$1("div", { style: {
29549
29755
  backgroundColor: `var(--sl-color-primary-${depth})`,
29756
+ color: `var(--sl-color-neutral-${1000 - depth})`,
29550
29757
  width: "50px",
29551
29758
  height: "50px",
29552
29759
  display: "flex",
29553
29760
  justifyContent: "center",
29554
- alignItems: "center"
29761
+ alignItems: "center",
29555
29762
  } }, depth));
29556
- }
29763
+ }
29764
+ const Fonts = () => {
29765
+ return (h$1("div", null,
29766
+ h$1(SampleComponents, null),
29767
+ h$1("sqm-brand", { "brand-font": "Roboto" },
29768
+ "Roboto",
29769
+ h$1(SampleComponents, null)),
29770
+ h$1("sqm-brand", { "brand-font": "Open Sans" },
29771
+ "Open Sans",
29772
+ h$1(SampleComponents, null)),
29773
+ h$1("sqm-brand", { "brand-font": "Lato" },
29774
+ "Lato",
29775
+ h$1(SampleComponents, null)),
29776
+ h$1("sqm-brand", { "brand-font": "Oswald" },
29777
+ "Oswald",
29778
+ h$1(SampleComponents, null))));
29779
+ };
29557
29780
 
29558
29781
  const BrandStories = /*#__PURE__*/Object.freeze({
29559
- __proto__: null,
29560
- 'default': SqmBrand_stories,
29561
- Examples: Examples,
29562
- Nested: Nested
29782
+ __proto__: null,
29783
+ 'default': SqmBrand_stories,
29784
+ Examples: Examples,
29785
+ Nested: Nested,
29786
+ Fonts: Fonts
29563
29787
  });
29564
29788
 
29565
29789
  /**
@@ -29615,13 +29839,13 @@ const Klip = `
29615
29839
  `;
29616
29840
 
29617
29841
  const Themes = /*#__PURE__*/Object.freeze({
29618
- __proto__: null,
29619
- Default: Default$b,
29620
- Orangey: Orangey,
29621
- Netflix: Netflix,
29622
- SaaSquatchCorporate: SaaSquatchCorporate,
29623
- NYTimes: NYTimes,
29624
- Klip: Klip
29842
+ __proto__: null,
29843
+ Default: Default$b,
29844
+ Orangey: Orangey,
29845
+ Netflix: Netflix,
29846
+ SaaSquatchCorporate: SaaSquatchCorporate,
29847
+ NYTimes: NYTimes,
29848
+ Klip: Klip
29625
29849
  });
29626
29850
 
29627
29851
  function deepFreeze(obj) {
@@ -32481,8 +32705,8 @@ const GET_USER_NAME = gql `
32481
32705
  `;
32482
32706
  function useUserName(props) {
32483
32707
  var _a, _b, _c, _d, _e, _f, _g, _h;
32484
- const user = T$1();
32485
- const res = en(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
32708
+ const user = ne$1();
32709
+ const res = cn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
32486
32710
  const loading = res.loading;
32487
32711
  const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
32488
32712
  ? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`