@saasquatch/mint-components 2.5.5-2 → 2.5.5

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 (1068) hide show
  1. package/dist/cjs/AsYouType-5f15a922.js +4764 -0
  2. package/dist/cjs/{ErrorView-17578c10.js → ErrorView-8f6cf1cb.js} +1 -1
  3. package/dist/cjs/{GenericTableView-4c48c630.js → GenericTableView-12d35117.js} +17 -15
  4. package/dist/cjs/{JSS-8503a151.js → JSS-bf8078e9.js} +342 -338
  5. package/dist/cjs/{ShadowViewAddon-f57cb460.js → ShadowViewAddon-ee16ec1d.js} +312 -292
  6. package/dist/cjs/{copy-text-view-bb2c0ea7.js → copy-text-view-49517b2a.js} +2 -2
  7. package/dist/cjs/{data-ae38fa86.js → data-77273531.js} +5 -5
  8. package/dist/cjs/demoMerge-6f125494.js +203 -0
  9. package/dist/cjs/{dom-context-hooks.module-e7b6727c.js → dom-context-hooks.module-735c3942.js} +133 -76
  10. package/dist/cjs/{email-registration-view-306c8878.js → email-registration-view-36a74293.js} +10 -9
  11. package/dist/cjs/{global-3ba30270.js → global-973bc63c.js} +587 -583
  12. package/dist/cjs/{index.module-3221a469.js → index-8530c62f.js} +2911 -511
  13. package/dist/cjs/{index-8277cbb3.js → index-d41c2c94.js} +766 -340
  14. package/dist/cjs/{index-8c6255f5.js → index-f1dd6136.js} +47 -29
  15. package/dist/cjs/{jsonpointer-11327262.js → jsonpointer-0db21316.js} +8 -4
  16. package/dist/cjs/loader.cjs.js +6 -5
  17. package/dist/cjs/{luxon-c1ad356a.js → luxon-d3612a3d.js} +486 -299
  18. package/dist/cjs/mint-components.cjs.js +11 -7
  19. package/dist/cjs/{mockRewardData-ed603fca.js → mockRewardData-e6a0a048.js} +5 -3
  20. package/dist/cjs/{parseStates-d1effc19.js → parseStates-35013ba4.js} +3 -0
  21. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  22. package/dist/cjs/{re-render-34b36aca.js → re-render-51c48d7c.js} +5 -5
  23. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +399 -1395
  24. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +813 -2891
  25. package/dist/cjs/{sqm-close-button-view-e9f2a454.js → sqm-close-button-view-74e5e1e9.js} +2 -2
  26. package/dist/cjs/sqm-close-button.cjs.entry.js +6 -11
  27. package/dist/cjs/sqm-code-verification.cjs.entry.js +20 -47
  28. package/dist/cjs/sqm-context-router.cjs.entry.js +9 -8
  29. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +71 -182
  30. package/dist/cjs/sqm-empty_4.cjs.entry.js +21 -58
  31. package/dist/cjs/sqm-form-message_2.cjs.entry.js +7 -19
  32. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +10 -9
  33. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +11 -10
  34. package/dist/cjs/sqm-header-logo.cjs.entry.js +4 -19
  35. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +14 -89
  36. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +6 -8
  37. package/dist/cjs/{sqm-lead-checkbox-field-view-d6df81c7.js → sqm-lead-checkbox-field-view-24ac7358.js} +12 -11
  38. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +14 -30
  39. package/dist/cjs/sqm-lead-input-field-view-7dfbc714.js +52 -0
  40. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +15 -31
  41. package/dist/cjs/{sqm-leaderboard-rank-view-67fd7934.js → sqm-leaderboard-rank-view-e992762c.js} +1 -1
  42. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +25 -22
  43. package/dist/cjs/{sqm-logout-current-user-view-f330d641.js → sqm-logout-current-user-view-ebee238e.js} +2 -2
  44. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +17 -28
  45. package/dist/cjs/{sqm-navigation-sidebar-item-view-9134e64e.js → sqm-navigation-sidebar-item-view-a2cab80e.js} +4 -4
  46. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +23 -18
  47. package/dist/cjs/{sqm-navigation-sidebar-view-6616e3e0.js → sqm-navigation-sidebar-view-873e0c44.js} +2 -2
  48. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +12 -17
  49. package/dist/cjs/sqm-pagination_3.cjs.entry.js +40 -102
  50. package/dist/cjs/{sqm-partner-info-modal-view-6173c618.js → sqm-partner-info-modal-view-c8972001.js} +4 -4
  51. package/dist/cjs/sqm-password-field.cjs.entry.js +186 -86
  52. package/dist/cjs/sqm-popup-container.cjs.entry.js +12 -12
  53. package/dist/cjs/{sqm-portal-container-view-757f921b.js → sqm-portal-container-view-c0cf9af9.js} +2 -2
  54. package/dist/cjs/{sqm-portal-email-verification-view-38d8344c.js → sqm-portal-email-verification-view-92866725.js} +4 -4
  55. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +22 -52
  56. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +101 -429
  57. package/dist/cjs/sqm-portal-logout.cjs.entry.js +7 -13
  58. package/dist/cjs/{sqm-portal-profile-view-062eda68.js → sqm-portal-profile-view-60e78cdb.js} +20 -17
  59. package/dist/cjs/sqm-portal-profile.cjs.entry.js +20 -56
  60. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -24
  61. package/dist/cjs/{sqm-portal-registration-form-view-a45f7a52.js → sqm-portal-registration-form-view-5473e24d.js} +26 -21
  62. package/dist/cjs/{sqm-portal-reset-password-view-b2c546bd.js → sqm-portal-reset-password-view-7a6f55c5.js} +3 -3
  63. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +21 -89
  64. package/dist/cjs/{sqm-portal-verify-email-view-2a120d0a.js → sqm-portal-verify-email-view-7efa70c9.js} +48 -45
  65. package/dist/cjs/{sqm-qr-code-view-0d43424e.js → sqm-qr-code-view-70da70f9.js} +3 -3
  66. package/dist/cjs/sqm-qr-code.cjs.entry.js +22 -48
  67. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +37 -140
  68. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +5 -4
  69. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -7
  70. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +98 -217
  71. package/dist/cjs/sqm-route.cjs.entry.js +2 -1
  72. package/dist/cjs/sqm-scroll.cjs.entry.js +12 -8
  73. package/dist/cjs/sqm-stencilbook.cjs.entry.js +2892 -2264
  74. package/dist/cjs/sqm-tab.cjs.entry.js +5 -4
  75. package/dist/cjs/sqm-tabs.cjs.entry.js +9 -8
  76. package/dist/cjs/{sqm-text-span-view-b9e10f5d.js → sqm-text-span-view-c6938acd.js} +2 -2
  77. package/dist/cjs/sqm-text-span.cjs.entry.js +8 -4
  78. package/dist/cjs/{sqm-user-info-form-view-aedca5fe.js → sqm-user-info-form-view-e878a9a3.js} +173 -163
  79. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +6 -11
  80. package/dist/cjs/subregions-3dbacb18.js +1467 -0
  81. package/dist/cjs/{useChildElements-36f7e4bb.js → useChildElements-e5e26816.js} +3 -3
  82. package/dist/cjs/{useIndirectTaxForm-7656fc63.js → useIndirectTaxForm-691691c2.js} +42 -38
  83. package/dist/cjs/{useInstantAccessRegistration-43514e50.js → useInstantAccessRegistration-9201777d.js} +6 -6
  84. package/dist/cjs/{useLeadFormState-34f9834b.js → useLeadFormState-f5b768b9.js} +20 -20
  85. package/dist/cjs/{usePortalRegistrationForm-b18a1f6b.js → usePortalRegistrationForm-b3c0451b.js} +16 -13
  86. package/dist/cjs/{useReferralCodes-25d5320a.js → useReferralCodes-5794a177.js} +11 -11
  87. package/dist/cjs/{useReferralTable-ad86986b.js → useReferralTable-32b3541b.js} +19 -19
  88. package/dist/cjs/{useRegistrationFormState-ea81d55a.js → useRegistrationFormState-feccd2c8.js} +3 -3
  89. package/dist/cjs/{useVerificationEmail-70aad5f1.js → useVerificationEmail-f0807562.js} +17 -15
  90. package/dist/cjs/{utilities-dfc34bea.js → utilities-04345466.js} +3 -3
  91. package/dist/collection/ShadowViewAddon.js +1 -2
  92. package/dist/collection/collection-manifest.json +2 -2
  93. package/dist/collection/components/raisins-plop-target/raisins-plop-target.js +36 -34
  94. package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +3 -7
  95. package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +11 -23
  96. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +11 -27
  97. package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +2 -16
  98. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +1 -4
  99. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +294 -298
  100. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +3 -3
  101. package/dist/collection/components/sqm-brand/SqmBrand.stories.js +4 -72
  102. package/dist/collection/components/sqm-brand/sqm-brand.js +61 -58
  103. package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +43 -120
  104. package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +1 -5
  105. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +55 -59
  106. package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +17 -22
  107. package/dist/collection/components/sqm-checkbox-field/UseCheckboxField.stories.js +5 -19
  108. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +18 -21
  109. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +167 -179
  110. package/dist/collection/components/sqm-close-button/CloseButton.stories.js +3 -5
  111. package/dist/collection/components/sqm-close-button/sqm-close-button-view.js +1 -5
  112. package/dist/collection/components/sqm-close-button/sqm-close-button.js +32 -35
  113. package/dist/collection/components/sqm-context-router/ContextRouter.js +4 -33
  114. package/dist/collection/components/sqm-context-router/sqm-context-router.js +39 -33
  115. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +13 -13
  116. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +1 -7
  117. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +601 -695
  118. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +10 -5
  119. package/dist/collection/components/sqm-divided-layout/DividedLayout.stories.js +19 -36
  120. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +1 -5
  121. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +129 -135
  122. package/dist/collection/components/sqm-dropdown-field/DropdownField.stories.js +7 -7
  123. package/dist/collection/components/sqm-dropdown-field/UseDropdownField.stories.js +3 -15
  124. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +13 -15
  125. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +128 -133
  126. package/dist/collection/components/sqm-edit-profile/EditProfileForm.stories.js +2 -2
  127. package/dist/collection/components/sqm-edit-profile/UseEditProfile.stories.js +9 -9
  128. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +27 -45
  129. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +272 -264
  130. package/dist/collection/components/sqm-edit-profile/useEditProfile.js +4 -3
  131. package/dist/collection/components/sqm-empty/EmptyState.stories.js +4 -7
  132. package/dist/collection/components/sqm-empty/sqm-empty-view.js +6 -12
  133. package/dist/collection/components/sqm-empty/sqm-empty.js +102 -95
  134. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +9 -27
  135. package/dist/collection/components/sqm-form-message/sqm-form-message.js +102 -108
  136. package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +61 -56
  137. package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +32 -28
  138. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +147 -161
  139. package/dist/collection/components/sqm-hero/Hero.stories.js +20 -54
  140. package/dist/collection/components/sqm-hero/sqm-hero-view.js +5 -11
  141. package/dist/collection/components/sqm-hero/sqm-hero.js +177 -202
  142. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +9 -26
  143. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +533 -590
  144. package/dist/collection/components/sqm-hook-story-container/sqm-hook-story-container.js +28 -23
  145. package/dist/collection/components/sqm-image/sqm-image-view.js +1 -6
  146. package/dist/collection/components/sqm-image/sqm-image.js +131 -131
  147. package/dist/collection/components/sqm-input-field/InputField.stories.js +17 -17
  148. package/dist/collection/components/sqm-input-field/UseInputField.stories.js +7 -22
  149. package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +14 -15
  150. package/dist/collection/components/sqm-input-field/sqm-input-field.js +156 -162
  151. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +410 -481
  152. package/dist/collection/components/sqm-invoice-table/InvoiceTable.stories.js +2 -18
  153. package/dist/collection/components/sqm-invoice-table/UseInvoiceTable.stories.js +2 -14
  154. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-data-cell.js +27 -23
  155. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-date-cell.js +44 -40
  156. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +29 -29
  157. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +85 -80
  158. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +68 -64
  159. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +40 -39
  160. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -8
  161. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +287 -310
  162. package/dist/collection/components/sqm-invoice-table/useInvoiceTable.js +1 -3
  163. package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +7 -7
  164. package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +6 -10
  165. package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +10 -10
  166. package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +7 -7
  167. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +20 -24
  168. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +167 -179
  169. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +13 -17
  170. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +174 -189
  171. package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +22 -48
  172. package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +365 -420
  173. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +13 -16
  174. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +179 -191
  175. package/dist/collection/components/sqm-lead-form/useLeadForm.js +3 -1
  176. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +23 -29
  177. package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +3 -15
  178. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +11 -35
  179. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +553 -563
  180. package/dist/collection/components/sqm-leaderboard-rank/LeaderboardRank.stories.js +3 -12
  181. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +200 -192
  182. package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +4 -3
  183. package/dist/collection/components/sqm-link-button/LinkButton.stories.js +2 -2
  184. package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +1 -6
  185. package/dist/collection/components/sqm-link-button/sqm-link-button.js +73 -77
  186. package/dist/collection/components/sqm-logout-current-user/LogoutCurrentUser.stories.js +1 -1
  187. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user-view.js +1 -9
  188. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +106 -115
  189. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +104 -109
  190. package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -2
  191. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +21 -20
  192. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +104 -109
  193. package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu-view.js +6 -9
  194. package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +92 -82
  195. package/dist/collection/components/sqm-navigation-sidebar/NavigationSidebar.stories.js +1 -3
  196. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +1 -8
  197. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +71 -73
  198. package/dist/collection/components/sqm-navigation-sidebar-item/SidebarItem.stories.js +2 -2
  199. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +1 -4
  200. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +315 -308
  201. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +1 -9
  202. package/dist/collection/components/sqm-pagination/sqm-pagination.js +94 -100
  203. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +13 -13
  204. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +22 -54
  205. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +515 -603
  206. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +3 -3
  207. package/dist/collection/components/sqm-password-field/passwordValidation.js +8 -20
  208. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +16 -18
  209. package/dist/collection/components/sqm-password-field/sqm-password-field.js +197 -219
  210. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -7
  211. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -4
  212. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +82 -84
  213. package/dist/collection/components/sqm-popup-container/PopupContainer.stories.js +1 -2
  214. package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +1 -5
  215. package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +161 -155
  216. package/dist/collection/components/sqm-portal-change-marketing/ChangeMarketing.stories.js +5 -5
  217. package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +8 -17
  218. package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +142 -154
  219. package/dist/collection/components/sqm-portal-change-password/ChangePassword.stories.js +6 -6
  220. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -24
  221. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +380 -436
  222. package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +5 -2
  223. package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +16 -119
  224. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -5
  225. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +280 -299
  226. package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js +5 -5
  227. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +13 -25
  228. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +216 -243
  229. package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
  230. package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +6 -6
  231. package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +1 -12
  232. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -16
  233. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +317 -351
  234. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
  235. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -14
  236. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +279 -316
  237. package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -1
  238. package/dist/collection/components/sqm-portal-frame/PortalFrame.stories.js +14 -55
  239. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +1 -7
  240. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +141 -158
  241. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +295 -342
  242. package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +19 -26
  243. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +645 -749
  244. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -5
  245. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -17
  246. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +255 -292
  247. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
  248. package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +33 -36
  249. package/dist/collection/components/sqm-portal-profile/PortalProfile.stories.js +6 -6
  250. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +15 -26
  251. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +282 -314
  252. package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +72 -82
  253. package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +8 -13
  254. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +15 -28
  255. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +525 -610
  256. package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -1
  257. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +10 -15
  258. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +20 -33
  259. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +573 -663
  260. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +5 -2
  261. package/dist/collection/components/sqm-portal-reset-password/PortalResetPassword.stories.js +6 -6
  262. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +7 -29
  263. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +449 -514
  264. package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +2 -1
  265. package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +2 -2
  266. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +2 -14
  267. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +196 -222
  268. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +4 -2
  269. package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +20 -32
  270. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -7
  271. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +84 -78
  272. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -10
  273. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +231 -220
  274. package/dist/collection/components/sqm-program-menu/ProgramMenu.stories.js +8 -25
  275. package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +8 -9
  276. package/dist/collection/components/sqm-qr-code/QRCode.stories.js +8 -8
  277. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -11
  278. package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +206 -230
  279. package/dist/collection/components/sqm-radio-card/RadioCard.stories.js +2 -2
  280. package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +1 -9
  281. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +29 -86
  282. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +3 -11
  283. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +304 -335
  284. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +14 -14
  285. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +369 -410
  286. package/dist/collection/components/sqm-referral-code/useReferralCode.js +3 -3
  287. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +9 -36
  288. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +3 -14
  289. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +167 -175
  290. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +2 -4
  291. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -3
  292. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +125 -132
  293. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +9 -24
  294. package/dist/collection/components/sqm-referral-table/ReferralTableCell.stories.js +1 -1
  295. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +5 -8
  296. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +1 -1
  297. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +30 -30
  298. package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +8 -30
  299. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-cell.js +28 -23
  300. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-date-cell.js +44 -40
  301. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +219 -278
  302. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +81 -76
  303. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-user-cell.js +24 -20
  304. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +65 -61
  305. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +120 -139
  306. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +260 -300
  307. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +208 -225
  308. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +124 -133
  309. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +229 -253
  310. package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -3
  311. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +479 -557
  312. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +1 -1
  313. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +1 -0
  314. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -26
  315. package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +8 -18
  316. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +26 -28
  317. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +96 -174
  318. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +618 -726
  319. package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +16 -31
  320. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +12 -15
  321. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +11 -11
  322. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +8 -30
  323. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.js +45 -40
  324. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +44 -40
  325. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +97 -103
  326. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +160 -156
  327. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +336 -332
  328. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +96 -105
  329. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +67 -66
  330. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +127 -135
  331. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +173 -197
  332. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +390 -463
  333. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +4 -2
  334. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +206 -219
  335. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -3
  336. package/dist/collection/components/sqm-route/sqm-route.js +31 -26
  337. package/dist/collection/components/sqm-router/Router.stories.js +4 -33
  338. package/dist/collection/components/sqm-router/sqm-router.js +17 -14
  339. package/dist/collection/components/sqm-scroll/Scroll.stories.js +6 -89
  340. package/dist/collection/components/sqm-scroll/sqm-scroll.js +259 -255
  341. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +12 -46
  342. package/dist/collection/components/sqm-share-button/UseShareButton.stories.js +2 -7
  343. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -6
  344. package/dist/collection/components/sqm-share-button/sqm-share-button.js +509 -521
  345. package/dist/collection/components/sqm-share-code/ShareCode.stories.js +13 -13
  346. package/dist/collection/components/sqm-share-code/sqm-share-code.js +329 -360
  347. package/dist/collection/components/sqm-share-code/useShareCode.js +3 -3
  348. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +85 -86
  349. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +17 -20
  350. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +21 -49
  351. package/dist/collection/components/sqm-share-link/sqm-share-link.js +987 -1192
  352. package/dist/collection/components/sqm-share-link/useShareLink.js +3 -3
  353. package/dist/collection/components/sqm-skeleton/sqm-skeleton.js +55 -59
  354. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +1 -5
  355. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +162 -185
  356. package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
  357. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +12 -15
  358. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +1 -5
  359. package/dist/collection/components/sqm-stencilbook/HookStoryAddon.js +1 -2
  360. package/dist/collection/components/sqm-stencilbook/Matrix.js +4 -13
  361. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -13
  362. package/dist/collection/components/sqm-tab/sqm-tab.js +27 -25
  363. package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +47 -49
  364. package/dist/collection/components/sqm-table-row/sqm-table-row.js +27 -30
  365. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +10 -17
  366. package/dist/collection/components/sqm-tabs/sqm-tabs.js +62 -59
  367. package/dist/collection/components/sqm-tabs/useTabs.js +1 -2
  368. package/dist/collection/components/sqm-task-card/DetailsView.js +1 -7
  369. package/dist/collection/components/sqm-task-card/SVGs.js +3 -7
  370. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +31 -277
  371. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -17
  372. package/dist/collection/components/sqm-task-card/progress-bar/ProgressBar.stories.js +1 -1
  373. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +2 -10
  374. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +10 -13
  375. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +56 -83
  376. package/dist/collection/components/sqm-task-card/sqm-task-card.js +780 -860
  377. package/dist/collection/components/sqm-text/Text.stories.js +2 -4
  378. package/dist/collection/components/sqm-text/sqm-text.js +61 -57
  379. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -5
  380. package/dist/collection/components/sqm-text-span/sqm-text-span.js +109 -101
  381. package/dist/collection/components/sqm-timeline/SVGs.js +3 -9
  382. package/dist/collection/components/sqm-timeline/Timeline.stories.js +5 -57
  383. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +1 -16
  384. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +178 -166
  385. package/dist/collection/components/sqm-timeline/sqm-timeline.js +41 -45
  386. package/dist/collection/components/sqm-titled-section/TitledSection.stories.js +5 -206
  387. package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +1 -4
  388. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +129 -148
  389. package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +4 -7
  390. package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +1 -3
  391. package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +146 -137
  392. package/dist/collection/components/sqm-user-name/sqm-user-name.js +82 -84
  393. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +6 -26
  394. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +215 -240
  395. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +12 -22
  396. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +12 -30
  397. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +177 -195
  398. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +33 -41
  399. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +771 -921
  400. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +4 -2
  401. package/dist/collection/components/tax-and-cash/SVGs.js +1 -4
  402. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -3
  403. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +188 -198
  404. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +34 -83
  405. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1864 -2210
  406. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -7
  407. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +13 -31
  408. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +26 -53
  409. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +565 -660
  410. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -3
  411. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +24 -63
  412. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +699 -816
  413. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +11 -7
  414. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +1 -4
  415. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +5 -20
  416. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +130 -147
  417. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +12 -33
  418. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +910 -1035
  419. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +1 -3
  420. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/LoadingView.js +2 -19
  421. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +4760 -5686
  422. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +89 -176
  423. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +1857 -2159
  424. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -0
  425. package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +27 -27
  426. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +5 -9
  427. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +24 -44
  428. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/SlotViews.stories.js +6 -6
  429. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +120 -157
  430. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +713 -823
  431. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -7
  432. package/dist/collection/components/views/EmailRegistration.stories.js +60 -60
  433. package/dist/collection/components/views/copy-text-view.js +6 -17
  434. package/dist/collection/components/views/email-registration-view.js +14 -28
  435. package/dist/collection/global/styles.js +8 -4
  436. package/dist/collection/stories/NewPortal.stories.js +106 -178
  437. package/dist/collection/tables/GenericTableView.js +19 -27
  438. package/dist/collection/tables/TableSlots.js +5 -19
  439. package/dist/collection/utils/DefaultTemplateView.js +6 -24
  440. package/dist/collection/utils/RequiredPropsError.js +10 -24
  441. package/dist/collection/utils/TemplateView.js +1 -3
  442. package/dist/collection/utils/demoMerge.js +10 -0
  443. package/dist/esm/AsYouType-cc09fa68.js +4746 -0
  444. package/dist/esm/{ErrorView-c6fc1d9b.js → ErrorView-19af8137.js} +1 -1
  445. package/dist/esm/{GenericTableView-471a9386.js → GenericTableView-4f7ac63d.js} +17 -15
  446. package/dist/esm/{JSS-67b5cff8.js → JSS-e97b34f4.js} +341 -337
  447. package/dist/esm/{ShadowViewAddon-e1375e0d.js → ShadowViewAddon-0c8005bd.js} +284 -264
  448. package/dist/esm/{copy-text-view-87259b11.js → copy-text-view-e1c3f2cd.js} +2 -2
  449. package/dist/esm/{data-04d2da44.js → data-510cc9b7.js} +1 -1
  450. package/dist/esm/demoMerge-a0320a8e.js +201 -0
  451. package/dist/esm/{dom-context-hooks.module-50442785.js → dom-context-hooks.module-f88a3e54.js} +129 -72
  452. package/dist/esm/{email-registration-view-4cdb4129.js → email-registration-view-7a63a912.js} +10 -9
  453. package/dist/esm/{global-f019575d.js → global-cf0cc6b1.js} +586 -582
  454. package/dist/esm/{index-38ad4957.js → index-7a8b0c0b.js} +766 -341
  455. package/dist/esm/{index.module-cc08450c.js → index-b04013cc.js} +2873 -473
  456. package/dist/esm/{index-ffa26b43.js → index-e6f5153e.js} +47 -29
  457. package/dist/esm/{jsonpointer-388a7082.js → jsonpointer-c5423376.js} +8 -4
  458. package/dist/esm/loader.js +6 -5
  459. package/dist/esm/{luxon-1be92a8e.js → luxon-40b943cb.js} +486 -299
  460. package/dist/esm/mint-components.js +8 -7
  461. package/dist/esm/{mockRewardData-9b27d6f1.js → mockRewardData-2cceba7a.js} +5 -3
  462. package/dist/esm/{parseStates-ed75e224.js → parseStates-0c27f2de.js} +3 -1
  463. package/dist/esm/polyfills/css-shim.js +1 -1
  464. package/dist/esm/raisins-plop-target.entry.js +1 -1
  465. package/dist/esm/{re-render-380499f8.js → re-render-e911a0f7.js} +5 -5
  466. package/dist/esm/sqm-banking-info-form_10.entry.js +381 -1377
  467. package/dist/esm/sqm-big-stat_47.entry.js +762 -2840
  468. package/dist/esm/{sqm-close-button-view-fd9012e7.js → sqm-close-button-view-1deb12b1.js} +2 -2
  469. package/dist/esm/sqm-close-button.entry.js +5 -10
  470. package/dist/esm/sqm-code-verification.entry.js +19 -46
  471. package/dist/esm/sqm-context-router.entry.js +6 -5
  472. package/dist/esm/sqm-email-verification_2.entry.js +43 -154
  473. package/dist/esm/sqm-empty_4.entry.js +21 -58
  474. package/dist/esm/sqm-form-message_2.entry.js +7 -19
  475. package/dist/esm/sqm-google-sign-in.entry.js +4 -3
  476. package/dist/esm/sqm-graphql-client-provider.entry.js +9 -8
  477. package/dist/esm/sqm-header-logo.entry.js +4 -19
  478. package/dist/esm/sqm-instant-access-registration.entry.js +12 -87
  479. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +6 -8
  480. package/dist/esm/{sqm-lead-checkbox-field-view-04aa32a7.js → sqm-lead-checkbox-field-view-d055e7bd.js} +12 -11
  481. package/dist/esm/sqm-lead-checkbox-field.entry.js +12 -28
  482. package/dist/esm/sqm-lead-input-field-view-b0d62f1c.js +50 -0
  483. package/dist/esm/sqm-lead-input-field.entry.js +13 -29
  484. package/dist/esm/{sqm-leaderboard-rank-view-7a682cc3.js → sqm-leaderboard-rank-view-cd52cc80.js} +1 -1
  485. package/dist/esm/sqm-leaderboard-rank.entry.js +22 -19
  486. package/dist/esm/{sqm-logout-current-user-view-376c1bf6.js → sqm-logout-current-user-view-9bda187a.js} +2 -2
  487. package/dist/esm/sqm-logout-current-user.entry.js +12 -23
  488. package/dist/esm/{sqm-navigation-sidebar-item-view-40837457.js → sqm-navigation-sidebar-item-view-754b2484.js} +4 -4
  489. package/dist/esm/sqm-navigation-sidebar-item.entry.js +21 -16
  490. package/dist/esm/{sqm-navigation-sidebar-view-2b66457a.js → sqm-navigation-sidebar-view-e2094399.js} +2 -2
  491. package/dist/esm/sqm-navigation-sidebar.entry.js +11 -16
  492. package/dist/esm/sqm-pagination_3.entry.js +35 -97
  493. package/dist/esm/{sqm-partner-info-modal-view-e02fb63a.js → sqm-partner-info-modal-view-3b59be37.js} +4 -4
  494. package/dist/esm/sqm-password-field.entry.js +185 -85
  495. package/dist/esm/sqm-popup-container.entry.js +12 -12
  496. package/dist/esm/{sqm-portal-container-view-200c9df8.js → sqm-portal-container-view-fcd53673.js} +2 -2
  497. package/dist/esm/{sqm-portal-email-verification-view-3fa9587c.js → sqm-portal-email-verification-view-88fbf496.js} +4 -4
  498. package/dist/esm/sqm-portal-email-verification.entry.js +18 -48
  499. package/dist/esm/sqm-portal-forgot-password_6.entry.js +73 -401
  500. package/dist/esm/sqm-portal-logout.entry.js +5 -11
  501. package/dist/esm/{sqm-portal-profile-view-41894261.js → sqm-portal-profile-view-f27adfba.js} +20 -17
  502. package/dist/esm/sqm-portal-profile.entry.js +16 -52
  503. package/dist/esm/sqm-portal-protected-route.entry.js +8 -21
  504. package/dist/esm/{sqm-portal-registration-form-view-79265df5.js → sqm-portal-registration-form-view-113e1969.js} +26 -21
  505. package/dist/esm/{sqm-portal-reset-password-view-c7dd1c01.js → sqm-portal-reset-password-view-f9fb6355.js} +3 -3
  506. package/dist/esm/sqm-portal-reset-password.entry.js +18 -86
  507. package/dist/esm/{sqm-portal-verify-email-view-c102aa7c.js → sqm-portal-verify-email-view-ee40e3f2.js} +48 -45
  508. package/dist/esm/{sqm-qr-code-view-dd46daa3.js → sqm-qr-code-view-f8de4606.js} +3 -3
  509. package/dist/esm/sqm-qr-code.entry.js +18 -44
  510. package/dist/esm/sqm-referral-table_11.entry.js +36 -139
  511. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +5 -4
  512. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -7
  513. package/dist/esm/sqm-rewards-table_9.entry.js +55 -174
  514. package/dist/esm/sqm-route.entry.js +2 -1
  515. package/dist/esm/sqm-scroll.entry.js +12 -8
  516. package/dist/esm/sqm-stencilbook.entry.js +4808 -4180
  517. package/dist/esm/sqm-tab.entry.js +5 -4
  518. package/dist/esm/sqm-tabs.entry.js +9 -8
  519. package/dist/esm/{sqm-text-span-view-72f43dff.js → sqm-text-span-view-ed92b3c6.js} +2 -2
  520. package/dist/esm/sqm-text-span.entry.js +8 -4
  521. package/dist/esm/{sqm-user-info-form-view-8a95c5eb.js → sqm-user-info-form-view-c044a385.js} +173 -163
  522. package/dist/esm/sqm-widget-verification-controller.entry.js +4 -9
  523. package/dist/esm/subregions-d9f177f6.js +1452 -0
  524. package/dist/esm/{useChildElements-aa9eb7c9.js → useChildElements-a69f208f.js} +3 -3
  525. package/dist/esm/{useIndirectTaxForm-8d2e873d.js → useIndirectTaxForm-64a3ca69.js} +32 -28
  526. package/dist/esm/{useInstantAccessRegistration-7b11eb02.js → useInstantAccessRegistration-8c678a5a.js} +6 -6
  527. package/dist/esm/{useLeadFormState-b67018f2.js → useLeadFormState-34e05463.js} +7 -7
  528. package/dist/esm/{usePortalRegistrationForm-91e5786d.js → usePortalRegistrationForm-c6519939.js} +14 -11
  529. package/dist/esm/{useReferralCodes-a0a271ca.js → useReferralCodes-d0a384e4.js} +9 -9
  530. package/dist/esm/{useReferralTable-670580ff.js → useReferralTable-214dff06.js} +11 -11
  531. package/dist/esm/{useRegistrationFormState-95a75c57.js → useRegistrationFormState-72b4786d.js} +3 -3
  532. package/dist/esm/{useVerificationEmail-99d9f705.js → useVerificationEmail-b2c349a3.js} +12 -10
  533. package/dist/esm/{utilities-23a276e0.js → utilities-ceab25cd.js} +2 -2
  534. package/dist/esm-es5/AsYouType-cc09fa68.js +1 -0
  535. package/dist/esm-es5/{ErrorView-c6fc1d9b.js → ErrorView-19af8137.js} +1 -1
  536. package/dist/esm-es5/GenericTableView-4f7ac63d.js +1 -0
  537. package/dist/esm-es5/JSS-e97b34f4.js +8 -0
  538. package/dist/esm-es5/ShadowViewAddon-0c8005bd.js +1 -0
  539. package/dist/esm-es5/copy-text-view-e1c3f2cd.js +1 -0
  540. package/dist/esm-es5/data-510cc9b7.js +1 -0
  541. package/dist/esm-es5/demoMerge-a0320a8e.js +1 -0
  542. package/dist/esm-es5/dom-context-hooks.module-f88a3e54.js +53 -0
  543. package/dist/esm-es5/email-registration-view-7a63a912.js +1 -0
  544. package/dist/esm-es5/global-cf0cc6b1.js +271 -0
  545. package/dist/esm-es5/imageUrl-4775f17b.js +1 -1
  546. package/dist/esm-es5/index-7a8b0c0b.js +2 -0
  547. package/dist/esm-es5/index-b04013cc.js +1 -0
  548. package/dist/esm-es5/index-e6f5153e.js +1 -0
  549. package/dist/esm-es5/jsonpointer-c5423376.js +1 -0
  550. package/dist/esm-es5/loader.js +1 -1
  551. package/dist/esm-es5/luxon-40b943cb.js +1 -0
  552. package/dist/esm-es5/mint-components.js +1 -1
  553. package/dist/esm-es5/mockRewardData-2cceba7a.js +1 -0
  554. package/dist/esm-es5/parseStates-0c27f2de.js +1 -0
  555. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  556. package/dist/esm-es5/re-render-e911a0f7.js +1 -0
  557. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  558. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  559. package/dist/esm-es5/{sqm-close-button-view-fd9012e7.js → sqm-close-button-view-1deb12b1.js} +1 -1
  560. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  561. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  562. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  563. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  564. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  565. package/dist/esm-es5/sqm-form-message_2.entry.js +1 -1
  566. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  567. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  568. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  569. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  570. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
  571. package/dist/esm-es5/sqm-lead-checkbox-field-view-d055e7bd.js +1 -0
  572. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  573. package/dist/esm-es5/sqm-lead-input-field-view-b0d62f1c.js +1 -0
  574. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  575. package/dist/esm-es5/{sqm-leaderboard-rank-view-7a682cc3.js → sqm-leaderboard-rank-view-cd52cc80.js} +1 -1
  576. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  577. package/dist/esm-es5/{sqm-logout-current-user-view-376c1bf6.js → sqm-logout-current-user-view-9bda187a.js} +1 -1
  578. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  579. package/dist/esm-es5/sqm-navigation-sidebar-item-view-754b2484.js +1 -0
  580. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  581. package/dist/esm-es5/sqm-navigation-sidebar-view-e2094399.js +1 -0
  582. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  583. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  584. package/dist/esm-es5/sqm-partner-info-modal-view-3b59be37.js +1 -0
  585. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  586. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  587. package/dist/esm-es5/sqm-portal-container-view-fcd53673.js +1 -0
  588. package/dist/esm-es5/{sqm-portal-email-verification-view-3fa9587c.js → sqm-portal-email-verification-view-88fbf496.js} +1 -1
  589. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  590. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  591. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  592. package/dist/esm-es5/sqm-portal-profile-view-f27adfba.js +1 -0
  593. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  594. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  595. package/dist/esm-es5/sqm-portal-registration-form-view-113e1969.js +1 -0
  596. package/dist/esm-es5/sqm-portal-reset-password-view-f9fb6355.js +1 -0
  597. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  598. package/dist/esm-es5/sqm-portal-verify-email-view-ee40e3f2.js +1 -0
  599. package/dist/esm-es5/{sqm-qr-code-view-dd46daa3.js → sqm-qr-code-view-f8de4606.js} +1 -1
  600. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  601. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  602. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  603. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  604. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  605. package/dist/esm-es5/sqm-route.entry.js +1 -1
  606. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  607. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  608. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  609. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  610. package/dist/esm-es5/sqm-text-span-view-ed92b3c6.js +1 -0
  611. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  612. package/dist/esm-es5/sqm-user-info-form-view-c044a385.js +1 -0
  613. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  614. package/dist/esm-es5/subregions-d9f177f6.js +1 -0
  615. package/dist/esm-es5/useChildElements-a69f208f.js +1 -0
  616. package/dist/esm-es5/useIndirectTaxForm-64a3ca69.js +6 -0
  617. package/dist/esm-es5/useInstantAccessRegistration-8c678a5a.js +1 -0
  618. package/dist/esm-es5/useLeadFormState-34e05463.js +1 -0
  619. package/dist/esm-es5/usePortalRegistrationForm-c6519939.js +1 -0
  620. package/dist/esm-es5/useReferralCodes-d0a384e4.js +1 -0
  621. package/dist/esm-es5/useReferralTable-214dff06.js +1 -0
  622. package/dist/esm-es5/useRegistrationFormState-72b4786d.js +1 -0
  623. package/dist/esm-es5/useVerificationEmail-b2c349a3.js +1 -0
  624. package/dist/esm-es5/utilities-ceab25cd.js +1 -0
  625. package/dist/esm-es5/utils-334c1e34.js +1 -1
  626. package/dist/loader/index.d.ts +9 -1
  627. package/dist/loader/package.json +1 -0
  628. package/dist/mint-components/mint-components.esm.js +1 -1
  629. package/dist/mint-components/mint-components.js +2 -1
  630. package/dist/mint-components/p-029ee766.system.js +1 -0
  631. package/dist/mint-components/p-04eaa3bb.system.js +1 -0
  632. package/dist/mint-components/p-056845fb.js +56 -0
  633. package/dist/mint-components/p-05715d8c.system.entry.js +1 -0
  634. package/dist/mint-components/p-0650e0f1.system.js +1 -0
  635. package/dist/mint-components/p-09a6ab1f.entry.js +1 -0
  636. package/dist/mint-components/p-0a8c9f35.system.entry.js +1 -0
  637. package/dist/mint-components/{p-11c127f5.js → p-0b77b3fe.js} +1 -1
  638. package/dist/mint-components/p-0bc61e27.system.entry.js +1 -0
  639. package/dist/mint-components/p-0bdacc2d.system.js +1 -0
  640. package/dist/mint-components/p-0c81f11f.system.entry.js +1 -0
  641. package/dist/mint-components/p-0c97293e.entry.js +1 -0
  642. package/dist/mint-components/p-0d69fc17.system.entry.js +1 -0
  643. package/dist/mint-components/p-0daa339e.entry.js +1 -0
  644. package/dist/mint-components/p-0f65e4ad.system.js +1 -0
  645. package/dist/mint-components/p-11028f98.system.js +1 -0
  646. package/dist/mint-components/p-119b9680.system.js +1 -0
  647. package/dist/mint-components/{p-ed741b3b.js → p-125c5bec.js} +6 -6
  648. package/dist/mint-components/p-12ae9c97.entry.js +1 -0
  649. package/dist/mint-components/p-139825b2.entry.js +1 -0
  650. package/dist/mint-components/p-14f0af4c.system.entry.js +1 -0
  651. package/dist/mint-components/{p-1a3a57c0.js → p-159a9368.js} +1 -1
  652. package/dist/mint-components/{p-78e98761.js → p-15f170d4.js} +4 -4
  653. package/dist/mint-components/p-162e5426.system.js +1 -0
  654. package/dist/mint-components/p-1933e4cc.system.entry.js +1 -0
  655. package/dist/mint-components/p-1aa5cdff.entry.js +1 -0
  656. package/dist/mint-components/p-1b673705.system.js +1 -0
  657. package/dist/mint-components/p-1e1543c7.entry.js +1 -0
  658. package/dist/mint-components/p-201ae45a.js +1 -0
  659. package/dist/mint-components/p-20b90db3.system.entry.js +1 -0
  660. package/dist/mint-components/p-2380b28e.system.entry.js +1 -0
  661. package/dist/mint-components/p-258152c8.system.entry.js +1 -0
  662. package/dist/mint-components/p-29be0454.system.entry.js +1 -0
  663. package/dist/mint-components/p-2af001d4.system.js +1 -0
  664. package/dist/mint-components/{p-88e16945.js → p-2b052eed.js} +1 -1
  665. package/dist/mint-components/p-2b5c577a.system.js +1 -0
  666. package/dist/mint-components/p-2ff39583.entry.js +33 -0
  667. package/dist/mint-components/p-3104b4ba.entry.js +1 -0
  668. package/dist/mint-components/p-324dd9c9.system.entry.js +1 -0
  669. package/dist/mint-components/p-32b3c92e.system.entry.js +1 -0
  670. package/dist/mint-components/{p-c813ec64.js → p-3595dbe3.js} +1 -1
  671. package/dist/mint-components/p-384d4366.system.entry.js +1 -0
  672. package/dist/mint-components/{p-a417a4c7.js → p-388fdcdc.js} +1 -1
  673. package/dist/mint-components/{p-acaf505d.entry.js → p-39e59497.entry.js} +1 -1
  674. package/dist/mint-components/p-3a8fa8df.system.entry.js +1 -0
  675. package/dist/mint-components/{p-456ccda6.system.js → p-3aab5e80.system.js} +1 -1
  676. package/dist/mint-components/p-3b7eac48.js +1 -0
  677. package/dist/mint-components/p-3f9d4025.js +254 -0
  678. package/dist/mint-components/p-4639a9ed.entry.js +1 -0
  679. package/dist/mint-components/p-483c2ce0.system.entry.js +1 -0
  680. package/dist/mint-components/p-487dac4b.system.js +271 -0
  681. package/dist/mint-components/p-49ca1533.system.entry.js +1 -0
  682. package/dist/mint-components/p-49d4188a.system.js +1 -0
  683. package/dist/mint-components/p-4be3689e.system.entry.js +1 -0
  684. package/dist/mint-components/p-4d690bf1.system.js +1 -0
  685. package/dist/mint-components/p-4ea630ba.system.js +1 -0
  686. package/dist/mint-components/p-5a1be3aa.entry.js +83 -0
  687. package/dist/mint-components/p-5a2c495f.js +1 -0
  688. package/dist/mint-components/p-5b043988.system.entry.js +1 -0
  689. package/dist/mint-components/p-5bacacba.entry.js +13 -0
  690. package/dist/mint-components/p-5e7e4e54.system.entry.js +1 -0
  691. package/dist/mint-components/p-6333265f.system.js +1 -1
  692. package/dist/mint-components/p-643a756b.system.js +53 -0
  693. package/dist/mint-components/p-647ca265.entry.js +1 -0
  694. package/dist/mint-components/p-647ffff2.entry.js +1 -0
  695. package/dist/mint-components/p-64c93b03.system.js +1 -0
  696. package/dist/mint-components/p-6708043c.entry.js +1 -0
  697. package/dist/mint-components/p-6a7c9ae4.system.entry.js +1 -0
  698. package/dist/mint-components/p-6a7cd966.system.js +1 -0
  699. package/dist/mint-components/p-6b9ff091.system.js +1 -0
  700. package/dist/mint-components/p-6be0e0a7.system.entry.js +1 -0
  701. package/dist/mint-components/p-6ccdf33a.js +1 -0
  702. package/dist/mint-components/p-6cdde5e8.system.js +1 -0
  703. package/dist/mint-components/p-6cfca206.js +1 -0
  704. package/dist/mint-components/{p-d276468c.js → p-6e00edce.js} +1 -1
  705. package/dist/mint-components/p-6eb14db9.system.entry.js +1 -0
  706. package/dist/mint-components/p-6f3ba1ad.system.js +1 -0
  707. package/dist/mint-components/p-6f66bb97.system.js +1 -0
  708. package/dist/mint-components/p-7127e360.system.entry.js +1 -0
  709. package/dist/mint-components/{p-d0559e66.js → p-71759064.js} +1 -1
  710. package/dist/mint-components/p-72f11f03.js +1 -0
  711. package/dist/mint-components/p-732ac03d.js +1 -0
  712. package/dist/mint-components/p-74f50554.js +1 -0
  713. package/dist/mint-components/p-7558fe46.js +499 -0
  714. package/dist/mint-components/{p-c43e1d3b.js → p-75b7496e.js} +1 -1
  715. package/dist/mint-components/p-76d36b05.js +1 -0
  716. package/dist/mint-components/p-7a8ed2f3.system.entry.js +1 -0
  717. package/dist/mint-components/{p-3390f1f2.system.js → p-7d992af1.system.js} +2 -2
  718. package/dist/mint-components/p-7f71b56b.system.entry.js +1 -0
  719. package/dist/mint-components/p-81b63e83.system.entry.js +1 -0
  720. package/dist/mint-components/p-83330731.system.js +1 -0
  721. package/dist/mint-components/p-834cd992.js +2 -0
  722. package/dist/mint-components/p-843c9997.system.js +1 -0
  723. package/dist/mint-components/{p-956f9479.system.js → p-8680e52b.system.js} +1 -1
  724. package/dist/mint-components/p-8740794e.system.js +2 -0
  725. package/dist/mint-components/p-885630e6.entry.js +1 -0
  726. package/dist/mint-components/p-8886a874.system.js +1 -0
  727. package/dist/mint-components/p-88b65807.system.js +1 -0
  728. package/dist/mint-components/p-89b410d5.system.entry.js +1 -0
  729. package/dist/mint-components/p-89eef397.entry.js +1 -0
  730. package/dist/mint-components/p-8aae5dba.system.entry.js +1 -0
  731. package/dist/mint-components/p-8ba39302.entry.js +1 -0
  732. package/dist/mint-components/{p-c2254b88.js → p-8d85f34c.js} +1 -1
  733. package/dist/mint-components/p-8f67c580.js +1 -0
  734. package/dist/mint-components/p-8fa1f8e3.entry.js +1 -0
  735. package/dist/mint-components/p-930cc94f.system.js +1 -0
  736. package/dist/mint-components/p-94f3e0a2.js +1 -0
  737. package/dist/mint-components/p-96e332db.entry.js +17 -0
  738. package/dist/mint-components/p-9755e82a.system.entry.js +1 -0
  739. package/dist/mint-components/p-9a7f186b.entry.js +1 -0
  740. package/dist/mint-components/p-9c2e286c.entry.js +11 -0
  741. package/dist/mint-components/{p-e30abc44.js → p-9cabd2d1.js} +1 -1
  742. package/dist/mint-components/p-9d06abb3.entry.js +13 -0
  743. package/dist/mint-components/p-9d1659c4.entry.js +308 -0
  744. package/dist/mint-components/p-9d6ef5ca.entry.js +11 -0
  745. package/dist/mint-components/p-a0e6ccbc.system.js +1 -0
  746. package/dist/mint-components/p-a35191ca.system.js +1 -0
  747. package/dist/mint-components/p-a3d1c665.system.entry.js +1 -0
  748. package/dist/mint-components/p-a43a9fa9.system.js +1 -1
  749. package/dist/mint-components/{p-04da3964.system.js → p-a6c96b8a.system.js} +1 -1
  750. package/dist/mint-components/p-a75748c4.js +13 -0
  751. package/dist/mint-components/{p-f9fcc772.js → p-a7a74002.js} +1 -1
  752. package/dist/mint-components/{p-3484f1c1.js → p-a8e2f45b.js} +1 -1
  753. package/dist/mint-components/p-a976d930.system.entry.js +1 -0
  754. package/dist/mint-components/p-aadbe44d.js +1 -0
  755. package/dist/mint-components/p-aaf15612.entry.js +1 -0
  756. package/dist/mint-components/p-ab1e96ea.system.js +1 -0
  757. package/dist/mint-components/p-abd9e52b.system.entry.js +1 -0
  758. package/dist/mint-components/{p-19aebd7d.js → p-ac32d96a.js} +1 -1
  759. package/dist/mint-components/{p-381af581.js → p-acd3e9e3.js} +1 -1
  760. package/dist/mint-components/{p-9a69f781.system.js → p-ae5f7df6.system.js} +1 -1
  761. package/dist/mint-components/p-af9d3491.js +1 -0
  762. package/dist/mint-components/p-b1f880ee.entry.js +1 -0
  763. package/dist/mint-components/p-b492fd4b.system.entry.js +1 -0
  764. package/dist/mint-components/p-b652d3b3.js +1 -0
  765. package/dist/mint-components/p-b6f5ab75.system.entry.js +1 -0
  766. package/dist/mint-components/p-b907384d.entry.js +1 -0
  767. package/dist/mint-components/p-bbb494a8.system.js +1 -0
  768. package/dist/mint-components/p-bd1a14ba.js +1 -0
  769. package/dist/mint-components/p-bd66c171.js +1 -0
  770. package/dist/mint-components/p-be38ae67.js +1 -0
  771. package/dist/mint-components/p-c30dfd5d.entry.js +92 -0
  772. package/dist/mint-components/p-c380988f.system.js +1 -0
  773. package/dist/mint-components/{p-104f6ced.entry.js → p-c3a07f51.entry.js} +1 -1
  774. package/dist/mint-components/p-c50c206e.system.js +1 -0
  775. package/dist/mint-components/p-c6d2a452.js +1 -0
  776. package/dist/mint-components/p-c7dd2eaa.system.entry.js +1 -0
  777. package/dist/mint-components/p-c8f697e4.system.js +1 -0
  778. package/dist/mint-components/p-c980e369.entry.js +1 -0
  779. package/dist/mint-components/p-cb714df1.system.js +1 -0
  780. package/dist/mint-components/p-cdf099fe.js +108 -0
  781. package/dist/mint-components/p-ce06d498.js +52 -0
  782. package/dist/mint-components/p-d08ebaa9.js +1 -0
  783. package/dist/mint-components/p-d8fac546.entry.js +1 -0
  784. package/dist/mint-components/p-d91a97d2.js +1 -0
  785. package/dist/mint-components/p-da6cb2c3.system.entry.js +1 -0
  786. package/dist/mint-components/p-dd7e8c95.system.js +8 -0
  787. package/dist/mint-components/p-dd82a675.system.entry.js +1 -0
  788. package/dist/mint-components/p-df1206f0.entry.js +1 -0
  789. package/dist/mint-components/p-df45273e.js +1 -0
  790. package/dist/mint-components/p-df531a5d.entry.js +1 -0
  791. package/dist/mint-components/p-e1c55f04.system.entry.js +1 -0
  792. package/dist/mint-components/p-e33839b3.system.js +1 -0
  793. package/dist/mint-components/p-e389aded.entry.js +1 -0
  794. package/dist/mint-components/p-e73e0fc4.system.js +1 -0
  795. package/dist/mint-components/p-e7f7b9c6.entry.js +1 -0
  796. package/dist/mint-components/{p-b47e3740.system.js → p-e9942aae.system.js} +1 -1
  797. package/dist/mint-components/p-eac100d1.system.js +1 -0
  798. package/dist/mint-components/p-eb47b174.entry.js +1 -0
  799. package/dist/mint-components/p-eba82926.js +1 -0
  800. package/dist/mint-components/p-ec00bb5f.js +1 -0
  801. package/dist/mint-components/p-edc8d9bc.system.js +1 -0
  802. package/dist/mint-components/p-f0e1d538.entry.js +147 -0
  803. package/dist/mint-components/{p-ff75998a.system.entry.js → p-f53c7a87.system.entry.js} +1 -1
  804. package/dist/mint-components/p-f686c142.system.js +1 -0
  805. package/dist/mint-components/{p-5b0de730.js → p-fa2edc58.js} +152 -152
  806. package/dist/mint-components/p-fab41ea8.system.entry.js +1 -0
  807. package/dist/mint-components/p-fd14377b.entry.js +1 -0
  808. package/dist/mint-components/p-ff1336b3.entry.js +148 -0
  809. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -1
  810. package/dist/types/components/sqm-context-router/useContextRouter.d.ts +1 -1
  811. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -1
  812. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -1
  813. package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +2 -2
  814. package/dist/types/components/sqm-lead-form/useLeadFormState.d.ts +3 -3
  815. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +2 -2
  816. package/dist/types/components/sqm-pagination/usePagination.d.ts +1 -1
  817. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +3 -3
  818. package/dist/types/components/sqm-popup-container/sqm-popup-container-view.d.ts +1 -1
  819. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  820. package/dist/types/components/sqm-portal-footer/PoweredByImg.d.ts +1 -1
  821. package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -1
  822. package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +1 -1
  823. package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -1
  824. package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +1 -1
  825. package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +3 -3
  826. package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +2 -2
  827. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -1
  828. package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +1 -1
  829. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +2 -2
  830. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +5 -5
  831. package/dist/types/components/sqm-router/useRouter.d.ts +1 -1
  832. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +1 -1
  833. package/dist/types/components/sqm-stencilbook/Matrix.d.ts +1 -1
  834. package/dist/types/components/sqm-tab/sqm-tab-view.d.ts +1 -1
  835. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -1
  836. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +1 -1
  837. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
  838. package/dist/types/components/sqm-widget-verification/getVerificationStep.d.ts +2 -2
  839. package/dist/types/components/tax-and-cash/data.d.ts +13 -13
  840. package/dist/types/components/tax-and-cash/sqm-banking-info-form/mockData.d.ts +1 -1
  841. package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -2
  842. package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +1 -1
  843. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -5
  844. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +6 -6
  845. package/dist/types/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.d.ts +1 -1
  846. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -3
  847. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +1 -1
  848. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  849. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.d.ts +1 -1
  850. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  851. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +5 -5
  852. package/dist/types/components/tax-and-cash/subregions.d.ts +1 -1
  853. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  854. package/dist/types/components.d.ts +3771 -3
  855. package/dist/types/global/mixins.d.ts +5 -5
  856. package/dist/types/stencil-public-runtime.d.ts +275 -193
  857. package/dist/types/utils/RequiredPropsError.d.ts +1 -1
  858. package/dist/types/utils/demoMerge.d.ts +8 -0
  859. package/dist/types/utils/utils.d.ts +1 -1
  860. package/docs/docs.docx +0 -0
  861. package/docs/stats.json +120116 -0
  862. package/grapesjs/grapesjs.js +1 -1
  863. package/package.json +34 -45
  864. package/dist/cjs/AsYouType-d15caac8.js +0 -4128
  865. package/dist/cjs/cjs-1066ec21.js +0 -135
  866. package/dist/cjs/eventKeys-7af4df4d.js +0 -5
  867. package/dist/cjs/sqm-lead-input-field-view-cd3f8076.js +0 -51
  868. package/dist/cjs/subregions-36662566.js +0 -1101
  869. package/dist/esm/AsYouType-2d56519e.js +0 -4108
  870. package/dist/esm/cjs-bdfb4486.js +0 -133
  871. package/dist/esm/eventKeys-f76b6a03.js +0 -3
  872. package/dist/esm/sqm-lead-input-field-view-919dc0a9.js +0 -49
  873. package/dist/esm/subregions-16dc47a9.js +0 -1086
  874. package/dist/esm-es5/AsYouType-2d56519e.js +0 -1
  875. package/dist/esm-es5/GenericTableView-471a9386.js +0 -1
  876. package/dist/esm-es5/JSS-67b5cff8.js +0 -8
  877. package/dist/esm-es5/ShadowViewAddon-e1375e0d.js +0 -1
  878. package/dist/esm-es5/cjs-bdfb4486.js +0 -1
  879. package/dist/esm-es5/copy-text-view-87259b11.js +0 -1
  880. package/dist/esm-es5/data-04d2da44.js +0 -1
  881. package/dist/esm-es5/dom-context-hooks.module-50442785.js +0 -53
  882. package/dist/esm-es5/email-registration-view-4cdb4129.js +0 -1
  883. package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
  884. package/dist/esm-es5/global-f019575d.js +0 -271
  885. package/dist/esm-es5/index-38ad4957.js +0 -1
  886. package/dist/esm-es5/index-ffa26b43.js +0 -1
  887. package/dist/esm-es5/index.module-cc08450c.js +0 -1
  888. package/dist/esm-es5/jsonpointer-388a7082.js +0 -1
  889. package/dist/esm-es5/luxon-1be92a8e.js +0 -1
  890. package/dist/esm-es5/mockRewardData-9b27d6f1.js +0 -1
  891. package/dist/esm-es5/parseStates-ed75e224.js +0 -1
  892. package/dist/esm-es5/re-render-380499f8.js +0 -1
  893. package/dist/esm-es5/sqm-lead-checkbox-field-view-04aa32a7.js +0 -1
  894. package/dist/esm-es5/sqm-lead-input-field-view-919dc0a9.js +0 -1
  895. package/dist/esm-es5/sqm-navigation-sidebar-item-view-40837457.js +0 -1
  896. package/dist/esm-es5/sqm-navigation-sidebar-view-2b66457a.js +0 -1
  897. package/dist/esm-es5/sqm-partner-info-modal-view-e02fb63a.js +0 -1
  898. package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +0 -1
  899. package/dist/esm-es5/sqm-portal-profile-view-41894261.js +0 -1
  900. package/dist/esm-es5/sqm-portal-registration-form-view-79265df5.js +0 -1
  901. package/dist/esm-es5/sqm-portal-reset-password-view-c7dd1c01.js +0 -1
  902. package/dist/esm-es5/sqm-portal-verify-email-view-c102aa7c.js +0 -1
  903. package/dist/esm-es5/sqm-text-span-view-72f43dff.js +0 -1
  904. package/dist/esm-es5/sqm-user-info-form-view-8a95c5eb.js +0 -1
  905. package/dist/esm-es5/subregions-16dc47a9.js +0 -1
  906. package/dist/esm-es5/useChildElements-aa9eb7c9.js +0 -1
  907. package/dist/esm-es5/useIndirectTaxForm-8d2e873d.js +0 -6
  908. package/dist/esm-es5/useInstantAccessRegistration-7b11eb02.js +0 -1
  909. package/dist/esm-es5/useLeadFormState-b67018f2.js +0 -1
  910. package/dist/esm-es5/usePortalRegistrationForm-91e5786d.js +0 -1
  911. package/dist/esm-es5/useReferralCodes-a0a271ca.js +0 -1
  912. package/dist/esm-es5/useReferralTable-670580ff.js +0 -1
  913. package/dist/esm-es5/useRegistrationFormState-95a75c57.js +0 -1
  914. package/dist/esm-es5/useVerificationEmail-99d9f705.js +0 -1
  915. package/dist/esm-es5/utilities-23a276e0.js +0 -1
  916. package/dist/mint-components/p-0306ce68.js +0 -1
  917. package/dist/mint-components/p-03361685.system.entry.js +0 -1
  918. package/dist/mint-components/p-036b876f.system.js +0 -1
  919. package/dist/mint-components/p-083180bf.js +0 -1
  920. package/dist/mint-components/p-08f36275.entry.js +0 -92
  921. package/dist/mint-components/p-08f82f9e.system.entry.js +0 -1
  922. package/dist/mint-components/p-092305db.entry.js +0 -1
  923. package/dist/mint-components/p-0ac8d8f4.system.js +0 -1
  924. package/dist/mint-components/p-0b1e90fe.system.js +0 -1
  925. package/dist/mint-components/p-0dca7884.entry.js +0 -148
  926. package/dist/mint-components/p-0ec9eb9b.entry.js +0 -1
  927. package/dist/mint-components/p-115dfc03.system.js +0 -1
  928. package/dist/mint-components/p-128610fb.system.js +0 -1
  929. package/dist/mint-components/p-13d1b10d.entry.js +0 -1
  930. package/dist/mint-components/p-13f3a647.js +0 -1
  931. package/dist/mint-components/p-16bd4751.system.entry.js +0 -1
  932. package/dist/mint-components/p-1a673057.system.js +0 -8
  933. package/dist/mint-components/p-1cf59d96.system.js +0 -1
  934. package/dist/mint-components/p-1ee1dd9c.system.entry.js +0 -1
  935. package/dist/mint-components/p-1f292473.entry.js +0 -1
  936. package/dist/mint-components/p-220cd813.system.entry.js +0 -1
  937. package/dist/mint-components/p-2392aabe.entry.js +0 -1
  938. package/dist/mint-components/p-263ca1be.system.js +0 -1
  939. package/dist/mint-components/p-274816ae.entry.js +0 -1
  940. package/dist/mint-components/p-2786819c.js +0 -1
  941. package/dist/mint-components/p-28ed2ae9.js +0 -1
  942. package/dist/mint-components/p-28fa5159.entry.js +0 -1
  943. package/dist/mint-components/p-290314a6.js +0 -52
  944. package/dist/mint-components/p-2cc01e0a.system.js +0 -1
  945. package/dist/mint-components/p-319bf866.system.entry.js +0 -1
  946. package/dist/mint-components/p-31b7d861.entry.js +0 -1
  947. package/dist/mint-components/p-31c5f477.entry.js +0 -1
  948. package/dist/mint-components/p-31cfa118.system.entry.js +0 -1
  949. package/dist/mint-components/p-3268c98c.system.entry.js +0 -1
  950. package/dist/mint-components/p-34917ee4.system.js +0 -1
  951. package/dist/mint-components/p-34bea1be.system.js +0 -1
  952. package/dist/mint-components/p-3db7a3c0.system.entry.js +0 -1
  953. package/dist/mint-components/p-429fa431.js +0 -1
  954. package/dist/mint-components/p-44ce74b6.js +0 -1
  955. package/dist/mint-components/p-45be99ae.system.js +0 -1
  956. package/dist/mint-components/p-47dc2362.system.entry.js +0 -1
  957. package/dist/mint-components/p-48b25874.system.js +0 -1
  958. package/dist/mint-components/p-4bd679a7.system.js +0 -1
  959. package/dist/mint-components/p-4ca6cc3c.system.entry.js +0 -1
  960. package/dist/mint-components/p-51d06654.system.js +0 -1
  961. package/dist/mint-components/p-5218d9dd.system.entry.js +0 -1
  962. package/dist/mint-components/p-5264ea68.js +0 -1
  963. package/dist/mint-components/p-5300edb5.js +0 -1
  964. package/dist/mint-components/p-556338c3.system.js +0 -1
  965. package/dist/mint-components/p-573ea3fd.system.entry.js +0 -1
  966. package/dist/mint-components/p-57c693ef.system.entry.js +0 -1
  967. package/dist/mint-components/p-59d5f239.system.entry.js +0 -1
  968. package/dist/mint-components/p-5c3cdefe.entry.js +0 -1
  969. package/dist/mint-components/p-5cda271c.system.entry.js +0 -1
  970. package/dist/mint-components/p-5d99dbc9.js +0 -1
  971. package/dist/mint-components/p-6196e0f6.entry.js +0 -308
  972. package/dist/mint-components/p-641f968d.system.js +0 -1
  973. package/dist/mint-components/p-686dd5eb.system.js +0 -1
  974. package/dist/mint-components/p-6b5528b1.entry.js +0 -33
  975. package/dist/mint-components/p-6c3a1d86.js +0 -1
  976. package/dist/mint-components/p-6c8758ac.entry.js +0 -1
  977. package/dist/mint-components/p-6dffb326.entry.js +0 -13
  978. package/dist/mint-components/p-6e9738a4.js +0 -1
  979. package/dist/mint-components/p-6f8dde97.system.js +0 -1
  980. package/dist/mint-components/p-7010498f.js +0 -1
  981. package/dist/mint-components/p-7062154c.system.js +0 -1
  982. package/dist/mint-components/p-717fa601.js +0 -1
  983. package/dist/mint-components/p-732907b1.system.entry.js +0 -1
  984. package/dist/mint-components/p-7562cd98.system.js +0 -1
  985. package/dist/mint-components/p-7ae8fb53.system.js +0 -1
  986. package/dist/mint-components/p-808f7f22.entry.js +0 -1
  987. package/dist/mint-components/p-80cee817.system.js +0 -1
  988. package/dist/mint-components/p-8452837a.system.js +0 -1
  989. package/dist/mint-components/p-85996c52.system.entry.js +0 -1
  990. package/dist/mint-components/p-8629d0be.system.entry.js +0 -1
  991. package/dist/mint-components/p-86c430f8.system.entry.js +0 -1
  992. package/dist/mint-components/p-8707c7fb.entry.js +0 -1
  993. package/dist/mint-components/p-8899ff38.system.entry.js +0 -1
  994. package/dist/mint-components/p-88a5350b.entry.js +0 -11
  995. package/dist/mint-components/p-8d363802.js +0 -1
  996. package/dist/mint-components/p-952eefec.system.js +0 -1
  997. package/dist/mint-components/p-95f82a6f.entry.js +0 -9
  998. package/dist/mint-components/p-9715be5b.entry.js +0 -1
  999. package/dist/mint-components/p-97b8073f.system.js +0 -1
  1000. package/dist/mint-components/p-99f7e6f1.js +0 -1
  1001. package/dist/mint-components/p-9f517f81.entry.js +0 -1
  1002. package/dist/mint-components/p-9f7d1197.system.entry.js +0 -1
  1003. package/dist/mint-components/p-a04be06d.system.entry.js +0 -1
  1004. package/dist/mint-components/p-a08157c4.js +0 -1
  1005. package/dist/mint-components/p-a495e3a5.entry.js +0 -1
  1006. package/dist/mint-components/p-a52a961e.entry.js +0 -1
  1007. package/dist/mint-components/p-a6920cc9.system.entry.js +0 -1
  1008. package/dist/mint-components/p-a7fc1e02.js +0 -42
  1009. package/dist/mint-components/p-ab8a551f.system.entry.js +0 -1
  1010. package/dist/mint-components/p-ac65d2c1.entry.js +0 -1
  1011. package/dist/mint-components/p-ad9ea625.system.entry.js +0 -1
  1012. package/dist/mint-components/p-b0aa9348.entry.js +0 -1
  1013. package/dist/mint-components/p-b2295bc5.system.js +0 -1
  1014. package/dist/mint-components/p-b56f3e55.js +0 -1
  1015. package/dist/mint-components/p-b61be711.entry.js +0 -1
  1016. package/dist/mint-components/p-b6504987.system.js +0 -53
  1017. package/dist/mint-components/p-b69dbed8.system.js +0 -1
  1018. package/dist/mint-components/p-b6b5fa4f.system.entry.js +0 -1
  1019. package/dist/mint-components/p-bc625793.system.js +0 -1
  1020. package/dist/mint-components/p-bee4af5d.js +0 -1
  1021. package/dist/mint-components/p-c03131dd.js +0 -1
  1022. package/dist/mint-components/p-c09ae087.system.js +0 -1
  1023. package/dist/mint-components/p-c1086930.js +0 -1
  1024. package/dist/mint-components/p-c50e77ad.entry.js +0 -1
  1025. package/dist/mint-components/p-c5698ef9.system.js +0 -1
  1026. package/dist/mint-components/p-ca872769.system.entry.js +0 -1
  1027. package/dist/mint-components/p-ca90ea64.js +0 -499
  1028. package/dist/mint-components/p-cdf5354f.entry.js +0 -1
  1029. package/dist/mint-components/p-cef45012.js +0 -1
  1030. package/dist/mint-components/p-d0318b41.entry.js +0 -13
  1031. package/dist/mint-components/p-d0ce74bd.system.js +0 -1
  1032. package/dist/mint-components/p-d267f4bb.system.js +0 -1
  1033. package/dist/mint-components/p-d26df2da.entry.js +0 -1
  1034. package/dist/mint-components/p-d3b1ab20.system.entry.js +0 -1
  1035. package/dist/mint-components/p-d463fa82.system.js +0 -1
  1036. package/dist/mint-components/p-d46a048d.system.entry.js +0 -1
  1037. package/dist/mint-components/p-d533ff7b.system.js +0 -271
  1038. package/dist/mint-components/p-d6a7f402.entry.js +0 -1
  1039. package/dist/mint-components/p-d6fd8f37.system.entry.js +0 -1
  1040. package/dist/mint-components/p-d9dbbf22.system.entry.js +0 -1
  1041. package/dist/mint-components/p-db30fbd1.js +0 -13
  1042. package/dist/mint-components/p-de8d7e90.entry.js +0 -17
  1043. package/dist/mint-components/p-df28013f.system.entry.js +0 -1
  1044. package/dist/mint-components/p-dffad4a8.entry.js +0 -1
  1045. package/dist/mint-components/p-e006b6ad.entry.js +0 -1
  1046. package/dist/mint-components/p-e0578030.system.js +0 -1
  1047. package/dist/mint-components/p-e31c7242.system.entry.js +0 -1
  1048. package/dist/mint-components/p-e4eac70d.js +0 -108
  1049. package/dist/mint-components/p-e506bf7f.entry.js +0 -1
  1050. package/dist/mint-components/p-e66187b6.system.entry.js +0 -1
  1051. package/dist/mint-components/p-e7cf6632.js +0 -1
  1052. package/dist/mint-components/p-e7d6e1e0.entry.js +0 -11
  1053. package/dist/mint-components/p-e7e129ac.js +0 -1
  1054. package/dist/mint-components/p-eb992f94.js +0 -1
  1055. package/dist/mint-components/p-ec3e44c8.system.js +0 -1
  1056. package/dist/mint-components/p-ec58040a.system.js +0 -1
  1057. package/dist/mint-components/p-eedda43c.system.js +0 -1
  1058. package/dist/mint-components/p-f0b63c48.entry.js +0 -83
  1059. package/dist/mint-components/p-f1584abb.system.entry.js +0 -1
  1060. package/dist/mint-components/p-f381533a.js +0 -1
  1061. package/dist/mint-components/p-f45e076d.system.js +0 -1
  1062. package/dist/mint-components/p-f507b364.system.entry.js +0 -1
  1063. package/dist/mint-components/p-f69a4eb1.system.entry.js +0 -1
  1064. package/dist/mint-components/p-f89c6a57.system.js +0 -1
  1065. package/dist/mint-components/p-f982278b.entry.js +0 -1
  1066. package/dist/mint-components/p-fbdd8c2a.system.entry.js +0 -1
  1067. package/dist/mint-components/p-fdc4f293.system.entry.js +0 -1
  1068. package/dist/mint-components/p-ff1a5481.system.js +0 -1
