@saasquatch/mint-components 1.15.0-8 → 1.15.0-81

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 (917) hide show
  1. package/dist/cjs/{GenericTableView-f0e9c531.js → GenericTableView-a9845e80.js} +6 -6
  2. package/dist/cjs/IndirectTaxDetailsView-b3b7bb6e.js +646 -0
  3. package/dist/cjs/{ShadowViewAddon-afc40c22.js → ShadowViewAddon-9bf35bfe.js} +1570 -1398
  4. package/dist/cjs/{copy-text-view-9d4259f4.js → copy-text-view-e5223a96.js} +19 -8
  5. package/dist/cjs/data-d4339c2e.js +137 -0
  6. package/dist/cjs/{stencil-hooks.module-3a336b0f.js → dom-context-hooks.module-7fa676ae.js} +18 -18
  7. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-ace50780.js} +5 -3
  8. package/dist/cjs/{global-124aec2c.js → global-16279e95.js} +12152 -11932
  9. package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
  10. package/dist/cjs/{index.module-ee84433d.js → index.module-4f54e412.js} +191 -191
  11. package/dist/cjs/loader.cjs.js +5 -5
  12. package/dist/cjs/{luxon-2926d85f.js → luxon-949beaf2.js} +2 -2
  13. package/dist/cjs/mint-components.cjs.js +5 -5
  14. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  15. package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-df37c8a3.js} +2 -2
  16. package/dist/cjs/parseStates-d1effc19.js +16 -0
  17. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  18. package/dist/cjs/{re-render-b324deab.js → re-render-d516138a.js} +4 -4
  19. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +871 -2415
  20. package/dist/cjs/{sqm-base-registration-form-view-1b2440c3.js → sqm-base-registration-form-view-8847804c.js} +3 -3
  21. package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_43.cjs.entry.js} +1141 -301
  22. package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-5e85ac51.js} +2 -2
  23. package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
  24. package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
  25. package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
  26. package/dist/cjs/sqm-email-verification.cjs.entry.js +152 -28
  27. package/dist/cjs/sqm-empty_4.cjs.entry.js +57 -63
  28. package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
  29. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
  30. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
  31. package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
  32. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
  33. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  34. package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +10 -0
  35. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +6 -6
  36. package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
  37. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
  38. package/dist/cjs/sqm-navigation-sidebar-item-view-ec7a5c53.js +56 -0
  39. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +31 -8
  40. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-de90ef03.js} +18 -8
  41. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +25 -9
  42. package/dist/cjs/sqm-pagination_3.cjs.entry.js +97 -70
  43. package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
  44. package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
  45. package/dist/cjs/{sqm-portal-container-view-4f15143a.js → sqm-portal-container-view-07e4343f.js} +2 -2
  46. package/dist/cjs/{sqm-portal-email-verification-view-f5ce25cc.js → sqm-portal-email-verification-view-e2590f1b.js} +4 -4
  47. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
  48. package/dist/cjs/{sqm-portal-forgot-password-view-b986086e.js → sqm-portal-forgot-password-view-0a8d3243.js} +24 -16
  49. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +39 -10
  50. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
  51. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
  52. package/dist/cjs/{sqm-portal-login-view-84e99287.js → sqm-portal-login-view-bb50304c.js} +4 -4
  53. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  54. package/dist/cjs/{sqm-portal-profile-view-07d13061.js → sqm-portal-profile-view-5310d41a.js} +4 -4
  55. package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
  56. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  57. package/dist/cjs/{sqm-portal-registration-form-view-4377d849.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
  58. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
  59. package/dist/cjs/{sqm-portal-reset-password-view-52fc50fe.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
  60. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
  61. package/dist/cjs/{sqm-portal-verify-email-view-4f837226.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
  62. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
  63. package/dist/cjs/{sqm-qr-code-view-3da9ed28.js → sqm-qr-code-view-0c3b2f48.js} +9 -4
  64. package/dist/cjs/sqm-qr-code.cjs.entry.js +12 -13
  65. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +133 -44
  66. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
  67. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
  68. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +82 -35
  69. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  70. package/dist/cjs/sqm-scroll.cjs.entry.js +3 -3
  71. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13753 -12462
  72. package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
  73. package/dist/cjs/sqm-tabs.cjs.entry.js +27 -13
  74. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1255 -0
  75. package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
  76. package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
  77. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
  78. package/dist/cjs/sqm-widget-verification.cjs.entry.js +24 -13
  79. package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
  80. package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
  81. package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-3b34dab1.js} +13 -10
  82. package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-6aa864ef.js} +4 -4
  83. package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
  84. package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
  85. package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
  86. package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
  87. package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
  88. package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
  89. package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
  90. package/dist/cjs/utils-d5821f8d.js +105 -0
  91. package/dist/collection/collection-manifest.json +1 -1
  92. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  93. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -7
  94. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +169 -4
  95. package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -8
  96. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +14 -5
  97. package/dist/collection/components/sqm-brand/sqm-brand.js +12 -4
  98. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
  99. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
  100. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  101. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +169 -1
  102. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
  103. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  104. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +60 -3
  105. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  106. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
  107. package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
  108. package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
  109. package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
  110. package/dist/collection/components/sqm-hero/sqm-hero-view.js +13 -6
  111. package/dist/collection/components/sqm-hero/sqm-hero.js +30 -5
  112. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +2 -2
  113. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
  114. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -3
  115. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
  116. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
  117. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
  118. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
  119. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
  120. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +6 -3
  121. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
  122. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +10 -4
  123. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +202 -61
  124. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
  125. package/dist/collection/components/sqm-link-button/sqm-link-button.js +1 -0
  126. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +2 -1
  127. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
  128. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -0
  129. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +17 -7
  130. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
  131. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
  132. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  133. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  134. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  135. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -2
  136. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
  137. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -4
  138. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
  139. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  140. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -8
  141. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
  142. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
  143. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
  144. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
  145. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
  146. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  147. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +102 -2
  148. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  149. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
  150. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
  151. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  152. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  153. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
  154. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
  155. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +5 -3
  156. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +4 -4
  157. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -1
  158. package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
  159. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +34 -31
  160. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +80 -11
  161. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
  162. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +169 -1
  163. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
  164. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
  165. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
  166. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  167. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +55 -18
  168. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
  169. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
  170. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
  171. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
  172. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
  173. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
  174. package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
  175. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +3 -2
  176. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -10
  177. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
  178. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +31 -5
  179. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
  180. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +39 -42
  181. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +44 -3
  182. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +3 -3
  183. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -3
  184. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
  185. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +57 -8
  186. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
  187. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
  188. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
  189. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -2
  190. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +5 -3
  191. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
  192. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -2
  193. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  194. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  195. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
  196. package/dist/collection/components/sqm-share-button/sqm-share-button.js +56 -10
  197. package/dist/collection/components/sqm-share-code/sqm-share-code.js +6 -5
  198. package/dist/collection/components/sqm-share-link/sqm-share-link.js +10 -5
  199. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +21 -9
  200. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
  201. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
  202. package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
  203. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +81 -99
  204. package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
  205. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  206. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +16 -2
  207. package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
  208. package/dist/collection/components/sqm-task-card/DetailsView.js +7 -1
  209. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
  210. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +18 -20
  211. package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -8
  212. package/dist/collection/components/sqm-task-card/useTaskCard.js +1 -1
  213. package/dist/collection/components/sqm-text/Text.stories.js +12 -0
  214. package/dist/collection/components/sqm-text/sqm-text.js +100 -49
  215. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  216. package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
  217. package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
  218. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
  219. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
  220. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
  221. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
  222. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  223. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +138 -14
  224. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
  225. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -8
  226. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
  227. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +30 -9
  228. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
  229. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +54 -58
  230. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +108 -5
  231. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -1
  232. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +3 -3
  233. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +59 -61
  234. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +82 -4
  235. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -2
  236. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +55 -62
  237. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  238. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  239. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +24 -27
  240. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  241. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  242. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +18 -48
  243. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +1 -0
  244. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  245. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
  246. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +284 -30
  247. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  248. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +96 -92
  249. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +19 -4
  250. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  251. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
  252. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
  253. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +166 -52
  254. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  255. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  256. package/dist/collection/components/views/copy-text-view.js +17 -6
  257. package/dist/collection/components/views/email-registration-view.js +3 -1
  258. package/dist/collection/global/global.js +27 -12
  259. package/dist/collection/global/mixins.js +6 -6
  260. package/dist/collection/global/styles.js +307 -134
  261. package/dist/collection/global/styles.ts +396 -135
  262. package/dist/collection/insertfont.js +18 -0
  263. package/dist/collection/stories/PortalTemplates.stories.js +22 -30
  264. package/dist/collection/tables/GenericTableView.js +4 -4
  265. package/dist/collection/utils/parseStates.js +12 -0
  266. package/dist/collection/utils/utils.js +4 -0
  267. package/dist/esm/{GenericTableView-e7addb2b.js → GenericTableView-e43d310f.js} +6 -6
  268. package/dist/esm/IndirectTaxDetailsView-451cf5e2.js +639 -0
  269. package/dist/esm/{ShadowViewAddon-bdedf635.js → ShadowViewAddon-3c2957fe.js} +1569 -1396
  270. package/dist/esm/{copy-text-view-ca98ab38.js → copy-text-view-8d1713d7.js} +19 -8
  271. package/dist/esm/data-ee3ae298.js +121 -0
  272. package/dist/esm/{stencil-hooks.module-4bc38af4.js → dom-context-hooks.module-63370afd.js} +13 -13
  273. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-1f587f8b.js} +5 -3
  274. package/dist/esm/{global-6dc825bc.js → global-2f3b2adb.js} +11849 -11630
  275. package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
  276. package/dist/esm/{index.module-89a79f66.js → index.module-38dad6c9.js} +153 -153
  277. package/dist/esm/loader.js +5 -5
  278. package/dist/esm/{luxon-8d51c92b.js → luxon-bbf75a9d.js} +1 -1
  279. package/dist/esm/mint-components.js +5 -5
  280. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  281. package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +2 -2
  282. package/dist/esm/parseStates-ed75e224.js +14 -0
  283. package/dist/esm/raisins-plop-target.entry.js +1 -1
  284. package/dist/esm/{re-render-cc945f38.js → re-render-9c90767d.js} +2 -2
  285. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +720 -2257
  286. package/dist/esm/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +3 -3
  287. package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_43.entry.js} +1053 -215
  288. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
  289. package/dist/esm/sqm-close-button.entry.js +5 -5
  290. package/dist/esm/sqm-code-verification.entry.js +348 -0
  291. package/dist/esm/sqm-context-router.entry.js +4 -4
  292. package/dist/esm/sqm-email-verification.entry.js +145 -21
  293. package/dist/esm/sqm-empty_4.entry.js +54 -60
  294. package/dist/esm/sqm-form-message.entry.js +7 -7
  295. package/dist/esm/sqm-google-sign-in.entry.js +3 -3
  296. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  297. package/dist/esm/sqm-header-logo.entry.js +2 -2
  298. package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
  299. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  300. package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
  301. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  302. package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  303. package/dist/esm/sqm-logout-current-user.entry.js +5 -5
  304. package/dist/esm/sqm-navigation-sidebar-item-view-797601b0.js +54 -0
  305. package/dist/esm/sqm-navigation-sidebar-item.entry.js +30 -7
  306. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-0a2ec560.js} +18 -8
  307. package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
  308. package/dist/esm/sqm-pagination_3.entry.js +91 -64
  309. package/dist/esm/sqm-password-field.entry.js +6 -6
  310. package/dist/esm/sqm-popup-container.entry.js +4 -4
  311. package/dist/esm/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
  312. package/dist/esm/{sqm-portal-email-verification-view-d96d6c43.js → sqm-portal-email-verification-view-e68275d7.js} +4 -4
  313. package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
  314. package/dist/esm/{sqm-portal-forgot-password-view-50444a7c.js → sqm-portal-forgot-password-view-0e795cdd.js} +24 -16
  315. package/dist/esm/sqm-portal-forgot-password.entry.js +36 -7
  316. package/dist/esm/sqm-portal-google-login.entry.js +8 -8
  317. package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
  318. package/dist/esm/{sqm-portal-login-view-37c85d04.js → sqm-portal-login-view-7670cd86.js} +4 -4
  319. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  320. package/dist/esm/{sqm-portal-profile-view-4ce1c7c3.js → sqm-portal-profile-view-fe781f47.js} +4 -4
  321. package/dist/esm/sqm-portal-profile.entry.js +8 -8
  322. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  323. package/dist/esm/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
  324. package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
  325. package/dist/esm/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
  326. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  327. package/dist/esm/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +3 -3
  328. package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
  329. package/dist/esm/{sqm-qr-code-view-10b8b4cb.js → sqm-qr-code-view-97124a66.js} +8 -3
  330. package/dist/esm/sqm-qr-code.entry.js +6 -7
  331. package/dist/esm/sqm-referral-table_11.entry.js +122 -33
  332. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  333. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  334. package/dist/esm/sqm-rewards-table_9.entry.js +70 -23
  335. package/dist/esm/sqm-route.entry.js +1 -1
  336. package/dist/esm/sqm-scroll.entry.js +2 -2
  337. package/dist/esm/sqm-stencilbook.entry.js +13578 -12287
  338. package/dist/esm/sqm-tab.entry.js +4 -4
  339. package/dist/esm/sqm-tabs.entry.js +24 -10
  340. package/dist/esm/sqm-tax-and-cash.entry.js +1251 -0
  341. package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
  342. package/dist/esm/sqm-text-span.entry.js +6 -6
  343. package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
  344. package/dist/esm/sqm-widget-verification.entry.js +21 -10
  345. package/dist/esm/{useChildElements-7945ae56.js → useChildElements-4e70ac0e.js} +2 -2
  346. package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-0f04459e.js} +3 -3
  347. package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-7eeec61b.js} +10 -7
  348. package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-d0720c81.js} +3 -3
  349. package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-afc0171e.js} +3 -3
  350. package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-311e6d72.js} +2 -2
  351. package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-65a01a6a.js} +5 -5
  352. package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-18c2cea7.js} +2 -2
  353. package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-f9413de9.js} +2 -2
  354. package/dist/esm/{utilities-5b0ca040.js → utilities-ad9c2893.js} +2 -2
  355. package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
  356. package/dist/esm/utils-c416c7e4.js +97 -0
  357. package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
  358. package/dist/esm-es5/IndirectTaxDetailsView-451cf5e2.js +1 -0
  359. package/dist/esm-es5/ShadowViewAddon-3c2957fe.js +1 -0
  360. package/dist/esm-es5/copy-text-view-8d1713d7.js +1 -0
  361. package/dist/esm-es5/data-ee3ae298.js +1 -0
  362. package/dist/esm-es5/dom-context-hooks.module-63370afd.js +53 -0
  363. package/dist/esm-es5/email-registration-view-1f587f8b.js +1 -0
  364. package/dist/esm-es5/{global-6dc825bc.js → global-2f3b2adb.js} +5 -5
  365. package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
  366. package/dist/esm-es5/index.module-38dad6c9.js +1 -0
  367. package/dist/esm-es5/loader.js +1 -1
  368. package/dist/esm-es5/luxon-bbf75a9d.js +1 -0
  369. package/dist/esm-es5/mint-components.js +1 -1
  370. package/dist/esm-es5/mixins-f750863a.js +1 -0
  371. package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +1 -1
  372. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  373. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  374. package/dist/esm-es5/re-render-9c90767d.js +1 -0
  375. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  376. package/dist/esm-es5/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +1 -1
  377. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -0
  378. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
  379. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  380. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  381. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  382. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  383. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  384. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  385. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  386. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  387. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  388. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  389. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  390. package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
  391. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  392. package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  393. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  394. package/dist/esm-es5/sqm-navigation-sidebar-item-view-797601b0.js +1 -0
  395. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  396. package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +1 -0
  397. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  398. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  399. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  400. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  401. package/dist/esm-es5/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
  402. package/dist/esm-es5/{sqm-portal-email-verification-view-d96d6c43.js → sqm-portal-email-verification-view-e68275d7.js} +1 -1
  403. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  404. package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +1 -0
  405. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  406. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  407. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  408. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
  409. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  410. package/dist/esm-es5/{sqm-portal-profile-view-4ce1c7c3.js → sqm-portal-profile-view-fe781f47.js} +1 -1
  411. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  412. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  413. package/dist/esm-es5/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
  414. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  415. package/dist/esm-es5/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
  416. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  417. package/dist/esm-es5/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +1 -1
  418. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  419. package/dist/esm-es5/sqm-qr-code-view-97124a66.js +1 -0
  420. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  421. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  422. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  423. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  424. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  425. package/dist/esm-es5/sqm-route.entry.js +1 -1
  426. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  427. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  428. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  429. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  430. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  431. package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +1 -0
  432. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  433. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  434. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  435. package/dist/esm-es5/useChildElements-4e70ac0e.js +1 -0
  436. package/dist/esm-es5/useInstantAccessRegistration-0f04459e.js +1 -0
  437. package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-7eeec61b.js} +2 -2
  438. package/dist/esm-es5/usePortalLogin-d0720c81.js +1 -0
  439. package/dist/esm-es5/usePortalRegistrationForm-afc0171e.js +1 -0
  440. package/dist/esm-es5/useReferralCodes-311e6d72.js +1 -0
  441. package/dist/esm-es5/useReferralTable-65a01a6a.js +1 -0
  442. package/dist/esm-es5/useRegistrationFormState-18c2cea7.js +1 -0
  443. package/dist/esm-es5/useVerificationEmail-f9413de9.js +1 -0
  444. package/dist/esm-es5/utilities-ad9c2893.js +1 -0
  445. package/dist/esm-es5/utils-03188de2.js +1 -0
  446. package/dist/esm-es5/utils-c416c7e4.js +1 -0
  447. package/dist/mint-components/global/styles.ts +396 -135
  448. package/dist/mint-components/mint-components.esm.js +1 -1
  449. package/dist/mint-components/mint-components.js +1 -1
  450. package/dist/mint-components/p-000c91b1.js +1 -0
  451. package/dist/mint-components/{p-9b6a0152.system.entry.js → p-002e6205.system.entry.js} +1 -1
  452. package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
  453. package/dist/mint-components/{p-e145e4f8.js → p-07dc6d68.js} +1 -1
  454. package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
  455. package/dist/mint-components/p-0935f9b7.system.js +1 -0
  456. package/dist/mint-components/{p-284e4ed5.entry.js → p-0b0f49ad.entry.js} +1 -1
  457. package/dist/mint-components/p-0bb21f5b.system.entry.js +1 -0
  458. package/dist/mint-components/{p-164a9103.system.entry.js → p-0cba75e6.system.entry.js} +1 -1
  459. package/dist/mint-components/{p-36ffebd8.system.entry.js → p-0d22c0e5.system.entry.js} +1 -1
  460. package/dist/mint-components/p-0e532b53.entry.js +1 -0
  461. package/dist/mint-components/{p-480e08e9.js → p-0e59a91e.js} +2 -2
  462. package/dist/mint-components/p-0ea61502.system.js +1 -0
  463. package/dist/mint-components/p-100c878b.system.entry.js +1 -0
  464. package/dist/mint-components/p-115dfc03.system.js +1 -0
  465. package/dist/mint-components/p-1337f47c.entry.js +1 -0
  466. package/dist/mint-components/p-1363c4ab.system.js +1 -0
  467. package/dist/mint-components/p-13f3a647.js +1 -0
  468. package/dist/mint-components/p-14128c84.system.entry.js +1 -0
  469. package/dist/mint-components/{p-7c2b9fe4.system.js → p-15012f59.system.js} +1 -1
  470. package/dist/mint-components/p-153a122d.system.js +1 -0
  471. package/dist/mint-components/p-15bfd7e2.system.js +1 -0
  472. package/dist/mint-components/p-1a278658.entry.js +1 -0
  473. package/dist/mint-components/{p-dbc0e4f8.system.js → p-1c1f4ce7.system.js} +1 -1
  474. package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
  475. package/dist/mint-components/p-204861a6.js +1 -0
  476. package/dist/mint-components/p-209ea185.js +1 -0
  477. package/dist/mint-components/p-21fab6ef.system.js +1 -0
  478. package/dist/mint-components/{p-3af1ec4c.entry.js → p-22c11f0e.entry.js} +1 -1
  479. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-22d20816.system.entry.js} +1 -1
  480. package/dist/mint-components/p-2403c6e1.system.js +1 -0
  481. package/dist/mint-components/p-240bec23.js +1 -0
  482. package/dist/mint-components/{p-4b6f2eca.system.entry.js → p-258f4e5e.system.entry.js} +1 -1
  483. package/dist/mint-components/p-2a8e2f28.system.js +1 -0
  484. package/dist/mint-components/p-2c310c7d.entry.js +1 -0
  485. package/dist/mint-components/p-3055141d.entry.js +11 -0
  486. package/dist/mint-components/p-33703509.system.entry.js +1 -0
  487. package/dist/mint-components/p-35a2332d.js +448 -0
  488. package/dist/mint-components/p-36b1414b.system.js +1 -0
  489. package/dist/mint-components/{p-c0f19490.js → p-3787a4d6.js} +1 -1
  490. package/dist/mint-components/p-3cb249c3.js +1 -0
  491. package/dist/mint-components/p-3d1b91a1.system.entry.js +1 -0
  492. package/dist/mint-components/p-3d99fa43.entry.js +1 -0
  493. package/dist/mint-components/{p-13ed8586.system.js → p-3dc34570.system.js} +1 -1
  494. package/dist/mint-components/{p-20245645.js → p-3eba9036.js} +1 -1
  495. package/dist/mint-components/p-404daf1c.entry.js +144 -0
  496. package/dist/mint-components/p-40c01a5a.system.js +1 -0
  497. package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
  498. package/dist/mint-components/{p-f4a72903.system.entry.js → p-4271f436.system.entry.js} +1 -1
  499. package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
  500. package/dist/mint-components/p-42da8239.system.js +1 -0
  501. package/dist/mint-components/{p-726a9924.js → p-460155de.js} +1 -1
  502. package/dist/mint-components/{p-301ddcaa.system.entry.js → p-485e2d9f.system.entry.js} +1 -1
  503. package/dist/mint-components/p-49b20dae.js +1 -0
  504. package/dist/mint-components/p-49e92a7c.js +1233 -0
  505. package/dist/mint-components/{p-6d2f5a1d.js → p-4d19270b.js} +2 -2
  506. package/dist/mint-components/p-4d741ccd.js +1 -0
  507. package/dist/mint-components/p-4eee6c40.entry.js +93 -0
  508. package/dist/mint-components/p-4f5329a2.system.js +53 -0
  509. package/dist/mint-components/{p-cf8677ea.js → p-577a4c97.js} +1 -1
  510. package/dist/mint-components/{p-59274a91.system.js → p-578a27c8.system.js} +1 -1
  511. package/dist/mint-components/p-5800e049.entry.js +1 -0
  512. package/dist/mint-components/p-587115cb.system.entry.js +1 -0
  513. package/dist/mint-components/p-59b028db.system.js +1 -0
  514. package/dist/mint-components/p-5ccee28f.system.entry.js +1 -0
  515. package/dist/mint-components/{p-e8ffcc68.entry.js → p-5e0af707.entry.js} +2 -2
  516. package/dist/mint-components/{p-4e526a94.js → p-5ed49bf2.js} +1 -1
  517. package/dist/mint-components/p-5fca2bd3.system.entry.js +1 -0
  518. package/dist/mint-components/p-5ff2da11.js +1 -0
  519. package/dist/mint-components/p-621575fa.system.entry.js +1 -0
  520. package/dist/mint-components/p-63e29387.js +42 -0
  521. package/dist/mint-components/{p-ad985d37.system.entry.js → p-64457acd.system.entry.js} +1 -1
  522. package/dist/mint-components/{p-71d7c2a0.system.js → p-64997b59.system.js} +1 -1
  523. package/dist/mint-components/p-64d7775b.entry.js +9 -0
  524. package/dist/mint-components/{p-b5fb3826.system.js → p-6578ea31.system.js} +1 -1
  525. package/dist/mint-components/p-672d144e.entry.js +1 -0
  526. package/dist/mint-components/p-67ad2252.system.js +1 -0
  527. package/dist/mint-components/{p-dc52c36a.js → p-68043f30.js} +1 -1
  528. package/dist/mint-components/p-692bacf3.js +1 -0
  529. package/dist/mint-components/{p-9ec99ced.js → p-6951663b.js} +1 -1
  530. package/dist/mint-components/p-69d64372.system.entry.js +1 -0
  531. package/dist/mint-components/p-6ad674c2.js +103 -0
  532. package/dist/mint-components/p-6b076bae.system.entry.js +1 -0
  533. package/dist/mint-components/p-6e069052.entry.js +1 -0
  534. package/dist/mint-components/{p-b7d1469d.system.entry.js → p-7059ee40.system.entry.js} +1 -1
  535. package/dist/mint-components/{p-2ae0e06a.entry.js → p-711bc624.entry.js} +1 -1
  536. package/dist/mint-components/p-71271fbd.system.js +1 -0
  537. package/dist/mint-components/{p-6d9e52c7.system.js → p-7159c51c.system.js} +1 -1
  538. package/dist/mint-components/p-7752408c.js +1 -0
  539. package/dist/mint-components/p-7970e73a.js +1 -0
  540. package/dist/mint-components/{p-fa37513e.system.entry.js → p-7af4fba0.system.entry.js} +1 -1
  541. package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
  542. package/dist/mint-components/{p-527216de.system.js → p-82505f6e.system.js} +1 -1
  543. package/dist/mint-components/{p-95ae4ab9.system.js → p-82560b78.system.js} +1 -1
  544. package/dist/mint-components/{p-3f7b81b8.js → p-862845d7.js} +2 -2
  545. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  546. package/dist/mint-components/p-8bcdb9a4.entry.js +13 -0
  547. package/dist/mint-components/p-8caef004.js +1 -0
  548. package/dist/mint-components/{p-aaff68dc.entry.js → p-8dc1cd0f.entry.js} +1 -1
  549. package/dist/mint-components/{p-8413ade9.system.js → p-8e28333b.system.js} +1 -1
  550. package/dist/mint-components/p-8e2bead4.js +1 -0
  551. package/dist/mint-components/p-9049b387.entry.js +1 -0
  552. package/dist/mint-components/{p-2d52e2d7.system.js → p-91014439.system.js} +1 -1
  553. package/dist/mint-components/{p-18425f38.system.entry.js → p-910f56ca.system.entry.js} +1 -1
  554. package/dist/mint-components/p-9374b5bb.system.entry.js +1 -0
  555. package/dist/mint-components/{p-ccf8c9aa.entry.js → p-94f9fbf7.entry.js} +1 -1
  556. package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
  557. package/dist/mint-components/{p-87c21535.entry.js → p-9aadc253.entry.js} +1 -1
  558. package/dist/mint-components/{p-619c2aa3.entry.js → p-9c2d515d.entry.js} +2 -2
  559. package/dist/mint-components/p-9e00773c.entry.js +258 -0
  560. package/dist/mint-components/p-9e297104.entry.js +1 -0
  561. package/dist/mint-components/p-9f82e69d.entry.js +1 -0
  562. package/dist/mint-components/{p-5488fdd9.system.js → p-9fb8b33a.system.js} +1 -1
  563. package/dist/mint-components/{p-8175e85f.system.js → p-a148663a.system.js} +1 -1
  564. package/dist/mint-components/{p-ac9f4085.system.entry.js → p-a2533860.system.entry.js} +1 -1
  565. package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
  566. package/dist/mint-components/p-a5c9ce6c.entry.js +1 -0
  567. package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
  568. package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
  569. package/dist/mint-components/p-abd33116.system.entry.js +1 -0
  570. package/dist/mint-components/{p-abefb7cc.js → p-ac11e10a.js} +1 -1
  571. package/dist/mint-components/{p-8362cb4c.system.entry.js → p-ac2fdad8.system.entry.js} +1 -1
  572. package/dist/mint-components/p-b065215a.entry.js +1 -0
  573. package/dist/mint-components/{p-d6831af5.js → p-b22b7891.js} +1 -1
  574. package/dist/mint-components/{p-a37541ae.system.entry.js → p-b3112c88.system.entry.js} +1 -1
  575. package/dist/mint-components/{p-345fd28e.system.entry.js → p-b3da317b.system.entry.js} +1 -1
  576. package/dist/mint-components/{p-571e1427.system.js → p-b6911812.system.js} +1 -1
  577. package/dist/mint-components/p-b710c7e0.js +1 -0
  578. package/dist/mint-components/p-b86f944c.entry.js +25 -0
  579. package/dist/mint-components/p-b8fed018.system.js +1 -0
  580. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-b9bccc55.entry.js} +1 -1
  581. package/dist/mint-components/p-ba16858e.system.entry.js +1 -0
  582. package/dist/mint-components/p-bad50dc1.entry.js +1 -0
  583. package/dist/mint-components/{p-a81b507f.entry.js → p-bb627d95.entry.js} +2 -2
  584. package/dist/mint-components/{p-44a82cf3.system.js → p-bcb48c32.system.js} +22 -22
  585. package/dist/mint-components/p-bd288a80.system.js +1 -0
  586. package/dist/mint-components/p-be88596c.system.js +1 -0
  587. package/dist/mint-components/p-bfc16195.system.entry.js +1 -0
  588. package/dist/mint-components/{p-44891949.entry.js → p-c3884e55.entry.js} +1 -1
  589. package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
  590. package/dist/mint-components/p-c3fe8514.system.entry.js +1 -0
  591. package/dist/mint-components/p-c4886223.entry.js +1 -0
  592. package/dist/mint-components/p-c7965639.entry.js +1 -0
  593. package/dist/mint-components/p-c79bb1c6.entry.js +16 -0
  594. package/dist/mint-components/p-c7c11325.js +1 -0
  595. package/dist/mint-components/p-c9252c59.system.entry.js +1 -0
  596. package/dist/mint-components/p-cab1f502.js +1 -0
  597. package/dist/mint-components/{p-a71b9154.system.js → p-d399162b.system.js} +1 -1
  598. package/dist/mint-components/{p-0559d880.entry.js → p-d5f1df29.entry.js} +1 -1
  599. package/dist/mint-components/p-d785a297.system.entry.js +1 -0
  600. package/dist/mint-components/p-d821418e.system.js +1 -0
  601. package/dist/mint-components/p-d8c5b80a.system.js +1 -0
  602. package/dist/mint-components/{p-d3e5704c.entry.js → p-da34d4f7.entry.js} +1 -1
  603. package/dist/mint-components/p-da3ffd4e.system.entry.js +1 -0
  604. package/dist/mint-components/{p-605c2904.system.entry.js → p-da6fe95f.system.entry.js} +1 -1
  605. package/dist/mint-components/{p-c2fdd608.system.entry.js → p-dbe29e53.system.entry.js} +1 -1
  606. package/dist/mint-components/{p-69ac09d4.js → p-ddf3c05e.js} +1 -1
  607. package/dist/mint-components/p-e1a5f64a.entry.js +1 -0
  608. package/dist/mint-components/{p-da7708a7.entry.js → p-e27ff213.entry.js} +1 -1
  609. package/dist/mint-components/p-e539fed3.entry.js +1 -0
  610. package/dist/mint-components/p-e57d61af.system.js +1 -0
  611. package/dist/mint-components/{p-9209a016.system.entry.js → p-e8dc94cc.system.entry.js} +1 -1
  612. package/dist/mint-components/p-eaeddfe2.system.js +1 -0
  613. package/dist/mint-components/{p-e21a1cb8.system.entry.js → p-ebb487d0.system.entry.js} +1 -1
  614. package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
  615. package/dist/mint-components/p-f0e0d0b9.system.entry.js +1 -0
  616. package/dist/mint-components/p-f0ebccea.system.entry.js +1 -0
  617. package/dist/mint-components/p-f1dc581f.js +1 -0
  618. package/dist/mint-components/{p-05f29f64.js → p-f307b716.js} +1 -1
  619. package/dist/mint-components/p-f6665d99.system.entry.js +1 -0
  620. package/dist/mint-components/p-f6762bb5.entry.js +13 -0
  621. package/dist/mint-components/p-f6baa0c9.system.js +1 -0
  622. package/dist/mint-components/p-f9c7248e.js +1 -0
  623. package/dist/mint-components/{p-cc7af682.system.js → p-fa6fba34.system.js} +2 -2
  624. package/dist/mint-components/{p-2b462e4f.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
  625. package/dist/mint-components/{p-4e451f75.js → p-fb5be0c5.js} +1 -1
  626. package/dist/mint-components/p-fb77f662.entry.js +1 -0
  627. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  628. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  629. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +45 -1
  630. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
  631. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
  632. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +42 -0
  633. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
  634. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  635. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +13 -0
  636. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
  637. package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
  638. package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
  639. package/dist/types/components/sqm-hero/sqm-hero.d.ts +6 -2
  640. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
  641. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
  642. package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
  643. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
  644. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
  645. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
  646. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
  647. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
  648. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +3 -0
  649. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
  650. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -1
  651. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +53 -17
  652. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
  653. package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +1 -0
  654. package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +1 -0
  655. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
  656. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
  657. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
  658. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
  659. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
  660. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -2
  661. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  662. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +2 -0
  663. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
  664. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
  665. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  666. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  667. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  668. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  669. package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
  670. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +1 -1
  671. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -1
  672. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
  673. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +24 -3
  674. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
  675. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +42 -0
  676. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
  677. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
  678. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
  679. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
  680. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
  681. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
  682. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
  683. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
  684. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
  685. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
  686. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
  687. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -1
  688. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
  689. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
  690. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +7 -0
  691. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
  692. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
  693. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
  694. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
  695. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
  696. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
  697. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
  698. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
  699. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -1
  700. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +2 -1
  701. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
  702. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
  703. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
  704. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  705. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  706. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  707. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +18 -6
  708. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +3 -3
  709. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +5 -3
  710. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  711. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
  712. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +9 -0
  713. package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
  714. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
  715. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  716. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
  717. package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
  718. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
  719. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -5
  720. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +1 -1
  721. package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
  722. package/dist/types/components/sqm-text/sqm-text.d.ts +12 -0
  723. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  724. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
  725. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
  726. package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
  727. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
  728. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
  729. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
  730. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -2
  731. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  732. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -1
  733. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
  734. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
  735. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +7 -1
  736. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
  737. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -2
  738. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  739. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +1 -0
  740. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  741. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +46 -4
  742. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  743. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  744. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  745. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  746. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  747. package/dist/types/components.d.ts +1090 -100
  748. package/dist/types/global/android.d.ts +7 -0
  749. package/dist/types/global/demo.d.ts +2 -0
  750. package/dist/types/global/global.d.ts +2 -2
  751. package/dist/types/global/mixins.d.ts +12 -12
  752. package/dist/types/global/styles.d.ts +10 -2
  753. package/dist/types/insertfont.d.ts +1 -0
  754. package/dist/types/saasquatch.d.ts +142 -0
  755. package/dist/types/stories/features.d.ts +4 -0
  756. package/dist/types/stories/templates.d.ts +4 -0
  757. package/dist/types/utils/parseStates.d.ts +1 -0
  758. package/dist/types/utils/utils.d.ts +1 -0
  759. package/docs/docs.docx +0 -0
  760. package/docs/raisins.json +1 -1
  761. package/grapesjs/grapesjs.js +1 -1
  762. package/package.json +3 -2
  763. package/dist/cjs/ErrorView-b2fcf954.js +0 -35
  764. package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
  765. package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
  766. package/dist/cjs/sqm-invoice-table-view-f369b0a6.js +0 -2038
  767. package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
  768. package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
  769. package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -178
  770. package/dist/cjs/sqm-text-span-view-56e48a78.js +0 -62
  771. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
  772. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
  773. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
  774. package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
  775. package/dist/esm/ErrorView-48e2b969.js +0 -33
  776. package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
  777. package/dist/esm/sqm-asset-card.entry.js +0 -41
  778. package/dist/esm/sqm-invoice-table-view-1bd8afaa.js +0 -2022
  779. package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
  780. package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
  781. package/dist/esm/sqm-referred-registration.entry.js +0 -174
  782. package/dist/esm/sqm-text-span-view-c577cc60.js +0 -60
  783. package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
  784. package/dist/esm-es5/GenericTableView-e7addb2b.js +0 -1
  785. package/dist/esm-es5/ShadowViewAddon-bdedf635.js +0 -1
  786. package/dist/esm-es5/copy-text-view-ca98ab38.js +0 -1
  787. package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
  788. package/dist/esm-es5/index.module-89a79f66.js +0 -1
  789. package/dist/esm-es5/luxon-8d51c92b.js +0 -1
  790. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  791. package/dist/esm-es5/re-render-cc945f38.js +0 -1
  792. package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
  793. package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
  794. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  795. package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
  796. package/dist/esm-es5/sqm-invoice-table-view-1bd8afaa.js +0 -1
  797. package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
  798. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  799. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  800. package/dist/esm-es5/sqm-portal-forgot-password-view-50444a7c.js +0 -1
  801. package/dist/esm-es5/sqm-portal-login-view-37c85d04.js +0 -1
  802. package/dist/esm-es5/sqm-qr-code-view-10b8b4cb.js +0 -1
  803. package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
  804. package/dist/esm-es5/sqm-text-span-view-c577cc60.js +0 -1
  805. package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +0 -53
  806. package/dist/esm-es5/useChildElements-7945ae56.js +0 -1
  807. package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +0 -1
  808. package/dist/esm-es5/usePortalLogin-ef647a50.js +0 -1
  809. package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +0 -1
  810. package/dist/esm-es5/useReferralCodes-8f75921a.js +0 -1
  811. package/dist/esm-es5/useReferralTable-b3876ed6.js +0 -1
  812. package/dist/esm-es5/useRegistrationFormState-d6f33135.js +0 -1
  813. package/dist/esm-es5/useVerificationEmail-edc318cb.js +0 -1
  814. package/dist/esm-es5/utilities-5b0ca040.js +0 -1
  815. package/dist/esm-es5/utils-334c1e34.js +0 -1
  816. package/dist/mint-components/p-00ed4c2e.entry.js +0 -1
  817. package/dist/mint-components/p-04a6e457.entry.js +0 -1
  818. package/dist/mint-components/p-09a77c82.system.entry.js +0 -1
  819. package/dist/mint-components/p-11519322.system.js +0 -1
  820. package/dist/mint-components/p-11542862.system.entry.js +0 -1
  821. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  822. package/dist/mint-components/p-14a65f29.system.js +0 -1
  823. package/dist/mint-components/p-1513309d.entry.js +0 -1
  824. package/dist/mint-components/p-19ccb4ce.js +0 -1
  825. package/dist/mint-components/p-1b3ab15a.system.entry.js +0 -1
  826. package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
  827. package/dist/mint-components/p-208d8d75.system.entry.js +0 -1
  828. package/dist/mint-components/p-217514ac.system.js +0 -1
  829. package/dist/mint-components/p-2195c312.entry.js +0 -13
  830. package/dist/mint-components/p-229f797b.js +0 -1
  831. package/dist/mint-components/p-24db5c70.js +0 -1
  832. package/dist/mint-components/p-275b4767.entry.js +0 -1
  833. package/dist/mint-components/p-2bbff88f.entry.js +0 -1
  834. package/dist/mint-components/p-2c07df76.entry.js +0 -144
  835. package/dist/mint-components/p-2dca9e1a.system.js +0 -1
  836. package/dist/mint-components/p-2e110002.system.js +0 -1
  837. package/dist/mint-components/p-338bcfd6.system.js +0 -1
  838. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  839. package/dist/mint-components/p-38de17fa.system.js +0 -1
  840. package/dist/mint-components/p-38e5c429.system.js +0 -1
  841. package/dist/mint-components/p-38fc919b.entry.js +0 -1
  842. package/dist/mint-components/p-3a49811c.js +0 -1
  843. package/dist/mint-components/p-3a62a7e2.system.js +0 -1
  844. package/dist/mint-components/p-3db34d68.js +0 -1
  845. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  846. package/dist/mint-components/p-42187319.system.entry.js +0 -1
  847. package/dist/mint-components/p-4428294b.entry.js +0 -1
  848. package/dist/mint-components/p-469ad274.js +0 -394
  849. package/dist/mint-components/p-48135f99.system.js +0 -53
  850. package/dist/mint-components/p-484196f8.entry.js +0 -9
  851. package/dist/mint-components/p-49206a9c.entry.js +0 -1
  852. package/dist/mint-components/p-49deb225.entry.js +0 -1
  853. package/dist/mint-components/p-4dbe2d08.entry.js +0 -25
  854. package/dist/mint-components/p-4e5af50c.js +0 -1
  855. package/dist/mint-components/p-55c16fb9.system.js +0 -1
  856. package/dist/mint-components/p-5dbe8b0a.system.js +0 -1
  857. package/dist/mint-components/p-6055eb4c.system.js +0 -1
  858. package/dist/mint-components/p-6333265f.system.js +0 -1
  859. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  860. package/dist/mint-components/p-6427e963.entry.js +0 -1
  861. package/dist/mint-components/p-642909e6.system.entry.js +0 -1
  862. package/dist/mint-components/p-65ba9e94.entry.js +0 -1
  863. package/dist/mint-components/p-6b7a595f.system.js +0 -1
  864. package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
  865. package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
  866. package/dist/mint-components/p-6f34c2c2.entry.js +0 -13
  867. package/dist/mint-components/p-734695a0.entry.js +0 -205
  868. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  869. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  870. package/dist/mint-components/p-7cbec088.system.entry.js +0 -1
  871. package/dist/mint-components/p-7e3a84bc.js +0 -1
  872. package/dist/mint-components/p-802b9f7e.entry.js +0 -1
  873. package/dist/mint-components/p-8053366e.system.entry.js +0 -1
  874. package/dist/mint-components/p-837dbf90.system.entry.js +0 -1
  875. package/dist/mint-components/p-893d7ab4.js +0 -1
  876. package/dist/mint-components/p-8abfeff8.entry.js +0 -1
  877. package/dist/mint-components/p-8c23d1b8.js +0 -1
  878. package/dist/mint-components/p-8c494bf1.js +0 -1
  879. package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
  880. package/dist/mint-components/p-90421929.system.entry.js +0 -1
  881. package/dist/mint-components/p-91521e9d.js +0 -1
  882. package/dist/mint-components/p-92816d1f.js +0 -1
  883. package/dist/mint-components/p-93fed35b.system.js +0 -1
  884. package/dist/mint-components/p-94a876b9.js +0 -1
  885. package/dist/mint-components/p-97d4d651.system.js +0 -1
  886. package/dist/mint-components/p-98698131.js +0 -1
  887. package/dist/mint-components/p-9acb5038.js +0 -1
  888. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  889. package/dist/mint-components/p-9fe143f5.js +0 -1
  890. package/dist/mint-components/p-b889ec31.entry.js +0 -258
  891. package/dist/mint-components/p-bd2a2546.system.js +0 -1
  892. package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
  893. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  894. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  895. package/dist/mint-components/p-c39db551.system.entry.js +0 -1
  896. package/dist/mint-components/p-ccb5699b.js +0 -1
  897. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  898. package/dist/mint-components/p-cd63a965.system.entry.js +0 -1
  899. package/dist/mint-components/p-cd651f81.js +0 -42
  900. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
  901. package/dist/mint-components/p-df89186f.system.js +0 -1
  902. package/dist/mint-components/p-e01fe915.js +0 -1248
  903. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  904. package/dist/mint-components/p-eab1c9f3.js +0 -1
  905. package/dist/mint-components/p-ed11966d.system.js +0 -1
  906. package/dist/mint-components/p-eda5e82c.entry.js +0 -1
  907. package/dist/mint-components/p-f2228da3.system.entry.js +0 -1
  908. package/dist/mint-components/p-f26aedcd.system.js +0 -1
  909. package/dist/mint-components/p-f2d8d3d3.system.entry.js +0 -1
  910. package/dist/mint-components/p-f708da7b.js +0 -1
  911. package/dist/mint-components/p-fd0a013f.entry.js +0 -1
  912. package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
  913. package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
  914. package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
  915. package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
  916. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  917. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -0,0 +1,448 @@
1
+ import{h as e,c as a,d as t,g as l}from"./p-c7c11325.js";import{i as r}from"./p-49e92a7c.js";import{b as i,u as s,k as o}from"./p-63e29387.js";import{H as n,L as d,J as c,d as u,w as p,B as v,F as m,$ as g,g as f}from"./p-8e2bead4.js";import{c as h}from"./p-c1086930.js";import{l as b}from"./p-6951663b.js";import{c as x,j as C,a as y}from"./p-cef45012.js";import{a as w,S as q}from"./p-862845d7.js";import{H as R,A as S,a as $,b as I,E as k}from"./p-49b20dae.js";import{C as T}from"./p-b710c7e0.js";import{u as E}from"./p-000c91b1.js";import{l as M}from"./p-08700497.js";import{T as V}from"./p-204861a6.js";import{p as L}from"./p-8d363802.js";import{a as A,b as H}from"./p-3cb249c3.js";import{a as B,P as D}from"./p-9580aac3.js";function F(a){const{statvalue:t,flexReverse:l,alignment:r,statTextColor:i,statFontSize:s,descriptionTextColor:o,descriptionFontSize:n,statFontWeight:d}=a,c=x({Container:{display:"flex","flex-direction":l?"column-reverse":"column","align-items":"left"===r?"flex-start":"right"===r?"flex-end":"center"},Stat:{"font-size":s?`${s}px`:"var(--sl-font-size-xx-large)","text-align":r,color:i||"var(--sqm-text)",lineHeight:"35px",fontWeight:d||"var(--sl-font-weight-normal)"},Description:{"font-size":n?`${n}px`:"var(--sl-font-size-small)","font-weight":"var(--sl-font-weight-normal)",color:o||"var(--sqm-text)","text-align":r,lineHeight:"20px"}}),u=c.toString();return e("div",{part:"stat-wrapper",class:c.classes.Container},e("style",{type:"text/css"},u),e("div",{part:"stat-value",class:c.classes.Stat},t),e("div",{part:"stat-description",class:c.classes.Description},a.labelSlot))}const _={facebook:{color:"#1877f2",text:"#fff",icon:"facebook"},twitter:{color:"#000000",text:"#fff",icon:"twitter-x"},email:{color:"#666666",text:"#fff",icon:"envelope"},direct:{color:"var(--sl-color-primary-500)",text:"#fff",icon:"send"},linkedin:{color:"#0077b5",text:"#fff",icon:"linkedin"},sms:{color:"#34DA50",text:"#fff",icon:"chat"},fbmessenger:{color:"#0084ff",text:"#fff",icon:"messenger"},whatsapp:{color:"#25d366",text:"#fff",icon:"whatsapp"},linemessenger:{color:"#00B300",text:"#fff",icon:"line"},pinterest:{color:"#e60023",text:"#fff",icon:"pinterest"}},P=x({HostBlock:R,buttonStyle:{display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"0"}}),z=P.toString();function U(t,l){const r=`\n\tsl-button::part(base) {\n\t border: ${t.border||"none"};\n font-family: var(--sqm-primary-font);\n\n\tbackground: ${t.backgroundcolor?t.backgroundcolor:t.medium?_[t.medium].color:""};\n\tcolor: ${t.textcolor?t.textcolor:t.medium?_[t.medium].text:""};\n\tborder-radius: ${t.borderradius?t.borderradius+"px":""};\n\t}\n\n\n\n\t*::part(label) {\n\t\tposition: relative;\n\t\ttop: 2%;\n\t}\n\t`;return t.hide?e(a,{style:{display:"none"}}):e("div",null,e("style",{type:"text/css"},z),e("style",{type:"text/css"},r),e("sl-button",{class:P.classes.buttonStyle,target:t.openInSameTab?"_self":"_blank",loading:t.loading,disabled:t.disabled,pill:t.pill,size:t.size,type:t.type,onClick:t.isPlainLink?void 0:t.onClick,href:t.isPlainLink?t.messageLink:void 0,exportparts:`base: ${t.type}button-base`},!t.hideicon&&e("sl-icon",{slot:t.iconslot||"prefix",name:t.icon?t.icon:_[t.medium].icon,exportparts:"base: icon"}),!t.hidetext&&l))}function Z(a,t){const l=()=>{const e=getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${a.space}`);return`${Math.floor(parseInt(e)/2)}rem`},r={StatContainer:{width:"100%",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center"===a.alignment?"center":"right"===a.alignment?"flex-end":"flex-start",flexDirection:"row",gap:`var(--sl-spacing-${a.gap})`,"& > *":{"border-right":a.hideBorder?"none":"var(--sqm-border-thickness) solid var(--sqm-border-color)","padding-right":l()},"& > :last-child":{"border-right":"none"},"& > ::slotted(*)":{"border-right":a.hideBorder?"none":"var(--sqm-border-thickness) solid var(--sqm-border-color)","padding-right":l()},"& > ::slotted(*:last-child)":{"border-right":"none"},"@media screen and (max-width: 430px)":{"& > ::slotted(*)":{borderRight:"none"}}},StatFrame:{display:"flex"},BorderFix:{"border-right":"var(--sqm-border-thickness) solid transparent",width:"0px","margin-left":"-1px"}},i=x(r),s=i.toString();return e("div",{class:i.classes.StatFrame,part:"sqm-base"},e("div",{class:i.classes.StatContainer,part:"sqm-inner-container"},e("style",{type:"text/css"},s),t),e("div",{class:i.classes.BorderFix,part:"sqm-border"}))}function W(a){const{states:t,callbacks:l}=a,r=x({Dialog:{padding:"0","&::part(panel)":{background:"var(--sqm-portal-background)",borderRadius:"var(--sqm-border-radius-normal, var(--sl-border-radius-medium))"},"&::part(close-button)":{"margin-top":"var(--sl-spacing-medium)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"15px"}},InputContainer:{"& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-x-large)"}},CancelButton:{margin:"var(--sl-spacing-large) auto",width:"100%"},PasswordField:{marginBottom:"var(--sl-spacing-large) !important",display:"block"},ChangePasswordButton:{paddingTop:"var(--sl-spacing-x-large)"}}),i=r.toString();return e("div",null,e("style",{type:"text/css"},i),e("sl-dialog",{class:r.classes.Dialog,open:t.open,"onSl-hide":()=>l.setOpen(!1)},e(B,Object.assign({},{labelMargin:"x-large",padding:"none",label:e(V,Object.assign({},{type:"h2"}),t.content.modalChangePasswordHeader),content:e(D,Object.assign({},{direction:"column",padding:"none",gap:"32px"}),t.error&&e("sqm-form-message",{class:r.classes.Error,type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},t.error)),t.success&&e("sqm-form-message",{class:r.classes.Success,type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},t.content.successMessage)),e("sl-form",{"onSl-submit":l.submit},e("div",{class:r.classes.InputContainer},e("sqm-password-field",{exportparts:"input-label: input-label",class:r.classes.PasswordField,fieldLabel:t.content.passwordFieldLabel,meetsRequirementsText:t.content.meetsRequirementsText,doesNotMeetRequirementsText:t.content.doesNotMeetRequirementsText,minErrorText:t.content.minErrorText,uppercaseErrorText:t.content.uppercaseErrorText,lowercaseErrorText:t.content.lowercaseErrorText,hasErrorText:t.content.hasErrorText}),e("sl-input",{exportparts:"label: input-label, base: input-base",name:"/confirmPassword",label:t.content.confirmPasswordFieldLabel,required:!0,togglePassword:!0,disabled:t.loading,type:"password"})),e(D,Object.assign({},{direction:"row",padding:"none",gap:"20px"}),e("sl-button",{class:r.classes.ChangePasswordButton,type:"primary",exportparts:"base: primarybutton-base",submit:!0,loading:t.loading},t.content.changePasswordButtonText),e("sl-button",{class:r.classes.CancelButton,type:"secondary",exportparts:"base: secondarybutton-base",onClick:()=>l.setOpen(!1)},t.content.cancelText))))}))),e(B,Object.assign({},{labelMargin:"x-large",padding:"xxx-large",label:e(V,Object.assign({},{type:"h2"}),t.content.portalChangePasswordHeader),content:e("sl-button",{type:"primary",exportparts:"base: primarybutton-base",onClick:()=>l.setOpen(!0)},t.content.portalChangePasswordButtonText)}),e("style",{type:"text/css"},i)))}function N({color:a="#A6A6A6",width:t=120,height:l=16}){return e("svg",{width:t,height:l,viewBox:"0 0 1662 254",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M801.082 253.58L869.382 1.67969",stroke:a,"stroke-width":"3"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M125.682 42.48C123.882 42.48 121.982 42.78 120.382 43.48C118.682 44.18 117.182 45.18 115.882 46.48C114.582 47.68 113.582 49.28 112.882 50.98C112.182 52.68 111.882 54.48 111.982 56.28C112.282 59.68 113.882 63.08 116.382 65.38C118.982 67.78 122.382 68.98 125.782 68.98C129.282 68.98 132.682 67.58 135.182 65.38C137.782 62.98 139.382 59.78 139.582 56.28C139.582 54.38 139.282 52.68 138.682 50.98C137.982 49.28 136.982 47.78 135.682 46.48C134.382 45.18 132.882 44.18 131.182 43.48C129.282 42.78 127.582 42.48 125.682 42.48Z",fill:a}),e("path",{d:"M135.882 89.2798H115.582V187.58H135.882V89.2798Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M551.282 239.88C549.982 239.88 548.782 240.28 547.682 240.88C546.682 241.58 545.782 242.58 545.382 243.68C544.882 244.78 544.782 246.08 545.082 247.28C545.282 248.58 545.882 249.68 546.882 250.48C547.782 251.38 548.882 251.98 550.082 252.28C551.382 252.48 552.582 252.38 553.782 251.98C554.882 251.48 555.982 250.78 556.582 249.68C557.282 248.68 557.582 247.38 557.582 246.18C557.582 244.48 556.982 242.88 555.682 241.68C554.482 240.48 552.882 239.88 551.282 239.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M586.182 210.78C592.282 210.78 597.582 213.08 601.082 217.18L601.482 217.68L596.282 223.08L595.782 222.58C594.482 221.18 593.082 220.18 591.382 219.48C589.682 218.78 587.882 218.38 586.082 218.48C578.882 218.48 573.682 224.08 573.682 231.58C573.682 239.18 578.882 244.78 586.082 244.78C589.782 244.68 593.282 243.18 595.882 240.58L596.382 240.08L601.382 245.68L600.982 246.08C597.182 250.18 591.982 252.18 586.082 252.18C574.082 252.18 565.382 243.58 565.382 231.58C565.582 219.48 574.182 210.78 586.182 210.78Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M633.782 210.78C621.682 210.78 612.582 219.68 612.582 231.38C612.582 243.08 621.682 251.98 633.782 251.98C645.882 251.98 654.882 243.08 654.882 231.38C655.082 219.78 645.982 210.78 633.782 210.78ZM633.782 244.78C626.382 244.78 620.782 239.28 620.782 231.58C620.782 223.88 626.182 218.48 633.782 218.48C641.182 218.48 646.782 224.08 646.782 231.58C646.782 238.98 641.382 244.78 633.782 244.78Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M723.982 228.78C723.982 222.18 720.382 218.28 714.082 218.28C707.682 218.28 703.382 222.78 702.982 228.98V252.18H695.082V228.68C695.082 222.08 691.482 218.18 685.182 218.18C680.082 218.18 674.482 221.48 674.482 228.88V252.08H666.582V211.38H674.482V214.78L676.682 213.28C679.582 211.38 683.082 210.48 686.582 210.48C692.082 210.48 696.782 212.48 699.882 216.08L700.882 217.28L701.882 216.08C704.782 212.48 709.582 210.48 715.182 210.48C725.082 210.48 731.982 217.08 731.982 226.38V251.88H724.082V228.68H723.982V228.78Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z",fill:a}),e("path",{d:"M135.882 89.2798H115.582V187.58H135.882V89.2798Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z",fill:a}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z",fill:a}),e("path",{d:"M34.6815 112.78C40.6815 112.78 46.5815 114.18 51.8815 116.68C57.2815 119.18 62.0815 122.78 65.9815 127.28C67.9815 122.68 69.0815 117.78 69.0815 112.88C69.0815 108.38 68.1815 103.88 66.4815 99.8799C64.6815 95.6799 62.1815 91.9799 58.9815 88.8799C55.7815 85.7799 51.9815 83.2799 47.7815 81.4799C43.5815 79.7799 39.0815 78.8799 34.5815 78.8799C30.0815 78.8799 25.5815 79.6799 21.3815 81.4799C17.1815 83.1799 13.3815 85.7799 10.1815 88.8799C6.98154 91.9799 4.48154 95.7799 2.68154 99.8799C0.881541 104.08 0.081543 108.38 0.081543 112.88C0.181543 117.88 1.18154 122.78 3.18154 127.28C7.08154 122.68 11.8815 119.18 17.1815 116.68C22.7815 113.98 28.7815 112.68 34.6815 112.78Z",fill:a}),e("path",{d:"M69.1817 153.48C69.1817 146.68 67.1817 140.18 63.2817 134.48C59.4817 128.88 54.0817 124.48 47.7817 121.88C41.4817 119.28 34.4817 118.68 27.7817 119.88C21.0817 121.28 14.8817 124.48 10.0817 129.28C5.28166 134.08 1.88166 140.08 0.681661 146.78C-0.718339 153.48 0.0816607 160.18 2.68166 166.48C5.28166 172.78 9.68166 178.08 15.4817 181.78C21.0817 185.58 27.7817 187.48 34.6817 187.48C43.7817 187.38 52.5817 183.88 59.0817 177.38C65.6817 170.98 69.1817 162.58 69.1817 153.48Z",fill:a}),e("path",{d:"M69.1817 34.9799C69.1817 28.1799 67.1817 21.6799 63.2817 15.9799C59.4817 10.3799 54.1817 5.9799 47.7817 3.3799C41.4817 0.779901 34.4817 0.1799 27.7817 1.3799C21.0817 2.7799 14.8817 5.97986 10.0817 10.7799C5.28166 15.5799 1.88166 21.5799 0.681661 28.2799C-0.718339 34.9799 0.0816607 41.6799 2.68166 47.9799C5.28166 54.2799 9.68166 59.5799 15.4817 63.2799C21.0817 67.0799 27.7817 68.9799 34.6817 68.9799C43.8817 68.9799 52.6817 65.3799 59.1817 58.9799C65.5817 52.6799 69.1817 43.8799 69.1817 34.9799Z",fill:a}),e("path",{d:"M962.664 203.95C953.044 203.95 945.244 201.285 939.264 195.955C933.284 190.495 930.294 183.41 930.294 174.7C930.294 165.08 933.739 157.605 940.629 152.275C947.649 146.945 957.464 144.28 970.074 144.28H993.864V138.43C993.864 129.72 991.589 123.09 987.039 118.54C982.619 113.86 976.184 111.52 967.734 111.52C962.014 111.52 956.749 112.885 951.939 115.615C947.129 118.345 943.229 122.18 940.239 127.12L933.999 120.295C937.639 114.575 942.384 110.22 948.234 107.23C954.214 104.11 960.974 102.55 968.514 102.55C979.694 102.55 988.404 105.605 994.644 111.715C1001.01 117.695 1004.2 126.015 1004.2 136.675V184.255C1004.2 188.805 1004.98 194.72 1006.54 202H997.569C996.399 199.14 995.554 194.07 995.034 186.79H994.644C990.874 192.25 986.259 196.475 980.799 199.465C975.339 202.455 969.294 203.95 962.664 203.95ZM962.664 195.175C968.124 195.175 973.259 194.07 978.069 191.86C982.879 189.52 986.714 186.465 989.574 182.695C992.434 178.795 993.864 174.7 993.864 170.41V152.665H969.489C960.389 152.665 953.239 154.615 948.039 158.515C942.969 162.415 940.434 167.81 940.434 174.7C940.434 180.68 942.514 185.62 946.674 189.52C950.834 193.29 956.164 195.175 962.664 195.175Z",fill:a}),e("path",{d:"M1067.55 203.95C1055.07 203.95 1045.25 199.27 1038.1 189.91C1030.95 180.55 1027.38 167.745 1027.38 151.495C1027.38 136.415 1031.02 124.52 1038.3 115.81C1045.71 106.97 1055.72 102.55 1068.33 102.55C1074.7 102.55 1080.55 104.045 1085.88 107.035C1091.21 110.025 1095.5 114.25 1098.75 119.71H1099.14V57.3101H1109.67V178.21C1109.67 189.13 1109.86 197.06 1110.25 202H1100.89C1100.63 197.84 1100.5 192.12 1100.5 184.84H1100.11C1097.12 190.69 1092.7 195.37 1086.85 198.88C1081 202.26 1074.57 203.95 1067.55 203.95ZM1068.13 195.175C1077.23 195.175 1084.64 192.185 1090.36 186.205C1096.21 180.225 1099.14 172.49 1099.14 163V146.815C1099.14 135.895 1096.41 127.25 1090.95 120.88C1085.49 114.38 1078.08 111.13 1068.72 111.13C1059.1 111.13 1051.49 114.77 1045.9 122.05C1040.44 129.2 1037.71 139.145 1037.71 151.885C1037.71 165.275 1040.44 175.87 1045.9 183.67C1051.36 191.34 1058.77 195.175 1068.13 195.175Z",fill:a}),e("path",{d:"M1208.57 104.5L1172.3 202H1161.96L1125.5 104.5H1136.61L1167.03 189.715L1197.45 104.5H1208.57Z",fill:a}),e("path",{d:"M1261.51 203.95C1252.54 203.95 1244.61 201.87 1237.72 197.71C1230.96 193.55 1225.7 187.635 1221.93 179.965C1218.29 172.295 1216.47 163.39 1216.47 153.25C1216.47 143.11 1218.29 134.205 1221.93 126.535C1225.7 118.865 1230.96 112.95 1237.72 108.79C1244.61 104.63 1252.54 102.55 1261.51 102.55C1270.48 102.55 1278.35 104.63 1285.11 108.79C1292 112.95 1297.33 118.865 1301.1 126.535C1304.87 134.205 1306.75 143.11 1306.75 153.25C1306.75 163.39 1304.87 172.295 1301.1 179.965C1297.33 187.635 1292 193.55 1285.11 197.71C1278.35 201.87 1270.48 203.95 1261.51 203.95ZM1261.51 195.37C1268.4 195.37 1274.45 193.615 1279.65 190.105C1284.98 186.595 1289.07 181.655 1291.93 175.285C1294.79 168.915 1296.22 161.57 1296.22 153.25C1296.22 144.93 1294.79 137.585 1291.93 131.215C1289.07 124.845 1284.98 119.905 1279.65 116.395C1274.45 112.885 1268.4 111.13 1261.51 111.13C1254.75 111.13 1248.71 112.885 1243.38 116.395C1238.18 119.905 1234.15 124.845 1231.29 131.215C1228.43 137.585 1227 144.93 1227 153.25C1227 161.57 1228.43 168.915 1231.29 175.285C1234.15 181.655 1238.18 186.595 1243.38 190.105C1248.71 193.615 1254.75 195.37 1261.51 195.37Z",fill:a}),e("path",{d:"M1366.03 203.95C1352.25 203.95 1341.52 199.53 1333.85 190.69C1326.31 181.72 1322.54 169.24 1322.54 153.25C1322.54 137.39 1326.38 124.975 1334.05 116.005C1341.72 107.035 1352.38 102.55 1366.03 102.55C1373.57 102.55 1380.26 104.11 1386.11 107.23C1391.96 110.22 1396.77 114.575 1400.54 120.295L1394.3 126.34C1391.31 121.66 1387.28 118.02 1382.21 115.42C1377.27 112.69 1371.88 111.325 1366.03 111.325C1355.76 111.325 1347.63 115.03 1341.65 122.44C1335.8 129.85 1332.88 140.12 1332.88 153.25C1332.88 166.38 1335.8 176.65 1341.65 184.06C1347.63 191.47 1355.76 195.175 1366.03 195.175C1371.88 195.175 1377.27 193.875 1382.21 191.275C1387.28 188.545 1391.31 184.84 1394.3 180.16L1400.54 186.205C1396.77 191.925 1391.96 196.345 1386.11 199.465C1380.26 202.455 1373.57 203.95 1366.03 203.95Z",fill:a}),e("path",{d:"M1446.55 203.95C1436.93 203.95 1429.13 201.285 1423.15 195.955C1417.17 190.495 1414.18 183.41 1414.18 174.7C1414.18 165.08 1417.62 157.605 1424.51 152.275C1431.53 146.945 1441.35 144.28 1453.96 144.28H1477.75V138.43C1477.75 129.72 1475.47 123.09 1470.92 118.54C1466.5 113.86 1460.07 111.52 1451.62 111.52C1445.9 111.52 1440.63 112.885 1435.82 115.615C1431.01 118.345 1427.11 122.18 1424.12 127.12L1417.88 120.295C1421.52 114.575 1426.27 110.22 1432.12 107.23C1438.1 104.11 1444.86 102.55 1452.4 102.55C1463.58 102.55 1472.29 105.605 1478.53 111.715C1484.9 117.695 1488.08 126.015 1488.08 136.675V184.255C1488.08 188.805 1488.86 194.72 1490.42 202H1481.45C1480.28 199.14 1479.44 194.07 1478.92 186.79H1478.53C1474.76 192.25 1470.14 196.475 1464.68 199.465C1459.22 202.455 1453.18 203.95 1446.55 203.95ZM1446.55 195.175C1452.01 195.175 1457.14 194.07 1461.95 191.86C1466.76 189.52 1470.6 186.465 1473.46 182.695C1476.32 178.795 1477.75 174.7 1477.75 170.41V152.665H1453.37C1444.27 152.665 1437.12 154.615 1431.92 158.515C1426.85 162.415 1424.32 167.81 1424.32 174.7C1424.32 180.68 1426.4 185.62 1430.56 189.52C1434.72 193.29 1440.05 195.175 1446.55 195.175Z",fill:a}),e("path",{d:"M1547.14 203.95C1539.08 203.95 1532.97 201.48 1528.81 196.54C1524.65 191.47 1522.57 184.19 1522.57 174.7V113.275H1505.02V104.5H1522.57V77.9801L1532.32 74.6651H1533.1V104.5H1560.59V113.275H1533.1V172.555C1533.1 180.355 1534.33 186.01 1536.8 189.52C1539.27 193.03 1543.17 194.785 1548.5 194.785C1553.83 194.785 1558.06 194.005 1561.18 192.445L1562.35 200.83C1558.19 202.91 1553.12 203.95 1547.14 203.95Z",fill:a}),e("path",{d:"M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z",fill:a}))}const O=i("sq:useBigStat"),j=(e,a,t)=>{const l=p(e,a);return(null==l?void 0:l.data)||l.loading||console.error("issue getting stat:",l),{...t(l),loading:l.loading}},G={prettyValue:"UNIT_FORMATTED",value:"NUMBER_UNFORMATTED"},X={rewardsAssigned:{label:"Rewards Earned",query:(e,a,t,l,r="")=>j(u.gql`
2
+ query (
3
+ $programId: ID
4
+ $type: RewardType
5
+ $unit: String!
6
+ $locale: RSLocale
7
+ ) {
8
+ fallback: formatRewardPrettyValue(
9
+ value: 0
10
+ unit: $unit
11
+ locale: $locale
12
+ formatType: UNIT_FORMATTED
13
+ )
14
+ viewer: viewer {
15
+ ... on User {
16
+ rewardBalanceDetails(
17
+ programId: $programId
18
+ filter: { type_eq: $type, unit_eq: $unit }
19
+ locale: $locale
20
+ ) {
21
+ ... on CreditRewardBalance {
22
+ prettyAssignedCredit
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }
28
+ `,{programId:r||"classic"===e?null:e,type:t,unit:l,locale:a},(e=>{var a,t,l,r,i;const s=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewardBalanceDetails,o=null===(l=e.data)||void 0===l?void 0:l.fallback;return{value:(null===(r=null==s?void 0:s[0])||void 0===r?void 0:r.prettyAssignedCredit)||0,statvalue:(null===(i=null==s?void 0:s[0])||void 0===i?void 0:i.prettyAssignedCredit)||o}}))},rewardsPending:{label:"Rewards Pending",query:(e,a,t,l,r="")=>j(u.gql`
29
+ query (
30
+ $programId: ID
31
+ $type: RewardType
32
+ $unit: String!
33
+ $locale: RSLocale
34
+ ) {
35
+ fallback: formatRewardPrettyValue(
36
+ value: 0
37
+ unit: $unit
38
+ locale: $locale
39
+ formatType: UNIT_FORMATTED
40
+ )
41
+ viewer: viewer {
42
+ ... on User {
43
+ rewardBalanceDetails(
44
+ programId: $programId
45
+ filter: { type_eq: $type, unit_eq: $unit }
46
+ locale: $locale
47
+ ) {
48
+ ... on CreditRewardBalance {
49
+ prettyPendingCredit
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ `,{programId:r||"classic"===e?null:e,type:t,unit:l,locale:a},(e=>{var a,t,l,r,i;const s=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewardBalanceDetails,o=null===(l=e.data)||void 0===l?void 0:l.fallback;return{value:(null===(r=null==s?void 0:s[0])||void 0===r?void 0:r.prettyPendingCredit)||0,statvalue:(null===(i=null==s?void 0:s[0])||void 0===i?void 0:i.prettyPendingCredit)||o}}))},rewardsExpired:{label:"Rewards Expired",query:(e,a,t,l,r="")=>j(u.gql`
56
+ query (
57
+ $programId: ID
58
+ $type: RewardType
59
+ $unit: String!
60
+ $locale: RSLocale
61
+ ) {
62
+ fallback: formatRewardPrettyValue(
63
+ value: 0
64
+ unit: $unit
65
+ locale: $locale
66
+ formatType: UNIT_FORMATTED
67
+ )
68
+ viewer: viewer {
69
+ ... on User {
70
+ rewardBalanceDetails(
71
+ programId: $programId
72
+ filter: { type_eq: $type, unit_eq: $unit }
73
+ locale: $locale
74
+ ) {
75
+ ... on CreditRewardBalance {
76
+ prettyExpiredCredit
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ `,{programId:r||"classic"===e?null:e,type:t,unit:l,locale:a},(e=>{var a,t,l,r,i;const s=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewardBalanceDetails,o=null===(l=e.data)||void 0===l?void 0:l.fallback;return{value:(null===(r=null==s?void 0:s[0])||void 0===r?void 0:r.prettyAssignedCredit)||0,statvalue:(null===(i=null==s?void 0:s[0])||void 0===i?void 0:i.prettyAssignedCredit)||o}}))},rewardsCancelled:{label:"Rewards Cancelled",query:(e,a,t,l,r="")=>j(u.gql`
83
+ query (
84
+ $programId: ID
85
+ $type: RewardType
86
+ $unit: String!
87
+ $locale: RSLocale
88
+ ) {
89
+ fallback: formatRewardPrettyValue(
90
+ value: 0
91
+ unit: $unit
92
+ locale: $locale
93
+ formatType: UNIT_FORMATTED
94
+ )
95
+ viewer: viewer {
96
+ ... on User {
97
+ rewardBalanceDetails(
98
+ programId: $programId
99
+ filter: { type_eq: $type, unit_eq: $unit }
100
+ locale: $locale
101
+ ) {
102
+ ... on CreditRewardBalance {
103
+ prettyCancelledCredit
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
109
+ `,{programId:r||"classic"===e?null:e,type:t,unit:l,locale:a},(e=>{var a,t,l,r,i;const s=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewardBalanceDetails,o=null===(l=e.data)||void 0===l?void 0:l.fallback;return{value:(null===(r=null==s?void 0:s[0])||void 0===r?void 0:r.prettyAssignedCredit)||0,statvalue:(null===(i=null==s?void 0:s[0])||void 0===i?void 0:i.prettyAssignedCredit)||o}}))},rewardsRedeemed:{label:"Rewards Paid",query:(e,a,t,l,r="")=>j(u.gql`
110
+ query (
111
+ $programId: ID
112
+ $type: RewardType
113
+ $unit: String!
114
+ $locale: RSLocale
115
+ ) {
116
+ fallback: formatRewardPrettyValue(
117
+ value: 0
118
+ unit: $unit
119
+ locale: $locale
120
+ formatType: UNIT_FORMATTED
121
+ )
122
+ viewer: viewer {
123
+ ... on User {
124
+ rewardBalanceDetails(
125
+ programId: $programId
126
+ filter: { type_eq: $type, unit_eq: $unit }
127
+ locale: $locale
128
+ ) {
129
+ ... on CreditRewardBalance {
130
+ prettyRedeemedCredit
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ `,{programId:r||"classic"===e?null:e,type:t,unit:l,locale:a},(e=>{var a,t,l,r,i;const s=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewardBalanceDetails,o=null===(l=e.data)||void 0===l?void 0:l.fallback;return{value:(null===(r=null==s?void 0:s[0])||void 0===r?void 0:r.prettyRedeemedCredit)||0,statvalue:(null===(i=null==s?void 0:s[0])||void 0===i?void 0:i.prettyRedeemedCredit)||o}}))},rewardsRedeemedMonth:{label:"Rewards Paid - This Month",query:(e,a,t,l,r="")=>j(u.gql`
137
+ query ($programId: ID, $type: RewardType, $unit: String!) {
138
+ viewer: viewer {
139
+ ... on User {
140
+ rewards(
141
+ limit: 1000
142
+ filter: {
143
+ programId_eq: $programId
144
+ type_eq: $type
145
+ unit_eq: $unit
146
+ dateRedeemed_timeframe: "this_month"
147
+ }
148
+ ) {
149
+ data {
150
+ redeemedCredit
151
+ }
152
+ totalCount
153
+ }
154
+ }
155
+ }
156
+ }
157
+ `,{programId:r||"classic"===e?null:e,type:t,unit:l},(e=>{var t,r,i,s;const o=null===(i=null===(r=null===(t=e.data)||void 0===t?void 0:t.viewer)||void 0===r?void 0:r.rewards)||void 0===i?void 0:i.data,n=null==o?void 0:o.reduce(((e,a)=>e+a.redeemedCredit),0);if(void 0!==n){const e=p("query formatRewardPrettyValue(\n $value: Int!\n $unit: String!\n $locale: RSLocale\n ) {\n formatRewardPrettyValue(\n value: $value\n unit: $unit\n locale: $locale\n formatType: UNIT_FORMATTED\n )}",{value:n,unit:l,locale:a});return{value:n||0,statvalue:null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.formatRewardPrettyValue}}return{value:0,statvalue:"..."}}))},rewardsRedeemedWeek:{label:"Rewards Paid - This Week",query:(e,a,t,l,r="")=>j(u.gql`
158
+ query ($programId: ID, $type: RewardType, $unit: String!) {
159
+ viewer: viewer {
160
+ ... on User {
161
+ rewards(
162
+ limit: 1000
163
+ filter: {
164
+ programId_eq: $programId
165
+ type_eq: $type
166
+ unit_eq: $unit
167
+ dateRedeemed_timeframe: "this_week"
168
+ }
169
+ ) {
170
+ data {
171
+ redeemedCredit
172
+ }
173
+ totalCount
174
+ }
175
+ }
176
+ }
177
+ }
178
+ `,{programId:r||"classic"===e?null:e,type:t,unit:l},(e=>{var t,r,i,s;const o=null===(i=null===(r=null===(t=e.data)||void 0===t?void 0:t.viewer)||void 0===r?void 0:r.rewards)||void 0===i?void 0:i.data,n=null==o?void 0:o.reduce(((e,a)=>e+a.redeemedCredit),0);if(void 0!==n){const e=p("query formatRewardPrettyValue(\n $value: Int!\n $unit: String!\n $locale: RSLocale\n ) {\n formatRewardPrettyValue(\n value: $value\n unit: $unit\n locale: $locale\n formatType: UNIT_FORMATTED\n )}",{value:n,unit:l,locale:a});return{value:n||0,statvalue:null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.formatRewardPrettyValue}}return{value:0,statvalue:"..."}}))},rewardsAvailable:{label:"Rewards Available",query:(e,a,t,l,r="")=>j(u.gql`
179
+ query (
180
+ $programId: ID
181
+ $type: RewardType
182
+ $unit: String!
183
+ $locale: RSLocale
184
+ ) {
185
+ fallback: formatRewardPrettyValue(
186
+ value: 0
187
+ unit: $unit
188
+ locale: $locale
189
+ formatType: UNIT_FORMATTED
190
+ )
191
+ viewer: viewer {
192
+ ... on User {
193
+ rewardBalanceDetails(
194
+ programId: $programId
195
+ filter: { type_eq: $type, unit_eq: $unit }
196
+ locale: $locale
197
+ ) {
198
+ ... on CreditRewardBalance {
199
+ prettyAvailableValue
200
+ }
201
+ }
202
+ }
203
+ }
204
+ }
205
+ `,{programId:r||"classic"===e?null:e,type:t,unit:l,locale:a},(e=>{var a,t,l,r,i;const s=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewardBalanceDetails,o=null===(l=e.data)||void 0===l?void 0:l.fallback;return{value:(null===(r=null==s?void 0:s[0])||void 0===r?void 0:r.prettyAvailableValue)||0,statvalue:(null===(i=null==s?void 0:s[0])||void 0===i?void 0:i.prettyAvailableValue)||o}}))},referralsCount:{label:"Referrals - Count",query:(e,a,t)=>{const l={..."classic"===e?{programId_exists:!1}:{programId_eq:e},...t&&"converted"==t?{dateConverted_exists:!0}:t&&"started"==t?{dateConverted_exists:!1}:{}};return j(u.gql`
206
+ query ($queryFilter: ReferralFilterInput) {
207
+ viewer {
208
+ ... on User {
209
+ referrals(filter: $queryFilter) {
210
+ totalCount
211
+ }
212
+ }
213
+ }
214
+ }
215
+ `,{queryFilter:l},(e=>{var a,t,l,r,i,s,o;return{value:(null===(l=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.referrals)||void 0===l?void 0:l.totalCount)||0,statvalue:null===(o=null===(s=null===(i=null===(r=e.data)||void 0===r?void 0:r.viewer)||void 0===i?void 0:i.referrals)||void 0===s?void 0:s.totalCount)||void 0===o?void 0:o.toString()}}))}},referralsMonth:{label:"Referrals - This Month",query:(e,a)=>{const t={..."classic"===e?{programId_exists:!1}:{programId_eq:e},...a&&"converted"==a?{dateConverted_exists:!0}:a&&"started"==a?{dateConverted_exists:!1}:{},dateReferralStarted_timeframe:"this_month"};return j(u.gql`
216
+ query ($filter: ReferralFilterInput) {
217
+ viewer {
218
+ ... on User {
219
+ referrals(filter: $filter) {
220
+ totalCount
221
+ }
222
+ }
223
+ }
224
+ }
225
+ `,{filter:t},(e=>{var a,t,l,r,i,s,o;return{value:(null===(l=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.referrals)||void 0===l?void 0:l.totalCount)||0,statvalue:null===(o=null===(s=null===(i=null===(r=e.data)||void 0===r?void 0:r.viewer)||void 0===i?void 0:i.referrals)||void 0===s?void 0:s.totalCount)||void 0===o?void 0:o.toString()}}))}},referralsWeek:{label:"Referrals - This Week",query:e=>{const a={..."classic"===e?{programId_exists:!1}:{programId_eq:e},dateReferralStarted_timeframe:"this_week"};return j(u.gql`
226
+ query ($filter: ReferralFilterInput) {
227
+ viewer {
228
+ ... on User {
229
+ referrals(filter: $filter) {
230
+ totalCount
231
+ }
232
+ }
233
+ }
234
+ }
235
+ `,{filter:a},(e=>{var a,t,l,r,i,s,o;return{value:(null===(l=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.referrals)||void 0===l?void 0:l.totalCount)||0,statvalue:null===(o=null===(s=null===(i=null===(r=e.data)||void 0===r?void 0:r.viewer)||void 0===i?void 0:i.referrals)||void 0===s?void 0:s.totalCount)||void 0===o?void 0:o.toString()}}))}},rewardsCount:{label:"Rewards",query:(e,a,t="")=>j(u.gql`
236
+ query ($programId: ID) {
237
+ viewer {
238
+ ... on User {
239
+ rewards(filter: { programId_eq: $programId }) {
240
+ totalCount
241
+ }
242
+ }
243
+ }
244
+ }
245
+ `,{programId:t||"classic"===e?null:e},(e=>{var a,t,l,r,i,s,o;return{value:(null===(l=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewards)||void 0===l?void 0:l.totalCount)||0,statvalue:null===(o=null===(s=null===(i=null===(r=e.data)||void 0===r?void 0:r.viewer)||void 0===i?void 0:i.rewards)||void 0===s?void 0:s.totalCount)||void 0===o?void 0:o.toString()}}))},rewardsCountFiltered:{label:"Rewards",query:(e,a,t,l,r,i="")=>j(u.gql`
246
+ query (
247
+ $programId: ID
248
+ $unit: String
249
+ $type: RewardType
250
+ $statusFilter: RewardStatusFilterInput
251
+ ) {
252
+ viewer {
253
+ ... on User {
254
+ rewards(
255
+ filter: {
256
+ programId_eq: $programId
257
+ type_eq: $type
258
+ unit_eq: $unit
259
+ statuses_eq: $statusFilter
260
+ }
261
+ ) {
262
+ totalCount
263
+ }
264
+ }
265
+ }
266
+ }
267
+ `,{programId:i||"classic"===e?null:e,unit:l,type:t,statusFilter:r?{status:r}:null},(e=>{var a,t,l,r,i,s,o;return{value:(null===(l=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewards)||void 0===l?void 0:l.totalCount)||0,statvalue:null===(o=null===(s=null===(i=null===(r=e.data)||void 0===r?void 0:r.viewer)||void 0===i?void 0:i.rewards)||void 0===s?void 0:s.totalCount)||void 0===o?void 0:o.toString()}}))},integrationRewardsCountFiltered:{label:"Rewards",query:(e,a,t,l="")=>j(u.gql`
268
+ query ($programId: ID, $statusFilter: RewardStatusFilterInput) {
269
+ viewer {
270
+ ... on User {
271
+ rewards(
272
+ filter: {
273
+ programId_eq: $programId
274
+ type_eq: INTEGRATION
275
+ statuses_eq: $statusFilter
276
+ }
277
+ ) {
278
+ totalCount
279
+ }
280
+ }
281
+ }
282
+ }
283
+ `,{programId:l||"classic"===e?null:e,statusFilter:t?{status:t}:null},(e=>{var a,t,l,r,i,s,o;return{value:(null===(l=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewards)||void 0===l?void 0:l.totalCount)||0,statvalue:null===(o=null===(s=null===(i=null===(r=e.data)||void 0===r?void 0:r.viewer)||void 0===i?void 0:i.rewards)||void 0===s?void 0:s.totalCount)||void 0===o?void 0:o.toString()}}))},rewardsMonth:{label:"Rewards - This Month",query:(e,a,t="")=>j(u.gql`
284
+ query ($programId: ID) {
285
+ viewer {
286
+ ... on User {
287
+ rewards(
288
+ filter: {
289
+ programId_eq: $programId
290
+ dateGiven_timeframe: "this_month"
291
+ }
292
+ ) {
293
+ totalCount
294
+ }
295
+ }
296
+ }
297
+ }
298
+ `,{programId:t||"classic"===e?null:e},(e=>{var a,t,l,r,i,s,o;return{value:(null===(l=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewards)||void 0===l?void 0:l.totalCount)||0,statvalue:null===(o=null===(s=null===(i=null===(r=e.data)||void 0===r?void 0:r.viewer)||void 0===i?void 0:i.rewards)||void 0===s?void 0:s.totalCount)||void 0===o?void 0:o.toString()}}))},rewardsWeek:{label:"Rewards - This Week",query:(e,a,t="")=>j(u.gql`
299
+ query ($programId: ID) {
300
+ viewer {
301
+ ... on User {
302
+ rewards(
303
+ filter: {
304
+ programId_eq: $programId
305
+ dateGiven_timeframe: "this_week"
306
+ }
307
+ ) {
308
+ totalCount
309
+ }
310
+ }
311
+ }
312
+ }
313
+ `,{programId:t||"classic"===e?null:e},(e=>{var a,t,l,r,i,s,o;return{value:(null===(l=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewards)||void 0===l?void 0:l.totalCount)||0,statvalue:null===(o=null===(s=null===(i=null===(r=e.data)||void 0===r?void 0:r.viewer)||void 0===i?void 0:i.rewards)||void 0===s?void 0:s.totalCount)||void 0===o?void 0:o.toString()}}))},rewardBalance:{label:"Balance - Credit Earned",query:(e,a,t,l,r="prettyValue",i="")=>{var s;return j(u.gql`
314
+ query (
315
+ $programId: ID
316
+ $type: RewardType!
317
+ $unit: String!
318
+ $format: RewardValueFormatType!
319
+ $locale: RSLocale
320
+ ) {
321
+ fallback: formatRewardPrettyValue(
322
+ value: 0
323
+ unit: $unit
324
+ locale: $locale
325
+ formatType: $format
326
+ )
327
+ viewer: viewer {
328
+ ... on User {
329
+ rewardBalanceDetails(
330
+ programId: $programId
331
+ filter: { type_eq: $type, unit_eq: $unit }
332
+ locale: $locale
333
+ ) {
334
+ ... on CreditRewardBalance {
335
+ prettyAvailableValue(formatType: $format)
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+ `,{programId:i||"classic"===e?null:e,type:t,unit:l,format:null!==(s=G[r])&&void 0!==s?s:"UNIT_FORMATTED",locale:a},(e=>{var a,t,l,r,i;const s=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.rewardBalanceDetails,o=null===(l=e.data)||void 0===l?void 0:l.fallback;return{value:(null===(r=null==s?void 0:s[0])||void 0===r?void 0:r.prettyAvailableValue)||0,statvalue:(null===(i=null==s?void 0:s[0])||void 0===i?void 0:i.prettyAvailableValue)||o}}))}},programGoals:{label:"Program Goals",query:(e,a,t,l)=>"classic"===e?null:j(u.gql`
342
+ query {
343
+ viewer {
344
+ ... on User {
345
+ programGoals {
346
+ goalId
347
+ programId
348
+ count
349
+ conversionCount
350
+ }
351
+ }
352
+ }
353
+ }
354
+ `,{programId:e,metricType:t,goalId:l,locale:a},(a=>{var r,i,s,o,n,d;const c=null===(s=null===(i=null===(r=a.data)||void 0===r?void 0:r.viewer)||void 0===i?void 0:i.programGoals)||void 0===s?void 0:s.filter((a=>a.goalId===l&&a.programId===e));return{value:(null===(o=null==c?void 0:c[0])||void 0===o?void 0:o[t])||0,statvalue:(null===(d=null===(n=null==c?void 0:c[0])||void 0===n?void 0:n[t])||void 0===d?void 0:d.toString())||0}}))},customFields:{label:"Custom Fields",query:(e,a,t,l)=>j(u.gql`
355
+ query {
356
+ viewer {
357
+ ... on User {
358
+ customFields
359
+ }
360
+ }
361
+ }
362
+ `,{fieldName:t,goalId:l,locale:a},(e=>{var a,l,r;const i=null===(r=null===(l=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===l?void 0:l.customFields)||void 0===r?void 0:r[t];return{value:i||0,statvalue:(null==i?void 0:i.toString())||"0"}}))},traffic:{label:"Traffic",query:()=>j(u.gql`
363
+ query traffic {
364
+ viewer: viewer {
365
+ ... on User {
366
+ stats {
367
+ traffic
368
+ }
369
+ }
370
+ }
371
+ }
372
+ `,{},(e=>{var a,t,l;const r=null===(l=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.stats)||void 0===l?void 0:l.traffic;return{value:r||0,statvalue:r||0}}))},userStats:{label:"User Stat",query:(e,a,t)=>j(u.gql`
373
+ query userStat(
374
+ $traffic: Boolean!
375
+ $referrals: Boolean!
376
+ $conversions: Boolean!
377
+ $goals: Boolean!
378
+ $rewards: Boolean!
379
+ $widgetLoads: Boolean!
380
+ $revenue: Boolean!
381
+ $generatedRevenue: Boolean!
382
+ $referredRevenue: Boolean!
383
+ ) {
384
+ viewer: viewer {
385
+ ... on User {
386
+ stats {
387
+ traffic @include(if: $traffic)
388
+ referrals @include(if: $referrals)
389
+ conversions @include(if: $conversions)
390
+ goals @include(if: $goals)
391
+ rewards @include(if: $rewards)
392
+ widgetLoads @include(if: $widgetLoads)
393
+ revenue @include(if: $revenue)
394
+ generatedRevenue @include(if: $generatedRevenue)
395
+ referredRevenue @include(if: $referredRevenue)
396
+ }
397
+ }
398
+ }
399
+ }
400
+ `,{...{traffic:!1,referrals:!1,conversions:!1,goals:!1,rewards:!1,widgetLoads:!1,revenue:!1,generatedRevenue:!1,referredRevenue:!1,[t]:!0}},(e=>{var a,l,r;const i=null===(r=null===(l=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===l?void 0:l.stats)||void 0===r?void 0:r[t];return{value:i||0,statvalue:i||0}}))},payoutBalance:{label:"Payout Balance",query:()=>j(u.gql`
401
+ query payoutBalance {
402
+ viewer: viewer {
403
+ ... on User {
404
+ id
405
+ impactConnection {
406
+ publisher {
407
+ payoutsAccount {
408
+ balance
409
+ }
410
+ }
411
+ }
412
+ }
413
+ }
414
+ }
415
+ `,{},(e=>{var a,t,l,r;const i=null===(r=null===(l=null===(t=null===(a=e.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.publisher)||void 0===l?void 0:l.payoutsAccount)||void 0===r?void 0:r.balance;return{value:i||0,statvalue:`${i||0}`}}))}},Q=[{name:"programGoals",route:"/(programGoals)/:metricType/:goalId"},{name:"customFields",route:"/(customFields)/:customField"},{name:"referralsCount",route:"/(referralsCount)/:status?"},{name:"referralsMonth",route:"/(referralsMonth)/:status?"},{name:"referralsWeek",route:"/(referralsWeek)/:status?"},{name:"rewardsCount",route:"/(rewardsCount)/:global?"},{name:"rewardsMonth",route:"/(rewardsMonth)/:global?"},{name:"rewardsWeek",route:"/(rewardsWeek)/:global?"},{name:"rewardsCountFiltered",route:"/(rewardsCountFiltered)/:statType([FUELTANK|INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"},{name:"integrationRewardsCountFiltered",route:"/(integrationRewardsCountFiltered)/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"},{name:"rewardsAssigned",route:"/(rewardsAssigned)/:statType/:unit/:global?"},{name:"rewardsExpired",route:"/(rewardsExpired)/:statType/:unit/:global?"},{name:"rewardsCancelled",route:"/(rewardsCancelled)/:statType/:unit/:global?"},{name:"rewardsPending",route:"/(rewardsPending)/:statType/:unit/:global?"},{name:"rewardsRedeemed",route:"/(rewardsRedeemed)/:statType/:unit/:global?"},{name:"rewardsRedeemedWeek",route:"/(rewardsRedeemedWeek)/:statType/:unit/:global?"},{name:"rewardsRedeemedMonth",route:"/(rewardsRedeemedMonth)/:statType/:unit/:global?"},{name:"rewardsAvailable",route:"/(rewardsAvailable)/:statType/:unit/:global?"},{name:"rewardBalance",route:"/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?"},{name:"traffic",route:"/(traffic)"},{name:"userStats",route:"/(userStats)/:statId"},{name:"payoutBalance",route:"/(payoutBalance)"}],K=Q.map((e=>L(e.route)));function J(e){var a;const{statType:t,flexReverse:l,alignment:r,programId:i=n()}=e;E();const o=d(),u=c(),p=s((()=>K.find((e=>e.exec(t)))),[t]);if(!(null==p?void 0:p.exec(t)))return{props:{value:0,statvalue:"-",flexReverse:l,alignment:r,loading:!1,statTextColor:e.statTextColor,statFontSize:e.statFontSize,descriptionTextColor:e.descriptionTextColor,descriptionFontSize:e.descriptionFontSize,statFontWeight:e.statFontWeight},label:"BAD PROP TYPE"};const v=p.exec(t)[1],m=Q.find((e=>e.name===v)),g=[],f=L(null==m?void 0:m.route,g,{strict:!1,sensitive:!1,end:!0}).exec(t),h=g.map(((e,a)=>f[a+1]?decodeURIComponent(f[a+1]):void 0));h.shift();const b=X[v].label,x=(null==u?void 0:u.jwt)&&X[v].query(i,o,...h);return O("stat:",x),{props:{value:null==x?void 0:x.value,statvalue:null!==(a=null==x?void 0:x.statvalue)&&void 0!==a?a:"...",loading:null==x?void 0:x.loading,flexReverse:l,alignment:r,statTextColor:e.statTextColor,statFontSize:e.statFontSize,descriptionTextColor:e.descriptionTextColor,descriptionFontSize:e.descriptionFontSize,statFontWeight:e.statFontWeight},label:b}}function Y(e){const{statType:a}=e,t=s((()=>K.find((e=>e.exec(a)))),[a]);if(E(),!(null==t?void 0:t.exec(a)))return{props:{value:0,statvalue:"-",loading:!1,flexReverse:e.flexReverse,alignment:e.alignment,statTextColor:e.statTextColor,statFontSize:e.statFontSize,descriptionTextColor:e.descriptionTextColor,descriptionFontSize:e.descriptionFontSize},label:"BAD PROP TYPE"};const l=t.exec(a),r=X[l[1]].label;return{props:h({statvalue:"12345",value:0,flexReverse:e.flexReverse,alignment:e.alignment,statTextColor:e.statTextColor,statFontSize:e.statFontSize,descriptionTextColor:e.descriptionTextColor,descriptionFontSize:e.descriptionFontSize,statFontWeight:e.statFontWeight},e.demoData||{},{arrayMerge:(e,a)=>a}),label:null!=r?r:"Demo Label"}}function ee(a,t){const l=x({Container:{columnGap:a.gap+"px",columnWidth:a.width+"px","& > div":{marginBottom:"24px"}}}),r=l.toString();return e("div",null,e("style",{type:"text/css"},r,"\n :host{\n display: block; \n }\n\n "),e("div",{class:l.classes.Container,part:"sqm-base"},t))}const ae=x({Description:{"& .icon":{color:"var(--sqm-text)","&:hover":{color:"var(--sqm-accent-color-icon)"}},"& input[type=checkbox]":{display:"none"},"& input:checked ~ .details":{transform:"rotate(-180deg)"},"& .details":{position:"absolute",top:"var(--sl-spacing-medium)",right:"var(--sl-spacing-medium)",color:"var(--sqm-text)",fontSize:"var(--sl-font-size-large)","& :hover":{color:"var(--sl-color-primary-700)"},transformOrigin:"50% 37%",transition:"transform var(--sl-transition-medium) ease",cursor:"pointer"},"& input:checked ~ .summary":{transition:"all var(--sl-transition-medium) ease",maxHeight:"300px",marginBottom:"var(--sl-spacing-x-large)"},"& input:checked ~ .summary[progress-bar]":{marginBottom:"var(--sl-spacing-xx-large)"},"& .summary":{display:"block",overflow:"hidden",fontSize:"var(--sl-font-size-small)",maxHeight:"0px",transition:"all var(--sl-transition-fast) ease-out",marginBottom:"var(--sl-spacing-medium)"}}}),te=ae.toString();function le(a){const t=Math.random().toString(36).slice(2);return e("div",{style:{opacity:a.opacity}},e("style",{type:"text/css"},te),e("span",{class:ae.classes.Description},e("input",{type:"checkbox",id:"details-"+t}),e("label",{class:"details",htmlFor:"details-"+t},e("sl-icon",{class:"icon",exportparts:"base: chevron-icon",name:"chevron-down"})),e("span",{class:"summary","progress-bar":a.progressBar},a.content.description)))}const re=()=>e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M15 5H12.4508H9V16H13.5C14.0523 16 14.5 15.5523 14.5 15V9H15C15.5523 9 16 8.55228 16 8V6C16 5.44772 15.5523 5 15 5Z",fill:"#F2C94C"}),e("path",{d:"M1.5 9V15C1.5 15.5523 1.94772 16 2.5 16H7V5H4.64242H1C0.447715 5 0 5.44772 0 6V8C0 8.55228 0.447715 9 1 9H1.5Z",fill:"#F2C94C"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.5 9V10H14.5V9H1.5Z",fill:"#BE9720"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z",fill:"#EB5757"})),ie=()=>e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M15 5H12.4508H9V16H13.5C14.0523 16 14.5 15.5523 14.5 15V9H15C15.5523 9 16 8.55228 16 8V6C16 5.44772 15.5523 5 15 5Z",fill:"#C9C9C9"}),e("path",{d:"M1.5 9V15C1.5 15.5523 1.94772 16 2.5 16H7V5H4.64242H1C0.447715 5 0 5.44772 0 6V8C0 8.55228 0.447715 9 1 9H1.5Z",fill:"#C9C9C9"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.5 9V10H14.5V9H1.5Z",fill:"#A5A3A3"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z",fill:"#828282"})),se=x({ProgressBar:{"& .progress-bar":{height:"0",marginTop:"var(--sl-spacing-large)",marginBottom:"var(--sl-spacing-xxx-large)",marginRight:"var(--sl-spacing-x-small)",fontSize:"var(--sl-font-size-x-small)",display:"grid",lineHeight:"45px",userSelect:"none"},"& .progress-bar.repeatable-steps":{marginLeft:"var(--sl-spacing-x-small)"},"&[data-steps]":{marginTop:"calc(-1*var(--sl-spacing-x-small))"},"&[data-steps] .progress-bar":{marginTop:"var(--sl-spacing-medium)"},"&[data-expired] .progress::after":{backgroundColor:"#bfbfbf"},"&[data-expired] .filled::after":{backgroundColor:"#bfbfbf"},"&[data-complete] .filled::after .progress::after":{backgroundColor:"var(--sl-color-primary-200)"},"& .gift":{textAlign:"center",marginLeft:"-100px",marginRight:"-100px",position:"relative",top:"-18px"},"& .gift.start":{transform:"scale(80%)",top:"-20px"},"& .filled:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"var(--sqm-accent-color-icon)",background:"red"},"& .progress":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .progress::after":{content:'""',width:"12px",height:"12px",display:"flex",backgroundColor:"var(--sqm-accent-color-icon)",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .progress.bg:after":{width:"0",height:"0",border:"none"},"& .progress.top":{position:"relative",top:"-40px"},"& .progress.top:after":{top:"-16%"},"& .empty":{display:"block",textAlign:"center",marginLeft:"-100px",marginRight:"-100px"},"& .empty::after":{content:'""',width:"12px",height:"12px",border:"2px solid #E0E0E0",margin:"-2px",display:"flex",backgroundColor:"white",borderRadius:"50%",position:"relative",left:"47%",top:"-85%"},"& .empty.bg:after":{width:"0",height:"0",border:"none"},"& .remain:after":{content:'""',display:"flex",width:"100%",height:"4px",borderRadius:"4px",backgroundColor:"#E0E0E0"}}},{classNamePrefix:"sqm-prog-bar"}),oe=se.toString();function ne(a){const{progress:t=0,goal:l=1,steps:r=!1,progressBarUnit:i="",repeatable:s=!1,complete:o=!1,expired:n=!1,finite:d=0,opacity:c="1"}=a;let u=function(a,t,l){return a?t?function({progress:a,goal:t,finite:l,expired:r}){const i=[],s=[];let o=Math.floor(a/t);if(o<2){let l=1/t;for(let o=1;o<2*t+1;o++)s.push(l+"fr"),s.push("0fr"),o>a?o==t?(s.push("0fr"),i.push(e("div",{class:"remain"})),i.push(e("div",{class:"empty bg"},t)),i.push(e("div",{class:"gift"},e(ie,null)))):o==2*t?(s.push("0fr"),s.push("0fr"),i.push(e("div",{class:"remain"})),i.push(e("div",{class:"empty bg"},2*t)),i.push(e("div",{class:"gift"},e(ie,null)))):(i.push(e("div",{class:"remain"})),i.push(e("div",{class:"empty"},o))):o==t?(s.push("0fr"),i.push(e("div",{class:"filled"})),i.push(e("div",{class:"progress bg"},o)),i.push(e("div",{class:"gift"},e(r?ie:re,null)))):(i.push(e("div",{class:"filled"})),i.push(e("div",{class:"progress"},o)))}else if(l&&o>=l){let n=1/t;o>2&&(s.push("0fr"),s.push("0fr"),i.push(e("div",{class:"progress bg"},t*(l-2))),i.push(e("div",{class:"gift start"},e(r?ie:re,null))));for(let o=1;o<2*t+1;o++)s.push(n+"fr"),s.push("0fr"),o>a?o==t&&(s.push("0fr"),i.push(e("div",{class:"remain"})),i.push(e("div",{class:"progress bg"},t*(l-1))),i.push(e("div",{class:"gift"},e(ie,null)))):o==t?(s.push("0fr"),i.push(e("div",{class:"filled"})),i.push(e("div",{class:"progress bg"},t*(l-1))),i.push(e("div",{class:"gift"},e(r?ie:re,null)))):o==2*t?(s.push("0fr"),s.push("0fr"),i.push(e("div",{class:"filled"})),i.push(e("div",{class:"progress bg"},t*l)),i.push(e("div",{class:"gift"},e(r?ie:re,null)))):(i.push(e("div",{class:"filled"})),i.push(e("div",{class:"progress"},o+t*(l-2))))}else{let l=a%t+t,n=1/t;s.push("0fr"),s.push("0fr"),i.push(e("div",{class:"progress bg"},t*(o-1))),i.push(e("div",{class:"gift start"},e(r?ie:re,null)));for(let a=1;a<2*t+1;a++)s.push(n+"fr"),s.push("0fr"),a<=t?a==t?(s.push("0fr"),i.push(e("div",{class:"filled"})),i.push(e("div",{class:"progress bg"},a+t*(o-1))),i.push(e("div",{class:"gift"},e(r?ie:re,null)))):(i.push(e("div",{class:"filled"})),i.push(e("div",{class:"progress"},a+t*(o-1)))):a>l?a==2*t?(s.push("0fr"),s.push("0fr"),i.push(e("div",{class:"remain"})),i.push(e("div",{class:"empty bg"},a+t*(o-1))),i.push(e("div",{class:"gift"},e(ie,null)))):(i.push(e("div",{class:"remain"})),i.push(e("div",{class:"empty"},a+t*(o-1)))):(i.push(e("div",{class:"filled"})),i.push(e("div",{class:"progress"},a+t*(o-1))))}return{items:i,columns:s.join(" ")}}(l):function({progress:a,goal:t,progressBarUnit:l,finite:r,expired:i}){let s=Math.floor(a/t),o=a%t/t*.5;const n=[];let d="";return 0==s?(d=o+"fr 0fr "+(.5-o)+"fr 0fr 0fr 0.5fr 0fr 0fr",n.push(e("div",{class:"filled"})),n.push(e("div",{class:a==t?"progress top bg":"progress top"},l+a)),n.push(e("div",{class:"remain"})),n.push(e("div",{class:"progress bg"},l+t)),n.push(e("div",{class:"gift"},e(a==t?i?ie:re:ie,null))),n.push(e("div",{class:"remain"})),n.push(e("div",{class:"progress bg"},l+2*t)),n.push(e("div",{class:"gift"},e(ie,null)))):1==s?(d="0.5fr 0fr 0fr "+o+"fr 0fr "+(.5-o)+"fr 0fr 0fr",n.push(e("div",{class:"filled"})),n.push(e("div",{class:"progress bg"},l+t)),n.push(e("div",{class:"gift"},e(i?ie:re,null))),n.push(e("div",{class:"filled"})),n.push(e("div",{class:a==t?"progress top bg":"progress top"},a==t?"":l+a)),n.push(e("div",{class:"remain"})),n.push(e("div",{class:"progress bg"},l+2*t)),n.push(e("div",{class:"gift"},e(ie,null)))):r&&s>=r?(s>2?(n.push(e("div",{class:"progress bg"},l+t*(r-2))),n.push(e("div",{class:"gift start"},e(i?ie:re,null))),d="0fr 0fr 0.5fr 0fr 0fr 0.5fr 0fr 0fr"):d="0.5fr 0fr 0fr 0.5fr 0fr 0fr",n.push(e("div",{class:"filled"})),n.push(e("div",{class:"progress bg"},l+t*(r-1))),n.push(e("div",{class:"gift"},e(i?ie:re,null))),n.push(e("div",{class:"filled"})),n.push(e("div",{class:"progress bg"},l+t*r)),n.push(e("div",{class:"gift"},e(i?ie:re,null)))):(d="0fr 0fr 0.5fr 0fr 0fr "+o+"fr 0fr "+(.5-o)+"fr 0fr 0fr",n.push(e("div",{class:"progress bg"},l+t*(s-1))),n.push(e("div",{class:"gift start"},e(i?ie:re,null))),n.push(e("div",{class:"filled"})),n.push(e("div",{class:"progress bg"},l+t*s)),n.push(e("div",{class:"gift"},e(i?ie:re,null))),n.push(e("div",{class:"filled"})),n.push(e("div",{class:a==t*s?"progress top bg":"progress top"},a==t*s?"":l+a)),n.push(e("div",{class:"remain"})),n.push(e("div",{class:"progress bg"},l+t*(s+1))),n.push(e("div",{class:"gift"},e(ie,null)))),{items:n,columns:d}}(l):t?function({progress:a,goal:t,expired:l}){const r=[],i=[];let s=1/t;for(let l=1;l<t;l++)i.push(s+"fr"),i.push("0fr"),l>a?(r.push(e("div",{class:"remain"})),r.push(e("div",{class:"empty"},l))):(r.push(e("div",{class:"filled"})),r.push(e("div",{class:"progress"},l)));return i.push(s+"fr"),i.push("0fr"),t<=a?(i.push("0fr"),r.push(e("div",{class:"filled"})),r.push(e("div",{class:"progress bg"},t)),r.push(e("div",{class:"gift"},e(l?ie:re,null)))):(i.push("0fr"),r.push(e("div",{class:"remain"})),r.push(e("div",{class:"empty bg"},t)),r.push(e("div",{class:"gift"},e(ie,null)))),{items:r,columns:i.join(" ")}}(l):function({progress:a,goal:t,progressBarUnit:l,expired:r}){const i=[];let s="";const o=a/t;return s=de(o,0,1)+"fr 0fr "+de(1-o,0,1)+"fr 0fr 0fr",i.push(e("div",{class:"filled"})),i.push(e("div",{class:de(a,0,t)==t?"progress top bg":"progress top"},de(a,0,t)==t?"":l+de(a,0,t))),i.push(e("div",{class:"remain"})),i.push(e("div",{class:"progress bg"},l+t)),i.push(e("div",{class:"gift"},de(a,0,t)==t?e(r?ie:re,null):e(ie,null))),{items:i,columns:s}}(l)}(s,r,a);const{columns:p,items:v}=u;return e("div",{class:se.classes.ProgressBar,"data-expired":n,"data-complete":o,"data-steps":r,"data-done":l<=t,style:{opacity:c}},e("style",{type:"text/css"},oe),e("div",{class:!Boolean(d)&&t>=2*l||Boolean(d)&&t>2*l?"progress-bar repeatable-steps":"progress-bar",style:{gridTemplateColumns:p,marginLeft:0!==t||r?"":"var(--sl-spacing-x-small)"}},v))}function de(e,a,t){return Math.min(Math.max(e,a),t)}function ce(a){var t,l;const{callbacks:i,states:s,content:o}=a;console.log("buttonType ",o.buttonType);const n=x({TaskCard:{display:"inline-block",width:"100%","& .main":{position:"relative",boxSizing:"border-box",background:o.backgroundColor||"var(--sqm-portal-background)",border:`var(--sqm-border-thickness) solid ${o.borderColor||"var(--sqm-border-color)"}`,borderRadius:"var(--sqm-border-radius-normal)",boxShadow:"1px 2px 4px rgba(211, 211, 211, 0.2)",fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)",color:o.textColor||"var(--sqm-text)"},"& .main.complete":{opacity:"0.8",borderColor:"var(--sqm-accent-color-border)"},"& .main.expired":{color:o.textColor||"var(--sqm-text)",opacity:"0.8"},"& .title":{fontSize:"var(--sl-font-size-medium)",color:o.textColor||"var(--sqm-text)"},"& .container":{margin:"var(--sl-spacing-medium)"},"& .container.subdued":{opacity:"0.45"},"& .container > div":{margin:"var(--sl-spacing-medium) 0"}},NotStarted:{fontSize:"var(--sl-font-size-small)",padding:"var(--sl-spacing-medium)",color:o.textColor||"var(--sl-color-primary-600)",border:`var(--sqm-border-thickness, 1px) solid ${o.borderColor||"var(--sl-color-neutral-200)"}`,borderRadius:"var(--sqm-border-radius-normal) var(--sqm-border-radius-normal) 0 0",borderBottom:"none",background:o.backgroundColor||"var(--sl-color-primary-50)",fontWeight:"var(--sl-font-weight-semibold)",lineHeight:"var(--sl-line-height-dense)","& .icon":{position:"relative",top:"0.1em",marginRight:"var(--sl-spacing-small)",color:o.textColor||"var(--sqm-text)"}},Ended:{fontSize:"var(--sl-font-size-small)",padding:"var(--sl-spacing-medium)",color:o.textColor||"var(--sl-color-warning-600)",border:`var(--sqm-border-thickness, 1px) solid ${o.borderColor||"var(--sl-color-neutral-200)"}`,borderRadius:"var(--sqm-border-radius-normal) var(--sqm-border-radius-normal) 0 0",borderBottom:"none",background:o.backgroundColor||"var(--sl-color-warning-50)",fontWeight:"var(--sl-font-weight-semibold)",lineHeight:"var(--sl-line-height-dense)","& .icon":{position:"relative",top:"0.1em",marginRight:"var(--sl-spacing-small)",color:o.textColor||"var(--sqm-text)"}},Header:{display:"flex","& .icon":{position:"relative",top:"5%",alignSelf:"center",lineHeight:"0",color:"var(--sqm-accent-color-icon)",fontSize:"var(--sl-font-size-large)",marginRight:"var(--sl-spacing-x-small)"},"& .value":{alignSelf:"center",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)",color:o.textColor||"var(--sqm-text)",lineHeight:"100%",marginRight:"var(--sl-spacing-xx-small)"},"& .text":{alignSelf:"end",textTransform:"uppercase",fontSize:"var(--sl-font-size-x-small)",color:o.textColor||"var(--sqm-text)",lineHeight:"var(--sl-font-size-medium)",marginRight:"var(--sl-spacing-xx-small)"},"& .end":{color:o.textColor||"var(--sl-color-warning-500)",fontWeight:"var(--sl-font-weight-semibold)",marginBottom:"var(--sl-spacing-xx-small)"},"& .neutral":{color:o.textColor||"var(--sl-color-neutral-400)"}},Footer:{"&[data-subdue] .success":{color:o.textColor||"var(--sl-color-primary-300)"},"&[data-subdue] .neutral":{color:o.textColor||"var(--sqm-text)"},display:"flex","& .icon":{fontSize:"var(--sl-font-size-xx-small)",marginRight:"var(--sl-spacing-xx-small)",verticalAlign:"middle"},"& .text":{marginTop:"auto",verticalAlign:"text-bottom",fontSize:"var(--sl-font-size-x-small)",color:o.textColor||"var(--sqm-text)"},"& .success":{color:o.textColor||"var(--sqm-text)",fontWeight:"var(--sl-font-weight-semibold)"},"& .neutral":{color:o.textColor||"var(--sqm-text)"},"& .datetime":{display:"block",marginTop:"var(--sl-spacing-xx-small)"}}}),d=n.toString(),c=o.rewardDuration&&M.DateTime.fromISO(o.rewardDuration.split("/")[0]),u=o.rewardDuration&&M.DateTime.fromISO(o.rewardDuration.split("/")[1]),p=M.DateTime.now();if(o.displayDuration){const a=null===(t=o.displayDuration.split("/"))||void 0===t?void 0:t[0],r=null===(l=o.displayDuration.split("/"))||void 0===l?void 0:l[1],i=a?M.DateTime.fromISO(a):p,s=r?M.DateTime.fromISO(r):p;if(p<i||p>s)return e("span",null)}const v=e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.81818 10C1.81818 5.48131 5.48131 1.81818 10 1.81818C14.5187 1.81818 18.1818 5.48131 18.1818 10C18.1818 14.5187 14.5187 18.1818 10 18.1818C5.48131 18.1818 1.81818 14.5187 1.81818 10ZM10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0ZM15.7692 6.96189C16.1398 6.48683 16.0551 5.80132 15.58 5.43077C15.1049 5.06022 14.4194 5.14495 14.0489 5.62001L8.72994 12.4391L5.86229 9.5715C5.43627 9.14548 4.74554 9.14548 4.31952 9.5715C3.89349 9.99752 3.89349 10.6882 4.31952 11.1143L8.05976 14.8545C8.28083 15.0756 8.58613 15.1912 8.89818 15.172C9.21023 15.1528 9.49905 15.0006 9.69133 14.7541L15.7692 6.96189Z",fill:"currentColor"})),m=e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("circle",{cx:"10",cy:"10",r:"10",fill:"currentColor"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.65 6.19231C15.0459 6.5011 15.1165 7.07236 14.8077 7.46825L9.74277 13.9617C9.58254 14.1672 9.34186 14.294 9.08182 14.31C8.82178 14.326 8.56736 14.2297 8.38314 14.0454L5.26627 10.9286C4.91124 10.5735 4.91124 9.99794 5.26627 9.64292C5.62129 9.2879 6.19689 9.2879 6.55191 9.64292L8.94162 12.0326L13.3741 6.35001C13.6828 5.95412 14.2541 5.88352 14.65 6.19231Z",fill:"white"})),g=e("svg",{width:11,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z",fill:"currentColor"})),f=s.progress>=o.goal,h=o.showProgressBar?Math.floor(s.progress/o.goal):s.progress,C=f&&!1===o.repeatable||o.finite&&s.progress>=o.finite*o.goal,y=o.rewardDuration&&u<=p,w=o.rewardDuration&&p<=c,q=y||w;return e("div",{class:n.classes.TaskCard,part:"sqm-base"},e("style",{type:"text/css"},d,"\n\t:host{\n\t\tdisplay: block;\n\t\tmargin-bottom: var(--sl-spacing-large);\n\t}\n\n "),!s.loading&&w&&e("div",{class:n.classes.NotStarted},e("span",{class:"icon"},e("sl-icon",{name:"info-circle-fill"})),r.formatMessage({id:"startsOnMessage",defaultMessage:o.startsOnMessage},{startDate:c.setLocale(b(s.locale)).toLocaleString(M.DateTime.DATETIME_MED)})),!s.loading&&y&&e("div",{class:n.classes.Ended},e("span",{class:"icon"},e("sl-icon",{exportparts:"base: task-card-icon",name:"exclamation-triangle-fill"})),r.formatMessage({id:"endedMessage",defaultMessage:o.endedMessage},{endDate:u.setLocale(b(s.locale)).toLocaleString(M.DateTime.DATETIME_MED)})),e("div",{part:"sqm-style-container",style:{borderRadius:q&&"0 0 var(--sqm-border-radius-normal) var(--sqm-border-radius-normal)"},class:q?"main expired":C?"main complete":"main"},e("div",{class:"container",part:"sqm-card-container","data-subdue":C||q},e("div",{class:n.classes.Header,style:{opacity:C||q?"0.45":"1"}},s.loading?e("sl-skeleton",{style:{width:"22%",margin:"0"}}):e("div",null,f&&e("span",{class:q?"icon neutral":"icon"},C?m:v),e("span",{part:"sqm-value",class:"value"},o.rewardAmount),e("span",{part:"sqm-unit",class:"text"},o.rewardUnit))),s.loading?e("sl-skeleton",{style:{width:"42%",margin:"var(--sl-spacing-medium) 0"}}):e("div",{class:"title",part:"sqm-title",style:{marginBottom:o.description?"":o.steps?"var(--sl-spacing-x-large)":o.showProgressBar?"var(--sl-spacing-xx-large)":"",opacity:C||q?"0.45":"1"}},o.cardTitle),s.loading?e("sl-skeleton",{style:{margin:"var(--sl-spacing-medium) 0"}}):o.description&&e(le,Object.assign({},a,{opacity:C||q?"0.45":"1"})),o.showProgressBar&&s.loading?e("sl-skeleton",{style:{margin:"var(--sl-spacing-medium) 0"}}):o.showProgressBar&&e(ne,Object.assign({},a.content,a.states,{opacity:C||q?"0.75":"1",complete:C,expired:q})),e("div",{class:n.classes.Footer,"data-subdue":C||q},s.loading?e("sl-skeleton",{style:{width:"25%",marginLeft:"auto"}}):e("div",{style:{display:"contents"}},e("span",{class:"text"},o.repeatable&&e("div",null,e("span",{class:h>0?q?"icon neutral":"icon success":"icon neutral","data-subdue":C||q},g),e("span",{class:h>0?q?"neutral":"success":"neutral","data-subdue":C||q},r.formatMessage({id:"completedMessage",defaultMessage:o.completedText},{finite:o.finite,count:o.finite?Math.min(h,o.finite):h}))),u&&!q&&e("span",{class:"datetime neutral","data-subdue":C||q},r.formatMessage({id:"expiryMessage",defaultMessage:o.expiryMessage},{endDate:u.setLocale(b(s.locale)).toLocaleString(M.DateTime.DATETIME_MED)}))),o.hideButton?"":e("sl-button",{exportparts:`base: ${o.buttonType||"primary"}button-base`,type:"primary",id:"sl-button",size:"small",onClick:i.onClick,loading:s.loadingEvent,disabled:C||q,style:{opacity:C||q?"0.45":"1"}},o.buttonText))))))}const ue={Wrapper:{...S,"max-width":"600px"},Column:$,HostBlock:R,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:I,ErrorStyle:k},pe=x(ue),ve=pe.toString();function me(a){var t,l,r,i,s,o,n,d,c,u,p,v,m;const{states:g,refs:f,callbacks:h,content:b}=a;return g.error&&window.scrollTo({top:0,left:0,behavior:"smooth"}),e("div",{class:pe.classes.Wrapper,part:"sqm-base"},e("style",{type:"text/css"},"\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n",ve),e(V,{type:"h3"},b.pageLabel),e("sl-form",{class:pe.classes.Column,"onSl-submit":h.submit,ref:e=>f.formRef.current=e,novalidate:!0},g.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},a.states.error)),b.formData,!g.hideInputs&&e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"email",name:"/email",label:b.emailLabel||"Email",disabled:g.loading,required:!0,validationError:({value:e})=>e?e.includes("@")?void 0:b.invalidEmailErrorMessage:b.requiredFieldErrorMessage},(null===(l=null===(t=g.registrationFormState)||void 0===t?void 0:t.validationErrors)||void 0===l?void 0:l.email)?{class:pe.classes.ErrorStyle,helpText:(null===(i=null===(r=g.registrationFormState)||void 0===r?void 0:r.validationErrors)||void 0===i?void 0:i.email)||b.requiredFieldErrorMessage}:[])),!g.hideInputs&&e("sqm-password-field",{fieldLabel:b.passwordLabel,"disable-validation":g.disablePasswordValidation,meetsRequirementsText:b.meetsRequirementsText,doesNotMeetRequirementsText:b.doesNotMeetRequirementsText,minErrorText:b.minErrorText,uppercaseErrorText:b.uppercaseErrorText,lowercaseErrorText:b.lowercaseErrorText,hasErrorText:b.hasErrorText}),b.passwordField,!g.hideInputs&&g.confirmPassword&&e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"password",name:"/confirmPassword",label:b.confirmPasswordLabel,disabled:g.loading||(null===(s=g.registrationFormState)||void 0===s?void 0:s.disabled),required:!0},(null===(n=null===(o=g.registrationFormState)||void 0===o?void 0:o.initialData)||void 0===n?void 0:n.confirmPassword)?{value:null===(c=null===(d=g.registrationFormState)||void 0===d?void 0:d.initialData)||void 0===c?void 0:c.confirmPassword}:{},(null===(p=null===(u=g.registrationFormState)||void 0===u?void 0:u.validationErrors)||void 0===p?void 0:p.confirmPassword)?{class:pe.classes.ErrorStyle,helpText:(null===(m=null===(v=g.registrationFormState)||void 0===v?void 0:v.validationErrors)||void 0===m?void 0:m.confirmPassword)||b.requiredFieldErrorMessage}:[])),b.terms,e("div",{class:pe.classes.ButtonsContainer},e("sl-button",{submit:!0,loading:g.loading,exportparts:"base: primarybutton-base",type:"primary"},b.submitLabel||"Register"),b.secondaryButton)))}C.setup(y());const ge=C.createStyleSheet({ErrorStyle:{"&::part(control)":{background:"var(--sl-color-danger-10)",borderColor:"var(--sl-color-danger-500)",outline:"var(--sl-color-danger-500)"},"&:host":{"--focus-ring":"0 0 0 var(--sl-focus-ring-width) red !important"}},ErrorMessageStyle:{margin:0,marginTop:"5px",color:"var(--sl-color-danger-500)",fontSize:"var(--sl-input-help-text-font-size-medium)",fontFamily:"var(--sl-font-sans)",fontWeight:"var(--sl-font-weight-normal)"},FieldContainer:{"margin-bottom":"var(--sl-spacing-large)"}}),fe=ge.toString();function he(a){var t,l;const{states:i,content:s,callbacks:o}=a;return e("div",{class:ge.classes.FieldContainer,part:"sqm-base"},e("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\nsl-checkbox::part(label){\n font-size: var(--sl-input-label-font-size-small);\n font-weight: var(--sl-font-weight-normal);\n line-height: 20px;\n}\nsl-checkbox::part(base){\n align-items: start;\n}\n",fe),e("sl-checkbox",Object.assign({exportparts:"label: input-label, base: input-base",name:`/${s.checkboxName}`,checked:i.checked,"onSl-change":e=>{e.target.value=e.target.checked,o.setChecked(e.target.value)}},s.checkboxOptional?[]:{required:!1},{disabled:(null===(t=i.registrationFormState)||void 0===t?void 0:t.loading)||(null===(l=i.registrationFormState)||void 0===l?void 0:l.disabled),required:!1}),r.formatMessage({id:s.checkboxName+"-message",defaultMessage:s.checkboxLabel},{labelLink:e("a",{href:s.checkboxLabelLink,target:"_blank"},s.checkboxLabelLinkText||s.checkboxLabelLink)})))}function be(a){const t=!a.loading&&a.error,l=x({HostBlock:R,couponCodeLabel:{margin:"var(--sl-spacing-x-small) 0",color:a.textColor||"var(--sqm-text-subdued)",fontSize:"var(--sl-font-size-small)"}}),r=l.toString();return e("div",null,e("style",{type:"text/css"},r,"\n :host{\n display: block; \n width: 100%;\n }\n"),e("p",{class:l.classes.couponCodeLabel,style:{textAlign:a.textAlign}},a.couponCodeLabel),t?e("sqm-form-message",{type:a.errorType,exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},a.errorText)):e(T,Object.assign({},a)))}C.setup(y());const xe=C.createStyleSheet({ErrorStyle:{"--sl-input-border-color":"var(--sl-color-danger-500)","--sl-input-background-color":"var(--sl-color-danger-10)","--sl-input-border-color-focus":"var(--sl-color-danger-500)","--sl-input-border-color-hover":"var(--sl-color-danger-500)"},ErrorMessageStyle:{margin:0,color:"var(--sl-color-danger-500)",fontSize:"var(--sl-input-help-text-font-size-medium)"},FieldContainer:{"margin-bottom":"var(--sl-spacing-large)"}}),Ce=xe.toString();function ye(a){var t,l,i,s,o,n,d;const{states:c,content:u}=a,p=null===(t=null==c?void 0:c.registrationFormState)||void 0===t?void 0:t.validationErrors;return e("div",{class:xe.classes.FieldContainer,part:"sqm-base"},e("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\nsl-select::part(label){\n font-size: var(--sl-input-label-font-size-small);\n font-weight: var(--sl-font-weight-semibold);\n}\n",Ce),e("sl-select",Object.assign({exportparts:"label: input-label, base: input-base",label:u.dropdownLabel,name:`/${u.dropdownName}`},u.dropdownOptional?[]:{required:!0},{disabled:(null===(l=c.registrationFormState)||void 0===l?void 0:l.loading)||(null===(i=c.registrationFormState)||void 0===i?void 0:i.disabled)},(null===(o=null===(s=c.registrationFormState)||void 0===s?void 0:s.initialData)||void 0===o?void 0:o[u.dropdownName])?{value:null===(d=null===(n=c.registrationFormState)||void 0===n?void 0:n.initialData)||void 0===d?void 0:d[u.dropdownName]}:{},(null==p?void 0:p[u.dropdownName])?{class:xe.classes.ErrorStyle}:[]),u.selectOptions),(null==p?void 0:p[u.dropdownName])&&e("p",{class:xe.classes.ErrorMessageStyle},r.formatMessage({id:`errorMessage-${u.dropdownName}`,defaultMessage:u.errorMessage})))}const we=a=>{var t,l,r,i;const{states:s,callbacks:o}=a,{text:n}=s,{errors:d}=s.formState;return s.showEdit?e("div",{class:`CardWrapper ${!s.showEdit&&"ShowEdit"}`,part:"sqm-base"},e("h2",{part:"sqm-header",style:{fontSize:"var(--sl-font-size-x-large)",margin:"0px",textAlign:"center"}},n.editprofileheader),e("form",{class:"FormWrapper",onSubmit:o.onSubmit},e("div",{class:"FormSection"},s.formState.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s.formState.error)),e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",value:s.formState.firstName,onInput:o.onChange,label:n.firstnametext,disabled:s.loading},d.firstName&&"valid"!==d.firstName.status?{class:"ErrorStyles",helpText:n.fieldEmptyText}:[],{id:"firstName",name:"firstName",error:d.firstName&&"valid"!==d.firstName.status?d.firstName.message:void 0})),e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",value:s.formState.lastName,onInput:o.onChange,label:n.lastnametext,disabled:s.loading,id:"lastName",name:"lastName"},d.lastName&&"valid"!==d.lastName.status?{class:"ErrorStyles",helpText:n.fieldEmptyText}:[],{error:d.lastName&&"valid"!==d.lastName.status?d.lastName.message:void 0}))),n.showregion&&s.formState.currentRegion&&e("sl-input",{exportparts:"label: input-label, base: input-base",disabled:!0,value:s.formState.currentRegion,label:n.currentregiontext,id:"currentRegion",name:"currentRegion"}),e("div",{class:"ButtonWrapper"},e("sl-button",{type:"primary",loading:s.loading,disabled:s.submitDisabled,onClick:e=>{o.onSubmit(e)},submit:!0,exportparts:"base: primarybutton-base"},n.updatetext),e("sl-button",{onClick:()=>{o.setShowEdit(!1)},type:"secondary",exportparts:"base: secondarybutton-base"},n.canceltext)))):e("div",{class:`CardWrapper FormWrapper ${!s.showEdit&&"ShowEdit"}`,part:"sqm-base"},e("div",{class:"FormSection"},e("h2",{part:"sqm-header",style:{fontSize:"var(--sl-font-size-x-large)",marginBottom:"0px",textAlign:"center"}},n.editprofileheader),e("div",null,e("p",{style:{fontSize:"var(--sl-font-size-medium)"}},null===(t=s.user)||void 0===t?void 0:t.firstName," ",null===(l=s.user)||void 0===l?void 0:l.lastName),e("p",{style:{fontSize:"var(--sl-font-size-medium)"},title:null===(r=s.user)||void 0===r?void 0:r.email},null===(i=s.user)||void 0===i?void 0:i.email))),e("sl-button",{type:"primary",loading:s.loading,onClick:()=>{o.resetForm(),o.setShowEdit(!0)},exportparts:"base: primarybutton-base"},n.editprofiletext))};function qe(a){var t,l,i;const{states:s,data:o,elements:n}=a,{styles:d}=s,c=x({Leaderboard:{"& table":{width:"100%",borderCollapse:"collapse",background:d.background||"transparent",borderRadius:d.borderRadius?`${d.borderRadius}px`:"0"},"& th":{textAlign:"left",padding:"var(--sl-spacing-medium)",paddingTop:"0",fontSize:"var(--sl-font-size-medium)",fontWeight:"var(--sl-font-weight-semibold)"},"& tr:not(:first-child)":{borderTop:`var(--sqm-bordr-thickness) solid ${d.borderColor||"var(--sqm-border-color)"}`},"& td":{fontSize:"var(--sl-font-size-medium)",fontWeight:"var(--sl-font-weight-normal)"},"& .ellipses":{textAlign:"left",padding:"0",color:d.textColor||"var(--sqm-text)",paddingLeft:"25%"},"& .highlight":{background:d.viewingUserHighlightColor||"var(--sqm-accent-color-background)","& td, th":{color:d.viewingUserHighlightTextColor||"var(--sqm-text)"}},"& td, th":{color:d.textColor||"var(--sqm-text)",padding:"var(--sl-spacing-medium)"},"& .User":{width:"100%"},"& .Score":{width:"auto",whiteSpace:"nowrap"},"& .Rank":{whiteSpace:"nowrap"},"& .fullWidth":{width:"100%"}}}),u=c.toString(),p="\n :host{\n display: block;\n }\n";if(s.isEssentials)return e("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg","empty-state-header":"Leaderboards aren’t available on your plan","empty-state-text":"Contact {supportText} to upgrade your plan and start leveraging gamification in your program.","support-text":"Support"});if(s.loading)return e("div",{class:c.classes.Leaderboard,style:{width:d.width||"100%"}},e("style",{type:"text/css"},u,p),e("table",null,[...Array(10)].map((()=>e("tr",null,e("td",null,e("sl-skeleton",null)))))));if(!s.hasLeaders)return n.empty;let v=!1;const m=e=>{if(!e.firstName&&!e.lastInitial)return d.anonymousUser;const{firstName:a,lastInitial:t}=e;return a&&t?`${a} ${t}`:a||t?a||t:d.anonymousUser},g=(e,a)=>{if(!e)return d.hideNames?`${d.viewingUserText}`:"-";const t=` - ${d.viewingUserText}`;return d.rankSuffix?r.formatMessage({id:"rank",defaultMessage:d.rankSuffix},{rank:e})+`${a&&d.hideNames?t:""}`:`${e} ${a&&d.hideNames?t:""}`};return e("div",{class:c.classes.Leaderboard,part:"sqm-base",style:{width:d.width||"100%"}},e("style",{type:"text/css"},u,p),e("table",{part:"sqm-table"},e("tr",null,d.showRank&&e("th",{class:"Rank "+(d.hideNames?"fullWidth":"")},d.rankheading),!d.hideNames&&e("th",{class:"User"},d.usersheading),e("th",{class:"Score"},d.statsheading)),null===(t=o.leaderboard)||void 0===t?void 0:t.map((a=>{var t,l;a.rowNumber===(null===(t=o.viewerRank)||void 0===t?void 0:t.rowNumber)&&(v=!0);const r=!d.hideViewer&&a.rowNumber===(null===(l=o.viewerRank)||void 0===l?void 0:l.rowNumber);return e("tr",{class:r?"highlight":""},d.showRank&&e("td",{class:"Rank"},g(a.rank,r)),!d.hideNames&&e("td",{class:"User"},m(a)),e("td",{class:"Score"},a.textValue))})),!v&&!d.hideViewer&&e("tr",null,e("td",{colSpan:100,class:"ellipses"},e("sl-icon",{name:"three-dots",style:{verticalAlign:"middle"}}))),!v&&!d.hideViewer&&e("tr",{class:"highlight"},d.showRank&&e("td",{class:"Rank"},g(null===(l=o.viewerRank)||void 0===l?void 0:l.rank,!0)),!d.hideNames&&e("td",{class:"User"},m(o.viewerRank||{})),e("td",{class:"Score"},(null===(i=o.viewerRank)||void 0===i?void 0:i.textValue)||"0"))))}const Re=["var(--sl-spacing-xxx-small)","var(--sl-spacing-xx-small)","var(--sl-spacing-x-small)","var(--sl-spacing-small)","var(--sl-spacing-medium)","var(--sl-spacing-large)","var(--sl-spacing-x-large)","var(--sl-spacing-xx-large)","var(--sl-spacing-xxx-large)","var(--sl-spacing-xxxx-large)"],Se=e=>e?A(e)?e:`url(${e})`:"";function $e(a){const{states:t,content:l}=a,r=(e,a)=>{var t={small:7,medium:8,large:9}[e];return H(650)?t-=2:H(767)&&(t-=1),a?Re[t-2]:Re[t]},i=e=>"small"==e?"1%":"medium"==e?"3%":"5%",s={TwoColumnContainer:{display:"flex","@media screen and (max-width: 650px)":{flexDirection:"wrap-reverse"==t.wrapDirection?"column-reverse":"column",justfiyContent:"center"}},ColumnPadding:{paddingTop:"none"==t.paddingSize?"0px":r(t.paddingSize),paddingBottom:"none"==t.paddingSize?"0px":r(t.paddingSize),paddingLeft:"none"==t.paddingSize?"0px":i(t.paddingSize),paddingRight:"none"==t.paddingSize?"0px":i(t.paddingSize)},ColumnWrapper:{"&:first-of-type":{background:`no-repeat center/cover ${Se(t.background)}`},"&:last-of-type":{background:`no-repeat center/cover ${Se(t.secondaryBackground)}`},"@media screen and (min-width: 650px)":{flex:"1 1 0"},minHeight:`${t.minHeight}px`,display:"block"},HideColumn:{"@media screen and (max-width: 650px)":{display:"none"}},SingleColumnContainer:{background:`no-repeat center/cover ${Se(t.background)}`,minHeight:`${t.minHeight}px`},Container:{width:"100%",maxWidth:"var(--sqm-max-width)",margin:"0 auto",flex:1,display:"flex",flexDirection:"column",minHeight:"100%"}},o=x(s),n=o.toString();return e("div",{class:o.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},"\n :host{ \n height: 100%;\n display: contents;\n }\n sqm-hero{ \n height: 100%;\n display: contents;\n }\n img{\n max-width: 100%;\n height: auto;\n }\n \n",n),2==t.columns?e("div",{class:o.classes.TwoColumnContainer,part:"sqm-two-col-container"},e("div",{part:"sqm-two-col-primary-col",class:`${o.classes.ColumnWrapper} ${o.classes.ColumnPadding} ${"primary"===t.columnToHideInMobile?o.classes.HideColumn:""}`},l.primaryColumn),e("div",{part:"sqm-two-col-secondary-col",class:`${o.classes.ColumnWrapper} ${o.classes.ColumnPadding} ${"secondary"===t.columnToHideInMobile?o.classes.HideColumn:""}`},l.secondaryColumn)):e("div",{part:"sqm-single-col",class:`${o.classes.SingleColumnContainer} ${o.classes.ColumnPadding}`},l.primaryColumn))}const Ie={ErrorStyle:k,FieldContainer:{"margin-bottom":"var(--sl-spacing-large)"}};C.setup(y());const ke=C.createStyleSheet(Ie),Te=ke.toString();function Ee(a){var t,l,i,s,o,n,d;const{states:c,content:u}=a,p=null===(t=null==c?void 0:c.registrationFormState)||void 0===t?void 0:t.validationErrors;return e("div",{class:ke.classes.FieldContainer,part:"sqm-base"},e("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n",Te),e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",name:`/${u.fieldName}`,type:u.fieldType,label:u.fieldLabel},u.fieldOptional?[]:{required:!0},{disabled:(null===(l=c.registrationFormState)||void 0===l?void 0:l.loading)||(null===(i=c.registrationFormState)||void 0===i?void 0:i.disabled)},(null===(o=null===(s=c.registrationFormState)||void 0===s?void 0:s.initialData)||void 0===o?void 0:o[u.fieldName])?{value:null===(d=null===(n=c.registrationFormState)||void 0===n?void 0:n.initialData)||void 0===d?void 0:d[u.fieldName]}:{},(null==p?void 0:p[u.fieldName])?{class:ke.classes.ErrorStyle,helpText:r.formatMessage({id:`errorMessage-${u.fieldName}`,defaultMessage:u.errorMessage||(null==p?void 0:p[u.fieldName])})}:[])))}const Me=x({ErrorStyle:k,FieldsContainer:{"& sl-input":{"margin-bottom":"var(--sl-spacing-large)"}}}),Ve=Me.toString();function Le(a){var t,l,r,i,s,o,n,d,c,u,p,v,m;const{states:g}=a,f=null===(t=null==g?void 0:g.registrationFormState)||void 0===t?void 0:t.validationErrors;return e("div",{class:Me.classes.FieldsContainer},e("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n*::part(input-label), *::part(select-label), *::part(textarea-label){\n font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));\n font-weight: var(--sl-font-weight-semibold);\n color: var(--sqm-input-label-color, var(--sqm-text), black);\n}\n\n*::part(input-base), *::part(select-base), *::part(textarea-base){\n background-color: var(--sqm-input-background, #fff);\n border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);\n color: var(--sqm-input-color, white);\n border-width: var(--sqm-border-thickness, 1px);\n}\n\nsl-input::part(base):focus,\nsl-select::part(form-control-wrapper):focus,\nsl-textare::part(textarea-label):focus {\n border-color: none;\n border: var(--sqm-input-focus-border, var(--sqm-border-thickness) solid var(--sl-input-border-color-focus));\n}\n\n*::part(input-label):disabled, *::part(select-label):disabled, *::part(textarea-label):disabled{\n background: var(--sqm-input-disabled-background, #f5f5f5);\n color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));\n}\n\nsl-input {\n --sl-input-border-color-focus: var(--sqm-border-color-focus); \n}\n\n",Ve),e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",name:"/firstName",type:"text",label:g.content.firstNameLabel,required:!0,disabled:(null===(l=g.registrationFormState)||void 0===l?void 0:l.loading)||(null===(r=g.registrationFormState)||void 0===r?void 0:r.disabled)},(null===(s=null===(i=g.registrationFormState)||void 0===i?void 0:i.initialData)||void 0===s?void 0:s.firstName)?{value:null===(n=null===(o=g.registrationFormState)||void 0===o?void 0:o.initialData)||void 0===n?void 0:n.firstName}:{},(null==f?void 0:f.firstName)?{class:Me.classes.ErrorStyle,helpText:(null==f?void 0:f.firstName)||"Cannot be empty"}:[])),e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",name:"/lastName",type:"text",label:g.content.lastNameLabel,required:!0,disabled:(null===(d=g.registrationFormState)||void 0===d?void 0:d.loading)||(null===(c=g.registrationFormState)||void 0===c?void 0:c.disabled)},(null===(p=null===(u=g.registrationFormState)||void 0===u?void 0:u.initialData)||void 0===p?void 0:p.lastName)?{value:null===(m=null===(v=g.registrationFormState)||void 0===v?void 0:v.initialData)||void 0===m?void 0:m.lastName}:{},(null==f?void 0:f.lastName)?{class:Me.classes.ErrorStyle,helpText:(null==f?void 0:f.lastName)||"Cannot be empty"}:[])))}function Ae(a){const{states:t,callbacks:l}=a,{text:r,formState:i}=t,{error:s}=i,o=x({Container:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-x-small)",padding:"0 var(--sl-spacing-xxx-large) var(--sl-spacing-xxx-large)"},SubmitButton:{marginBottom:"var(--sl-spacing-medium)"},Error:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"15px"}}}),n=o.toString();return e("div",{class:o.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},n),e(V,Object.assign({},{type:"h2"}),r.emailPreferencesHeader),e("sl-form",{"onSl-submit":l.onSubmit},e(he,{states:{checked:t.formState.marketingEmailOptIn},content:{checkboxLabel:r.marketingCheckboxLabel,checkboxName:"marketingEmailOptIn"},callbacks:{setChecked:l.setChecked}}),e("sl-button",{class:o.classes.SubmitButton,type:"primary",submit:!0,loading:t.loading,disabled:t.submitDisabled},r.submitChangeButtonText),s&&e("sqm-form-message",{class:o.classes.Error,type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s)),t.success&&e("sqm-form-message",{class:o.classes.Success,type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},t.text.successMessage))))}function He(a){const t=x({RowContainer:{display:"flex","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-large)"}},Container:{display:"flex","flex-direction":"column","align-items":"center","font-size":"var(--sl-font-size-small)",color:"var(--sqm-text-subdued)","padding-top":`var(--sl-spacing-${a.paddingTop})`,"padding-right":`var(--sl-spacing-${a.paddingRight})`,"padding-bottom":`var(--sl-spacing-${a.paddingBottom})`,"padding-left":`var(--sl-spacing-${a.paddingLeft})`,"row-gap":"var(--sl-spacing-small)","& a:hover":{color:"var(--sqm-text)"}},SupportText:{textAlign:"center",margin:0},PoweredByLink:{color:"var(--sqm-text-subdued)","font-size":"var(--sl-font-size-small)",display:"flex",alignItems:"center",svg:{marginTop:"2px",shapeRendering:"geometricprecision"},"&:hover, &:hover *":{color:"var(--sqm-text)"}}}),l=t.toString();return e("div",{class:t.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},"\n :host{\n margin: 0 auto;\n width: 100%;\n }\n a{\n cursor:pointer;\n color: var(--sqm-text-subdued);\n text-decoration: none ;\n }\n",l),e("div",{class:t.classes.RowContainer},a.faqLink&&e("a",{target:"_blank",href:a.faqLink},a.faqText),a.termsLink&&e("a",{target:"_blank",href:a.termsLink},a.termsText)),!a.hideSupportText&&e("p",{class:t.classes.SupportText},r.formatMessage({id:"supportFooter",defaultMessage:a.supportText},{email:e("a",{target:"_blank",href:`mailto:${a.supportEmail}`},a.supportEmail)})),!a.hidePoweredBy&&e("a",{class:t.classes.PoweredByLink,target:"_blank",href:a.poweredByLink},"Powered by ",e(N,{color:"currentColor"})))}function Be(a,t){const{data:l,notFullScreen:r,border:i}=a,s=x({HostBlock:R,Frame:{display:"flex","flex-direction":"column","box-sizing":"border-box","&:nth-child(2)":{background:a.backgroundColor}},FooterWrapper:{width:"100%","max-width":"100%",padding:"var(--sl-spacing-medium) var(--sl-spacing-x-large)",background:a.headerAndFooterBackgroundColor,display:"flex","justify-content":"flex-end","align-items":"center","box-sizing":"border-box",borderTop:i,"margin-top":"auto"},HeaderWrapper:{width:"100%","max-width":"100%","box-sizing":"border-box",display:"flex","justify-content":"space-between",padding:"var(--sl-spacing-small) var(--sl-spacing-large)","align-items":"center",borderBottom:i,background:a.headerAndFooterBackgroundColor,"@media screen and (max-width: 499px)":{"flex-direction":"row-reverse","justify-content":"flex-end",padding:"0"}}}),o=s.toString();return e("div",{style:{minHeight:r?"100%":"100vh"},class:s.classes.Frame,part:"sqm-base"},e("style",{type:"text/css"},o),e("div",{class:s.classes.HeaderWrapper,part:"sqm-header"},l.header,e("slot",{name:"sqm-navigation-menu"})),t,e("div",{class:s.classes.FooterWrapper,part:"sqm-footer"},l.footer))}function De(a){const{states:t,data:l}=a,{content:r}=t,i=x({Container:{position:"relative",width:r.iframeWidth,height:r.iframeHeight},IFrame:{position:"absolute",width:"100%",height:"100%",border:"0",top:"0",left:"0",right:"0"}}),s=i.toString();return e("div",{class:i.classes.Container},e("style",{type:"text/css"},s),e("iframe",{class:i.classes.IFrame,src:`${r.iframeSrc}?rsCode=${l.shareCode}`}))}const Fe=()=>e("svg",{width:12,height:10,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.58.23c.475.371.56 1.057.19 1.532L5.69 9.554a1.091 1.091 0 0 1-1.631.1L.32 5.915a1.09 1.09 0 1 1 1.542-1.542L4.73 7.239 10.049.42A1.09 1.09 0 0 1 11.58.23Z",fill:"#fff"})),_e=()=>e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9Z",fill:"currentColor"}),e("path",{d:"M5.68394 8.77046C5.28103 8.39273 4.64819 8.41315 4.27046 8.81606C3.89273 9.21897 3.91315 9.85181 4.31606 10.2295L5.68394 8.77046ZM7.66667 12L6.98273 12.7295C7.36738 13.0902 7.96595 13.0902 8.35061 12.7295L7.66667 12ZM13.6839 7.72954C14.0869 7.35181 14.1073 6.71897 13.7295 6.31606C13.3518 5.91315 12.719 5.89273 12.3161 6.27046L13.6839 7.72954ZM4.31606 10.2295L6.98273 12.7295L8.35061 11.2705L5.68394 8.77046L4.31606 10.2295ZM8.35061 12.7295L13.6839 7.72954L12.3161 6.27046L6.98273 11.2705L8.35061 12.7295Z",fill:"white"})),Pe=()=>e("svg",{width:156,height:157,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M40.18 126h83.663a3 3 0 0 0 3-3V73.966a3 3 0 0 0-3-3H40.18a3 3 0 0 0-3 3V123a3 3 0 0 0 3 3Z",fill:"#FFD34F"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37.18 73.862v7.966h89.663v-7.966H37.18Z",fill:"#E9BB30"}),e("path",{d:"M133.039 74.224a2.18 2.18 0 0 0 2.187-2.172v-19.19c0-1.2-.98-2.172-2.187-2.172H31.347a2.18 2.18 0 0 0-2.187 2.172v19.19c0 1.2.98 2.172 2.187 2.172H133.04Z",fill:"#FFC000"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M123.287 35.172c0 6.056-9.155 15.226-13.76 15.654H88.888V126H75.141V50.826H58.534c-9.462-2.038-17.803-9.258-17.803-16.944 0-7.49 3.274-13.422 9.23-15.983 5.693-2.446 12.265-1.105 17.46 2.479 6.378 4.398 9.956 12.654 13.202 20.144.284.657.567 1.308.848 1.95.274-.608.55-1.228.83-1.856 3.216-7.22 6.887-15.464 13.057-19.89 5.454-3.913 12.387-5.39 18.38-2.711 6.197 2.77 9.549 9.127 9.549 17.157Zm-23.306-8.266c3.305-2.37 7.262-2.8 10.645 0 2.946 2.44 3.103 3.588 3.482 6.351l.067.483c0 4.09-3.549 10.252-7.097 10.252-2.515 0-4.489-.022-6.34-.041-3.375-.036-6.337-.068-11.403.04.966-1.86 1.737-3.644 2.473-5.346 1.967-4.553 3.678-8.515 8.173-11.739Zm-39.034 0c-1.6-1.103-5.268-.61-6.79.043-1.257.54-3.134 2.19-3.134 6.933 0 4.61 7.511 8.59 7.511 8.59s5.962 1.52 16.607 1.52c-3.624-8.922-8.757-13.336-14.194-17.086Z",fill:"#EB5757"}),e("path",{d:"M75.086 74.224h13.85v7.604h-13.85v-7.604Z",fill:"#DD4747"}),e("g",{filter:"url(#a)"},e("ellipse",{cx:82.008,cy:141.207,rx:36.813,ry:5.793,fill:"#E0DDDD","fill-opacity":.8})),e("path",{d:"M150.446 79.134a.5.5 0 0 1 .9 0l1.133 2.336c.05.102.132.184.234.233l2.344 1.122a.5.5 0 0 1 0 .902l-2.344 1.122a.503.503 0 0 0-.234.233l-1.133 2.336a.5.5 0 0 1-.9 0l-1.134-2.336a.499.499 0 0 0-.234-.233l-2.343-1.122a.5.5 0 0 1 0-.902l2.343-1.122a.499.499 0 0 0 .234-.233l1.134-2.336Z",fill:"#FAB6B6"}),e("path",{d:"M14.86 29.168a.5.5 0 0 1 .9 0l1.133 2.336a.5.5 0 0 0 .234.233l2.344 1.122a.5.5 0 0 1 0 .902l-2.344 1.122a.5.5 0 0 0-.234.233l-1.133 2.336a.5.5 0 0 1-.9 0l-1.134-2.336a.5.5 0 0 0-.234-.233l-2.343-1.122a.5.5 0 0 1 0-.902l2.344-1.122a.5.5 0 0 0 .233-.233l1.134-2.336Z",fill:"#F4EFBC"}),e("path",{d:"m125.382 0 .712 1.466 1.475.706-1.475.707-.712 1.466-.711-1.466-1.476-.707 1.476-.706.711-1.466Z",fill:"#FDA802"}),e("path",{d:"m2.187 103.552.711 1.466 1.476.706-1.476.707-.711 1.466-.711-1.466L0 105.724l1.476-.706.71-1.466Z",fill:"#E4599C"}),e("defs",null,e("filter",{id:"a",x:35.195,y:125.414,width:93.625,height:31.586,filterUnits:"userSpaceOnUse","color-interpolation-filters":"s-rGB"},e("feFlood",{"flood-opacity":0,result:"BackgroundImageFix"}),e("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e("feGaussianBlur",{stdDeviation:5,result:"effect1_foregroundBlur_653_17907"}))));function ze({active:a,completed:t,incomplete:l,stage:r}){return e("div",{style:{display:"flex"}},e("div",{style:{backgroundColor:t?"var(--sqm-success-color-icon)":l?"var(--sqm-border-color)":"white",border:a?"1px solid var(--sqm-success-color-border)":l?"1px solid var(--sqm-border-color)":"1px solid var(--sqm-success-color-border)",borderRadius:"50%",width:"23px",height:"23px",margin:"-11px",zIndex:"1",boxSizing:"content-box"}},t?e("div",{style:{top:"-10.5%",left:"23.5%",position:"relative"}},e(Fe,null)):e("div",{style:{color:a?"var(--sqm-success-color-border)":"var(--sqm-text-subdued)",width:"23px",lineHeight:"24px",textAlign:"center",position:"relative"}},r+1)))}function Ue({incomplete:a=!1,active:t=!1,invisible:l=!1}){return e("div",{style:{content:"''",flex:"0.5 0.5 0",height:"4px",borderRadius:"4px",background:a||t?"var(--sqm-border-color)":"var(--sqm-success-color-icon)",position:"relative",bottom:"0",left:"0",display:"flex",justifyContent:"center",columnGap:"50px",marginRight:"-2px",boxSizing:"content-box",opacity:l?"0":"1"}})}function Ze({active:a,completed:t,incomplete:l,stage:r}){return[e(Ue,{incomplete:l,invisible:0===r}),e(ze,{active:a,completed:t,incomplete:l,stage:r}),e(Ue,{incomplete:l,active:a,invisible:2===r})]}function We({stageCount:a,currentStage:t}){return e("div",{style:{display:"flex",columnGap:"-2px"}},Array.from(Array(a).keys()).map((a=>e(Ze,{active:t===a,completed:t>a,incomplete:t<a,stage:a}))))}const Ne=x({HostBlock:R,Container:{minWidth:"300px",position:"relative"},FullImage:{objectFit:"contain",maxWidth:"100%",height:"250px",display:"flex",margin:"0 auto"},Select:{"&::part(base)":{borderRadius:"var(--sqm-input-border-radius)"},"&::part(label)":{color:"var(--sqm-input-label-color)"},"&::part(menu)":{maxHeight:"450px"},"& sl-menu-item::part(checked-icon)":{top:"8px",color:"var(--sqm-text)"},"& sl-menu-item::part(base)":{flexDirection:"column"},"& sl-menu-item::part(base):focus":{background:"var(--sqm-accent-color-background)",color:"var(--sqm-text)"}},ProgressBar:{maxWidth:"350px",width:"100%",margin:"auto",marginBottom:"var(--sl-spacing-xxx-large)","& .text-area":{marginTop:"5px",display:"flex",justifyContent:"center",textAlign:"center",whiteSpace:"nowrap",marginBottom:"6px","& .text":{marginBottom:"var(--sl-spacing-x-small)",flex:"1 1 0"},"& .text.subdued":{color:"var(--sqm-text-subdued)"}}},CardLayout:{display:"flex",width:"100%",borderRadius:"3px",background:"rgba(0, 0, 0, 0)"},Card:{display:"flex",userSelect:"none",height:"120px","&::part(base)":{background:"var(--sqm-portal-background)",border:"var(--sqm-border-thickness) solid var(--sqm-border-color)",borderRadius:"var(--sqm-border-radius-normal)",boxShadow:"none",width:"100%"},"&::part(body)":{display:"flex",padding:0},"& .selected":{borderRadius:"var(--sqm-border-radius-normal)",position:"relative",top:"-2%",left:"100%",color:"var(--sqm-primary-color)",margin:"-9px"}},Title:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-semibold)",margin:"var(--sl-spacing-large) 0"},Image:{padding:"var(--sl-spacing-small)",minWidth:"96px",maxWidth:"96px","& .image":{width:"100%",height:"100%",objectFit:"contain",borderRadius:"4px"},"& .image.subdued":{filter:"brightness(0.95)",opacity:"0.5"}},TextArea:{textAlign:"left",padding:"var(--sl-spacing-small)",paddingLeft:"0","& .title":{fontSize:"var(--sl-font-size-medium)",lineHeight:"var(--sl-line-height-dense)",fontWeight:"600",color:"var(--sqm-text)",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",overflow:"hidden"},"& .amount":{fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)",marginTop:"var(--sl-spacing-x-small)",color:"var(--sqm-text-subdued)",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",overflow:"hidden"},"& .error":{fontSize:"var(--sl-font-size-small)",lineHeight:"var(--sl-line-height-dense)",marginTop:"var(--sl-spacing-x-small)",fontWeight:"600",color:"var(--sqm-warning-color-icon)",display:"-webkit-box","-webkit-line-clamp":"1","-webkit-box-orient":"vertical",overflow:"hidden","& .icon":{position:"relative",top:"0.1em",marginRight:"var(--sl-spacing-xx-small)"}}},ChooseAmount:{maxWidth:"800px",margin:"auto","& .wrapper":{display:"flex",gap:"var(--sl-spacing-xx-large)","@media (max-width: 799px)":{flexDirection:"column"}},"& .image":{width:"50%",objectFit:"contain",maxWidth:"100%",height:"250px",display:"flex","@media (max-width: 799px)":{width:"auto"}},"& .text":{width:"50%",maxWidth:"400px","@media (max-width: 799px)":{width:"auto",margin:"auto"}},"& .title":{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-semibold)",color:"var(--sqm-text)"},"& .points":{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-semibold)",color:"var(--sqm-accent-color-text)"},"& .description":{fontSize:"var(--sl-font-size-medium)",fontWeight:"var(--sl-font-weight-normal)",color:"var(--sqm-text-subdued)",margin:"var(--sl-spacing-medium) 0",lineHeight:"var(--sl-line-height-dense)",marginTop:"var(--sl-spacing-xx-small)"},"& .space":{marginBottom:"var(--sl-spacing-xxx-large)"},"& sl-menu-item[disabled]::part(label)":{color:"var(sqm-text-subdued)"},"& sl-menu-item[disabled]":{"& .step-cost":{color:"var(sqm-text-subdued)"},"& .step-value":{color:"var(sqm-text-subdued)"}}},SelectItem:{display:"flex",flexDirection:"column","&::part(label)":{color:"var(--sqm-text)",margin:"0"},"& .step-cost":{color:"var(--sqm-text-subdued)",marginBottom:"var(--sl-spacing-x-small)"},"& .step-unavailable":{fontSize:"var(--sl-font-size-small)",color:"var(--sqm-warning-color-text)",margin:"0"}},Success:{textAlign:"center","& .title":{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-semibold)",color:"var(--sqm-text)"},"& .description":{color:"var(--sqm-text-subued)",maxWidth:"350px",margin:"0 auto",lineHeight:"var(--sl-line-height-dense)",marginBottom:"var(--sl-spacing-xx-large)",marginTop:"var(--sl-spacing-xx-small)"},"& .promo":{maxWidth:"350px",margin:"-30px auto var(--sl-spacing-xxx-large) auto",textAlign:"left",color:"var(--sqm-text-subdued)"}},Grid:{display:"grid",justifyContent:"center",gap:"20px",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))"},Confirmation:{maxWidth:"800px",margin:"auto","& .wrapper":{display:"flex","@media (max-width: 499px)":{flexDirection:"column"}},"& .reward-item-container":{"@media (max-width: 499px)":{display:"flex",flexDirection:"row-reverse",justifyContent:"flex-end",alignItems:"center"}},"& .reward-item-container .reward-title":{paddingBottom:"var(--sl-spacing-medium)",lineHeight:"20px","@media (max-width: 499px)":{paddingBottom:"none",paddingLeft:"var(--sl-spacing-small)"}},"& .padding":{padding:"var(--sl-spacing-medium) 0","@media (max-width: 499px)":{padding:"var(--sl-spacing-small) 0"}},"& .field":{width:"30%",fontSize:"var(--sl-font-size-medium)",fontWeight:"var(--sl-font-weight-normal)",color:"var(--sqm-text-subdued)",textAlign:"left",paddingRight:"var(--sl-spacing-xxx-large)","@media (max-width: 499px)":{width:"100%",paddingRight:"0",paddingBottom:"0"}},"& .value":{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-semibold)"},"& .top-border":{borderTop:"var(--sqm-border-thickness) solid var(--sqm-border-color)"},"& .image":{width:"200px","@media (max-width: 499px)":{width:"100px"}}},Button:{display:"flex",flexWrap:"wrap-reverse",margin:"var(--sl-spacing-medium) 0","& .cancel":{marginLeft:"auto",marginRight:"var(--sl-spacing-medium)","@media (max-width: 499px)":{width:"100%",marginRight:"0",marginTop:"var(--sl-spacing-small)"}},"& .continue":{"@media (max-width: 499px)":{width:"100%"}},"& .continue.right":{marginLeft:"auto"},"& .continue.center":{margin:"0 auto"}},Confetti:{pointerEvents:"none",position:"absolute",width:"100%",height:"100%",top:"0%",left:"0%",zIndex:"1"}}),Oe=Ne.toString(),je=["chooseReward","chooseAmount","confirmation","success"];function Ge(a){const{states:l,data:i,callbacks:s,refs:o}=a,{selectedItem:n,selectedStep:d}=l,c={chooseReward:l.content.text.chooseRewardTitle,chooseAmount:l.content.text.chooseAmountTitle,confirmation:l.content.text.confirmationTitle};const u={chooseReward:()=>{return[e("div",{part:"choose-reward-container"},e("div",{class:Ne.classes.Title},l.content.text.rewardTitle),l.loading||l.queryError?e("div",{class:Ne.classes.Grid,part:"loading-container"},[...Array(l.content.text.skeletonCardNum)].map((()=>e("div",null,e("sl-card",{class:Ne.classes.Card},e("div",{class:Ne.classes.CardLayout},e("div",null,e("sl-skeleton",{style:{width:"100px",height:"100px",margin:"9px","--border-radius":"var(--sqm-border-radius-normal)"}})),e("div",{style:{margin:"var(--sl-spacing-small) var(--sl-spacing-small) 0 0",width:"100%"}},e("sl-skeleton",{style:{marginBottom:"var(--sl-spacing-small)"}}),e("sl-skeleton",{style:{marginBottom:"var(--sl-spacing-small)"}}),e("sl-skeleton",{style:{width:"45%"}})))))))):e("div",{class:Ne.classes.Grid},null===(a=i.exchangeList)||void 0===a?void 0:a.map((a=>{var i,o,d,c,u;return e("div",{key:a.key,style:{boxShadow:a.key===(null==n?void 0:n.key)?"0 0 0 2px var(--sqm-primary-color)":"none",borderRadius:"var(--sqm-border-radius-normal)",borderColor:"none"}},e("sl-card",{exportparts:"base: exchange-card-container",class:Ne.classes.Card,style:{cursor:a.unavailableReasonCode?"not-allowed":"pointer"},onClick:()=>a.available&&s.setExchangeState({selectedItem:a})},a.key===(null==n?void 0:n.key)&&e("div",{class:"selected"},e(_e,null)),e("div",{style:{display:"flex",width:"100%",height:"120px",borderRadius:"3px",background:a.unavailableReasonCode?"rgba(0, 0, 0, 0.05)":"rgba(0, 0, 0, 0)"}},e("div",{class:Ne.classes.Image,style:{opacity:a.unavailableReasonCode?"0.5":"1"}},e("img",{class:a.unavailableReasonCode?"image subdued":"image",src:(null==a?void 0:a.imageUrl)||t("./assets/Reward-image.png")})),e("div",{class:Ne.classes.TextArea,style:{opacity:a.unavailableReasonCode?"0.5":"1"}},e("div",{class:"title",style:{"-webkit-line-clamp":a.unavailableReasonCode?"1":"2"}},null!==(i=a.name)&&void 0!==i?i:""),e("div",{class:"amount",style:{"-webkit-line-clamp":a.unavailableReasonCode?"1":"2"}},r.formatMessage({id:"sourceAmountMessage",defaultMessage:null===(d=null===(o=l.content)||void 0===o?void 0:o.text)||void 0===d?void 0:d.sourceAmountMessage},{ruleType:a.ruleType,sourceValue:a.prettySourceValue,sourceMinValue:a.prettySourceMinValue,sourceMaxValue:a.prettySourceMaxValue})),a.unavailableReasonCode&&e("div",{class:"error"},e("sl-icon",{class:"icon",name:"exclamation-triangle-fill"}),r.formatMessage({id:"unavailableCode",defaultMessage:null===(u=null===(c=l.content)||void 0===c?void 0:c.text)||void 0===u?void 0:u.notAvailableError},{unavailableReasonCode:a.unavailableReasonCode,sourceUnit:a.sourceUnit,sourceValue:a.prettySourceValue||a.prettySourceMinValue}))))))}))),e("div",{class:Ne.classes.Button},e("sl-button",{exportparts:"base: primarybutton-base",type:"primary",class:"continue right",size:"large",onClick:()=>s.setStage("chooseAmount"),loading:l.loading,disabled:!l.selectedItem},l.content.text.continueText)))];var a},chooseAmount:()=>function(){var a,i,o,d;const c=function(){var a,t,i;const o=l.selectedItem;return o&&"FIXED_GLOBAL_REWARD"!==(null==o?void 0:o.ruleType)?(null===(a=o.steps)||void 0===a?void 0:a.length)?e("sl-select",{style:{width:"auto"},label:null===(t=null==l?void 0:l.content)||void 0===t?void 0:t.text.selectText,class:Ne.classes.Select,value:l.selectedStep,"onSl-select":e=>{var a,t,l,r,i;return s.setExchangeState({amount:null===(l=null===(t=null===(a=e.detail)||void 0===a?void 0:a.item)||void 0===t?void 0:t.value)||void 0===l?void 0:l.sourceValue,selectedStep:null===(i=null===(r=e.detail)||void 0===r?void 0:r.item)||void 0===i?void 0:i.value})}},null===(i=o.steps)||void 0===i?void 0:i.map((a=>{var t,i;return e("sl-menu-item",{value:a,disabled:!a.available,class:Ne.classes.SelectItem},a.prettyDestinationValue,e("br",null),e("div",{class:"step-cost",slot:"suffix"},a.prettySourceValue,a.unavailableReasonCode&&e("p",{class:"step-unavailable"},r.formatMessage({id:"unavailableCode",defaultMessage:null===(i=null===(t=l.content)||void 0===t?void 0:t.text)||void 0===i?void 0:i.notAvailableError},{unavailableReasonCode:a.unavailableReasonCode,sourceUnit:o.sourceUnit,sourceValue:a.prettySourceValue||o.prettySourceMinValue}))))}))):e("p",null,r.formatMessage({id:"notEnoughError",defaultMessage:l.content.text.notEnoughError},{sourceUnit:o.sourceUnit})):e("span",{class:"points"},null==o?void 0:o.prettySourceValue)}(),u="FIXED_GLOBAL_REWARD"!==(null===(a=l.selectedItem)||void 0===a?void 0:a.ruleType)&&c&&!l.amount;return e("div",null,e("div",{class:Ne.classes.ChooseAmount,part:"choose-amount-container"},e("div",{class:"wrapper"},e("img",{class:"image",src:(null==n?void 0:n.imageUrl)||t("./assets/Reward-image.png")}),e("div",{class:"text"},e("div",{class:"title"},null!==(i=null==n?void 0:n.name)&&void 0!==i?i:""),"FIXED_GLOBAL_REWARD"===(null===(o=l.selectedItem)||void 0===o?void 0:o.ruleType)?e("div",{class:"points"},c):e("div",{class:"description"},null==n?void 0:n.description),"FIXED_GLOBAL_REWARD"===(null===(d=l.selectedItem)||void 0===d?void 0:d.ruleType)?e("div",{class:"description"},null==n?void 0:n.description):e("div",null,c),e("div",{class:"space"}))),e("div",{class:Ne.classes.Button},e("sl-button",{exportparts:"base: secondarybutton-base",class:"cancel",size:"large",type:"secondary",onClick:()=>s.resetState()},l.content.text.cancelText),e("sl-button",{exportparts:"base: primarybutton-base",class:"continue",size:"large",type:"primary",onClick:()=>s.setStage("confirmation"),disabled:u},l.content.text.continueToConfirmationText))))}(),confirmation:()=>function(){const a=(null==d?void 0:d.prettySourceValue)||n.prettySourceValue,r=null==d?void 0:d.prettyDestinationValue;return e("div",null,e("div",{class:Ne.classes.Confirmation,part:"confirmation-container"},e("div",{class:Ne.classes.Title},l.content.text.redeemTitle),e("div",{class:"wrapper"},e("div",{class:"field"},l.content.text.rewardNameTitle),e("div",{class:"reward-item-container"},e("div",{class:"reward-title"},n.name),e("img",{class:"image",src:(null==n?void 0:n.imageUrl)||t("./assets/Reward-image.png")}))),e("div",{class:"wrapper padding"},e("div",{class:"field"})),r&&e("div",{class:"wrapper top-border padding"},e("div",{class:"field"},l.content.text.rewardAmountTitle),e("div",null,r)),e("div",{class:"wrapper top-border padding"},e("div",{class:"field"},l.content.text.costTitle),e("div",{class:"value"},a)),e("div",{class:Ne.classes.Button},e("sl-button",{class:"cancel",type:"secondary",size:"large",onClick:()=>s.setStage("chooseAmount")},l.content.text.backText),e("sl-button",{class:"continue",size:"large",type:"primary",loading:l.loading,onClick:s.exchangeReward},l.content.text.redeemText))))}(),success:()=>{return e("div",{class:Ne.classes.Success,part:"success-container"},e(Pe,null),e(p,null),e("div",{class:"title"},null===(a=l.content.text)||void 0===a?void 0:a.rewardRedeemedText),e("div",{class:"description"},r.formatMessage({id:"successMessage",defaultMessage:l.content.text.redemptionSuccessText},{sourceValue:null!==(t=l.selectedItem.prettySourceValue)&&void 0!==t?t:null===(o=l.selectedStep)||void 0===o?void 0:o.prettySourceValue,destinationValue:(null===(n=l.selectedStep)||void 0===n?void 0:n.prettyDestinationValue)||(null===(d=l.selectedItem)||void 0===d?void 0:d.name)||l.selectedItem.globalRewardKey})),(null==i?void 0:i.fuelTankCode)&&e("div",{class:"promo"},l.content.text.promoCode,e(T,{copyString:i.fuelTankCode,tooltiptext:null===(c=null==l?void 0:l.content)||void 0===c?void 0:c.text.tooltipText,open:l.open,onClick:s.copyFuelTankCode})),e("div",{class:Ne.classes.Button},e("sl-button",{class:"continue center",type:"primary",size:"large",onClick:()=>s.resetState(!0)},l.content.text.doneText)));var a,t,o,n,d,c}}[l.redeemStage];function p(){return e("canvas",{ref:e=>{(null==o?void 0:o.canvasRef)&&(o.canvasRef.current=e)},id:"my-canvas",class:Ne.classes.Confetti})}return l.noExchangeOptions?l.content.text.empty:e("div",{class:Ne.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},Oe),e("div",null,function(){const a=je.indexOf(l.redeemStage);return e("div",{class:Ne.classes.ProgressBar},e("div",{class:"text-area"},Object.keys(c).map((t=>je.indexOf(t)<=a?e("span",{class:"text"},c[t]):e("span",{class:"text subdued"},c[t])))),e(We,{stageCount:3,currentStage:a}))}(),l.exchangeError&&e("sl-alert",{type:"danger",open:!0},e("sl-icon",{slot:"icon",name:"exclamation-octagon"}),l.content.text.redemptionError),l.queryError&&!l.exchangeError&&e("sl-alert",{type:"danger",open:!0},e("sl-icon",{slot:"icon",name:"exclamation-octagon"}),l.content.text.queryError),u&&u(),"success"===l.redeemStage))}const Xe=(a,t="chooseReward",l=null,r=null,i=!1,s=!1,o=null,n=!1,d=!1)=>({states:{content:{text:{notAvailableError:"{unavailableReasonCode, select, NOT_CHAMPION {CUSTOM ERROR MESSAGE } US_TAX {Exceeds tax limit for this year} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {unavailableReasonCode} }",chooseRewardTitle:"Rewards",chooseAmountTitle:"Select",confirmationTitle:"Confirm",rewardTitle:"Choose a reward",cancelText:"Cancel",backText:"Back",continueText:"Continue",continueToConfirmationText:"Continue to confirmation",redeemText:"Redeem",redeemTitle:"Confirm and redeem",redemptionSuccessText:"Redeemed {sourceValue} for {destinationValue}",doneText:"Done",tooltipText:"Copied!",selectText:"Select amount to receive",sourceAmountMessage:"{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}",rewardRedeemedText:"Reward redeemed",redemptionError:"An error occured trying to redeem this reward. Please try again",queryError:"Unable to load reward exchange list. Please try again",promoCode:"Promo code",skeletonCardNum:8,rewardNameTitle:"Reward Name",rewardAmountTitle:"Reward Amount",costTitle:"Cost",notEnoughError:"Sorry not enough!",empty:e("sqm-empty",{emptyStateImage:"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_exchange2.png",emptyStateHeader:"Redeem rewards",emptyStateText:"Use your points to redeem rewards once they become available"})}},queryError:d,redeemStage:t,amount:0,exchangeError:i,loading:s,selectedItem:l,selectedStep:r,noExchangeOptions:n,open:!1},data:{exchangeList:a,fuelTankCode:o},callbacks:{exchangeReward:null,resetState:null,setStage:null,setExchangeState:null,copyFuelTankCode:null},refs:null}),Qe={key:"reward",name:"Demo Reward",description:"Description of reward. Lorem ipsum dolor sit amet, consectetur adipiscing. Id nec semper sapien dignissim rhoncus nunc.",imageUrl:"https://res.cloudinary.com/saasquatch/image/upload/v1643653103/squatch-assets/default_rewards_1.png",available:!0,unavailableReasonCode:null,ruleType:"FIXED_GLOBAL_REWARD",sourceUnit:"POINT",sourceValue:10,prettySourceValue:"10 SaaSquatch Points",sourceMinValue:null,prettySourceMinValue:null,sourceMaxValue:null,prettySourceMaxValue:null,destinationMinValue:null,prettyDestinationMinValue:null,destinationMaxValue:null,prettyDestinationMaxValue:null,globalRewardKey:"",destinationUnit:null,steps:[{prettyDestinationValue:"Reward Step 1",prettySourceValue:"50 Points",available:!0,unavailableReasonCode:null,destinationValue:10,sourceValue:1,globalRewardKey:"reward1",rewardInput:{accountId:"zach",userId:"zach"}},{prettyDestinationValue:"Reward Step 2",prettySourceValue:"100 Points",available:!1,unavailableReasonCode:"Not enough points",destinationValue:10,sourceValue:1,globalRewardKey:"reward1",rewardInput:{accountId:"zach",userId:"zach"}}]},Ke={available:!1,unavailableReasonCode:"INSUFFICIENT_REDEEMABLE_CREDIT"},Je={key:"r1"},Ye=e=>({imageUrl:e}),ea=e=>({name:e}),aa=e=>({description:e}),ta=e=>({prettySourceValue:e}),la=(e,a,t)=>({ruleType:"VARIABLE_CREDIT_REWARD",sourceMinValue:e,prettySourceMinValue:e+" "+t,sourceMaxValue:a,prettySourceMaxValue:a+" "+t}),ra=[{...Qe,...ea("Free swag with a promo code"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1643653103/squatch-assets/default_rewards_1.png"),...ta("40 Points")},{...Qe,...Je,...ea("Visa® Prepaid Card USD"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...la(20,80,"Points")},{...Qe,...ea("$50 Store credit"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000270/squatch-assets/WkCMVSE.png"),...ta("100 Points")},{...Qe,...ea("Variable amount of store credit"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000240/squatch-assets/Jn2fE0s.png"),...la(20,100,"Points")}],ia=[{...Qe,...ea("Free swag with a promo code"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1643653103/squatch-assets/default_rewards_1.png"),...ta("40 SaaSquatch Points")},{...Qe,...Je,...ea("Visa® Prepaid Card USD"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...la(20,80,"Points")},{...Qe,...ea("A very exclusive gift box"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/93BvEgH.png"),...ta("30 SaaSquatch Points")},{...Qe,...ea("$50 Store credit"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000270/squatch-assets/WkCMVSE.png"),...ta("100 SaaSquatch Points")},{...Qe,...ea("Variable amount of store credit"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000240/squatch-assets/Jn2fE0s.png"),...la(20,100,"Points")},{...Qe,...Ke,...ea("A very rare cactus"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000224/squatch-assets/hhlF2Ey.png"),...ta("2000 SaaSquatch Points")},{...Qe,available:!1,unavailableReasonCode:"US_TAX",...ea("$1000 Store credit with a really super long name in the front page"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000273/squatch-assets/y9HSls1.png"),...ta("2000 SaaSquatch Long Points")},{...Qe,...Ke,...ea("A holiday gift box"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/dWEdB3p.png"),...ta("100 SaaSquatch Points")}],sa={...Xe(ia)},oa={...Xe(ra)},na={...Xe([{...Qe,...Ke,...ea("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/dWEdB3p.png"),...ta("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid.")},{...Qe,...ea("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000273/squatch-assets/y9HSls1.png"),...ta("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid.")},{...Qe,...ea("Suuuuuuuuper aweeeeesssssoooommme reward!!!!!!"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000270/squatch-assets/WkCMVSE.png"),...ta("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid.")},...ia])},da={...Xe([{...Qe,available:!1,unavailableReasonCode:"NOT_CHAMPION",...ea("A very rare cactus"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000224/squatch-assets/hhlF2Ey.png"),...ta("2000 SaaSquatch Points")},...ia])},ca={...Xe(ia,"chooseReward",{...Qe,...Je,...ea("Visa® Prepaid Card USD"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...la(20,80,"Points")})},ua=(e,a,t,l,r=!0,i=null)=>({destinationValue:e,prettyDestinationValue:a+e,sourceValue:t,prettySourceValue:t+" "+l,available:r,unavailableReasonCode:i}),pa={...Xe(ia,"chooseAmount",{...Qe,...ea("Visa® Prepaid Card USD"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...la(20,80,"Points"),steps:[ua(20,"$",40,"Points"),ua(30,"$",60,"Points"),ua(40,"$",80,"Points"),ua(50,"$",100,"Points"),ua(60,"$",120,"Points")]})},va={...Xe(ia,"chooseAmount",{...Qe,...ea("Visa® Prepaid Card USD"),...aa(""),...Ye("https://i.imgur.com/veHErQX.png"),...la(20,80,"Points"),steps:[ua(20,"$",40,"Points"),ua(30,"$",60,"Points"),ua(40,"$",80,"Points"),ua(50,"$",100,"Points"),ua(60,"$",120,"Points")]})},ma={...Xe(ia,"chooseAmount",{...Qe,...ea("Visa® Prepaid Card USD"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...la(20,80,"Points"),steps:[ua(20,"$",40,"Points"),ua(30,"$",60,"Points"),ua(40,"$",80,"Points",!1,"INSUFFICIENT_REDEEMABLE_CREDIT"),ua(50,"$",100,"Points",!1,"INSUFFICIENT_REDEEMABLE_CREDIT"),ua(60,"$",120,"Points",!1,"INSUFFICIENT_REDEEMABLE_CREDIT")]})},ga={...Xe(ia,"chooseAmount",{...Qe,...ea("Visa® Prepaid Card USD"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...la(20,80,"Points"),steps:[ua(20,"$",40,"Points"),ua(30,"$",60,"Points"),ua(40,"$",80,"Points",!1,"US_TAX"),ua(50,"$",100,"Points",!1,"US_TAX"),ua(60,"$",120,"Points",!1,"US_TAX")]})},fa={...Xe(ia,"chooseAmount",{...Qe,...ea("Free swag with a promo code"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000252/squatch-assets/n7vC4BR.png"),...ta("40 SaaSquatch Points")})},ha={...Xe(ia,"chooseAmount",{...Qe,...aa(""),...ea("Free swag with a promo code"),...Ye("https://i.imgur.com/n7vC4BR.png"),...ta("40 SaaSquatch Points")})},ba={...Xe(ia,"confirmation",{...Qe,...ea("Free swag with a promo code"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000252/squatch-assets/n7vC4BR.png"),...ta("40 SaaSquatch Points")})},xa={...Xe(ia,"confirmation",{...Qe,...ea("Visa® Prepaid Card USD"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...la(20,80,"Points")},ua(20,"$",40,"Points"))},Ca={...Xe(ia,"confirmation",{...Qe,...ea("Visa® Prepaid Card USD"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),...la(20,80,"Points")},ua(20,"$",40,"Points"),!0)},ya={...Xe(void 0,"chooseReward",void 0,void 0,void 0,void 0,void 0,void 0,!0)},wa={...Xe(ia,"success",{...Qe,...ea("Free swag with a promo code"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000252/squatch-assets/n7vC4BR.png"),...ta("40 SaaSquatch Points")},void 0,void 0,void 0,"4ah2-hh46-gk7r")},qa={...Xe(ia,"success",{...Qe,...ea("Visa® Prepaid Card USD"),...Ye("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/93BvEgH.png"),...la(20,80,"Points")},ua(20,"$",40,"Points"))},Ra={...Xe(null,"chooseReward",null,null,!1,!0)},Sa={...Xe(null,"chooseReward",null,null,!1,!1,null,!0)},$a=u.gql`
416
+ query (
417
+ $programId: ID
418
+ $engagementMedium: UserEngagementMedium!
419
+ $shareMedium: ReferralShareMedium!
420
+ ) {
421
+ viewer {
422
+ ... on User {
423
+ messageLink(
424
+ programId: $programId
425
+ engagementMedium: $engagementMedium
426
+ shareMedium: $shareMedium
427
+ )
428
+ shareLink(programId: $programId, engagementMedium: $engagementMedium)
429
+ }
430
+ }
431
+ }
432
+ `;function Ia(e){var a,t,l,r;const{sharetitle:i,sharetext:s,medium:o}=e,d=e.programId?e.programId:n(),u=c(),h={engagementMedium:v(),programId:d,shareMedium:o.toUpperCase()},b=m(w),x=null==b?void 0:b[o],C=p($a,h,!(null==u?void 0:u.jwt)||!d||void 0!==x),[y,R]=g(q),S=(null==x?void 0:x.shareLink)||(null===(t=null===(a=null==C?void 0:C.data)||void 0===a?void 0:a.viewer)||void 0===t?void 0:t.shareLink),$=f(),I="SMS"===o.toLocaleUpperCase()&&void 0===window.orientation||"DIRECT"===o.toLocaleUpperCase()&&!window.navigator.share,k=(null==x?void 0:x.messageLink)||(null===(r=null===(l=C.data)||void 0===l?void 0:l.viewer)||void 0===r?void 0:r.messageLink),T=!("FACEBOOK"===o.toLocaleUpperCase()&&"SquatchAndroid"===$.type)&&"DIRECT"!==o.toLocaleUpperCase()&&k,E=window.navigator.userAgent.toLowerCase(),M=/safari/.test(E),V=/iphone|ipod|ipad/.test(E)&&!M;return{...e,loading:C.loading&&!(null==x?void 0:x.messageLink),messageLink:k,isPlainLink:T,onClick:async function(){x&&(await y({referralCode:b.referralCode}),b.refresh()),"FACEBOOK"===o.toLocaleUpperCase()&&"SquatchAndroid"===$.type?function(e,a,t){"undefined"===a||"undefined"===e?alert(t):void 0!==SquatchAndroid.shareOnFacebook?SquatchAndroid.shareOnFacebook(e,a):function(e,a){e?window.location.href=e:alert(a)}(a,t)}(S,k,e.errorText):"DIRECT"===o.toLocaleUpperCase()&&function(e,a,t,l){const r=e.sharetitle||"Share title",i=e.sharetext||"Share text";if("undefined"===a)return alert(t);window.navigator.share?window.navigator.share({title:r,text:i,url:a}).catch((e=>console.error("Error on web share",e))):alert(l)}({sharetitle:i,sharetext:s},S,e.errorText,e.unsupportedPlatformText)},openInSameTab:V,hide:I}}const ka=u.gql`
433
+ query ($programId: ID, $engagementMedium: UserEngagementMedium!) {
434
+ user: viewer {
435
+ ... on User {
436
+ shareLink(
437
+ programId: $programId
438
+ engagementMedium: $engagementMedium
439
+ shareMedium: DIRECT
440
+ )
441
+ }
442
+ }
443
+ }
444
+ `,Ta=u.gql`
445
+ mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
446
+ createUserAnalyticsEvent(eventMeta: $eventMeta)
447
+ }
448
+ `;function Ea(e){var a,t;const{programId:l=n()}=e,r=c(),i=v(),s=m(w),{data:d}=p(ka,{programId:l,engagementMedium:i},!(null==r?void 0:r.jwt)||!!e.linkOverride||void 0!==(null==s?void 0:s.shareLink)),[u]=g(Ta),[f,h]=g(q),b=null!==(t=(null==s?void 0:s.shareLink)||(null===(a=null==d?void 0:d.user)||void 0===a?void 0:a.shareLink))&&void 0!==t?t:"...",[x,C]=o(!1);return{...e,onClick:async function(){s&&(await f({referralCode:s.referralCode}),s.refresh()),navigator.clipboard.writeText(b),C(!0),setTimeout((()=>C(!1)),e.tooltiplifespan),u({eventMeta:{programId:l,id:null==r?void 0:r.id,accountId:null==r?void 0:r.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:i,shareMedium:"DIRECT"}}})},open:x,copyString:b}}const Ma=new Map;function Va(e){const a=l(e);let t=e.render.bind(e);e.render=()=>{const e=a.getAttribute("stencilbook-shadow-view");if(e){const a=Ma.get(e);if(a)return a}return t()}}const La=({story:a},t)=>{var l;let r=null===(l=a.parent.parameters)||void 0===l?void 0:l.tagname;if(!r)return t;const i=Math.round(1e5*Math.random());return Ma.set(i+"",t),e("stencilbook-shawdow-view-"+i,null,e(r,{"stencilbook-shadow-view":i}))};export{Sa as A,F as B,ee as C,ye as D,we as E,sa as F,Ia as G,$e as H,Ee as I,Ea as J,ne as K,qe as L,We as M,Le as N,La as O,W as P,J as Q,De as R,Z as S,ce as T,Va as U,oa as V,U as a,N as b,he as c,me as d,be as e,Ae as f,He as g,Be as h,Ge as i,na as j,ca as k,fa as l,ha as m,pa as n,va as o,ma as p,ga as q,da as r,ba as s,xa as t,Y as u,Ca as v,ya as w,wa as x,qa as y,Ra as z}