@saasquatch/mint-components 1.4.2 → 1.5.0-100

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 (837) hide show
  1. package/CHANGELOG.md +90 -1
  2. package/dist/cjs/GenericTableView-8e84d356.js +115 -0
  3. package/dist/cjs/{jss-preset-default.esm-6304d24f.js → JSS-c65a40f1.js} +5 -3
  4. package/dist/cjs/ShadowViewAddon-44a75fcc.js +2630 -0
  5. package/dist/cjs/extends-08099afd.js +21 -0
  6. package/dist/cjs/{global-413d075c.js → global-6165db50.js} +359 -207
  7. package/dist/cjs/{index.module-2925fe3b.js → index.module-54724339.js} +52 -49
  8. package/dist/cjs/loader.cjs.js +6 -5
  9. package/dist/cjs/luxon-59ca7d19.js +8348 -0
  10. package/dist/cjs/mint-components.cjs.js +6 -5
  11. package/dist/cjs/{re-render-b1ad512d.js → re-render-2f8d0f37.js} +7 -7
  12. package/dist/cjs/{sqm-asset-card-view-07f86880.js → sqm-asset-card-view-d9ac6a95.js} +2 -3
  13. package/dist/cjs/sqm-asset-card.cjs.entry.js +8 -7
  14. package/dist/cjs/sqm-big-stat-view-e5dc0877.js +40 -0
  15. package/dist/cjs/sqm-big-stat.cjs.entry.js +10 -8
  16. package/dist/cjs/sqm-brand_30.cjs.entry.js +7322 -0
  17. package/dist/cjs/sqm-form-message.cjs.entry.js +31 -0
  18. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +9 -8
  19. package/dist/cjs/{sqm-hero-view-bb3d00a1.js → sqm-hero-view-a13795c0.js} +6 -7
  20. package/dist/cjs/sqm-hero.cjs.entry.js +7 -6
  21. package/dist/cjs/sqm-image_4.cjs.entry.js +196 -0
  22. package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +10 -0
  23. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +11 -13
  24. package/dist/cjs/{sqm-name-fields-view-24614ac7.js → sqm-name-fields-view-c95e4768.js} +2 -3
  25. package/dist/cjs/sqm-name-fields.cjs.entry.js +9 -8
  26. package/dist/cjs/{sqm-navigation-sidebar-item-view-1bad646a.js → sqm-navigation-sidebar-item-view-da648fbc.js} +7 -6
  27. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +10 -9
  28. package/dist/cjs/{sqm-navigation-sidebar-view-d06e1885.js → sqm-navigation-sidebar-view-36632c96.js} +2 -3
  29. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -4
  30. package/dist/cjs/sqm-password-field.cjs.entry.js +581 -0
  31. package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -5
  32. package/dist/cjs/{sqm-portal-container-view-d144735a.js → sqm-portal-container-view-fdfb3656.js} +9 -5
  33. package/dist/cjs/{sqm-portal-email-verification-view-eeb4ca62.js → sqm-portal-email-verification-view-65fa6592.js} +5 -6
  34. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -14
  35. package/dist/cjs/{sqm-portal-footer-view-08a2efd5.js → sqm-portal-footer-view-2fd67518.js} +3 -4
  36. package/dist/cjs/sqm-portal-footer.cjs.entry.js +9 -8
  37. package/dist/cjs/{sqm-portal-forgot-password-view-1704d285.js → sqm-portal-forgot-password-view-10c0b54f.js} +3 -4
  38. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +15 -14
  39. package/dist/cjs/sqm-portal-logout.cjs.entry.js +7 -6
  40. package/dist/cjs/{sqm-portal-profile-view-ce86369e.js → sqm-portal-profile-view-857aa16e.js} +5 -6
  41. package/dist/cjs/sqm-portal-profile.cjs.entry.js +19 -18
  42. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +10 -9
  43. package/dist/cjs/{sqm-portal-reset-password-view-4d78fd6d.js → sqm-portal-reset-password-view-1fdc957e.js} +3 -4
  44. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +18 -17
  45. package/dist/cjs/{sqm-portal-section-view-3b008930.js → sqm-portal-section-view-186a5f7e.js} +4 -6
  46. package/dist/cjs/{sqm-portal-verify-email-view-b595e302.js → sqm-portal-verify-email-view-4c78e231.js} +3 -4
  47. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +19 -18
  48. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1006 -0
  49. package/dist/cjs/sqm-refresh-button.cjs.entry.js +54 -0
  50. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +26 -0
  51. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +38 -0
  52. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1143 -0
  53. package/dist/cjs/{sqm-stat-container-view-ee7b00ff.js → sqm-stat-container-view-5b2db929.js} +3 -4
  54. package/dist/cjs/sqm-stat-container.cjs.entry.js +6 -5
  55. package/dist/cjs/sqm-stencilbook.cjs.entry.js +14612 -0
  56. package/dist/cjs/sqm-tab.cjs.entry.js +20 -0
  57. package/dist/cjs/sqm-tabs.cjs.entry.js +89 -0
  58. package/dist/cjs/{sqm-text-span-view-b5ae787b.js → sqm-text-span-view-f101dedf.js} +2 -3
  59. package/dist/cjs/sqm-text-span.cjs.entry.js +5 -4
  60. package/dist/cjs/{extends-0302d27d.js → stencil-hooks.module-87a1f4f7.js} +0 -19
  61. package/dist/cjs/use-callback-e754042f.js +7 -0
  62. package/dist/cjs/useChildElements-a68699b4.js +21 -0
  63. package/dist/cjs/{useDemoBigStat-d7a60992.js → useDemoBigStat-426e3319.js} +136 -65
  64. package/dist/cjs/useReferralTable-273bb515.js +355 -0
  65. package/dist/cjs/{utils-95e5317c.js → utils-01dbfd4a.js} +9 -0
  66. package/dist/collection/collection-manifest.json +59 -3
  67. package/dist/collection/{stories → components/sqm-asset-card}/AssetCard.stories.js +2 -2
  68. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +2 -4
  69. package/dist/collection/{stories → components/sqm-big-stat}/BigStat.stories.js +21 -3
  70. package/dist/collection/{stories → components/sqm-big-stat}/UseBigStat.stories.js +7 -4
  71. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +2 -4
  72. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
  73. package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -21
  74. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +3 -0
  75. package/dist/collection/components/sqm-brand/SqmBrand.stories.js +112 -0
  76. package/dist/collection/components/sqm-brand/sqm-brand.js +127 -0
  77. package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +232 -0
  78. package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +27 -0
  79. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +79 -0
  80. package/dist/collection/{stories → components/sqm-divided-layout}/DividedLayout.stories.js +4 -4
  81. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +2 -4
  82. package/dist/collection/{stories → components/sqm-edit-profile}/EditProfileForm.stories.js +2 -2
  83. package/dist/collection/{stories → components/sqm-edit-profile}/UseEditProfile.stories.js +1 -1
  84. package/dist/collection/components/sqm-empty/sqm-empty-view.js +10 -0
  85. package/dist/collection/components/sqm-empty/sqm-empty.js +78 -0
  86. package/dist/collection/{stories → components/sqm-form-message}/FormMessage.stories.js +1 -1
  87. package/dist/collection/{stories → components/sqm-hero}/Hero.stories.js +2 -2
  88. package/dist/collection/components/sqm-hero/sqm-hero-view.js +2 -4
  89. package/dist/collection/components/sqm-hero-image/HeroImage.stories.js +56 -0
  90. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +132 -0
  91. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +453 -0
  92. package/dist/collection/components/sqm-image/Image.stories.js +26 -0
  93. package/dist/collection/components/sqm-image/sqm-image-view.js +32 -0
  94. package/dist/collection/components/sqm-image/sqm-image.js +116 -0
  95. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +618 -0
  96. package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +141 -0
  97. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +96 -9
  98. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +120 -22
  99. package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +31 -3
  100. package/dist/collection/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.js +2 -2
  101. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +1 -4
  102. package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +1 -1
  103. package/dist/collection/{stories → components/sqm-name-fields}/NameFields.stories.js +2 -2
  104. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -4
  105. package/dist/collection/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.js +3 -3
  106. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +2 -4
  107. package/dist/collection/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.js +2 -2
  108. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +5 -5
  109. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -1
  110. package/dist/collection/{stories → components/sqm-password-field}/PasswordField.stories.js +1 -1
  111. package/dist/collection/components/sqm-password-field/passwordValidation.js +2 -4
  112. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +2 -4
  113. package/dist/collection/{stories → components/sqm-portal-change-password}/ChangePassword.stories.js +3 -3
  114. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +2 -4
  115. package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +47 -0
  116. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +9 -6
  117. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +78 -0
  118. package/dist/collection/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.js +3 -3
  119. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +4 -6
  120. package/dist/collection/{stories → components/sqm-portal-footer}/PortalFooter.stories.js +2 -2
  121. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +2 -4
  122. package/dist/collection/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.js +3 -3
  123. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +2 -4
  124. package/dist/collection/{stories → components/sqm-portal-frame}/PortalFrame.stories.js +2 -2
  125. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +2 -4
  126. package/dist/collection/{stories → components/sqm-portal-login}/PortalLogin.stories.js +2 -2
  127. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +3 -5
  128. package/dist/collection/{stories → components/sqm-portal-profile}/PortalProfile.stories.js +2 -8
  129. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +2 -4
  130. package/dist/collection/{stories → components/sqm-portal-register}/PortalRegister.stories.js +2 -2
  131. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +2 -4
  132. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -1
  133. package/dist/collection/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.js +3 -3
  134. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +3 -5
  135. package/dist/collection/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.js +3 -3
  136. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +2 -4
  137. package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +41 -0
  138. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +44 -0
  139. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +91 -0
  140. package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +14 -0
  141. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +71 -0
  142. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +146 -0
  143. package/dist/collection/{stories → components/sqm-program-menu}/ProgramMenu.stories.js +2 -2
  144. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +81 -0
  145. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +54 -0
  146. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +62 -0
  147. package/dist/collection/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.js +2 -2
  148. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +2 -4
  149. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTable.stories.js +142 -69
  150. package/dist/collection/{stories → components/sqm-referral-table}/ReferralTableCell.stories.js +12 -2
  151. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +223 -0
  152. package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +149 -0
  153. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-date-cell.js +23 -5
  154. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +197 -26
  155. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +14 -1
  156. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-user-cell.js +2 -3
  157. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
  158. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +36 -6
  159. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +183 -4
  160. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +30 -1
  161. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +46 -5
  162. package/dist/collection/components/sqm-referral-table/mockReferralData.js +437 -0
  163. package/dist/collection/components/sqm-referral-table/sqm-referral-table-view.js +3 -7
  164. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +148 -25
  165. package/dist/collection/components/sqm-referral-table/useReferralTable.js +52 -24
  166. package/dist/collection/components/sqm-refresh-button/RefreshButtonView.js +8 -0
  167. package/dist/collection/components/sqm-refresh-button/sqm-refresh-button.js +66 -0
  168. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +29 -0
  169. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +384 -0
  170. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +27 -0
  171. package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +143 -0
  172. package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-icon.png +0 -0
  173. package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-image.png +0 -0
  174. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +64 -0
  175. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +625 -0
  176. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +734 -0
  177. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +205 -0
  178. package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +130 -0
  179. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +249 -0
  180. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +149 -0
  181. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.js +58 -0
  182. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +62 -0
  183. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +246 -0
  184. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +193 -0
  185. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +237 -0
  186. package/dist/collection/components/sqm-rewards-table/columns/RewardTableColumn.js +1 -0
  187. package/dist/collection/components/sqm-rewards-table/columns/sqm-customer-note-column.js +98 -0
  188. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +134 -0
  189. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +144 -0
  190. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +225 -0
  191. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +145 -0
  192. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +326 -0
  193. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +320 -0
  194. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +227 -0
  195. package/dist/collection/{stories → components/sqm-router}/Router.stories.js +1 -1
  196. package/dist/collection/components/sqm-scroll/Scroll.stories.js +50 -0
  197. package/dist/collection/components/sqm-scroll/sqm-scroll.js +111 -0
  198. package/dist/collection/components/sqm-scroll/useScroll.js +18 -0
  199. package/dist/collection/{stories → components/sqm-share-button}/ShareButton.stories.js +45 -17
  200. package/dist/collection/{stories → components/sqm-share-button}/UseShareButton.stories.js +2 -2
  201. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +67 -11
  202. package/dist/collection/components/sqm-share-button/sqm-share-button.js +71 -13
  203. package/dist/collection/components/sqm-share-button/useShareButton.js +1 -1
  204. package/dist/collection/components/sqm-share-code/ShareCode.stories.js +17 -0
  205. package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
  206. package/dist/collection/components/sqm-share-code/useShareCode.js +20 -1
  207. package/dist/collection/{stories → components/sqm-share-link}/ShareLink.stories.js +6 -2
  208. package/dist/collection/{stories → components/sqm-share-link}/UseShareLink.stories.js +3 -3
  209. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +2 -4
  210. package/dist/collection/components/sqm-share-link/useShareLink.js +20 -1
  211. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +3 -5
  212. package/dist/collection/components/sqm-stencilbook/AutoColor.js +49 -0
  213. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  214. package/dist/collection/components/sqm-stencilbook/Matrix.js +66 -0
  215. package/dist/collection/components/sqm-stencilbook/Resizer.js +27 -0
  216. package/dist/collection/components/sqm-stencilbook/Themes.js +44 -0
  217. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +119 -38
  218. package/dist/collection/components/sqm-tab/sqm-tab-view.js +4 -0
  219. package/dist/collection/components/sqm-tab/sqm-tab.js +28 -0
  220. package/dist/collection/components/{sqm-referral-table → sqm-table-cell}/sqm-table-cell.js +0 -0
  221. package/dist/collection/components/{sqm-referral-table → sqm-table-row}/sqm-table-row.js +0 -0
  222. package/dist/collection/components/sqm-tabs/Tabs.stories.js +150 -0
  223. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +27 -0
  224. package/dist/collection/components/sqm-tabs/sqm-tabs.js +50 -0
  225. package/dist/collection/components/sqm-tabs/useTabs.js +39 -0
  226. package/dist/collection/components/sqm-task-card/DetailsView.js +53 -0
  227. package/dist/collection/components/sqm-task-card/SVGs.js +14 -0
  228. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +429 -0
  229. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +67 -0
  230. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +8 -0
  231. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +400 -0
  232. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +282 -0
  233. package/dist/collection/components/sqm-task-card/sqm-task-card.js +645 -0
  234. package/dist/collection/components/sqm-task-card/useTaskCard.js +43 -0
  235. package/dist/collection/components/sqm-text/sqm-text.js +30 -29
  236. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +2 -4
  237. package/dist/collection/components/sqm-timeline/SVGs.js +10 -0
  238. package/dist/collection/components/sqm-timeline/Timeline.stories.js +70 -0
  239. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +203 -0
  240. package/dist/collection/components/sqm-timeline/sqm-timeline.js +118 -0
  241. package/dist/collection/components/sqm-titled-section/TitledSection.stories.js +237 -0
  242. package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +4 -7
  243. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +39 -3
  244. package/dist/collection/{stories → components/sqm-user-name}/UserName.stories.js +3 -3
  245. package/dist/collection/components/sqm-user-name/useUserName.js +1 -1
  246. package/dist/collection/fonts/GoogleFonts.js +12 -0
  247. package/dist/collection/global/styles.js +294 -140
  248. package/dist/collection/global/styles.ts +294 -140
  249. package/dist/collection/stories/NewPortal.stories.js +17 -19
  250. package/dist/collection/styling/JSS.js +9 -0
  251. package/dist/collection/tables/GenericTableView.js +110 -0
  252. package/dist/collection/tables/TableSlots.js +30 -0
  253. package/dist/collection/{components/sqm-referral-table → tables}/re-render.js +0 -0
  254. package/dist/collection/{components/sqm-referral-table → tables}/useChildElements.js +0 -0
  255. package/dist/collection/utils/RequiredPropsError.js +2 -4
  256. package/dist/collection/utils/utils.js +8 -0
  257. package/dist/esm/GenericTableView-4a1292db.js +113 -0
  258. package/dist/esm/{jss-preset-default.esm-71fae192.js → JSS-96eeab98.js} +5 -2
  259. package/dist/esm/ShadowViewAddon-3fe313a5.js +2594 -0
  260. package/dist/esm/extends-c31f1eff.js +19 -0
  261. package/dist/esm/{global-2e50d2dc.js → global-96ad0abe.js} +298 -144
  262. package/dist/esm/{index.module-1e92a7a3.js → index.module-2821f17d.js} +11 -10
  263. package/dist/esm/loader.js +6 -5
  264. package/dist/esm/luxon-f44215d9.js +8346 -0
  265. package/dist/esm/mint-components.js +6 -5
  266. package/dist/esm/{re-render-b8468637.js → re-render-07721d1b.js} +5 -5
  267. package/dist/esm/{sqm-asset-card-view-6f360937.js → sqm-asset-card-view-f9ca5345.js} +2 -3
  268. package/dist/esm/sqm-asset-card.entry.js +7 -6
  269. package/dist/esm/sqm-big-stat-view-309f7c1f.js +38 -0
  270. package/dist/esm/sqm-big-stat.entry.js +8 -6
  271. package/dist/esm/sqm-brand_30.entry.js +7289 -0
  272. package/dist/esm/sqm-form-message.entry.js +27 -0
  273. package/dist/esm/sqm-graphql-client-provider.entry.js +7 -6
  274. package/dist/esm/{sqm-hero-view-bfd8abd1.js → sqm-hero-view-5ea17052.js} +4 -5
  275. package/dist/esm/sqm-hero.entry.js +6 -5
  276. package/dist/esm/sqm-image_4.entry.js +189 -0
  277. package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +8 -0
  278. package/dist/esm/sqm-leaderboard-rank.entry.js +9 -11
  279. package/dist/esm/{sqm-name-fields-view-4162fb7b.js → sqm-name-fields-view-69b1583f.js} +2 -3
  280. package/dist/esm/sqm-name-fields.entry.js +7 -6
  281. package/dist/esm/{sqm-navigation-sidebar-item-view-a48bca9b.js → sqm-navigation-sidebar-item-view-9380a346.js} +7 -6
  282. package/dist/esm/sqm-navigation-sidebar-item.entry.js +9 -8
  283. package/dist/esm/{sqm-navigation-sidebar-view-2242502c.js → sqm-navigation-sidebar-view-816558e3.js} +2 -3
  284. package/dist/esm/sqm-navigation-sidebar.entry.js +4 -3
  285. package/dist/esm/sqm-password-field.entry.js +577 -0
  286. package/dist/esm/sqm-popup-container.entry.js +5 -4
  287. package/dist/esm/{sqm-portal-container-view-73757ca5.js → sqm-portal-container-view-f74db584.js} +9 -5
  288. package/dist/esm/{sqm-portal-email-verification-view-e366e94a.js → sqm-portal-email-verification-view-814962b6.js} +5 -6
  289. package/dist/esm/sqm-portal-email-verification.entry.js +10 -9
  290. package/dist/esm/{sqm-portal-footer-view-f12d5e5a.js → sqm-portal-footer-view-dfe9ceeb.js} +4 -5
  291. package/dist/esm/sqm-portal-footer.entry.js +8 -7
  292. package/dist/esm/{sqm-portal-forgot-password-view-e3a6a716.js → sqm-portal-forgot-password-view-fa088f83.js} +3 -4
  293. package/dist/esm/sqm-portal-forgot-password.entry.js +10 -9
  294. package/dist/esm/sqm-portal-logout.entry.js +6 -5
  295. package/dist/esm/{sqm-portal-profile-view-9f3c79c3.js → sqm-portal-profile-view-38b4f061.js} +5 -6
  296. package/dist/esm/sqm-portal-profile.entry.js +12 -11
  297. package/dist/esm/sqm-portal-protected-route.entry.js +8 -7
  298. package/dist/esm/{sqm-portal-reset-password-view-a4e50da2.js → sqm-portal-reset-password-view-73e14282.js} +3 -4
  299. package/dist/esm/sqm-portal-reset-password.entry.js +14 -13
  300. package/dist/esm/{sqm-portal-section-view-f0876545.js → sqm-portal-section-view-88a80af9.js} +4 -6
  301. package/dist/esm/{sqm-portal-verify-email-view-6f18bac2.js → sqm-portal-verify-email-view-cbf1cfdc.js} +3 -4
  302. package/dist/esm/sqm-portal-verify-email.entry.js +11 -10
  303. package/dist/esm/sqm-referral-table_11.entry.js +992 -0
  304. package/dist/esm/sqm-refresh-button.entry.js +50 -0
  305. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +22 -0
  306. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +34 -0
  307. package/dist/esm/sqm-rewards-table_9.entry.js +1131 -0
  308. package/dist/esm/{sqm-stat-container-view-4133feb6.js → sqm-stat-container-view-8a565c5a.js} +3 -4
  309. package/dist/esm/sqm-stat-container.entry.js +5 -4
  310. package/dist/esm/sqm-stencilbook.entry.js +14608 -0
  311. package/dist/esm/sqm-tab.entry.js +16 -0
  312. package/dist/esm/sqm-tabs.entry.js +85 -0
  313. package/dist/esm/{sqm-text-span-view-1781df94.js → sqm-text-span-view-7e61c95c.js} +2 -3
  314. package/dist/esm/sqm-text-span.entry.js +4 -3
  315. package/dist/esm/{extends-3a3f9fe2.js → stencil-hooks.module-acc8a613.js} +2 -20
  316. package/dist/esm/{use-callback-b38a1523.js → use-callback-7e0bfd3b.js} +1 -1
  317. package/dist/esm/useChildElements-62af7349.js +19 -0
  318. package/dist/esm/{useDemoBigStat-5557504e.js → useDemoBigStat-b5a22d26.js} +134 -62
  319. package/dist/esm/useReferralTable-43a3a215.js +351 -0
  320. package/dist/esm/{utils-454405f5.js → utils-1d345130.js} +9 -1
  321. package/dist/esm-es5/GenericTableView-4a1292db.js +1 -0
  322. package/dist/esm-es5/{jss-preset-default.esm-71fae192.js → JSS-96eeab98.js} +2 -2
  323. package/dist/esm-es5/ShadowViewAddon-3fe313a5.js +1 -0
  324. package/dist/esm-es5/extends-c31f1eff.js +1 -0
  325. package/dist/esm-es5/{global-2e50d2dc.js → global-96ad0abe.js} +2 -2
  326. package/dist/esm-es5/index.module-2821f17d.js +1 -0
  327. package/dist/esm-es5/loader.js +1 -1
  328. package/dist/esm-es5/luxon-f44215d9.js +1 -0
  329. package/dist/esm-es5/mint-components.js +1 -1
  330. package/dist/esm-es5/re-render-07721d1b.js +1 -0
  331. package/dist/esm-es5/sqm-asset-card-view-f9ca5345.js +1 -0
  332. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  333. package/dist/esm-es5/sqm-big-stat-view-309f7c1f.js +1 -0
  334. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  335. package/dist/esm-es5/sqm-brand_30.entry.js +1 -0
  336. package/dist/esm-es5/sqm-form-message.entry.js +1 -0
  337. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  338. package/dist/esm-es5/sqm-hero-view-5ea17052.js +1 -0
  339. package/dist/esm-es5/sqm-hero.entry.js +1 -1
  340. package/dist/esm-es5/sqm-image_4.entry.js +1 -0
  341. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +1 -0
  342. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  343. package/dist/esm-es5/sqm-name-fields-view-69b1583f.js +1 -0
  344. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  345. package/dist/esm-es5/sqm-navigation-sidebar-item-view-9380a346.js +1 -0
  346. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  347. package/dist/esm-es5/sqm-navigation-sidebar-view-816558e3.js +1 -0
  348. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  349. package/dist/esm-es5/sqm-password-field.entry.js +1 -0
  350. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  351. package/dist/esm-es5/sqm-portal-container-view-f74db584.js +1 -0
  352. package/dist/esm-es5/sqm-portal-email-verification-view-814962b6.js +1 -0
  353. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  354. package/dist/esm-es5/sqm-portal-footer-view-dfe9ceeb.js +1 -0
  355. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  356. package/dist/esm-es5/sqm-portal-forgot-password-view-fa088f83.js +1 -0
  357. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  358. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  359. package/dist/esm-es5/sqm-portal-profile-view-38b4f061.js +1 -0
  360. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  361. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  362. package/dist/esm-es5/sqm-portal-reset-password-view-73e14282.js +1 -0
  363. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  364. package/dist/esm-es5/sqm-portal-section-view-88a80af9.js +1 -0
  365. package/dist/esm-es5/sqm-portal-verify-email-view-cbf1cfdc.js +1 -0
  366. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  367. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -0
  368. package/dist/esm-es5/sqm-refresh-button.entry.js +1 -0
  369. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -0
  370. package/dist/esm-es5/{sqm-referral-table-column.entry.js → sqm-rewards-table-customer-note-column.entry.js} +1 -1
  371. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -0
  372. package/dist/esm-es5/sqm-stat-container-view-8a565c5a.js +1 -0
  373. package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
  374. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -0
  375. package/dist/esm-es5/sqm-tab.entry.js +1 -0
  376. package/dist/esm-es5/sqm-tabs.entry.js +1 -0
  377. package/dist/esm-es5/sqm-text-span-view-7e61c95c.js +1 -0
  378. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  379. package/dist/esm-es5/{extends-3a3f9fe2.js → stencil-hooks.module-acc8a613.js} +2 -2
  380. package/dist/esm-es5/use-callback-7e0bfd3b.js +1 -0
  381. package/dist/esm-es5/useChildElements-62af7349.js +1 -0
  382. package/dist/esm-es5/useDemoBigStat-b5a22d26.js +1 -0
  383. package/dist/esm-es5/useReferralTable-43a3a215.js +1 -0
  384. package/dist/esm-es5/utils-1d345130.js +1 -0
  385. package/dist/mint-components/assets/Reward-icon.png +0 -0
  386. package/dist/mint-components/assets/Reward-image.png +0 -0
  387. package/dist/mint-components/global/styles.ts +294 -140
  388. package/dist/mint-components/mint-components.css +1 -0
  389. package/dist/mint-components/mint-components.esm.js +1 -1
  390. package/dist/mint-components/mint-components.js +1 -1
  391. package/dist/mint-components/p-02fefe5b.system.entry.js +1 -0
  392. package/dist/mint-components/p-030f89b3.entry.js +1 -0
  393. package/dist/mint-components/p-040e11b1.system.entry.js +1 -0
  394. package/dist/mint-components/p-04e65783.js +1 -0
  395. package/dist/mint-components/p-105dac2a.js +30 -0
  396. package/dist/mint-components/p-13bb837f.system.js +1 -0
  397. package/dist/mint-components/p-147440c3.js +1 -0
  398. package/dist/mint-components/p-179988b5.js +1 -0
  399. package/dist/mint-components/p-192f4931.system.entry.js +1 -0
  400. package/dist/mint-components/p-1959da16.system.js +1 -0
  401. package/dist/mint-components/p-19822c1b.entry.js +1 -0
  402. package/dist/mint-components/p-198409c1.entry.js +1 -0
  403. package/dist/mint-components/p-1af65647.js +239 -0
  404. package/dist/mint-components/p-1c17892a.system.js +1 -0
  405. package/dist/mint-components/p-1d1e9197.js +1 -0
  406. package/dist/mint-components/p-1eb15d87.system.entry.js +1 -0
  407. package/dist/mint-components/p-204fd08c.js +1 -0
  408. package/dist/mint-components/p-250d40f6.system.entry.js +1 -0
  409. package/dist/mint-components/{p-fe4ecc11.js → p-270ad841.js} +153 -153
  410. package/dist/mint-components/{p-44578b22.js → p-27455c4c.js} +2 -2
  411. package/dist/mint-components/p-33193841.system.entry.js +1 -0
  412. package/dist/mint-components/p-373fa002.js +1 -0
  413. package/dist/mint-components/p-3b917426.system.entry.js +1 -0
  414. package/dist/mint-components/{p-1b7d89a7.system.js → p-3bbb90a9.system.js} +2 -2
  415. package/dist/mint-components/p-3e556042.js +1 -0
  416. package/dist/mint-components/p-3e65453b.system.js +1 -0
  417. package/dist/mint-components/p-3fe6b395.entry.js +1 -0
  418. package/dist/mint-components/p-3fe77dac.system.js +1 -0
  419. package/dist/mint-components/p-403e84cc.system.entry.js +1 -0
  420. package/dist/mint-components/p-41a87a92.entry.js +1 -0
  421. package/dist/mint-components/p-4279da4b.system.js +1 -0
  422. package/dist/mint-components/p-48b4104d.entry.js +1 -0
  423. package/dist/mint-components/{p-015b683f.system.js → p-48ec6605.system.js} +2 -2
  424. package/dist/mint-components/p-4a1b7d35.js +1 -0
  425. package/dist/mint-components/p-4b60eb5d.entry.js +1 -0
  426. package/dist/mint-components/p-4c819f7e.js +1 -0
  427. package/dist/mint-components/p-4e05c65a.js +1 -0
  428. package/dist/mint-components/p-4e4b69c2.system.entry.js +1 -0
  429. package/dist/mint-components/p-4ee63592.entry.js +150 -0
  430. package/dist/mint-components/p-4f4bdfad.system.entry.js +1 -0
  431. package/dist/mint-components/p-505d8965.system.entry.js +1 -0
  432. package/dist/mint-components/p-5170e740.system.entry.js +1 -0
  433. package/dist/mint-components/p-53af4433.system.js +1 -0
  434. package/dist/mint-components/p-55f960bc.js +1 -0
  435. package/dist/mint-components/p-59afa159.entry.js +1 -0
  436. package/dist/mint-components/p-59e4405d.system.js +1 -0
  437. package/dist/mint-components/p-5c75acad.js +1 -0
  438. package/dist/mint-components/p-62dd50b3.js +167 -0
  439. package/dist/mint-components/p-66fc28d0.js +1 -0
  440. package/dist/mint-components/p-67749aab.system.entry.js +1 -0
  441. package/dist/mint-components/p-68bafbde.entry.js +1 -0
  442. package/dist/mint-components/p-6b43e4cc.system.js +1 -0
  443. package/dist/mint-components/p-6cb25b8b.entry.js +1 -0
  444. package/dist/mint-components/p-6cc350b9.entry.js +1 -0
  445. package/dist/mint-components/p-71ecbb3b.system.js +1 -0
  446. package/dist/mint-components/p-73ab7946.system.js +1 -0
  447. package/dist/mint-components/p-73d5306f.js +1 -0
  448. package/dist/mint-components/p-75a78c16.system.entry.js +1 -0
  449. package/dist/mint-components/p-7647869d.entry.js +1 -0
  450. package/dist/mint-components/p-7794c289.js +1 -0
  451. package/dist/mint-components/p-77c4071b.entry.js +1 -0
  452. package/dist/mint-components/p-7e89b7ed.js +1 -0
  453. package/dist/mint-components/p-81f34787.js +1 -0
  454. package/dist/mint-components/p-8a8d0514.system.js +1 -0
  455. package/dist/mint-components/p-8bcaafaf.system.js +1 -0
  456. package/dist/mint-components/p-91d119ad.system.js +1 -0
  457. package/dist/mint-components/p-95a89867.js +1 -0
  458. package/dist/mint-components/p-975d4358.js +1 -0
  459. package/dist/mint-components/p-982ad256.js +1 -0
  460. package/dist/mint-components/p-996e20c4.entry.js +1 -0
  461. package/dist/mint-components/p-999a46af.entry.js +1 -0
  462. package/dist/mint-components/p-9b48d01e.js +1 -0
  463. package/dist/mint-components/p-9d467470.system.js +1 -0
  464. package/dist/mint-components/p-9e2168f7.system.entry.js +1 -0
  465. package/dist/mint-components/p-a09e3176.system.js +1 -0
  466. package/dist/mint-components/p-a13b5757.system.js +1 -0
  467. package/dist/mint-components/p-a27f07cd.system.entry.js +1 -0
  468. package/dist/mint-components/p-a5f426fa.system.js +1 -0
  469. package/dist/mint-components/p-a62a0cf6.system.entry.js +1 -0
  470. package/dist/mint-components/p-a6d4cffd.system.entry.js +1 -0
  471. package/dist/mint-components/p-aa09f12b.system.js +1 -0
  472. package/dist/mint-components/p-acfcc1f2.system.entry.js +1 -0
  473. package/dist/mint-components/p-b3af1c6f.js +1 -0
  474. package/dist/mint-components/p-b5c6ff52.system.entry.js +1 -0
  475. package/dist/mint-components/p-b6fbd9cd.system.entry.js +1 -0
  476. package/dist/mint-components/p-b8434fc0.system.js +1 -0
  477. package/dist/mint-components/p-bbf96ff3.system.js +1 -0
  478. package/dist/mint-components/p-bc19e1c2.system.js +1 -0
  479. package/dist/mint-components/p-be02b2a2.system.entry.js +1 -0
  480. package/dist/mint-components/p-bf055b6c.system.js +1 -0
  481. package/dist/mint-components/p-c00fd233.system.entry.js +1 -0
  482. package/dist/mint-components/p-c0693ddc.entry.js +1 -0
  483. package/dist/mint-components/p-c3f300e8.system.js +1 -0
  484. package/dist/mint-components/p-c4f6e099.entry.js +13 -0
  485. package/dist/mint-components/p-c5037c05.system.entry.js +1 -0
  486. package/dist/mint-components/p-c5a656af.system.entry.js +1 -0
  487. package/dist/mint-components/p-c5ce6c37.system.js +1 -0
  488. package/dist/mint-components/p-c7f81b0e.system.entry.js +1 -0
  489. package/dist/mint-components/p-cdebf9f7.system.entry.js +1 -0
  490. package/dist/mint-components/p-ce0ec1c4.system.js +1 -0
  491. package/dist/mint-components/p-ce541c1e.entry.js +93 -0
  492. package/dist/mint-components/{p-3e3dad7a.system.js → p-cf9c3022.system.js} +1 -1
  493. package/dist/mint-components/p-cf9cfac0.entry.js +1 -0
  494. package/dist/mint-components/p-d080b4d7.system.entry.js +1 -0
  495. package/dist/mint-components/p-d0c09868.js +1 -0
  496. package/dist/mint-components/p-d13b1d06.entry.js +1 -0
  497. package/dist/mint-components/p-d1ffec5b.entry.js +1 -0
  498. package/dist/mint-components/p-d33eb961.js +1 -0
  499. package/dist/mint-components/p-d47dcd9b.entry.js +9 -0
  500. package/dist/mint-components/p-d6e7f685.system.entry.js +1 -0
  501. package/dist/mint-components/p-d98083fb.entry.js +1 -0
  502. package/dist/mint-components/p-db9e20a0.entry.js +1 -0
  503. package/dist/mint-components/p-dec7a657.entry.js +1 -0
  504. package/dist/mint-components/p-e08f5f8e.js +1 -0
  505. package/dist/mint-components/{p-af1f8bd3.js → p-e15e8e89.js} +1 -1
  506. package/dist/mint-components/p-e1d1bbdc.system.entry.js +1 -0
  507. package/dist/mint-components/p-e4320d52.entry.js +1 -0
  508. package/dist/mint-components/p-e6fac878.entry.js +1 -0
  509. package/dist/mint-components/p-e89b298a.system.entry.js +1 -0
  510. package/dist/mint-components/p-e943288b.entry.js +1 -0
  511. package/dist/mint-components/p-ea110693.system.js +1 -0
  512. package/dist/mint-components/{p-2dc28ab0.entry.js → p-f6ceb5ca.entry.js} +2 -2
  513. package/dist/mint-components/{p-48fff767.system.js → p-f75592e4.system.js} +11 -11
  514. package/dist/mint-components/p-fc0ff819.system.js +1 -0
  515. package/dist/mint-components/p-fe0d7472.entry.js +1 -0
  516. package/dist/mint-components/sqm-rewards-table-customer-note-column.entry.js +33 -0
  517. package/dist/types/{stories → components/sqm-asset-card}/AssetCard.stories.d.ts +0 -0
  518. package/dist/types/{stories → components/sqm-big-stat}/BigStat.stories.d.ts +3 -0
  519. package/dist/types/{stories → components/sqm-big-stat}/UseBigStat.stories.d.ts +6 -0
  520. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +2 -0
  521. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +5 -1
  522. package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +11 -0
  523. package/dist/types/components/sqm-brand/sqm-brand.d.ts +31 -0
  524. package/dist/types/components/sqm-card-feed/CardFeed.stories.d.ts +13 -0
  525. package/dist/types/components/sqm-card-feed/sqm-card-feed-view.d.ts +6 -0
  526. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +18 -0
  527. package/dist/types/{stories → components/sqm-divided-layout}/DividedLayout.stories.d.ts +0 -0
  528. package/dist/types/{stories → components/sqm-edit-profile}/EditProfileForm.stories.d.ts +0 -0
  529. package/dist/types/{stories → components/sqm-edit-profile}/UseEditProfile.stories.d.ts +0 -0
  530. package/dist/types/components/sqm-empty/sqm-empty-view.d.ts +6 -0
  531. package/dist/types/components/sqm-empty/sqm-empty.d.ts +14 -0
  532. package/dist/types/{stories → components/sqm-form-message}/FormMessage.stories.d.ts +0 -0
  533. package/dist/types/{stories → components/sqm-hero}/Hero.stories.d.ts +0 -0
  534. package/dist/types/components/sqm-hero-image/HeroImage.stories.d.ts +23 -0
  535. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +21 -0
  536. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +88 -0
  537. package/dist/types/components/sqm-image/Image.stories.d.ts +13 -0
  538. package/dist/types/components/sqm-image/sqm-image-view.d.ts +10 -0
  539. package/dist/types/components/sqm-image/sqm-image.d.ts +27 -0
  540. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +17 -0
  541. package/dist/types/components/sqm-leaderboard/UseLeaderboard.stories.d.ts +34 -0
  542. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +10 -0
  543. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +12 -2
  544. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +3 -0
  545. package/dist/types/{stories → components/sqm-leaderboard-rank}/LeaderboardRank.stories.d.ts +0 -0
  546. package/dist/types/{stories → components/sqm-name-fields}/NameFields.stories.d.ts +0 -0
  547. package/dist/types/{stories → components/sqm-navigation-sidebar}/NavigationSidebar.stories.d.ts +0 -0
  548. package/dist/types/{stories → components/sqm-navigation-sidebar-item}/SidebarItem.stories.d.ts +0 -0
  549. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +2 -0
  550. package/dist/types/{stories → components/sqm-password-field}/PasswordField.stories.d.ts +0 -0
  551. package/dist/types/{stories → components/sqm-portal-change-password}/ChangePassword.stories.d.ts +0 -0
  552. package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +15 -0
  553. package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +3 -0
  554. package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +14 -0
  555. package/dist/types/{stories → components/sqm-portal-email-verification}/PortalEmailVerification.stories.d.ts +0 -0
  556. package/dist/types/{stories → components/sqm-portal-footer}/PortalFooter.stories.d.ts +0 -0
  557. package/dist/types/{stories → components/sqm-portal-forgot-password}/PortalForgotPassword.stories.d.ts +0 -0
  558. package/dist/types/{stories → components/sqm-portal-frame}/PortalFrame.stories.d.ts +0 -0
  559. package/dist/types/{stories → components/sqm-portal-login}/PortalLogin.stories.d.ts +0 -0
  560. package/dist/types/{stories → components/sqm-portal-profile}/PortalProfile.stories.d.ts +0 -0
  561. package/dist/types/{stories → components/sqm-portal-register}/PortalRegister.stories.d.ts +0 -0
  562. package/dist/types/{stories → components/sqm-portal-reset-password}/PortalResetPassword.stories.d.ts +0 -0
  563. package/dist/types/{stories → components/sqm-portal-verify-email}/PortalVerifyEmail.stories.d.ts +0 -0
  564. package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +10 -0
  565. package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +7 -0
  566. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +23 -0
  567. package/dist/types/components/sqm-program-explainer-step/ProgramExplainerStep.stories.d.ts +9 -0
  568. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +9 -0
  569. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +38 -0
  570. package/dist/types/{stories → components/sqm-program-menu}/ProgramMenu.stories.d.ts +0 -0
  571. package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +16 -0
  572. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +9 -0
  573. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +15 -0
  574. package/dist/types/{stories → components/sqm-referral-iframe}/ReferralIframe.stories.d.ts +0 -0
  575. package/dist/types/{stories → components/sqm-referral-table}/ReferralTable.stories.d.ts +5 -0
  576. package/dist/types/{stories → components/sqm-referral-table}/ReferralTableCell.stories.d.ts +3 -0
  577. package/dist/types/{stories → components/sqm-referral-table}/ReferralTableRewardsCell.stories.d.ts +3 -0
  578. package/dist/types/components/sqm-referral-table/UseReferralTable.stories.d.ts +40 -0
  579. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-date-cell.d.ts +2 -1
  580. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +7 -0
  581. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-user-cell.d.ts +1 -1
  582. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -1
  583. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +2 -1
  584. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +26 -1
  585. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
  586. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
  587. package/dist/types/components/sqm-referral-table/mockReferralData.d.ts +83 -0
  588. package/dist/types/components/sqm-referral-table/sqm-referral-table-view.d.ts +1 -1
  589. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +8 -2
  590. package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +5 -2
  591. package/dist/types/components/sqm-refresh-button/RefreshButtonView.d.ts +15 -0
  592. package/dist/types/components/sqm-refresh-button/sqm-refresh-button.d.ts +12 -0
  593. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +23 -0
  594. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +884 -0
  595. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +5 -0
  596. package/dist/types/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.d.ts +28 -0
  597. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +4 -0
  598. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +31 -0
  599. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +124 -0
  600. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +59 -0
  601. package/dist/types/components/sqm-rewards-table/RewardsTable.stories.d.ts +14 -0
  602. package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +36 -0
  603. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +40 -0
  604. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.d.ts +8 -0
  605. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.d.ts +8 -0
  606. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +8 -0
  607. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +10 -0
  608. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +11 -0
  609. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +5 -0
  610. package/dist/types/components/sqm-rewards-table/columns/sqm-customer-note-column.d.ts +15 -0
  611. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +25 -0
  612. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +23 -0
  613. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +37 -0
  614. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +23 -0
  615. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +45 -0
  616. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +36 -0
  617. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +6 -0
  618. package/dist/types/{stories → components/sqm-router}/Router.stories.d.ts +0 -0
  619. package/dist/types/components/sqm-scroll/Scroll.stories.d.ts +7 -0
  620. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +11 -0
  621. package/dist/types/components/sqm-scroll/useScroll.d.ts +6 -0
  622. package/dist/types/{stories → components/sqm-share-button}/ShareButton.stories.d.ts +7 -1
  623. package/dist/types/{stories → components/sqm-share-button}/UseShareButton.stories.d.ts +0 -0
  624. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +3 -0
  625. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +18 -2
  626. package/dist/types/components/sqm-share-code/ShareCode.stories.d.ts +10 -0
  627. package/dist/types/{stories → components/sqm-share-link}/ShareLink.stories.d.ts +3 -0
  628. package/dist/types/{stories → components/sqm-share-link}/UseShareLink.stories.d.ts +0 -0
  629. package/dist/types/components/sqm-stencilbook/AutoColor.d.ts +8 -0
  630. package/dist/types/components/sqm-stencilbook/Matrix.d.ts +11 -0
  631. package/dist/types/components/sqm-stencilbook/Resizer.d.ts +3 -0
  632. package/dist/types/components/sqm-stencilbook/Themes.d.ts +17 -0
  633. package/dist/types/components/sqm-tab/sqm-tab-view.d.ts +4 -0
  634. package/dist/types/components/sqm-tab/sqm-tab.d.ts +4 -0
  635. package/dist/types/components/{sqm-referral-table → sqm-table-cell}/sqm-table-cell.d.ts +0 -0
  636. package/dist/types/components/{sqm-referral-table → sqm-table-row}/sqm-table-row.d.ts +0 -0
  637. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +15 -0
  638. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +9 -0
  639. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +16 -0
  640. package/dist/types/components/sqm-tabs/useTabs.d.ts +9 -0
  641. package/dist/types/components/sqm-task-card/DetailsView.d.ts +41 -0
  642. package/dist/types/components/sqm-task-card/SVGs.d.ts +3 -0
  643. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +20 -0
  644. package/dist/types/{stories/UseLeaderboard.stories.d.ts → components/sqm-task-card/UseTaskCard.stories.d.ts} +2 -2
  645. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  646. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +12 -0
  647. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +35 -0
  648. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +124 -0
  649. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +11 -0
  650. package/dist/types/components/sqm-timeline/SVGs.d.ts +3 -0
  651. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +11 -0
  652. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +31 -0
  653. package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +15 -0
  654. package/dist/types/components/sqm-titled-section/TitledSection.stories.d.ts +12 -0
  655. package/dist/types/components/sqm-titled-section/sqm-portal-section-view.d.ts +1 -0
  656. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +12 -1
  657. package/dist/types/components/sqm-user-name/UserName.stories.d.ts +6 -0
  658. package/dist/types/components.d.ts +2463 -770
  659. package/dist/types/fonts/GoogleFonts.d.ts +9 -0
  660. package/dist/types/global/styles.d.ts +1 -1
  661. package/dist/types/saasquatch.d.ts +40 -0
  662. package/dist/types/styling/JSS.d.ts +7 -0
  663. package/dist/types/tables/GenericTableView.d.ts +32 -0
  664. package/dist/types/tables/TableSlots.d.ts +9 -0
  665. package/dist/types/{components/sqm-referral-table → tables}/re-render.d.ts +0 -0
  666. package/dist/types/{components/sqm-referral-table → tables}/useChildElements.d.ts +0 -0
  667. package/dist/types/utils/utils.d.ts +1 -0
  668. package/grapesjs/grapesjs.js +1 -1
  669. package/package.json +11 -11
  670. package/dist/cjs/ShadowViewAddon-e9bacad0.js +0 -127
  671. package/dist/cjs/sqm-divided-layout_26.cjs.entry.js +0 -26285
  672. package/dist/cjs/sqm-leaderboard-rank-view-b1b55673.js +0 -131
  673. package/dist/cjs/sqm-leaderboard.cjs.entry.js +0 -69
  674. package/dist/cjs/sqm-portal-container.cjs.entry.js +0 -35
  675. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +0 -30
  676. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +0 -47
  677. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +0 -38
  678. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +0 -45
  679. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +0 -57
  680. package/dist/cjs/sqm-share-code.cjs.entry.js +0 -87
  681. package/dist/cjs/sqm-share-link-view-a935d07e.js +0 -24
  682. package/dist/cjs/sqm-titled-section.cjs.entry.js +0 -36
  683. package/dist/cjs/use-callback-fadb2643.js +0 -7
  684. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.css +0 -37
  685. package/dist/collection/stories/Leaderboard.stories.js +0 -100
  686. package/dist/collection/stories/ReferralTableRewardsCell.stories.js +0 -213
  687. package/dist/collection/stories/UseLeaderboard.stories.js +0 -79
  688. package/dist/esm/ShadowViewAddon-5f66de48.js +0 -122
  689. package/dist/esm/sqm-divided-layout_26.entry.js +0 -26256
  690. package/dist/esm/sqm-leaderboard-rank-view-387f0870.js +0 -128
  691. package/dist/esm/sqm-leaderboard.entry.js +0 -65
  692. package/dist/esm/sqm-portal-container.entry.js +0 -31
  693. package/dist/esm/sqm-referral-table-column.entry.js +0 -26
  694. package/dist/esm/sqm-referral-table-date-column.entry.js +0 -43
  695. package/dist/esm/sqm-referral-table-rewards-column.entry.js +0 -34
  696. package/dist/esm/sqm-referral-table-status-column.entry.js +0 -41
  697. package/dist/esm/sqm-referral-table-user-column.entry.js +0 -53
  698. package/dist/esm/sqm-share-code.entry.js +0 -83
  699. package/dist/esm/sqm-share-link-view-9282b8e8.js +0 -22
  700. package/dist/esm/sqm-titled-section.entry.js +0 -32
  701. package/dist/esm-es5/ShadowViewAddon-5f66de48.js +0 -1
  702. package/dist/esm-es5/index.module-1e92a7a3.js +0 -1
  703. package/dist/esm-es5/re-render-b8468637.js +0 -1
  704. package/dist/esm-es5/sqm-asset-card-view-6f360937.js +0 -1
  705. package/dist/esm-es5/sqm-divided-layout_26.entry.js +0 -1
  706. package/dist/esm-es5/sqm-hero-view-bfd8abd1.js +0 -1
  707. package/dist/esm-es5/sqm-leaderboard-rank-view-387f0870.js +0 -1
  708. package/dist/esm-es5/sqm-leaderboard.entry.js +0 -1
  709. package/dist/esm-es5/sqm-name-fields-view-4162fb7b.js +0 -1
  710. package/dist/esm-es5/sqm-navigation-sidebar-item-view-a48bca9b.js +0 -1
  711. package/dist/esm-es5/sqm-navigation-sidebar-view-2242502c.js +0 -1
  712. package/dist/esm-es5/sqm-portal-container-view-73757ca5.js +0 -1
  713. package/dist/esm-es5/sqm-portal-container.entry.js +0 -1
  714. package/dist/esm-es5/sqm-portal-email-verification-view-e366e94a.js +0 -1
  715. package/dist/esm-es5/sqm-portal-footer-view-f12d5e5a.js +0 -1
  716. package/dist/esm-es5/sqm-portal-forgot-password-view-e3a6a716.js +0 -1
  717. package/dist/esm-es5/sqm-portal-profile-view-9f3c79c3.js +0 -1
  718. package/dist/esm-es5/sqm-portal-reset-password-view-a4e50da2.js +0 -1
  719. package/dist/esm-es5/sqm-portal-section-view-f0876545.js +0 -1
  720. package/dist/esm-es5/sqm-portal-verify-email-view-6f18bac2.js +0 -1
  721. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +0 -1
  722. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +0 -1
  723. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +0 -1
  724. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +0 -1
  725. package/dist/esm-es5/sqm-share-code.entry.js +0 -1
  726. package/dist/esm-es5/sqm-share-link-view-9282b8e8.js +0 -1
  727. package/dist/esm-es5/sqm-stat-container-view-4133feb6.js +0 -1
  728. package/dist/esm-es5/sqm-text-span-view-1781df94.js +0 -1
  729. package/dist/esm-es5/sqm-titled-section.entry.js +0 -1
  730. package/dist/esm-es5/use-callback-b38a1523.js +0 -1
  731. package/dist/esm-es5/useDemoBigStat-5557504e.js +0 -1
  732. package/dist/esm-es5/utils-454405f5.js +0 -1
  733. package/dist/mint-components/p-05a2640d.entry.js +0 -1
  734. package/dist/mint-components/p-09afaaac.system.entry.js +0 -1
  735. package/dist/mint-components/p-0a39b23c.system.entry.js +0 -1
  736. package/dist/mint-components/p-0bcefa93.entry.js +0 -1
  737. package/dist/mint-components/p-10a98629.entry.js +0 -1
  738. package/dist/mint-components/p-112d42ab.system.entry.js +0 -1
  739. package/dist/mint-components/p-13605359.entry.js +0 -1
  740. package/dist/mint-components/p-1575e8a3.system.js +0 -1
  741. package/dist/mint-components/p-192539d2.entry.js +0 -1
  742. package/dist/mint-components/p-1e182e88.system.js +0 -1
  743. package/dist/mint-components/p-27e23808.system.js +0 -1
  744. package/dist/mint-components/p-282ed862.js +0 -1
  745. package/dist/mint-components/p-2babeba4.js +0 -1
  746. package/dist/mint-components/p-2f333f89.system.entry.js +0 -1
  747. package/dist/mint-components/p-337a3d6b.system.entry.js +0 -1
  748. package/dist/mint-components/p-34696973.system.js +0 -1
  749. package/dist/mint-components/p-35476f7e.system.js +0 -1
  750. package/dist/mint-components/p-3772bae2.system.entry.js +0 -1
  751. package/dist/mint-components/p-3adf6ff3.js +0 -1
  752. package/dist/mint-components/p-4068e47c.system.entry.js +0 -1
  753. package/dist/mint-components/p-412d31b1.js +0 -1
  754. package/dist/mint-components/p-4b6c316d.entry.js +0 -1
  755. package/dist/mint-components/p-50557966.system.js +0 -1
  756. package/dist/mint-components/p-509dda90.js +0 -1
  757. package/dist/mint-components/p-528aecd1.entry.js +0 -1
  758. package/dist/mint-components/p-52b0b65d.entry.js +0 -1
  759. package/dist/mint-components/p-53b0c355.system.js +0 -1
  760. package/dist/mint-components/p-53ec4863.entry.js +0 -1
  761. package/dist/mint-components/p-547a0354.system.js +0 -1
  762. package/dist/mint-components/p-55210498.system.js +0 -1
  763. package/dist/mint-components/p-55f8387d.system.js +0 -1
  764. package/dist/mint-components/p-562199e3.system.js +0 -1
  765. package/dist/mint-components/p-5fcd8687.entry.js +0 -1
  766. package/dist/mint-components/p-606506d6.system.entry.js +0 -1
  767. package/dist/mint-components/p-60ae1ec5.system.js +0 -1
  768. package/dist/mint-components/p-6156a7ac.system.entry.js +0 -1
  769. package/dist/mint-components/p-624c5352.system.entry.js +0 -1
  770. package/dist/mint-components/p-6305419f.entry.js +0 -1
  771. package/dist/mint-components/p-679a7054.system.js +0 -1
  772. package/dist/mint-components/p-69f28472.system.js +0 -1
  773. package/dist/mint-components/p-6ad110d3.js +0 -1
  774. package/dist/mint-components/p-6cb81b77.entry.js +0 -1
  775. package/dist/mint-components/p-6d27cd05.system.entry.js +0 -1
  776. package/dist/mint-components/p-70ca623f.system.entry.js +0 -1
  777. package/dist/mint-components/p-726c9080.js +0 -1
  778. package/dist/mint-components/p-739b3032.js +0 -1
  779. package/dist/mint-components/p-743882c6.entry.js +0 -1
  780. package/dist/mint-components/p-768b9014.system.entry.js +0 -1
  781. package/dist/mint-components/p-77d17f35.js +0 -1
  782. package/dist/mint-components/p-7cf335a0.entry.js +0 -1
  783. package/dist/mint-components/p-86b66e5c.entry.js +0 -1
  784. package/dist/mint-components/p-8bfebd45.system.entry.js +0 -1
  785. package/dist/mint-components/p-942723ad.entry.js +0 -1
  786. package/dist/mint-components/p-952ed169.js +0 -1
  787. package/dist/mint-components/p-965e34ab.entry.js +0 -1
  788. package/dist/mint-components/p-9741333b.system.entry.js +0 -1
  789. package/dist/mint-components/p-99f1208f.js +0 -1
  790. package/dist/mint-components/p-9a3a0db5.system.entry.js +0 -1
  791. package/dist/mint-components/p-9b4f2af6.js +0 -1
  792. package/dist/mint-components/p-9c79643f.system.js +0 -1
  793. package/dist/mint-components/p-9f9191a4.system.js +0 -1
  794. package/dist/mint-components/p-9ff118a2.system.entry.js +0 -1
  795. package/dist/mint-components/p-a565e753.entry.js +0 -1
  796. package/dist/mint-components/p-a8b913a8.js +0 -1
  797. package/dist/mint-components/p-aaf68d9d.system.js +0 -1
  798. package/dist/mint-components/p-af2d886e.js +0 -1
  799. package/dist/mint-components/p-b3880833.system.entry.js +0 -1
  800. package/dist/mint-components/p-b3cddcca.entry.js +0 -1
  801. package/dist/mint-components/p-b63744fe.js +0 -227
  802. package/dist/mint-components/p-ba505a8c.js +0 -1
  803. package/dist/mint-components/p-bb76c6f3.system.js +0 -1
  804. package/dist/mint-components/p-bd903567.js +0 -1
  805. package/dist/mint-components/p-bf26396f.system.js +0 -1
  806. package/dist/mint-components/p-c3bf9440.entry.js +0 -1
  807. package/dist/mint-components/p-c47b83c3.entry.js +0 -1
  808. package/dist/mint-components/p-c579f318.entry.js +0 -13
  809. package/dist/mint-components/p-c5c029b8.system.js +0 -1
  810. package/dist/mint-components/p-c833872f.system.entry.js +0 -1
  811. package/dist/mint-components/p-ced568fc.system.entry.js +0 -1
  812. package/dist/mint-components/p-cffc23c0.entry.js +0 -1
  813. package/dist/mint-components/p-d1cea1b1.system.js +0 -1
  814. package/dist/mint-components/p-d1d45d97.entry.js +0 -1
  815. package/dist/mint-components/p-d3171b36.system.entry.js +0 -1
  816. package/dist/mint-components/p-d5573e0e.system.entry.js +0 -1
  817. package/dist/mint-components/p-d7d6bf44.system.js +0 -1
  818. package/dist/mint-components/p-db062719.entry.js +0 -230
  819. package/dist/mint-components/p-db5a1e78.js +0 -1
  820. package/dist/mint-components/p-de3311bf.entry.js +0 -9
  821. package/dist/mint-components/p-e069bc2d.entry.js +0 -1
  822. package/dist/mint-components/p-e14c15ca.system.entry.js +0 -1
  823. package/dist/mint-components/p-e1df7914.system.entry.js +0 -1
  824. package/dist/mint-components/p-e426715b.js +0 -1
  825. package/dist/mint-components/p-e43cc1f8.system.entry.js +0 -1
  826. package/dist/mint-components/p-ebcd8a59.js +0 -1
  827. package/dist/mint-components/p-eddcf481.js +0 -17
  828. package/dist/mint-components/p-f16bae7a.system.entry.js +0 -1
  829. package/dist/mint-components/p-f3fbcdb0.system.entry.js +0 -1
  830. package/dist/mint-components/p-f85f36c6.system.entry.js +0 -1
  831. package/dist/mint-components/p-f9cb55dc.entry.js +0 -1
  832. package/dist/mint-components/p-fb1b6fdf.js +0 -1
  833. package/dist/mint-components/p-fd33dd62.system.js +0 -1
  834. package/dist/mint-components/p-fee468b7.system.entry.js +0 -1
  835. package/dist/mint-components/p-fee6801c.js +0 -1
  836. package/dist/types/stories/Leaderboard.stories.d.ts +0 -11
  837. package/dist/types/stories/UserName.stories.d.ts +0 -6
