@saasquatch/mint-components 1.6.6-5 → 1.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{ShadowViewAddon-af7d0c85.js → ShadowViewAddon-952b4df5.js} +373 -373
  3. package/dist/cjs/{global-b6c63e2b.js → global-0b8cbb00.js} +655 -655
  4. package/dist/cjs/{index.module-0b9b8891.js → index.module-c6626247.js} +3 -3
  5. package/dist/cjs/loader.cjs.js +4 -4
  6. package/dist/cjs/{luxon-479fc825.js → luxon-53e983a6.js} +1 -1
  7. package/dist/cjs/mint-components.cjs.js +4 -4
  8. package/dist/cjs/{re-render-172958b1.js → re-render-fce04f85.js} +2 -2
  9. package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
  10. package/dist/cjs/sqm-big-stat_35.cjs.entry.js +249 -249
  11. package/dist/cjs/sqm-empty_5.cjs.entry.js +52 -52
  12. package/dist/cjs/sqm-form-message.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
  14. package/dist/cjs/sqm-header-logo.cjs.entry.js +1 -1
  15. package/dist/cjs/{sqm-hero-view-ba78dcaf.js → sqm-hero-view-55ae68f9.js} +16 -16
  16. package/dist/cjs/sqm-hero.cjs.entry.js +3 -3
  17. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +16 -16
  18. package/dist/cjs/{sqm-navigation-sidebar-item-view-bf62d5e2.js → sqm-navigation-sidebar-item-view-8b4f304f.js} +1 -1
  19. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
  20. package/dist/cjs/{sqm-navigation-sidebar-view-2da83d3b.js → sqm-navigation-sidebar-view-4704aa73.js} +141 -141
  21. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +4 -4
  22. package/dist/cjs/sqm-password-field.cjs.entry.js +13 -13
  23. package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
  24. package/dist/cjs/{sqm-portal-container-view-3215dce9.js → sqm-portal-container-view-5beae29c.js} +4 -4
  25. package/dist/cjs/{sqm-portal-email-verification-view-751850fa.js → sqm-portal-email-verification-view-26c166dc.js} +9 -9
  26. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -6
  27. package/dist/cjs/{sqm-portal-footer-view-bec6e3bf.js → sqm-portal-footer-view-c249df2d.js} +11 -11
  28. package/dist/cjs/sqm-portal-footer.cjs.entry.js +5 -5
  29. package/dist/cjs/{sqm-portal-forgot-password-view-a3573ade.js → sqm-portal-forgot-password-view-235733ea.js} +8 -8
  30. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +5 -5
  31. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  32. package/dist/cjs/{sqm-portal-profile-view-d5a74b28.js → sqm-portal-profile-view-14d2f91d.js} +2 -2
  33. package/dist/cjs/sqm-portal-profile.cjs.entry.js +38 -38
  34. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
  35. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +31 -31
  36. package/dist/cjs/{sqm-portal-reset-password-view-a5d48909.js → sqm-portal-reset-password-view-803a56be.js} +8 -8
  37. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +5 -5
  38. package/dist/cjs/{sqm-portal-verify-email-view-9657cc0c.js → sqm-portal-verify-email-view-6741f5bd.js} +8 -8
  39. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
  40. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +9 -9
  41. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
  42. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  43. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +111 -111
  44. package/dist/cjs/sqm-stencilbook.cjs.entry.js +746 -746
  45. package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
  46. package/dist/cjs/sqm-tabs.cjs.entry.js +9 -9
  47. package/dist/cjs/{sqm-text-span-view-1acdf7e9.js → sqm-text-span-view-c34577fa.js} +7 -7
  48. package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
  49. package/dist/cjs/{stencil-hooks.module-6fe43579.js → stencil-hooks.module-e4bf7f2d.js} +2 -2
  50. package/dist/cjs/{use-callback-5d15897d.js → use-callback-86e9ac75.js} +1 -1
  51. package/dist/cjs/{useChildElements-6993ec39.js → useChildElements-eaa9e49d.js} +2 -2
  52. package/dist/cjs/{useReferralTable-d4bdac2c.js → useReferralTable-f3e792eb.js} +188 -188
  53. package/dist/cjs/{useRegistrationFormState-8f2caf7f.js → useRegistrationFormState-a1861717.js} +2 -2
  54. package/dist/collection/components/sqm-big-stat/useBigStat.js +238 -238
  55. package/dist/collection/components/sqm-brand/sqm-brand.js +21 -21
  56. package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +5 -5
  57. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +14 -14
  58. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +15 -15
  59. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +10 -10
  60. package/dist/collection/components/sqm-edit-profile/useEditProfile.js +32 -32
  61. package/dist/collection/components/sqm-hero/sqm-hero-view.js +14 -14
  62. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +3 -3
  63. package/dist/collection/components/sqm-image/sqm-image-view.js +4 -4
  64. package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +6 -6
  65. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +4 -4
  66. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +2 -2
  67. package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -40
  68. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +2 -2
  69. package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +12 -12
  70. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +11 -11
  71. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +141 -141
  72. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +9 -9
  73. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +4 -4
  74. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -1
  75. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +7 -7
  76. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +10 -10
  77. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +7 -7
  78. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +7 -7
  79. package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +32 -32
  80. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +14 -14
  81. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +14 -14
  82. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +12 -12
  83. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +7 -7
  84. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +7 -7
  85. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +9 -9
  86. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +9 -9
  87. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +4 -4
  88. package/dist/collection/components/sqm-referral-iframe/useReferralIframe.js +8 -8
  89. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
  90. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -2
  91. package/dist/collection/components/sqm-referral-table/useReferralTable.js +183 -183
  92. package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +8 -8
  93. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -1
  94. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -1
  95. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +51 -51
  96. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +1 -1
  97. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +2 -2
  98. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +103 -103
  99. package/dist/collection/components/sqm-router/Router.stories.js +71 -71
  100. package/dist/collection/components/sqm-router/sqm-router.css +7 -7
  101. package/dist/collection/components/sqm-scroll/Scroll.stories.js +50 -50
  102. package/dist/collection/components/sqm-scroll/sqm-scroll.js +13 -13
  103. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +22 -22
  104. package/dist/collection/components/sqm-share-button/sqm-share-button.js +4 -4
  105. package/dist/collection/components/sqm-share-button/useShareButton.js +17 -17
  106. package/dist/collection/components/sqm-share-code/useShareCode.js +12 -12
  107. package/dist/collection/components/sqm-share-link/useShareLink.js +12 -12
  108. package/dist/collection/components/sqm-stencilbook/Resizer.js +24 -24
  109. package/dist/collection/components/sqm-stencilbook/Themes.js +25 -25
  110. package/dist/collection/components/sqm-tabs/Tabs.stories.js +475 -475
  111. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +4 -4
  112. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +5 -5
  113. package/dist/collection/components/sqm-task-card/useTaskCard.js +6 -6
  114. package/dist/collection/components/sqm-text/sqm-text.js +46 -46
  115. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +7 -7
  116. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +8 -8
  117. package/dist/collection/components/sqm-timeline/sqm-timeline.js +8 -8
  118. package/dist/collection/components/sqm-user-name/useUserName.js +9 -9
  119. package/dist/collection/global/styles.js +653 -653
  120. package/dist/collection/global/styles.ts +729 -729
  121. package/dist/esm/{ShadowViewAddon-73ba6cda.js → ShadowViewAddon-40692fc1.js} +373 -373
  122. package/dist/esm/{global-522b62b4.js → global-27ee1626.js} +655 -655
  123. package/dist/esm/{index.module-48cc9ee0.js → index.module-3c720e8f.js} +3 -3
  124. package/dist/esm/loader.js +4 -4
  125. package/dist/esm/{luxon-198ac0b0.js → luxon-1e38d7f1.js} +1 -1
  126. package/dist/esm/mint-components.js +4 -4
  127. package/dist/esm/{re-render-f406e379.js → re-render-695ddbbd.js} +2 -2
  128. package/dist/esm/sqm-asset-card.entry.js +3 -3
  129. package/dist/esm/sqm-big-stat_35.entry.js +249 -249
  130. package/dist/esm/sqm-empty_5.entry.js +52 -52
  131. package/dist/esm/sqm-form-message.entry.js +1 -1
  132. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  133. package/dist/esm/sqm-header-logo.entry.js +1 -1
  134. package/dist/esm/{sqm-hero-view-67ab5ce7.js → sqm-hero-view-fa98c30f.js} +16 -16
  135. package/dist/esm/sqm-hero.entry.js +3 -3
  136. package/dist/esm/sqm-leaderboard-rank.entry.js +16 -16
  137. package/dist/esm/{sqm-navigation-sidebar-item-view-4f6d4e15.js → sqm-navigation-sidebar-item-view-6f909ba7.js} +1 -1
  138. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
  139. package/dist/esm/{sqm-navigation-sidebar-view-74ad47d4.js → sqm-navigation-sidebar-view-06a9d083.js} +141 -141
  140. package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
  141. package/dist/esm/sqm-password-field.entry.js +13 -13
  142. package/dist/esm/sqm-popup-container.entry.js +3 -3
  143. package/dist/esm/{sqm-portal-container-view-8e091565.js → sqm-portal-container-view-2307476f.js} +4 -4
  144. package/dist/esm/{sqm-portal-email-verification-view-b4818826.js → sqm-portal-email-verification-view-edb82534.js} +9 -9
  145. package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
  146. package/dist/esm/{sqm-portal-footer-view-4ed2ee6a.js → sqm-portal-footer-view-ab195d54.js} +11 -11
  147. package/dist/esm/sqm-portal-footer.entry.js +5 -5
  148. package/dist/esm/{sqm-portal-forgot-password-view-37bafb1c.js → sqm-portal-forgot-password-view-5bcdabac.js} +8 -8
  149. package/dist/esm/sqm-portal-forgot-password.entry.js +5 -5
  150. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  151. package/dist/esm/{sqm-portal-profile-view-c28acea7.js → sqm-portal-profile-view-5e35bbe0.js} +2 -2
  152. package/dist/esm/sqm-portal-profile.entry.js +38 -38
  153. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  154. package/dist/esm/sqm-portal-registration-form.entry.js +31 -31
  155. package/dist/esm/{sqm-portal-reset-password-view-2b9da683.js → sqm-portal-reset-password-view-aebadea5.js} +8 -8
  156. package/dist/esm/sqm-portal-reset-password.entry.js +5 -5
  157. package/dist/esm/{sqm-portal-verify-email-view-e3e39501.js → sqm-portal-verify-email-view-4ba9cbb9.js} +8 -8
  158. package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
  159. package/dist/esm/sqm-referral-table_11.entry.js +9 -9
  160. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +2 -2
  161. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  162. package/dist/esm/sqm-rewards-table_9.entry.js +111 -111
  163. package/dist/esm/sqm-stencilbook.entry.js +746 -746
  164. package/dist/esm/sqm-tab.entry.js +4 -4
  165. package/dist/esm/sqm-tabs.entry.js +9 -9
  166. package/dist/esm/{sqm-text-span-view-b03a3c6d.js → sqm-text-span-view-f1cacc75.js} +7 -7
  167. package/dist/esm/sqm-text-span.entry.js +2 -2
  168. package/dist/esm/{stencil-hooks.module-203eab48.js → stencil-hooks.module-b48b45ec.js} +2 -2
  169. package/dist/esm/{use-callback-f03b0607.js → use-callback-051c06c6.js} +1 -1
  170. package/dist/esm/{useChildElements-11279a92.js → useChildElements-79be4145.js} +2 -2
  171. package/dist/esm/{useReferralTable-e629af05.js → useReferralTable-5c18f7c5.js} +188 -188
  172. package/dist/esm/{useRegistrationFormState-3eb572a5.js → useRegistrationFormState-6ce2e16f.js} +2 -2
  173. package/dist/esm-es5/{ShadowViewAddon-73ba6cda.js → ShadowViewAddon-40692fc1.js} +1 -1
  174. package/dist/esm-es5/{global-522b62b4.js → global-27ee1626.js} +1 -1
  175. package/dist/esm-es5/{index.module-48cc9ee0.js → index.module-3c720e8f.js} +1 -1
  176. package/dist/esm-es5/loader.js +1 -1
  177. package/dist/esm-es5/{luxon-198ac0b0.js → luxon-1e38d7f1.js} +1 -1
  178. package/dist/esm-es5/mint-components.js +1 -1
  179. package/dist/esm-es5/{re-render-f406e379.js → re-render-695ddbbd.js} +1 -1
  180. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  181. package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
  182. package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
  183. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  184. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  185. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  186. package/dist/esm-es5/{sqm-hero-view-67ab5ce7.js → sqm-hero-view-fa98c30f.js} +1 -1
  187. package/dist/esm-es5/sqm-hero.entry.js +1 -1
  188. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  189. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-4f6d4e15.js → sqm-navigation-sidebar-item-view-6f909ba7.js} +1 -1
  190. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  191. package/dist/esm-es5/{sqm-navigation-sidebar-view-74ad47d4.js → sqm-navigation-sidebar-view-06a9d083.js} +0 -0
  192. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  193. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  194. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  195. package/dist/esm-es5/{sqm-portal-container-view-8e091565.js → sqm-portal-container-view-2307476f.js} +0 -0
  196. package/dist/esm-es5/{sqm-portal-email-verification-view-b4818826.js → sqm-portal-email-verification-view-edb82534.js} +1 -1
  197. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  198. package/dist/esm-es5/{sqm-portal-footer-view-4ed2ee6a.js → sqm-portal-footer-view-ab195d54.js} +1 -1
  199. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  200. package/dist/esm-es5/{sqm-portal-forgot-password-view-37bafb1c.js → sqm-portal-forgot-password-view-5bcdabac.js} +1 -1
  201. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  202. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  203. package/dist/esm-es5/{sqm-portal-profile-view-c28acea7.js → sqm-portal-profile-view-5e35bbe0.js} +1 -1
  204. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  205. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  206. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  207. package/dist/esm-es5/{sqm-portal-reset-password-view-2b9da683.js → sqm-portal-reset-password-view-aebadea5.js} +1 -1
  208. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  209. package/dist/esm-es5/{sqm-portal-verify-email-view-e3e39501.js → sqm-portal-verify-email-view-4ba9cbb9.js} +1 -1
  210. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  211. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  212. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  213. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  214. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  215. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  216. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  217. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  218. package/dist/esm-es5/{sqm-text-span-view-b03a3c6d.js → sqm-text-span-view-f1cacc75.js} +0 -0
  219. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  220. package/dist/esm-es5/stencil-hooks.module-b48b45ec.js +53 -0
  221. package/dist/esm-es5/use-callback-051c06c6.js +1 -0
  222. package/dist/esm-es5/{useChildElements-11279a92.js → useChildElements-79be4145.js} +1 -1
  223. package/dist/esm-es5/{useReferralTable-e629af05.js → useReferralTable-5c18f7c5.js} +1 -1
  224. package/dist/esm-es5/useRegistrationFormState-6ce2e16f.js +1 -0
  225. package/dist/mint-components/global/styles.ts +729 -729
  226. package/dist/mint-components/mint-components.esm.js +1 -1
  227. package/dist/mint-components/mint-components.js +1 -1
  228. package/dist/mint-components/p-02356211.system.entry.js +1 -0
  229. package/dist/mint-components/{p-55459a24.entry.js → p-03bf73ac.entry.js} +1 -1
  230. package/dist/mint-components/{p-5378fb23.entry.js → p-0925cbc6.entry.js} +1 -1
  231. package/dist/mint-components/{p-e8d36075.js → p-0b095d21.js} +1 -1
  232. package/dist/mint-components/{p-2cb26cd1.js → p-0d32da24.js} +1 -1
  233. package/dist/mint-components/{p-92b752c7.system.entry.js → p-1450de85.system.entry.js} +1 -1
  234. package/dist/mint-components/{p-08010f98.system.entry.js → p-14c9767e.system.entry.js} +1 -1
  235. package/dist/mint-components/{p-fd5a8981.entry.js → p-17c14be1.entry.js} +1 -1
  236. package/dist/mint-components/{p-f451ee1c.entry.js → p-1866c07f.entry.js} +1 -1
  237. package/dist/mint-components/{p-de067239.system.entry.js → p-1c2c05ea.system.entry.js} +1 -1
  238. package/dist/mint-components/{p-f3c3408a.system.js → p-1cb208fd.system.js} +1 -1
  239. package/dist/mint-components/p-1d1fac2c.js +1 -0
  240. package/dist/mint-components/{p-6d46c0cc.system.entry.js → p-1e346217.system.entry.js} +1 -1
  241. package/dist/mint-components/{p-febe7c5f.system.entry.js → p-1ea19d11.system.entry.js} +1 -1
  242. package/dist/mint-components/{p-867ba20a.system.js → p-1f54fd38.system.js} +1 -1
  243. package/dist/mint-components/{p-5218f2a6.system.js → p-1f8706fb.system.js} +1 -1
  244. package/dist/mint-components/{p-5c579816.system.entry.js → p-22e95dff.system.entry.js} +1 -1
  245. package/dist/mint-components/{p-9e1d9435.js → p-25254dd1.js} +1 -1
  246. package/dist/mint-components/{p-340799ce.entry.js → p-25482fe1.entry.js} +1 -1
  247. package/dist/mint-components/{p-30b245d6.entry.js → p-273bba0e.entry.js} +2 -2
  248. package/dist/mint-components/{p-012102e9.system.entry.js → p-2850c602.system.entry.js} +1 -1
  249. package/dist/mint-components/{p-0edfc573.entry.js → p-29452204.entry.js} +2 -2
  250. package/dist/mint-components/{p-22176b92.js → p-2f8e0a8a.js} +1 -1
  251. package/dist/mint-components/{p-b103de2f.system.js → p-3c189cea.system.js} +1 -1
  252. package/dist/mint-components/{p-c0140ec4.system.js → p-3cd32c6e.system.js} +1 -1
  253. package/dist/mint-components/{p-02d89393.entry.js → p-3e8ba80d.entry.js} +1 -1
  254. package/dist/mint-components/{p-12681e5a.entry.js → p-3f075d21.entry.js} +1 -1
  255. package/dist/mint-components/{p-b9452254.entry.js → p-4294a89c.entry.js} +1 -1
  256. package/dist/mint-components/{p-10122db1.system.js → p-45374f45.system.js} +0 -0
  257. package/dist/mint-components/{p-b1ef1946.entry.js → p-45e212a9.entry.js} +1 -1
  258. package/dist/mint-components/{p-f9ddcd73.entry.js → p-45ee4fcd.entry.js} +1 -1
  259. package/dist/mint-components/{p-8fb0719c.js → p-47ce2382.js} +3 -3
  260. package/dist/mint-components/{p-9a561fd3.entry.js → p-482fb4ac.entry.js} +1 -1
  261. package/dist/mint-components/{p-1555c1e9.js → p-4c86095b.js} +0 -0
  262. package/dist/mint-components/{p-2b2415cc.system.js → p-4d322f3b.system.js} +1 -1
  263. package/dist/mint-components/p-51dd43c0.system.js +1 -0
  264. package/dist/mint-components/{p-813f62c9.entry.js → p-53fd1378.entry.js} +1 -1
  265. package/dist/mint-components/{p-593ef76e.system.js → p-589ec33b.system.js} +1 -1
  266. package/dist/mint-components/{p-09f3273f.system.entry.js → p-5a8866c0.system.entry.js} +1 -1
  267. package/dist/mint-components/{p-74f936b0.js → p-5d9244de.js} +0 -0
  268. package/dist/mint-components/{p-2bfa2da4.js → p-5fb4fe4a.js} +0 -0
  269. package/dist/mint-components/{p-4b172d2d.system.entry.js → p-668fb3d2.system.entry.js} +1 -1
  270. package/dist/mint-components/{p-8a6a0b6f.js → p-66a393ef.js} +1 -1
  271. package/dist/mint-components/{p-ffd74e16.system.entry.js → p-68620baa.system.entry.js} +1 -1
  272. package/dist/mint-components/{p-7d852be4.entry.js → p-6db612cd.entry.js} +1 -1
  273. package/dist/mint-components/{p-fb617890.system.entry.js → p-6eb41f14.system.entry.js} +1 -1
  274. package/dist/mint-components/{p-21b7fc2c.js → p-6f9f5609.js} +1 -1
  275. package/dist/mint-components/p-707e7a2e.system.entry.js +1 -0
  276. package/dist/mint-components/{p-ffe8e20a.system.js → p-70ccc481.system.js} +1 -1
  277. package/dist/mint-components/{p-0b3a7986.entry.js → p-723f3d4f.entry.js} +2 -2
  278. package/dist/mint-components/{p-2972f75d.system.entry.js → p-727e4538.system.entry.js} +1 -1
  279. package/dist/mint-components/{p-3827df5e.system.entry.js → p-72b166c9.system.entry.js} +1 -1
  280. package/dist/mint-components/{p-bf265ac5.entry.js → p-75bcbf34.entry.js} +1 -1
  281. package/dist/mint-components/{p-19f72571.entry.js → p-78651bde.entry.js} +1 -1
  282. package/dist/mint-components/p-7a539b20.entry.js +1 -0
  283. package/dist/mint-components/{p-e9489bfb.system.js → p-7ceff8de.system.js} +0 -0
  284. package/dist/mint-components/{p-b3b4a2f8.system.entry.js → p-7d964c43.system.entry.js} +1 -1
  285. package/dist/mint-components/p-80e9d337.entry.js +9 -0
  286. package/dist/mint-components/{p-750b7be8.system.entry.js → p-87221acc.system.entry.js} +1 -1
  287. package/dist/mint-components/{p-a8857f0d.js → p-8874f2c4.js} +2 -2
  288. package/dist/mint-components/{p-92248f2e.system.js → p-88bef048.system.js} +1 -1
  289. package/dist/mint-components/p-895858d0.entry.js +1 -0
  290. package/dist/mint-components/{p-75843334.entry.js → p-8b422807.entry.js} +1 -1
  291. package/dist/mint-components/p-8ffaf231.system.entry.js +1 -0
  292. package/dist/mint-components/{p-143e7a08.system.js → p-91dee224.system.js} +1 -1
  293. package/dist/mint-components/{p-e4fc7952.js → p-93832713.js} +1 -1
  294. package/dist/mint-components/{p-e4a5687e.system.js → p-9732cfef.system.js} +1 -1
  295. package/dist/mint-components/p-98e0ea41.system.entry.js +1 -0
  296. package/dist/mint-components/{p-d8c7e0db.js → p-99c241ef.js} +1 -1
  297. package/dist/mint-components/p-9e16b967.entry.js +1 -0
  298. package/dist/mint-components/{p-51932259.entry.js → p-9e20ddfc.entry.js} +1 -1
  299. package/dist/mint-components/{p-4174b16b.system.entry.js → p-9fa34993.system.entry.js} +1 -1
  300. package/dist/mint-components/{p-4e5f3aec.system.js → p-a421f44e.system.js} +1 -1
  301. package/dist/mint-components/{p-4963f7da.system.entry.js → p-aaa67e65.system.entry.js} +1 -1
  302. package/dist/mint-components/{p-6df5ec12.system.js → p-afe80d73.system.js} +1 -1
  303. package/dist/mint-components/{p-28b10528.js → p-b23d673e.js} +1 -1
  304. package/dist/mint-components/{p-48e68efc.system.js → p-b3169627.system.js} +1 -1
  305. package/dist/mint-components/{p-ede07fec.js → p-b5a64626.js} +1 -1
  306. package/dist/mint-components/p-b79c0e38.system.js +53 -0
  307. package/dist/mint-components/{p-23370096.entry.js → p-ba307441.entry.js} +2 -2
  308. package/dist/mint-components/{p-d1540fe3.entry.js → p-c3d4bd17.entry.js} +1 -1
  309. package/dist/mint-components/p-c4fc0601.system.entry.js +1 -0
  310. package/dist/mint-components/{p-66247b60.system.js → p-c7090fd1.system.js} +1 -1
  311. package/dist/mint-components/{p-177f9745.system.js → p-c9a2502c.system.js} +1 -1
  312. package/dist/mint-components/p-cd898a3a.js +1 -0
  313. package/dist/mint-components/p-d027de63.entry.js +1 -0
  314. package/dist/mint-components/{p-a37d0529.js → p-d1a74f7e.js} +1 -1
  315. package/dist/mint-components/p-d1d42507.system.entry.js +1 -0
  316. package/dist/mint-components/{p-c551f288.js → p-d3ceb986.js} +1 -1
  317. package/dist/mint-components/{p-a461c89b.system.entry.js → p-d54de97b.system.entry.js} +1 -1
  318. package/dist/mint-components/{p-cd745ffb.system.js → p-dd23d448.system.js} +1 -1
  319. package/dist/mint-components/{p-4439f24b.system.entry.js → p-dd7ddc3a.system.entry.js} +1 -1
  320. package/dist/mint-components/{p-6cceb8cc.entry.js → p-ddf15193.entry.js} +1 -1
  321. package/dist/mint-components/{p-c06cd3cc.system.js → p-e018edb8.system.js} +0 -0
  322. package/dist/mint-components/{p-662c6f3d.system.entry.js → p-e52f70e0.system.entry.js} +1 -1
  323. package/dist/mint-components/{p-80a6c714.entry.js → p-e6f5ccc0.entry.js} +1 -1
  324. package/dist/mint-components/{p-d74f7723.system.entry.js → p-e7548e13.system.entry.js} +1 -1
  325. package/dist/mint-components/p-ec8608b9.system.entry.js +1 -0
  326. package/dist/mint-components/p-ed801cb7.js +42 -0
  327. package/dist/mint-components/{p-b4c84f38.system.entry.js → p-f2e8bf4c.system.entry.js} +1 -1
  328. package/dist/mint-components/p-f66b4b3a.js +1 -0
  329. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +1 -1
  330. package/dist/types/components.d.ts +72 -72
  331. package/dist/types/global/android.d.ts +7 -7
  332. package/dist/types/saasquatch.d.ts +132 -132
  333. package/dist/types/stories/features.d.ts +4 -4
  334. package/dist/types/stories/templates.d.ts +4 -4
  335. package/docs/docs.docx +0 -0
  336. package/docs/raisins.json +1 -1
  337. package/grapesjs/grapesjs.js +1 -1
  338. package/package.json +102 -102
  339. package/readme.md +13 -13
  340. package/dist/esm-es5/stencil-hooks.module-203eab48.js +0 -53
  341. package/dist/esm-es5/use-callback-f03b0607.js +0 -1
  342. package/dist/esm-es5/useRegistrationFormState-3eb572a5.js +0 -1
  343. package/dist/mint-components/p-0110b347.system.entry.js +0 -1
  344. package/dist/mint-components/p-0c564965.entry.js +0 -1
  345. package/dist/mint-components/p-23a9da5f.system.entry.js +0 -1
  346. package/dist/mint-components/p-34a64c60.system.js +0 -53
  347. package/dist/mint-components/p-37bbd972.js +0 -1
  348. package/dist/mint-components/p-4619685f.js +0 -1
  349. package/dist/mint-components/p-4e3bba58.js +0 -42
  350. package/dist/mint-components/p-5f3a12ab.entry.js +0 -1
  351. package/dist/mint-components/p-71eb37b0.entry.js +0 -1
  352. package/dist/mint-components/p-80c485b3.system.entry.js +0 -1
  353. package/dist/mint-components/p-886fb137.system.entry.js +0 -1
  354. package/dist/mint-components/p-a9444fa1.system.js +0 -1
  355. package/dist/mint-components/p-d3a07540.system.entry.js +0 -1
  356. package/dist/mint-components/p-dafd6aaa.entry.js +0 -9
  357. package/dist/mint-components/p-e712f037.entry.js +0 -1
  358. package/dist/mint-components/p-e8bf0ab5.js +0 -1
  359. package/dist/mint-components/p-f9d414fa.system.entry.js +0 -1
  360. package/dist/mint-components/p-ffd4f556.system.entry.js +0 -1