@@ -1,83 +0,0 @@
1
- import{h as e,r as t,c as i,g as o}from"./p-083180bf.js";import{i as a}from"./p-5b0de730.js";import{m as n,k as r,f as l,n as s,b as d,j as u,u as c}from"./p-a7fc1e02.js";import{d as m,_ as p,L as h,J as v,q as y,F as f,r as b,$ as g,i as x,p as C,b as w,R as S,w as k}from"./p-6e9738a4.js";import{j as I}from"./p-e7e129ac.js";import{c as P}from"./p-c1086930.js";import{g as T}from"./p-9ec99ced.js";import{c as A}from"./p-cef45012.js";import"./p-49b20dae.js";import"./p-a08157c4.js";import{t as N,d as D,I as q,a as E,c as B,b as M,o as R,e as F,A as L}from"./p-5300edb5.js";import{G as U}from"./p-381af581.js";import{u as _,a as j}from"./p-b56f3e55.js";import{g as O,d as W}from"./p-78e98761.js";import{u as z}from"./p-5d99dbc9.js";import{l as H}from"./p-2786819c.js";import{O as Y,I as V,v as $,T as G,U as K}from"./p-429fa431.js";import{F as X,a as J,S as Z,f as Q,c as ee,T as te,C as ie,U as oe}from"./p-c43e1d3b.js";import{c as ae}from"./p-4f9dc974.js";import{T as ne}from"./p-28ed2ae9.js";import{a as re,b as le,g as se,V as de,c as ue,C as ce}from"./p-e4eac70d.js";const me={CAD:[{countryCode:"CA",currency:"CAD",defaultFinancePaymentMethodId:3,withdrawalSettingId:37},{countryCode:"CA",currency:"CAD",defaultFinancePaymentMethodId:7,withdrawalSettingId:37}],AUD:[{countryCode:"US",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:23},{countryCode:"CA",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"IE",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"GB",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"JP",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"AUD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"AUD",defaultFinancePaymentMethodId:3,withdrawalSettingId:37},{countryCode:"AU",currency:"AUD",defaultFinancePaymentMethodId:7,withdrawalSettingId:37}],EUR:[{countryCode:"US",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:23},{countryCode:"CA",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"EUR",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"IE",currency:"EUR",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"GB",currency:"EUR",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"JP",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"EUR",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"NL",currency:"EUR",defaultFinancePaymentMethodId:7,withdrawalSettingId:25}],GBP:[{countryCode:"US",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:23},{countryCode:"CA",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"IE",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"GB",currency:"GBP",defaultFinancePaymentMethodId:3,withdrawalSettingId:25},{countryCode:"JP",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"GBP",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"GB",currency:"GBP",defaultFinancePaymentMethodId:7,withdrawalSettingId:25}],USD:[{countryCode:"US",currency:"USD",defaultFinancePaymentMethodId:3,withdrawalSettingId:39},{countryCode:"CA",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"ES",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"IE",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"GB",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:25},{countryCode:"JP",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AU",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"AR",currency:"USD",defaultFinancePaymentMethodId:5,withdrawalSettingId:21},{countryCode:"US",currency:"USD",defaultFinancePaymentMethodId:7,withdrawalSettingId:39}],JPY:[{countryCode:"JP",currency:"JPY",defaultFinancePaymentMethodId:5,withdrawalSettingId:8279},{countryCode:"JP",currency:"JPY",defaultFinancePaymentMethodId:7,withdrawalSettingId:8279}],KRW:[{countryCode:"KR",currency:"KRW",defaultFinancePaymentMethodId:5,withdrawalSettingId:149}],MYR:[{countryCode:"MY",currency:"MYR",defaultFinancePaymentMethodId:5,withdrawalSettingId:16405}],MXN:[{countryCode:"MX",currency:"MXN",defaultFinancePaymentMethodId:5,withdrawalSettingId:4181},{countryCode:"MX",currency:"MXN",defaultFinancePaymentMethodId:7,withdrawalSettingId:4181}],RUB:[{countryCode:"RU",currency:"RUB",defaultFinancePaymentMethodId:5,withdrawalSettingId:1685},{countryCode:"RU",currency:"RUB",defaultFinancePaymentMethodId:7,withdrawalSettingId:1717}],ARS:[{countryCode:"AR",currency:"ARS",defaultFinancePaymentMethodId:5,withdrawalSettingId:149}]},pe=A({ModalTitleContainer:{display:"flex",gap:"var(--sl-spacing-small)",alignItems:"center"},FormWrapper:{display:"flex",justifyContent:"flex-start",flexDirection:"column"},CheckboxContainer:{alignItems:"flex-start",justifyContent:"flex-start",gap:"var(--sl-spacing-xx-small)"},TitleContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--sl-spacing-small)"},TextContainer:{display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"var(--sl-spacing-medium)",paddingBottom:"16px"},BtnContainer:{paddingTop:"36px",display:"flex",gap:"8px"},ErrorText:{color:"var(--sqm-danger-color-icon)",marginTop:"10px"},PageDescriptionText:{color:"var(--sqm-text-subdued)",fontSize:"var(--sl-font-size-medium)"},DescriptionText:{color:"var(--sqm-text-subdued)"},RadioContainer:{display:"flex",flexDirection:"column"},Checkbox:{"&::part(control)":{borderRadius:"50% !important"},"&::part(label)":{fontSize:"var(--sl-font-size-small)"}},InputContainer:{padding:"16px",margin:"16px 0px 16px 0px",borderTop:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",borderBottom:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",display:"flex",flexDirection:"column",width:"100%",gap:"16px","& sl-input::part(base)":{maxWidth:"450px"},"& sl-input::part(label)":{fontSize:"var(--sl-font-size-small)"},"& sl-select::part(base)":{maxWidth:"450px"},"& sl-select::part(label)":{fontSize:"var(--sl-font-size-small)"}},CheckboxSkeleton:{width:"16px",height:"16px",borderRadius:"50%",background:"var(--sqm-skeleton-background)"},SmallSkeleton:{width:"100px",height:"16px",borderRadius:"50px",background:"var(--sqm-skeleton-background)"},LargeSkeleton:{width:"100%",maxWidth:"320px",height:"40px",borderRadius:"50px",background:"var(--sqm-skeleton-background)"},InfoWarningIcon:{height:"26px",width:"26px"},Dialog:{"&::part(panel)":{maxWidth:"420px"},"&::part(title)":{fontSize:"var(--sl-font-size-large)",fontWeight:"600"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",fontSize:"var(--sl-font-size-small)"},"&::part(footer)":{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-small)",marginBottom:"var(--sl-spacing-xx-small)",alignItems:"center",flex:"1"}},DialogButton:{margin:"auto",width:"100%"}}),he=pe.toString(),ve=t=>{var i;const{states:o,states:{formState:n},callbacks:r,text:l,refs:s,slots:d}=t,{classes:u}=pe,c=(t,i)=>{let o=Array(i).fill(0);const a={display:"flex",gap:"8px"};return void 0===t?e("div",{style:{...a,flexDirection:"column",gap:"16px"}},e("div",{class:u.SmallSkeleton}),e("div",{style:{...a,flexDirection:"row"}},e("div",{class:u.CheckboxSkeleton}),e("div",{class:u.SmallSkeleton})),e("div",{style:{...a,flexDirection:"row"}},e("div",{class:u.CheckboxSkeleton}),e("div",{class:u.SmallSkeleton}))):"toPayPalAccount"===t?e("div",{style:{...a,flexDirection:"column"}},e("div",{class:u.SmallSkeleton}),e("div",{class:u.LargeSkeleton})):o.map(((t,i)=>e("div",{style:{...a,flexDirection:"column"},key:i},e("div",{class:u.SmallSkeleton}),e("div",{class:u.LargeSkeleton}))))};return e("sl-form",{part:"container",class:u.FormWrapper,"onSl-submit":r.onSubmit,ref:e=>s.formRef.current=e,novalidate:!0},e("style",{type:"text/css"},he,"\n :host{\n display: block; \n }\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n\n & sl-select::part(label) {\n font-size: var(--sl-font-size-small);\n font-weight: 600\n }\n\n /* this class is dynamically applied in controller */\n .error-input::part(base) {\n --sqm-input-border-color: var(--sqm-danger-color-border);\n --sl-input-border-color: var(--sqm-danger-color-border);\n --sl-input-border-color-hover: var(--sqm-danger-color-border); \n --sl-input-border-color-focus: var(--sqm-danger-color-background);\n }\n\n .error-input::part(help-text) {\n color: var(--sqm-danger-color-text);\n }\n \n "),e("sl-dialog",{class:pe.classes.Dialog,open:o.showModal,"onSl-hide":r.onModalClose},e("div",{class:u.ModalTitleContainer,slot:"label"},e("sl-icon",{name:"info-circle",style:{color:"var(--sl-color-info-500)"}}),e("h2",{style:{fontSize:"var(--sl-font-size-large)"}},l.modalTitle)),e("p",null,l.modalDescription),e("sl-button",{slot:"footer",type:"primary",class:pe.classes.DialogButton,submit:!0,exportparts:"base: primarybutton-base"},l.modalButtonText)),e("div",{class:u.TextContainer},e("div",null,!o.hideSteps&&e("p",null,a.formatMessage({id:"formStep",defaultMessage:l.formStep},{step:o.step,count:X})),e("h3",{style:{fontSize:"24px"}},l.taxAndPayouts),e("p",{class:u.PageDescriptionText},l.taxAndPayoutsDescription)),(null===(i=n.errors)||void 0===i?void 0:i.general)&&e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},l.error.generalTitle),a.formatMessage({id:"generalDescription",defaultMessage:l.error.generalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},l.supportLink)})),o.isPartner&&!o.hideSteps&&e("sqm-form-message",{type:"info"},e("p",{part:"alert-title"},l.isPartnerAlertHeader),a.formatMessage({id:"isPartnerAlertDescription",defaultMessage:l.isPartnerAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},l.supportLink)})),e("div",null,e("h4",null,l.paymentMethod),e("p",{class:u.DescriptionText},l.paymentMethodSubtext))),e("div",null,e("div",{class:u.CheckboxContainer},o.loading&&void 0===n.paymentMethodChecked?c(void 0):e("div",{class:u.RadioContainer},o.hasPayPal&&e("sl-radio",{class:u.Checkbox,exportparts:"base: radio-base",checked:"toBankAccount"===n.paymentMethodChecked,onInput:()=>r.setPaymentMethodChecked("toBankAccount"),disabled:o.disabled,id:"toBankAccount",name:"/toBankAccount"},l.directlyToBankAccount),"toBankAccount"===n.paymentMethodChecked&&e("div",{class:u.InputContainer,style:o.hideBanking?{display:"none"}:{}},o.loading?c("toBankAccount",d.formInputsSlot.length+3):[d.countryInputSlot,d.paymentMethodSlot,d.formInputsSlot]),o.hasPayPal&&e("sl-radio",{class:u.Checkbox,exportparts:"base: radio-base",checked:"toPayPalAccount"===n.paymentMethodChecked,onInput:()=>r.setPaymentMethodChecked("toPayPalAccount"),disabled:o.disabled,id:"toPayPalAccount",name:"/toPayPalAccount"},a.formatMessage({id:"paypal-input-label",defaultMessage:l.toPayPalAccount},{feeCap:o.feeCap})),"toPayPalAccount"===n.paymentMethodChecked&&e("div",{class:u.InputContainer,style:o.hidePayPal?{display:"none"}:{}},o.loading?c("toPayPalAccount"):d.paypalInputSlot),e("div",{style:{paddingTop:"24px",paddingBottom:"12px"}},e("h4",null,l.paymentSchedule)),e("sl-radio",{class:u.Checkbox,exportparts:"base: radio-base",checked:"BALANCE_THRESHOLD"===n.paymentScheduleChecked,onInput:()=>r.setPaymentScheduleChecked("BALANCE_THRESHOLD"),disabled:o.disabled,id:"paymentSchedulingType",name:"/paymentSchedulingType",value:"BALANCE_THRESHOLD"},l.paymentScheduleBalanceThreshold),"BALANCE_THRESHOLD"===n.paymentScheduleChecked&&e("div",{class:u.InputContainer,style:o.hideBalanceThreshold?{display:"none"}:{}},o.loading?c("toPayPalAccount"):d.paymentThresholdSelectSlot),e("sl-radio",{class:u.Checkbox,exportparts:"base: radio-base",checked:"FIXED_DAY"===n.paymentScheduleChecked,onInput:()=>r.setPaymentScheduleChecked("FIXED_DAY"),disabled:o.disabled,id:"paymentSchedulingType",name:"/paymentSchedulingType",value:"FIXED_DAY"},l.paymentScheduleFixedDay),"FIXED_DAY"===n.paymentScheduleChecked&&e("div",{class:u.InputContainer,style:o.hideFixedDay?{display:"none"}:{}},o.loading?c("toPayPalAccount"):d.paymentFixedDaySelectSlot))),e("div",{class:u.BtnContainer},e("sl-button",Object.assign({type:"primary",disabled:o.disabled||o.saveDisabled,loading:o.saveLoading},o.hideSteps?{onClick:r.onModalOpen}:{submit:"submit"},{exportparts:"base: primarybutton-base"}),l.continueButton),!o.hideBackButton&&e("sl-button",{exportparts:"base: secondarybutton-base",type:"secondary",onClick:r.onBack},l.backButton))))},ye={USD:"USD20.00",GBP:"GBP30.00",EUR:"EUR35.00",AUD:"AUD60.00",CAD:"CAD50.00",NZD:"NZD60.00",HKD:"HKD320.00",DKK:"DKK250.00",ILS:"ILS160.00",MXN:"MXN600.00",RUB:"RUB1200.00",PHP:"PHP2000.00",JPY:"JPY2000.00"},fe={bankProvinceState:"bankState"},be={"withdrawal.settings.error.empty_beneficiaryname":"empty","withdrawal.settings.error.invalid_character_beneficiaryname":"invalidCharacters","withdrawal.settings.error.numeric_beneficiaryname":"numeric","withdrawal_settings.error.beneficiaryname.size":"tooLong","withdrawal.settings.error.non_english_beneficiaryname":"nonEnglish","withdrawal_settings.error.business_beneficiaryname_match":"businessNameMismatch","withdrawal_settings.error.beneficiaryname_match":"nameMismatch","withdrawal_settings.error.business_checkpayeename_match":"businessPayeeMismatch","withdrawal_settings.error.checkpayeename_match":"payeeMismatch","withdrawal.settings.error.accountnumber.empty":"empty","withdrawal.settings.error.accountnumber.uk":"invalidUk","withdrawal.settings.error.bankaccount.invalid":"invalid","withdrawal.settings.error.iban":"ibanEmpty","withdrawal.settings.error.iban.alphanumeric":"ibanAlphanumeric","withdrawal.settings.error.iban.invalid":"ibanInvalid","withdrawal.settings.error.iban.uk.country.mismatch":"ibanCountryMismatch","withdrawal.settings.error.bsbNumber":"invalidBsb","withdrawal.settings.error.sortcode":"invalidSortCode","withdrawal.settings.error.routingNumber":"empty","withdrawal.settings.error.routingcode":"invalid","withdrawal.settings.error.bic":"empty","withdrawal.settings.error.bic.alphanumeric":"alphanumeric","withdrawal.settings.error.bic.invalid":"invalid","global.error.invalid.accounttype":"empty","withdrawal.settings.error.bankName":"empty","withdrawal.settings.error.taxPayerId":"empty","withdrawal.settings.error.taxPayerId.ar":"emptyAr","withdrawal.settings.error.taxPayerId.kr":"emptyKr","withdrawal.settings.error.taxPayerId.alphanumeric":"alphanumeric","withdrawal.settings.error.taxPayerId.alphanumeric.ar":"alphanumericAr","withdrawal.settings.error.taxPayerId.alphanumeric.kr":"alphanumericKr","withdrawal.settings.error.taxPayerId.invalid":"invalid","withdrawal.settings.error.taxPayerId.invalid.ar":"invalidAr","withdrawal.settings.error.taxPayerId.invalid.kr":"invalidKr","withdrawal.settings.error.taxPayerId.invalid.kzt":"invalidKzt","withdrawal.settings.error.taxPayerId.cnpj":"cnpjTooShort","withdrawal.settings.error.taxPayerId.cpf":"cpfTooShort","withdrawal.settings.error.patronymicName":"empty","withdrawal.settings.error.patronymicName.alphanumeric":"alphanumeric","withdrawal.settings.error.voCode":"empty","withdrawal.settings.error.voCode.alphanumeric":"alphanumeric","withdrawal.settings.error.agencyCode":"empty","withdrawal.settings.error.agencyCode.alphanumeric":"alphanumeric","withdrawal.settings.error.agencyCode.length":"tooShort","withdrawal.settings.error.bankAddress":"empty","withdrawal.settings.error.bankCity":"empty","withdrawal.settings.error.bankProvinceState":"empty","withdrawal.settings.error.bankPostalCode":"empty","withdrawal.settings.error.branchCode":"invalid","withdrawal.settings.error.branchName":"empty","withdrawal.settings.error.classificationCode.invalid":"empty","withdrawal.settings.error.classificationCode.invalid.kzt":"invalidKzt","payment.error.email":"empty","payment.error.paypal_not_supported":"unsupportedCurrency","payment.error.email.invalid":"invalidEmail","payment.error.paypal_verification_incomplete":"verificationIncomplete","payment.error.no_threshold":"empty","payment.error.invalid_threshold":"invalid","payment.error.no_dayOfMonth":"empty","payment.error.invalid_dayOfMonth":"invalid"},ge=m.gql`
2
- mutation setImpactPublisherWithdrawalSettings(
3
- $setImpactPublisherWithdrawalSettingsInput: SetImpactPublisherWithdrawalSettingsInput!
4
- ) {
5
- setImpactPublisherWithdrawalSettings(
6
- setImpactPublisherWithdrawalSettingsInput: $setImpactPublisherWithdrawalSettingsInput
7
- ) {
8
- success
9
- validationErrors {
10
- field
11
- message
12
- code
13
- }
14
- }
15
- }
16
- `,xe=m.gql`
17
- mutation updateImpactPublisherWithdrawalSettings(
18
- $updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
19
- ) {
20
- updateImpactPublisherWithdrawalSettings(
21
- updateImpactPublisherWithdrawalSettingsInput: $updateImpactPublisherWithdrawalSettingsInput
22
- ) {
23
- success
24
- validationErrors {
25
- field
26
- message
27
- code
28
- }
29
- }
30
- }
31
- `;function Ce(e){const t=Number.parseInt(e);if(!isNaN(t))return t.toString()}const we=class{constructor(e){t(this,e),this.ignored=!0,this.formStep="Step {step} of {count}",this.taxAndPayouts="Payouts",this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.",this.directlyToBankAccount="Directly to my bank account",this.toPayPalAccount="PayPal (2% processing fee capped to {feeCap})",this.paymentScheduleBalanceThreshold="Pay me when my balance reaches a threshold",this.paymentScheduleFixedDay="Pay me on a fixed day of the month",this.paymentDaySelectLabel="Payment Day",this.paymentThresholdSelectLabel="Payment Threshold",this.paymentDayFirstOfMonthLabelText="1st of the month",this.paymentDayFifteenthOfMonthLabelText="15th of the month",this.paymentMethod="Payment method",this.paymentSchedule="Payment schedule",this.paymentMethodSubtext="Payouts will be sent from our referral program provider, impact.com.",this.payPalInputLabel="PayPal email",this.bankLocationLabel="Bank country location",this.beneficiaryAccountNameLabel="Account holder name",this.beneficiaryAccountNameDescription="The beneficiary name of your bank account. Ensure this matches the name on your tax form.",this.bankAccountTypeLabel="Bank account type",this.checkingSelectItemLabel="Checking",this.savingsSelectItemLabel="Savings",this.bankAccountNumberLabel="Bank account number",this.ibanLabel="IBAN",this.swiftCodeLabel="SWIFT code",this.routingCodeLabel="{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }",this.bankNameLabel="Bank Name",this.classificationEntityLabel="Classification Entity",this.businessSelectItemLabel="Business",this.individualSelectItemLabel="Individual",this.foreignSelectItemLabel="Foreign",this.classificationCPFLabel="Classification CPF",this.patronymicNameLabel="Patronymic name",this.voCodeLabel="VO code",this.agencyCodeLabel="Agency code",this.branchCodeLabel="Branch code",this.branchNameLabel="Branch name",this.classificationLabel="Classification",this.classificationCodeLabel="KBE code",this.taxPayerIdLabel="{country, select, AR {CUIT/CUIL} KR {Classification ID} other { Beneficiary INN } }",this.bankAddressLabel="Bank address",this.bankCityLabel="Bank city",this.bankStateLabel="Bank province/state",this.bankPostalCodeLabel="Bank postal code",this.eftWithdrawalLabel="EFT withdrawal (free)",this.fxWireProcessingFeeLabel="FX Wire (Processing Fee {currency}{defaultFxFee}.00)",this.searchForCountryText="Search for country..",this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com",this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.",this.verifyEmailHeaderText="Verify your email",this.verifyEmailDescriptionText="Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.",this.generalErrorTitle="There was a problem submitting your information",this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.",this.fieldRequiredError="{fieldName} is required",this.fieldInvalidError="{fieldName} is invalid",this.supportLink="support team",this.continueButton="Save",this.backButton="Back",this.loadingErrorAlertHeader="There was a problem loading your form",this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact Support.",this.modalTitle="Important Note",this.modalDescription="Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.",this.modalButtonText="I understand, update my information",this.beneficiaryAccountNameError="{errorCode, select, empty {Account holder name is required} invalidCharacters {Account holder name contains invalid characters} numeric {Account holder name cannot be purely numeric} tooLong {Account holder name must be 70 characters or fewer} nonEnglish {Account holder name must contain only English characters for this currency} businessNameMismatch {Beneficiary name must match the name on your tax document} nameMismatch {Beneficiary name must match the name on your tax document} businessPayeeMismatch {Payee name must match the name on your tax document} payeeMismatch {Payee name must match the name on your tax document} other {{errorCode}}}",this.bankAccountNumberError="{errorCode, select, empty {Account number is required} invalidUk {Please enter a valid UK account number} invalid {Account number is invalid} ibanEmpty {IBAN is required} ibanAlphanumeric {IBAN must contain only letters and numbers} ibanInvalid {IBAN is invalid} ibanCountryMismatch {UK accounts must use an IBAN starting with GB} other {{errorCode}}}",this.routingCodeError="{errorCode, select, invalidBsb {Please enter a valid BSB number} invalidSortCode {Please enter a valid sort code} empty {Routing number is required} invalid {Routing number is invalid} other {{errorCode}}}",this.swiftCodeError="{errorCode, select, empty {SWIFT/BIC code is required} alphanumeric {SWIFT/BIC code must contain only letters and numbers} invalid {SWIFT/BIC code is invalid} other {{errorCode}}}",this.bankAccountTypeError="{errorCode, select, empty {Bank account type is required} other {{errorCode}}}",this.bankNameError="{errorCode, select, empty {Bank name is required} other {{errorCode}}}",this.taxPayerIdError="{errorCode, select, empty {Tax payer ID is required} emptyAr {CUIT/CUIL is required} emptyKr {Classification ID is required} alphanumeric {Tax payer ID must contain only letters and numbers} alphanumericAr {CUIT/CUIL must contain only letters and numbers} alphanumericKr {Classification ID must contain only letters and numbers} invalid {Tax payer ID is invalid} invalidAr {CUIT/CUIL must be 11 characters} invalidKr {Classification ID length is invalid} invalidKzt {Tax payer ID must be 12 characters for KZT} cnpjTooShort {CNPJ must be at least 14 characters} cpfTooShort {CPF must be at least 11 characters} other {{errorCode}}}",this.patronymicNameError="{errorCode, select, empty {Patronymic name is required} alphanumeric {Patronymic name must contain only letters and numbers} other {{errorCode}}}",this.voCodeError="{errorCode, select, empty {VO code is required} alphanumeric {VO code must contain only letters and numbers} other {{errorCode}}}",this.agencyCodeError="{errorCode, select, empty {Agency code is required} alphanumeric {Agency code must contain only letters and numbers} tooShort {Agency code must be at least 5 characters} other {{errorCode}}}",this.bankAddressError="{errorCode, select, empty {Bank address is required} other {{errorCode}}}",this.bankCityError="{errorCode, select, empty {Bank city is required} other {{errorCode}}}",this.bankStateError="{errorCode, select, empty {Bank province/state is required} other {{errorCode}}}",this.bankPostalCodeError="{errorCode, select, empty {Bank postal code is required} other {{errorCode}}}",this.branchCodeError="{errorCode, select, invalid {Branch code is invalid} other {{errorCode}}}",this.branchNameError="{errorCode, select, empty {Branch name is required} other {{errorCode}}}",this.classificationCodeError="{errorCode, select, empty {Classification code is required} invalidKzt {Classification code must be exactly 2 characters} other {{errorCode}}}",this.paypalEmailError="{errorCode, select, empty {PayPal email is required} unsupportedCurrency {PayPal is not supported for this currency} invalidEmail {Please enter a valid email address} verificationIncomplete {PayPal verification is not complete} other {{errorCode}}}",this.paymentThresholdError="{errorCode, select, empty {Payment threshold is required} invalid {Payment threshold is invalid} other {{errorCode}}}",this.paymentDayError="{errorCode, select, empty {Payment day is required} invalid {Payment day must be the 1st or the 15th} other {{errorCode}}}",s(this)}disconnectedCallback(){}getTextProps(){const e=T(this);return{...e,error:{generalTitle:e.generalErrorTitle,generalDescription:e.generalErrorDescription,loadingErrorAlertDescription:e.loadingErrorAlertDescription,loadingErrorAlertHeader:e.loadingErrorAlertHeader},errorMessages:{beneficiaryAccountName:e.beneficiaryAccountNameError,bankAccountNumber:e.bankAccountNumberError,routingCode:e.routingCodeError,swiftCode:e.swiftCodeError,bankAccountType:e.bankAccountTypeError,bankName:e.bankNameError,taxPayerId:e.taxPayerIdError,patronymicName:e.patronymicNameError,voCode:e.voCodeError,agencyCode:e.agencyCodeError,bankAddress:e.bankAddressError,bankCity:e.bankCityError,bankState:e.bankStateError,bankPostalCode:e.bankPostalCodeError,branchCode:e.branchCodeError,branchName:e.branchNameError,beneficiaryClassification:e.classificationCodeError,paypalEmailAddress:e.paypalEmailError,paymentThreshold:e.paymentThresholdError,paymentDay:e.paymentDayError}}}render(){var t,o,s,d,u,c,m,w,S,k,T,N,D,q,E,B,M,R,F,L,U,_,j,O,W,z,H,Y,V,$,G,K,X,ie,oe;const re=x()?function(e){var t,i,o,n,s,d,u,c,m,p,h,v,y,f;const b=null===(o=null===(i=null===(t=e.demoData)||void 0===t?void 0:t.states)||void 0===i?void 0:i.formState)||void 0===o?void 0:o.paymentMethodChecked,g=null===(d=null===(s=null===(n=e.demoData)||void 0===n?void 0:n.states)||void 0===s?void 0:s.formState)||void 0===d?void 0:d.paymentScheduleChecked,x=null===(c=null===(u=e.demoData)||void 0===u?void 0:u.states)||void 0===c?void 0:c.currency,w=null===(h=null===(p=null===(m=e.demoData)||void 0===m?void 0:m.states)||void 0===p?void 0:p.formState)||void 0===h?void 0:h.bankCountry,S=C(te),[k,I]=r(void 0),[T,A]=r(void 0),[N,D]=r(x),[q,E]=r(w),B=null===(v=me[N])||void 0===v?void 0:v.find((e=>e.countryCode===q)),M=(null==B?void 0:B.withdrawalSettingId)||(null===(f=null===(y=e.demoData)||void 0===y?void 0:y.states)||void 0===f?void 0:f.bitset)||0;l((()=>{b!==k&&I(b),g!==T&&A(g),x!==N&&D(x),w!==q&&E(w)}),[b,x,w]);const R=ye[N]||"",F={ACH:e.eftWithdrawalLabel,WIRE:a.formatMessage({id:"fxWireText",defaultMessage:e.fxWireProcessingFeeLabel},{currency:N,defaultFxFee:(null==B?void 0:B.defaultFxFee)||"0"})};return P({states:{step:"4",isPartner:!1,disabled:!1,loading:!1,saveLoading:!1,hideSteps:!1,hideBackButton:!1,feeCap:R,thresholds:[],paymentMethodFeeLabel:F[null==B?void 0:B.defaultFinancePaymentMethodId],formState:{paymentMethodChecked:k,paymentScheduleChecked:T,errors:{general:!1,beneficiaryAccountName:!1,bankAccountType:!1,bankAccountNumber:!1,iban:!1,swiftCode:!1,routingCode:!1,bankName:!1,beneficiaryClassification:!1,patronymicName:!1,voCode:!1,agencyCode:!1,bankAddress:!1,bankCity:!1,bankState:!1,bankPostalCode:!1,branchCode:!1,paymentThreshold:!1,paymentDay:!1}},bitset:M,bankCountry:q,currency:N,setCurrency:D,hasPayPal:!0,showModal:!1},callbacks:{onVerificationHide:()=>{},onSubmit:async()=>{S("/dashboard")},setBankCountry:E,setPaymentMethodChecked:I,setPaymentScheduleChecked:A,setCountrySearch:()=>{},onBack:async()=>S("/dashboard"),onVerification:()=>{},onModalOpen:()=>{},onModalClose:()=>{}},text:e.getTextProps(),refs:{formRef:{current:null}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e){var t,i,o,s,d,u,c,m,x;const C=p(),w=h(),S=v(),[k,P]=y(te),T=f(J),A=f(Z),N=n(null),{data:D,errors:q}=b(Q),{data:E,refetch:B,errors:M}=b(ee),[R]=g(ge),[F]=g(xe),[L,U]=r(!1),[_,j]=r(null),[O,W]=r({}),[z,H]=r(null),[Y,V]=r(!1),[$,G]=r({}),[K,X]=r(void 0),[ie,oe]=r(void 0),[re,le]=r(""),[se,de]=r(A||[]),[ue,ce]=r(!1),me=(null===(o=null===(i=null===(t=null==E?void 0:E.user)||void 0===t?void 0:t.impactConnection)||void 0===i?void 0:i.publisher)||void 0===o?void 0:o.currency)||"",pe=!!(null===(u=null===(d=null===(s=null==E?void 0:E.user)||void 0===s?void 0:s.impactConnection)||void 0===d?void 0:d.publisher)||void 0===u?void 0:u.withdrawalSettings),he=ye[me]||"",ve=null===(c=null==D?void 0:D.impactFinanceNetworkSettings)||void 0===c?void 0:c.data,we={3:e.eftWithdrawalLabel,5:a.formatMessage({id:"fxWireText",defaultMessage:e.fxWireProcessingFeeLabel},{currency:me,defaultFxFee:(null==z?void 0:z.defaultFxFee)||0})}[null==z?void 0:z.defaultFinancePaymentMethodId],Se=!!(null==ve?void 0:ve.find((e=>7===e.defaultFinancePaymentMethodId))),ke=Se?K:"toBankAccount";l((()=>{var e,t,i,o,a,n,r,l,s;if(!E)return;if(!ve)return;const d=null===(i=null===(t=null===(e=null==E?void 0:E.user)||void 0===e?void 0:e.impactConnection)||void 0===t?void 0:t.publisher)||void 0===i?void 0:i.countryCode,u=null===(n=null===(a=null===(o=null==E?void 0:E.user)||void 0===o?void 0:o.impactConnection)||void 0===a?void 0:a.publisher)||void 0===n?void 0:n.withdrawalSettings;let c={bankCountry:(null==u?void 0:u.bankCountry)||d,paymentMethod:"BANK_TRANSFER"};u&&(null===(s=null===(l=null===(r=E.user)||void 0===r?void 0:r.impactConnection)||void 0===l?void 0:l.publisher)||void 0===s?void 0:s.brandedSignup)&&(c={...c,paymentMethod:u.paymentMethod,paypalEmailAddress:u.paypalEmailAddress,paymentSchedulingType:u.paymentSchedulingType,paymentThreshold:Ce(u.paymentThreshold),paymentDay:u.paymentDay});const m=null==ve?void 0:ve.find((e=>{if("PAYPAL"===c.paymentMethod){if(7===e.defaultFinancePaymentMethodId)return!0}else if(e.countryCode===c.bankCountry)return!0;return!1}));"PAYPAL"!==c.paymentMethod&&Ie(null==m?void 0:m.countryCode),Te("PAYPAL"===c.paymentMethod?"toPayPalAccount":"toBankAccount"),H(m),oe(c.paymentSchedulingType),W(c)}),[ve,E,H,W]),l((()=>{(null==A?void 0:A.length)&&(""===re.trim()?de(A||[]):de(A.filter((e=>e.displayName.toLowerCase().includes(re.toLowerCase())))||[]))}),[re,A]);const Ie=e=>{const t=null==ve?void 0:ve.find((t=>t.countryCode===e));W((t=>({...t,bankCountry:e}))),H(t)},Pe=async e=>{C.dispatchEvent(new CustomEvent(ae,{detail:{token:e},bubbles:!1}))};function Te(e){if(X(e),"toPayPalAccount"===e){const e=null==ve?void 0:ve.find((e=>7===e.defaultFinancePaymentMethodId));H(e)}else if("toBankAccount"===e){const e=null==ve?void 0:ve.find((e=>e.countryCode===O.bankCountry));H(e)}}return{text:e.getTextProps(),callbacks:{onSubmit:async e=>{let t,i={},o={};e.target.getFormControls().forEach((e=>{if(!e.name||!e.id)return;const t=e.name,a=e.value;I.set(i,t,a),e.required&&!a&&I.set(o,t,{type:"required"})})),G({inputErrors:o}),Object.keys(o).length?ce(!1):(pe&&(ce(!1),U(!0),t=await new Promise((e=>{const t=i=>{i.stopPropagation(),C.removeEventListener(ae,t),e(i.detail.token)};C.addEventListener(ae,t)})),U(!1)),await(async(e,t)=>{var i,o,a,n,r,l,s,d,u,c;V(!0);try{if(!z)throw new Error("No currentPaymentOption");const m={user:{id:S.id,accountId:S.accountId},...e,paymentMethod:(c=z,3===c.defaultFinancePaymentMethodId||5===c.defaultFinancePaymentMethodId?"BANK_TRANSFER":7===c.defaultFinancePaymentMethodId?"PAYPAL":""),paymentSchedulingType:ie};let p=null,h=null,v=null;if(pe){if(!t)return;p=await F({updateImpactPublisherWithdrawalSettingsInput:{...m,accessKey:t}}),h=null===(o=null===(i=p)||void 0===i?void 0:i.updateImpactPublisherWithdrawalSettings)||void 0===o?void 0:o.success,v=null===(n=null===(a=p)||void 0===a?void 0:a.updateImpactPublisherWithdrawalSettings)||void 0===n?void 0:n.validationErrors}else p=await R({setImpactPublisherWithdrawalSettingsInput:{...m}}),h=null===(l=null===(r=p)||void 0===r?void 0:r.setImpactPublisherWithdrawalSettings)||void 0===l?void 0:l.success,v=null===(d=null===(s=p)||void 0===s?void 0:s.setImpactPublisherWithdrawalSettings)||void 0===d?void 0:d.validationErrors;if(!p||(null===(u=p)||void 0===u?void 0:u.message))throw new Error;if(!h){console.error("Validation failed: ",v);const e=null==v?void 0:v.reduce(((e,t)=>({...e,[fe[t.field]||t.field]:{type:"invalid",errorCode:be[t.code]||t.code}})),{});return void G({inputErrors:{...e},general:!0})}window.dispatchEvent(new Event(ne)),await B(),P("/dashboard")}catch(e){console.error(e),G({general:!0})}finally{V(!1)}})(i,t),ce(!1),window.location.hash="")},setBankCountry:Ie,setPaymentMethodChecked:Te,setPaymentScheduleChecked:oe,onBack:()=>{window.location.hash?window.location.hash="":P("/dashboard")},setCountrySearch:le,onVerification:Pe,onVerificationHide:()=>Pe(null),onModalClose:()=>ce(!1),onModalOpen:()=>ce(!0)},states:{showVerification:L,step:null==k?void 0:k.replace("/",""),hideSteps:!!T.hideSteps,saveDisabled:!ke||!ie,locale:w,isPartner:pe,feeCap:he,paymentMethodFeeLabel:we,disabled:Y,hideBackButton:!T.overrideBackStep,loading:!ve,saveLoading:Y,hideBanking:"toBankAccount"!==ke||!ke,hidePayPal:"toPayPalAccount"!==ke||!ke,loadingError:!!(null==M?void 0:M.message)||!!(null==q?void 0:q.message),formState:{...O,paymentMethodChecked:ke,paymentScheduleChecked:ie,errors:$},currentPaymentOption:z,bitset:(null==z?void 0:z.withdrawalSettingId)||0,currency:me,thresholds:(null===(m=null==z?void 0:z.thresholdOptions)||void 0===m?void 0:m.split(","))||[],countries:se,allCountries:A,hasPayPal:Se,bankCountry:O.bankCountry,countrySearch:re,email:null===(x=null==E?void 0:E.user)||void 0===x?void 0:x.email,showModal:ue},refs:{formRef:N}}}(this),{errors:le}=re.states.formState,se=this.fieldRequiredError,de=this.fieldInvalidError;function ue({type:e,label:t,errorCode:i,fieldName:o}){var n;if("invalid"===e&&i&&o){const e=null===(n=re.text.errorMessages)||void 0===n?void 0:n[o];if(e)return a.formatMessage({id:`fieldError-${o}-${i}`,defaultMessage:e},{errorCode:i,fieldName:t})}return"required"===e?a.formatMessage({id:`requiredText-${t}`,defaultMessage:se},{fieldName:t}):"invalid"===e?a.formatMessage({id:`invalidText-${t}`,defaultMessage:de},{fieldName:t}):""}const ce=function({props:t,getValidationErrorMessage:i,bankCountry:o}){var n,r,l,s,d,u,c,m,p,h,v,y,f,b,g,x,C,w,S,k,I,P,T,A,N,D,q,E,B,M,R,F,L,U,_,j,O,W,z,H,Y,V,$,G,K,X,J,Z,Q,ee,te,ie,oe,ae,ne,re,le,se,de,ue,ce,me,pe,he,ve,ye,fe,be,ge,xe,Ce,we,Se,ke,Ie,Pe,Te,Ae,Ne,De,qe,Ee,Be,Me,Re,Fe,Le,Ue,_e,je,Oe,We,ze,He,Ye,Ve,$e,Ge,Ke,Xe,Je;const{errors:Ze,...Qe}=t.states.formState;return{0:{input:e("sl-input",Object.assign({required:!0,label:t.text.beneficiaryAccountNameLabel,name:"/beneficiaryAccountName",id:"beneficiaryAccountName",key:"beneficiaryAccountName",type:"text","help-text":t.text.beneficiaryAccountNameDescription},(null===(n=null==Ze?void 0:Ze.inputErrors)||void 0===n?void 0:n.beneficiaryAccountName)&&{class:"error-input",helpText:i({type:null===(l=null===(r=null==Ze?void 0:Ze.inputErrors)||void 0===r?void 0:r.beneficiaryAccountName)||void 0===l?void 0:l.type,label:t.text.beneficiaryAccountNameLabel,errorCode:null===(d=null===(s=null==Ze?void 0:Ze.inputErrors)||void 0===s?void 0:s.beneficiaryAccountName)||void 0===d?void 0:d.errorCode,fieldName:"beneficiaryAccountName"})}))},1:{input:e("sl-select",Object.assign({required:!0,label:t.text.bankAccountTypeLabel,name:"/bankAccountType",id:"bankAccountType",key:"bankAccountType"},(null===(u=null==Ze?void 0:Ze.inputErrors)||void 0===u?void 0:u.bankAccountType)&&{class:"error-input",helpText:i({type:null===(m=null===(c=null==Ze?void 0:Ze.inputErrors)||void 0===c?void 0:c.bankAccountType)||void 0===m?void 0:m.type,label:t.text.bankAccountTypeLabel,errorCode:null===(h=null===(p=null==Ze?void 0:Ze.inputErrors)||void 0===p?void 0:p.bankAccountType)||void 0===h?void 0:h.errorCode,fieldName:"bankAccountType"})}),e("sl-menu-item",{value:"CHECKING"},t.text.checkingSelectItemLabel),e("sl-menu-item",{value:"SAVINGS"},t.text.savingsSelectItemLabel))},2:{input:e("sl-input",Object.assign({required:!0,label:t.text.bankAccountNumberLabel,name:"/bankAccountNumber",id:"bankAccountNumber",key:"bankAccountNumber",value:Qe.bankAccountNumber,type:"text"},(null===(v=null==Ze?void 0:Ze.inputErrors)||void 0===v?void 0:v.bankAccountNumber)&&{class:"error-input",helpText:i({type:null===(f=null===(y=null==Ze?void 0:Ze.inputErrors)||void 0===y?void 0:y.bankAccountNumber)||void 0===f?void 0:f.type,label:t.text.bankAccountNumberLabel,errorCode:null===(g=null===(b=null==Ze?void 0:Ze.inputErrors)||void 0===b?void 0:b.bankAccountNumber)||void 0===g?void 0:g.errorCode,fieldName:"bankAccountNumber"})}))},3:{input:e("sl-input",Object.assign({required:!0,label:t.text.ibanLabel,name:"/bankAccountNumber",id:"iban",key:"iban",type:"text",value:Qe.bankAccountNumber},(null===(x=null==Ze?void 0:Ze.inputErrors)||void 0===x?void 0:x.bankAccountNumber)&&{class:"error-input",helpText:i({type:null===(w=null===(C=null==Ze?void 0:Ze.inputErrors)||void 0===C?void 0:C.bankAccountNumber)||void 0===w?void 0:w.type,label:t.text.ibanLabel,errorCode:null===(k=null===(S=null==Ze?void 0:Ze.inputErrors)||void 0===S?void 0:S.bankAccountNumber)||void 0===k?void 0:k.errorCode,fieldName:"bankAccountNumber"})}))},4:{input:e("sl-input",Object.assign({required:!0,label:t.text.swiftCodeLabel,name:"/swiftCode",id:"swiftCode",key:"swiftCode",type:"text"},(null===(I=null==Ze?void 0:Ze.inputErrors)||void 0===I?void 0:I.swiftCode)&&{class:"error-input",helpText:i({type:null===(T=null===(P=null==Ze?void 0:Ze.inputErrors)||void 0===P?void 0:P.swiftCode)||void 0===T?void 0:T.type,label:t.text.swiftCodeLabel,errorCode:null===(N=null===(A=null==Ze?void 0:Ze.inputErrors)||void 0===A?void 0:A.swiftCode)||void 0===N?void 0:N.errorCode,fieldName:"swiftCode"})}))},5:{input:e("sl-input",Object.assign({required:!0,label:a.formatMessage({id:"routingCodeText",defaultMessage:t.text.routingCodeLabel},{bankCountry:o}),name:"/routingCode",id:"routingCode",key:"routingCode",type:"text"},(null===(D=null==Ze?void 0:Ze.inputErrors)||void 0===D?void 0:D.routingCode)&&{class:"error-input",helpText:i({type:null===(E=null===(q=null==Ze?void 0:Ze.inputErrors)||void 0===q?void 0:q.routingCode)||void 0===E?void 0:E.type,label:a.formatMessage({id:"routingCodeErrorText",defaultMessage:t.text.routingCodeLabel},{bankCountry:o}),errorCode:null===(M=null===(B=null==Ze?void 0:Ze.inputErrors)||void 0===B?void 0:B.routingCode)||void 0===M?void 0:M.errorCode,fieldName:"routingCode"})}))},6:{input:e("sl-input",Object.assign({required:!0,label:t.text.bankNameLabel,name:"/bankName",id:"bankName",key:"bankName",type:"text"},(null===(R=null==Ze?void 0:Ze.inputErrors)||void 0===R?void 0:R.bankName)&&{class:"error-input",helpText:i({type:null===(L=null===(F=null==Ze?void 0:Ze.inputErrors)||void 0===F?void 0:F.bankName)||void 0===L?void 0:L.type,label:t.text.bankNameLabel,errorCode:null===(_=null===(U=null==Ze?void 0:Ze.inputErrors)||void 0===U?void 0:U.bankName)||void 0===_?void 0:_.errorCode,fieldName:"bankName"})}))},7:{input:[e("sl-select",Object.assign({required:!0,label:t.text.classificationLabel,name:"/beneficiaryClassification",id:"beneficiaryClassification",key:"beneficiaryClassification"},(null===(j=null==Ze?void 0:Ze.inputErrors)||void 0===j?void 0:j.beneficiaryClassification)&&{class:"error-input",helpText:i({type:null===(W=null===(O=null==Ze?void 0:Ze.inputErrors)||void 0===O?void 0:O.beneficiaryClassification)||void 0===W?void 0:W.type,label:t.text.classificationLabel,errorCode:null===(H=null===(z=null==Ze?void 0:Ze.inputErrors)||void 0===z?void 0:z.beneficiaryClassification)||void 0===H?void 0:H.errorCode,fieldName:"beneficiaryClassification"})}),e("sl-menu-item",{value:"BUSINESS"},t.text.businessSelectItemLabel),e("sl-menu-item",{value:"INDIVIDUAL"},t.text.individualSelectItemLabel),e("sl-menu-item",{value:"FOREIGN"},t.text.foreignSelectItemLabel)),e("sl-input",Object.assign({required:!0,label:a.formatMessage({id:"fxWireText",defaultMessage:t.text.taxPayerIdLabel},{bankCountry:o}),type:"text",name:"/beneficiaryTaxPayerId",id:"beneficiaryTaxPayerId",key:"beneficiaryTaxPayerId"},(null===(Y=null==Ze?void 0:Ze.inputErrors)||void 0===Y?void 0:Y.beneficiaryTaxPayerId)&&{class:"error-input",helpText:i({type:null===($=null===(V=null==Ze?void 0:Ze.inputErrors)||void 0===V?void 0:V.beneficiaryTaxPayerId)||void 0===$?void 0:$.type,label:t.text.taxPayerIdLabel,errorCode:null===(K=null===(G=null==Ze?void 0:Ze.inputErrors)||void 0===G?void 0:G.taxPayerId)||void 0===K?void 0:K.errorCode,fieldName:"taxPayerId"})}))]},8:{input:e("sl-select",Object.assign({required:!0,label:t.text.classificationCPFLabel,name:"/beneficiaryClassification",id:"beneficiaryClassification",key:"beneficiaryClassification"},(null===(X=null==Ze?void 0:Ze.inputErrors)||void 0===X?void 0:X.beneficiaryClassification)&&{class:"error-input",helpText:i({type:null===(Z=null===(J=null==Ze?void 0:Ze.inputErrors)||void 0===J?void 0:J.beneficiaryClassification)||void 0===Z?void 0:Z.type,label:t.text.classificationCPFLabel,errorCode:null===(ee=null===(Q=null==Ze?void 0:Ze.inputErrors)||void 0===Q?void 0:Q.beneficiaryClassification)||void 0===ee?void 0:ee.errorCode,fieldName:"beneficiaryClassification"})}),e("sl-menu-item",{value:"CPF"},"CPF"),e("sl-menu-item",{value:"CNPJ"},"CNPJ"))},9:{input:e("sl-input",Object.assign({key:"patronymicName",required:!0,label:t.text.patronymicNameLabel,name:"/patronymicName",id:"patronymicName",type:"text"},(null===(te=null==Ze?void 0:Ze.inputErrors)||void 0===te?void 0:te.patronymicName)&&{class:"error-input",helpText:i({type:null===(oe=null===(ie=null==Ze?void 0:Ze.inputErrors)||void 0===ie?void 0:ie.patronymicName)||void 0===oe?void 0:oe.type,label:t.text.patronymicNameLabel,errorCode:null===(ne=null===(ae=null==Ze?void 0:Ze.inputErrors)||void 0===ae?void 0:ae.patronymicName)||void 0===ne?void 0:ne.errorCode,fieldName:"patronymicName"})}))},10:{input:e("sl-input",Object.assign({key:"voCode",label:t.text.voCodeLabel,name:"/voCode",id:"voCode",type:"text"},(null===(re=null==Ze?void 0:Ze.inputErrors)||void 0===re?void 0:re.voCode)&&{class:"error-input",helpText:i({type:null===(se=null===(le=null==Ze?void 0:Ze.inputErrors)||void 0===le?void 0:le.voCode)||void 0===se?void 0:se.type,label:t.text.voCodeLabel,errorCode:null===(ue=null===(de=null==Ze?void 0:Ze.inputErrors)||void 0===de?void 0:de.voCode)||void 0===ue?void 0:ue.errorCode,fieldName:"voCode"})}))},11:{input:e("sl-input",Object.assign({required:!0,label:t.text.agencyCodeLabel,name:"/agencyCode",id:"agencyCode",key:"agencyCode",type:"text"},(null===(ce=null==Ze?void 0:Ze.inputErrors)||void 0===ce?void 0:ce.agencyCode)&&{class:"error-input",helpText:i({type:null===(pe=null===(me=null==Ze?void 0:Ze.inputErrors)||void 0===me?void 0:me.agencyCode)||void 0===pe?void 0:pe.type,label:t.text.agencyCodeLabel,errorCode:null===(ve=null===(he=null==Ze?void 0:Ze.inputErrors)||void 0===he?void 0:he.agencyCode)||void 0===ve?void 0:ve.errorCode,fieldName:"agencyCode"})}))},12:{input:[e("sl-input",Object.assign({required:!0,label:t.text.bankAddressLabel,name:"/bankAddress",id:"bankAddress",key:"bankAddress",type:"text"},(null===(ye=null==Ze?void 0:Ze.inputErrors)||void 0===ye?void 0:ye.bankAddress)&&{class:"error-input",helpText:i({type:null===(be=null===(fe=null==Ze?void 0:Ze.inputErrors)||void 0===fe?void 0:fe.bankAddress)||void 0===be?void 0:be.type,label:t.text.bankAddressLabel,errorCode:null===(xe=null===(ge=null==Ze?void 0:Ze.inputErrors)||void 0===ge?void 0:ge.bankAddress)||void 0===xe?void 0:xe.errorCode,fieldName:"bankAddress"})})),e("sl-input",Object.assign({required:!0,label:t.text.bankCityLabel,name:"/bankCity",id:"bankCity",key:"bankCity",type:"text"},(null===(Ce=null==Ze?void 0:Ze.inputErrors)||void 0===Ce?void 0:Ce.bankCity)&&{class:"error-input",helpText:i({type:null===(Se=null===(we=null==Ze?void 0:Ze.inputErrors)||void 0===we?void 0:we.bankCity)||void 0===Se?void 0:Se.type,label:t.text.bankCityLabel,errorCode:null===(Ie=null===(ke=null==Ze?void 0:Ze.inputErrors)||void 0===ke?void 0:ke.bankCity)||void 0===Ie?void 0:Ie.errorCode,fieldName:"bankCity"})})),e("sl-input",Object.assign({required:!0,label:t.text.bankStateLabel,name:"/bankState",id:"bankState",key:"bankState",type:"text"},(null===(Pe=null==Ze?void 0:Ze.inputErrors)||void 0===Pe?void 0:Pe.bankState)&&{class:"error-input",helpText:i({type:null===(Ae=null===(Te=null==Ze?void 0:Ze.inputErrors)||void 0===Te?void 0:Te.bankState)||void 0===Ae?void 0:Ae.type,label:t.text.bankStateLabel,errorCode:null===(De=null===(Ne=null==Ze?void 0:Ze.inputErrors)||void 0===Ne?void 0:Ne.bankState)||void 0===De?void 0:De.errorCode,fieldName:"bankState"})})),e("sl-input",Object.assign({required:!0,label:t.text.bankPostalCodeLabel,name:"/bankPostalCode",id:"bankPostalCode",key:"bankPostalCode",type:"text"},(null===(qe=null==Ze?void 0:Ze.inputErrors)||void 0===qe?void 0:qe.bankPostalCode)&&{class:"error-input",helpText:i({type:null===(Be=null===(Ee=null==Ze?void 0:Ze.inputErrors)||void 0===Ee?void 0:Ee.bankPostalCode)||void 0===Be?void 0:Be.type,label:t.text.bankPostalCodeLabel,errorCode:null===(Re=null===(Me=null==Ze?void 0:Ze.inputErrors)||void 0===Me?void 0:Me.bankPostalCode)||void 0===Re?void 0:Re.errorCode,fieldName:"bankPostalCode"})}))]},13:{input:e("sl-input",Object.assign({required:!0,label:t.text.branchCodeLabel,name:"/branchCode",id:"branchCode",key:"branchCode",type:"text"},(null===(Fe=null==Ze?void 0:Ze.inputErrors)||void 0===Fe?void 0:Fe.branchCode)&&{class:"error-input",helpText:i({type:null===(Ue=null===(Le=null==Ze?void 0:Ze.inputErrors)||void 0===Le?void 0:Le.branchCode)||void 0===Ue?void 0:Ue.type,label:t.text.branchCodeLabel,errorCode:null===(je=null===(_e=null==Ze?void 0:Ze.inputErrors)||void 0===_e?void 0:_e.branchCode)||void 0===je?void 0:je.errorCode,fieldName:"branchCode"})}))},14:{input:e("sl-select",Object.assign({required:!0,label:t.text.classificationLabel,name:"/beneficiaryClassification",id:"beneficiaryClassification",key:"beneficiaryClassification"},(null===(Oe=null==Ze?void 0:Ze.inputErrors)||void 0===Oe?void 0:Oe.beneficiaryClassification)&&{class:"error-input",helpText:i({type:null===(ze=null===(We=null==Ze?void 0:Ze.inputErrors)||void 0===We?void 0:We.beneficiaryClassification)||void 0===ze?void 0:ze.type,label:t.text.classificationLabel,errorCode:null===(Ye=null===(He=null==Ze?void 0:Ze.inputErrors)||void 0===He?void 0:He.beneficiaryClassification)||void 0===Ye?void 0:Ye.errorCode,fieldName:"beneficiaryClassification"})}),e("sl-menu-item",{value:"BUSINESS"},t.text.businessSelectItemLabel),e("sl-menu-item",{value:"INDIVIDUAL"},t.text.individualSelectItemLabel),e("sl-menu-item",{value:"FOREIGN"},t.text.foreignSelectItemLabel))},15:{input:e("sl-input",Object.assign({required:!0,label:t.text.branchNameLabel,name:"/branchName",id:"branchName",key:"branchName",type:"text"},(null===(Ve=null==Ze?void 0:Ze.inputErrors)||void 0===Ve?void 0:Ve.branchName)&&{class:"error-input",helpText:i({type:null===(Ge=null===($e=null==Ze?void 0:Ze.inputErrors)||void 0===$e?void 0:$e.branchName)||void 0===Ge?void 0:Ge.type,label:t.text.branchNameLabel})}))},16:{input:e("sl-input",Object.assign({required:!0,label:t.text.classificationCodeLabel,name:"/classificationCode",id:"classificationCode",key:"classificationCode",type:"text"},(null===(Ke=null==Ze?void 0:Ze.inputErrors)||void 0===Ke?void 0:Ke.classificationCode)&&{class:"error-input",helpText:i({type:null===(Je=null===(Xe=null==Ze?void 0:Ze.inputErrors)||void 0===Xe?void 0:Xe.classificationCode)||void 0===Je?void 0:Je.type,label:t.text.classificationCodeLabel})}))}}}({props:re,getValidationErrorMessage:ue,bankCountry:re.states.bankCountry}),pe=function({bitset:e,formMap:t}){return[...e.toString(2).padStart(Object.keys(t).length,"0")].reverse().reduce(((e,i,o)=>Number(i)&&t[o]?[...e,t[o]]:e),[])}({bitset:re.states.bitset,formMap:ce}),he=A({Dialog:{position:"relative","&::part(panel)":{maxWidth:"420px"},"&::part(title)":{padding:"var(--sl-spacing-large) var(--sl-spacing-large) 0 var(--sl-spacing-large)"},"&::part(base)":{position:"absolute"},"&::part(close-button)":{marginBottom:"var(--sl-spacing-large)"},"&::part(body)":{padding:"0 var(--sl-spacing-large) 0 var(--sl-spacing-large)",fontSize:"var(--sl-font-size-small)"},"&::part(footer)":{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-small)",marginBottom:"var(--sl-spacing-xx-small)",alignItems:"center",flex:"1"}},SearchInput:{padding:"var(--sl-spacing-x-small)"}}),we=he.toString(),Se=a.formatMessage({id:"codeResentSuccessfully",defaultMessage:re.text.verifyEmailDescriptionText},{email:re.states.email});return e(i,null,e("style",{type:"text/css"},we),e("style",{type:"text/css"},"\n sl-select::part(base) {\n color: var(--sqm-input-color);\n }\n sl-menu-item::part(base) {\n color: var(--sqm-input-color);\n }\n sl-menu-item::part(base):hover {\n background-color: var(--sqm-input-border-color-hover);\n }\n "),re.states.isPartner&&re.states.showVerification?e("sl-dialog",{class:he.classes.Dialog,open:!0,"onSl-hide":re.callbacks.onVerificationHide,label:re.text.verifyEmailHeaderText},e("sqm-code-verification",{verifyCodeHeaderText:Se,reverifyCodeHeaderText:Se,onVerification:re.callbacks.onVerification})):null,e(ve,{callbacks:re.callbacks,text:re.text,states:re.states,refs:re.refs,slots:{formInputsSlot:null==pe?void 0:pe.map((({input:e})=>e)),countryInputSlot:e("sl-select",Object.assign({label:re.text.bankLocationLabel,disabled:re.states.saveLoading,required:!0,name:"/bankCountry",id:"bankCountry",value:re.states.formState.bankCountry||"","onSl-select":e=>{var t,i;return re.callbacks.setBankCountry(null===(i=null===(t=e.detail)||void 0===t?void 0:t.item)||void 0===i?void 0:i.value)}},(null===(t=null==le?void 0:le.inputErrors)||void 0===t?void 0:t.bankCountry)&&{class:"error-input",helpText:ue({type:null===(s=null===(o=null==le?void 0:le.inputErrors)||void 0===o?void 0:o.bankCountry)||void 0===s?void 0:s.type,label:re.text.bankLocationLabel,errorCode:null===(u=null===(d=null==le?void 0:le.inputErrors)||void 0===d?void 0:d.bankCountry)||void 0===u?void 0:u.errorCode,fieldName:"bankCountry"})}),e("sl-input",{disabled:re.states.saveLoading,class:he.classes.SearchInput,placeholder:this.searchForCountryText,onKeyDown:e=>{e.stopPropagation()},"onSl-input":e=>{re.callbacks.setCountrySearch(e.target.value)}}),null===(c=re.states.countries)||void 0===c?void 0:c.map((t=>e("sl-menu-item",{value:t.countryCode},t.displayName))),null===(w=null===(m=re.states)||void 0===m?void 0:m.allCountries)||void 0===w?void 0:w.map((t=>e("sl-menu-item",{value:t.countryCode,style:{display:"none"}},t.displayName)))),paymentMethodSlot:e("sl-input",{key:"paymentMethod",label:re.text.paymentMethod,placeholder:re.states.paymentMethodFeeLabel,disabled:!0}),paymentThresholdSelectSlot:e("sl-select",Object.assign({required:!0,disabled:re.states.saveLoading,label:re.text.paymentThresholdSelectLabel,name:"/paymentThreshold",id:"paymentThreshold",value:(null===(k=null===(S=re.states)||void 0===S?void 0:S.formState)||void 0===k?void 0:k.paymentThreshold)||""},(null===(T=null==le?void 0:le.inputErrors)||void 0===T?void 0:T.paymentThreshold)&&{class:"error-input",helpText:ue({type:null===(D=null===(N=null==le?void 0:le.inputErrors)||void 0===N?void 0:N.paymentThreshold)||void 0===D?void 0:D.type,label:re.text.paymentThresholdSelectLabel,errorCode:null===(E=null===(q=null==le?void 0:le.inputErrors)||void 0===q?void 0:q.paymentThreshold)||void 0===E?void 0:E.errorCode,fieldName:"paymentThreshold"})}),re.states.thresholds.map((t=>e("sl-menu-item",{value:t},`${re.states.currency}${t}`)))),paymentFixedDaySelectSlot:e("sl-select",Object.assign({required:!0,disabled:re.states.saveLoading,label:re.text.paymentDaySelectLabel,value:(null===(M=null===(B=re.states)||void 0===B?void 0:B.formState)||void 0===M?void 0:M.paymentDay)||"",name:"/paymentDay",id:"paymentDay"},(null===(R=null==le?void 0:le.inputErrors)||void 0===R?void 0:R.paymentDay)&&{class:"error-input",helpText:ue({type:null===(L=null===(F=null==le?void 0:le.inputErrors)||void 0===F?void 0:F.paymentDay)||void 0===L?void 0:L.type,label:re.text.paymentDaySelectLabel,errorCode:null===(_=null===(U=null==le?void 0:le.inputErrors)||void 0===U?void 0:U.paymentDay)||void 0===_?void 0:_.errorCode,fieldName:"paymentDay"})}),e("sl-menu-item",{value:"1"},re.text.paymentDayFirstOfMonthLabelText),e("sl-menu-item",{value:"15"},re.text.paymentDayFifteenthOfMonthLabelText)),paypalInputSlot:e("sl-input",Object.assign({required:!0,disabled:re.states.saveLoading,value:(null===(O=null===(j=re.states)||void 0===j?void 0:j.formState)||void 0===O?void 0:O.paypalEmailAddress)||"",label:re.text.payPalInputLabel,key:"paypalEmailAddress",name:"/paypalEmailAddress",id:"paypalEmailAddress",type:"text"},(null===(H=null===(z=null===(W=re.states.formState)||void 0===W?void 0:W.errors)||void 0===z?void 0:z.inputErrors)||void 0===H?void 0:H.paypalEmailAddress)&&{class:"error-input",helpText:ue({type:null===(G=null===($=null===(V=null===(Y=re.states.formState)||void 0===Y?void 0:Y.errors)||void 0===V?void 0:V.inputErrors)||void 0===$?void 0:$.paypalEmailAddress)||void 0===G?void 0:G.type,label:re.text.payPalInputLabel,errorCode:null===(oe=null===(ie=null===(X=null===(K=re.states.formState)||void 0===K?void 0:K.errors)||void 0===X?void 0:X.inputErrors)||void 0===ie?void 0:ie.paypalEmailAddress)||void 0===oe?void 0:oe.errorCode,fieldName:"paypalEmailAddress"})}))}}))}},Se=m.gql`
32
- mutation createImpactPublisherTaxDocument(
33
- $vars: CreateImpactPublisherTaxDocumentInput!
34
- ) {
35
- createImpactPublisherTaxDocument(
36
- createImpactPublisherTaxDocumentInput: $vars
37
- ) {
38
- documentUrl
39
- }
40
- }
41
- `,ke=m.gql`
42
- mutation completeImpactPublisherTaxDocument($vars: UserIdInput!) {
43
- completeImpactPublisherTaxDocument(user: $vars) {
44
- success
45
- }
46
- }
47
- `,Ie=["exception","decline","cancel","fax_pending"],Pe=["ttl_expired","session_timeout"];const Te=A({DocusignStatusContainer:{width:"100%",minHeight:"600px",height:"900px",display:"flex",flexDirection:"column",alignItems:"center",padding:"20px",gap:"10px",margin:"auto",textAlign:"center",border:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",justifyContent:"center"},MessageContainer:{maxWidth:"400px"},IFrameContainer:{"@media screen and (max-width: 440px)":{position:"absolute",width:"100vw",left:"-30px",zIndex:"9999"}}}),Ae=Te.toString(),Ne=t=>{const{classes:i}=Te,{text:o}=t;return e("div",null,e("style",{type:"text/css"},Ae),e("div",{class:i.DocusignStatusContainer},e("sl-icon",{style:{width:"50px",height:"50px",color:"var(--sqm-text)"},name:"clock"}),e("div",{class:i.MessageContainer},e("p",{style:{margin:"0"}},o.docusignExpired)),e("sl-button",{type:"primary",onClick:()=>window.location.reload()},o.refreshButton)))},De=t=>{const{classes:i}=Te,{text:o}=t;return e("div",null,e("style",{type:"text/css"},Ae),e("div",{class:i.DocusignStatusContainer},e("sl-icon",{style:{width:"50px",height:"50px",color:"var(--sqm-text)"},name:"exclamation-octagon"}),e("div",{class:i.MessageContainer},e("p",{style:{margin:"0"}},o.docusignError)),e("sl-button",{type:"primary",onClick:()=>window.location.reload()},o.refreshButton)))},qe=()=>{const{classes:t}=Te;return e("div",null,e("style",{type:"text/css"},Ae),e("div",{class:t.DocusignStatusContainer},e("sl-spinner",{style:{fontSize:"50px",margin:"40px"}})))},Ee=({states:t,data:i,callbacks:o,text:a})=>{const{classes:n}=Te,[s,d]=r("100%"),u=["referralsaasquatch.com","impacttech.complysandbox.com","impacttech.complytaxforms.com"],c=w((e=>{u.some((t=>{var i;return null===(i=e.origin)||void 0===i?void 0:i.includes(t)}))&&("number"==typeof e.data&&d(e.data+"px"),"Complyexchange Thank you page Load"!==e.data||t.loading||o.completeDocument())}),[]);return l((()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c,!1)})),[s]),t.urlLoading?e(qe,null):Ie.includes(t.status)?e(De,{text:a}):Pe.includes(t.status)?e(Ne,{text:a}):e("div",{style:{height:s}},e("style",{type:"text/css"},Ae),e("div",{class:n.IFrameContainer},e("iframe",{scrolling:"yes",frameBorder:"0",width:"100%",src:i.documentUrl,height:s})))},Be=A({ModalTitleContainer:{display:"flex",gap:"var(--sl-spacing-small)",alignItems:"center"},FormWrapper:{display:"flex",justifyContent:"flex-start",flexDirection:"column"},CheckboxContainer:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flexDirection:"column",gap:"var(--sl-spacing-xx-small)"},TitleContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--sl-spacing-small)"},TextContainer:{display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"24px"},BtnContainer:{paddingTop:"36px",display:"flex",gap:"8px"},ErrorText:{color:"var(--sqm-danger-color-icon)",marginTop:"10px"},DescriptionText:{color:"var(--sl-color-neutral-500)"},BoldText:{fontWeight:"bold"},Container:{width:"100%",display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"16px"},CheckboxWrapper:{display:"flex",justifyContent:"flex-start",flexDirection:"column"},InfoIcon:{height:"24px",width:"24px"},RadioText:{fontSize:"var(--sl-font-size-small)"},PageDescriptionText:{color:"var(--sqm-text-subdued)",fontSize:"var(--sl-font-size-medium)"},Dialog:{"&::part(panel)":{maxWidth:"420px"},"&::part(title)":{fontSize:"var(--sl-font-size-large)",fontWeight:"600"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",fontSize:"var(--sl-font-size-small)"},"&::part(footer)":{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-small)",marginBottom:"var(--sl-spacing-xx-small)",alignItems:"center",flex:"1"}},DialogButton:{margin:"auto",width:"100%"}}),Me=Be.toString(),Re=t=>{var i;const{states:o,states:{formState:n,documentTypeString:r},callbacks:l,text:s,slots:d}=t,{classes:u}=Be;return e("div",{class:u.Container,part:"container"},e("style",{type:"text/css"},Me,"\n :host{\n display: block; \n }\n\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n\n a {\n color: inherit;\n text-decoration: underline;\n cursor: pointer;\n }\n\n\n "),e("sl-dialog",{class:Be.classes.Dialog,open:o.showModal,"onSl-hide":l.onModalClose},e("div",{class:u.ModalTitleContainer,slot:"label"},e("sl-icon",{name:"info-circle",style:{color:"var(--sqm-informative-color-icon)"}}),e("h2",{style:{fontSize:"var(--sl-font-size-large)"}},s.modalTitle)),e("p",null,a.formatMessage({id:"modalText",defaultMessage:s.modalDescription},{br:e("br",null)})),e("sl-button",{slot:"footer",type:"primary",class:Be.classes.DialogButton,onClick:l.onModalClose,exportparts:"base: primarybutton-base"},s.modalButtonText)),e("div",{class:u.TextContainer},e("div",null,!o.hideSteps&&e("p",null,a.formatMessage({id:"formStep",defaultMessage:s.formStep},{step:o.step,count:X})),e("h3",null,s.taxForm),e("p",{class:u.PageDescriptionText},s.taxAndPayoutsDescription))),o.loadingError&&e("div",null,e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},s.error.loadingErrorAlertHeader),a.formatMessage({id:"loadingErrorAlertDescription",defaultMessage:s.error.loadingErrorAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},s.supportLink)}))),(null===(i=n.errors)||void 0===i?void 0:i.general)&&e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},s.error.generalTitle),a.formatMessage({id:"generalDescription",defaultMessage:s.error.generalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},s.supportLink)})),e("div",null,e("div",null,e("h5",{class:u.BoldText},a.formatMessage({id:"tax-form-label",defaultMessage:s.taxFormLabel},{documentType:r})),e("p",null,a.formatMessage({id:"tax-form-description",defaultMessage:"W9"===o.documentType?s.taxFormDescription:"individualParticipant"===n.participantType?s.taxFormDescriptionIndividualParticipant:s.taxFormDescriptionBusinessEntity},{documentType:r}))),e("div",null,d.docusignIframeSlot),e("div",{class:u.BtnContainer},o.showExitButton&&e("sl-button",{type:"primary",exportparts:"base: primarybutton-base",onClick:l.onExit},s.exitButton))))},Fe=class{constructor(e){t(this,e),this.ignored=!0,this.formStep="Step {step} of {count}",this.taxForm="Tax form",this.taxFormLabel="{documentType} Tax Form",this.taxFormDescription="Participants based in the US need to submit a {documentType} form.",this.supportLink="support team",this.taxFormDescriptionIndividualParticipant="Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.",this.taxFormDescriptionBusinessEntity="Participants residing outside of the US working with a US Brand need to submit a {documentType} form.",this.docusignExpired="For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.",this.docusignSessionWarning="For your security, we automatically end your session when you have not interacted with the form after 20 minutes.",this.participantType="Participant type",this.businessEntity="I represent a business",this.individualParticipant="I am an individual participant",this.docusignError="There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.",this.refreshButton="Refresh Page",this.generalErrorTitle="There was a problem submitting your information",this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.",this.loadingErrorAlertHeader="There was a problem loading your form",this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.",this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.",this.exitButton="Exit",this.modalTitle="Important Note",this.modalDescription="Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.",this.modalButtonText="I understand",s(this)}disconnectedCallback(){}getTextProps(){const e=T(this);return{...e,error:{generalTitle:e.generalErrorTitle,generalDescription:e.generalErrorDescription,participantType:e.participantType,loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription}}}render(){const t=x(),o=t?function(e){const t=C(te);return P({text:e.getTextProps(),states:{step:"3",disabled:!1,submitDisabled:!1,loading:!1,status:void 0,loadingError:!1,participantTypeDisabled:!1,formState:{completedTaxForm:!0,taxFormExpired:!0,errors:{}},documentType:"W9",showModal:!1},data:{taxForm:"W9",documentUrl:"https://example.com"},callbacks:{demo:{onSubmit:()=>t("/4"),onBack:()=>t("/3"),onModalOpen:()=>{},onModalClose:()=>{}},setParticipantType:e=>console.log({p:e}),setDocusignStatus:e=>console.log(e)}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e){var t,i,o;const a=v(),n=f(J),[s,d]=y(te),{data:u,loading:c}=b(ee),m=null===(i=null===(t=null==u?void 0:u.user)||void 0===t?void 0:t.impactConnection)||void 0===i?void 0:i.publisher,[p,{loading:h,data:x,errors:C}]=g(Se),[w,{loading:S}]=g(ke),[k,I]=r(void 0),[P,T]=r(void 0),[A,q]=r({}),[E,B]=r(!1),[M,R]=r(!1),[F,L]=r(!0),U=D(null==m?void 0:m.requiredTaxDocumentType)&&(null==m?void 0:m.currentTaxDocument)?null==m?void 0:m.requiredTaxDocumentType:void 0,_=U||("businessEntity"===(j=P)?"W8BENE":"individualParticipant"===j?"W8BEN":void 0)||(null==m?void 0:m.requiredTaxDocumentType);var j;l((()=>{U&&("W8BEN"===U?T("individualParticipant"):"W8BENE"===U&&T("businessEntity"))}),[U]),l((()=>{a&&m&&(async()=>{try{const e=await p({vars:{provider:"COMPLY_EXCHANGE",user:{id:a.id,accountId:a.accountId},...P?{isBusinessEntity:"businessEntity"===P}:{}}});if(!e||e.message)throw new Error}catch(e){q({docusign:!0})}})()}),[a,m,P]);const O=c||h||E;return{states:{step:null==s?void 0:s.replace("/",""),hideSteps:n.hideSteps,disabled:O,participantTypeDisabled:O||!!U,loading:c||E||S,urlLoading:h,loadingError:!!(null==C?void 0:C.message),formState:{participantType:P,taxFormExpired:Pe.includes(k),errors:A},docusignStatus:k,documentType:_,documentTypeString:N(_),showExitButton:M,showModal:F},data:{taxForm:_,documentUrl:null===(o=null==x?void 0:x.createImpactPublisherTaxDocument)||void 0===o?void 0:o.documentUrl},callbacks:{setDocusignStatus:I,completeDocument:async()=>{if(a)try{B(!0);const e=await w({vars:{id:a.id,accountId:a.accountId}});if(!e||e.message)throw new Error;if(!e.completeImpactPublisherTaxDocument.success)throw new Error;window.dispatchEvent(new Event(ne)),R(!0)}catch(e){q({general:!0})}finally{B(!1)}},onExit:()=>{window.location.hash?window.location.hash="":d(n.overrideNextStep||(null==m?void 0:m.withdrawalSettings)||!(null==m?void 0:m.brandedSignup)?"/dashboard":"/4")},setParticipantType:T,onModalClose:()=>L(!1),onModalOpen:()=>L(!0)},text:e.getTextProps()}}(this),a=e(Ee,{states:{status:o.states.docusignStatus,loading:o.states.loading,urlLoading:o.states.urlLoading},data:{documentUrl:o.data.documentUrl},callbacks:{completeDocument:o.callbacks.completeDocument},text:o.text});return e(i,null,e(Re,{callbacks:o.callbacks,states:o.states,text:o.text,slots:{docusignIframeSlot:t?Le({callbacks:o.callbacks}):a}}))}get el(){return o(this)}},Le=({callbacks:t})=>e("div",{style:{width:"100%",height:"600px",background:"inherit",display:"flex",justifyContent:"center",alignItems:"center"}},e("div",{style:{display:"flex",flexDirection:"column",gap:"12px",alignItems:"center"}},e("span",null,"Placeholder for docusign iframe"),e("div",{style:{display:"flex",gap:"8px"}},e("sl-button",{type:"primary",submit:!0,exportparts:"base: primarybutton-base",onClick:t.demo.onBack},"Back to Step 2"),e("sl-button",{type:"primary",submit:!0,exportparts:"base: primarybutton-base",onClick:t.demo.onSubmit},"Continue to Step 4")))),Ue=A({FormWrapper:{display:"flex",justifyContent:"flex-start",flexDirection:"column"},RadioContainer:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flexDirection:"column",gap:"var(--sl-spacing-medium)",marginBottom:"16px","& sl-radio::part(base)":{alignItems:"start"}},InnerRadioContainer:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)",width:"100%"},RadioContent:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-xx-small)",fontSize:"var(--sl-font-size-small)",color:"var(--sqm-text)"},TitleContainer:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:"var(--sl-spacing-small)"},TextContainer:{display:"flex",justifyContent:"flex-start",flexDirection:"column",gap:"24px",paddingBottom:"16px"},BtnContainer:{paddingTop:"36px",display:"flex",gap:"8px"},ErrorText:{color:"var(--sqm-danger-color-text)",marginTop:"10px"},DescriptionText:{color:"var(--sqm-text-subdued)"},InfoWarningIcon:{height:"26px",width:"26px"},PageDescriptionText:{color:"var(--sqm-text-subdued)",fontSize:"var(--sl-font-size-medium)",marginBottom:"var(--sl-spacing-small)"},PrimaryButton:{"&::part(base)":{background:"var(--sqm-primary-button-background)",color:"var(--sqm-primary-button-color)",borderColor:"var(--sqm-primary-button-color-border)",borderRadius:"var(--sqm-primary-button-radius)"},"&::part(base):hover":{backgroundColor:"var(--sqm-primary-button-background-hover)",borderColor:"var(--sqm-primary-button-border-color-hover)",color:"var(--sqm-primary-button-color-hover)"}},SecondaryButton:{"&::part(base)":{background:"var(--sqm-secondary-button-background)",color:"var(--sqm-secondary-button-color)",borderColor:"var(--sqm-secondary-button-color-border)",borderRadius:"var(--sqm-secondary-button-radius)",width:"max-content",display:"flex",margin:"auto"},"&::part(base):hover":{backgroundColor:"var(--sqm-secondary-button-background-hover)",color:"var(--sqm-secondary-button-color-hover)",borderColor:"var(--sqm-secondary-button-border-color-hover)"}}}),_e=Ue.toString(),je=t=>{var i;const{states:o,states:{formState:n},callbacks:r,text:l,refs:s,slots:d}=t,{classes:u}=Ue;return e("sl-form",{part:"form-container",class:u.FormWrapper,"onSl-submit":r.onSubmit,ref:e=>s.formRef.current=e,novalidate:!0},e("style",{type:"text/css"},_e,"\n :host{\n display: block; \n }\n\n hr {\n border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);\n }\n\n a {\n color: inherit;\n text-decoration: underline;\n cursor: pointer;\n }\n\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n\n "),e("div",{class:u.TextContainer},e("div",null,!o.hideSteps&&e("p",null," ",a.formatMessage({id:"formStep",defaultMessage:l.formStep},{step:o.step,count:X})),e("h3",null,l.indirectTax),e("p",{class:u.PageDescriptionText},l.taxAndPayoutsDescription),e("p",{class:u.DescriptionText},l.indirectTaxDescription)),o.loadingError&&e("div",null,e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},l.error.loadingErrorAlertHeader),a.formatMessage({id:"loadingErrorAlertDescription",defaultMessage:l.error.loadingErrorAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},l.supportLink)}))),(null===(i=n.errors)||void 0===i?void 0:i.general)&&e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},l.error.generalTitle),a.formatMessage({id:"generalDescription",defaultMessage:l.error.generalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},l.supportLink)})),o.isPartnerLegacy&&e("sqm-form-message",{loading:o.loading,type:"info"},e("p",{part:"alert-title"},l.isPartnerAlertHeader),a.formatMessage({id:"isPartnerAlertDescription",defaultMessage:l.isPartnerAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},l.supportLink)})),e("div",null,e("h4",null,l.indirectTaxDetails))),o.loading?e("sl-spinner",{style:{fontSize:"50px",margin:"40px"}}):e("div",null,e("div",{class:u.RadioContainer},e("div",{class:u.InnerRadioContainer},e("sl-radio",{exportparts:"base: radio-base",name:"/checked",value:"notRegistered",id:"notRegistered",checked:"notRegistered"===n.checked,onInput:()=>r.onChange("notRegistered"),disabled:o.disabled},e("div",{class:u.RadioContent},l.notRegistered,e("p",{class:u.DescriptionText},l.notRegisteredSubtext))),e("sl-radio",{exportparts:"base: radio-base",name:"/checked",value:"otherRegion",id:"otherRegion",checked:"otherRegion"===n.checked,onInput:()=>r.onChange("otherRegion"),disabled:o.disabled},e("div",{class:u.RadioContent},l.otherRegion,e("p",{class:u.DescriptionText},l.otherRegionSubtext))),d.registeredInDifferentCountryDetailsSlot)),e("sqm-form-message",{type:"info"},a.formatMessage({id:"cannotChangeInfoAlert",defaultMessage:l.cannotChangeInfoAlert},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},l.supportLink)})),e("div",{class:u.BtnContainer},e("sl-button",{class:u.PrimaryButton,type:"primary",disabled:o.disabled,submit:!0,exportparts:"base: primarybutton-base"},l.continueButton),e("sl-button",{class:u.SecondaryButton,type:"text",disabled:o.disabled,onClick:r.onBack,exportparts:"base: secondarybutton-base"},l.backButton))))},Oe=class{constructor(e){t(this,e),this.formStep="Step {step} of {count}",this.indirectTax="Indirect Tax",this.indirectTaxDescription="Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.",this.indirectTaxDetails="Indirect tax details",this.otherRegion="Registered for indirect tax",this.otherRegionSubtext="If you’ve registered with your tax authority, add your information to stay tax compliant.",this.notRegistered="Not registered for indirect tax",this.notRegisteredSubtext="If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.",this.selectedRegion="Country / region of indirect tax",this.province="Province",this.indirectTaxNumber="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}",this.qstNumber="QST number",this.isRegisteredQST="I am registered for QST Tax",this.isRegisteredSubRegionIncomeTax="I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.",this.subRegion="Sub-region",this.subRegionTaxNumberLabel="Income tax number",this.backButton="Back",this.cannotChangeInfoAlert="Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.",this.indirectTaxNumberError="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required",this.searchForCountryText="Search for country..",this.fieldRequiredError="{fieldName} is required",this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com",this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.",this.continueButton="Continue",this.supportLink="support team",this.generalErrorTitle="There was a problem submitting your information",this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.",this.loadingErrorAlertHeader="There was a problem loading your form",this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.",this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.",s(this)}disconnectedCallback(){}getTextProps(){const e=T(this);return{...e,error:{generalTitle:e.generalErrorTitle,generalDescription:e.generalErrorDescription,fieldRequiredError:e.fieldRequiredError,loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription},slotText:{isRegisteredQST:e.isRegisteredQST,isRegisteredSubRegionIncomeTax:e.isRegisteredSubRegionIncomeTax,qstNumber:e.qstNumber,subRegion:e.subRegion,subRegionTaxNumberLabel:e.subRegionTaxNumberLabel,selectedRegion:e.selectedRegion,province:e.province,indirectTaxNumber:e.indirectTaxNumber,error:{indirectTaxNumber:e.indirectTaxNumberError,fieldRequiredError:e.fieldRequiredError},searchForCountryText:e.searchForCountryText}}}render(){const t=x()?function(e){const t=C(te),[i,o]=r("otherRegion"),[a,n]=r({});return P({states:{step:"2",disabled:!1,loading:!1,isPartner:!1,isPartnerLegacy:!1,loadingError:!1,errors:{},formState:{checked:i,errors:{general:!1}}},callbacks:{onFormChange:(e,t)=>{var i,o;const a=null===(o=null===(i=t.detail)||void 0===i?void 0:i.item)||void 0===o?void 0:o.__value;a||console.error("Could not detect select change"),n((t=>({...t,[e]:a})))},onBack:()=>{t("/1")},onSubmit:async()=>{t("/3")},onQstToggle:()=>n((e=>({...e,hasQst:!e.hasQst}))),onSpainToggle:()=>n((e=>({...e,hasSubRegionTaxNumber:!e.hasSubRegionTaxNumber}))),onChange:o,setCountrySearch:e=>console.log(e)},data:{esRegions:q,countries:[{countryCode:"CA",displayName:"Canada"},{countryCode:"ES",displayName:"Spain"},{countryCode:"UK",displayName:"United Kingdom"},{countryCode:"US",displayName:"United States"}],provinces:E},text:e.getTextProps(),refs:{formRef:{current:null}},slotProps:{formState:{...a,errors:{selectedRegion:!1,province:!1,subRegion:!1,qstNumber:!1,subRegionTaxNumber:!1,indirectTaxNumber:!1}}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):re(this),o=e(Y,{states:{hide:"otherRegion"!==t.states.formState.checked,disabled:t.states.disabled,formState:t.slotProps.formState,loading:t.states.loading,isPartner:t.states.isPartner},callbacks:t.callbacks,data:{esRegions:t.data.esRegions,countries:t.data.countries,provinces:t.data.provinces,allCountries:t.data.allCountries},text:t.text.slotText});return e(i,null,e(je,{callbacks:t.callbacks,states:t.states,refs:t.refs,text:t.text,slots:{registeredInDifferentCountryDetailsSlot:o}}))}},We=d("sq:useInvoiceTable"),ze=m.gql`
48
- query getUserTaxInfo($limit: Int!, $offset: Int!) {
49
- user: viewer {
50
- ... on User {
51
- impactConnection {
52
- connected
53
- publisher {
54
- invoices(limit: $limit, offset: $offset) {
55
- data {
56
- id
57
- dateCreated
58
- totalAmount
59
- totalVatAmount
60
- downloadUrl
61
- currency
62
- }
63
- totalCount
64
- }
65
- }
66
- }
67
- }
68
- }
69
- }
70
- `;async function He(t,i){const o=t.tagName.toLowerCase();let a;await customElements.whenDefined(o);try{a=i()}catch(t){return We("label promise failed",t),e("span",null)}try{return await a}catch(t){We("Error rendering label",t);const i=O(t);return e("details",null,e("summary",null,"Error"),i)}}const Ye=class{constructor(e){t(this,e),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,this.header="Invoices",this.description="View and download your invoices to report your earnings and stay tax compliant.",this.emptyStateHeader="View your invoice details",this.emptyStateText="Refer a friend to view the status of your invoices and rewards earned",s(this)}disconnectedCallback(){}render(){const t=e(Ve,{emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText}),i=e($e,null),{states:o,data:a,callbacks:n,elements:r}=x()?function(e,t,i){const[o,a]=u(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),n=_(),r=c((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||((e=4)=>({data:[...Array(e)].map((()=>(()=>{const e=H.DateTime.now(),t=Math.random().toString(36).slice(2,12),i=Math.floor(100*Math.random())+1,o=Math.round(.2*i);return{downloadUrl:"https://example.com",dateCreated:e.toMillis(),invoiceId:t,program:"my-program",earnings:`$${i}.00`,indirectTax:`$${o}.00`,netEarnings:`$${i-o}.00`}})()))}))(e.perPage)}),[e.perPage]),s=z();return l((()=>{a({loading:!0}),(null==r?void 0:r.data)&&async function(t){const i=r.data.slice(0,e.perPage),o=t.filter((e=>{var t,i;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(i=null==e?void 0:e.firstElementChild)||void 0===i?void 0:i.getAttribute("slot"))})),n=null==o?void 0:o.map((async(e,t)=>{var i;const o=null===(i=null==e?void 0:e.firstElementChild)||void 0===i?void 0:i.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==o&&"empty"!==o){e.setAttribute("slot","column-"+t),e.style.position="absolute";const i=e.firstElementChild.childNodes[1];return i.innerHTML="+",i.style.lineHeight="20px",He(e,(()=>e.renderLabel(t)))}return He(e,(()=>e.renderLabel()))})),l=null==i?void 0:i.map((async e=>{const t=null==o?void 0:o.map((async t=>He(t,(()=>t.renderCell(e,{})))));return await Promise.all(t)})),s=(await Promise.all(l)).filter((e=>e));a({rows:s});const d=n&&await Promise.all(n);a({columns:d,dropZoneColumns:W(o),loading:!1,page:0})}(s)}),[null==r?void 0:r.data,s,n]),P({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,invoiceData:[],mdBreakpoint:799,smBreakpoint:599},elements:{...o,emptyElement:t,loadingElement:i}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,t,i):function(t,i,o){var a;const n=v(),r=h(),[s,d]=u(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{envelope:c,states:m,callbacks:p}=S(ze,(e=>{var t,i,o;return null===(o=null===(i=null===(t=null==e?void 0:e.user)||void 0===t?void 0:t.impactConnection)||void 0===i?void 0:i.publisher)||void 0===o?void 0:o.invoices}),{limit:t.perPage,offset:0},{},!(null==n?void 0:n.jwt)),y=_(),f=z(),b=null==c?void 0:c.data;l((()=>{d({loading:!0}),c&&async function(t){const i=t.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),o=null==i?void 0:i.map((async e=>He(e,(()=>e.renderLabel())))),a=null==b?void 0:b.map((async t=>{var o,a,n;const l={earnings:`${t.currency}${(null===(o=t.totalAmount)||void 0===o?void 0:o.toFixed(2))||"0.00"}`,indirectTax:`${t.currency}${(null===(a=t.totalVatAmount)||void 0===a?void 0:a.toFixed(2))||"0.00"}`,dateCreated:t.dateCreated,invoiceId:t.id,netEarnings:`${t.currency}${(null===(n=t.totalAmount-t.totalVatAmount)||void 0===n?void 0:n.toFixed(2))||"0.00"}`,downloadUrl:t.downloadUrl},s=null==i?void 0:i.map((async t=>He(t,(()=>t.renderCell(l,{locale:r},e)))));return await Promise.all(s)})),n=a&&(await Promise.all(a)).filter((e=>e));d({rows:n});const l=o&&await Promise.all(o);d({columns:l,loading:!1,page:m.currentPage})}(f)}),[c,f,y]);const g=!(null===(a=null==s?void 0:s.rows)||void 0===a?void 0:a.length)&&!(null==b?void 0:b.length);return{states:{hasNext:m.currentPage<m.pageCount-1,hasPrev:m.currentPage>0,show:m.loading||s.loading?"loading":g?"empty":"rows",namespace:"sqm-invoice-table"},data:{textOverrides:{showLabels:!t.hideLabels,prevLabel:t.prevLabel,moreLabel:t.moreLabel},hiddenColumns:t.hiddenColumns,smBreakpoint:t.smBreakpoint,mdBreakpoint:t.mdBreakpoint},elements:{columns:s.columns,rows:s.rows,emptyElement:i,loadingElement:o},callbacks:{nextPage:()=>{p.setCurrentPage(m.currentPage+1)},prevPage:()=>{p.setCurrentPage(m.currentPage-1)}}}}(this,t,i);return j([this.perPage]),e(V,{header:this.header,description:this.description},e(U,{states:o,data:a,callbacks:n,elements:r}))}};function Ve(t){return e("slot",{name:"empty"},e("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1710363322/squatch-assets/invoice-table-empty.png","empty-state-header":t.emptyStateHeader,"empty-state-text":t.emptyStateText}))}function $e(){return e("slot",{name:"loading"},e(Ge,null),e(Ge,null),e(Ge,null),e(Ge,null))}function Ge(){return e("sqm-table-row",null,e("sqm-table-cell",{colspan:6},e("sqm-skeleton",null)))}const Ke=class{constructor(e){t(this,e),s(this)}disconnectedCallback(){}async renderCell(t){return e("sqm-invoice-table-data-cell",{data:t[this.property]})}async renderLabel(){return Promise.resolve(this.columnTitle)}render(){return j([this.columnTitle,this.property]),e(i,{style:{display:"none"}},e("slot",null))}},Xe=class{constructor(e){t(this,e),s(this)}disconnectedCallback(){}async renderCell(t,i){return e("sqm-invoice-table-date-cell",{date:t.dateCreated,locale:null==i?void 0:i.locale})}async renderLabel(){return this.columnTitle}render(){return j([this.columnTitle]),e(i,{style:{display:"none"}},e("slot",null))}},Je=class{constructor(e){t(this,e),s(this)}disconnectedCallback(){}async renderCell(t){return e("sqm-invoice-table-download-cell",{downloadUrl:t.downloadUrl})}async renderLabel(){return e("span",null)}render(){return e(i,{style:{display:"none"}},e("slot",null))}},Ze=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"20",viewBox:"0 0 17 20",fill:"none"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.20649 4.55454H12.7877C15.7842 4.55454 16.9137 6.08577 16.7343 8.34231C16.4486 12.0629 14.2228 14.118 11.2728 14.118H9.78446C9.37916 14.118 9.10675 14.3866 9.00044 15.1254L8.36923 19.39C8.32937 19.6653 8.1832 19.8265 7.97058 19.8467H4.46242C4.13021 19.8467 4.01725 19.5915 4.10363 19.0408L6.23643 5.36045C6.32281 4.81646 6.61515 4.55454 7.20649 4.55454Z",fill:"#009EE3"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z",fill:"#113984"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z",fill:"#172C70"})),Qe={CardContainer:{display:"grid",gridTemplateColumns:"1fr",gridGap:"var(--sl-spacing-large)",background:"inherit",boxShadow:"0px 2px 4px rgba(28, 28, 33, 0.12)",borderRadius:"var(--sqm-border-radius-normal)",padding:"var(--sl-spacing-large)",minHeight:"150px",border:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",maxWidth:"450px"},StatusContainer:{display:"flex",justifyContent:"space-between",alignItems:"center"},MainCurrencyLabel:{fontWeight:"var(--sl-font-weight-normal)",color:"var(--sqm-text-subdued)"},MainCurrency:{margin:0,fontSize:"32px",width:"auto"},SubduedRegularText:{fontSize:"var(--sl-font-size-small)",color:"var(--sqm-text-subdued)",margin:0,width:"auto"},PaypalEmail:{borderRight:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",paddingRight:"var(--sl-spacing-small)","@media (max-width: 499px)":{borderRight:"none",paddingRight:"none"}},PaypalDetailsContainer:{color:"var(--sqm-text-subdued)",display:"flex",gap:"var(--sl-spacing-small)",justifyContent:"flex-start",alignItems:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","@media (max-width: 499px)":{flexDirection:"column",alignItems:"flex-start",gap:"var(--sl-spacing-x-small)","& span":{padding:"0px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}},AccountDetailsContainer:{color:"var(--sqm-text-subdued)",display:"flex",gap:"var(--sl-spacing-small)",justifyContent:"flex-start",alignItems:"center"},CurrenciesContainer:{display:"grid",width:"auto",gridTemplateColumns:"1fr 1fr 1fr",gap:"var(--sl-spacing-xx-small) var(--sl-spacing-small)",paddingTop:"var(--sq-spacing-xx-small)","& > :not(:last-child)":{borderRight:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)"},"& > :nth-child(3)":{border:"none"}},CurrencyContainer:{paddingRight:"var(--sl-spacing-small)",gap:"var(--sl-spacing-small)"},SubCurrencyText:{fontWeight:"var(--sl-font-weight-bold)",fontSize:"var(--sl-font-size-large)",margin:"0"},W9Container:{paddingTop:"var(--sl-spacing-large)",borderTop:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)"},SkeletonOne:{width:"25%",height:"16px"},SkeletonTwo:{width:"25%",height:"24px"},SkeletonThree:{width:"50%",height:"34px"},SuccessBadge:{"&::part(base)":{textAlign:"center",whiteSpace:"pre-line",background:"var(--sqm-success-color-icon)",color:"var(--sl-color-white)"}},PrimaryBadge:{"&::part(base)":{textAlign:"center",whiteSpace:"pre-line",background:"var(--sqm-informative-color-icon)",color:"var(--sl-color-white)"}},DangerBadge:{"&::part(base)":{textAlign:"center",whiteSpace:"pre-line",background:"var(--sqm-danger-color-icon)",color:"var(--sl-color-white)"}},Container:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-xx-large)"}};function et(t){const i=A(Qe),o=i.toString(),{classes:n}=i,{states:r,text:l}=t,s=a.formatMessage({id:"thresholdText",defaultMessage:l.thresholdPayoutText},{thresholdBalance:r.thresholdBalance}),d="thresholdPayout"===r.badgeStatus?r.thresholdBalance?s:"":r.belowPayoutThreshold?"":r.nextPayoutDate,u="thresholdPayout"!==r.badgeStatus&&!r.belowPayoutThreshold;return e("div",{class:n.Container},e("style",{type:"text/css"},o),r.loading?e("div",{class:n.CardContainer},e("div",{class:n.StatusContainer,style:{display:"block"}},e("sqm-skeleton",{style:{marginBottom:"var(--sl-spacing-medium)"},width:"25%",height:"16px"}),e("sqm-skeleton",{width:"25%",height:"24px"})),e("sqm-skeleton",{width:"50%",height:"34px"}),e("sqm-skeleton",{width:"25%",height:"16px"})):e("div",{class:n.CardContainer},e("div",{class:n.StatusContainer},e("p",{class:n.SubduedRegularText},d),u&&((t,i)=>{const o="nextPayout"===t?n.SuccessBadge:"payoutToday"===t?n.PrimaryBadge:n.DangerBadge,r=a.formatMessage({id:"badgeText",defaultMessage:i},{badgeText:t});return e("sl-badge",{pill:!0,class:o},r)})(r.badgeStatus,l.statusBadgeText)),e("h1",{class:n.MainCurrency},r.balance),"PAYPAL"===r.payoutType?e("div",{class:n.PaypalDetailsContainer},e("span",{class:n.PaypalEmail},r.paypalEmailAddress),e(Ze,null)):e("div",{class:n.AccountDetailsContainer},e("span",null,r.cardNumberPreview?`${l.accountText} ${r.cardNumberPreview}`:l.payoutMissingInformationText))))}const tt=class{constructor(e){t(this,e),this.statusBadgeText="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed}}",this.thresholdPayoutText="Next payout occurs when balance is {thresholdBalance}",this.accountText="Account",this.payoutMissingInformationText="Missing banking information, go to Impact.com to resolve.",this.stateController="{}",s(this)}disconnectedCallback(){}getTextProps(){return{...T(this)}}render(){const t=x()?function(e){return P({states:{loading:!1,error:!1,thresholdBalance:"$50",belowPayoutThreshold:!1,mainCurrency:{currencyText:"USD",amountText:"100.00"},badgeStatus:"nextPayout",payoutType:"BANK_TRANSFER",nextPayoutDate:"March 14, 2024",paypalEmailAddress:"joesmith@example.com",otherCurrencies:!1,hasW9Pending:!1,hasDatePending:!0,cardNumberPreview:"XX2381",balance:"20.00 USD"},text:e.getTextProps()},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e){var t,i,o,n,r,l,s,d,u;const{data:c,loading:m}=b(ee),p=null===(i=null===(t=null==c?void 0:c.user)||void 0===t?void 0:t.impactConnection)||void 0===i?void 0:i.publisher,h=function(t){var i;const o=H.DateTime.now().day;return"1"===t?1===o?H.DateTime.now().toFormat("LLL dd, yyyy"):H.DateTime.now().plus({month:1}).startOf("month").toFormat("LLL dd, yyyy"):"15"===t?o<=15?H.DateTime.now().plus({day:15-o}).toFormat("LLL dd, yyyy"):H.DateTime.now().plus({month:1}).startOf("month").plus({day:14}).toFormat("LLL dd, yyyy"):void a.formatMessage({id:"nextPayoutBalance",defaultMessage:e.thresholdPayoutText},{thresholdBalance:null===(i=null==p?void 0:p.withdrawalSettings)||void 0===i?void 0:i.paymentThreshold})}(null===(o=null==p?void 0:p.withdrawalSettings)||void 0===o?void 0:o.paymentDay),v=H.DateTime.now().toFormat("LLL dd, yyyy")===h;return{states:{loading:m,thresholdBalance:B(p),belowPayoutThreshold:M(p),balance:null===(n=null==p?void 0:p.payoutsAccount)||void 0===n?void 0:n.balance,badgeStatus:"FIXED_DAY"!==(null===(r=null==p?void 0:p.withdrawalSettings)||void 0===r?void 0:r.paymentSchedulingType)?"thresholdPayout":v?"payoutToday":"nextPayout",payoutType:null===(l=null==p?void 0:p.withdrawalSettings)||void 0===l?void 0:l.paymentMethod,error:null===(s=null==p?void 0:p.payoutsAccount)||void 0===s?void 0:s.hold,paypalEmailAddress:null===(d=null==p?void 0:p.withdrawalSettings)||void 0===d?void 0:d.paypalEmailAddress,cardNumberPreview:null===(u=null==p?void 0:p.withdrawalSettings)||void 0===u?void 0:u.bankAccountNumber,nextPayoutDate:h},text:e.getTextProps()}}(this);return e(i,null,e(et,{text:t.text,states:t.states}))}},it=m.gql`
71
- query getTenantSettings {
72
- tenantSettings {
73
- enforceUsTaxCompliance
74
- }
75
- }
76
- `;function ot(e,t){if(e)return new Intl.DisplayNames([(null==t?void 0:t.replace("_","-"))||"en-US"],{type:"region"}).of([e])}function at(e){var t;if(!e)return"";const i=e.replace("_","");return null===(t=[...E,...q].find((e=>e.regionCode===i)))||void 0===t?void 0:t.displayName}function nt(e){var t;const i=[...E,...q];if(null==e?void 0:e.indirectTaxRegion){const o=e.indirectTaxRegion.replace("_",""),a=null===(t=i.find((e=>e.regionCode===o)))||void 0===t?void 0:t.taxType;if(a)return a}return(null==e?void 0:e.withholdingTaxCountryCode)?"VAT":(null==e?void 0:e.indirectTaxCountryCode)&&$[e.indirectTaxCountryCode]||"Indirect Tax"}const rt=class{constructor(e){t(this,e),this.statusTextActive="Active",this.statusTextNotActive="Invalid Tax Form",this.statusTextNotVerified="Not Verified",this.statusTextRequired="Required",this.requiredTaxForm="Your payouts are on hold until you submit a {taxFormType} tax form.",this.badgeTextSubmittedOn="Submitted on {dateSubmitted}.",this.badgeTextSubmittedOnW8="Submitted on {dateSubmitted}. Valid for three years after submission.",this.badgeTextAwaitingReview="Awaiting review. Submitted on {dateSubmitted}.",this.taxAlertHeaderNotActiveW9="Your W-9 tax form has personal information that doesn’t match your profile",this.taxAlertHeaderNotActiveW8="{documentType} tax form is invalid",this.taxAlertNotActiveMessageW9="Please resubmit a new {documentType} form.",this.taxAlertNotActiveMessageW8="Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.",this.invalidForm="Make sure your information is correct and submit new form.",this.bankingInformationSectionHeader="Payout information",this.taxDocumentSectionHeader="Tax documents",this.taxDocumentSectionSubHeader="{documentType} tax form",this.taxDocumentSectionSubHeaderNoDocument="Tax form",this.indirectTaxInfoSectionHeader="Indirect tax",this.indirectTaxInfoCanada="Registered in {province}, {country}",this.indirectTaxInfoOtherCountry="Registered in {country}",this.indirectTaxInfoSpain="Registered in {country}, {subRegion}",this.indirectTaxTooltipSupport="To make changes to your indirect tax information, please contact our {supportLink}.",this.indirectTaxDetails="{indirectTaxType} number: {indirectTaxNumber}",this.newFormButton="Submit new tax form",this.editPaymentInformationButton="Edit payout information",this.notRegisteredForTax="Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.",this.qstNumber="QST number: {qstNumber}",this.subRegionTaxNumber="Income tax number: {subRegionTaxNumber}",this.statusBadgeText="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }",this.thresholdPayoutText="Next payout occurs when balance is {thresholdBalance}",this.accountText="Account",this.payoutHoldAlertHeader="Your payout is on hold",this.payoutHoldAlertDescription="Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.",this.payoutMissingInformationText="Missing banking information, go to Impact.com to resolve.",this.verificationRequiredHeader="Verify your identity",this.verificationRequiredDescription="Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.",this.verificationRequiredInternalHeader="Identity verification in progress",this.verificationRequiredInternalDescription="Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.",this.verificationReviewInternalHeader="Identity verification under review",this.verificationReviewInternalDescription="Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.",this.verificationFailedInternalHeader="Identity verification unsuccessful",this.verificationFailedInternalDescription="Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.",this.verificationRequiredButtonText="Start Verification",this.w9RequiredHeader="Your next payout is on hold",this.w9RequiredDescription="You have surpassed the $2000 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.",this.accountReviewHeader="Your account is under review",this.accountReviewDescription="This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.",this.balanceUnderThresholdHeader="Your balance is under the minimum payout",this.balanceUnderThresholdDescription="Your total balance is under {minPayoutAmount}, the minimum required for payout.",this.paymentHoldOnChangeHeader="We are reviewing your new payout settings",this.paymentHoldOnChangeDescription="Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.",this.beneficiaryNameInvalidHeader="Your payment information does not match your tax form",this.beneficiaryNameInvalidDescription="The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",this.beneficiaryNameMismatchHeader="Your payment information does not match your tax form",this.beneficiaryNameMismatchDescription="The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",this.bankTaxNameMismatchHeader="Your payment information does not match your tax form",this.bankTaxNameMismatchDescription="The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",this.withdrawalSettingsInvalidHeader="Your payment information is incomplete or includes invalid characters",this.withdrawalSettingsInvalidDescription="There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.",this.paymentReturnedHeader="Payout unsuccessful",this.paymentReturnedDescription="Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.",this.termsAndConditions="Terms and Conditions",this.w9RequiredButtonText="Submit W-9",this.generalErrorTitle="There was a problem submitting your information",this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.",this.payoutFromImpact="Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.",this.loadingErrorAlertHeader="There was a problem loading your form",this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.",this.invoiceColumnTitle="Invoice",this.dateColumnTitle="Date",this.earningsColumnTitle="Earnings",this.indirectTaxColumnTitle="Indirect tax",this.earningsAfterTaxColumnTitle="Earnings after tax",this.invoiceDescription="View and download your invoices to report your earnings and stay tax compliant.",this.invoicePrevLabel="Prev",this.invoiceMoreLabel="Next",this.invoiceHeader="Invoices",this.invoiceEmptyStateHeader="View your invoice details",this.invoiceEmptyStateText="Refer a friend to view the status of your invoices and rewards earned",this.replaceTaxFormModalHeader="Replace existing tax form",this.replaceTaxFormModalBodyText="Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.",this.supportLink="support team",this.cancelButton="Cancel",this.stateController="{}",s(this)}disconnectedCallback(){}getTextProps(){const e=T(this);return{...e,error:{generalDescription:e.generalErrorDescription,generalTitle:e.generalErrorTitle,loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription}}}render(){const t=x()?function(t){return P({states:{dateSubmitted:"today",documentType:"W9",documentTypeString:"W-9",status:"ACTIVE",country:"United States",indirectTaxNumber:"55555555",indirectTaxType:"Indirect Tax",noFormNeeded:!1,disabled:!1,loading:!1,showNewFormDialog:!1,hasHold:!1,subRegion:"CA",subRegionTaxNumber:void 0,qstNumber:void 0,isBusinessEntity:!1,province:void 0,notRegistered:!0,loadingError:!1,payoutStatus:"DONE",veriffLoading:!1,canEditPayoutInfo:!0},callbacks:{onClick:()=>console.debug("check step"),onEditPayoutInfo:()=>console.debug("payout info"),onNewFormCancel:()=>console.log("hide"),onNewFormClick:()=>console.log("show"),onVerifyClick:()=>console.log("verify")},text:t.getTextProps(),slots:{payoutDetailsCardSlot:e("sqm-payout-details-card",{demoData:{states:{badgeStatus:"nextPayout"}}})}},t.demoData||t.stateController||{},{arrayMerge:(e,t)=>t})}(this):(e=>{var t,i,o,a,n,s,d,u,c,m,p,v,y;const f=C(te),g=C(J),[x,w]=r(!1),{render:S,loading:I}=le(),{data:P}=k(it,{}),T=h();l((()=>{g({}),window.location.hash&&(g({overrideNextStep:"/dashboard",overrideBackStep:"/dashboard",hideSteps:!0}),f(`/${window.location.hash.replace("#","")}`))}),[]);const{data:A,loading:D,errors:q,refetch:R}=b(ee),F=null===(i=null===(t=null==A?void 0:A.user)||void 0===t?void 0:t.impactConnection)||void 0===i?void 0:i.publisher,L=null==F?void 0:F.requiredTaxDocumentType,U=null===(o=null==F?void 0:F.currentTaxDocument)||void 0===o?void 0:o.dateCreated,_=U?H.DateTime.fromMillis(U).toFormat("LLL dd, yyyy"):void 0,j=null===(a=E.find((e=>{var t;return e.regionCode===(null===(t=null==F?void 0:F.taxInformation)||void 0===t?void 0:t.indirectTaxRegion)})))||void 0===a?void 0:a.displayName,O=A?se(A):null;l((()=>{const e=()=>R();return window.addEventListener(de,e),()=>{window.removeEventListener(de,e)}}),[]);const W=null===(n=null==P?void 0:P.tenantSettings)||void 0===n?void 0:n.enforceUsTaxCompliance;return{states:{dateSubmitted:_,documentType:L,canEditPayoutInfo:null==F?void 0:F.brandedSignup,documentTypeString:N(L),status:null===(s=null==F?void 0:F.currentTaxDocument)||void 0===s?void 0:s.status,subRegion:at(null===(d=null==F?void 0:F.taxInformation)||void 0===d?void 0:d.indirectTaxRegion),subRegionTaxNumber:null===(u=null==F?void 0:F.taxInformation)||void 0===u?void 0:u.withholdingTaxId,qstNumber:null===(c=null==F?void 0:F.taxInformation)||void 0===c?void 0:c.additionalTaxId,indirectTaxType:nt(null==F?void 0:F.taxInformation),indirectTaxNumber:null===(m=null==F?void 0:F.taxInformation)||void 0===m?void 0:m.indirectTaxId,isBusinessEntity:"W8BENE"===(null==F?void 0:F.requiredTaxDocumentType),province:j,country:ot(null===(p=null==F?void 0:F.taxInformation)||void 0===p?void 0:p.indirectTaxCountryCode,T),notRegistered:!(null===(v=null==F?void 0:F.taxInformation)||void 0===v?void 0:v.indirectTaxId),noFormNeeded:!L,disabled:D,loading:D,loadingError:!!(null==q?void 0:q.message),showNewFormDialog:x,hasHold:!!(null===(y=null==F?void 0:F.payoutsAccount)||void 0===y?void 0:y.hold),payoutStatus:O,belowPayoutThreshold:M(F),minPayoutAmount:B(F),veriffLoading:I,enforceUsTaxComplianceOption:W},callbacks:{onClick:()=>w(!0),onVerifyClick:()=>S(),onEditPayoutInfo:()=>{g({overrideNextStep:"/dashboard",overrideBackStep:"/dashboard",hideSteps:!0}),f("/4")},onNewFormCancel:()=>w(!1),onNewFormClick:()=>{w(!1),g({overrideNextStep:"/dashboard",overrideBackStep:"/dashboard",hideSteps:!0}),f("/3")}},text:e.getTextProps()}})(this);return e(i,null,e(G,{callbacks:t.callbacks,states:t.states,text:t.text,slots:{payoutDetailsCardSlot:e("sqm-payout-details-card",Object.assign({},this.getTextProps()))}}))}},lt=m.gql`
77
- query getIndirectTaxCountryCode {
78
- tenantSettings {
79
- impactBrandCountryCode
80
- impactBrandIndirectTaxCountryCode
81
- }
82
- }
83
- `;const st=class{constructor(e){t(this,e),this.ignored=!0,this.firstName="First name",this.lastName="Last name",this.email="Email",this.country="Country",this.phoneNumber="Phone number",this.address="Address",this.city="City",this.state="State",this.province="Province",this.region="Region",this.postalCode="Postal code",this.currency="Currency",this.formStep="Step {step} of {count}",this.personalInformation="Personal Information",this.continueButton="Continue",this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com",this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.",this.generalErrorTitle="There was a problem submitting your information",this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.",this.allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information",this.termsAndConditionsLabel="terms and conditions",this.termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html",this.searchForCountryText="Search for country..",this.searchForCurrencyText="Search for currency..",this.fieldRequiredError="{fieldName} is required",this.fieldInvalidError="{fieldName} is invalid",this.invalidCharacterError="{fieldName} includes characters that aren't supported.",this.loadingErrorAlertHeader="There was a problem loading your form",this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.",this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.",this.supportLink="support team",s(this)}disconnectedCallback(){}getTextProps(){const e=T(this);return{...e,error:{fieldRequiredError:e.fieldRequiredError,fieldInvalidError:e.fieldInvalidError,generalTitle:e.generalErrorTitle,generalDescription:e.generalErrorDescription,loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription,invalidCharacterError:e.invalidCharacterError}}}render(){const t=x()?function(e){const t=C(te);return P({setStep:t,onSubmit:async()=>{t("/2")},onRadioClick:()=>{},text:e.getTextProps(),refs:{formRef:{current:null},currencyRef:{current:null},phoneCountryRef:{current:null}},data:{currencies:[{currencyCode:"CAD",displayName:"CAD"}],allCurrencies:[{currencyCode:"CAD",displayName:"CAD"}],countries:[{countryCode:"CA",displayName:"Canada"}],phoneCountries:[{countryCode:"CA",displayName:"Canada"}],allCountries:[{countryCode:"CA",displayName:"Canada"}]},callbacks:{setCurrencySearch:e=>console.log(e),setCountrySearch:e=>console.log(e),setPhoneCountrySearch:e=>console.log(e),onFormChange:()=>{}},states:{step:"1",disabled:!1,loading:!1,isPartner:!1,isUser:!1,isPartnerLegacy:!1,isUserLegacy:!1,loadingError:!1,formState:{errors:{email:!1,firstName:!1,lastName:!1,countryCode:!1,currency:!1}}}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this):function(e){var t,i,o,a,s,d,u,m,p,h,x,C,w,S,P,T,A;const N=n(void 0),q=n(void 0),E=n(null),B=f(J),M=f(Z),[U,_]=y(te),[j,O]=y(oe),W=v(),[z,{loading:H}]=g(ue),[Y,{loading:V}]=g(ce),{data:$}=k(lt,{}),{data:G,loading:K,refetch:X,errors:Q}=b(ee),ae=f(ie),re=c((()=>[...ae||[]].sort(((e,t)=>e.displayName.localeCompare(t.displayName)))),[ae]),[le,se]=r(""),[de,me]=r(""),[pe,he]=r(M||[]),[ve,ye]=r(M||[]),[fe,be]=r(""),[ge,xe]=r(re||[]),[Ce,we]=r({});l((()=>{window.location.hash=""}),[]),l((()=>{var e,t,i,o,a,n,r,l,s,d,u,c,m,p;const h=null==G?void 0:G.user;if(!h||"/1"!==U)return;if(R(j))return;const v=(null===(e=h.managedIdentity)||void 0===e?void 0:e.emailVerified)?h.managedIdentity.email:h.email;(null===(t=h.impactConnection)||void 0===t?void 0:t.publisher)&&(null===(i=h.impactConnection)||void 0===i?void 0:i.user)?O({email:v,firstName:h.impactConnection.user.firstName,lastName:h.impactConnection.user.lastName,countryCode:h.impactConnection.publisher.countryCode,currency:h.impactConnection.publisher.currency,phoneNumberCountryCode:"0000000"===h.impactConnection.publisher.phoneNumber?null:h.impactConnection.publisher.phoneNumberCountryCode,phoneNumber:"0000000"===h.impactConnection.publisher.phoneNumber?null:h.impactConnection.publisher.phoneNumber,address:h.impactConnection.publisher.billingAddress,city:h.impactConnection.publisher.billingCity,state:h.impactConnection.publisher.billingState,postalCode:h.impactConnection.publisher.billingPostalCode}):(null==j?void 0:j.email)||O({email:v,firstName:(null===(a=null===(o=h.impactConnection)||void 0===o?void 0:o.user)||void 0===a?void 0:a.firstName)||h.firstName,lastName:(null===(r=null===(n=h.impactConnection)||void 0===n?void 0:n.user)||void 0===r?void 0:r.lastName)||h.lastName,countryCode:h.countryCode||"US",currency:null===(l=h.customFields)||void 0===l?void 0:l.currency,phoneNumberCountryCode:(null===(s=h.customFields)||void 0===s?void 0:s.phoneNumberCountryCode)||"US",phoneNumber:null===(d=h.customFields)||void 0===d?void 0:d.phoneNumber,address:null===(u=h.customFields)||void 0===u?void 0:u.address,city:null===(c=h.customFields)||void 0===c?void 0:c.city,state:null===(m=h.customFields)||void 0===m?void 0:m.state,postalCode:null===(p=h.customFields)||void 0===p?void 0:p.postalCode})}),[G,U,j]),l((()=>{(null==M?void 0:M.length)&&(""===le.trim()?he(M||[]):he(M.filter((e=>e.displayName.toLowerCase().includes(le.toLowerCase())))||[]))}),[le,M]),l((()=>{(null==M?void 0:M.length)&&(""===de.trim()?ye(M||[]):ye(M.filter((e=>e.displayName.toLowerCase().includes(de.toLowerCase())))||[]))}),[de,M]),l((()=>{(null==re?void 0:re.length)&&(""===fe.trim()?xe(re||[]):xe(re.filter((e=>e.currencyCode.toLowerCase().includes(fe.toLowerCase())))||[]))}),[fe,re]);const Se=null===(t=null==$?void 0:$.tenantSettings)||void 0===t?void 0:t.impactBrandIndirectTaxCountryCode,ke=!!Se,Ie=["ES","AU","US","CA"].includes(j.countryCode),Pe=Ie?L[null==j?void 0:j.countryCode]:{};return{setStep:_,onSubmit:async function(t){let i=t.target.getFormControls(),o={},a={};if(null==i||i.forEach((t=>{if(!t.name)return;const i=t.name,n=t.value;if("function"==typeof t.validationError){const e=(0,t.validationError)({control:t,key:i,value:n,formData:o});e&&I.set(a,i,e)}t.required&&(!n||"string"==typeof n&&""===n.trim())&&I.set(a,i,e.fieldRequiredError),I.set(o,i,n)})),Object.keys(a).length)return void we(a);const{allowBankingCollection:n,...r}=o,l=F(r.phoneNumberCountryCode,r.phoneNumber);O({...j,firstName:r.firstName,lastName:r.lastName,phoneNumberCountryCode:r.phoneNumberCountryCode,phoneNumber:l,countryCode:r.countryCode,address:r.address,city:r.city,state:r.state,postalCode:r.postalCode,currency:r.currency});const s=function(e){return!ke||"US"===e.countryCode||!(!ke||e.countryCode===Se)}(r);if(s)try{const{resultPublisher:e,hasValidCurrentDocument:t}=await async function(e){var t,i,o,a,n,r;const l={user:{id:W.id,accountId:W.accountId},firstName:e.firstName,lastName:e.lastName,countryCode:e.countryCode,currency:e.currency,address:e.address,city:e.city,state:e.state,postalCode:e.postalCode,phoneNumber:F(e.phoneNumberCountryCode,e.phoneNumber),phoneNumberCountryCode:e.phoneNumberCountryCode},s=null==G?void 0:G.user;let d,u=null;if("STARTED"===(null===(t=null==s?void 0:s.impactConnection)||void 0===t?void 0:t.connectionStatus)?(u=await Y({vars:l}),d=null===(i=u)||void 0===i?void 0:i.completeImpactConnection):(u=await z({vars:l}),d=null===(o=u)||void 0===o?void 0:o.createImpactConnection),!u||(null===(a=u)||void 0===a?void 0:a.message))throw new Error;if(!(null==d?void 0:d.success))throw console.error("Failed to create Impact connection: ",null==d?void 0:d.validationErrors),new Error;await X();const c=null===(r=null===(n=null==d?void 0:d.user)||void 0===n?void 0:n.impactConnection)||void 0===r?void 0:r.publisher,m=D(null==c?void 0:c.requiredTaxDocumentType)&&(null==c?void 0:c.currentTaxDocument);return window.dispatchEvent(new Event(ne)),{resultPublisher:c,hasValidCurrentDocument:m}}({...o,phoneNumber:l});return void _((null==e?void 0:e.requiredTaxDocumentType)&&!t?"/3":(null==e?void 0:e.brandedSignup)?"/4":"/dashboard")}catch(e){return void we({general:!0})}_(B.overrideNextStep||s?"/3":"/2")},text:e.getTextProps(),callbacks:{setCurrencySearch:be,setCountrySearch:se,setPhoneCountrySearch:me,onFormChange:(e,t)=>{var i,o;const a=null===(o=null===(i=t.detail)||void 0===i?void 0:i.item)||void 0===o?void 0:o.__value;a||console.error("Could not detect select change"),O({...j,[e]:a}),"countryCode"===e&&(q.current.value=a,N.current.value="")}},refs:{formRef:E,currencyRef:N,phoneCountryRef:q},data:{currencies:ge,countries:pe,phoneCountries:ve,allCurrencies:re,allCountries:M,regionLabelEnum:null==Pe?void 0:Pe.labelEnum,regions:(null==Pe?void 0:Pe.regions)||[],partnerData:null===(o=null===(i=null==G?void 0:G.user)||void 0===i?void 0:i.impactConnection)||void 0===o?void 0:o.publisher,userData:null===(s=null===(a=null==G?void 0:G.user)||void 0===a?void 0:a.impactConnection)||void 0===s?void 0:s.user},states:{step:null==U?void 0:U.replace("/",""),hideState:!Ie,hideSteps:!!B.hideSteps,disabled:K||H||V,loadingError:!!(null==Q?void 0:Q.message),loading:K||H||V,isPartner:!!(null===(u=null===(d=null==G?void 0:G.user)||void 0===d?void 0:d.impactConnection)||void 0===u?void 0:u.publisher),isUser:!!(null===(p=null===(m=null==G?void 0:G.user)||void 0===m?void 0:m.impactConnection)||void 0===p?void 0:p.user),isUserLegacy:!!(null===(x=null===(h=null==G?void 0:G.user)||void 0===h?void 0:h.impactConnection)||void 0===x?void 0:x.user)&&"STARTED"!==(null===(w=null===(C=null==G?void 0:G.user)||void 0===C?void 0:C.impactConnection)||void 0===w?void 0:w.connectionStatus),isPartnerLegacy:!!(null===(P=null===(S=null==G?void 0:G.user)||void 0===S?void 0:S.impactConnection)||void 0===P?void 0:P.publisher)&&"STARTED"!==(null===(A=null===(T=null==G?void 0:G.user)||void 0===T?void 0:T.impactConnection)||void 0===A?void 0:A.connectionStatus),formState:{...j,errors:Ce}}}}(this);return e(K,{data:t.data,states:t.states,callbacks:{...t.callbacks,onSubmit:t.onSubmit},text:t.text,refs:t.refs})}};export{we as sqm_banking_info_form,Fe as sqm_docusign_form,Oe as sqm_indirect_tax_form,Ye as sqm_invoice_table,Ke as sqm_invoice_table_data_column,Xe as sqm_invoice_table_date_column,Je as sqm_invoice_table_download_column,tt as sqm_payout_details_card,rt as sqm_tax_and_cash_dashboard,st as sqm_user_info_form}
@@ -1 +0,0 @@
1
- System.register(["./p-641f968d.system.js","./p-b6504987.system.js","./p-6333265f.system.js","./p-8452837a.system.js"],(function(t){"use strict";var e,n,r,o,i,s;return{setters:[function(t){e=t.r;n=t.h;r=t.c},function(t){o=t.n},function(t){i=t.l},function(t){s=t.l}],execute:function(){var l=t("sqm_invoice_table_data_cell",function(){function t(t){e(this,t);this.ignored=true;o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return this.data};return t}());var a=t("sqm_invoice_table_date_cell",function(){function t(t){e(this,t);this.ignored=true;this.locale="en";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t,e;var n=!this.date?"-":(e=(t=s.DateTime.fromMillis(this.date))===null||t===void 0?void 0:t.setLocale(i(this.locale)))===null||e===void 0?void 0:e.toLocaleString(s.DateTime.DATE_MED);return n};return t}());var c=t("sqm_invoice_table_download_cell",function(){function t(t){e(this,t);this.ignored=true;o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t="svg:hover, svg:hover * {\n cursor: pointer;\n }";return n(r,null,n("style",null,t),!!this.downloadUrl&&n("a",{href:this.downloadUrl,target:"_blank"},n("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z",fill:"var(--sqm-text-subdued)"}),n("path",{d:"M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z",fill:"var(--sqm-text-subdued)"}))))};return t}());var d=t("sqm_table_cell",function(){function t(t){e(this,t);this.colspan=1;this.padding="15px 10px"}t.prototype.render=function(){return n(r,{style:{display:"contents"}},n("td",{colSpan:this.colspan,style:{padding:this.padding}},n("slot",null)))};return t}());var u=t("sqm_table_row",function(){function t(t){e(this,t);this.border="var(--sqm-border-thickness, 1px) solid var(--sqm-border-color, #eaeaea)"}t.prototype.render=function(){return n(r,{style:{display:"contents"}},n("tr",{style:{border:this.border}},n("slot",null)))};return t}())}}}));
@@ -1 +0,0 @@
1
- import{h as e}from"./p-083180bf.js";import{i as a}from"./p-5b0de730.js";import{c as l}from"./p-cef45012.js";import{T as t}from"./p-c813ec64.js";function s(s){var r,i,o,n,p;const{states:d,callbacks:m}=s,{text:u,formState:b}=d,{errors:c,error:v}=b,x=l({Container:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-xxx-large)",padding:"var(--sl-spacing-xxx-large)"},FormStyle:{width:"100%",minWidth:"700px","& >*:not(:last-child)":{"margin-bottom":"32px"},"@media screen and (max-width: 1100px)":{minWidth:"100%"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"32px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"32px"}},NameInputStyle:{width:"50%","@media screen and (max-width: 860px)":{width:"100%","margin-right":"0"}},NameInputContainer:{display:"flex",gap:"32px",width:"100%","@media screen and (max-width: 860px)":{flexDirection:"column"}}}),f=x.toString(),g=(null===(r=d.user)||void 0===r?void 0:r.countryCode)?a.formatDisplayName(null===(i=d.user)||void 0===i?void 0:i.countryCode,{type:"region"}):"";return e("div",{class:x.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},f),e(t,Object.assign({},{type:"h1"}),u.editProfileHeader),e(t,Object.assign({},{type:"h2"}),u.editProfileSubHeader),e("form",{class:x.classes.FormStyle,onSubmit:m.onSubmit},d.success&&e("sqm-form-message",{class:x.classes.Success,exportparts:"successalert-icon"},e("div",{part:"successalert-text"},u.submissionSuccessText)),v&&e("sqm-form-message",{class:x.classes.Error,type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},v)),e("div",{class:x.classes.NameInputContainer},e("sl-input",Object.assign({class:x.classes.NameInputStyle,exportparts:"label: input-label, base: input-base",value:null===(o=d.user)||void 0===o?void 0:o.firstName,onInput:m.onChange,label:u.firstnametext,disabled:d.loading},(null==c?void 0:c.firstName)&&"valid"!==(null==c?void 0:c.firstName.status)?{class:"ErrorStyles",helpText:u.fieldEmptyText}:[],{id:"firstName",name:"firstName",error:(null==c?void 0:c.firstName)&&"valid"!==(null==c?void 0:c.firstName.status)?null==c?void 0:c.firstName.message:void 0})),e("sl-input",Object.assign({class:x.classes.NameInputStyle,exportparts:"label: input-label, base: input-base",value:null===(n=d.user)||void 0===n?void 0:n.lastName,onInput:m.onChange,label:u.lastnametext,disabled:d.loading,id:"lastName",name:"lastName"},(null==c?void 0:c.lastName)&&"valid"!==(null==c?void 0:c.lastName.status)?{class:"ErrorStyles",helpText:u.fieldEmptyText}:[],{error:(null==c?void 0:c.lastName)&&"valid"!==(null==c?void 0:c.lastName.status)?null==c?void 0:c.lastName.message:void 0}))),e("sl-input",{label:u.emailtext,value:null===(p=d.user)||void 0===p?void 0:p.email,exportparts:"label: input-label, base: input-base",disabled:!0}),d.showCountry&&e("sl-input",{label:u.countrytext,value:g,exportparts:"label: input-label, base: input-base",disabled:!0}),e("sl-button",{type:"primary",exportparts:"base: primarybutton-base",loading:d.loading,disabled:d.submitDisabled,onClick:e=>{m.onSubmit(e)},submit:!0},u.submitChangeButtonText)))}export{s as P}
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var a,e=1,t=arguments.length;e<t;e++){a=arguments[e];for(var s in a)if(Object.prototype.hasOwnProperty.call(a,s))r[s]=a[s]}return r};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js"],(function(r){"use strict";var a,e,t,s,n,i,o;return{setters:[function(r){a=r.h},function(r){e=r.c},function(r){t=r.A;s=r.g;n=r.a;i=r.b;o=r.E}],execute:function(){r("E",c);var l={Wrapper:__assign(__assign({},t),s({direction:"column",size:"var(--sl-spacing-small)"})),Column:n,ForgotButtonContainer:{display:"inline",cursor:"pointer","font-size":"13px","font-weight":"600",color:"#AAAAAA",margin:"0"},ButtonsContainer:i,ErrorStyle:o};var d="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\na svg {\n margin: 0 auto;\n display: block;\n}\n";var p=e(l);var u=p.toString();function c(r){var e,t,s,n;var i=r.states,o=r.callbacks,l=r.content;var c=function(r,e,t){return r==="FRAUD"?a("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},a("b",null,t),a("div",{part:"erroralert-text"},e)):a("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},a("div",{part:"erroralert-text"},r))};var m=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return a("div",{part:"sqm-base",class:p.classes.Wrapper,style:{border:""+(l.hideBorder?"none":"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)"),backgroundColor:l.backgroundColor,"padding-top":"var(--sl-spacing-"+l.paddingTop+")","padding-right":"var(--sl-spacing-"+l.paddingRight+")","padding-bottom":"var(--sl-spacing-"+l.paddingBottom+")","padding-left":"var(--sl-spacing-"+l.paddingLeft+")"}},a("style",{type:"text/css"},d,u),l.topSlot,a("sl-form",{class:p.classes.Column,"onSl-submit":o.submit},r.states.error&&c(r.states.error,r.content.fraudErrorMessage,r.content.fraudErrorMessageTitle),l.includeName&&a("sl-input",{exportparts:"label: input-label, base: input-base",type:"name",name:"/firstName",label:l.firstNameLabel||"First Name",disabled:i.loading}),l.includeName&&a("sl-input",{exportparts:"label: input-label, base: input-base",type:"name",name:"/lastName",label:l.lastNameLabel||"Last Name",disabled:i.loading}),a("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"email",name:"/email",label:l.emailLabel||"Email",disabled:i.loading,required:true,validationError:function(r){var a=r.value;if(!a){return l.requiredFieldErrorMessage}if(!a.match(m)){return l.invalidEmailErrorMessage}}},((t=(e=i.registrationFormState)===null||e===void 0?void 0:e.validationErrors)===null||t===void 0?void 0:t.email)?{class:p.classes.ErrorStyle,helpText:((n=(s=i.registrationFormState)===null||s===void 0?void 0:s.validationErrors)===null||n===void 0?void 0:n.email)||l.requiredFieldErrorMessage}:[])),a("div",{class:p.classes.ButtonsContainer,style:{paddingTop:""+(l.includeName?"var(--sl-spacing-medium)":"0")}},a("sl-button",{submit:true,loading:i.loading,exportparts:"base: primarybutton-base",type:"primary"},l.registerLabel||"Registration"))),l.bottomSlot)}}}}));
@@ -1 +0,0 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(t,e){if(Object.defineProperty){Object.defineProperty(t,"raw",{value:e})}else{t.raw=e}return t};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,a=arguments.length;n<a;n++){e=arguments[n];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,n,a){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function i(t){try{l(a.next(t))}catch(t){o(t)}}function s(t){try{l(a["throw"](t))}catch(t){o(t)}}function l(t){t.done?n(t.value):r(t.value).then(i,s)}l((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,r,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return l([t,e])}}function l(i){if(a)throw new TypeError("Generator is already executing.");while(n)try{if(a=1,r&&(o=i[0]&2?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;if(r=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;r=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){n.label=i[1];break}if(i[0]===6&&n.label<o[1]){n.label=o[1];o=i;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(i);break}if(o[2])n.ops.pop();n.trys.pop();continue}i=e.call(t,n)}catch(t){i=[6,t];r=0}finally{a=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-641f968d.system.js","./p-d533ff7b.system.js","./p-b6504987.system.js","./p-ec3e44c8.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-956f9479.system.js","./p-8a6494c7.system.js","./p-97b8073f.system.js"],(function(t){"use strict";var e,n,a,r,o,i,s,l,c,u,d,p,f,v,g,h,y,m,x,b,C,T;return{setters:[function(t){e=t.h;n=t.F;a=t.r},function(t){r=t.i},function(t){o=t.n;i=t.k},function(t){s=t.F;l=t.i;c=t.d;u=t.H;d=t.J;p=t.B;f=t.w;v=t.$},function(t){g=t.c},function(t){h=t.g},function(t){y=t.c},function(t){m=t.R;x=t.a;b=t.S;C=t.u},function(){},function(t){T=t.C}],execute:function(){var _={Container:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"var(--sl-spacing-small)",width:"100%"},SkeletonContainer:{width:"40px"},TextContainer:{display:"flex",gap:"var(--sl-spacing-xx-small)"}};var w=y(_);var k=w.toString();function S(t){var a=t.states,r=t.callbacks,o=t.text,i=t.buttonType;var s=r.onNext,l=r.onPrev;var c=a.currentPage,u=a.totalPages,d=a.loading;if(u===1)return e(n,null);return e("span",{class:w.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},k),e("sl-button",{exportparts:"base: "+i+"button-base",onClick:l,part:"sqm-pagination-button",circle:true,disabled:c===1},e("sl-icon",{name:"chevron-left",label:"Previous Page"})),!d?e(n,null,e("div",{class:w.classes.TextContainer},o.paginationText)):e("div",{class:w.classes.SkeletonContainer},e("sl-skeleton",{height:"16px",width:"50%"})),e("sl-button",{exportparts:"base: "+i+"button-base",onClick:s,part:"sqm-pagination-button",circle:true,disabled:c===u},e("sl-icon",{name:"chevron-right",label:"Previous Page"})))}function P(t){var e;var n=s(m);var a=n.states.currentPage+1;var o=(e=n.states)===null||e===void 0?void 0:e.pageCount;return{states:{currentPage:a,totalPages:o,loading:n.states.loading},callbacks:{onNext:function(){var t,e;return(t=n.callbacks)===null||t===void 0?void 0:t.setCurrentPage(((e=n.states)===null||e===void 0?void 0:e.currentPage)+1)},onPrev:function(){var t,e;return(t=n.callbacks)===null||t===void 0?void 0:t.setCurrentPage(((e=n.states)===null||e===void 0?void 0:e.currentPage)-1)}},text:{paginationText:r.formatMessage({id:"paginationText",defaultMessage:t.paginationText},{currentPage:a,totalPages:o})}}}var j=t("sqm_pagination",function(){function t(t){a(this,t);this.ignored=true;this.paginationText="{currentPage} of {totalPages}";this.buttonType="secondary";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=l()?I(h(this)):P(h(this));return e(S,Object.assign({},t))};return t}());function I(t){var e=i(1),n=e[0],a=e[1];return g({states:{currentPage:n,totalPages:5,loading:false},buttonType:t.buttonType,callbacks:{onNext:function(){return a(n+1)},onPrev:function(){return a(n-1)}},text:{paginationText:r.formatMessage({id:"paginationText",defaultMessage:t.paginationText||"{currentPage} of {totalPages}"},{currentPage:n,totalPages:5})}},t.demoData||{},{arrayMerge:function(t,e){return e}})}var E=c.gql(__makeTemplateObject(["\n query getReferralCode($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"],["\n query getReferralCode($programId: ID) {\n user: viewer {\n ... on User {\n referralCode(programId: $programId)\n }\n }\n }\n"]));var M=c.gql(__makeTemplateObject(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"],["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"]));function O(t){var e,n;var a=t.programId,r=a===void 0?u():a;var o=d();var l=p();var c=s(x);var g=f(E,{programId:r},!(o===null||o===void 0?void 0:o.jwt)||(c===null||c===void 0?void 0:c.referralCode)!==undefined).data;var h=v(M)[0];var y=v(b)[0];var m=(n=(c===null||c===void 0?void 0:c.referralCode)||((e=g===null||g===void 0?void 0:g.user)===null||e===void 0?void 0:e.referralCode))!==null&&n!==void 0?n:"...";var C=i(false),T=C[0],_=C[1];function w(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!c)return[3,2];return[4,y({referralCode:c.referralCode})];case 1:e.sent();c.refresh();e.label=2;case 2:navigator.clipboard.writeText(m);_(true);setTimeout((function(){return _(false)}),t.tooltiplifespan);h({eventMeta:{programId:r,id:o===null||o===void 0?void 0:o.id,accountId:o===null||o===void 0?void 0:o.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:l,shareMedium:"DIRECT"}}});return[2]}}))}))}return __assign(__assign({},t),{onClick:w,open:T,copyString:m,isCopied:c===null||c===void 0?void 0:c.isCopied,showNotificationText:t.showNotificationText&&!!(c===null||c===void 0?void 0:c.singleUse)})}var q=t("sqm_referral_code",function(){function t(t){a(this,t);this.tooltiptext="Copied to Clipboard";this.showNotificationText=false;this.notificationText="You've copied this code before";this.tooltiplifespan=1e3;this.textAlign="left";this.copyButtonLabel="Copy Code";this.buttonStyle="icon";this.buttonType="primary";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=h(this);var n=l()?R(t):O(t);return e(T,Object.assign({},n))};return t}());function R(t){var e=i(false),n=e[0],a=e[1];var r="REFERRALCODE001";return g({copyString:r,tooltiptext:t.tooltiptext,textAlign:t.textAlign,copyButtonLabel:t.copyButtonLabel,buttonStyle:t.buttonStyle,notificationText:t.notificationText,showNotificationText:t.showNotificationText,isCopied:t.showNotificationText,borderColor:t.borderColor,backgroundColor:t.backgroundColor,textColor:t.textColor,borderRadius:t.borderRadius,buttonType:t.buttonType,isUsed:false,rewardStatus:"AVAILABLE",open:n,onClick:function(){navigator.clipboard.writeText(r);a(true);setTimeout((function(){return a(false)}),t.tooltiplifespan)}},t.demoData||{},{arrayMerge:function(t,e){return e}})}function A(t){var n=t.slots,a=t.titleText,r=t.states,o=t.textColor,i=o===void 0?"var(--sqm-text-subdued)":o;var s={Wrapper:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",flexDirection:"column",gap:"var(--sl-spacing-large)",color:i},HeaderContainer:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},ShareCodeContainer:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",flexDirection:"column"},ShareButtonContainer:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",flexDirection:"column"},SkeletonContainer:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-small)",width:"100%"},SkeletonOne:{height:"36px",width:"100%"},TitleText:{fontSize:"var(--sl-font-size-large)",margin:"0"}};var l="\n :host {\n display: block;\n }\n :host([hidden]): {\n display: none;\n }\n ";var c=y(s);var u=c.toString();var d=function(t){if(t.noCodes){return n.empty}if(t.loading){return e("slot",{name:"loading"},e("div",{class:c.classes.SkeletonContainer},e("sl-skeleton",{class:c.classes.SkeletonOne})))}return e("div",{class:c.classes.Wrapper},e("div",{class:c.classes.ShareCodeContainer},n.shareCodes),e("div",{class:c.classes.ShareButtonContainer},n.shareButtons))};return e("div",{class:c.classes.Wrapper,part:"sqm-base"},e("style",{type:"text/css"},l,u),e("div",{class:c.classes.HeaderContainer},e("h2",{class:c.classes.TitleText},a),!r.noCodes&&n.pagination),d(r))}var D=t("sqm_referral_codes",function(){function t(t){a(this,t);this.titleText="Start sharing";this.emptyStateHeaderText="Your new codes and links aren’t ready yet";this.emptyStateDescriptionText="Please contact our program support team to let them know you’re out of codes.";this.emptyStateImageUrl="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=h(this);var n=l()?N(t):C(t);var a={shareButtons:e("slot",{name:"shareButtons"}),shareCodes:e("slot",{name:"shareCodes"}),pagination:e("slot",{name:"pagination"}),empty:e(U,{headerText:this.emptyStateHeaderText,descriptionText:this.emptyStateDescriptionText,imageUrl:this.emptyStateImageUrl})};var r=__assign(__assign({slots:a},n),{loading:n.states.loading,noCodes:n.states.noCodes});return e(A,Object.assign({},r))};return t}());function U(t){var n=t.headerText,a=t.descriptionText,r=t.imageUrl;return e("slot",{name:"empty"},e("sqm-empty",{emptyStateHeader:n,emptyStateText:a,emptyStateImage:r}))}function N(t){return g({titleText:t.titleText,textColor:t.textColor,states:{noCodes:false,loading:false}},t.demoData||{},{arrayMerge:function(t,e){return e}})}}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-641f968d.system.js","./p-b6504987.system.js","./p-ec3e44c8.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-c09ae087.system.js"],(function(t){"use strict";var n,e,s,o,i;return{setters:[function(t){n=t.r;e=t.h},function(t){s=t.n},function(t){o=t.g},function(){},function(){},function(t){i=t.C}],execute:function(){var c=t("sqm_close_button",function(){function t(t){n(this,t);this.color="#000000";s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t;var n=o();var s=n.type==="SquatchJS2"&&((t=n.widgetIdent)===null||t===void 0?void 0:t.engagementMedium)==="POPUP";if(!s)return e("div",{style:{display:"none"}});var c=function(){var t,e;if(n.type==="SquatchJS2"){(e=(t=n.api).close)===null||e===void 0?void 0:e.call(t)}};return e(i,{onClick:c,color:this.color})};return t}())}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-641f968d.system.js"],(function(n){"use strict";var e;return{setters:[function(n){e=n.h}],execute:function(){n("N",i);function i(n,i){var t="\n\n* {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.container {\n background: var(--sqm-portal-background);\n}\n\n.menu-items {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n@keyframes slideIn {\n 0% {\n left: -350px;\n }\n 100% {\n left: 0;\n }\n}\n\n@media screen and (min-width: 800px) {\n :host {\n max-width: 300px;\n }\n .toggler,\n .hamburger {\n user-select: none;\n visibility:hidden;\n }\n .container{\n position: sticky;\n top: 0;\n }\n .menu-items {\n min-width: 290px;\n max-width: 320px;\n box-sizing: border-box;\n padding: 0px 15px;\n }\n .menu-items > :not(:last-child): {\n margin-bottom: 4px;\n }\n}\n@media screen and (max-width: 799px) {\n .toggler {\n border: 2px solid #eee;\n cursor: pointer;\n opacity: 0;\n z-index: 5;\n }\n\n .container {\n position: sticky;\n top: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 60px;\n width: 60px;\n flex-direction: column;\n z-index: 100;\n }\n .menu-items {\n display: none;\n padding: 20px;\n border-right: var(--sqm-border-thickness) solid var(--sqm-border-color);\n padding-top: 60px;\n background: var(--sqm-portal-background); \n width: 100vw;\n height: 100vh;\n position: absolute;\n top: 0;\n right: 0;\n left: 0px;\n margin: 0;\n animation: slideIn 500ms ease-in-out;\n }\n\n .toggler,\n .hamburger {\n visibility: visible !important;\n }\n\n .container {\n display: flex;\n }\n\n .hamburger > .line {\n visibility: visible !important;\n }\n\n\n .toggler,\n .hamburger {\n position: absolute;\n padding: 20px 10px;\n }\n\n .toggler {\n z-index: 100;\n width: 100%;\n height: 100%;\n }\n\n .hamburger {\n z-index: 10;\n width: 75%;\n height: 100%;\n }\n\n .toggler:checked ~ .menu-items {\n display: block;\n }\n\n /***** Turn hamburger into an X *****/\n .toggler:checked ~ .hamburger > .line:nth-child(1) {\n opacity: 0;\n }\n\n .toggler:checked ~ .hamburger > .line:nth-child(2) {\n transform: rotate(45deg) translate(0px, -0.5px);\n }\n\n .toggler:checked ~ .hamburger > .line:nth-child(3) {\n transform: rotate(-45deg) translate(3px, -3.5px);\n }\n\n .toggler:checked ~ .hamburger > .line:nth-child(1),\n .toggler:checked ~ .hamburger > .line:nth-child(2),\n .toggler:checked ~ .hamburger > .line:nth-child(3) {\n width: 75%;\n border-bottom: 3px solid "+n.mobileMenuColor+";\n margin: 0;\n }\n\n .hamburger > .line {\n visibility:hidden;\n z-index: 2;\n height: 4px;\n width: 100%;\n margin-bottom: 3px;\n border-bottom: 5px solid "+n.mobileMenuColor+";\n }\n}\n";return e("div",{class:"container",part:"sqm-base"},e("style",null,t),e("input",Object.assign({type:"checkbox",class:"toggler"},n)),e("div",{class:"hamburger"},e("div",{class:"line"}),e("div",{class:"line"}),e("div",{class:"line"})),e("div",{class:"menu-items",part:"sqm-items-container"},i))}}}}));
@@ -1 +0,0 @@
1
- import{h as t,r as s}from"./p-083180bf.js";import{i,k as n,n as e}from"./p-a7fc1e02.js";import{i as r}from"./p-6e9738a4.js";import{c as l}from"./p-c1086930.js";import{g as a}from"./p-9ec99ced.js";import{c as o}from"./p-cef45012.js";import{E as u}from"./p-49b20dae.js";import{R as c}from"./p-e7cf6632.js";var h="(\\d.*)",d="([a-zA-Z].*)",p="([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\{\\}\\]\\\\|;:\\'\",<.>\\/\\?€£¥₹§±].*)",v="([\\s].*)";function m(t,s){if(s&&s>1){const i=parseInt(s,10);return new RegExp(t+"{"+i+",}").test(this.password)===this.positive}return new RegExp(t).test(this.password)===this.positive}var f={not:function(t){return this.positive=!1,!t||m.call(this,t)},has:function(t){return this.positive=!0,!t||m.call(this,t)},is:function(){return this.positive=!0,!0},min:function(t){return this.password.length>=t},max:function(t){return this.password.length<=t},digits:function(t){return m.call(this,h,t)},letters:function(t){return m.call(this,d,t)},uppercase:function(t){if(t&&t>1){let s=0,i=0;for(;i<t&&s<this.password.length;){const t=this.password.charAt(s);t!==t.toLowerCase()&&i++,s++}return i===t===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function(t){if(t&&t>1){let s=0,i=0;for(;i<t&&s<this.password.length;){const t=this.password.charAt(s);t!==t.toUpperCase()&&i++,s++}return i===t===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function(t){return m.call(this,p,t)},spaces:function(t){return m.call(this,v,t)},oneOf:function(t){return t.indexOf(this.password)>=0===this.positive}},g="Length should be a valid positive number";function b(t){const s=Number(t);if(isNaN(s)||!Number.isInteger(s)||s<1)throw new Error(g)}function w(t){return f[t.method].apply(this,t.arguments)}function y(t,s){return this.properties.push({method:t,arguments:s}),this}const x=(new class{constructor(){this.properties=[]}validate(t,s){return this.list=Boolean(s&&s.list),this.password=String(t),this.positive=!0,this.list?this.properties.reduce(((t,s)=>w.call(this,s)?t:t.concat(s.method)),[]):this.properties.every(w.bind(this))}letters(t){return t&&b(t),y.call(this,"letters",arguments)}digits(t){return t&&b(t),y.call(this,"digits",arguments)}symbols(t){return t&&b(t),y.call(this,"symbols",arguments)}min(t){return b(t),y.call(this,"min",arguments)}max(t){return b(t),y.call(this,"max",arguments)}lowercase(t){return t&&b(t),y.call(this,"lowercase",arguments)}uppercase(t){return t&&b(t),y.call(this,"uppercase",arguments)}spaces(t){return t&&b(t),y.call(this,"spaces",arguments)}has(){return y.call(this,"has",arguments)}not(){return y.call(this,"not",arguments)}is(){return y.call(this,"is",arguments)}oneOf(){return y.call(this,"oneOf",arguments)}}).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/),C=(t,s)=>{const i=x.validate(t,{list:!0});return E(i,t,s)},L=()=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},t("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM4.8 9L1.8 6L2.646 5.154L4.8 7.302L9.354 2.748L10.2 3.6L4.8 9Z",fill:"#259053"})),j=()=>t("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM6 10.8C3.354 10.8 1.2 8.646 1.2 6C1.2 3.354 3.354 1.2 6 1.2C8.646 1.2 10.8 3.354 10.8 6C10.8 8.646 8.646 10.8 6 10.8ZM8.754 3.348L4.8 7.302L3.246 5.754L2.4 6.6L4.8 9L9.6 4.2L8.754 3.348Z",fill:"#555555"})),I={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},k=o({Base:{fontSize:"var(--sl-font-size-small)"},ValidationList:{"list-style-type":"none",paddingRight:"var(--sl-spacing-large)",margin:"var(--sl-spacing-small) 0 var(--sl-spacing-x-large)","& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-xx-small)"},"& *":{"line-height":"var(--sl-line-height-dense)"}},ValidationItemValid:{...I,color:"var(--sl-color-success-600)"},ValidationItemInvalid:{...I}}),V=k.toString(),E=(s,i,n)=>{const e={min:n.minErrorText,uppercase:n.uppercaseErrorText,lowercase:n.lowercaseErrorText,has:n.hasErrorText};return!s.length&&i?t("div",{class:k.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},t("style",{type:"text/css"},V),t(L,null)," ",t("span",null,n.meetsRequirementsText)):t("div",{class:k.classes.Base},t("style",{type:"text/css"},V),n.doesNotMeetRequirementsText,t("ul",{class:k.classes.ValidationList},Object.keys(e).map((i=>s.includes(i)?t("li",{class:k.classes.ValidationItemInvalid},t(j,null)," ",t("span",null,e[i])):t("li",{class:k.classes.ValidationItemValid},t(L,null)," ",t("span",null,e[i]))))))},M=o({InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:u}),S=M.toString();function Z(s){var i,n,e,r,l,a,o,u,c,h;const{states:d,callbacks:p}=s;return t("div",{class:M.classes.InputContainer,part:"sqm-base"},t("style",{type:"text/css"},"\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",S),t("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"password",name:"/password",label:d.content.fieldLabel||"Password",required:!0,disabled:(null===(i=d.registrationFormState)||void 0===i?void 0:i.loading)||(null===(n=d.registrationFormState)||void 0===n?void 0:n.disabled),validationError:({value:t})=>{if(!t)return"Cannot be empty"}},(null===(r=null===(e=d.registrationFormState)||void 0===e?void 0:e.initialData)||void 0===r?void 0:r.password)?{value:null===(a=null===(l=d.registrationFormState)||void 0===l?void 0:l.initialData)||void 0===a?void 0:a.password}:{},(null===(u=null===(o=d.registrationFormState)||void 0===o?void 0:o.validationErrors)||void 0===u?void 0:u.password)?{class:M.classes.ErrorStyle,helpText:(null===(h=null===(c=d.registrationFormState)||void 0===c?void 0:c.validationErrors)||void 0===h?void 0:h.password)||"Cannot be empty"}:[],{onInput:t=>d.enableValidation&&p.onInput(t)})),d.dynamicValidation)}const q=class{constructor(t){s(this,t),this.ignored=!0,this.fieldLabel="Password",this.disableValidation=!1,this.meetsRequirementsText="Password has met all requirements",this.doesNotMeetRequirementsText="Password must meet the following requirements:",this.minErrorText="be a minimum of 8 characters",this.uppercaseErrorText="contain at least 1 uppercase character",this.lowercaseErrorText="contain at least 1 lowercase character",this.hasErrorText="contain at least 1 number or symbol",e(this)}disconnectedCallback(){}render(){const{states:s,callbacks:e}=r()?function(t){var s,i,e,r,a,o,u;const[c,h]=n(""),[d,p]=n("");if(t.demoData&&d!=(null===(s=null==t?void 0:t.demoData)||void 0===s?void 0:s.initValue)){const s=C((null===(i=null==t?void 0:t.demoData)||void 0===i?void 0:i.initValue)||"",t);h(""===(null===(e=null==t?void 0:t.demoData)||void 0===e?void 0:e.initValue)?"":s),p(null===(r=null==t?void 0:t.demoData)||void 0===r?void 0:r.initValue)}return l({states:{enableValidation:!t.disableValidation,dynamicValidation:c,registrationFormState:(null===(o=null===(a=null==t?void 0:t.demoData)||void 0===a?void 0:a.states)||void 0===o?void 0:o.registrationFormState)||{},content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:function(s){const i=C(s.target.value,t);h(i)}}},(null===(u=null==t?void 0:t.demoData)||void 0===u?void 0:u.states)||{},{arrayMerge:(t,s)=>s})}(a(this)):function(t){const s=i(c),[e,r]=n("");return{states:{enableValidation:!t.disableValidation,dynamicValidation:e,registrationFormState:s,content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:function(s){const i=C(s.target.value,t);r(i)}}}}(a(this));return t(Z,{states:s,callbacks:e})}};export{q as sqm_password_field}
@@ -1 +0,0 @@
1
- System.register(["./p-641f968d.system.js","./p-b6504987.system.js","./p-ec3e44c8.system.js","./p-4691e9d5.system.js"],(function(e){"use strict";var t,r,n,i,o,s,l,a,f,u,c;return{setters:[function(e){t=e.r;r=e.h;n=e.c},function(e){i=e.b;o=e.n;s=e.k;l=e.f},function(e){a=e.I;f=e.b;u=e.i},function(e){c=e.V}],execute:function(){var d=i("sq:widget-verification");function v(e){var t=e.parent,r=e.callback;var n=new MutationObserver(o);var i=new MutationObserver(r);n.observe(t,{childList:true,subtree:false});o({addedNodes:t.querySelectorAll("template")});function o(e){var t;(t=e.addedNodes)===null||t===void 0?void 0:t.forEach((function(e){i.observe(e.content,{childList:true,attributes:true,subtree:true})}))}return function(){n.disconnect();i.disconnect()}}var p=e("sqm_widget_verification_controller",function(){function e(e){t(this,e);this.stateController='{"sqm-widget-verification-controller":{"isAuth":true}, "sqm-tax-and-cash":{"step":"/1"}}';o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=a({namespace:c,initialValue:false}),t=e[0],i=e[1];var o=JSON.parse(this.stateController);var p=(o===null||o===void 0?void 0:o["sqm-widget-verification-controller"])||o||{};var y=u()&&(p===null||p===void 0?void 0:p.isAuth);var h=s(undefined),m=h[0],b=h[1];var g=s(undefined),x=g[0],A=g[1];var q=f((function(){var e=x.querySelectorAll("template");var r=y||t;var n=Array.from(e).find((function(e){return e.slot===(r?"verified":"not-verified")}));if(n){var i=n.innerHTML||n.firstElementChild.outerHTML;if(i===m.innerHTML){d("don't rerender")}else if(n){m.innerHTML=i}}var o=Array.from(x.children).filter((function(e){return e.tagName==="RAISINS-PLOP-TARGET"}));if(o.length){var s=o.filter((function(e){return e.slot==="verified"}));var l=o.filter((function(e){return e.slot==="not-verified"}));l.forEach((function(e,t){if(r){e.style.display="none";return}if(t===l.length-1){e.style.bottom="0px";e.style.left="0px";e.style.right="0px";e.style.position="absolute"}e.style.height="25px"}));s.forEach((function(e,t){if(!r){e.style.display="none";return}if(t===s.length-1){e.style.bottom="0px";e.style.left="0px";e.style.right="0px";e.style.position="absolute"}e.style.height="25px"}))}}),[m,x,t,y,this.stateController]);l((function(){if(!m||!x){d("DOM not ready:");return}q();return v({parent:x,callback:q})}),[x,m,t,y,this.stateController]);return r(n,null,r("div",{ref:A,style:{display:"contents"}},r("slot",{name:"not-verified"}),r("slot",{name:"verified"})),r("div",{ref:b},r("slot",{name:"shown"})))};return e}())}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-641f968d.system.js","./p-b6504987.system.js","./p-ec3e44c8.system.js","./p-6333265f.system.js","./p-7ae8fb53.system.js"],(function(e){"use strict";var t,n,r,a,o,i,s,u,d,l,c;return{setters:[function(e){t=e.r;n=e.h;r=e.c},function(e){a=e.b;o=e.k;i=e.i;s=e.f;u=e.n},function(e){d=e._},function(e){l=e.g},function(e){c=e.p}],execute:function(){var f=a("sq:useRouter");function v(e,t){if(!e)return;var n=c(e);return n.exec(t)}function p(e){var t=d();var n=o(undefined),r=n[0],a=n[1];var u=o(undefined),l=u[0],c=u[1];var p=e.contextName;var m=i(p);s((function(){var e=t.querySelectorAll("sqm-route");var n=Array.from(e);n.forEach((function(e){var t=document.createElement("template");t.setAttribute("path",e.path);t.innerHTML=e.innerHTML;e.parentNode.appendChild(t);e.parentNode.removeChild(e)}))}),[]);s((function(){var e,t;if(!l||!r){f("DOM not ready for navigation rendering on:",m);return}var n=r.querySelectorAll("template");var a=Array.from(n);var o=a.find((function(e){var t,n,r;var a=(n=(t=e.attributes)===null||t===void 0?void 0:t.path)===null||n===void 0?void 0:n.nodeValue;if((r=v(a,m))===null||r===void 0?void 0:r.length)return e}));var i=(t=(e=o===null||o===void 0?void 0:o.attributes)===null||e===void 0?void 0:e.path)===null||t===void 0?void 0:t.nodeValue;f({containerDatasetPage:l.dataset.page,templatePath:i,page:m});if(!o){f("No matching page found for ",m,", so render nothing");l.innerHTML="";l.dataset.page=m;return}f("Page updated to ",m,o);if(!!v(i,l.dataset.page)){f("don't rerender")}else if(o){l.innerHTML=o.innerHTML;l.dataset.page=m}}),[r,l,m]);return{callbacks:{setSlot:a,setContainer:c}}}var m="sqm-router{display:contents}";var y=e("sqm_context_router",function(){function e(e){t(this,e);this.ignored=true;u(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=p(l(this)).callbacks;return n(r,null,n("div",{ref:e.setSlot,style:{display:"none"}},n("slot",null)),n("div",{style:{display:"contents"},ref:e.setContainer}))};return e}());y.style=m}}}));