@@ -0,0 +1,2630 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-b0129cd6.js');
4
+ const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
5
+ const global = require('./global-6165db50.js');
6
+ const index_module = require('./index.module-54724339.js');
7
+ const mixins = require('./mixins-7b7c59fe.js');
8
+ const JSS = require('./JSS-c65a40f1.js');
9
+ const luxon = require('./luxon-59ca7d19.js');
10
+ const utils = require('./utils-01dbfd4a.js');
11
+ const sqmTextSpanView = require('./sqm-text-span-view-f101dedf.js');
12
+ const sqmPortalContainerView = require('./sqm-portal-container-view-fdfb3656.js');
13
+ const sqmPortalSectionView = require('./sqm-portal-section-view-186a5f7e.js');
14
+
15
+ const medium = {
16
+ facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
17
+ twitter: { color: "#1da1f2", text: "#fff", icon: "twitter" },
18
+ email: { color: "#666666", text: "#fff", icon: "envelope" },
19
+ direct: { color: "var(--sl-color-primary-500)", text: "#fff", icon: "send" },
20
+ linkedin: { color: "#0077b5", text: "#fff", icon: "linkedin" },
21
+ sms: { color: "#34DA50", text: "#fff", icon: "chat" },
22
+ fbmessenger: { color: "#0084ff", text: "#fff", icon: "messenger" },
23
+ whatsapp: { color: "#25d366", text: "#fff", icon: "whatsapp" },
24
+ linemessenger: { color: "#00B300", text: "#fff", icon: "line" },
25
+ pinterest: { color: "#e60023", text: "#fff", icon: "pinterest" },
26
+ };
27
+ function ShareButtonView(props, children) {
28
+ const vanillaStyle = `
29
+ *::part(base) {
30
+ --sl-focus-ring-color-primary: ${props.backgroundcolor
31
+ ? props.backgroundcolor
32
+ : props.medium
33
+ ? medium[props.medium].color
34
+ : ""}80!important;
35
+
36
+ background: ${props.backgroundcolor
37
+ ? props.backgroundcolor
38
+ : props.medium
39
+ ? medium[props.medium].color
40
+ : ""};
41
+ color: ${props.textcolor
42
+ ? props.textcolor
43
+ : props.medium
44
+ ? medium[props.medium].text
45
+ : ""};
46
+ border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
47
+ }
48
+
49
+ *::part(base):hover {
50
+ border-color: ${props.backgroundcolor
51
+ ? props.backgroundcolor
52
+ : props.medium
53
+ ? medium[props.medium].color
54
+ : ""}D1!important;
55
+ }
56
+
57
+ *::part(base):focus {
58
+ border-color: ${props.backgroundcolor
59
+ ? props.backgroundcolor
60
+ : props.medium
61
+ ? medium[props.medium].color
62
+ : ""}D1!important;
63
+ }
64
+
65
+ *::part(label) {
66
+ position: relative;
67
+ top: 2%;
68
+ }
69
+ `;
70
+ const style = {
71
+ HostBlock: mixins.HostBlock,
72
+ buttonStyle: {
73
+ display: "flex",
74
+ alignItems: "center",
75
+ justifyContent: "center",
76
+ lineHeight: "0",
77
+ },
78
+ };
79
+ const sheet = JSS.createStyleSheet(style);
80
+ const styleString = sheet.toString();
81
+ return props.hide ? (index.h(index.Host, { style: { display: "none" } })) : (index.h("div", null,
82
+ index.h("style", { type: "text/css" }, styleString),
83
+ index.h("style", { type: "text/css" }, vanillaStyle),
84
+ index.h("sl-button", { class: sheet.classes.buttonStyle, loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, exportparts: `base: ${props.type}sharebutton-base` },
85
+ !props.hideicon && (index.h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "icon" })),
86
+ !props.hidetext && children)));
87
+ }
88
+
89
+ const style = {
90
+ HostBlock: mixins.HostBlock,
91
+ inputStyle: {
92
+ "&::part(base)": { background: "white", opacity: "1", cursor: "pointer" },
93
+ },
94
+ };
95
+ const sheet = JSS.createStyleSheet(style);
96
+ const styleString = sheet.toString();
97
+ function ShareLinkView(props) {
98
+ return (index.h("div", null,
99
+ index.h("style", { type: "text/css" }, styleString),
100
+ index.h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: "top-end", disabled: props.disabled, open: props.open },
101
+ index.h("sl-input", { class: sheet.classes.inputStyle, exportparts: "label: input-label", value: props.shareString, readonly: true },
102
+ index.h("sl-icon-button", { onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, slot: "suffix", name: "files", disabled: props.disabled })))));
103
+ }
104
+
105
+ const style$1 = {
106
+ Leaderboard: {
107
+ "& table": {
108
+ width: "100%",
109
+ borderCollapse: "collapse",
110
+ },
111
+ "& th": {
112
+ textAlign: "left",
113
+ padding: "var(--sl-spacing-medium)",
114
+ paddingTop: "0",
115
+ fontSize: "var(--sl-font-size-medium)",
116
+ fontWeight: "var(--sl-font-weight-semibold)",
117
+ },
118
+ "& tr:not(:first-child)": {
119
+ borderTop: "1px solid var(--sl-color-neutral-200)",
120
+ },
121
+ "& td": {
122
+ fontSize: "var(--sl-font-size-medium)",
123
+ fontWeight: "var(--sl-font-weight-normal)",
124
+ },
125
+ "& .ellipses": {
126
+ textAlign: "center",
127
+ padding: "0",
128
+ color: "var(--sl-color-neutral-500)",
129
+ },
130
+ "& .highlight": {
131
+ background: "var(--sl-color-primary-50)",
132
+ },
133
+ "& td, th": {
134
+ color: "var(--sl-color-gray-800)",
135
+ padding: "var(--sl-spacing-medium)",
136
+ },
137
+ "& .User": {
138
+ width: "100%",
139
+ },
140
+ "& .Score": {
141
+ width: "auto",
142
+ whiteSpace: "nowrap",
143
+ },
144
+ },
145
+ };
146
+ const sheet$1 = JSS.createStyleSheet(style$1);
147
+ const styleString$1 = sheet$1.toString();
148
+ const vanillaStyle = `
149
+ :host{
150
+ display: block;
151
+ }
152
+ `;
153
+ function LeaderboardView(props) {
154
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
155
+ const { states, data, elements } = props;
156
+ const { styles } = states;
157
+ console.log("LEADERBOARD PROPS", props);
158
+ if (states.loading)
159
+ return (index.h("div", { class: sheet$1.classes.Leaderboard },
160
+ index.h("style", { type: "text/css" },
161
+ styleString$1,
162
+ vanillaStyle),
163
+ elements.loadingstate));
164
+ let userSeenFlag = false;
165
+ if (!states.hasLeaders) {
166
+ return (index.h("div", { class: sheet$1.classes.Leaderboard },
167
+ index.h("style", { type: "text/css" },
168
+ styleString$1,
169
+ vanillaStyle),
170
+ index.h("table", null,
171
+ index.h("tr", null,
172
+ styles.showRank && index.h("th", { class: "Rank" }, styles.rankheading),
173
+ index.h("th", { class: "User" }, styles.usersheading),
174
+ index.h("th", { class: "Score" }, styles.statsheading))),
175
+ elements.empty));
176
+ }
177
+ return (index.h("div", { class: sheet$1.classes.Leaderboard },
178
+ index.h("style", { type: "text/css" },
179
+ styleString$1,
180
+ vanillaStyle),
181
+ index.h("table", null,
182
+ index.h("tr", null,
183
+ styles.showRank && index.h("th", { class: "Rank" }, styles.rankheading),
184
+ index.h("th", { class: "User" }, styles.usersheading),
185
+ index.h("th", { class: "Score" }, styles.statsheading)), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
186
+ _a.map((user) => {
187
+ var _a, _b;
188
+ if (user.rowNumber === ((_a = data.userRank) === null || _a === void 0 ? void 0 : _a.rowNumber))
189
+ userSeenFlag = true;
190
+ return (index.h("tr", { class: user.rowNumber === ((_b = data.userRank) === null || _b === void 0 ? void 0 : _b.rowNumber) ? "highlight" : "" },
191
+ styles.showRank && index.h("td", { class: "Rank" }, user.rank),
192
+ index.h("td", { class: "User" }, user.firstName && user.lastInitial
193
+ ? user.firstName + " " + user.lastInitial
194
+ : user.firstName || user.lastInitial
195
+ ? user.firstName || user.lastInitial
196
+ : styles.anonymousUser || "Anonymous User"),
197
+ index.h("td", { class: "Score" }, user.value)));
198
+ }),
199
+ states.hasLeaders && !userSeenFlag && data.showUser && (index.h("tr", null,
200
+ index.h("td", { colSpan: 100, class: "ellipses" },
201
+ index.h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
202
+ states.hasLeaders && !userSeenFlag && data.showUser && (index.h("tr", { class: "highlight" },
203
+ styles.showRank && (index.h("td", { class: "Rank" }, ((_b = data.userRank) === null || _b === void 0 ? void 0 : _b.rank) || "-")),
204
+ index.h("td", { class: "User" }, ((_c = data.userRank) === null || _c === void 0 ? void 0 : _c.firstName) && ((_d = data.userRank) === null || _d === void 0 ? void 0 : _d.lastInitial)
205
+ ? ((_e = data.userRank) === null || _e === void 0 ? void 0 : _e.firstName) + " " + ((_f = data.userRank) === null || _f === void 0 ? void 0 : _f.lastInitial)
206
+ : ((_g = data.userRank) === null || _g === void 0 ? void 0 : _g.firstName) || ((_h = data.userRank) === null || _h === void 0 ? void 0 : _h.lastInitial)
207
+ ? ((_j = data.userRank) === null || _j === void 0 ? void 0 : _j.firstName) || ((_k = data.userRank) === null || _k === void 0 ? void 0 : _k.lastInitial)
208
+ : styles.anonymousUser || "Anonymous User"),
209
+ index.h("td", { class: "Score" }, ((_l = data.userRank) === null || _l === void 0 ? void 0 : _l.value) || "0"))),
210
+ data.leaderboard.length ? elements.empty : "")));
211
+ }
212
+
213
+ const style$2 = {
214
+ HostBlock: mixins.HostBlock,
215
+ ":host": {
216
+ "min-height": "100vh",
217
+ },
218
+ Frame: {
219
+ "min-height": "100vh",
220
+ display: "flex",
221
+ "flex-direction": "column",
222
+ "box-sizing": "border-box",
223
+ },
224
+ FooterWrapper: {
225
+ width: "100%",
226
+ "max-width": "100%",
227
+ padding: "var(--sl-spacing-medium) var(--sl-spacing-x-large)",
228
+ background: "var(--sqm-footer-background)",
229
+ display: "flex",
230
+ "justify-content": "flex-end",
231
+ "align-items": "center",
232
+ "box-sizing": "border-box",
233
+ "margin-top": "auto",
234
+ },
235
+ HeaderWrapper: {
236
+ width: "100%",
237
+ "max-width": "100%",
238
+ "box-sizing": "border-box",
239
+ display: "flex",
240
+ "justify-content": "space-between",
241
+ padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
242
+ "align-items": "center",
243
+ "background-color": "var(--sqm-header-background)",
244
+ "@media screen and (max-width: 499px)": {
245
+ "flex-direction": "row-reverse",
246
+ "justify-content": "flex-end",
247
+ padding: "0",
248
+ },
249
+ },
250
+ };
251
+ const sheet$2 = JSS.createStyleSheet(style$2);
252
+ const styleString$2 = sheet$2.toString();
253
+ function PortalFrameView(props, children) {
254
+ const { data } = props;
255
+ return (index.h("div", { class: sheet$2.classes.Frame },
256
+ index.h("style", { type: "text/css" }, styleString$2),
257
+ index.h("div", { class: sheet$2.classes.HeaderWrapper },
258
+ data.header,
259
+ index.h("slot", { name: "sqm-navigation-menu" })),
260
+ children,
261
+ index.h("div", { class: sheet$2.classes.FooterWrapper }, data.footer)));
262
+ }
263
+
264
+ const EditProfileView = (props) => {
265
+ var _a, _b, _c, _d;
266
+ const { states, callbacks } = props;
267
+ const { text } = states;
268
+ const { errors } = states.formState;
269
+ if (states.showEdit) {
270
+ return (index.h("div", { class: `CardWrapper ${!states.showEdit && "ShowEdit"}` },
271
+ index.h("h2", { style: {
272
+ fontSize: "var(--sl-font-size-x-large)",
273
+ margin: "0px",
274
+ textAlign: "center",
275
+ } }, text.editprofileheader),
276
+ index.h("form", { class: "FormWrapper", onSubmit: callbacks.onSubmit },
277
+ index.h("div", { class: "FormSection" },
278
+ states.formState.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
279
+ index.h("div", { part: "erroralert-text" }, states.formState.error))),
280
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label", value: states.formState.firstName, onInput: callbacks.onChange, label: text.firstnametext, disabled: states.loading }, (errors.firstName && errors.firstName.status !== "valid"
281
+ ? { class: "ErrorStyles", helpText: "Cannot be empty" }
282
+ : []), { id: "firstName", name: "firstName", error: errors.firstName && errors.firstName.status !== "valid"
283
+ ? errors.firstName.message
284
+ : undefined })),
285
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label", value: states.formState.lastName, onInput: callbacks.onChange, label: text.lastnametext, disabled: states.loading, id: "lastName", name: "lastName" }, (errors.lastName && errors.lastName.status !== "valid"
286
+ ? { class: "ErrorStyles", helpText: "Cannot be empty" }
287
+ : []), { error: errors.lastName && errors.lastName.status !== "valid"
288
+ ? errors.lastName.message
289
+ : undefined }))),
290
+ text.showregion && states.formState.currentRegion && (index.h("sl-input", { exportparts: "label: input-label", disabled: true, value: states.formState.currentRegion, label: text.currentregiontext, id: "currentRegion", name: "currentRegion" })),
291
+ index.h("div", { class: "ButtonWrapper" },
292
+ index.h("sl-button", { onClick: () => {
293
+ callbacks.setShowEdit(false);
294
+ }, exportparts: "base: defaultbutton-base" }, text.canceltext),
295
+ index.h("sl-button", { type: "primary", loading: states.loading, disabled: states.submitDisabled, onClick: (e) => {
296
+ callbacks.onSubmit(e);
297
+ }, submit: true, exportparts: "base: primarybutton-base" }, text.updatetext)))));
298
+ }
299
+ return (index.h("div", { class: `CardWrapper FormWrapper ${!states.showEdit && "ShowEdit"}` },
300
+ index.h("div", { class: "FormSection" },
301
+ index.h("h2", { style: {
302
+ fontSize: "var(--sl-font-size-x-large",
303
+ marginBottom: "0px",
304
+ textAlign: "center",
305
+ } }, text.editprofileheader),
306
+ index.h("div", null,
307
+ index.h("p", { style: { fontSize: "var(--sl-font-size-medium)" } }, (_a = states.user) === null || _a === void 0 ? void 0 :
308
+ _a.firstName,
309
+ " ", (_b = states.user) === null || _b === void 0 ? void 0 :
310
+ _b.lastName),
311
+ index.h("p", { style: { fontSize: "var(--sl-font-size-medium)" }, title: (_c = states.user) === null || _c === void 0 ? void 0 : _c.email }, (_d = states.user) === null || _d === void 0 ? void 0 : _d.email))),
312
+ index.h("sl-button", { type: "primary", loading: states.loading, onClick: () => {
313
+ callbacks.resetForm();
314
+ callbacks.setShowEdit(true);
315
+ }, exportparts: "base: primarybutton-base" }, text.editprofiletext)));
316
+ };
317
+
318
+ const MessageLinkQuery = index_module.dist.gql `
319
+ query ($programId: ID) {
320
+ user: viewer {
321
+ ... on User {
322
+ shareLink(programId: $programId)
323
+ }
324
+ }
325
+ }
326
+ `;
327
+ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
328
+ mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
329
+ createUserAnalyticsEvent(eventMeta: $eventMeta)
330
+ }
331
+ `;
332
+ function useShareLink(props) {
333
+ var _a, _b;
334
+ const { programId = index_module.M() } = props;
335
+ const user = index_module.ne();
336
+ const engagementMedium = index_module.x();
337
+ const { data } = index_module.mn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
338
+ const [sendLoadEvent] = index_module.De(WIDGET_ENGAGEMENT_EVENT);
339
+ 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 :
340
+ // Shown during loading
341
+ "...";
342
+ const [open, setOpen] = stencilHooks_module.useState(false);
343
+ function onClick() {
344
+ // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
345
+ // Only if called from a user-initiated event
346
+ navigator.clipboard.writeText(shareString);
347
+ setOpen(true);
348
+ setTimeout(() => setOpen(false), props.tooltiplifespan);
349
+ sendLoadEvent({
350
+ eventMeta: {
351
+ programId,
352
+ id: user === null || user === void 0 ? void 0 : user.id,
353
+ accountId: user === null || user === void 0 ? void 0 : user.accountId,
354
+ type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
355
+ meta: {
356
+ engagementMedium,
357
+ shareMedium: "DIRECT",
358
+ },
359
+ },
360
+ });
361
+ }
362
+ return { ...props, onClick, open, shareString };
363
+ }
364
+
365
+ const MessageLinkQuery$1 = index_module.dist.gql `
366
+ query (
367
+ $programId: ID
368
+ $engagementMedium: UserEngagementMedium!
369
+ $shareMedium: ReferralShareMedium!
370
+ ) {
371
+ viewer {
372
+ ... on User {
373
+ messageLink(
374
+ programId: $programId
375
+ engagementMedium: $engagementMedium
376
+ shareMedium: $shareMedium
377
+ )
378
+ shareLink(programId: $programId, engagementMedium: $engagementMedium)
379
+ }
380
+ }
381
+ }
382
+ `;
383
+ function NativeShare(props, directLink) {
384
+ const title = props.sharetitle || "Share title";
385
+ const text = props.sharetext || "Share text";
386
+ if (directLink === "undefined") {
387
+ return alert("error: message link undefined!");
388
+ }
389
+ if (window.navigator.share) {
390
+ window.navigator
391
+ .share({
392
+ title,
393
+ text,
394
+ url: directLink,
395
+ })
396
+ .catch((error) => console.error("Error on web share", error));
397
+ }
398
+ else {
399
+ alert("Not on a supported device");
400
+ }
401
+ }
402
+ function FacebookShare(directLink, res) {
403
+ var _a, _b;
404
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink) === "undefined" ||
405
+ directLink === "undefined") {
406
+ return alert("error: message link undefined!");
407
+ }
408
+ if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
409
+ return SquatchAndroid.shareOnFacebook(directLink, res.data.viewer.messageLink);
410
+ }
411
+ else {
412
+ return GenericShare(res);
413
+ }
414
+ }
415
+ function GenericShare(res) {
416
+ var _a, _b;
417
+ return ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink) ? window.open(res.data.viewer.messageLink)
418
+ : alert("error: message link undefined!");
419
+ }
420
+ function useShareButton(props) {
421
+ var _a, _b;
422
+ const { sharetitle, sharetext, medium } = props;
423
+ const programId = props.programId ? props.programId : index_module.M();
424
+ const user = index_module.ne();
425
+ const variables = {
426
+ engagementMedium: index_module.x(),
427
+ programId: programId,
428
+ shareMedium: medium.toUpperCase(),
429
+ };
430
+ // only queries if a programId is available
431
+ const res = index_module.mn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
432
+ 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;
433
+ const environment = index_module.D();
434
+ const hide = (medium.toLocaleUpperCase() === "SMS" &&
435
+ window.orientation === undefined) ||
436
+ (medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
437
+ function onClick() {
438
+ if (medium.toLocaleUpperCase() === "FACEBOOK" &&
439
+ environment.type === "SquatchAndroid") {
440
+ FacebookShare(directLink, res);
441
+ }
442
+ else if (medium.toLocaleUpperCase() === "DIRECT") {
443
+ NativeShare({ sharetitle, sharetext }, directLink);
444
+ }
445
+ else {
446
+ GenericShare(res);
447
+ }
448
+ }
449
+ return { ...props, loading: res.loading, onClick, hide };
450
+ }
451
+
452
+ function PortalChangePasswordView(props) {
453
+ const { states, callbacks } = props;
454
+ const style = {
455
+ Dialog: {
456
+ padding: "0",
457
+ "&::part(close-button)": {
458
+ "margin-top": "var(--sl-spacing-medium)",
459
+ },
460
+ "&::part(body)": {
461
+ padding: "0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)",
462
+ },
463
+ },
464
+ Error: {
465
+ "&::part(erroralert-base)": {
466
+ "margin-bottom": "15px",
467
+ },
468
+ },
469
+ Success: {
470
+ "&::part(successalert-base)": {
471
+ "margin-bottom": "15px",
472
+ },
473
+ },
474
+ InputContainer: {
475
+ "& > :not(:last-child)": {
476
+ "margin-bottom": "var(--sl-spacing-x-large)",
477
+ },
478
+ },
479
+ CancelButton: {
480
+ width: "25%",
481
+ margin: "var(--sl-spacing-large) auto",
482
+ },
483
+ PasswordField: {
484
+ marginBottom: "var(--sl-spacing-large) !important",
485
+ display: "block",
486
+ },
487
+ ChangePasswordButton: {
488
+ paddingTop: "var(--sl-spacing-x-large)",
489
+ },
490
+ };
491
+ const sheet = JSS.createStyleSheet(style);
492
+ const styleString = sheet.toString();
493
+ return (index.h("div", null,
494
+ index.h("style", { type: "text/css" }, styleString),
495
+ index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, "onSl-hide": () => callbacks.setOpen(false) },
496
+ index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
497
+ labelMargin: "x-large",
498
+ padding: "none",
499
+ label: (index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), states.content.modalChangePasswordHeader)),
500
+ content: (index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "none", gap: "32px" }),
501
+ states.error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
502
+ index.h("div", { part: "erroralert-text" }, states.error))),
503
+ states.success && (index.h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
504
+ index.h("div", { part: "successalert-text" }, states.content.successMessage))),
505
+ index.h("sl-form", { "onSl-submit": callbacks.submit },
506
+ index.h("div", { class: sheet.classes.InputContainer },
507
+ index.h("sqm-password-field", { exportparts: "input-label: input-label", class: sheet.classes.PasswordField, fieldLabel: states.content.passwordFieldLabel }),
508
+ index.h("sl-input", { exportparts: "label: input-label", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, required: true, togglePassword: true, disabled: states.loading, type: "password" })),
509
+ index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "row", padding: "none", gap: "20px" }),
510
+ index.h("sl-button", { class: sheet.classes.ChangePasswordButton, type: "primary", submit: true, loading: states.loading }, states.content.changePasswordButtonText),
511
+ index.h("sl-button", { class: sheet.classes.CancelButton, type: "text", onClick: () => callbacks.setOpen(false) }, states.content.cancelText))))),
512
+ }))),
513
+ index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
514
+ labelMargin: "x-large",
515
+ padding: "xxx-large",
516
+ label: (index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), states.content.portalChangePasswordHeader)),
517
+ content: (index.h("sl-button", { onClick: () => callbacks.setOpen(true) }, states.content.portalChangePasswordButtonText)),
518
+ }),
519
+ index.h("style", { type: "text/css" }, styleString))));
520
+ }
521
+
522
+ const style$3 = {
523
+ Wrapper: mixins.AuthWrapper,
524
+ Column: mixins.AuthColumn,
525
+ ForgotButtonContainer: {
526
+ display: "inline",
527
+ cursor: "pointer",
528
+ "font-size": "13px",
529
+ "font-weight": "600",
530
+ color: "#AAAAAA",
531
+ margin: "0",
532
+ },
533
+ ButtonsContainer: mixins.AuthButtonsContainer,
534
+ };
535
+ const vanillaStyle$1 = `
536
+ :host {
537
+ display: block;
538
+ }
539
+ :host([hidden]): {
540
+ display: none;
541
+ }
542
+ `;
543
+ const sheet$3 = JSS.createStyleSheet(style$3);
544
+ const styleString$3 = sheet$3.toString();
545
+ function PortalLoginView(props) {
546
+ const { states, callbacks, content } = props;
547
+ return (index.h("div", { class: sheet$3.classes.Wrapper },
548
+ index.h("style", { type: "text/css" },
549
+ vanillaStyle$1,
550
+ styleString$3),
551
+ index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
552
+ index.h("sl-form", { class: sheet$3.classes.Column, "onSl-submit": callbacks.submit },
553
+ props.states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
554
+ index.h("div", { part: "erroralert-text" }, props.states.error))),
555
+ index.h("sl-input", { exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
556
+ index.h("div", null,
557
+ index.h("sl-input", { exportparts: "label: input-label", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
558
+ index.h("div", { class: sheet$3.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
559
+ index.h("div", { class: sheet$3.classes.ButtonsContainer },
560
+ index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
561
+ content.secondaryButton))));
562
+ }
563
+
564
+ const style$4 = {
565
+ Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
566
+ Column: mixins.AuthColumn,
567
+ HostBlock: mixins.HostBlock,
568
+ ":host": {
569
+ margin: "0 auto",
570
+ width: "100%",
571
+ },
572
+ ButtonsContainer: mixins.AuthButtonsContainer,
573
+ ErrorStyle: mixins.ErrorStyles,
574
+ };
575
+ const vanillaStyle$2 = `
576
+ sqm-portal-register {
577
+ margin: 0 auto;
578
+ width: 100%;
579
+ display: block;
580
+ }
581
+
582
+ :host{
583
+ display: block;
584
+ }
585
+
586
+ :host([hidden]) {
587
+ display: none;
588
+ }
589
+ `;
590
+ const sheet$4 = JSS.createStyleSheet(style$4);
591
+ const styleString$4 = sheet$4.toString();
592
+ function PortalRegisterView(props) {
593
+ var _a, _b, _c, _d, _e, _f, _g, _h;
594
+ const { states, refs, callbacks, content } = props;
595
+ if (states.error) {
596
+ window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
597
+ }
598
+ return (index.h("div", { class: sheet$4.classes.Wrapper },
599
+ index.h("style", { type: "text/css" },
600
+ vanillaStyle$2,
601
+ styleString$4),
602
+ index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
603
+ index.h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
604
+ states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
605
+ index.h("div", { part: "erroralert-text" }, props.states.error))),
606
+ content.formData,
607
+ !states.hideInputs && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
608
+ if (!value) {
609
+ return "Cannot be empty";
610
+ }
611
+ // this matches shoelace validation, but could be better
612
+ if (!value.includes("@")) {
613
+ return "Must be a valid email address";
614
+ }
615
+ } }, (((_b = (_a = states.validationState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
616
+ class: sheet$4.classes.ErrorStyle,
617
+ helpText: ((_d = (_c = states.validationState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
618
+ "Cannot be empty",
619
+ }
620
+ : [])))),
621
+ !states.hideInputs && (index.h("sqm-password-field", { fieldLabel: content.passwordLabel, "enable-validation": states.enablePasswordValidation })),
622
+ content.passwordField,
623
+ !states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.validationState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
624
+ class: sheet$4.classes.ErrorStyle,
625
+ helpText: ((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) ||
626
+ "Cannot be empty",
627
+ }
628
+ : [])))),
629
+ content.terms,
630
+ index.h("div", { class: sheet$4.classes.ButtonsContainer },
631
+ index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
632
+ content.secondaryButton))));
633
+ }
634
+
635
+ const style$5 = {
636
+ Description: {
637
+ "& input[type=checkbox]": {
638
+ display: "none",
639
+ },
640
+ "& input:checked ~ .details": {
641
+ transform: "rotate(-180deg)",
642
+ },
643
+ "& .details": {
644
+ position: "absolute",
645
+ top: "var(--sl-spacing-medium)",
646
+ right: "var(--sl-spacing-medium)",
647
+ color: "var(--sl-color-neutral-700)",
648
+ fontSize: "var(--sl-font-size-large)",
649
+ "& :hover": {
650
+ color: "var(--sl-color-primary-700)",
651
+ },
652
+ transformOrigin: "50% 37%",
653
+ transition: "transform var(--sl-transition-medium) ease",
654
+ cursor: "pointer",
655
+ },
656
+ "& input:checked ~ .summary": {
657
+ transition: "all var(--sl-transition-medium) ease",
658
+ maxHeight: "300px",
659
+ marginBottom: "var(--sl-spacing-x-large)",
660
+ },
661
+ "& input:checked ~ .summary[progress-bar]": {
662
+ marginBottom: "var(--sl-spacing-xx-large)",
663
+ },
664
+ "& .summary": {
665
+ display: "block",
666
+ overflow: "hidden",
667
+ fontSize: "var(--sl-font-size-small)",
668
+ maxHeight: "0px",
669
+ transition: "all var(--sl-transition-fast) ease-out",
670
+ marginBottom: "var(--sl-spacing-medium)",
671
+ },
672
+ },
673
+ };
674
+ const sheet$5 = JSS.createStyleSheet(style$5);
675
+ const styleString$5 = sheet$5.toString();
676
+ function Details(props) {
677
+ const rid = Math.random().toString(36).slice(2);
678
+ return (index.h("div", null,
679
+ index.h("style", { type: "text/css" }, styleString$5),
680
+ index.h("span", { class: sheet$5.classes.Description },
681
+ index.h("input", { type: "checkbox", id: "details-" + rid }),
682
+ index.h("label", { class: "details", htmlFor: "details-" + rid },
683
+ index.h("sl-icon", { name: "chevron-down" })),
684
+ index.h("span", { class: "summary", "progress-bar": props.progressBar }, props.content.description))));
685
+ }
686
+
687
+ const Gift = () => {
688
+ return (index.h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
689
+ index.h("path", { d: "M15 5H12.4508H9V16H13.5C14.0523 16 14.5 15.5523 14.5 15V9H15C15.5523 9 16 8.55228 16 8V6C16 5.44772 15.5523 5 15 5Z", fill: "#F2C94C" }),
690
+ index.h("path", { d: "M1.5 9V15C1.5 15.5523 1.94772 16 2.5 16H7V5H4.64242H1C0.447715 5 0 5.44772 0 6V8C0 8.55228 0.447715 9 1 9H1.5Z", fill: "#F2C94C" }),
691
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9V10H14.5V9H1.5Z", fill: "#BE9720" }),
692
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#EB5757" })));
693
+ };
694
+
695
+ const style$6 = {
696
+ ProgressBar: {
697
+ "& .progress-bar": {
698
+ height: "0",
699
+ marginTop: "var(--sl-spacing-large)",
700
+ marginBottom: "var(--sl-spacing-xxx-large)",
701
+ marginRight: "var(--sl-spacing-x-small)",
702
+ fontSize: "var(--sl-font-size-x-small)",
703
+ display: "grid",
704
+ lineHeight: "45px",
705
+ userSelect: "none",
706
+ },
707
+ "&[data-steps]": {
708
+ marginTop: "calc(-1*var(--sl-spacing-x-small))",
709
+ },
710
+ "&[data-steps] .progress-bar": {
711
+ marginTop: "var(--sl-spacing-medium)",
712
+ },
713
+ "&[data-expired] .progress-bar": {
714
+ filter: "grayscale(1)",
715
+ },
716
+ "& .progress-bar.repeatable-steps": {
717
+ marginLeft: "var(--sl-spacing-x-small)",
718
+ },
719
+ "& .filled:after": {
720
+ content: '""',
721
+ display: "flex",
722
+ width: "100%",
723
+ height: "4px",
724
+ borderRadius: "4px",
725
+ backgroundColor: "var(--sl-color-primary-300)",
726
+ },
727
+ "& .progress": {
728
+ display: "block",
729
+ textAlign: "center",
730
+ marginLeft: "-100px",
731
+ marginRight: "-100px",
732
+ },
733
+ "& .progress::after": {
734
+ content: '""',
735
+ width: "12px",
736
+ height: "12px",
737
+ display: "flex",
738
+ backgroundColor: "var(--sl-color-primary-300)",
739
+ borderRadius: "50%",
740
+ position: "relative",
741
+ left: "47%",
742
+ top: "-85%",
743
+ },
744
+ "& .progress.bg:after": {
745
+ width: "0",
746
+ height: "0",
747
+ border: "none",
748
+ },
749
+ "& .progress.top": {
750
+ position: "relative",
751
+ top: "-40px",
752
+ },
753
+ "& .progress.top:after": {
754
+ top: "-16%",
755
+ },
756
+ "& .empty": {
757
+ display: "block",
758
+ textAlign: "center",
759
+ marginLeft: "-100px",
760
+ marginRight: "-100px",
761
+ },
762
+ "& .empty::after": {
763
+ content: '""',
764
+ width: "12px",
765
+ height: "12px",
766
+ border: "2px solid #E0E0E0",
767
+ margin: "-2px",
768
+ display: "flex",
769
+ backgroundColor: "white",
770
+ borderRadius: "50%",
771
+ position: "relative",
772
+ left: "47%",
773
+ top: "-85%",
774
+ },
775
+ "& .empty.bg:after": {
776
+ width: "0",
777
+ height: "0",
778
+ border: "none",
779
+ },
780
+ "& .remain:after": {
781
+ content: '""',
782
+ display: "flex",
783
+ width: "100%",
784
+ height: "4px",
785
+ borderRadius: "4px",
786
+ backgroundColor: "#E0E0E0",
787
+ },
788
+ "& .gift.bw": {
789
+ filter: "grayscale(100%)",
790
+ },
791
+ "& .gift.start": {
792
+ transform: "scale(80%)",
793
+ top: "-20px",
794
+ },
795
+ "& .gift": {
796
+ textAlign: "center",
797
+ marginLeft: "-100px",
798
+ marginRight: "-100px",
799
+ position: "relative",
800
+ top: "-18px",
801
+ },
802
+ },
803
+ };
804
+ const sheet$6 = JSS.createStyleSheet(style$6, { classNamePrefix: "sqm-prog-bar" });
805
+ const styleString$6 = sheet$6.toString();
806
+ function ProgressBarView(props) {
807
+ var _a;
808
+ const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, expired = false, finite = 0, } = props;
809
+ let aggregate = buildProgressBar(repeatable, steps, props);
810
+ const { columns, items } = aggregate;
811
+ //@ts-ignore
812
+ console.log("PROGRESS BAR PROPS " + ((_a = props === null || props === void 0 ? void 0 : props.content) === null || _a === void 0 ? void 0 : _a.cardTitle));
813
+ console.log({ props });
814
+ return (index.h("div", { class: sheet$6.classes.ProgressBar, "data-expired": expired, "data-steps": steps, "data-done": goal <= progress },
815
+ index.h("style", { type: "text/css" }, styleString$6),
816
+ index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
817
+ (Boolean(finite) && progress > 2 * goal)
818
+ ? "progress-bar repeatable-steps"
819
+ : "progress-bar", style: {
820
+ gridTemplateColumns: columns,
821
+ marginLeft: progress === 0 && !steps ? "var(--sl-spacing-x-small)" : "",
822
+ } }, items)));
823
+ }
824
+ function buildProgressBar(repeatable, steps, props) {
825
+ if (repeatable) {
826
+ if (steps) {
827
+ return addStepsRepeatable(props);
828
+ }
829
+ else {
830
+ return addLinearRepeatable(props);
831
+ }
832
+ }
833
+ // non repeatable
834
+ else {
835
+ if (steps) {
836
+ return addSteps(props);
837
+ }
838
+ else {
839
+ return addLinear(props);
840
+ }
841
+ }
842
+ }
843
+ function addSteps({ progress, goal }) {
844
+ const items = [];
845
+ const columns = [];
846
+ let ratio = 1 / goal;
847
+ for (let i = 1; i < goal; i++) {
848
+ columns.push(ratio + "fr");
849
+ columns.push("0fr");
850
+ if (i > progress) {
851
+ items.push(index.h("div", { class: "remain" }));
852
+ items.push(index.h("div", { class: "empty" }, i));
853
+ }
854
+ else {
855
+ items.push(index.h("div", { class: "filled" }));
856
+ items.push(index.h("div", { class: "progress" }, i));
857
+ }
858
+ }
859
+ columns.push(ratio + "fr");
860
+ columns.push("0fr");
861
+ // reward success
862
+ if (goal <= progress) {
863
+ columns.push("0fr");
864
+ items.push(index.h("div", { class: "filled" }));
865
+ items.push(index.h("div", { class: "progress bg" }, goal));
866
+ items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
867
+ }
868
+ // reward fail
869
+ else {
870
+ columns.push("0fr");
871
+ items.push(index.h("div", { class: "remain" }));
872
+ items.push(index.h("div", { class: "empty bg" }, goal));
873
+ items.push(index.h("div", { class: "gift bw" }, index.h(Gift, null)));
874
+ }
875
+ return {
876
+ items,
877
+ columns: columns.join(" "),
878
+ };
879
+ }
880
+ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
881
+ let repetitions = Math.floor(progress / goal);
882
+ let ratio = ((progress % goal) / goal) * 0.5;
883
+ const items = [];
884
+ let columns = "";
885
+ // 0 repetition
886
+ if (repetitions == 0) {
887
+ columns = ratio + "fr 0fr " + (0.5 - ratio) + "fr 0fr 0fr 0.5fr 0fr 0fr";
888
+ items.push(index.h("div", { class: "filled" }));
889
+ items.push(index.h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progressBarUnit + progress));
890
+ items.push(index.h("div", { class: "remain" }));
891
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal));
892
+ items.push(index.h("div", { class: progress == goal ? "gift" : "gift bw" },
893
+ index.h(Gift, null)));
894
+ items.push(index.h("div", { class: "remain" }));
895
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
896
+ items.push(index.h("div", { class: "gift bw" }, index.h(Gift, null)));
897
+ }
898
+ // single repetition
899
+ else if (repetitions == 1) {
900
+ columns =
901
+ "0.5fr 0fr 0fr " + ratio + "fr 0fr " + (0.5 - ratio) + "fr 0fr 0fr";
902
+ items.push(index.h("div", { class: "filled" }));
903
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal));
904
+ items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
905
+ items.push(index.h("div", { class: "filled" }));
906
+ items.push(index.h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progress == goal ? "" : progressBarUnit + progress));
907
+ items.push(index.h("div", { class: "remain" }));
908
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
909
+ items.push(index.h("div", { class: "gift bw" }, index.h(Gift, null)));
910
+ }
911
+ // finite repetition hit
912
+ else if (finite && repetitions >= finite) {
913
+ if (repetitions > 2) {
914
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 2)));
915
+ items.push(index.h("div", { class: "gift start" }, index.h(Gift, null)));
916
+ columns = "0fr 0fr 0.5fr 0fr 0fr 0.5fr 0fr 0fr";
917
+ }
918
+ else {
919
+ columns = "0.5fr 0fr 0fr 0.5fr 0fr 0fr";
920
+ }
921
+ items.push(index.h("div", { class: "filled" }));
922
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 1)));
923
+ items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
924
+ items.push(index.h("div", { class: "filled" }));
925
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * finite));
926
+ items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
927
+ }
928
+ // multiple repetitions
929
+ else {
930
+ columns =
931
+ "0fr 0fr 0.5fr 0fr 0fr " +
932
+ ratio +
933
+ "fr 0fr " +
934
+ (0.5 - ratio) +
935
+ "fr 0fr 0fr";
936
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions - 1)));
937
+ items.push(index.h("div", { class: "gift start" }, index.h(Gift, null)));
938
+ items.push(index.h("div", { class: "filled" }));
939
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * repetitions));
940
+ items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
941
+ items.push(index.h("div", { class: "filled" }));
942
+ items.push(index.h("div", { class: progress == goal * repetitions ? "progress top bg" : "progress top" }, progress == goal * repetitions ? "" : progressBarUnit + progress));
943
+ items.push(index.h("div", { class: "remain" }));
944
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions + 1)));
945
+ items.push(index.h("div", { class: "gift bw" }, index.h(Gift, null)));
946
+ }
947
+ return { items, columns };
948
+ }
949
+ function addStepsRepeatable({ progress, goal, finite, }) {
950
+ const items = [];
951
+ const columns = [];
952
+ let repetitions = Math.floor(progress / goal);
953
+ // no or single repetition
954
+ if (repetitions < 2) {
955
+ let ratio = 1 / goal;
956
+ for (let i = 1; i < goal * 2 + 1; i++) {
957
+ columns.push(ratio + "fr");
958
+ columns.push("0fr");
959
+ if (i > progress) {
960
+ if (i == goal) {
961
+ columns.push("0fr");
962
+ items.push(index.h("div", { class: "remain" }));
963
+ items.push(index.h("div", { class: "empty bg" }, goal));
964
+ items.push(index.h("div", { class: "gift bw" }, index.h(Gift, null)));
965
+ }
966
+ else if (i == goal * 2) {
967
+ columns.push("0fr");
968
+ columns.push("0fr");
969
+ items.push(index.h("div", { class: "remain" }));
970
+ items.push(index.h("div", { class: "empty bg" }, goal * 2));
971
+ items.push(index.h("div", { class: "gift bw" }, index.h(Gift, null)));
972
+ }
973
+ else {
974
+ items.push(index.h("div", { class: "remain" }));
975
+ items.push(index.h("div", { class: "empty" }, i));
976
+ }
977
+ }
978
+ else if (i == goal) {
979
+ columns.push("0fr");
980
+ items.push(index.h("div", { class: "filled" }));
981
+ items.push(index.h("div", { class: "progress bg" }, i));
982
+ items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
983
+ }
984
+ else {
985
+ items.push(index.h("div", { class: "filled" }));
986
+ items.push(index.h("div", { class: "progress" }, i));
987
+ }
988
+ }
989
+ }
990
+ // finite repetition hit
991
+ else if (finite && repetitions >= finite) {
992
+ let ratio = 1 / goal;
993
+ if (repetitions > 2) {
994
+ columns.push("0fr");
995
+ columns.push("0fr");
996
+ items.push(index.h("div", { class: "progress bg" }, goal * (finite - 2)));
997
+ items.push(index.h("div", { class: "gift start" }, index.h(Gift, null)));
998
+ }
999
+ for (let i = 1; i < goal * 2 + 1; i++) {
1000
+ columns.push(ratio + "fr");
1001
+ columns.push("0fr");
1002
+ if (i > progress) {
1003
+ if (i == goal) {
1004
+ columns.push("0fr");
1005
+ items.push(index.h("div", { class: "remain" }));
1006
+ items.push(index.h("div", { class: "progress bg" }, goal * (finite - 1)));
1007
+ items.push(index.h("div", { class: "gift bw" }, index.h(Gift, null)));
1008
+ }
1009
+ }
1010
+ else if (i == goal) {
1011
+ columns.push("0fr");
1012
+ items.push(index.h("div", { class: "filled" }));
1013
+ items.push(index.h("div", { class: "progress bg" }, goal * (finite - 1)));
1014
+ items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
1015
+ }
1016
+ else if (i == goal * 2) {
1017
+ columns.push("0fr");
1018
+ columns.push("0fr");
1019
+ items.push(index.h("div", { class: "filled" }));
1020
+ items.push(index.h("div", { class: "progress bg" }, goal * finite));
1021
+ items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
1022
+ }
1023
+ else {
1024
+ items.push(index.h("div", { class: "filled" }));
1025
+ items.push(index.h("div", { class: "progress" }, i + goal * (finite - 2)));
1026
+ }
1027
+ }
1028
+ }
1029
+ // case repetition many
1030
+ else {
1031
+ let position = (progress % goal) + goal;
1032
+ let ratio = 1 / goal;
1033
+ columns.push("0fr");
1034
+ columns.push("0fr");
1035
+ items.push(index.h("div", { class: "progress bg" }, goal * (repetitions - 1)));
1036
+ items.push(index.h("div", { class: "gift start" }, index.h(Gift, null)));
1037
+ for (let i = 1; i < goal * 2 + 1; i++) {
1038
+ columns.push(ratio + "fr");
1039
+ columns.push("0fr");
1040
+ if (i <= goal) {
1041
+ if (i == goal) {
1042
+ columns.push("0fr");
1043
+ items.push(index.h("div", { class: "filled" }));
1044
+ items.push(index.h("div", { class: "progress bg" }, i + goal * (repetitions - 1)));
1045
+ items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
1046
+ }
1047
+ else {
1048
+ items.push(index.h("div", { class: "filled" }));
1049
+ items.push(index.h("div", { class: "progress" }, i + goal * (repetitions - 1)));
1050
+ }
1051
+ }
1052
+ else if (i > position) {
1053
+ if (i == goal * 2) {
1054
+ columns.push("0fr");
1055
+ columns.push("0fr");
1056
+ items.push(index.h("div", { class: "remain" }));
1057
+ items.push(index.h("div", { class: "empty bg" }, i + goal * (repetitions - 1)));
1058
+ items.push(index.h("div", { class: "gift bw" }, index.h(Gift, null)));
1059
+ }
1060
+ else {
1061
+ items.push(index.h("div", { class: "remain" }));
1062
+ items.push(index.h("div", { class: "empty" }, i + goal * (repetitions - 1)));
1063
+ }
1064
+ }
1065
+ else {
1066
+ items.push(index.h("div", { class: "filled" }));
1067
+ items.push(index.h("div", { class: "progress" }, i + goal * (repetitions - 1)));
1068
+ }
1069
+ }
1070
+ }
1071
+ return { items, columns: columns.join(" ") };
1072
+ }
1073
+ function addLinear({ progress, goal, progressBarUnit, }) {
1074
+ const items = [];
1075
+ let columns = "";
1076
+ const ratio = progress / goal;
1077
+ columns =
1078
+ clamp(ratio, 0, 1) + "fr 0fr " + clamp(1 - ratio, 0, 1) + "fr 0fr 0fr";
1079
+ items.push(index.h("div", { class: "filled" }));
1080
+ items.push(index.h("div", { class: clamp(progress, 0, goal) == goal ? "progress top bg" : "progress top" }, clamp(progress, 0, goal) == goal
1081
+ ? ""
1082
+ : progressBarUnit + clamp(progress, 0, goal)));
1083
+ items.push(index.h("div", { class: "remain" }));
1084
+ items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal));
1085
+ items.push(index.h("div", { class: clamp(progress, 0, goal) == goal ? "gift" : "gift bw" },
1086
+ index.h(Gift, null)));
1087
+ return { items, columns };
1088
+ }
1089
+ function clamp(x, min, max) {
1090
+ return Math.min(Math.max(x, min), max);
1091
+ }
1092
+
1093
+ const checkmark_circle = () => {
1094
+ return (index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
1095
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.81818 10C1.81818 5.48131 5.48131 1.81818 10 1.81818C14.5187 1.81818 18.1818 5.48131 18.1818 10C18.1818 14.5187 14.5187 18.1818 10 18.1818C5.48131 18.1818 1.81818 14.5187 1.81818 10ZM10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0ZM15.7692 6.96189C16.1398 6.48683 16.0551 5.80132 15.58 5.43077C15.1049 5.06022 14.4194 5.14495 14.0489 5.62001L8.72994 12.4391L5.86229 9.5715C5.43627 9.14548 4.74554 9.14548 4.31952 9.5715C3.89349 9.99752 3.89349 10.6882 4.31952 11.1143L8.05976 14.8545C8.28083 15.0756 8.58613 15.1912 8.89818 15.172C9.21023 15.1528 9.49905 15.0006 9.69133 14.7541L15.7692 6.96189Z", fill: "currentColor" })));
1096
+ };
1097
+ const checkmark_filled = () => {
1098
+ return (index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
1099
+ index.h("circle", { cx: "10", cy: "10", r: "10", fill: "currentColor" }),
1100
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14.65 6.19231C15.0459 6.5011 15.1165 7.07236 14.8077 7.46825L9.74277 13.9617C9.58254 14.1672 9.34186 14.294 9.08182 14.31C8.82178 14.326 8.56736 14.2297 8.38314 14.0454L5.26627 10.9286C4.91124 10.5735 4.91124 9.99794 5.26627 9.64292C5.62129 9.2879 6.19689 9.2879 6.55191 9.64292L8.94162 12.0326L13.3741 6.35001C13.6828 5.95412 14.2541 5.88352 14.65 6.19231Z", fill: "white" })));
1101
+ };
1102
+ const arrow_left_right = () => {
1103
+ return (index.h("svg", { width: 11, height: 12, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
1104
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
1105
+ };
1106
+
1107
+ const style$7 = {
1108
+ TaskCard: {
1109
+ display: "inline-block",
1110
+ width: "100%",
1111
+ "& .main": {
1112
+ position: "relative",
1113
+ boxSizing: "border-box",
1114
+ background: "var(--sl-color-neutral-0)",
1115
+ border: "1px solid var(--sl-color-neutral-200)",
1116
+ borderRadius: "var(--sl-border-radius-medium)",
1117
+ boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
1118
+ fontSize: "var(--sl-font-size-small)",
1119
+ lineHeight: "var(--sl-line-height-dense)",
1120
+ color: "var(--sl-color-neutral-600)",
1121
+ },
1122
+ "& .main.complete": {
1123
+ background: "var(--sl-color-primary-50)",
1124
+ borderColor: "var(--sl-color-primary-500)",
1125
+ },
1126
+ "& .main.expired": {
1127
+ color: "var(--sl-color-neutral-600)",
1128
+ background: "var(--sl-color-neutral-50)",
1129
+ },
1130
+ "& .title": {
1131
+ fontSize: "var(--sl-font-size-medium)",
1132
+ color: "var(--sl-color-neutral-950)",
1133
+ },
1134
+ "& .container": {
1135
+ margin: "var(--sl-spacing-medium)",
1136
+ },
1137
+ "& .container.subdued": {
1138
+ opacity: "0.45",
1139
+ },
1140
+ "& .container > div": {
1141
+ margin: "var(--sl-spacing-medium) 0",
1142
+ },
1143
+ },
1144
+ NotStarted: {
1145
+ fontSize: "var(--sl-font-size-small)",
1146
+ padding: "var(--sl-spacing-medium)",
1147
+ color: "var(--sl-color-primary-600)",
1148
+ border: "1px solid var(--sl-color-neutral-200)",
1149
+ borderRadius: "var(--sl-border-radius-medium) var(--sl-border-radius-medium) 0 0",
1150
+ borderBottom: "none",
1151
+ background: "var(--sl-color-primary-50)",
1152
+ fontWeight: "var(--sl-font-weight-semibold)",
1153
+ lineHeight: "var(--sl-line-height-dense)",
1154
+ "& .icon": {
1155
+ position: "relative",
1156
+ top: "0.1em",
1157
+ marginRight: "var(--sl-spacing-small)",
1158
+ color: "var(--sl-color-primary-500)",
1159
+ },
1160
+ },
1161
+ Ended: {
1162
+ fontSize: "var(--sl-font-size-small)",
1163
+ padding: "var(--sl-spacing-medium)",
1164
+ color: "var(--sl-color-warning-600)",
1165
+ border: "1px solid var(--sl-color-neutral-200)",
1166
+ borderRadius: "var(--sl-border-radius-medium) var(--sl-border-radius-medium) 0 0",
1167
+ borderBottom: "none",
1168
+ background: "var(--sl-color-warning-50)",
1169
+ fontWeight: "var(--sl-font-weight-semibold)",
1170
+ lineHeight: "var(--sl-line-height-dense)",
1171
+ "& .icon": {
1172
+ position: "relative",
1173
+ top: "0.1em",
1174
+ marginRight: "var(--sl-spacing-small)",
1175
+ color: "var(--sl-color-warning-500)",
1176
+ },
1177
+ },
1178
+ Header: {
1179
+ display: "flex",
1180
+ "& .icon": {
1181
+ position: "relative",
1182
+ top: "5%",
1183
+ alignSelf: "center",
1184
+ lineHeight: "0",
1185
+ color: "var(--sl-color-primary-400)",
1186
+ fontSize: "var(--sl-font-size-large)",
1187
+ marginRight: "var(--sl-spacing-x-small)",
1188
+ },
1189
+ "& .value": {
1190
+ alignSelf: "center",
1191
+ fontSize: "var(--sl-font-size-x-large)",
1192
+ fontWeight: "var(--sl-font-weight-semibold)",
1193
+ color: "var(--sl-color-neutral-950)",
1194
+ lineHeight: "100%",
1195
+ marginRight: "var(--sl-spacing-xx-small)",
1196
+ },
1197
+ "& .text": {
1198
+ alignSelf: "end",
1199
+ textTransform: "uppercase",
1200
+ fontSize: "var(--sl-font-size-x-small)",
1201
+ color: "var(--sl-color-neutral-950)",
1202
+ lineHeight: "var(--sl-font-size-medium)",
1203
+ marginRight: "var(--sl-spacing-xx-small)",
1204
+ },
1205
+ "& .end": {
1206
+ color: "var(--sl-color-warning-500)",
1207
+ fontWeight: "var(--sl-font-weight-semibold)",
1208
+ marginBottom: "var(--sl-spacing-xx-small)",
1209
+ },
1210
+ "& .neutral": {
1211
+ color: "var(--sl-color-neutral-400)",
1212
+ },
1213
+ },
1214
+ Footer: {
1215
+ display: "flex",
1216
+ "& .icon": {
1217
+ fontSize: "var(--sl-font-size-xx-small)",
1218
+ marginRight: "var(--sl-spacing-xx-small)",
1219
+ verticalAlign: "middle",
1220
+ },
1221
+ "& .text": {
1222
+ marginTop: "auto",
1223
+ verticalAlign: "text-bottom",
1224
+ fontSize: "var(--sl-font-size-x-small)",
1225
+ color: "var(--sl-color-neutral-400)",
1226
+ },
1227
+ "& .success": {
1228
+ color: "var(--sl-color-primary-500)",
1229
+ fontWeight: "var(--sl-font-weight-semibold)",
1230
+ },
1231
+ "& .action": {
1232
+ marginTop: "auto",
1233
+ marginLeft: "auto",
1234
+ "&::part(base)": {
1235
+ color: "var(--sl-color-neutral-0)",
1236
+ borderRadius: "var(--sl-border-radius-medium)",
1237
+ },
1238
+ "&.disabled::part(base)": {
1239
+ border: "1px solid var(--sl-color-primary-400)",
1240
+ background: "var(--sl-color-primary-400)",
1241
+ },
1242
+ "&.neutral::part(base)": {
1243
+ border: "1px solid var(--sl-color-neutral-400)",
1244
+ background: "var(--sl-color-neutral-400)",
1245
+ },
1246
+ },
1247
+ "& .neutral": {
1248
+ color: "var(--sl-color-neutral-400)",
1249
+ },
1250
+ "& .datetime": {
1251
+ display: "block",
1252
+ marginTop: "var(--sl-spacing-xx-small)",
1253
+ color: "var(--sl-color-neutral-400)",
1254
+ },
1255
+ },
1256
+ };
1257
+ const sheet$7 = JSS.createStyleSheet(style$7);
1258
+ const styleString$7 = sheet$7.toString();
1259
+ function TaskCardView(props) {
1260
+ var _a, _b, _c;
1261
+ console.log("TASK CARD PROPS " + ((_a = props === null || props === void 0 ? void 0 : props.content) === null || _a === void 0 ? void 0 : _a.cardTitle));
1262
+ console.log({ props });
1263
+ const { callbacks, states, content } = props;
1264
+ const dateStart = content.rewardDuration &&
1265
+ luxon.luxon.DateTime.fromISO(content.rewardDuration.split("/")[0]);
1266
+ const dateEnd = content.rewardDuration &&
1267
+ luxon.luxon.DateTime.fromISO(content.rewardDuration.split("/")[1]);
1268
+ const dateToday = luxon.luxon.DateTime.now();
1269
+ if (content.displayDuration) {
1270
+ const start = (_b = content.displayDuration.split("/")) === null || _b === void 0 ? void 0 : _b[0];
1271
+ const end = (_c = content.displayDuration.split("/")) === null || _c === void 0 ? void 0 : _c[1];
1272
+ const displayDateStart = start ? luxon.luxon.DateTime.fromISO(start) : dateToday;
1273
+ const displayDateEnd = end ? luxon.luxon.DateTime.fromISO(end) : dateToday;
1274
+ console.log({ displayDateStart, dateToday, displayDateEnd });
1275
+ if (dateToday < displayDateStart || dateToday > displayDateEnd)
1276
+ return index.h("span", null);
1277
+ }
1278
+ const checkmark_circle$1 = checkmark_circle();
1279
+ const checkmark_filled$1 = checkmark_filled();
1280
+ const arrow_left_right$1 = arrow_left_right();
1281
+ const showComplete = states.progress >= content.goal;
1282
+ const repetitions = content.showProgressBar
1283
+ ? Math.floor(states.progress / content.goal)
1284
+ : states.progress;
1285
+ const taskComplete = (showComplete && content.repeatable === false) ||
1286
+ (content.finite && states.progress >= content.finite * content.goal);
1287
+ const taskEnded = content.rewardDuration && dateEnd <= dateToday;
1288
+ const taskNotStarted = content.rewardDuration && dateToday <= dateStart;
1289
+ const taskUnavailable = taskEnded || taskNotStarted;
1290
+ const vanillaStyle = `
1291
+ :host{
1292
+ display: block;
1293
+ margin-bottom: var(--sl-spacing-large);
1294
+ }
1295
+ `;
1296
+ return (index.h("div", { class: sheet$7.classes.TaskCard },
1297
+ index.h("style", { type: "text/css" },
1298
+ styleString$7,
1299
+ vanillaStyle),
1300
+ !states.loading && taskNotStarted && (index.h("div", { class: sheet$7.classes.NotStarted },
1301
+ index.h("span", { class: "icon" },
1302
+ index.h("sl-icon", { name: "info-circle-fill" })),
1303
+ global.intl.formatMessage({
1304
+ id: "startsOnMessage",
1305
+ defaultMessage: content.startsOnMessage,
1306
+ }, {
1307
+ startDate: dateStart
1308
+ .setLocale(utils.luxonLocale(states.locale))
1309
+ .toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
1310
+ }))),
1311
+ !states.loading && taskEnded && (index.h("div", { class: sheet$7.classes.Ended },
1312
+ index.h("span", { class: "icon" },
1313
+ index.h("sl-icon", { name: "exclamation-triangle-fill" })),
1314
+ global.intl.formatMessage({
1315
+ id: "endedMessage",
1316
+ defaultMessage: content.endedMessage,
1317
+ }, {
1318
+ endDate: dateEnd
1319
+ .setLocale(utils.luxonLocale(states.locale))
1320
+ .toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
1321
+ }))),
1322
+ index.h("div", { style: {
1323
+ borderRadius: taskUnavailable &&
1324
+ "0 0 var(--sl-border-radius-medium) var(--sl-border-radius-medium)",
1325
+ }, class: taskUnavailable
1326
+ ? "main expired"
1327
+ : taskComplete
1328
+ ? "main complete"
1329
+ : "main" },
1330
+ index.h("div", { class: taskComplete || taskUnavailable ? "container subdued" : "container" },
1331
+ index.h("div", { class: sheet$7.classes.Header }, states.loading ? (index.h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (index.h("div", null,
1332
+ showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
1333
+ index.h("span", { class: "value" }, content.rewardAmount),
1334
+ index.h("span", { class: "text" }, content.rewardUnit)))),
1335
+ states.loading ? (index.h("sl-skeleton", { style: { width: "42%", margin: "var(--sl-spacing-medium) 0" } })) : (index.h("div", { class: "title", style: {
1336
+ marginBottom: !content.description
1337
+ ? content.steps
1338
+ ? "var(--sl-spacing-x-large)"
1339
+ : content.showProgressBar
1340
+ ? "var(--sl-spacing-xx-large)"
1341
+ : ""
1342
+ : "",
1343
+ } }, content.cardTitle)),
1344
+ states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && index.h(Details, Object.assign({}, props))),
1345
+ content.showProgressBar && states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (index.h(ProgressBarView, Object.assign({}, props.content, props.states, { complete: taskComplete, expired: taskUnavailable })))),
1346
+ index.h("div", { class: sheet$7.classes.Footer }, states.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
1347
+ index.h("span", { class: "text" },
1348
+ content.repeatable && (index.h("div", null,
1349
+ index.h("span", { class: repetitions > 0
1350
+ ? taskUnavailable
1351
+ ? "icon neutral"
1352
+ : "icon success"
1353
+ : "icon" }, arrow_left_right$1),
1354
+ index.h("span", { class: repetitions > 0
1355
+ ? taskUnavailable
1356
+ ? "neutral"
1357
+ : "success"
1358
+ : "" }, global.intl.formatMessage({
1359
+ id: "completedMessage",
1360
+ defaultMessage: content.completedText,
1361
+ }, {
1362
+ finite: content.finite,
1363
+ count: content.finite
1364
+ ? Math.min(repetitions, content.finite)
1365
+ : repetitions,
1366
+ })))),
1367
+ dateEnd && !taskUnavailable && (index.h("span", { class: "datetime" }, global.intl.formatMessage({
1368
+ id: "expiryMessage",
1369
+ defaultMessage: content.expiryMessage,
1370
+ }, {
1371
+ endDate: dateEnd
1372
+ .setLocale(utils.luxonLocale(states.locale))
1373
+ .toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
1374
+ })))),
1375
+ index.h("sl-button", { class: taskUnavailable
1376
+ ? "action neutral"
1377
+ : taskComplete
1378
+ ? "action disabled"
1379
+ : "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable }, content.buttonText))))))));
1380
+ }
1381
+
1382
+ function ReferralIframeView(props) {
1383
+ const { states, data } = props;
1384
+ const { content } = states;
1385
+ const style = {
1386
+ Container: {
1387
+ position: "relative",
1388
+ width: content.iframeWidth,
1389
+ height: content.iframeHeight,
1390
+ },
1391
+ IFrame: {
1392
+ position: "absolute",
1393
+ width: "100%",
1394
+ height: "100%",
1395
+ border: "0",
1396
+ top: "0",
1397
+ left: "0",
1398
+ right: "0",
1399
+ },
1400
+ };
1401
+ // JSS config
1402
+ const sheet = JSS.createStyleSheet(style);
1403
+ const styleString = sheet.toString();
1404
+ return (index.h("div", { class: sheet.classes.Container },
1405
+ index.h("style", { type: "text/css" }, styleString),
1406
+ index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
1407
+ }
1408
+
1409
+ const CheckMark = () => (index.h("svg", { width: 12, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
1410
+ index.h("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" })));
1411
+ const CheckmarkFilled = () => (index.h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
1412
+ index.h("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" }),
1413
+ index.h("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" })));
1414
+ const Gift$1 = () => (index.h("svg", { width: 156, height: 157, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
1415
+ index.h("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" }),
1416
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M37.18 73.862v7.966h89.663v-7.966H37.18Z", fill: "#E9BB30" }),
1417
+ index.h("path", { d: "M133.039 74.224a2.18 2.18 0 0 0 2.187-2.172v-19.19c0-1.2-.98-2.172-2.187-2.172H31.347a2.18 2.18 0 0 0-2.187 2.172v19.19c0 1.2.98 2.172 2.187 2.172H133.04Z", fill: "#FFC000" }),
1418
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M123.287 35.172c0 6.056-9.155 15.226-13.76 15.654H88.888V126H75.141V50.826H58.534c-9.462-2.038-17.803-9.258-17.803-16.944 0-7.49 3.274-13.422 9.23-15.983 5.693-2.446 12.265-1.105 17.46 2.479 6.378 4.398 9.956 12.654 13.202 20.144.284.657.567 1.308.848 1.95.274-.608.55-1.228.83-1.856 3.216-7.22 6.887-15.464 13.057-19.89 5.454-3.913 12.387-5.39 18.38-2.711 6.197 2.77 9.549 9.127 9.549 17.157Zm-23.306-8.266c3.305-2.37 7.262-2.8 10.645 0 2.946 2.44 3.103 3.588 3.482 6.351l.067.483c0 4.09-3.549 10.252-7.097 10.252-2.515 0-4.489-.022-6.34-.041-3.375-.036-6.337-.068-11.403.04.966-1.86 1.737-3.644 2.473-5.346 1.967-4.553 3.678-8.515 8.173-11.739Zm-39.034 0c-1.6-1.103-5.268-.61-6.79.043-1.257.54-3.134 2.19-3.134 6.933 0 4.61 7.511 8.59 7.511 8.59s5.962 1.52 16.607 1.52c-3.624-8.922-8.757-13.336-14.194-17.086Z", fill: "#EB5757" }),
1419
+ index.h("path", { d: "M75.086 74.224h13.85v7.604h-13.85v-7.604Z", fill: "#DD4747" }),
1420
+ index.h("g", { filter: "url(#a)" },
1421
+ index.h("ellipse", { cx: 82.008, cy: 141.207, rx: 36.813, ry: 5.793, fill: "#E0DDDD", "fill-opacity": 0.8 })),
1422
+ index.h("path", { d: "M150.446 79.134a.5.5 0 0 1 .9 0l1.133 2.336c.05.102.132.184.234.233l2.344 1.122a.5.5 0 0 1 0 .902l-2.344 1.122a.503.503 0 0 0-.234.233l-1.133 2.336a.5.5 0 0 1-.9 0l-1.134-2.336a.499.499 0 0 0-.234-.233l-2.343-1.122a.5.5 0 0 1 0-.902l2.343-1.122a.499.499 0 0 0 .234-.233l1.134-2.336Z", fill: "#FAB6B6" }),
1423
+ index.h("path", { d: "M14.86 29.168a.5.5 0 0 1 .9 0l1.133 2.336a.5.5 0 0 0 .234.233l2.344 1.122a.5.5 0 0 1 0 .902l-2.344 1.122a.5.5 0 0 0-.234.233l-1.133 2.336a.5.5 0 0 1-.9 0l-1.134-2.336a.5.5 0 0 0-.234-.233l-2.343-1.122a.5.5 0 0 1 0-.902l2.344-1.122a.5.5 0 0 0 .233-.233l1.134-2.336Z", fill: "#F4EFBC" }),
1424
+ index.h("path", { d: "m125.382 0 .712 1.466 1.475.706-1.475.707-.712 1.466-.711-1.466-1.476-.707 1.476-.706.711-1.466Z", fill: "#FDA802" }),
1425
+ index.h("path", { d: "m2.187 103.552.711 1.466 1.476.706-1.476.707-.711 1.466-.711-1.466L0 105.724l1.476-.706.71-1.466Z", fill: "#E4599C" }),
1426
+ index.h("defs", null,
1427
+ index.h("filter", { id: "a", x: 35.195, y: 125.414, width: 93.625, height: 31.586, filterUnits: "userSpaceOnUse", "color-interpolation-filters": "s-rGB" },
1428
+ index.h("feFlood", { "flood-opacity": 0, result: "BackgroundImageFix" }),
1429
+ index.h("feBlend", { in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }),
1430
+ index.h("feGaussianBlur", { stdDeviation: 5, result: "effect1_foregroundBlur_653_17907" })))));
1431
+
1432
+ function Dot({ active, completed, incomplete, stage, }) {
1433
+ return (index.h("div", { style: {
1434
+ display: "flex",
1435
+ } },
1436
+ index.h("div", { style: {
1437
+ backgroundColor: completed
1438
+ ? "var(--sl-color-success-500)"
1439
+ : incomplete
1440
+ ? "var(--sl-color-neutral-200)"
1441
+ : "var(--sl-color-neutral-0)",
1442
+ border: active
1443
+ ? "1px solid var(--sl-color-success-500)"
1444
+ : incomplete
1445
+ ? "1px solid var(--sl-color-neutral-200)"
1446
+ : "1px solid var(--sl-color-success-500)",
1447
+ borderRadius: "50%",
1448
+ width: "23px",
1449
+ height: "23px",
1450
+ margin: "-11px",
1451
+ zIndex: "1",
1452
+ boxSizing: "content-box",
1453
+ } }, completed ? (index.h("div", { style: { top: "-10.5%", left: "23.5%", position: "relative" } },
1454
+ index.h(CheckMark, null))) : (index.h("div", { style: {
1455
+ color: active
1456
+ ? "var(--sl-color-success-500)"
1457
+ : "var(--sl-color-neutral-50)",
1458
+ width: "23px",
1459
+ lineHeight: "24px",
1460
+ textAlign: "center",
1461
+ position: "relative",
1462
+ } }, stage + 1)))));
1463
+ }
1464
+ function ProgressLine({ incomplete = false, active = false, invisible = false, }) {
1465
+ return (index.h("div", { style: {
1466
+ content: "''",
1467
+ flex: "0.5 0.5 0",
1468
+ height: "4px",
1469
+ borderRadius: "4px",
1470
+ background: incomplete || active
1471
+ ? "var(--sl-color-neutral-200)"
1472
+ : "var(--sl-color-success-500)",
1473
+ position: "relative",
1474
+ bottom: "0",
1475
+ left: "0",
1476
+ display: "flex",
1477
+ justifyContent: "center",
1478
+ columnGap: "50px",
1479
+ marginRight: "-2px",
1480
+ boxSizing: "content-box",
1481
+ opacity: invisible ? "0" : "1",
1482
+ } }));
1483
+ }
1484
+ function Progress({ active, completed, incomplete, stage }) {
1485
+ return [
1486
+ index.h(ProgressLine, { incomplete: incomplete, invisible: stage === 0 }),
1487
+ index.h(Dot, { active: active, completed: completed, incomplete: incomplete, stage: stage }),
1488
+ index.h(ProgressLine, { incomplete: incomplete, active: active, invisible: stage === 2 }),
1489
+ ];
1490
+ }
1491
+ function ProgressBar({ stageCount, currentStage, }) {
1492
+ return (index.h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (index.h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
1493
+ }
1494
+
1495
+ const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
1496
+ function RewardExchangeView(props) {
1497
+ const { states, data, callbacks, refs } = props;
1498
+ const { selectedItem, selectedStep } = states;
1499
+ const stageProgressList = {
1500
+ chooseReward: states.content.text.chooseRewardTitle,
1501
+ chooseAmount: states.content.text.chooseAmountTitle,
1502
+ confirmation: states.content.text.confirmationTitle,
1503
+ };
1504
+ const style = {
1505
+ HostBlock: mixins.HostBlock,
1506
+ Container: {
1507
+ minWidth: "300px",
1508
+ position: "relative",
1509
+ },
1510
+ FullImage: {
1511
+ objectFit: "contain",
1512
+ maxWidth: "100%",
1513
+ height: "250px",
1514
+ display: "flex",
1515
+ margin: "0 auto",
1516
+ },
1517
+ Select: {
1518
+ "&::part(label)": {
1519
+ color: "var(--sl-color-primary-500)",
1520
+ },
1521
+ "&::part(menu)": {
1522
+ maxHeight: "50vh",
1523
+ },
1524
+ "& sl-menu-item::part(checked-icon)": {
1525
+ top: "8px",
1526
+ },
1527
+ "& sl-menu-item::part(base)": {
1528
+ flexDirection: "column",
1529
+ },
1530
+ "& sl-menu-item::part(base):focus": {
1531
+ background: "transparent",
1532
+ color: "var(--sl-color-gray-700)",
1533
+ },
1534
+ },
1535
+ ProgressBar: {
1536
+ maxWidth: "350px",
1537
+ width: "100%",
1538
+ margin: "auto",
1539
+ marginBottom: "var(--sl-spacing-xxx-large)",
1540
+ "& .text-area": {
1541
+ marginTop: "5px",
1542
+ display: "flex",
1543
+ justifyContent: "center",
1544
+ textAlign: "center",
1545
+ whiteSpace: "nowrap",
1546
+ marginBottom: "6px",
1547
+ "& .text": {
1548
+ marginBottom: "var(--sl-spacing-x-small)",
1549
+ flex: "1 1 0",
1550
+ },
1551
+ "& .text.subdued": {
1552
+ color: "var(--sl-color-neutral-200)",
1553
+ },
1554
+ },
1555
+ },
1556
+ CardLayout: {
1557
+ display: "flex",
1558
+ width: "100%",
1559
+ borderRadius: "3px",
1560
+ background: "rgba(0, 0, 0, 0)",
1561
+ },
1562
+ Card: {
1563
+ display: "flex",
1564
+ userSelect: "none",
1565
+ height: "120px",
1566
+ "&::part(base)": {
1567
+ boxShadow: "none",
1568
+ width: "100%",
1569
+ },
1570
+ "&::part(body)": {
1571
+ display: "flex",
1572
+ padding: 0,
1573
+ },
1574
+ "& .selected": {
1575
+ position: "relative",
1576
+ top: "-2%",
1577
+ left: "100%",
1578
+ color: "var(--sl-color-primary-500)",
1579
+ margin: "-9px",
1580
+ },
1581
+ },
1582
+ Image: {
1583
+ padding: "var(--sl-spacing-small)",
1584
+ minWidth: "96px",
1585
+ maxWidth: "96px",
1586
+ "& .image": {
1587
+ width: "100%",
1588
+ height: "100%",
1589
+ objectFit: "contain",
1590
+ borderRadius: "4px",
1591
+ },
1592
+ "& .image.subdued": {
1593
+ filter: "brightness(0.95)",
1594
+ opacity: "0.5",
1595
+ },
1596
+ },
1597
+ Square: {
1598
+ width: "120px",
1599
+ height: "118px",
1600
+ borderRadius: "3px 0 0 3px",
1601
+ "& .image": {
1602
+ width: "100%",
1603
+ height: "100%",
1604
+ objectFit: "contain",
1605
+ borderRadius: "inherit",
1606
+ },
1607
+ },
1608
+ TextArea: {
1609
+ textAlign: "left",
1610
+ padding: "var(--sl-spacing-small)",
1611
+ paddingLeft: "0",
1612
+ "& .title": {
1613
+ fontSize: "var(--sl-font-size-medium)",
1614
+ lineHeight: "var(--sl-line-height-dense)",
1615
+ fontWeight: "600",
1616
+ color: "var(--sl-color-neutral-1000)",
1617
+ display: "-webkit-box",
1618
+ "-webkit-line-clamp": "1",
1619
+ "-webkit-box-orient": "vertical",
1620
+ overflow: "hidden",
1621
+ },
1622
+ "& .amount": {
1623
+ fontSize: "var(--sl-font-size-small)",
1624
+ lineHeight: "var(--sl-line-height-dense)",
1625
+ marginTop: "var(--sl-spacing-x-small)",
1626
+ color: "var(--sl-color-neutral-500)",
1627
+ display: "-webkit-box",
1628
+ "-webkit-line-clamp": "1",
1629
+ "-webkit-box-orient": "vertical",
1630
+ overflow: "hidden",
1631
+ },
1632
+ "& .error": {
1633
+ fontSize: "var(--sl-font-size-small)",
1634
+ lineHeight: "var(--sl-line-height-dense)",
1635
+ marginTop: "var(--sl-spacing-x-small)",
1636
+ fontWeight: "600",
1637
+ color: "var(--sl-color-warning-600)",
1638
+ display: "-webkit-box",
1639
+ "-webkit-line-clamp": "1",
1640
+ "-webkit-box-orient": "vertical",
1641
+ overflow: "hidden",
1642
+ "& .icon": {
1643
+ position: "relative",
1644
+ top: "0.1em",
1645
+ marginRight: "var(--sl-spacing-xx-small)",
1646
+ },
1647
+ },
1648
+ },
1649
+ ChooseAmount: {
1650
+ display: "flex",
1651
+ alignItems: "center",
1652
+ justifyContent: "center",
1653
+ margin: "var(--sl-spacing-medium) 0",
1654
+ "& .wrapper": {
1655
+ display: "flex",
1656
+ justifyContent: "center",
1657
+ alignItems: "center",
1658
+ gap: "var(--sl-spacing-xx-large)",
1659
+ "@media (max-width: 799px)": {
1660
+ flexDirection: "column",
1661
+ },
1662
+ },
1663
+ "& .image": {
1664
+ width: "50%",
1665
+ objectFit: "contain",
1666
+ maxWidth: "100%",
1667
+ height: "250px",
1668
+ display: "flex",
1669
+ "@media (max-width: 799px)": {
1670
+ width: "auto",
1671
+ },
1672
+ },
1673
+ "& .text": {
1674
+ width: "50%",
1675
+ maxWidth: "400px",
1676
+ minWidth: "330px",
1677
+ "@media (max-width: 799px)": {
1678
+ width: "auto",
1679
+ margin: "auto",
1680
+ },
1681
+ },
1682
+ "& .title": {
1683
+ fontSize: "var(--sl-font-size-large)",
1684
+ fontWeight: "var(--sl-font-weight-semibold)",
1685
+ color: "var(--sl-color-neutral-1000)",
1686
+ },
1687
+ "& .points": {
1688
+ fontSize: "var(--sl-font-size-large)",
1689
+ fontWeight: "var(--sl-font-weight-semibold)",
1690
+ color: "var(--sl-color-primary-500)",
1691
+ },
1692
+ "& .description": {
1693
+ fontSize: "var(--sl-font-size-medium)",
1694
+ fontWeight: "var(--sl-font-weight-normal)",
1695
+ color: "var(--sl-color-neutral-500)",
1696
+ margin: "var(--sl-spacing-medium) 0",
1697
+ lineHeight: "var(--sl-line-height-dense)",
1698
+ marginTop: "var(--sl-spacing-xx-small)",
1699
+ },
1700
+ "& .space": {
1701
+ marginBottom: "var(--sl-spacing-xxx-large)",
1702
+ },
1703
+ "& sl-menu-item[disabled]::part(label)": {
1704
+ color: "var(--sl-color-neutral-200)",
1705
+ },
1706
+ "& sl-menu-item[disabled]": {
1707
+ "& .step-cost": {
1708
+ color: "var(--sl-color-neutral-200)",
1709
+ },
1710
+ },
1711
+ },
1712
+ SelectItem: {
1713
+ display: "flex",
1714
+ flexDirection: "column",
1715
+ "& > .step-cost": {
1716
+ color: "var(--sl-color-neutral-400)",
1717
+ height: "0",
1718
+ marginBottom: "5px",
1719
+ },
1720
+ "& > .step-value": {
1721
+ margin: "0",
1722
+ },
1723
+ },
1724
+ Success: {
1725
+ textAlign: "center",
1726
+ "& .title": {
1727
+ fontSize: "var(--sl-font-size-large)",
1728
+ fontWeight: "var(--sl-font-weight-semibold)",
1729
+ color: "var(--sl-color-neutral-1000)",
1730
+ },
1731
+ "& .description": {
1732
+ color: "var(--sl-color-neutral-400)",
1733
+ width: "100%",
1734
+ maxWidth: "350px",
1735
+ margin: "0 auto",
1736
+ lineHeight: "var(--sl-line-height-dense)",
1737
+ marginBottom: "var(--sl-spacing-xx-large)",
1738
+ marginTop: "var(--sl-spacing-xx-small)",
1739
+ },
1740
+ },
1741
+ Grid: {
1742
+ display: "grid",
1743
+ justifyContent: "center",
1744
+ gap: "20px",
1745
+ gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
1746
+ },
1747
+ Confirmation: {
1748
+ maxWidth: "800px",
1749
+ margin: "auto",
1750
+ "& .wrapper": {
1751
+ display: "flex",
1752
+ "@media (max-width: 499px)": {
1753
+ flexDirection: "column",
1754
+ },
1755
+ },
1756
+ "& .reward-item-container": {
1757
+ "@media (max-width: 499px)": {
1758
+ display: "flex",
1759
+ flexDirection: "row-reverse",
1760
+ justifyContent: "flex-end",
1761
+ alignItems: "center",
1762
+ },
1763
+ },
1764
+ "& .reward-item-container .reward-title": {
1765
+ paddingBottom: "var(--sl-spacing-medium)",
1766
+ lineHeight: "20px",
1767
+ "@media (max-width: 499px)": {
1768
+ paddingBottom: "none",
1769
+ paddingLeft: "var(--sl-spacing-small)",
1770
+ },
1771
+ },
1772
+ "& .padding": {
1773
+ padding: "var(--sl-spacing-medium) 0",
1774
+ "@media (max-width: 499px)": {
1775
+ padding: "var(--sl-spacing-small) 0",
1776
+ },
1777
+ },
1778
+ "& .field": {
1779
+ width: "30%",
1780
+ textTransform: "uppercase",
1781
+ fontSize: "var(--sl-font-size-medium)",
1782
+ fontWeight: "var(--sl-font-weight-normal)",
1783
+ color: "var(--sl-color-neutral-400)",
1784
+ textAlign: "left",
1785
+ paddingRight: "var(--sl-spacing-xxx-large)",
1786
+ "@media (max-width: 499px)": {
1787
+ width: "100%",
1788
+ paddingRight: "0",
1789
+ paddingBottom: "0",
1790
+ },
1791
+ },
1792
+ "& .value": {
1793
+ fontSize: "var(--sl-font-size-large)",
1794
+ fontWeight: "var(--sl-font-weight-semibold)",
1795
+ },
1796
+ "& .top-border": {
1797
+ borderTop: "1px solid var(--sl-color-neutral-200)",
1798
+ },
1799
+ "& .image": {
1800
+ width: "200px",
1801
+ "@media (max-width: 499px)": {
1802
+ width: "100px",
1803
+ },
1804
+ },
1805
+ },
1806
+ Button: {
1807
+ display: "flex",
1808
+ flexWrap: "wrap-reverse",
1809
+ margin: "var(--sl-spacing-medium) 0",
1810
+ "& .cancel": {
1811
+ marginLeft: "auto",
1812
+ marginRight: "var(--sl-spacing-medium)",
1813
+ "&::part(base)": {
1814
+ fontWeight: "var(--sl-font-weight-normal)",
1815
+ color: "var(--sl-color-neutral-1000)",
1816
+ },
1817
+ "@media (max-width: 499px)": {
1818
+ width: "100%",
1819
+ marginRight: "0",
1820
+ marginTop: "var(--sl-spacing-small)",
1821
+ },
1822
+ },
1823
+ "& .continue": {
1824
+ "&::part(base)": {
1825
+ background: "var(--sl-color-primary-500)",
1826
+ borderColor: "var(--sl-color-primary-500)",
1827
+ fontWeight: "var(--sl-font-weight-normal)",
1828
+ color: "var(--sl-color-neutral-0)",
1829
+ },
1830
+ "@media (max-width: 499px)": {
1831
+ width: "100%",
1832
+ },
1833
+ },
1834
+ "& .continue.right": {
1835
+ marginLeft: "auto",
1836
+ },
1837
+ "& .continue.center": {
1838
+ margin: "0 auto",
1839
+ },
1840
+ },
1841
+ Confetti: {
1842
+ pointerEvents: "none",
1843
+ position: "absolute",
1844
+ width: "100%",
1845
+ height: "100%",
1846
+ top: "0%",
1847
+ left: "0%",
1848
+ zIndex: "1",
1849
+ },
1850
+ };
1851
+ // JSS config
1852
+ const sheet = JSS.createStyleSheet(style);
1853
+ const styleString = sheet.toString();
1854
+ function getInput() {
1855
+ var _a, _b, _c;
1856
+ const item = states.selectedItem;
1857
+ if (!item || (item === null || item === void 0 ? void 0 : item.ruleType) === "FIXED_GLOBAL_REWARD")
1858
+ return index.h("span", null, item === null || item === void 0 ? void 0 : item.prettySourceValue);
1859
+ if (!((_a = item.steps) === null || _a === void 0 ? void 0 : _a.length)) {
1860
+ return (index.h("p", null, global.intl.formatMessage({
1861
+ id: "notEnoughError",
1862
+ defaultMessage: states.content.text.notEnoughError,
1863
+ }, {
1864
+ sourceUnit: item.sourceUnit,
1865
+ })));
1866
+ }
1867
+ // console.log("SELECTED ITEM ", states.selectedStep);
1868
+ // console.log("CALLBACKS ", callbacks);
1869
+ return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
1870
+ var _a, _b, _c, _d, _e;
1871
+ return callbacks.setExchangeState({
1872
+ amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
1873
+ selectedStep: (_e = (_d = e.detail) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.value,
1874
+ });
1875
+ } }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
1876
+ // console.log(item.steps);
1877
+ var _a, _b;
1878
+ return (index.h("sl-menu-item", { value: step, disabled: !step.available },
1879
+ step.prettyDestinationValue,
1880
+ " ",
1881
+ index.h("br", null),
1882
+ step.unavailableReasonCode && (index.h("p", { style: {
1883
+ fontSize: "var(--sl-font-size-small)",
1884
+ color: "var(--sl-color-warning-500)",
1885
+ margin: "0",
1886
+ } }, global.intl.formatMessage({
1887
+ id: "unavailableCode",
1888
+ defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
1889
+ }, {
1890
+ unavailableReasonCode: step.unavailableReasonCode,
1891
+ sourceUnit: item.sourceUnit,
1892
+ sourceValue: step.prettySourceValue || item.prettySourceMinValue,
1893
+ }))),
1894
+ index.h("div", { class: "step-cost", slot: "suffix" }, step.prettySourceValue)));
1895
+ })));
1896
+ }
1897
+ function chooseReward() {
1898
+ var _a;
1899
+ return [
1900
+ index.h("div", null,
1901
+ index.h("h2", { style: { margin: "var(--sl-spacing-large) 0" } }, states.content.text.rewardTitle),
1902
+ states.loading ? (loading()) : (index.h("div", { class: sheet.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
1903
+ var _a, _b, _c, _d, _e;
1904
+ const style = {
1905
+ boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
1906
+ ? "0 0 0 2px var(--sl-color-primary-500)"
1907
+ : "none",
1908
+ borderRadius: "4px",
1909
+ };
1910
+ return (index.h("div", { key: item.key, style: style },
1911
+ index.h("sl-card", { class: sheet.classes.Card, style: {
1912
+ cursor: item.unavailableReasonCode
1913
+ ? "not-allowed"
1914
+ : "pointer",
1915
+ }, onClick: () => item.available &&
1916
+ callbacks.setExchangeState({ selectedItem: item }) },
1917
+ item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (index.h("div", { class: "selected" },
1918
+ index.h(CheckmarkFilled, null))),
1919
+ index.h("div", { style: {
1920
+ display: "flex",
1921
+ width: "100%",
1922
+ height: "120px",
1923
+ borderRadius: "3px",
1924
+ background: item.unavailableReasonCode
1925
+ ? "rgba(0, 0, 0, 0.05)"
1926
+ : "rgba(0, 0, 0, 0)",
1927
+ } },
1928
+ index.h("div", { class: sheet.classes.Image, style: {
1929
+ opacity: item.unavailableReasonCode ? "0.5" : "1",
1930
+ } },
1931
+ index.h("img", { class: item.unavailableReasonCode
1932
+ ? "image subdued"
1933
+ : "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
1934
+ index.getAssetPath("./assets/Reward-image.png") })),
1935
+ index.h("div", { class: sheet.classes.TextArea, style: {
1936
+ opacity: item.unavailableReasonCode ? "0.5" : "1",
1937
+ } },
1938
+ index.h("div", { class: "title", style: {
1939
+ "-webkit-line-clamp": item.unavailableReasonCode
1940
+ ? "1"
1941
+ : "2",
1942
+ } }, (_a = item.name) !== null && _a !== void 0 ? _a : ""),
1943
+ index.h("div", { class: "amount", style: {
1944
+ "-webkit-line-clamp": item.unavailableReasonCode
1945
+ ? "1"
1946
+ : "2",
1947
+ } }, global.intl.formatMessage({
1948
+ id: "sourceAmountMessage",
1949
+ defaultMessage: (_c = (_b = states.content) === null || _b === void 0 ? void 0 : _b.text) === null || _c === void 0 ? void 0 : _c.sourceAmountMessage,
1950
+ }, {
1951
+ ruleType: item.ruleType,
1952
+ sourceValue: item.prettySourceValue,
1953
+ sourceMinValue: item.prettySourceMinValue,
1954
+ sourceMaxValue: item.prettySourceMaxValue,
1955
+ })),
1956
+ item.unavailableReasonCode && (index.h("div", { class: "error" },
1957
+ index.h("sl-icon", { class: "icon", name: "exclamation-triangle-fill" }),
1958
+ global.intl.formatMessage({
1959
+ id: "unavailableCode",
1960
+ defaultMessage: (_e = (_d = states.content) === null || _d === void 0 ? void 0 : _d.text) === null || _e === void 0 ? void 0 : _e.notAvailableError,
1961
+ }, {
1962
+ unavailableReasonCode: item.unavailableReasonCode,
1963
+ sourceUnit: item.sourceUnit,
1964
+ sourceValue: item.prettySourceValue ||
1965
+ item.prettySourceMinValue,
1966
+ }))))))));
1967
+ }))),
1968
+ index.h("div", { class: sheet.classes.Button },
1969
+ index.h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
1970
+ ];
1971
+ }
1972
+ function chooseAmount() {
1973
+ var _a, _b, _c, _d;
1974
+ const input = getInput();
1975
+ const isDisabled = ((_a = states.selectedItem) === null || _a === void 0 ? void 0 : _a.ruleType) === "FIXED_GLOBAL_REWARD"
1976
+ ? false
1977
+ : input && !states.amount;
1978
+ console.log("input", input);
1979
+ console.log(states.amount);
1980
+ return (index.h("div", null,
1981
+ index.h("div", { class: sheet.classes.ChooseAmount },
1982
+ index.h("div", { class: "wrapper" },
1983
+ index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
1984
+ index.getAssetPath("./assets/Reward-image.png") }),
1985
+ index.h("div", { class: "text" },
1986
+ index.h("div", { class: "title" }, (_b = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) !== null && _b !== void 0 ? _b : ""),
1987
+ ((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "points" }, input)) : (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
1988
+ ((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (index.h("div", { class: "points" }, input)),
1989
+ index.h("div", { class: "space" }),
1990
+ index.h("div", { class: sheet.classes.Button },
1991
+ index.h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
1992
+ index.h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))))));
1993
+ }
1994
+ function confirmation() {
1995
+ // console.log(selectedItem);
1996
+ // console.log(selectedStep);
1997
+ const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
1998
+ const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
1999
+ return (index.h("div", null,
2000
+ index.h("h2", { style: { margin: "var(--sl-spacing-large) 0", textAlign: "center" } }, states.content.text.redeemTitle),
2001
+ index.h("div", { class: sheet.classes.Confirmation },
2002
+ index.h("div", { class: "wrapper" },
2003
+ index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
2004
+ index.h("div", { class: "reward-item-container" },
2005
+ index.h("div", { class: "reward-title" }, selectedItem.name),
2006
+ index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
2007
+ index.getAssetPath("./assets/Reward-image.png") }))),
2008
+ index.h("div", { class: "wrapper padding" },
2009
+ index.h("div", { class: "field" })),
2010
+ amount && (index.h("div", { class: "wrapper top-border padding" },
2011
+ index.h("div", { class: "field" }, states.content.text.rewardAmountTitle),
2012
+ index.h("div", null, amount))),
2013
+ index.h("div", { class: "wrapper top-border padding" },
2014
+ index.h("div", { class: "field" }, states.content.text.costTitle),
2015
+ index.h("div", { class: "value" }, cost)),
2016
+ index.h("div", { class: sheet.classes.Button },
2017
+ index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
2018
+ index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
2019
+ }
2020
+ function success() {
2021
+ var _a, _b, _c, _d, _e;
2022
+ // console.log("success");
2023
+ return (index.h("div", { class: sheet.classes.Success },
2024
+ index.h(Gift$1, null),
2025
+ index.h(Confetti, null),
2026
+ index.h("div", { class: "title" }, states.content.text.rewardRedeemedText),
2027
+ index.h("div", { class: "description" }, global.intl.formatMessage({
2028
+ id: "successMessage",
2029
+ defaultMessage: states.content.text.redemptionSuccessText,
2030
+ }, {
2031
+ sourceValue: (_a = states.selectedItem.prettySourceValue) !== null && _a !== void 0 ? _a : (_b = states.selectedStep) === null || _b === void 0 ? void 0 : _b.prettySourceValue,
2032
+ destinationValue: ((_c = states.selectedStep) === null || _c === void 0 ? void 0 : _c.prettyDestinationValue) || ((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.name) ||
2033
+ states.selectedItem.globalRewardKey,
2034
+ })),
2035
+ (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { style: {
2036
+ width: "40%",
2037
+ margin: "-30px auto var(--sl-spacing-xxx-large) auto",
2038
+ textAlign: "left",
2039
+ color: "var(--sl-color-neutral-700)",
2040
+ } },
2041
+ states.content.text.promoCode,
2042
+ index.h(ShareLinkView, { shareString: data.fuelTankCode, tooltiptext: (_e = states === null || states === void 0 ? void 0 : states.content) === null || _e === void 0 ? void 0 : _e.text.toopTipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
2043
+ index.h("div", { class: sheet.classes.Button },
2044
+ index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
2045
+ }
2046
+ const stages = {
2047
+ chooseReward: () => chooseReward(),
2048
+ chooseAmount: () => chooseAmount(),
2049
+ confirmation: () => confirmation(),
2050
+ success: () => success(),
2051
+ };
2052
+ const currentStage = stages[states.redeemStage];
2053
+ function stageMap() {
2054
+ const stageNumber = stageList.indexOf(states.redeemStage);
2055
+ return (index.h("div", { class: sheet.classes.ProgressBar },
2056
+ index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
2057
+ if (stageList.indexOf(stage) <= stageNumber) {
2058
+ return index.h("span", { class: "text" }, stageProgressList[stage]);
2059
+ }
2060
+ else {
2061
+ return (index.h("span", { class: "text subdued" }, stageProgressList[stage]));
2062
+ }
2063
+ })),
2064
+ index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
2065
+ }
2066
+ function loading() {
2067
+ return (index.h("div", { class: sheet.classes.Grid }, [...Array(states.content.text.skeletonCardNum)].map(() => {
2068
+ return (index.h("div", null,
2069
+ index.h("sl-card", { class: sheet.classes.Card },
2070
+ index.h("div", { class: sheet.classes.CardLayout },
2071
+ index.h("div", null,
2072
+ index.h("sl-skeleton", { style: {
2073
+ width: "100px",
2074
+ height: "100px",
2075
+ margin: "9px",
2076
+ "--border-radius": "4px",
2077
+ } })),
2078
+ index.h("div", { style: {
2079
+ margin: "var(--sl-spacing-small) var(--sl-spacing-small) 0 0",
2080
+ width: "100%",
2081
+ } },
2082
+ index.h("sl-skeleton", { style: { marginBottom: "var(--sl-spacing-small)" } }),
2083
+ index.h("sl-skeleton", { style: { marginBottom: "var(--sl-spacing-small)" } }),
2084
+ index.h("sl-skeleton", { style: { width: "45%" } }))))));
2085
+ })));
2086
+ }
2087
+ function errorMessage() {
2088
+ return (index.h("sl-alert", { type: "danger", open: true },
2089
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2090
+ states.content.text.redemptionError));
2091
+ }
2092
+ function queryErrorMessage() {
2093
+ return (index.h("sl-alert", { type: "danger", open: true },
2094
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2095
+ states.content.text.queryError));
2096
+ }
2097
+ function Confetti() {
2098
+ return (index.h("canvas", { ref: (canvas) => {
2099
+ if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
2100
+ return;
2101
+ refs.canvasRef.current = canvas;
2102
+ }, id: "my-canvas", class: sheet.classes.Confetti }));
2103
+ }
2104
+ return (index.h("div", { class: sheet.classes.Container },
2105
+ index.h("style", { type: "text/css" }, styleString),
2106
+ index.h("div", null,
2107
+ stageMap(),
2108
+ states.exchangeError && errorMessage(),
2109
+ states.queryError && queryErrorMessage(),
2110
+ currentStage && currentStage(),
2111
+ states.redeemStage === "success")));
2112
+ }
2113
+
2114
+ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false, fueltank = null) => ({
2115
+ states: {
2116
+ content: {
2117
+ text: {
2118
+ buttonText: "Exchange Rewards",
2119
+ notAvailableError: "{unavailableReasonCode, select, NOT_CHAMPION {CUSTOM ERROR MESSAGE } US_TAX {Exceeds tax limit for this year} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {unavailableReasonCode} }",
2120
+ chooseRewardTitle: "Rewards",
2121
+ chooseAmountTitle: "Select",
2122
+ confirmationTitle: "Confirm",
2123
+ rewardTitle: "Choose a reward",
2124
+ cancelText: "Cancel",
2125
+ backText: "Back",
2126
+ continueText: "Continue",
2127
+ continueToConfirmationText: "Continue to confirmation",
2128
+ redeemText: "Redeem",
2129
+ redeemTitle: "Confirm and redeem",
2130
+ redemptionSuccessText: "Redeemed {sourceValue} for {destinationValue}",
2131
+ doneText: "Done",
2132
+ toolTipText: "Copied!",
2133
+ selectText: "Select amount to receive",
2134
+ sourceAmountMessage: "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}",
2135
+ rewardRedeemedText: "Reward redeemed",
2136
+ redemptionError: "An error occured trying to redeem this reward. Please try again",
2137
+ promoCode: "Promo code",
2138
+ skeletonCardNum: 8,
2139
+ rewardNameTitle: "Reward Name",
2140
+ rewardAmountTitle: "Reward Amount",
2141
+ costTitle: "Cost",
2142
+ },
2143
+ },
2144
+ redeemStage: stage,
2145
+ amount: 0,
2146
+ exchangeError: error,
2147
+ loading: loading,
2148
+ selectedItem: selectedItem,
2149
+ selectedStep: selectedStep,
2150
+ open: false,
2151
+ },
2152
+ data: {
2153
+ exchangeList: data,
2154
+ fuelTankCode: fueltank,
2155
+ },
2156
+ callbacks: {
2157
+ exchangeReward: null,
2158
+ resetState: null,
2159
+ setStage: null,
2160
+ setExchangeState: null,
2161
+ copyFuelTankCode: null,
2162
+ refs: null,
2163
+ },
2164
+ refs: null,
2165
+ });
2166
+ const baseReward = {
2167
+ key: "",
2168
+ name: "",
2169
+ description: "Description of reward. Lorem ipsum dolor sit amet, consectetur adipiscing. Id nec semper sapien dignissim rhoncus nunc.",
2170
+ imageUrl: "",
2171
+ available: true,
2172
+ unavailableReasonCode: null,
2173
+ ruleType: "FIXED_GLOBAL_REWARD",
2174
+ sourceUnit: "POINT",
2175
+ sourceValue: 10,
2176
+ prettySourceValue: "10 SaaSquatch Points",
2177
+ sourceMinValue: null,
2178
+ prettySourceMinValue: null,
2179
+ sourceMaxValue: null,
2180
+ prettySourceMaxValue: null,
2181
+ destinationMinValue: null,
2182
+ prettyDestinationMinValue: null,
2183
+ destinationMaxValue: null,
2184
+ prettyDestinationMaxValue: null,
2185
+ globalRewardKey: "",
2186
+ destinationUnit: null,
2187
+ steps: [],
2188
+ };
2189
+ const notEnoughPoints = {
2190
+ available: false,
2191
+ unavailableReasonCode: "INSUFFICIENT_REDEEMABLE_CREDIT",
2192
+ };
2193
+ const usTax = {
2194
+ available: false,
2195
+ unavailableReasonCode: "US_TAX",
2196
+ };
2197
+ const customError = {
2198
+ available: false,
2199
+ unavailableReasonCode: "NOT_CHAMPION",
2200
+ };
2201
+ const selected = {
2202
+ key: "r1",
2203
+ };
2204
+ const imageUrl = (props) => ({
2205
+ imageUrl: props,
2206
+ });
2207
+ const name = (props) => ({
2208
+ name: props,
2209
+ });
2210
+ const description = (props) => ({
2211
+ description: props,
2212
+ });
2213
+ const fixedValue = (props) => ({
2214
+ prettySourceValue: props,
2215
+ });
2216
+ const variableValue = (min, max, unit) => ({
2217
+ ruleType: "VARIABLE_CREDIT_REWARD",
2218
+ sourceMinValue: min,
2219
+ prettySourceMinValue: min + " " + unit,
2220
+ sourceMaxValue: max,
2221
+ prettySourceMaxValue: max + " " + unit,
2222
+ });
2223
+ const demoData = [
2224
+ {
2225
+ ...baseReward,
2226
+ ...name("Free swag with a promo code"),
2227
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1643653103/squatch-assets/default_rewards_1.png"),
2228
+ ...fixedValue("40 Points"),
2229
+ },
2230
+ {
2231
+ ...baseReward,
2232
+ ...selected,
2233
+ ...name("Visa® Prepaid Card USD"),
2234
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
2235
+ ...variableValue(20, 80, "Points"),
2236
+ },
2237
+ {
2238
+ ...baseReward,
2239
+ ...name("$50 Store credit"),
2240
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829222/tenant_test_a7iws76wkk4az/wvxtrsytmr4h1ozhxspv.png"),
2241
+ ...fixedValue("100 Points"),
2242
+ },
2243
+ {
2244
+ ...baseReward,
2245
+ ...name("Variable amount of store credit"),
2246
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829263/tenant_test_a7iws76wkk4az/dbo8tb4qpwmhg5iudviq.png"),
2247
+ ...variableValue(20, 100, "Points"),
2248
+ },
2249
+ ];
2250
+ const data = [
2251
+ {
2252
+ ...baseReward,
2253
+ ...name("Free swag with a promo code"),
2254
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1643653103/squatch-assets/default_rewards_1.png"),
2255
+ ...fixedValue("40 SaaSquatch Points"),
2256
+ },
2257
+ {
2258
+ ...baseReward,
2259
+ ...selected,
2260
+ ...name("Visa® Prepaid Card USD"),
2261
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
2262
+ ...variableValue(20, 80, "Points"),
2263
+ },
2264
+ {
2265
+ ...baseReward,
2266
+ ...name("A very exclusive gift box"),
2267
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829284/tenant_test_a7iws76wkk4az/cognmlwma874b5q94hqv.png"),
2268
+ ...fixedValue("30 SaaSquatch Points"),
2269
+ },
2270
+ {
2271
+ ...baseReward,
2272
+ ...name("$50 Store credit"),
2273
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829222/tenant_test_a7iws76wkk4az/wvxtrsytmr4h1ozhxspv.png"),
2274
+ ...fixedValue("100 SaaSquatch Points"),
2275
+ },
2276
+ {
2277
+ ...baseReward,
2278
+ ...name("Variable amount of store credit"),
2279
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829263/tenant_test_a7iws76wkk4az/dbo8tb4qpwmhg5iudviq.png"),
2280
+ ...variableValue(20, 100, "Points"),
2281
+ },
2282
+ {
2283
+ ...baseReward,
2284
+ ...notEnoughPoints,
2285
+ ...name("A very rare cactus"),
2286
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829341/tenant_test_a7iws76wkk4az/lgrlweifpsekh2y4zjih.png"),
2287
+ ...fixedValue("2000 SaaSquatch Points"),
2288
+ },
2289
+ {
2290
+ ...baseReward,
2291
+ ...usTax,
2292
+ ...name("$1000 Store credit with a really super long name in the front page"),
2293
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829384/tenant_test_a7iws76wkk4az/f0dzeyrx3hojncbgim8y.png"),
2294
+ ...fixedValue("2000 SaaSquatch Long Points"),
2295
+ },
2296
+ {
2297
+ ...baseReward,
2298
+ ...notEnoughPoints,
2299
+ ...name("A holiday gift box"),
2300
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829450/tenant_test_a7iws76wkk4az/ujzfhfkvwqb02dlgjx6q.png"),
2301
+ ...fixedValue("100 SaaSquatch Points"),
2302
+ },
2303
+ ];
2304
+ const rewardExchange = {
2305
+ ...baseResponse(data),
2306
+ };
2307
+ const demoRewardExchange = {
2308
+ ...baseResponse(demoData),
2309
+ };
2310
+ const rewardExchangeLongText = {
2311
+ ...baseResponse([
2312
+ {
2313
+ ...baseReward,
2314
+ ...notEnoughPoints,
2315
+ ...name("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),
2316
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829450/tenant_test_a7iws76wkk4az/ujzfhfkvwqb02dlgjx6q.png"),
2317
+ ...fixedValue("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),
2318
+ },
2319
+ {
2320
+ ...baseReward,
2321
+ ...name("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),
2322
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829384/tenant_test_a7iws76wkk4az/f0dzeyrx3hojncbgim8y.png"),
2323
+ ...fixedValue("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),
2324
+ },
2325
+ {
2326
+ ...baseReward,
2327
+ ...name("Suuuuuuuuper aweeeeesssssoooommme reward!!!!!!"),
2328
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829222/tenant_test_a7iws76wkk4az/wvxtrsytmr4h1ozhxspv.png"),
2329
+ ...fixedValue("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),
2330
+ },
2331
+ ...data,
2332
+ ]),
2333
+ };
2334
+ const rewardExchangeCustomErrorMsg = {
2335
+ ...baseResponse([
2336
+ {
2337
+ ...baseReward,
2338
+ ...customError,
2339
+ ...name("A very rare cactus"),
2340
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829341/tenant_test_a7iws76wkk4az/lgrlweifpsekh2y4zjih.png"),
2341
+ ...fixedValue("2000 SaaSquatch Points"),
2342
+ },
2343
+ ...data,
2344
+ ]),
2345
+ };
2346
+ const rewardExchangeSelected = {
2347
+ ...baseResponse(data, "chooseReward", {
2348
+ ...baseReward,
2349
+ ...selected,
2350
+ ...name("Visa® Prepaid Card USD"),
2351
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
2352
+ ...variableValue(20, 80, "Points"),
2353
+ }),
2354
+ };
2355
+ const baseStep = (dst, dstUnit, src, srcUnit, available = true, unavailableReason = null) => ({
2356
+ destinationValue: dst,
2357
+ prettyDestinationValue: dstUnit + dst,
2358
+ sourceValue: src,
2359
+ prettySourceValue: src + " " + srcUnit,
2360
+ available: available,
2361
+ unavailableReasonCode: unavailableReason,
2362
+ });
2363
+ const chooseAmountVariable = {
2364
+ ...baseResponse(data, "chooseAmount", {
2365
+ ...baseReward,
2366
+ ...name("Visa® Prepaid Card USD"),
2367
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
2368
+ ...variableValue(20, 80, "Points"),
2369
+ steps: [
2370
+ baseStep(20, "$", 40, "Points"),
2371
+ baseStep(30, "$", 60, "Points"),
2372
+ baseStep(40, "$", 80, "Points"),
2373
+ baseStep(50, "$", 100, "Points"),
2374
+ baseStep(60, "$", 120, "Points"),
2375
+ ],
2376
+ }),
2377
+ };
2378
+ const chooseAmountVariableNoDescription = {
2379
+ ...baseResponse(data, "chooseAmount", {
2380
+ ...baseReward,
2381
+ ...name("Visa® Prepaid Card USD"),
2382
+ ...description(""),
2383
+ ...imageUrl("https://i.imgur.com/veHErQX.png"),
2384
+ ...variableValue(20, 80, "Points"),
2385
+ steps: [
2386
+ baseStep(20, "$", 40, "Points"),
2387
+ baseStep(30, "$", 60, "Points"),
2388
+ baseStep(40, "$", 80, "Points"),
2389
+ baseStep(50, "$", 100, "Points"),
2390
+ baseStep(60, "$", 120, "Points"),
2391
+ ],
2392
+ }),
2393
+ };
2394
+ const chooseAmountVariableDisabled = {
2395
+ ...baseResponse(data, "chooseAmount", {
2396
+ ...baseReward,
2397
+ ...name("Visa® Prepaid Card USD"),
2398
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
2399
+ ...variableValue(20, 80, "Points"),
2400
+ steps: [
2401
+ baseStep(20, "$", 40, "Points"),
2402
+ baseStep(30, "$", 60, "Points"),
2403
+ baseStep(40, "$", 80, "Points", false, "INSUFFICIENT_REDEEMABLE_CREDIT"),
2404
+ baseStep(50, "$", 100, "Points", false, "INSUFFICIENT_REDEEMABLE_CREDIT"),
2405
+ baseStep(60, "$", 120, "Points", false, "INSUFFICIENT_REDEEMABLE_CREDIT"),
2406
+ ],
2407
+ }),
2408
+ };
2409
+ const chooseAmountVariableUnavailable = {
2410
+ ...baseResponse(data, "chooseAmount", {
2411
+ ...baseReward,
2412
+ ...name("Visa® Prepaid Card USD"),
2413
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
2414
+ ...variableValue(20, 80, "Points"),
2415
+ steps: [
2416
+ baseStep(20, "$", 40, "Points"),
2417
+ baseStep(30, "$", 60, "Points"),
2418
+ baseStep(40, "$", 80, "Points", false, "US_TAX"),
2419
+ baseStep(50, "$", 100, "Points", false, "US_TAX"),
2420
+ baseStep(60, "$", 120, "Points", false, "US_TAX"),
2421
+ ],
2422
+ }),
2423
+ };
2424
+ const chooseAmountFixed = {
2425
+ ...baseResponse(data, "chooseAmount", {
2426
+ ...baseReward,
2427
+ ...name("Free swag with a promo code"),
2428
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829486/tenant_test_a7iws76wkk4az/xtptk0dynrxxlkg0dctb.png"),
2429
+ ...fixedValue("40 SaaSquatch Points"),
2430
+ }),
2431
+ };
2432
+ const chooseAmountFixedNoDescription = {
2433
+ ...baseResponse(data, "chooseAmount", {
2434
+ ...baseReward,
2435
+ ...description(""),
2436
+ ...name("Free swag with a promo code"),
2437
+ ...imageUrl("https://i.imgur.com/n7vC4BR.png"),
2438
+ ...fixedValue("40 SaaSquatch Points"),
2439
+ }),
2440
+ };
2441
+ const confirmFixed = {
2442
+ ...baseResponse(data, "confirmation", {
2443
+ ...baseReward,
2444
+ ...name("Free swag with a promo code"),
2445
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829486/tenant_test_a7iws76wkk4az/xtptk0dynrxxlkg0dctb.png"),
2446
+ ...fixedValue("40 SaaSquatch Points"),
2447
+ }),
2448
+ };
2449
+ const confirmVariable = {
2450
+ ...baseResponse(data, "confirmation", {
2451
+ ...baseReward,
2452
+ ...name("Visa® Prepaid Card USD"),
2453
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
2454
+ ...variableValue(20, 80, "Points"),
2455
+ }, baseStep(20, "$", 40, "Points")),
2456
+ };
2457
+ const error = {
2458
+ ...baseResponse(data, "confirmation", {
2459
+ ...baseReward,
2460
+ ...name("Visa® Prepaid Card USD"),
2461
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
2462
+ ...variableValue(20, 80, "Points"),
2463
+ }, baseStep(20, "$", 40, "Points"), true),
2464
+ };
2465
+ const success = {
2466
+ ...baseResponse(data, "success", {
2467
+ ...baseReward,
2468
+ ...name("Free swag with a promo code"),
2469
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829486/tenant_test_a7iws76wkk4az/xtptk0dynrxxlkg0dctb.png"),
2470
+ ...fixedValue("40 SaaSquatch Points"),
2471
+ }, undefined, undefined, undefined, "4ah2-hh46-gk7r"),
2472
+ };
2473
+ const successVariable = {
2474
+ ...baseResponse(data, "success", {
2475
+ ...baseReward,
2476
+ ...name("Visa® Prepaid Card USD"),
2477
+ ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829284/tenant_test_a7iws76wkk4az/cognmlwma874b5q94hqv.png"),
2478
+ ...variableValue(20, 80, "Points"),
2479
+ }, baseStep(20, "$", 40, "Points")),
2480
+ };
2481
+ const loading = {
2482
+ ...baseResponse(null, "chooseReward", null, null, false, true),
2483
+ };
2484
+
2485
+ function CardFeedView(props, children) {
2486
+ const style = {
2487
+ Container: {
2488
+ columnGap: props.gap + "px",
2489
+ columnWidth: props.width + "px",
2490
+ "& > div": {
2491
+ marginBottom: "24px",
2492
+ },
2493
+ },
2494
+ };
2495
+ const sheet = JSS.createStyleSheet(style);
2496
+ const styleString = sheet.toString();
2497
+ console.log(props);
2498
+ const vanillaStyle = `
2499
+ :host{
2500
+ display: block;
2501
+ }
2502
+
2503
+ `;
2504
+ return (index.h("div", null,
2505
+ index.h("style", { type: "text/css" },
2506
+ styleString,
2507
+ vanillaStyle),
2508
+ index.h("div", { class: sheet.classes.Container }, children)));
2509
+ }
2510
+
2511
+ function t(t,n,r){return Math.min(Math.max(t,r),n)}class n extends Error{constructor(t){super(`Failed to parse color: "${t}"`);}}function r(r){if("string"!=typeof r)throw new n(r);if("transparent"===r.trim().toLowerCase())return [0,0,0,0];let e=r.trim();e=u.test(r)?function(t){const r=t.toLowerCase().trim(),e=o[function(t){let n=5381,r=t.length;for(;r;)n=33*n^t.charCodeAt(--r);return (n>>>0)%2341}(r)];if(!e)throw new n(t);return `#${e}`}(r):r;const f=s.exec(e);if(f){const t=Array.from(f).slice(1);return [...t.slice(0,3).map(t=>parseInt(_(t,2),16)),parseInt(_(t[3]||"f",2),16)/255]}const p=i.exec(e);if(p){const t=Array.from(p).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,16)),parseInt(t[3]||"ff",16)/255]}const z=a.exec(e);if(z){const t=Array.from(z).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,10)),parseFloat(t[3]||"1")]}const h=c.exec(e);if(h){const[e,o,_,s]=Array.from(h).slice(1).map(parseFloat);if(t(0,100,o)!==o)throw new n(r);if(t(0,100,_)!==_)throw new n(r);return [...l(e,o,_),s||1]}throw new n(r)}const e=t=>parseInt(t.replace(/_/g,""),36),o="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t,n)=>{const r=e(n.substring(0,3)),o=e(n.substring(3)).toString(16);let _="";for(let t=0;t<6-o.length;t++)_+="0";return t[r]=`${_}${o}`,t},{}),_=(t,n)=>Array.from(Array(n)).map(()=>t).join(""),s=new RegExp(`^#${_("([a-f0-9])",3)}([a-f0-9])?$`,"i"),i=new RegExp(`^#${_("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),a=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${_(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),c=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,u=/^[a-z]+$/i,f=t=>Math.round(255*t),l=(t,n,r)=>{let e=r/100;if(0===n)return [e,e,e].map(f);const o=(t%360+360)%360/60,_=(1-Math.abs(2*e-1))*(n/100),s=_*(1-Math.abs(o%2-1));let i=0,a=0,c=0;o>=0&&o<1?(i=_,a=s):o>=1&&o<2?(i=s,a=_):o>=2&&o<3?(a=_,c=s):o>=3&&o<4?(a=s,c=_):o>=4&&o<5?(i=s,c=_):o>=5&&o<6&&(i=_,c=s);const u=e-_/2;return [i+u,a+u,c+u].map(f)};function p(t){const[n,e,o,_]=r(t).map((t,n)=>3===n?t:t/255),s=Math.max(n,e,o),i=Math.min(n,e,o),a=(s+i)/2;if(s===i)return [0,0,a,_];const c=s-i;return [60*(n===s?(e-o)/c+(e<o?6:0):e===s?(o-n)/c+2:(n-e)/c+4),a>.5?c/(2-s-i):c/(s+i),a,_]}function z(n,r,e,o){return `hsla(${(n%360).toFixed()}, ${t(0,100,100*r).toFixed()}%, ${t(0,100,100*e).toFixed()}%, ${parseFloat(t(0,1,o).toFixed(3))})`}
2512
+
2513
+ const colorScale = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
2514
+ const lScale = [
2515
+ 0.95,
2516
+ 0.86,
2517
+ 0.76,
2518
+ 0.66,
2519
+ 0.56,
2520
+ 0.46,
2521
+ 0.39,
2522
+ 0.32,
2523
+ 0.25,
2524
+ 0.18,
2525
+ 0.15,
2526
+ ];
2527
+ // https://github.com/ricokahler/color2k/blob/main/src/parseToRgba.ts
2528
+ const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
2529
+ function niceParseToHsla(color) {
2530
+ const normalizedColor = color.trim();
2531
+ const hslaMatch = hslaRegex.exec(normalizedColor);
2532
+ if (hslaMatch) {
2533
+ const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
2534
+ if (t(0, 100, s) !== s)
2535
+ throw new n(color);
2536
+ if (t(0, 100, l) !== l)
2537
+ throw new n(color);
2538
+ return [h, s / 100, l, a || 1];
2539
+ }
2540
+ // Warning -- converts to RGB first, so is lossy
2541
+ return p(color);
2542
+ }
2543
+ function generateScale(color, name = "primary") {
2544
+ const [h, s, l, a] = niceParseToHsla(color);
2545
+ return lScale
2546
+ .map((l) => z(h, s, l, a))
2547
+ .map((color, index) => {
2548
+ return `--sl-color-${name}-${colorScale[index]}: ${color};\n`;
2549
+ });
2550
+ }
2551
+ /**
2552
+ * Generated a Shoelace color scale css string from a base color
2553
+ *
2554
+ * @param color
2555
+ * @param name
2556
+ * @returns
2557
+ */
2558
+ function autoColorScaleCss(color, name = "primary") {
2559
+ return generateScale(color, name).join("\n");
2560
+ }
2561
+
2562
+ const map = new Map();
2563
+ function withShadowView(component) {
2564
+ // TODO: Could only do this if rendered in a Stencilbook environment to prevent unintended side-effects
2565
+ const element = index.getElement(component);
2566
+ let renderFn = component["render"].bind(component);
2567
+ const newRenderFn = () => {
2568
+ const key = element.getAttribute("stencilbook-shadow-view");
2569
+ if (key) {
2570
+ const value = map.get(key);
2571
+ if (value) {
2572
+ return value;
2573
+ }
2574
+ }
2575
+ return renderFn();
2576
+ };
2577
+ component["render"] = newRenderFn;
2578
+ }
2579
+ /**
2580
+ * Any story that defines `parameters.tagname` will be used as a wrapper component around the view
2581
+ */
2582
+ const ShadowViewAddon = ({ story }, children) => {
2583
+ var _a;
2584
+ let TagName = (_a = story.parent.parameters) === null || _a === void 0 ? void 0 : _a.tagname;
2585
+ if (!TagName)
2586
+ return children;
2587
+ const randomInt = Math.round(Math.random() * 100000);
2588
+ map.set(randomInt + "", children);
2589
+ const RandomTagName = "stencilbook-shawdow-view-" + randomInt;
2590
+ // This will only re-render when the tag name changes, so we use a random tag name every time.
2591
+ // Altneratively we could try to trick Stencil to call `forceUpdate` every time.
2592
+ return (index.h(RandomTagName, null,
2593
+ index.h(TagName, { "stencilbook-shadow-view": randomInt })));
2594
+ };
2595
+
2596
+ exports.CardFeedView = CardFeedView;
2597
+ exports.EditProfileView = EditProfileView;
2598
+ exports.LeaderboardView = LeaderboardView;
2599
+ exports.PortalChangePasswordView = PortalChangePasswordView;
2600
+ exports.PortalFrameView = PortalFrameView;
2601
+ exports.PortalLoginView = PortalLoginView;
2602
+ exports.PortalRegisterView = PortalRegisterView;
2603
+ exports.ProgressBarView = ProgressBarView;
2604
+ exports.ReferralIframeView = ReferralIframeView;
2605
+ exports.RewardExchangeView = RewardExchangeView;
2606
+ exports.ShadowViewAddon = ShadowViewAddon;
2607
+ exports.ShareButtonView = ShareButtonView;
2608
+ exports.ShareLinkView = ShareLinkView;
2609
+ exports.TaskCardView = TaskCardView;
2610
+ exports.autoColorScaleCss = autoColorScaleCss;
2611
+ exports.chooseAmountFixed = chooseAmountFixed;
2612
+ exports.chooseAmountFixedNoDescription = chooseAmountFixedNoDescription;
2613
+ exports.chooseAmountVariable = chooseAmountVariable;
2614
+ exports.chooseAmountVariableDisabled = chooseAmountVariableDisabled;
2615
+ exports.chooseAmountVariableNoDescription = chooseAmountVariableNoDescription;
2616
+ exports.chooseAmountVariableUnavailable = chooseAmountVariableUnavailable;
2617
+ exports.confirmFixed = confirmFixed;
2618
+ exports.confirmVariable = confirmVariable;
2619
+ exports.demoRewardExchange = demoRewardExchange;
2620
+ exports.error = error;
2621
+ exports.loading = loading;
2622
+ exports.rewardExchange = rewardExchange;
2623
+ exports.rewardExchangeCustomErrorMsg = rewardExchangeCustomErrorMsg;
2624
+ exports.rewardExchangeLongText = rewardExchangeLongText;
2625
+ exports.rewardExchangeSelected = rewardExchangeSelected;
2626
+ exports.success = success;
2627
+ exports.successVariable = successVariable;
2628
+ exports.useShareButton = useShareButton;
2629
+ exports.useShareLink = useShareLink;
2630
+ exports.withShadowView = withShadowView;