@@ -1 +1 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-34a64c60.system.js"],(function(r){"use strict";var o,e,s;return{setters:[function(r){o=r.r;e=r.h},function(r){s=r.m}],execute:function(){var t="sl-alert::part(base){border:1px solid;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(20, 20, 20, 0.1);box-shadow:0 1px 2px rgba(20, 20, 20, 0.1)}.Error::part(base){background-color:var(--sl-color-danger-100);border-color:var(--sl-color-danger-200)}.Success::part(base){background-color:var(--sl-color-success-100);border-color:var(--sl-color-success-200)}.Info::part(base){background-color:var(--sl-color-primary-100);border-color:var(--sl-color-primary-200)}";var c=r("sqm_form_message",function(){function r(r){o(this,r);this.ignored=true;s(this)}r.prototype.disconnectedCallback=function(){};r.prototype.render=function(){if(this.type==="error"){return e("sl-alert",{exportparts:"base: erroralert-base, icon:erroralert-icon",class:"Error",type:"danger",open:true},e("sl-icon",{slot:"icon",name:""+(this.icon?this.icon:"exclamation-octagon")}),e("slot",null))}else if(this.type==="info"){return e("sl-alert",{exportparts:"base: infoalert-base, icon:infoalert-icon",class:"Info",type:"primary",open:true},e("sl-icon",{slot:"icon",name:""+(this.icon?this.icon:"info-circle")}),e("slot",null))}else{return e("sl-alert",{exportparts:"base: successalert-base, icon:successalert-icon",class:"Success",type:"success",open:true},e("sl-icon",{slot:"icon",name:""+(this.icon?this.icon:"check2-circle")}),e("slot",null))}};return r}());c.style=t}}}));
1
+ System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js"],(function(r){"use strict";var o,e,s;return{setters:[function(r){o=r.r;e=r.h},function(r){s=r.m}],execute:function(){var t="sl-alert::part(base){border:1px solid;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(20, 20, 20, 0.1);box-shadow:0 1px 2px rgba(20, 20, 20, 0.1)}.Error::part(base){background-color:var(--sl-color-danger-100);border-color:var(--sl-color-danger-200)}.Success::part(base){background-color:var(--sl-color-success-100);border-color:var(--sl-color-success-200)}.Info::part(base){background-color:var(--sl-color-primary-100);border-color:var(--sl-color-primary-200)}";var c=r("sqm_form_message",function(){function r(r){o(this,r);this.ignored=true;s(this)}r.prototype.disconnectedCallback=function(){};r.prototype.render=function(){if(this.type==="error"){return e("sl-alert",{exportparts:"base: erroralert-base, icon:erroralert-icon",class:"Error",type:"danger",open:true},e("sl-icon",{slot:"icon",name:""+(this.icon?this.icon:"exclamation-octagon")}),e("slot",null))}else if(this.type==="info"){return e("sl-alert",{exportparts:"base: infoalert-base, icon:infoalert-icon",class:"Info",type:"primary",open:true},e("sl-icon",{slot:"icon",name:""+(this.icon?this.icon:"info-circle")}),e("slot",null))}else{return e("sl-alert",{exportparts:"base: successalert-base, icon:successalert-icon",class:"Success",type:"success",open:true},e("sl-icon",{slot:"icon",name:""+(this.icon?this.icon:"check2-circle")}),e("slot",null))}};return r}());c.style=t}}}));
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-ff17b3a4.system.js","./p-34a64c60.system.js","./p-593ef76e.system.js","./p-867ba20a.system.js","./p-e4a5687e.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-bef0a1f4.system.js","./p-66247b60.system.js","./p-a9444fa1.system.js","./p-b103de2f.system.js","./p-5218f2a6.system.js","./p-6333265f.system.js","./p-10122db1.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,u,d,c,f,p,v,h,m,g,_,y,b,T,x;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.m;s=e.f;l=e.k;o=e.u},function(e){u=e.i},function(){},function(e){d=e.i},function(e){c=e.c},function(){},function(e){f=e.c},function(e){p=e.G},function(e){v=e.a;h=e.u},function(e){m=e.u},function(e){g=e.l},function(e){_=e.a;y=e.u;b=e.t},function(e){T=e.l},function(e){x=e.T}],execute:function(){var w=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return L()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var E=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var D=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var C=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var L=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:D[Math.floor(Math.random()*D.length)],lastName:C[Math.floor(Math.random()*C.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?g.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:g.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:E[Math.floor(Math.random()*E.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},_()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:E[Math.floor(Math.random()*E.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:E[Math.floor(Math.random()*E.length)],type:"CREDIT",value:1},depth:1}]}}};var R=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(N,null);var t=r(P,null);var n=d()?M(this,e,t):y(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;v([this.showReferrer,this.perPage]);return r(p,{states:a,data:i,callbacks:s,elements:l})};return e}());function N(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function P(){return r("slot",{name:"loading"},r(A,null),r(A,null),r(A,null),r(A,null))}function A(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sl-skeleton",null)))}function M(e,t,r){var n=s((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var u=h();var d=l((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||w(e.perPage)}),[e.perPage]);var f=m();function p(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,u,c,f,p,v,h,m,g;var _=this;return __generator(this,(function(y){switch(y.label){case 0:a=d===null||d===void 0?void 0:d.referredByReferral;s=e.showReferrer&&!!((r=d===null||d===void 0?void 0:d.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=d.data.slice(0,e.perPage-1)}else{n=d.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(_,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,b(e,(function(){return e.renderLabel(t)}))]}return[2,b(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(_,void 0,void 0,(function(){return __generator(this,(function(t){return[2,b(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:u=y.sent();y.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(_,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,b(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));v=f;if(!v)return[3,4];h=[[u]];return[4,Promise.all(f)];case 3:v=__spreadArrays.apply(void 0,h.concat([y.sent()])).filter((function(e){return e}));y.label=4;case 4:p=v;i({rows:p});g=o;if(!g)return[3,6];return[4,Promise.all(o)];case 5:g=y.sent();y.label=6;case 6:m=g;i({columns:m,loading:false,page:0});return[2]}}))}))}o((function(){i({loading:true});(d===null||d===void 0?void 0:d.data)&&p(f)}),[d===null||d===void 0?void 0:d.data,f,u]);var v=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return v}var S=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var k=e("sqm_referral_table_column",function(){function e(e){t(this,e);i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){v([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var B=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=g.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(T(this.locale)).toLocaleString(g.DateTime.DATE_MED);return t};return e}());var I=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){v([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var U=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.locale="en"}e.prototype.render=function(){var e=this;var t;u.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:""+(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:""+(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}};var a=f(n);var i=a.toString();var s=function(e){var t=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE"];if(e.length===1)return e[0];return t.find((function(t){return e.includes(t)&&t}))};var l=function(e){switch(e){case"REDEEMED":return"primary";case"EXPIRED":return"danger";case"CANCELLED":return"danger";case"PENDING":return"warning";case"AVAILABLE":return"success"}};var o=function(t){return g.DateTime.fromMillis(t).setLocale(T(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n=s(t.statuses);var d=l(n);var c=u.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:n});var f=u.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:n});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(x,{type:"p"},r("span",{class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},n==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:d,pill:true},u.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:c,date:o(t.dateScheduledFor)})):r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:d,pill:true},c),t.dateExpires&&n==="AVAILABLE"&&r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:true},e.expiringText," "+o(t.dateExpires)))),r("div",null,t.dateGiven&&r("div",null,r(x,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText},g.DateTime.fromMillis(t.dateGiven).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="EXPIRED"&&t.dateExpires&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText},g.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="CANCELLED"&&t.dateCancelled&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText},g.DateTime.fromMillis(t.dateCancelled).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="PENDING"&&t.dateScheduledFor&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText},g.DateTime.fromMillis(t.dateScheduledFor).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED))))," ",n==="AVAILABLE"&&t.dateExpires&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText},g.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText},t.fuelTankCode))))}))};return e}());var q=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.hideDetails=false;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,locale:t})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards})]}))}))};e.prototype.render=function(){v([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var j={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}}};var G=f(j);var F=G.toString();var V=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return r("div",null,r("style",{type:"text/css"},F),r("sl-badge",{pill:true,type:this.converted?"success":"warning",class:G.classes.Badge},this.statusText))};return e}());var O=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){v([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var X=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var H=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,u,d;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){d=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){d=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){d=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{d=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((u=e===null||e===void 0?void 0:e.referredUser)===null||u===void 0?void 0:u.lastName)}return[2,r("sqm-referral-table-user-cell",{name:d})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){v([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-589ec33b.system.js","./p-1f54fd38.system.js","./p-9732cfef.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-bef0a1f4.system.js","./p-c7090fd1.system.js","./p-51dd43c0.system.js","./p-3c189cea.system.js","./p-1f8706fb.system.js","./p-6333265f.system.js","./p-45374f45.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,u,d,c,f,p,v,h,m,g,_,y,b,T,x;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.m;s=e.f;l=e.k;o=e.u},function(e){u=e.i},function(){},function(e){d=e.i},function(e){c=e.c},function(){},function(e){f=e.c},function(e){p=e.G},function(e){v=e.a;h=e.u},function(e){m=e.u},function(e){g=e.l},function(e){_=e.a;y=e.u;b=e.t},function(e){T=e.l},function(e){x=e.T}],execute:function(){var w=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return L()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var E=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var D=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var C=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var L=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:D[Math.floor(Math.random()*D.length)],lastName:C[Math.floor(Math.random()*C.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?g.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:g.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:E[Math.floor(Math.random()*E.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},_()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:E[Math.floor(Math.random()*E.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:E[Math.floor(Math.random()*E.length)],type:"CREDIT",value:1},depth:1}]}}};var R=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(N,null);var t=r(P,null);var n=d()?M(this,e,t):y(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;v([this.showReferrer,this.perPage]);return r(p,{states:a,data:i,callbacks:s,elements:l})};return e}());function N(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function P(){return r("slot",{name:"loading"},r(A,null),r(A,null),r(A,null),r(A,null))}function A(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sl-skeleton",null)))}function M(e,t,r){var n=s((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var u=h();var d=l((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||w(e.perPage)}),[e.perPage]);var f=m();function p(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,u,c,f,p,v,h,m,g;var _=this;return __generator(this,(function(y){switch(y.label){case 0:a=d===null||d===void 0?void 0:d.referredByReferral;s=e.showReferrer&&!!((r=d===null||d===void 0?void 0:d.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=d.data.slice(0,e.perPage-1)}else{n=d.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(_,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,b(e,(function(){return e.renderLabel(t)}))]}return[2,b(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(_,void 0,void 0,(function(){return __generator(this,(function(t){return[2,b(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:u=y.sent();y.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(_,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,b(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));v=f;if(!v)return[3,4];h=[[u]];return[4,Promise.all(f)];case 3:v=__spreadArrays.apply(void 0,h.concat([y.sent()])).filter((function(e){return e}));y.label=4;case 4:p=v;i({rows:p});g=o;if(!g)return[3,6];return[4,Promise.all(o)];case 5:g=y.sent();y.label=6;case 6:m=g;i({columns:m,loading:false,page:0});return[2]}}))}))}o((function(){i({loading:true});(d===null||d===void 0?void 0:d.data)&&p(f)}),[d===null||d===void 0?void 0:d.data,f,u]);var v=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return v}var S=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var k=e("sqm_referral_table_column",function(){function e(e){t(this,e);i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){v([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var B=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=g.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(T(this.locale)).toLocaleString(g.DateTime.DATE_MED);return t};return e}());var I=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){v([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var U=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.locale="en"}e.prototype.render=function(){var e=this;var t;u.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:""+(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:""+(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}};var a=f(n);var i=a.toString();var s=function(e){var t=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE"];if(e.length===1)return e[0];return t.find((function(t){return e.includes(t)&&t}))};var l=function(e){switch(e){case"REDEEMED":return"primary";case"EXPIRED":return"danger";case"CANCELLED":return"danger";case"PENDING":return"warning";case"AVAILABLE":return"success"}};var o=function(t){return g.DateTime.fromMillis(t).setLocale(T(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n=s(t.statuses);var d=l(n);var c=u.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:n});var f=u.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:n});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(x,{type:"p"},r("span",{class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},n==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:d,pill:true},u.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:c,date:o(t.dateScheduledFor)})):r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:d,pill:true},c),t.dateExpires&&n==="AVAILABLE"&&r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:true},e.expiringText," "+o(t.dateExpires)))),r("div",null,t.dateGiven&&r("div",null,r(x,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText},g.DateTime.fromMillis(t.dateGiven).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="EXPIRED"&&t.dateExpires&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText},g.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="CANCELLED"&&t.dateCancelled&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText},g.DateTime.fromMillis(t.dateCancelled).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="PENDING"&&t.dateScheduledFor&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText},g.DateTime.fromMillis(t.dateScheduledFor).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED))))," ",n==="AVAILABLE"&&t.dateExpires&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText},g.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText},t.fuelTankCode))))}))};return e}());var q=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.hideDetails=false;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,locale:t})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards})]}))}))};e.prototype.render=function(){v([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var j={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}}};var G=f(j);var F=G.toString();var V=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return r("div",null,r("style",{type:"text/css"},F),r("sl-badge",{pill:true,type:this.converted?"success":"warning",class:G.classes.Badge},this.statusText))};return e}());var O=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){v([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var X=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var H=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,u,d;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){d=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){d=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){d=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{d=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((u=e===null||e===void 0?void 0:e.referredUser)===null||u===void 0?void 0:u.lastName)}return[2,r("sqm-referral-table-user-cell",{name:d})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){v([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
@@ -1 +1 @@
1
- import{h as e}from"./p-64c3217a.js";import{A as t,a as r}from"./p-02be1a88.js";import{c as s}from"./p-cef45012.js";import{T as a}from"./p-74f936b0.js";const o=s({Wrapper:t,Column:r,ContinueButton:{width:"100%"}}),i=o.toString();function n(t){const{states:r,data:s,callbacks:n}=t;return r.verified?e("div",{class:o.classes.Wrapper},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",i),e(a,{type:"h3"},"Verify your email"),e("sqm-form-message",{exportparts:"success-icon"},e("div",{part:"successalert-text"},"Your email has been verified and you are being redirected. If you are not redirected, please click Continue.")),e("sl-button",{class:o.classes.ContinueButton,onClick:n.gotoNextPage,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue")):r.error||!s.oobCode?e("div",{class:o.classes.Wrapper},e("style",{type:"text/css"},i),e(a,{type:"h3"},"Verify your email"),e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},"The email verification code is invalid or has expired, please try again.")),e("sl-button",{class:o.classes.ContinueButton,onClick:n.failed,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue")):void 0}export{n as P}
1
+ import{h as e}from"./p-64c3217a.js";import{A as t,a as r}from"./p-02be1a88.js";import{c as s}from"./p-cef45012.js";import{T as a}from"./p-5d9244de.js";const o=s({Wrapper:t,Column:r,ContinueButton:{width:"100%"}}),i=o.toString();function n(t){const{states:r,data:s,callbacks:n}=t;return r.verified?e("div",{class:o.classes.Wrapper},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",i),e(a,{type:"h3"},"Verify your email"),e("sqm-form-message",{exportparts:"success-icon"},e("div",{part:"successalert-text"},"Your email has been verified and you are being redirected. If you are not redirected, please click Continue.")),e("sl-button",{class:o.classes.ContinueButton,onClick:n.gotoNextPage,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue")):r.error||!s.oobCode?e("div",{class:o.classes.Wrapper},e("style",{type:"text/css"},i),e(a,{type:"h3"},"Verify your email"),e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},"The email verification code is invalid or has expired, please try again.")),e("sl-button",{class:o.classes.ContinueButton,onClick:n.failed,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue")):void 0}export{n as P}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r["throw"](e))}catch(e){a(e)}}function l(e){e.done?n(e.value):i(e.value).then(s,o)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-34a64c60.system.js","./p-867ba20a.system.js","./p-e4a5687e.system.js","./p-b2295bc5.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-10122db1.system.js","./p-2b2415cc.system.js"],(function(e){"use strict";var t,n,r,i,a,s,o,l,u,c;return{setters:[function(e){t=e.r;n=e.h},function(e){r=e.i;i=e.m},function(){},function(e){a=e.n;s=e.f;o=e.i},function(e){l=e.j},function(e){u=e.c},function(){},function(){},function(){},function(e){c=e.P}],execute:function(){function f(e){var t=this;var n,i,o,u,c,f,d;var h=r(false),v=h[0],b=h[1];var m=r(""),p=m[0],g=m[1];var y=a(),w=y[0],_=y[1],x=_.loading,P=_.data,k=_.errors;var j=new URLSearchParams(s.location.search);var S=j.get("nextPage");var E=function(n){return __awaiter(t,void 0,void 0,(function(){var t,r,i,a,s,o;return __generator(this,(function(u){switch(u.label){case 0:g("");b(false);r=n.detail.formData;r===null||r===void 0?void 0:r.forEach((function(e,t){l.set(r,t,e)}));i=S?{nextPage:S}:null;a=e.redirectPath;s={email:r.email,urlParams:i,redirectPath:a};return[4,w(s)];case 1:o=u.sent();if(o instanceof Error){if(o.message)g("Network request failed.");return[2]}if((t=o.requestManagedIdentityPasswordResetEmail)===null||t===void 0?void 0:t.success){b(true)}return[2]}}))}))};return{states:{loading:x,error:((u=(o=(i=(n=k===null||k===void 0?void 0:k.response)===null||n===void 0?void 0:n.errors)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.extensions)===null||u===void 0?void 0:u.message)||((d=(f=(c=k===null||k===void 0?void 0:k.response)===null||c===void 0?void 0:c.errors)===null||f===void 0?void 0:f[0])===null||d===void 0?void 0:d.message)||p,success:v,loginPath:e.loginPath,headerText:e.headerText,loginText:e.loginText},callbacks:{submit:E}}}var d=e("sqm_portal_forgot_password",function(){function e(e){t(this,e);this.ignored=true;this.redirectPath="/resetPassword";this.emailLabel="Email";this.submitLabel="Request Password Reset";this.loginPath="/login";this.headerText="Enter your email below to receive a password reset link.";this.loginText="Sign In";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=o()?h(this):f(this),t=e.states,r=e.callbacks;var i={secondaryButton:n("slot",{name:"secondaryButton"},n("sl-button",{type:"text",disabled:t.loading,onClick:function(){return s.push(t.loginPath)}},"Sign In")),messageSlot:n("slot",{name:"messageSlot"},"Enter your email below to receive a password reset link."),emailLabel:this.emailLabel,submitLabel:this.submitLabel};return n(c,{states:t,callbacks:r,content:i})};return e}());function h(e){var t=this;return u({states:{error:"",loading:false,success:false},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r["throw"](e))}catch(e){s(e)}}function l(e){e.done?n(e.value):i(e.value).then(a,o)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(e){return function(t){return l([e,t])}}function l(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1];s=a;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(a);break}if(s[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-1f54fd38.system.js","./p-9732cfef.system.js","./p-b2295bc5.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-45374f45.system.js","./p-4d322f3b.system.js"],(function(e){"use strict";var t,n,r,i,s,a,o,l,u,c;return{setters:[function(e){t=e.r;n=e.h},function(e){r=e.i;i=e.m},function(){},function(e){s=e.n;a=e.f;o=e.i},function(e){l=e.j},function(e){u=e.c},function(){},function(){},function(){},function(e){c=e.P}],execute:function(){function f(e){var t=this;var n,i,o,u,c,f,d;var h=r(false),v=h[0],b=h[1];var m=r(""),p=m[0],g=m[1];var y=s(),w=y[0],_=y[1],x=_.loading,P=_.data,k=_.errors;var j=new URLSearchParams(a.location.search);var S=j.get("nextPage");var E=function(n){return __awaiter(t,void 0,void 0,(function(){var t,r,i,s,a,o;return __generator(this,(function(u){switch(u.label){case 0:g("");b(false);r=n.detail.formData;r===null||r===void 0?void 0:r.forEach((function(e,t){l.set(r,t,e)}));i=S?{nextPage:S}:null;s=e.redirectPath;a={email:r.email,urlParams:i,redirectPath:s};return[4,w(a)];case 1:o=u.sent();if(o instanceof Error){if(o.message)g("Network request failed.");return[2]}if((t=o.requestManagedIdentityPasswordResetEmail)===null||t===void 0?void 0:t.success){b(true)}return[2]}}))}))};return{states:{loading:x,error:((u=(o=(i=(n=k===null||k===void 0?void 0:k.response)===null||n===void 0?void 0:n.errors)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.extensions)===null||u===void 0?void 0:u.message)||((d=(f=(c=k===null||k===void 0?void 0:k.response)===null||c===void 0?void 0:c.errors)===null||f===void 0?void 0:f[0])===null||d===void 0?void 0:d.message)||p,success:v,loginPath:e.loginPath,headerText:e.headerText,loginText:e.loginText},callbacks:{submit:E}}}var d=e("sqm_portal_forgot_password",function(){function e(e){t(this,e);this.ignored=true;this.redirectPath="/resetPassword";this.emailLabel="Email";this.submitLabel="Request Password Reset";this.loginPath="/login";this.headerText="Enter your email below to receive a password reset link.";this.loginText="Sign In";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=o()?h(this):f(this),t=e.states,r=e.callbacks;var i={secondaryButton:n("slot",{name:"secondaryButton"},n("sl-button",{type:"text",disabled:t.loading,onClick:function(){return a.push(t.loginPath)}},"Sign In")),messageSlot:n("slot",{name:"messageSlot"},"Enter your email below to receive a password reset link."),emailLabel:this.emailLabel,submitLabel:this.submitLabel};return n(c,{states:t,callbacks:r,content:i})};return e}());function h(e){var t=this;return u({states:{error:"",loading:false,success:false},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -1 +1 @@
1
- import{r as t,h as s}from"./p-64c3217a.js";import{m as a}from"./p-4e3bba58.js";import"./p-4619685f.js";import{i as r}from"./p-e4fc7952.js";import{c as e}from"./p-c1086930.js";import"./p-cef45012.js";import{A as o}from"./p-a46c0d32.js";const c=class{constructor(s){t(this,s),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const t=r()?function(t){return e({text:{titleText:"Marketing Banner"},imgUrl:"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png",callbacks:{}},t.demoData||{},{arrayMerge:(t,s)=>s})}(this):{text:{titleText:"Marketing Banner"},imgUrl:null,callbacks:{}};return s(o,Object.assign({},t))}static get assetsDirs(){return["../../assets"]}};export{c as sqm_asset_card}
1
+ import{r as t,h as s}from"./p-64c3217a.js";import{m as a}from"./p-ed801cb7.js";import"./p-f66b4b3a.js";import{i as r}from"./p-93832713.js";import{c as e}from"./p-c1086930.js";import"./p-cef45012.js";import{A as o}from"./p-a46c0d32.js";const c=class{constructor(s){t(this,s),this.ignored=!0,a(this)}disconnectedCallback(){}render(){const t=r()?function(t){return e({text:{titleText:"Marketing Banner"},imgUrl:"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png",callbacks:{}},t.demoData||{},{arrayMerge:(t,s)=>s})}(this):{text:{titleText:"Marketing Banner"},imgUrl:null,callbacks:{}};return s(o,Object.assign({},t))}static get assetsDirs(){return["../../assets"]}};export{c as sqm_asset_card}
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,n=1,e=arguments.length;n<e;n++){s=arguments[n];for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a))t[a]=s[a]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-34a64c60.system.js","./p-867ba20a.system.js","./p-e4a5687e.system.js","./p-6333265f.system.js"],(function(t){"use strict";var s,n,e,a,o,r;return{setters:[function(t){s=t.h;n=t.c;e=t.r},function(t){a=t.m},function(){},function(t){o=t.U},function(t){r=t.g}],execute:function(){var c=function(t){var e=t.states,a=t.callbacks;var o=e.styles;return s(n,{class:"squatch-container"},s("div",{style:{padding:t.states.styles.padding}},o.closeButton&&s("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:function(){return a.closePopup()}},o.closeButtonText),s("slot",null),o.poweredBy?s("a",{class:"sqh-attribution",href:"https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget",target:"_blank"},"Powered By"):""))};function i(t){var s=o();function n(){var t;if(o()==="POPUP"){(t=window.frameElement["squatchJsApi"])===null||t===void 0?void 0:t.close()}}var e=t.popupPadding?t.popupPadding==="none"?"0":"var(--sl-spacing-"+t.popupPadding+")":"var(--sl-spacing-medium)";var a=t.embedPadding?t.embedPadding==="none"?"0":"var(--sl-spacing-"+t.embedPadding+")":"0";var r=o()==="POPUP"?e:a;return{states:{showCloseButton:t.closeButton&&s==="POPUP",styles:__assign(__assign({},t),{padding:r,closeButtonText:t.closeButtonText?t.closeButtonText:"X"})},data:{},callbacks:{closePopup:n}}}var u=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";var l=t("sqm_popup_container",function(){function t(t){e(this,t);a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r(this);return s(c,Object.assign({},i(t)))};return t}());l.style=u}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,n=1,e=arguments.length;n<e;n++){s=arguments[n];for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a))t[a]=s[a]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-1f54fd38.system.js","./p-9732cfef.system.js","./p-6333265f.system.js"],(function(t){"use strict";var s,n,e,a,o,r;return{setters:[function(t){s=t.h;n=t.c;e=t.r},function(t){a=t.m},function(){},function(t){o=t.U},function(t){r=t.g}],execute:function(){var c=function(t){var e=t.states,a=t.callbacks;var o=e.styles;return s(n,{class:"squatch-container"},s("div",{style:{padding:t.states.styles.padding}},o.closeButton&&s("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:function(){return a.closePopup()}},o.closeButtonText),s("slot",null),o.poweredBy?s("a",{class:"sqh-attribution",href:"https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget",target:"_blank"},"Powered By"):""))};function i(t){var s=o();function n(){var t;if(o()==="POPUP"){(t=window.frameElement["squatchJsApi"])===null||t===void 0?void 0:t.close()}}var e=t.popupPadding?t.popupPadding==="none"?"0":"var(--sl-spacing-"+t.popupPadding+")":"var(--sl-spacing-medium)";var a=t.embedPadding?t.embedPadding==="none"?"0":"var(--sl-spacing-"+t.embedPadding+")":"0";var r=o()==="POPUP"?e:a;return{states:{showCloseButton:t.closeButton&&s==="POPUP",styles:__assign(__assign({},t),{padding:r,closeButtonText:t.closeButtonText?t.closeButtonText:"X"})},data:{},callbacks:{closePopup:n}}}var u=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";var l=t("sqm_popup_container",function(){function t(t){e(this,t);a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r(this);return s(c,Object.assign({},i(t)))};return t}());l.style=u}}}));
@@ -1 +1 @@
1
- import{h as r}from"./p-64c3217a.js";import{f as o}from"./p-e4fc7952.js";import{g as s}from"./p-02be1a88.js";import{c as a}from"./p-cef45012.js";function e(e){const{states:t,data:c}=e,l={ItemContainer:{display:"flex","background-color":t.active?"var(--sl-color-gray-200)":"var(--sl-color-white)","border-radius":"8px",padding:"8px","text-decoration":"none",color:"#454444","align-items":"center",...s({direction:"row",size:"var(--sl-font-size-small)"}),"&:hover":{cursor:"pointer",background:t.active?"var(--sl-color-gray-300)":"var(--sl-color-gray-50)"}},Label:{margin:"0"},Icon:{"flex-shrink":"0"}},n=a(l),i=n.toString();return r("a",{href:c.path,onClick:r=>{r.preventDefault(),o.push(c.path)},class:n.classes.ItemContainer},r("style",{type:"text/css"},i),r("sl-icon",{class:n.classes.Icon,name:c.icon}),r("p",{class:n.classes.Label},c.label))}export{e as N}
1
+ import{h as r}from"./p-64c3217a.js";import{f as o}from"./p-93832713.js";import{g as s}from"./p-02be1a88.js";import{c as a}from"./p-cef45012.js";function e(e){const{states:t,data:c}=e,l={ItemContainer:{display:"flex","background-color":t.active?"var(--sl-color-gray-200)":"var(--sl-color-white)","border-radius":"8px",padding:"8px","text-decoration":"none",color:"#454444","align-items":"center",...s({direction:"row",size:"var(--sl-font-size-small)"}),"&:hover":{cursor:"pointer",background:t.active?"var(--sl-color-gray-300)":"var(--sl-color-gray-50)"}},Label:{margin:"0"},Icon:{"flex-shrink":"0"}},n=a(l),i=n.toString();return r("a",{href:c.path,onClick:r=>{r.preventDefault(),o.push(c.path)},class:n.classes.ItemContainer},r("style",{type:"text/css"},i),r("sl-icon",{class:n.classes.Icon,name:c.icon}),r("p",{class:n.classes.Label},c.label))}export{e as N}
@@ -0,0 +1 @@
1
+ System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-1f54fd38.system.js","./p-9732cfef.system.js","./p-c7090fd1.system.js","./p-51dd43c0.system.js","./p-6333265f.system.js"],(function(t){"use strict";var e,n,r,s,a,o,i,l,u,c,f;return{setters:[function(t){e=t.h;n=t.c;r=t.r},function(t){s=t.l;a=t.k;o=t.u;i=t.m},function(){},function(t){l=t.R},function(t){u=t.u},function(t){c=t.u},function(t){f=t.g}],execute:function(){var p=function(t){var r=t.content,a=t.placement;var o=!a||a==="top"||a==="bottom"?"var(--sl-spacing-x-large) 0;":"0 var(--sl-spacing-xx-large);";var i="\n sl-tab-panel::part(base) {\n padding: "+o+";\n }\n ";var l=s();return e(n,null,e("style",{type:"text/css"},i),e("sl-tab-group",{placement:a},r.tabs.map((function(t){var n=t.getAttribute("slot");if(t.tagName==="RAISINS-PLOP-TARGET"){return e("sl-tab",{slot:"nav"},e("div",{style:{marginTop:"10px"}},e("slot",{name:n})))}return[e("sl-tab",{slot:"nav",panel:n,id:t.getAttribute("id")||n},t.getAttribute("header")),e("sl-tab-panel",{name:n},e("slot",{name:n}))]}))),e("div",{style:{display:"none"}},e("slot",null)))};var v="sq:reveal";function m(){var t=c();var e=l();var n=u();var r=a((function(){return t.filter((function(t){return t.tagName==="SQM-TAB"||t.tagName==="RAISINS-PLOP-TARGET"})).map((function(t,e){if(t.tagName==="RAISINS-PLOP-TARGET"){var n=t;n.style.position="absolute";n.style.left="6px";var r=t.firstElementChild.childNodes[1];r.innerHTML="+";r.style.lineHeight="20px"}t.setAttribute("slot","tab-"+e);t.setAttribute("id","tab-"+e);return t}))}),[t,n]);o((function(){var t=function(t){var n;var r=t.target;t.stopPropagation();if(!r)return;var s=r.closest("sqm-tabs");if(!e.contains(r)||!s)return;var a=r.closest("sqm-tab");var o=s.shadowRoot.querySelector("sl-tab-group");(n=o)===null||n===void 0?void 0:n.show(a.id)};e.addEventListener(v,t);return function(){e.removeEventListener(v,t)}}),[]);return{content:{tabs:r}}}var d=t("sqm_tabs",function(){function t(t){r(this,t);i(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=m().content;var n=f(this).placement;return e(p,{placement:n,content:t},e("slot",null))};return t}())}}}));
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))s[r]=e[r]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-593ef76e.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-10122db1.system.js"],(function(s){"use strict";var e,t,n,r,a,i;return{setters:[function(s){e=s.h},function(s){t=s.i},function(s){n=s.A;r=s.a},function(s){a=s.c},function(s){i=s.T}],execute:function(){s("P",p);var o={Wrapper:n,Column:__assign({},r),ButtonLink:{fontSize:"14px",color:"var(--sl-color-primary-500)",display:"inline-block !important","&:hover":{cursor:"pointer",textDecoration:"underline"}},ButtonLinkLoading:{fontSize:"14px",color:"var(--sl-color-gray-500)",opacity:"0.6",display:"inline-block !important",textDecoration:"underline","&:hover":{cursor:"not-allowed"}}};var c="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var l=a(o);var u=l.toString();function p(s){var n=s.states,r=s.callbacks,a=s.content,o=a.email,p=a.verifyMessage,f=a.emailVerificationHeader,d=a.resendEmailButtonText,g=a.verificationStatusMessage,m=a.verificationLoadingMessage;return e("div",{class:l.classes.Wrapper},e("style",{type:"text/css"},c,u),e(i,{type:"h3"},f),e("sl-form",{class:l.classes.Column,"onSl-submit":r.submit},s.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s.states.error)),s.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},"Your verification email has been resent successfully")),e(i,{type:"p"},t.formatMessage({id:"verifyMessage",defaultMessage:p},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},o)})),e("p",{style:{color:"var(--sl-color-gray-500)",fontSize:"14px"}},t.formatMessage({id:"verificationStatus",defaultMessage:n.loadingVerification?m+" {countdown}":g},{countdown:n.loadingVerification?e("sl-spinner",null):n.countdown})),e("a",{class:n.loading?l.classes.ButtonLinkLoading:l.classes.ButtonLink,onClick:r.submit},d)))}}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))s[r]=e[r]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-589ec33b.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-45374f45.system.js"],(function(s){"use strict";var e,t,n,r,a,i;return{setters:[function(s){e=s.h},function(s){t=s.i},function(s){n=s.A;r=s.a},function(s){a=s.c},function(s){i=s.T}],execute:function(){s("P",p);var o={Wrapper:n,Column:__assign({},r),ButtonLink:{fontSize:"14px",color:"var(--sl-color-primary-500)",display:"inline-block !important","&:hover":{cursor:"pointer",textDecoration:"underline"}},ButtonLinkLoading:{fontSize:"14px",color:"var(--sl-color-gray-500)",opacity:"0.6",display:"inline-block !important",textDecoration:"underline","&:hover":{cursor:"not-allowed"}}};var c="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var l=a(o);var u=l.toString();function p(s){var n=s.states,r=s.callbacks,a=s.content,o=a.email,p=a.verifyMessage,f=a.emailVerificationHeader,g=a.resendEmailButtonText,m=a.verificationStatusMessage,d=a.verificationLoadingMessage;return e("div",{class:l.classes.Wrapper},e("style",{type:"text/css"},c,u),e(i,{type:"h3"},f),e("sl-form",{class:l.classes.Column,"onSl-submit":r.submit},s.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s.states.error)),s.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},"Your verification email has been resent successfully")),e(i,{type:"p"},t.formatMessage({id:"verifyMessage",defaultMessage:p},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},o)})),e("p",{style:{color:"var(--sl-color-gray-500)",fontSize:"14px"}},t.formatMessage({id:"verificationStatus",defaultMessage:n.loadingVerification?d+" {countdown}":m},{countdown:n.loadingVerification?e("sl-spinner",null):n.countdown})),e("a",{class:n.loading?l.classes.ButtonLinkLoading:l.classes.ButtonLink,onClick:r.submit},g)))}}}}));
@@ -1,4 +1,4 @@
1
- import{h as e,r as t,c as s}from"./p-64c3217a.js";import{b as a,f as r,u as l,m as i,k as n}from"./p-4e3bba58.js";import{i as o}from"./p-28b10528.js";import"./p-4619685f.js";import{d,N as c,O as u,x as m,v as p,i as h}from"./p-e4fc7952.js";import{c as v}from"./p-c1086930.js";import"./p-02be1a88.js";import{c as f}from"./p-cef45012.js";import{G as g}from"./p-6dd27a5e.js";import{u as y,a as w}from"./p-a37d0529.js";import{u as E}from"./p-e8bf0ab5.js";import{l as b}from"./p-9e1d9435.js";import{g as x,m as R}from"./p-8fb0719c.js";import{l as A}from"./p-9ec99ced.js";const N=a("sq:useRewardsTable"),D=d.gql`
1
+ import{h as e,r as t,c as s}from"./p-64c3217a.js";import{b as a,f as r,u as l,m as i,k as n}from"./p-ed801cb7.js";import{i as o}from"./p-b23d673e.js";import"./p-f66b4b3a.js";import{d,N as c,O as u,x as m,v as p,i as h}from"./p-93832713.js";import{c as v}from"./p-c1086930.js";import"./p-02be1a88.js";import{c as g}from"./p-cef45012.js";import{G as f}from"./p-6dd27a5e.js";import{u as y,a as w}from"./p-d1a74f7e.js";import{u as E}from"./p-1d1fac2c.js";import{l as b}from"./p-25254dd1.js";import{g as x,m as R}from"./p-47ce2382.js";import{l as A}from"./p-9ec99ced.js";const N=a("sq:useRewardsTable"),D=d.gql`
2
2
  query getRewards(
3
3
  $limit: Int!
4
4
  $offset: Int!
@@ -101,4 +101,4 @@ import{h as e,r as t,c as s}from"./p-64c3217a.js";import{b as a,f as r,u as l,m
101
101
  }
102
102
  }
103
103
  }
104
- `;async function T(t,s){const a=t.tagName.toLowerCase();let r;await customElements.whenDefined(a);try{r=s()}catch(t){return N("label promise failed",t),e("span",null)}try{return await r}catch(t){N("Error rendering label",t);const s=x(t);return e("details",null,e("summary",null,"Error"),s)}}const _=class{constructor(e){t(this,e),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,i(this)}disconnectedCallback(){}render(){const t=e(L,null),s=e(C,null),{states:a,data:i,callbacks:o,elements:d}=h()?function(e,t,s){const[a,i]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),o=y(),{data:d}=n((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||R(e.perPage)}),[e.perPage]),c=E();return l((()=>{i({loading:!0}),d&&async function(t){let s=d;s=d.slice(0,e.perPage);const a=t.filter((e=>{var t,s;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(s=null==e?void 0:e.firstElementChild)||void 0===s?void 0:s.getAttribute("slot"))})),r=null==a?void 0:a.map((async(e,t)=>{var s;const a=null===(s=null==e?void 0:e.firstElementChild)||void 0===s?void 0:s.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==a&&"empty"!==a){e.style.position="absolute",e.setAttribute("slot","column-"+t);const s=e.firstElementChild.childNodes[1];return s.innerHTML="+",s.style.lineHeight="20px",T(e,(()=>e.renderLabel(t)))}return T(e,(()=>e.renderLabel()))})),l=null==s?void 0:s.map((async e=>{const t=null==a?void 0:a.map((async t=>T(t,(()=>t.renderCell(e,void 0)))));return await Promise.all(t)})),n=l&&(await Promise.all(l)).filter((e=>e));i({rows:n});const o=r&&await Promise.all(r);i({columns:o,loading:!1,page:0})}(c)}),[d,c,o]),v({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:s}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,t,s):function(t,s,a){var i,n;const o=c(),d=u(),h=m(),v=null!==(i=t.programId)&&void 0!==i?i:d,f={userId_eq:null==o?void 0:o.id,accountId_eq:null==o?void 0:o.accountId,...v?"classic"===v?{programId_exists:!1}:{programId_eq:v}:{}},[g,w]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{envelope:b,states:x,callbacks:R}=p(D,(e=>{var t;return null===(t=null==e?void 0:e.viewer)||void 0===t?void 0:t.rewards}),{limit:t.perPage,offset:0},{rewardFilter:f,locale:h},!(null==o?void 0:o.jwt)),A=y(),N=E(),_=null==b?void 0:b.data;l((()=>{w({loading:!0}),b&&async function(t){const s=t.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),a=null==s?void 0:s.map((async e=>T(e,(()=>e.renderLabel())))),r=null==_?void 0:_.map((async t=>{const a=null==s?void 0:s.map((async s=>T(s,(()=>s.renderCell(t,h,e)))));return await Promise.all(a)})),l=r&&(await Promise.all(r)).filter((e=>e));w({rows:l});const i=a&&await Promise.all(a);w({columns:i,loading:!1,page:x.currentPage})}(N)}),[b,N,A]);const L=!(null===(n=null==g?void 0:g.rows)||void 0===n?void 0:n.length)&&!(null==_?void 0:_.length);return{states:{hasNext:x.currentPage<x.pageCount-1,hasPrev:x.currentPage>0,show:x.loading||g.loading?"loading":L?"empty":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:!t.hideLabels,prevLabel:t.prevLabel,moreLabel:t.moreLabel},hiddenColumns:t.hiddenColumns,smBreakpoint:t.smBreakpoint,mdBreakpoint:t.mdBreakpoint},elements:{columns:g.columns,rows:g.rows,emptyElement:s,loadingElement:a},callbacks:{nextPage:()=>{R.setCurrentPage(x.currentPage+1)},prevPage:()=>{R.setCurrentPage(x.currentPage-1)}}}}(this,t,s);return w([this.perPage]),e(g,{states:a,data:i,callbacks:o,elements:d})}};function L(){return e("slot",{name:"empty"},e("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png","empty-state-header":"View your rewards","empty-state-text":"Refer friends and complete tasks to view the details of your rewards"}))}function C(){return e("slot",{name:"loading"},e(I,null),e(I,null),e(I,null),e(I,null))}function I(){return e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null)))}const S=class{constructor(e){t(this,e),this.ignored=!0,this.locale="en",i(this)}disconnectedCallback(){}render(){var e,t;return this.date?null===(t=null===(e=b.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(A(this.locale)))||void 0===t?void 0:t.toLocaleString(b.DateTime.DATE_MED):"-"}},P=class{constructor(e){t(this,e),this.columnTitle="Date received",this.dateShown="dateGiven",i(this)}disconnectedCallback(){}async renderCell(t,s){return e("sqm-rewards-table-date-cell",{date:t[this.dateShown],locale:s})}async renderLabel(){return this.columnTitle}render(){return w([this.dateShown,this.columnTitle]),e(s,{style:{display:"none"}})}},k=f({DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},Fueltank:{"& .code":{display:"flex",cursor:"pointer",userSelect:"none",color:"var(--sl-color-neutral-500)","&:hover":{color:"var(--sl-color-sky-500)"}},"& .text":{maxWidth:"90%",overflow:"hidden",textOverflow:"ellipsis",color:"inherit",fontSize:"var(--sl-font-size-small)",fontWeight:"var(--sl-font-weight-bold)"},"& .icon":{position:"relative",top:"1px",marginLeft:"var(--sl-spacing-x-small)",color:"inherit"}}}),q=k.toString(),U=class{constructor(e){t(this,e)}render(){return o.locale=this.locale,e("div",{style:{display:"contents"}},e("style",{type:"text/css"},q),e((({reward:t})=>{var s;const a="CENTS"===t.unit?t.prettyValue.replace(/USD/gi,"$"):null!==(s=t.prettyValue)&&void 0!==s?s:"-",r="1"===t.prettyValueNumber||t.dateRedeemed&&"0"===t.prettyAvailableNumber;if("FUELTANK"===t.type)return e("div",{class:k.classes.Fueltank},t.prettyValue,t.fuelTankCode&&e("div",{class:"code",onClick:()=>navigator.clipboard.writeText(t.fuelTankCode)},e("sl-tooltip",{trigger:"click",placement:"top",distance:5,skidding:11,content:this.copyText,"onSl-show":e=>setTimeout((()=>e.path[0].hide()),1e3)},e("span",{class:"text"},t.fuelTankCode),e("span",{class:"icon"},e("sl-icon",{name:"files"})))));if("CREDIT"===t.type&&!r){const s=parseFloat(t.prettyValueNumber)-parseFloat(t.prettyRedeemedNumber),r=Math.round(s/parseFloat(t.prettyValueNumber)*100),l=t.statuses.includes("EXPIRED")||t.statuses.includes("CANCELLED")?e("div",null,o.formatMessage({id:"redeemedText",defaultMessage:this.redeemedText},{redeemedAmount:t.prettyRedeemedCredit})):e("div",null,o.formatMessage({id:"availableText",defaultMessage:this.availableText},{availableAmount:t.statuses.includes("PENDING")?t.prettyAssignedCredit:t.prettyAvailableValue})),i=f({Progress:{height:"3px",width:"100%",margin:"var(--sl-spacing-xx-small) 0",background:"var(--sl-color-neutral-200)","&:after":{content:'""',display:"block",background:"var(--sl-color-primary-300)",borderRadius:"100px",width:`${r}%`,height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",width:"150px",whiteSpace:"break",overflow:"hidden",textOverflow:"ellipsis"},Text:{fontSize:"var(--sl-font-size-medium)",color:"var(--sl-color-gray-800)"},Subtext:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}}),n=i.toString();return e("div",null,e("style",{type:"text/css"},n),e("div",{class:i.classes.Container},e("span",null,a+" "),e("br",null)," ",e("div",{class:i.classes.Progress}),e("span",{class:i.classes.Subtext},l)))}return e("div",null,a)}),{reward:this.reward}))}},$=class{constructor(e){t(this,e),this.columnTitle="Reward",this.redeemedText="{redeemedAmount} redeemed",this.availableText="{availableAmount} remaining",this.copyText="Copied!",i(this)}disconnectedCallback(){}async renderCell(t,s){return e("sqm-rewards-table-reward-cell",{reward:t,redeemedText:this.redeemedText,availableText:this.availableText,copyText:this.copyText,locale:s})}async renderLabel(){return this.columnTitle}render(){return w([this.columnTitle,this.redeemedText,this.availableText,this.copyText]),e(s,{style:{display:"none"}})}},M=class{constructor(e){t(this,e),this.locale="en"}render(){o.locale=this.locale;const t=({reward:t})=>{var s;return e("span",null,o.formatMessage({id:"rewardSourceText",defaultMessage:this.rewardSourceText},{rewardSource:t.rewardSource,programName:null===(s=null==t?void 0:t.program)||void 0===s?void 0:s.name}))},s=({reward:t})=>{var s;const a=e("div",null,e("span",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},this.rewardExchangeText),e("br",null),null===(s=t.exchangedRewardRedemptionTransaction)||void 0===s?void 0:s.prettyRedeemedCredit," → ",t.prettyValue);return t.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+t.prettyValue.length<21?a:e("div",{style:{display:"inline-block",verticalAlign:"top"}},a)},a=e=>e?e.firstName||e.lastName?e.firstName?e.lastName?`${e.firstName} ${e.lastName}`:`${e.firstName}`:`${e.lastName}`:this.anonymousUserText:this.deletedUserText;return e((()=>"FRIEND_SIGNUP"===this.reward.rewardSource||"REFERRED"===this.reward.rewardSource?e("div",null,e("div",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},o.formatMessage({id:"referralText",defaultMessage:this.referralText},{rewardSource:this.reward.rewardSource})),e("div",null,a("FRIEND_SIGNUP"==this.reward.rewardSource?this.reward.referral.referredUser:this.reward.referral.referrerUser))):e(this.reward.exchangedRewardRedemptionTransaction?s:t,{reward:this.reward})),null)}},B=class{constructor(e){t(this,e),this.columnTitle="Source",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",this.rewardExchangeText="Reward Exchange",this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}",this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}",i(this)}disconnectedCallback(){}async renderCell(t,s){return e("sqm-rewards-table-source-cell",{reward:t,anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText,locale:s})}async renderLabel(){return this.columnTitle}render(){return w([this.deletedUser,this.anonymousUser,this.columnTitle,this.rewardExchangeText,this.referralText,this.rewardSourceText]),e(s,{style:{display:"none"}})}},F=f({Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",paddingLeft:"10px",whiteSpace:"pre-line"}},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",background:"var(--sl-color-blue-600)"}},Date:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}}),z=F.toString(),G=class{constructor(e){t(this,e),this.expiryText="Expires",this.locale="en",this.pendingUsTax="W-9 required",this.pendingScheduled="Until",this.pendingUnhandled="Fulfillment error"}rewardStatus(e){if(e.dateCancelled)return"CANCELLED";if(e.statuses&&e.statuses.includes("EXPIRED"))return"EXPIRED";if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if("CREDIT"===e.type)return e.statuses.includes("REDEEMED")?"REDEEMED":"AVAILABLE";if("PCT_DISCOUNT"===e.type&&e.statuses.includes("AVAILABLE"))return"AVAILABLE";if("INTEGRATION"===e.type||"FUELTANK"===e.type){if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if(e.statuses&&e.statuses.includes("CANCELLED"))return"CANCELLED";if(e.statuses.includes("AVAILABLE"))return"AVAILABLE"}return""}render(){var t;o.locale=this.locale;const s=this.rewardStatus(this.reward),a=o.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:s}),r="AVAILABLE"===s?"success":"REDEEMED"===s?"primary":"PENDING"===s?"warning":"danger",l=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"",i=l&&`${"AVAILABLE"===s&&this.reward.dateExpires?this.expiryText+" ":""}${null===(t=b.DateTime.fromMillis(l))||void 0===t?void 0:t.setLocale(A(A(this.locale))).toLocaleString(b.DateTime.DATE_MED)}`,n="PENDING"===s?function(e){var t;const s={US_TAX:e.pendingUsTax,SCHEDULED:e.reward.dateScheduledFor&&e.pendingScheduled+" "+(null===(t=b.DateTime.fromMillis(e.reward.dateScheduledFor))||void 0===t?void 0:t.setLocale(A(A(e.locale||"en"))).toLocaleString(b.DateTime.DATE_MED)),UNHANDLED_ERROR:e.pendingUnhandled};return[e.reward.pendingReasons].map((e=>{var t;return null!==(t=s[e])&&void 0!==t?t:e})).join(", ")}(this):null;return e("div",{style:{display:"contents"}},e("style",{type:"text/css"},z),e("sl-badge",{type:r,pill:!0,class:"REDEEMED"===s?F.classes.RedeemBadge:F.classes.Badge},a),e("p",{class:F.classes.Date},n||i))}},j=class{constructor(e){t(this,e),this.columnTitle="Status",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",this.expiryText="Expires on ",this.pendingUsTax="W-9 required",this.pendingScheduled="Until",this.pendingUnhandled="Fulfillment error",i(this)}disconnectedCallback(){}async renderCell(t,s){return e("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:t,expiryText:this.expiryText,pendingScheduled:this.pendingScheduled,pendingUsTax:this.pendingUsTax,pendingUnhandled:this.pendingUnhandled,locale:s})}async renderLabel(){return this.columnTitle}render(){return w([this.columnTitle,this.statusText,this.expiryText,this.pendingScheduled,this.pendingUsTax,this.pendingUnhandled]),e(s,{style:{display:"none"}})}};export{_ as sqm_rewards_table,S as sqm_rewards_table_date_cell,P as sqm_rewards_table_date_column,U as sqm_rewards_table_reward_cell,$ as sqm_rewards_table_reward_column,M as sqm_rewards_table_source_cell,B as sqm_rewards_table_source_column,G as sqm_rewards_table_status_cell,j as sqm_rewards_table_status_column}
104
+ `;async function T(t,s){const a=t.tagName.toLowerCase();let r;await customElements.whenDefined(a);try{r=s()}catch(t){return N("label promise failed",t),e("span",null)}try{return await r}catch(t){N("Error rendering label",t);const s=x(t);return e("details",null,e("summary",null,"Error"),s)}}const _=class{constructor(e){t(this,e),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,i(this)}disconnectedCallback(){}render(){const t=e(L,null),s=e(C,null),{states:a,data:i,callbacks:o,elements:d}=h()?function(e,t,s){const[a,i]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),o=y(),{data:d}=n((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||R(e.perPage)}),[e.perPage]),c=E();return l((()=>{i({loading:!0}),d&&async function(t){let s=d;s=d.slice(0,e.perPage);const a=t.filter((e=>{var t,s;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(s=null==e?void 0:e.firstElementChild)||void 0===s?void 0:s.getAttribute("slot"))})),r=null==a?void 0:a.map((async(e,t)=>{var s;const a=null===(s=null==e?void 0:e.firstElementChild)||void 0===s?void 0:s.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==a&&"empty"!==a){e.style.position="absolute",e.setAttribute("slot","column-"+t);const s=e.firstElementChild.childNodes[1];return s.innerHTML="+",s.style.lineHeight="20px",T(e,(()=>e.renderLabel(t)))}return T(e,(()=>e.renderLabel()))})),l=null==s?void 0:s.map((async e=>{const t=null==a?void 0:a.map((async t=>T(t,(()=>t.renderCell(e,void 0)))));return await Promise.all(t)})),n=l&&(await Promise.all(l)).filter((e=>e));i({rows:n});const o=r&&await Promise.all(r);i({columns:o,loading:!1,page:0})}(c)}),[d,c,o]),v({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:s}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,t,s):function(t,s,a){var i,n;const o=c(),d=u(),h=m(),v=null!==(i=t.programId)&&void 0!==i?i:d,g={userId_eq:null==o?void 0:o.id,accountId_eq:null==o?void 0:o.accountId,...v?"classic"===v?{programId_exists:!1}:{programId_eq:v}:{}},[f,w]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{envelope:b,states:x,callbacks:R}=p(D,(e=>{var t;return null===(t=null==e?void 0:e.viewer)||void 0===t?void 0:t.rewards}),{limit:t.perPage,offset:0},{rewardFilter:g,locale:h},!(null==o?void 0:o.jwt)),A=y(),N=E(),_=null==b?void 0:b.data;l((()=>{w({loading:!0}),b&&async function(t){const s=t.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),a=null==s?void 0:s.map((async e=>T(e,(()=>e.renderLabel())))),r=null==_?void 0:_.map((async t=>{const a=null==s?void 0:s.map((async s=>T(s,(()=>s.renderCell(t,h,e)))));return await Promise.all(a)})),l=r&&(await Promise.all(r)).filter((e=>e));w({rows:l});const i=a&&await Promise.all(a);w({columns:i,loading:!1,page:x.currentPage})}(N)}),[b,N,A]);const L=!(null===(n=null==f?void 0:f.rows)||void 0===n?void 0:n.length)&&!(null==_?void 0:_.length);return{states:{hasNext:x.currentPage<x.pageCount-1,hasPrev:x.currentPage>0,show:x.loading||f.loading?"loading":L?"empty":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:!t.hideLabels,prevLabel:t.prevLabel,moreLabel:t.moreLabel},hiddenColumns:t.hiddenColumns,smBreakpoint:t.smBreakpoint,mdBreakpoint:t.mdBreakpoint},elements:{columns:f.columns,rows:f.rows,emptyElement:s,loadingElement:a},callbacks:{nextPage:()=>{R.setCurrentPage(x.currentPage+1)},prevPage:()=>{R.setCurrentPage(x.currentPage-1)}}}}(this,t,s);return w([this.perPage]),e(f,{states:a,data:i,callbacks:o,elements:d})}};function L(){return e("slot",{name:"empty"},e("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png","empty-state-header":"View your rewards","empty-state-text":"Refer friends and complete tasks to view the details of your rewards"}))}function C(){return e("slot",{name:"loading"},e(I,null),e(I,null),e(I,null),e(I,null))}function I(){return e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null)))}const S=class{constructor(e){t(this,e),this.ignored=!0,this.locale="en",i(this)}disconnectedCallback(){}render(){var e,t;return this.date?null===(t=null===(e=b.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(A(this.locale)))||void 0===t?void 0:t.toLocaleString(b.DateTime.DATE_MED):"-"}},P=class{constructor(e){t(this,e),this.columnTitle="Date received",this.dateShown="dateGiven",i(this)}disconnectedCallback(){}async renderCell(t,s){return e("sqm-rewards-table-date-cell",{date:t[this.dateShown],locale:s})}async renderLabel(){return this.columnTitle}render(){return w([this.dateShown,this.columnTitle]),e(s,{style:{display:"none"}})}},k=g({DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},Fueltank:{"& .code":{display:"flex",cursor:"pointer",userSelect:"none",color:"var(--sl-color-neutral-500)","&:hover":{color:"var(--sl-color-sky-500)"}},"& .text":{maxWidth:"90%",overflow:"hidden",textOverflow:"ellipsis",color:"inherit",fontSize:"var(--sl-font-size-small)",fontWeight:"var(--sl-font-weight-bold)"},"& .icon":{position:"relative",top:"1px",marginLeft:"var(--sl-spacing-x-small)",color:"inherit"}}}),q=k.toString(),U=class{constructor(e){t(this,e)}render(){return o.locale=this.locale,e("div",{style:{display:"contents"}},e("style",{type:"text/css"},q),e((({reward:t})=>{var s;const a="CENTS"===t.unit?t.prettyValue.replace(/USD/gi,"$"):null!==(s=t.prettyValue)&&void 0!==s?s:"-",r="1"===t.prettyValueNumber||t.dateRedeemed&&"0"===t.prettyAvailableNumber;if("FUELTANK"===t.type)return e("div",{class:k.classes.Fueltank},t.prettyValue,t.fuelTankCode&&e("div",{class:"code",onClick:()=>navigator.clipboard.writeText(t.fuelTankCode)},e("sl-tooltip",{trigger:"click",placement:"top",distance:5,skidding:11,content:this.copyText,"onSl-show":e=>setTimeout((()=>e.path[0].hide()),1e3)},e("span",{class:"text"},t.fuelTankCode),e("span",{class:"icon"},e("sl-icon",{name:"files"})))));if("CREDIT"===t.type&&!r){const s=parseFloat(t.prettyValueNumber)-parseFloat(t.prettyRedeemedNumber),r=Math.round(s/parseFloat(t.prettyValueNumber)*100),l=t.statuses.includes("EXPIRED")||t.statuses.includes("CANCELLED")?e("div",null,o.formatMessage({id:"redeemedText",defaultMessage:this.redeemedText},{redeemedAmount:t.prettyRedeemedCredit})):e("div",null,o.formatMessage({id:"availableText",defaultMessage:this.availableText},{availableAmount:t.statuses.includes("PENDING")?t.prettyAssignedCredit:t.prettyAvailableValue})),i=g({Progress:{height:"3px",width:"100%",margin:"var(--sl-spacing-xx-small) 0",background:"var(--sl-color-neutral-200)","&:after":{content:'""',display:"block",background:"var(--sl-color-primary-300)",borderRadius:"100px",width:`${r}%`,height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",width:"150px",whiteSpace:"break",overflow:"hidden",textOverflow:"ellipsis"},Text:{fontSize:"var(--sl-font-size-medium)",color:"var(--sl-color-gray-800)"},Subtext:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}}),n=i.toString();return e("div",null,e("style",{type:"text/css"},n),e("div",{class:i.classes.Container},e("span",null,a+" "),e("br",null)," ",e("div",{class:i.classes.Progress}),e("span",{class:i.classes.Subtext},l)))}return e("div",null,a)}),{reward:this.reward}))}},$=class{constructor(e){t(this,e),this.columnTitle="Reward",this.redeemedText="{redeemedAmount} redeemed",this.availableText="{availableAmount} remaining",this.copyText="Copied!",i(this)}disconnectedCallback(){}async renderCell(t,s){return e("sqm-rewards-table-reward-cell",{reward:t,redeemedText:this.redeemedText,availableText:this.availableText,copyText:this.copyText,locale:s})}async renderLabel(){return this.columnTitle}render(){return w([this.columnTitle,this.redeemedText,this.availableText,this.copyText]),e(s,{style:{display:"none"}})}},M=class{constructor(e){t(this,e),this.locale="en"}render(){o.locale=this.locale;const t=({reward:t})=>{var s;return e("span",null,o.formatMessage({id:"rewardSourceText",defaultMessage:this.rewardSourceText},{rewardSource:t.rewardSource,programName:null===(s=null==t?void 0:t.program)||void 0===s?void 0:s.name}))},s=({reward:t})=>{var s;const a=e("div",null,e("span",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},this.rewardExchangeText),e("br",null),null===(s=t.exchangedRewardRedemptionTransaction)||void 0===s?void 0:s.prettyRedeemedCredit," → ",t.prettyValue);return t.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+t.prettyValue.length<21?a:e("div",{style:{display:"inline-block",verticalAlign:"top"}},a)},a=e=>e?e.firstName||e.lastName?e.firstName?e.lastName?`${e.firstName} ${e.lastName}`:`${e.firstName}`:`${e.lastName}`:this.anonymousUserText:this.deletedUserText;return e((()=>"FRIEND_SIGNUP"===this.reward.rewardSource||"REFERRED"===this.reward.rewardSource?e("div",null,e("div",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},o.formatMessage({id:"referralText",defaultMessage:this.referralText},{rewardSource:this.reward.rewardSource})),e("div",null,a("FRIEND_SIGNUP"==this.reward.rewardSource?this.reward.referral.referredUser:this.reward.referral.referrerUser))):e(this.reward.exchangedRewardRedemptionTransaction?s:t,{reward:this.reward})),null)}},B=class{constructor(e){t(this,e),this.columnTitle="Source",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",this.rewardExchangeText="Reward Exchange",this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}",this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}",i(this)}disconnectedCallback(){}async renderCell(t,s){return e("sqm-rewards-table-source-cell",{reward:t,anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText,locale:s})}async renderLabel(){return this.columnTitle}render(){return w([this.deletedUser,this.anonymousUser,this.columnTitle,this.rewardExchangeText,this.referralText,this.rewardSourceText]),e(s,{style:{display:"none"}})}},F=g({Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",paddingLeft:"10px",whiteSpace:"pre-line"}},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",background:"var(--sl-color-blue-600)"}},Date:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}}),z=F.toString(),G=class{constructor(e){t(this,e),this.expiryText="Expires",this.locale="en",this.pendingUsTax="W-9 required",this.pendingScheduled="Until",this.pendingUnhandled="Fulfillment error"}rewardStatus(e){if(e.dateCancelled)return"CANCELLED";if(e.statuses&&e.statuses.includes("EXPIRED"))return"EXPIRED";if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if("CREDIT"===e.type)return e.statuses.includes("REDEEMED")?"REDEEMED":"AVAILABLE";if("PCT_DISCOUNT"===e.type&&e.statuses.includes("AVAILABLE"))return"AVAILABLE";if("INTEGRATION"===e.type||"FUELTANK"===e.type){if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if(e.statuses&&e.statuses.includes("CANCELLED"))return"CANCELLED";if(e.statuses.includes("AVAILABLE"))return"AVAILABLE"}return""}render(){var t;o.locale=this.locale;const s=this.rewardStatus(this.reward),a=o.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:s}),r="AVAILABLE"===s?"success":"REDEEMED"===s?"primary":"PENDING"===s?"warning":"danger",l=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"",i=l&&`${"AVAILABLE"===s&&this.reward.dateExpires?this.expiryText+" ":""}${null===(t=b.DateTime.fromMillis(l))||void 0===t?void 0:t.setLocale(A(A(this.locale))).toLocaleString(b.DateTime.DATE_MED)}`,n="PENDING"===s?function(e){var t;const s={US_TAX:e.pendingUsTax,SCHEDULED:e.reward.dateScheduledFor&&e.pendingScheduled+" "+(null===(t=b.DateTime.fromMillis(e.reward.dateScheduledFor))||void 0===t?void 0:t.setLocale(A(A(e.locale||"en"))).toLocaleString(b.DateTime.DATE_MED)),UNHANDLED_ERROR:e.pendingUnhandled};return[e.reward.pendingReasons].map((e=>{var t;return null!==(t=s[e])&&void 0!==t?t:e})).join(", ")}(this):null;return e("div",{style:{display:"contents"}},e("style",{type:"text/css"},z),e("sl-badge",{type:r,pill:!0,class:"REDEEMED"===s?F.classes.RedeemBadge:F.classes.Badge},a),e("p",{class:F.classes.Date},n||i))}},j=class{constructor(e){t(this,e),this.columnTitle="Status",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",this.expiryText="Expires on ",this.pendingUsTax="W-9 required",this.pendingScheduled="Until",this.pendingUnhandled="Fulfillment error",i(this)}disconnectedCallback(){}async renderCell(t,s){return e("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:t,expiryText:this.expiryText,pendingScheduled:this.pendingScheduled,pendingUsTax:this.pendingUsTax,pendingUnhandled:this.pendingUnhandled,locale:s})}async renderLabel(){return this.columnTitle}render(){return w([this.columnTitle,this.statusText,this.expiryText,this.pendingScheduled,this.pendingUsTax,this.pendingUnhandled]),e(s,{style:{display:"none"}})}};export{_ as sqm_rewards_table,S as sqm_rewards_table_date_cell,P as sqm_rewards_table_date_column,U as sqm_rewards_table_reward_cell,$ as sqm_rewards_table_reward_column,M as sqm_rewards_table_source_cell,B as sqm_rewards_table_source_column,G as sqm_rewards_table_status_cell,j as sqm_rewards_table_status_column}
@@ -1 +1 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-34a64c60.system.js","./p-593ef76e.system.js","./p-867ba20a.system.js","./p-e4a5687e.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-6df5ec12.system.js"],(function(t){"use strict";var e,s,n,i,r;return{setters:[function(t){e=t.r;s=t.h},function(t){n=t.m},function(){},function(){},function(){},function(){},function(t){i=t.g},function(t){r=t.P}],execute:function(){var o=t("sqm_portal_footer",function(){function t(t){e(this,t);this.ignored=true;this.supportEmail="support@example.com";this.supportText="For program support, contact {email}";this.hidePoweredBy=false;this.poweredByLink="https://saasquatch.com";this.paddingTop="large";this.paddingRight="large";this.paddingBottom="large";this.paddingLeft="large";n(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return s(r,Object.assign({},i(this)))};Object.defineProperty(t,"assetsDirs",{get:function(){return["../../assets"]},enumerable:false,configurable:true});return t}())}}}));
1
+ System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-589ec33b.system.js","./p-1f54fd38.system.js","./p-9732cfef.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-afe80d73.system.js"],(function(t){"use strict";var e,s,n,i,r;return{setters:[function(t){e=t.r;s=t.h},function(t){n=t.m},function(){},function(){},function(){},function(){},function(t){i=t.g},function(t){r=t.P}],execute:function(){var o=t("sqm_portal_footer",function(){function t(t){e(this,t);this.ignored=true;this.supportEmail="support@example.com";this.supportText="For program support, contact {email}";this.hidePoweredBy=false;this.poweredByLink="https://saasquatch.com";this.paddingTop="large";this.paddingRight="large";this.paddingBottom="large";this.paddingLeft="large";n(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return s(r,Object.assign({},i(this)))};Object.defineProperty(t,"assetsDirs",{get:function(){return["../../assets"]},enumerable:false,configurable:true});return t}())}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?n(t.value):o(t.value).then(u,a)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(e){return c([t,e])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;o=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1];i=u;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(u);break}if(i[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-34a64c60.system.js","./p-867ba20a.system.js","./p-e4a5687e.system.js","./p-66247b60.system.js"],(function(t){"use strict";var e,n,r,o,i;return{setters:[function(t){e=t.r;n=t.h;r=t.c},function(t){o=t.m},function(){},function(){},function(t){i=t.a}],execute:function(){var u=t("sqm_rewards_table_customer_note_column",function(){function t(t){e(this,t);this.columnTitle="Note";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.renderCell=function(t,e){return __awaiter(this,void 0,void 0,(function(){var r,o;return __generator(this,(function(i){o=t;return[2,n("sqm-rewards-table-customer-note-cell",{note:(r=o===null||o===void 0?void 0:o.meta)===null||r===void 0?void 0:r.message,locale:e})]}))}))};t.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.columnTitle]}))}))};t.prototype.render=function(){i([this.columnTitle]);return n(r,{style:{display:"none"}})};return t}())}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,r){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r["throw"](t))}catch(t){i(t)}}function a(t){t.done?n(t.value):o(t.value).then(u,c)}a((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(t){return function(e){return a([t,e])}}function a(u){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;o=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1];i=u;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(u);break}if(i[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-1f54fd38.system.js","./p-9732cfef.system.js","./p-c7090fd1.system.js"],(function(t){"use strict";var e,n,r,o,i;return{setters:[function(t){e=t.r;n=t.h;r=t.c},function(t){o=t.m},function(){},function(){},function(t){i=t.a}],execute:function(){var u=t("sqm_rewards_table_customer_note_column",function(){function t(t){e(this,t);this.columnTitle="Note";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.renderCell=function(t,e){return __awaiter(this,void 0,void 0,(function(){var r,o;return __generator(this,(function(i){o=t;return[2,n("sqm-rewards-table-customer-note-cell",{note:(r=o===null||o===void 0?void 0:o.meta)===null||r===void 0?void 0:r.message,locale:e})]}))}))};t.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.columnTitle]}))}))};t.prototype.render=function(){i([this.columnTitle]);return n(r,{style:{display:"none"}})};return t}())}}}));
@@ -1 +1 @@
1
- import{r as s,h as t}from"./p-64c3217a.js";import{m as o,i as r,u as c}from"./p-4e3bba58.js";import"./p-4619685f.js";import{l as n,O as a}from"./p-e4fc7952.js";import{N as i}from"./p-1555c1e9.js";const e=class{constructor(t){s(this,t),this.ignored=!0,o(this)}disconnectedCallback(){}render(){const s=function(){const s=n(),t=a(),[o,i]=r(!1);return c((()=>{i(!1)}),[s.pathname,t]),{checked:o,onClick:function(s){i(s.target.checked)}}}();return t(i,Object.assign({},s),t("slot",null))}};export{e as sqm_navigation_sidebar}
1
+ import{r as s,h as t}from"./p-64c3217a.js";import{m as o,i as r,u as c}from"./p-ed801cb7.js";import"./p-f66b4b3a.js";import{l as n,O as a}from"./p-93832713.js";import{N as i}from"./p-4c86095b.js";const e=class{constructor(t){s(this,t),this.ignored=!0,o(this)}disconnectedCallback(){}render(){const s=function(){const s=n(),t=a(),[o,i]=r(!1);return c((()=>{i(!1)}),[s.pathname,t]),{checked:o,onClick:function(s){i(s.target.checked)}}}();return t(i,Object.assign({},s),t("slot",null))}};export{e as sqm_navigation_sidebar}
@@ -1 +1 @@
1
- import{h as s,c as r,r as t}from"./p-64c3217a.js";import{m as o}from"./p-4e3bba58.js";import"./p-4619685f.js";import"./p-e4fc7952.js";import{a}from"./p-a37d0529.js";const p=({},t)=>s(r,null,t),c=class{constructor(s){t(this,s),o(this)}disconnectedCallback(){}render(){return a([this.header]),s(p,null,s("slot",null))}};export{c as sqm_tab}
1
+ import{h as s,c as r,r as t}from"./p-64c3217a.js";import{m as o}from"./p-ed801cb7.js";import"./p-f66b4b3a.js";import"./p-93832713.js";import{a}from"./p-d1a74f7e.js";const p=({},t)=>s(r,null,t),c=class{constructor(s){t(this,s),o(this)}disconnectedCallback(){}render(){return a([this.header]),s(p,null,s("slot",null))}};export{c as sqm_tab}
@@ -0,0 +1 @@
1
+ import{r as s,h as t}from"./p-64c3217a.js";import{m as o}from"./p-ed801cb7.js";import"./p-cef45012.js";import{T as r}from"./p-5d9244de.js";const e=class{constructor(t){s(this,t),this.ignored=!0,o(this)}disconnectedCallback(){}componentWillLoad(){}render(){return t(r,{type:this.type},this.text)}};export{e as sqm_text_span}
@@ -1 +1 @@
1
- System.register(["./p-ff17b3a4.system.js","./p-34a64c60.system.js","./p-1a673057.system.js","./p-10122db1.system.js"],(function(t){"use strict";var n,e,s,o;return{setters:[function(t){n=t.r;e=t.h},function(t){s=t.m},function(){},function(t){o=t.T}],execute:function(){var i=t("sqm_text_span",function(){function t(t){n(this,t);this.ignored=true;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.componentWillLoad=function(){};t.prototype.render=function(){return e(o,{type:this.type},this.text)};return t}())}}}));
1
+ System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-1a673057.system.js","./p-45374f45.system.js"],(function(t){"use strict";var n,e,s,o;return{setters:[function(t){n=t.r;e=t.h},function(t){s=t.m},function(){},function(t){o=t.T}],execute:function(){var i=t("sqm_text_span",function(){function t(t){n(this,t);this.ignored=true;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.componentWillLoad=function(){};t.prototype.render=function(){return e(o,{type:this.type},this.text)};return t}())}}}));