@saasquatch/mint-components 2.5.5-1 → 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 +818 -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 +776 -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 +767 -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-641f968d.system.js +0 -1
  972. package/dist/mint-components/p-686dd5eb.system.js +0 -1
  973. package/dist/mint-components/p-6b5528b1.entry.js +0 -33
  974. package/dist/mint-components/p-6c3a1d86.js +0 -1
  975. package/dist/mint-components/p-6c8758ac.entry.js +0 -1
  976. package/dist/mint-components/p-6dffb326.entry.js +0 -13
  977. package/dist/mint-components/p-6e9738a4.js +0 -1
  978. package/dist/mint-components/p-6f8dde97.system.js +0 -1
  979. package/dist/mint-components/p-7010498f.js +0 -1
  980. package/dist/mint-components/p-7062154c.system.js +0 -1
  981. package/dist/mint-components/p-717fa601.js +0 -1
  982. package/dist/mint-components/p-732907b1.system.entry.js +0 -1
  983. package/dist/mint-components/p-7562cd98.system.js +0 -1
  984. package/dist/mint-components/p-7ae8fb53.system.js +0 -1
  985. package/dist/mint-components/p-808f7f22.entry.js +0 -1
  986. package/dist/mint-components/p-80cee817.system.js +0 -1
  987. package/dist/mint-components/p-8452837a.system.js +0 -1
  988. package/dist/mint-components/p-85996c52.system.entry.js +0 -1
  989. package/dist/mint-components/p-8629d0be.system.entry.js +0 -1
  990. package/dist/mint-components/p-86c430f8.system.entry.js +0 -1
  991. package/dist/mint-components/p-8707c7fb.entry.js +0 -1
  992. package/dist/mint-components/p-8899ff38.system.entry.js +0 -1
  993. package/dist/mint-components/p-88a5350b.entry.js +0 -11
  994. package/dist/mint-components/p-8d363802.js +0 -1
  995. package/dist/mint-components/p-93e4954e.entry.js +0 -308
  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-d028db52.system.entry.js +0 -1
  1031. package/dist/mint-components/p-d0318b41.entry.js +0 -13
  1032. package/dist/mint-components/p-d0ce74bd.system.js +0 -1
  1033. package/dist/mint-components/p-d267f4bb.system.js +0 -1
  1034. package/dist/mint-components/p-d26df2da.entry.js +0 -1
  1035. package/dist/mint-components/p-d3b1ab20.system.entry.js +0 -1
  1036. package/dist/mint-components/p-d463fa82.system.js +0 -1
  1037. package/dist/mint-components/p-d46a048d.system.entry.js +0 -1
  1038. package/dist/mint-components/p-d533ff7b.system.js +0 -271
  1039. package/dist/mint-components/p-d6a7f402.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
@@ -0,0 +1,83 @@
1
+ import{h as e,r as t,c as i,g as o}from"./p-834cd992.js";import{d as a,x as n,v as r,b as l,P as s,u as d,Q as u,f as c,i as m,O as p,q as h,j as v,e as y}from"./p-3f9d4025.js";import{m as f,k as g,j as b,n as x,b as C,i as w,u as S}from"./p-056845fb.js";import{d as k}from"./p-df45273e.js";import{i as I}from"./p-fa2edc58.js";import{c as P}from"./p-af9d3491.js";import{g as T}from"./p-9ec99ced.js";import{F as A,T as N,a as D,S as q,f as E,c as B,U as M,C as R}from"./p-75b7496e.js";import{j as F}from"./p-c6d2a452.js";import{c as L}from"./p-4f9dc974.js";import{T as U,p as _}from"./p-76d36b05.js";import{t as W,d as z,I as j,a as H,c as Y,b as V,o as O,e as $,A as G}from"./p-b652d3b3.js";import{O as K,I as X,v as J,T as Z,U as Q}from"./p-ec00bb5f.js";import{a as ee,b as te,g as ie,V as oe,c as ae,C as ne}from"./p-cdf099fe.js";import{G as re}from"./p-acd3e9e3.js";import{u as le,a as se}from"./p-be38ae67.js";import{g as de,d as ue}from"./p-15f170d4.js";import{u as ce}from"./p-bd1a14ba.js";import{l as me}from"./p-eba82926.js";import"./p-aadbe44d.js";import"./p-49b20dae.js";const pe={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}]},he=P({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%"}}),ve=he.toString(),ye=t=>{var i;const{states:o,states:{formState:a},callbacks:n,text:r,refs:l,slots:s}=t,{classes:d}=he,u=(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:d.SmallSkeleton}),e("div",{style:{...a,flexDirection:"row"}},e("div",{class:d.CheckboxSkeleton}),e("div",{class:d.SmallSkeleton})),e("div",{style:{...a,flexDirection:"row"}},e("div",{class:d.CheckboxSkeleton}),e("div",{class:d.SmallSkeleton}))):"toPayPalAccount"===t?e("div",{style:{...a,flexDirection:"column"}},e("div",{class:d.SmallSkeleton}),e("div",{class:d.LargeSkeleton})):o.map(((t,i)=>e("div",{style:{...a,flexDirection:"column"},key:i},e("div",{class:d.SmallSkeleton}),e("div",{class:d.LargeSkeleton}))))};return e("sl-form",{part:"container",class:d.FormWrapper,"onSl-submit":n.onSubmit,ref:e=>l.formRef.current=e,novalidate:!0},e("style",{type:"text/css"},ve,"\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:he.classes.Dialog,open:o.showModal,"onSl-hide":n.onModalClose},e("div",{class:d.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)"}},r.modalTitle)),e("p",null,r.modalDescription),e("sl-button",{slot:"footer",type:"primary",class:he.classes.DialogButton,submit:!0,exportparts:"base: primarybutton-base"},r.modalButtonText)),e("div",{class:d.TextContainer},e("div",null,!o.hideSteps&&e("p",null,I.formatMessage({id:"formStep",defaultMessage:r.formStep},{step:o.step,count:A})),e("h3",{style:{fontSize:"24px"}},r.taxAndPayouts),e("p",{class:d.PageDescriptionText},r.taxAndPayoutsDescription)),(null===(i=a.errors)||void 0===i?void 0:i.general)&&e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},r.error.generalTitle),I.formatMessage({id:"generalDescription",defaultMessage:r.error.generalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},r.supportLink)})),o.isPartner&&!o.hideSteps&&e("sqm-form-message",{type:"info"},e("p",{part:"alert-title"},r.isPartnerAlertHeader),I.formatMessage({id:"isPartnerAlertDescription",defaultMessage:r.isPartnerAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},r.supportLink)})),e("div",null,e("h4",null,r.paymentMethod),e("p",{class:d.DescriptionText},r.paymentMethodSubtext))),e("div",null,e("div",{class:d.CheckboxContainer},o.loading&&void 0===a.paymentMethodChecked?u(void 0):e("div",{class:d.RadioContainer},o.hasPayPal&&e("sl-radio",{class:d.Checkbox,exportparts:"base: radio-base",checked:"toBankAccount"===a.paymentMethodChecked,onInput:()=>n.setPaymentMethodChecked("toBankAccount"),disabled:o.disabled,id:"toBankAccount",name:"/toBankAccount"},r.directlyToBankAccount),"toBankAccount"===a.paymentMethodChecked&&e("div",{class:d.InputContainer,style:o.hideBanking?{display:"none"}:{}},o.loading?u("toBankAccount",s.formInputsSlot.length+3):[s.countryInputSlot,s.paymentMethodSlot,s.formInputsSlot]),o.hasPayPal&&e("sl-radio",{class:d.Checkbox,exportparts:"base: radio-base",checked:"toPayPalAccount"===a.paymentMethodChecked,onInput:()=>n.setPaymentMethodChecked("toPayPalAccount"),disabled:o.disabled,id:"toPayPalAccount",name:"/toPayPalAccount"},I.formatMessage({id:"paypal-input-label",defaultMessage:r.toPayPalAccount},{feeCap:o.feeCap})),"toPayPalAccount"===a.paymentMethodChecked&&e("div",{class:d.InputContainer,style:o.hidePayPal?{display:"none"}:{}},o.loading?u("toPayPalAccount"):s.paypalInputSlot),e("div",{style:{paddingTop:"24px",paddingBottom:"12px"}},e("h4",null,r.paymentSchedule)),e("sl-radio",{class:d.Checkbox,exportparts:"base: radio-base",checked:"BALANCE_THRESHOLD"===a.paymentScheduleChecked,onInput:()=>n.setPaymentScheduleChecked("BALANCE_THRESHOLD"),disabled:o.disabled,id:"paymentSchedulingType",name:"/paymentSchedulingType",value:"BALANCE_THRESHOLD"},r.paymentScheduleBalanceThreshold),"BALANCE_THRESHOLD"===a.paymentScheduleChecked&&e("div",{class:d.InputContainer,style:o.hideBalanceThreshold?{display:"none"}:{}},o.loading?u("toPayPalAccount"):s.paymentThresholdSelectSlot),e("sl-radio",{class:d.Checkbox,exportparts:"base: radio-base",checked:"FIXED_DAY"===a.paymentScheduleChecked,onInput:()=>n.setPaymentScheduleChecked("FIXED_DAY"),disabled:o.disabled,id:"paymentSchedulingType",name:"/paymentSchedulingType",value:"FIXED_DAY"},r.paymentScheduleFixedDay),"FIXED_DAY"===a.paymentScheduleChecked&&e("div",{class:d.InputContainer,style:o.hideFixedDay?{display:"none"}:{}},o.loading?u("toPayPalAccount"):s.paymentFixedDaySelectSlot))),e("div",{class:d.BtnContainer},e("sl-button",{type:"primary",disabled:o.disabled||o.saveDisabled,loading:o.saveLoading,...o.hideSteps?{onClick:n.onModalOpen}:{submit:"submit"},exportparts:"base: primarybutton-base"},r.continueButton),!o.hideBackButton&&e("sl-button",{exportparts:"base: secondarybutton-base",type:"secondary",onClick:n.onBack},r.backButton))))},fe={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"},ge={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"},xe=a.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
+ `,Ce=a.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 we(e){const t=Number.parseInt(e);if(!isNaN(t))return t.toString()}const Se=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}}}",this.demoData=void 0,x(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,a,h,v,y,x,C,w,S,T,A,M,R,_,W,z,j,H,Y,V,O,$,G,K,X,J,Z,Q,ee,te,ie,oe,ae,ne;const re=m()?function(e){var t,i,o,a,n,r,l,s,d,u,c,m,h,v;const y=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,f=null===(r=null===(n=null===(a=e.demoData)||void 0===a?void 0:a.states)||void 0===n?void 0:n.formState)||void 0===r?void 0:r.paymentScheduleChecked,x=null===(s=null===(l=e.demoData)||void 0===l?void 0:l.states)||void 0===s?void 0:s.currency,C=null===(c=null===(u=null===(d=e.demoData)||void 0===d?void 0:d.states)||void 0===u?void 0:u.formState)||void 0===c?void 0:c.bankCountry,w=p(N),[S,P]=g(void 0),[T,A]=g(void 0),[D,q]=g(x),[E,B]=g(C),M=null===(m=pe[D])||void 0===m?void 0:m.find((e=>e.countryCode===E)),R=(null==M?void 0:M.withdrawalSettingId)||(null===(v=null===(h=e.demoData)||void 0===h?void 0:h.states)||void 0===v?void 0:v.bitset)||0;b((()=>{y!==S&&P(y),f!==T&&A(f),x!==D&&q(x),C!==E&&B(C)}),[y,x,C]);const F=fe[D]||"",L={ACH:e.eftWithdrawalLabel,WIRE:I.formatMessage({id:"fxWireText",defaultMessage:e.fxWireProcessingFeeLabel},{currency:D,defaultFxFee:(null==M?void 0:M.defaultFxFee)||"0"})};return k({states:{step:"4",isPartner:!1,disabled:!1,loading:!1,saveLoading:!1,hideSteps:!1,hideBackButton:!1,feeCap:F,thresholds:[],paymentMethodFeeLabel:L[null==M?void 0:M.defaultFinancePaymentMethodId],formState:{paymentMethodChecked:S,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:R,bankCountry:E,currency:D,setCurrency:q,hasPayPal:!0,showModal:!1},callbacks:{onVerificationHide:()=>{},onSubmit:async()=>{w("/dashboard")},setBankCountry:B,setPaymentMethodChecked:P,setPaymentScheduleChecked:A,setCountrySearch:()=>{},onBack:async()=>w("/dashboard"),onVerification:()=>{},onModalOpen:()=>{},onModalClose:()=>{}},text:e.getTextProps(),refs:{formRef:{current:null}}},e.demoData||{})}(this):function(e){var t,i,o,a,m,p,h,v,y;const x=n(),C=r(),w=l(),[S,k]=s(N),P=d(D),T=d(q),A=f(null),{data:M,errors:R}=u(E),{data:_,refetch:W,errors:z}=u(B),[j]=c(xe),[H]=c(Ce),[Y,V]=g(!1);g(null);const[O,$]=g({}),[G,K]=g(null),[X,J]=g(!1),[Z,Q]=g({}),[ee,te]=g(void 0),[ie,oe]=g(void 0),[ae,ne]=g(""),[re,le]=g(T||[]),[se,de]=g(!1),ue=(null===(o=null===(i=null===(t=null==_?void 0:_.user)||void 0===t?void 0:t.impactConnection)||void 0===i?void 0:i.publisher)||void 0===o?void 0:o.currency)||"",ce=!!(null===(p=null===(m=null===(a=null==_?void 0:_.user)||void 0===a?void 0:a.impactConnection)||void 0===m?void 0:m.publisher)||void 0===p?void 0:p.withdrawalSettings),me=fe[ue]||"",pe=null===(h=null==M?void 0:M.impactFinanceNetworkSettings)||void 0===h?void 0:h.data,he={3:e.eftWithdrawalLabel,5:I.formatMessage({id:"fxWireText",defaultMessage:e.fxWireProcessingFeeLabel},{currency:ue,defaultFxFee:(null==G?void 0:G.defaultFxFee)||0})}[null==G?void 0:G.defaultFinancePaymentMethodId],ve=!!(null==pe?void 0:pe.find((e=>7===e.defaultFinancePaymentMethodId))),ye=ve?ee:"toBankAccount";b((()=>{var e,t,i,o,a,n,r,l,s;if(!_)return;if(!pe)return;const d=null===(i=null===(t=null===(e=null==_?void 0:_.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==_?void 0:_.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=_.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:we(u.paymentThreshold),paymentDay:u.paymentDay});const m=null==pe?void 0:pe.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&&Se(null==m?void 0:m.countryCode),Ie("PAYPAL"===c.paymentMethod?"toPayPalAccount":"toBankAccount"),K(m),oe(c.paymentSchedulingType),$(c)}),[pe,_,K,$]),b((()=>{(null==T?void 0:T.length)&&(""===ae.trim()?le(T||[]):le(T.filter((e=>e.displayName.toLowerCase().includes(ae.toLowerCase())))||[]))}),[ae,T]);const Se=e=>{const t=null==pe?void 0:pe.find((t=>t.countryCode===e));$((t=>({...t,bankCountry:e}))),K(t)},ke=async e=>{x.dispatchEvent(new CustomEvent(L,{detail:{token:e},bubbles:!1}))};function Ie(e){if(te(e),"toPayPalAccount"===e){const e=null==pe?void 0:pe.find((e=>7===e.defaultFinancePaymentMethodId));K(e)}else if("toBankAccount"===e){const e=null==pe?void 0:pe.find((e=>e.countryCode===O.bankCountry));K(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;F.set(i,t,a),e.required&&!a&&F.set(o,t,{type:"required"})})),Q({inputErrors:o}),Object.keys(o).length?de(!1):(ce&&(de(!1),V(!0),t=await new Promise((e=>{const t=i=>{i.stopPropagation(),x.removeEventListener(L,t),e(i.detail.token)};x.addEventListener(L,t)})),V(!1)),await(async(e,t)=>{var i,o,a,n,r;J(!0);try{if(!G)throw new Error("No currentPaymentOption");const l={user:{id:w.id,accountId:w.accountId},...e,paymentMethod:(r=G,3===r.defaultFinancePaymentMethodId||5===r.defaultFinancePaymentMethodId?"BANK_TRANSFER":7===r.defaultFinancePaymentMethodId?"PAYPAL":""),paymentSchedulingType:ie};let s=null,d=null,u=null;if(ce){if(!t)return;s=await H({updateImpactPublisherWithdrawalSettingsInput:{...l,accessKey:t}}),d=null===(i=null==s?void 0:s.updateImpactPublisherWithdrawalSettings)||void 0===i?void 0:i.success,u=null===(o=null==s?void 0:s.updateImpactPublisherWithdrawalSettings)||void 0===o?void 0:o.validationErrors}else s=await j({setImpactPublisherWithdrawalSettingsInput:{...l}}),d=null===(a=null==s?void 0:s.setImpactPublisherWithdrawalSettings)||void 0===a?void 0:a.success,u=null===(n=null==s?void 0:s.setImpactPublisherWithdrawalSettings)||void 0===n?void 0:n.validationErrors;if(!s||(null==s?void 0:s.message))throw new Error;if(!d){console.error("Validation failed: ",u);const e=null==u?void 0:u.reduce(((e,t)=>({...e,[ge[t.field]||t.field]:{type:"invalid",errorCode:be[t.code]||t.code}})),{});return void Q({inputErrors:{...e},general:!0})}window.dispatchEvent(new Event(U)),await W(),k("/dashboard")}catch(e){console.error(e),Q({general:!0})}finally{J(!1)}})(i,t),de(!1),window.location.hash="")},setBankCountry:Se,setPaymentMethodChecked:Ie,setPaymentScheduleChecked:oe,onBack:()=>{window.location.hash?window.location.hash="":k("/dashboard")},setCountrySearch:ne,onVerification:ke,onVerificationHide:()=>ke(null),onModalClose:()=>de(!1),onModalOpen:()=>de(!0)},states:{showVerification:Y,step:null==S?void 0:S.replace("/",""),hideSteps:!!P.hideSteps,saveDisabled:!ye||!ie,locale:C,isPartner:ce,feeCap:me,paymentMethodFeeLabel:he,disabled:X,hideBackButton:!P.overrideBackStep,loading:!pe,saveLoading:X,hideBanking:"toBankAccount"!==ye||!ye,hidePayPal:"toPayPalAccount"!==ye||!ye,loadingError:!!(null==z?void 0:z.message)||!!(null==R?void 0:R.message),formState:{...O,paymentMethodChecked:ye,paymentScheduleChecked:ie,errors:Z},currentPaymentOption:G,bitset:(null==G?void 0:G.withdrawalSettingId)||0,currency:ue,thresholds:(null===(v=null==G?void 0:G.thresholdOptions)||void 0===v?void 0:v.split(","))||[],countries:re,allCountries:T,hasPayPal:ve,bankCountry:O.bankCountry,countrySearch:ae,email:null===(y=null==_?void 0:_.user)||void 0===y?void 0:y.email,showModal:se},refs:{formRef:A}}}(this),{errors:le}=re.states.formState,se=this.fieldRequiredError,de=this.fieldInvalidError;function ue({type:e,label:t,errorCode:i,fieldName:o}){var a;if("invalid"===e&&i&&o){const e=null===(a=re.text.errorMessages)||void 0===a?void 0:a[o];if(e)return I.formatMessage({id:`fieldError-${o}-${i}`,defaultMessage:e},{errorCode:i,fieldName:t})}return"required"===e?I.formatMessage({id:`requiredText-${t}`,defaultMessage:se},{fieldName:t}):"invalid"===e?I.formatMessage({id:`invalidText-${t}`,defaultMessage:de},{fieldName:t}):""}const ce=function({props:t,getValidationErrorMessage:i,bankCountry:o}){var a,n,r,l,s,d,u,c,m,p,h,v,y,f,g,b,x,C,w,S,k,P,T,A,N,D,q,E,B,M,R,F,L,U,_,W,z,j,H,Y,V,O,$,G,K,X,J,Z,Q,ee,te,ie,oe,ae,ne,re,le,se,de,ue,ce,me,pe,he,ve,ye,fe,ge,be,xe,Ce,we,Se,ke,Ie,Pe,Te,Ae,Ne,De,qe,Ee,Be,Me,Re,Fe,Le,Ue,_e,We,ze,je,He,Ye,Ve,Oe,$e,Ge,Ke,Xe,Je;const{errors:Ze,...Qe}=t.states.formState;return{0:{input:e("sl-input",{required:!0,label:t.text.beneficiaryAccountNameLabel,name:"/beneficiaryAccountName",id:"beneficiaryAccountName",key:"beneficiaryAccountName",type:"text","help-text":t.text.beneficiaryAccountNameDescription,...(null===(a=null==Ze?void 0:Ze.inputErrors)||void 0===a?void 0:a.beneficiaryAccountName)&&{class:"error-input",helpText:i({type:null===(r=null===(n=null==Ze?void 0:Ze.inputErrors)||void 0===n?void 0:n.beneficiaryAccountName)||void 0===r?void 0:r.type,label:t.text.beneficiaryAccountNameLabel,errorCode:null===(s=null===(l=null==Ze?void 0:Ze.inputErrors)||void 0===l?void 0:l.beneficiaryAccountName)||void 0===s?void 0:s.errorCode,fieldName:"beneficiaryAccountName"})}})},1:{input:e("sl-select",{required:!0,label:t.text.bankAccountTypeLabel,name:"/bankAccountType",id:"bankAccountType",key:"bankAccountType",...(null===(d=null==Ze?void 0:Ze.inputErrors)||void 0===d?void 0:d.bankAccountType)&&{class:"error-input",helpText:i({type:null===(c=null===(u=null==Ze?void 0:Ze.inputErrors)||void 0===u?void 0:u.bankAccountType)||void 0===c?void 0:c.type,label:t.text.bankAccountTypeLabel,errorCode:null===(p=null===(m=null==Ze?void 0:Ze.inputErrors)||void 0===m?void 0:m.bankAccountType)||void 0===p?void 0:p.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",{required:!0,label:t.text.bankAccountNumberLabel,name:"/bankAccountNumber",id:"bankAccountNumber",key:"bankAccountNumber",value:Qe.bankAccountNumber,type:"text",...(null===(h=null==Ze?void 0:Ze.inputErrors)||void 0===h?void 0:h.bankAccountNumber)&&{class:"error-input",helpText:i({type:null===(y=null===(v=null==Ze?void 0:Ze.inputErrors)||void 0===v?void 0:v.bankAccountNumber)||void 0===y?void 0:y.type,label:t.text.bankAccountNumberLabel,errorCode:null===(g=null===(f=null==Ze?void 0:Ze.inputErrors)||void 0===f?void 0:f.bankAccountNumber)||void 0===g?void 0:g.errorCode,fieldName:"bankAccountNumber"})}})},3:{input:e("sl-input",{required:!0,label:t.text.ibanLabel,name:"/bankAccountNumber",id:"iban",key:"iban",type:"text",value:Qe.bankAccountNumber,...(null===(b=null==Ze?void 0:Ze.inputErrors)||void 0===b?void 0:b.bankAccountNumber)&&{class:"error-input",helpText:i({type:null===(C=null===(x=null==Ze?void 0:Ze.inputErrors)||void 0===x?void 0:x.bankAccountNumber)||void 0===C?void 0:C.type,label:t.text.ibanLabel,errorCode:null===(S=null===(w=null==Ze?void 0:Ze.inputErrors)||void 0===w?void 0:w.bankAccountNumber)||void 0===S?void 0:S.errorCode,fieldName:"bankAccountNumber"})}})},4:{input:e("sl-input",{required:!0,label:t.text.swiftCodeLabel,name:"/swiftCode",id:"swiftCode",key:"swiftCode",type:"text",...(null===(k=null==Ze?void 0:Ze.inputErrors)||void 0===k?void 0:k.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",{required:!0,label:I.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:I.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",{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",{required:!0,label:t.text.classificationLabel,name:"/beneficiaryClassification",id:"beneficiaryClassification",key:"beneficiaryClassification",...(null===(W=null==Ze?void 0:Ze.inputErrors)||void 0===W?void 0:W.beneficiaryClassification)&&{class:"error-input",helpText:i({type:null===(j=null===(z=null==Ze?void 0:Ze.inputErrors)||void 0===z?void 0:z.beneficiaryClassification)||void 0===j?void 0:j.type,label:t.text.classificationLabel,errorCode:null===(Y=null===(H=null==Ze?void 0:Ze.inputErrors)||void 0===H?void 0:H.beneficiaryClassification)||void 0===Y?void 0:Y.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",{required:!0,label:I.formatMessage({id:"fxWireText",defaultMessage:t.text.taxPayerIdLabel},{bankCountry:o}),type:"text",name:"/beneficiaryTaxPayerId",id:"beneficiaryTaxPayerId",key:"beneficiaryTaxPayerId",...(null===(V=null==Ze?void 0:Ze.inputErrors)||void 0===V?void 0:V.beneficiaryTaxPayerId)&&{class:"error-input",helpText:i({type:null===($=null===(O=null==Ze?void 0:Ze.inputErrors)||void 0===O?void 0:O.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",{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",{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",{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",{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",{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===(ge=null===(fe=null==Ze?void 0:Ze.inputErrors)||void 0===fe?void 0:fe.bankAddress)||void 0===ge?void 0:ge.type,label:t.text.bankAddressLabel,errorCode:null===(xe=null===(be=null==Ze?void 0:Ze.inputErrors)||void 0===be?void 0:be.bankAddress)||void 0===xe?void 0:xe.errorCode,fieldName:"bankAddress"})}}),e("sl-input",{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",{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",{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",{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===(We=null===(_e=null==Ze?void 0:Ze.inputErrors)||void 0===_e?void 0:_e.branchCode)||void 0===We?void 0:We.errorCode,fieldName:"branchCode"})}})},14:{input:e("sl-select",{required:!0,label:t.text.classificationLabel,name:"/beneficiaryClassification",id:"beneficiaryClassification",key:"beneficiaryClassification",...(null===(ze=null==Ze?void 0:Ze.inputErrors)||void 0===ze?void 0:ze.beneficiaryClassification)&&{class:"error-input",helpText:i({type:null===(He=null===(je=null==Ze?void 0:Ze.inputErrors)||void 0===je?void 0:je.beneficiaryClassification)||void 0===He?void 0:He.type,label:t.text.classificationLabel,errorCode:null===(Ve=null===(Ye=null==Ze?void 0:Ze.inputErrors)||void 0===Ye?void 0:Ye.beneficiaryClassification)||void 0===Ve?void 0:Ve.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",{required:!0,label:t.text.branchNameLabel,name:"/branchName",id:"branchName",key:"branchName",type:"text",...(null===(Oe=null==Ze?void 0:Ze.inputErrors)||void 0===Oe?void 0:Oe.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",{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}),me=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=P({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)"}}),ve=he.toString(),Se=I.formatMessage({id:"codeResentSuccessfully",defaultMessage:re.text.verifyEmailDescriptionText},{email:re.states.email});return e(i,null,e("style",{type:"text/css"},ve),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(ye,{callbacks:re.callbacks,text:re.text,states:re.states,refs:re.refs,slots:{formInputsSlot:null==me?void 0:me.map((({input:e})=>e)),countryInputSlot:e("sl-select",{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===(a=null===(o=null==le?void 0:le.inputErrors)||void 0===o?void 0:o.bankCountry)||void 0===a?void 0:a.type,label:re.text.bankLocationLabel,errorCode:null===(v=null===(h=null==le?void 0:le.inputErrors)||void 0===h?void 0:h.bankCountry)||void 0===v?void 0:v.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===(y=re.states.countries)||void 0===y?void 0:y.map((t=>e("sl-menu-item",{value:t.countryCode},t.displayName))),null===(C=null===(x=re.states)||void 0===x?void 0:x.allCountries)||void 0===C?void 0:C.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",{required:!0,disabled:re.states.saveLoading,label:re.text.paymentThresholdSelectLabel,name:"/paymentThreshold",id:"paymentThreshold",value:(null===(S=null===(w=re.states)||void 0===w?void 0:w.formState)||void 0===S?void 0:S.paymentThreshold)||"",...(null===(T=null==le?void 0:le.inputErrors)||void 0===T?void 0:T.paymentThreshold)&&{class:"error-input",helpText:ue({type:null===(M=null===(A=null==le?void 0:le.inputErrors)||void 0===A?void 0:A.paymentThreshold)||void 0===M?void 0:M.type,label:re.text.paymentThresholdSelectLabel,errorCode:null===(_=null===(R=null==le?void 0:le.inputErrors)||void 0===R?void 0:R.paymentThreshold)||void 0===_?void 0:_.errorCode,fieldName:"paymentThreshold"})}},re.states.thresholds.map((t=>e("sl-menu-item",{value:t},`${re.states.currency}${t}`)))),paymentFixedDaySelectSlot:e("sl-select",{required:!0,disabled:re.states.saveLoading,label:re.text.paymentDaySelectLabel,value:(null===(z=null===(W=re.states)||void 0===W?void 0:W.formState)||void 0===z?void 0:z.paymentDay)||"",name:"/paymentDay",id:"paymentDay",...(null===(j=null==le?void 0:le.inputErrors)||void 0===j?void 0:j.paymentDay)&&{class:"error-input",helpText:ue({type:null===(Y=null===(H=null==le?void 0:le.inputErrors)||void 0===H?void 0:H.paymentDay)||void 0===Y?void 0:Y.type,label:re.text.paymentDaySelectLabel,errorCode:null===(O=null===(V=null==le?void 0:le.inputErrors)||void 0===V?void 0:V.paymentDay)||void 0===O?void 0:O.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",{required:!0,disabled:re.states.saveLoading,value:(null===(G=null===($=re.states)||void 0===$?void 0:$.formState)||void 0===G?void 0:G.paypalEmailAddress)||"",label:re.text.payPalInputLabel,key:"paypalEmailAddress",name:"/paypalEmailAddress",id:"paypalEmailAddress",type:"text",...(null===(J=null===(X=null===(K=re.states.formState)||void 0===K?void 0:K.errors)||void 0===X?void 0:X.inputErrors)||void 0===J?void 0:J.paypalEmailAddress)&&{class:"error-input",helpText:ue({type:null===(te=null===(ee=null===(Q=null===(Z=re.states.formState)||void 0===Z?void 0:Z.errors)||void 0===Q?void 0:Q.inputErrors)||void 0===ee?void 0:ee.paypalEmailAddress)||void 0===te?void 0:te.type,label:re.text.payPalInputLabel,errorCode:null===(ne=null===(ae=null===(oe=null===(ie=re.states.formState)||void 0===ie?void 0:ie.errors)||void 0===oe?void 0:oe.inputErrors)||void 0===ae?void 0:ae.paypalEmailAddress)||void 0===ne?void 0:ne.errorCode,fieldName:"paypalEmailAddress"})}})}}))}},ke=a.gql`
32
+ mutation createImpactPublisherTaxDocument(
33
+ $vars: CreateImpactPublisherTaxDocumentInput!
34
+ ) {
35
+ createImpactPublisherTaxDocument(
36
+ createImpactPublisherTaxDocumentInput: $vars
37
+ ) {
38
+ documentUrl
39
+ }
40
+ }
41
+ `,Ie=a.gql`
42
+ mutation completeImpactPublisherTaxDocument($vars: UserIdInput!) {
43
+ completeImpactPublisherTaxDocument(user: $vars) {
44
+ success
45
+ }
46
+ }
47
+ `,Pe=["exception","decline","cancel","fax_pending"],Te=["ttl_expired","session_timeout"];const Ae=P({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"}}}),Ne=Ae.toString(),De=t=>{const{classes:i}=Ae,{text:o}=t;return e("div",null,e("style",{type:"text/css"},Ne),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)))},qe=t=>{const{classes:i}=Ae,{text:o}=t;return e("div",null,e("style",{type:"text/css"},Ne),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)))},Ee=()=>{const{classes:t}=Ae;return e("div",null,e("style",{type:"text/css"},Ne),e("div",{class:t.DocusignStatusContainer},e("sl-spinner",{style:{fontSize:"50px",margin:"40px"}})))},Be=({states:t,data:i,callbacks:o,text:a})=>{const{classes:n}=Ae,[r,l]=g("100%"),s=["referralsaasquatch.com","impacttech.complysandbox.com","impacttech.complytaxforms.com"],d=h((e=>{s.some((t=>{var i;return null===(i=e.origin)||void 0===i?void 0:i.includes(t)}))&&("number"==typeof e.data&&l(e.data+"px"),"Complyexchange Thank you page Load"!==e.data||t.loading||o.completeDocument())}),[]);return b((()=>(window.addEventListener("message",d,!1),()=>{window.removeEventListener("message",d,!1)})),[r]),t.urlLoading?e(Ee,null):Pe.includes(t.status)?e(qe,{text:a}):Te.includes(t.status)?e(De,{text:a}):e("div",{style:{height:r}},e("style",{type:"text/css"},Ne),e("div",{class:n.IFrameContainer},e("iframe",{scrolling:"yes",frameBorder:"0",width:"100%",src:i.documentUrl,height:r})))},Me=P({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%"}}),Re=Me.toString(),Fe=t=>{var i;const{states:o,states:{formState:a,documentTypeString:n},callbacks:r,text:l,slots:s}=t,{classes:d}=Me;return e("div",{class:d.Container,part:"container"},e("style",{type:"text/css"},Re,"\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:Me.classes.Dialog,open:o.showModal,"onSl-hide":r.onModalClose},e("div",{class:d.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)"}},l.modalTitle)),e("p",null,I.formatMessage({id:"modalText",defaultMessage:l.modalDescription},{br:e("br",null)})),e("sl-button",{slot:"footer",type:"primary",class:Me.classes.DialogButton,onClick:r.onModalClose,exportparts:"base: primarybutton-base"},l.modalButtonText)),e("div",{class:d.TextContainer},e("div",null,!o.hideSteps&&e("p",null,I.formatMessage({id:"formStep",defaultMessage:l.formStep},{step:o.step,count:A})),e("h3",null,l.taxForm),e("p",{class:d.PageDescriptionText},l.taxAndPayoutsDescription))),o.loadingError&&e("div",null,e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},l.error.loadingErrorAlertHeader),I.formatMessage({id:"loadingErrorAlertDescription",defaultMessage:l.error.loadingErrorAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},l.supportLink)}))),(null===(i=a.errors)||void 0===i?void 0:i.general)&&e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},l.error.generalTitle),I.formatMessage({id:"generalDescription",defaultMessage:l.error.generalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},l.supportLink)})),e("div",null,e("div",null,e("h5",{class:d.BoldText},I.formatMessage({id:"tax-form-label",defaultMessage:l.taxFormLabel},{documentType:n})),e("p",null,I.formatMessage({id:"tax-form-description",defaultMessage:"W9"===o.documentType?l.taxFormDescription:"individualParticipant"===a.participantType?l.taxFormDescriptionIndividualParticipant:l.taxFormDescriptionBusinessEntity},{documentType:n}))),e("div",null,s.docusignIframeSlot),e("div",{class:d.BtnContainer},o.showExitButton&&e("sl-button",{type:"primary",exportparts:"base: primarybutton-base",onClick:r.onExit},l.exitButton))))},Le=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",this.demoData=void 0,x(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=m(),o=t?function(e){const t=p(N);return k({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||{})}(this):function(e){var t,i,o;const a=l(),n=d(D),[r,m]=s(N),{data:p,loading:h}=u(B),v=null===(i=null===(t=null==p?void 0:p.user)||void 0===t?void 0:t.impactConnection)||void 0===i?void 0:i.publisher,[y,{loading:f,data:x,errors:C}]=c(ke),[w,{loading:S}]=c(Ie),[k,I]=g(void 0),[P,T]=g(void 0),[A,q]=g({}),[E,M]=g(!1),[R,F]=g(!1),[L,_]=g(!0),j=z(null==v?void 0:v.requiredTaxDocumentType)&&(null==v?void 0:v.currentTaxDocument)?null==v?void 0:v.requiredTaxDocumentType:void 0,H=j||("businessEntity"===(Y=P)?"W8BENE":"individualParticipant"===Y?"W8BEN":void 0)||(null==v?void 0:v.requiredTaxDocumentType);var Y;b((()=>{j&&("W8BEN"===j?T("individualParticipant"):"W8BENE"===j&&T("businessEntity"))}),[j]),b((()=>{a&&v&&(async()=>{try{const e=await y({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,v,P]);const V=h||f||E;return{states:{step:null==r?void 0:r.replace("/",""),hideSteps:n.hideSteps,disabled:V,participantTypeDisabled:V||!!j,loading:h||E||S,urlLoading:f,loadingError:!!(null==C?void 0:C.message),formState:{participantType:P,taxFormExpired:Te.includes(k),errors:A},docusignStatus:k,documentType:H,documentTypeString:W(H),showExitButton:R,showModal:L},data:{taxForm:H,documentUrl:null===(o=null==x?void 0:x.createImpactPublisherTaxDocument)||void 0===o?void 0:o.documentUrl},callbacks:{setDocusignStatus:I,completeDocument:async()=>{if(a)try{M(!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(U)),F(!0)}catch(e){q({general:!0})}finally{M(!1)}},onExit:()=>{window.location.hash?window.location.hash="":m(n.overrideNextStep||(null==v?void 0:v.withdrawalSettings)||!(null==v?void 0:v.brandedSignup)?"/dashboard":"/4")},setParticipantType:T,onModalClose:()=>_(!1),onModalOpen:()=>_(!0)},text:e.getTextProps()}}(this),a=e(Be,{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(Fe,{callbacks:o.callbacks,states:o.states,text:o.text,slots:{docusignIframeSlot:t?Ue({callbacks:o.callbacks}):a}}))}get el(){return o(this)}},Ue=({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")))),_e=P({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)"}}}),We=_e.toString(),ze=t=>{var i;const{states:o,states:{formState:a},callbacks:n,text:r,refs:l,slots:s}=t,{classes:d}=_e;return e("sl-form",{part:"form-container",class:d.FormWrapper,"onSl-submit":n.onSubmit,ref:e=>l.formRef.current=e,novalidate:!0},e("style",{type:"text/css"},We,"\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:d.TextContainer},e("div",null,!o.hideSteps&&e("p",null," ",I.formatMessage({id:"formStep",defaultMessage:r.formStep},{step:o.step,count:A})),e("h3",null,r.indirectTax),e("p",{class:d.PageDescriptionText},r.taxAndPayoutsDescription),e("p",{class:d.DescriptionText},r.indirectTaxDescription)),o.loadingError&&e("div",null,e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},r.error.loadingErrorAlertHeader),I.formatMessage({id:"loadingErrorAlertDescription",defaultMessage:r.error.loadingErrorAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},r.supportLink)}))),(null===(i=a.errors)||void 0===i?void 0:i.general)&&e("sqm-form-message",{type:"error"},e("p",{part:"alert-title"},r.error.generalTitle),I.formatMessage({id:"generalDescription",defaultMessage:r.error.generalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},r.supportLink)})),o.isPartnerLegacy&&e("sqm-form-message",{loading:o.loading,type:"info"},e("p",{part:"alert-title"},r.isPartnerAlertHeader),I.formatMessage({id:"isPartnerAlertDescription",defaultMessage:r.isPartnerAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},r.supportLink)})),e("div",null,e("h4",null,r.indirectTaxDetails))),o.loading?e("sl-spinner",{style:{fontSize:"50px",margin:"40px"}}):e("div",null,e("div",{class:d.RadioContainer},e("div",{class:d.InnerRadioContainer},e("sl-radio",{exportparts:"base: radio-base",name:"/checked",value:"notRegistered",id:"notRegistered",checked:"notRegistered"===a.checked,onInput:()=>n.onChange("notRegistered"),disabled:o.disabled},e("div",{class:d.RadioContent},r.notRegistered,e("p",{class:d.DescriptionText},r.notRegisteredSubtext))),e("sl-radio",{exportparts:"base: radio-base",name:"/checked",value:"otherRegion",id:"otherRegion",checked:"otherRegion"===a.checked,onInput:()=>n.onChange("otherRegion"),disabled:o.disabled},e("div",{class:d.RadioContent},r.otherRegion,e("p",{class:d.DescriptionText},r.otherRegionSubtext))),s.registeredInDifferentCountryDetailsSlot)),e("sqm-form-message",{type:"info"},I.formatMessage({id:"cannotChangeInfoAlert",defaultMessage:r.cannotChangeInfoAlert},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},r.supportLink)})),e("div",{class:d.BtnContainer},e("sl-button",{class:d.PrimaryButton,type:"primary",disabled:o.disabled,submit:!0,exportparts:"base: primarybutton-base"},r.continueButton),e("sl-button",{class:d.SecondaryButton,type:"text",disabled:o.disabled,onClick:n.onBack,exportparts:"base: secondarybutton-base"},r.backButton))))},je=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.",this.demoData=void 0,x(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=m()?function(e){const t=p(N),[i,o]=g("otherRegion"),[a,n]=g({});return k({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:j,countries:[{countryCode:"CA",displayName:"Canada"},{countryCode:"ES",displayName:"Spain"},{countryCode:"UK",displayName:"United Kingdom"},{countryCode:"US",displayName:"United States"}],provinces:H},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||{})}(this):ee(this),o=e(K,{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(ze,{callbacks:t.callbacks,states:t.states,refs:t.refs,text:t.text,slots:{registeredInDifferentCountryDetailsSlot:o}}))}},He=C("sq:useInvoiceTable"),Ye=a.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 Ve(t,i){const o=t.tagName.toLowerCase();let a;await customElements.whenDefined(o);try{a=i()}catch(t){return He("label promise failed",t),e("span",null)}try{return await a}catch(t){He("Error rendering label",t);const i=de(t);return e("details",null,e("summary",null,"Error"),i)}}const Oe=class{constructor(e){t(this,e),this.programId=void 0,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",this.demoData=void 0,x(this)}disconnectedCallback(){}render(){const t=e($e,{emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText}),i=e(Ge,null),{states:o,data:a,callbacks:n,elements:s}=m()?function(e,t,i){const[o,a]=w(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),n=le(),r=S((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||((e=4)=>({data:[...Array(e)].map((()=>(()=>{const e=me.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]),l=ce();return b((()=>{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",Ve(e,(()=>e.renderLabel(t)))}return Ve(e,(()=>e.renderLabel()))})),l=null==i?void 0:i.map((async e=>{const t=null==o?void 0:o.map((async t=>Ve(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:ue(o),loading:!1,page:0})}(l)}),[null==r?void 0:r.data,l,n]),k({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||{})}(this,t,i):function(t,i,o){var a;const n=l(),s=r(),[d,u]=w(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{envelope:c,states:m,callbacks:p}=v(Ye,(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)),h=le(),y=ce(),f=null==c?void 0:c.data;b((()=>{u({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=>Ve(e,(()=>e.renderLabel())))),a=null==f?void 0:f.map((async t=>{var o,a,n;const r={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},l=null==i?void 0:i.map((async t=>Ve(t,(()=>t.renderCell(r,{locale:s},e)))));return await Promise.all(l)})),n=a&&(await Promise.all(a)).filter((e=>e));u({rows:n});const r=o&&await Promise.all(o);u({columns:r,loading:!1,page:m.currentPage})}(y)}),[c,y,h]);const g=!(null===(a=null==d?void 0:d.rows)||void 0===a?void 0:a.length)&&!(null==f?void 0:f.length);return{states:{hasNext:m.currentPage<m.pageCount-1,hasPrev:m.currentPage>0,show:m.loading||d.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:d.columns,rows:d.rows,emptyElement:i,loadingElement:o},callbacks:{nextPage:()=>{p.setCurrentPage(m.currentPage+1)},prevPage:()=>{p.setCurrentPage(m.currentPage-1)}}}}(this,t,i);return se([this.perPage]),e(X,{header:this.header,description:this.description},e(re,{states:o,data:a,callbacks:n,elements:s}))}};function $e(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 Ge(){return e("slot",{name:"loading"},e(Ke,null),e(Ke,null),e(Ke,null),e(Ke,null))}function Ke(){return e("sqm-table-row",null,e("sqm-table-cell",{colspan:6},e("sqm-skeleton",null)))}const Xe=class{constructor(e){t(this,e),this.columnTitle=void 0,this.property=void 0,x(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 se([this.columnTitle,this.property]),e(i,{style:{display:"none"}},e("slot",null))}},Je=class{constructor(e){t(this,e),this.columnTitle=void 0,x(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 se([this.columnTitle]),e(i,{style:{display:"none"}},e("slot",null))}},Ze=class{constructor(e){t(this,e),x(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))}},Qe=()=>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"})),et={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 tt(t){const i=P(et),o=i.toString(),{classes:a}=i,{states:n,text:r}=t,l=I.formatMessage({id:"thresholdText",defaultMessage:r.thresholdPayoutText},{thresholdBalance:n.thresholdBalance}),s="thresholdPayout"===n.badgeStatus?n.thresholdBalance?l:"":n.belowPayoutThreshold?"":n.nextPayoutDate,d="thresholdPayout"!==n.badgeStatus&&!n.belowPayoutThreshold;return e("div",{class:a.Container},e("style",{type:"text/css"},o),n.loading?e("div",{class:a.CardContainer},e("div",{class:a.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:a.CardContainer},e("div",{class:a.StatusContainer},e("p",{class:a.SubduedRegularText},s),d&&((t,i)=>{const o="nextPayout"===t?a.SuccessBadge:"payoutToday"===t?a.PrimaryBadge:a.DangerBadge,n=I.formatMessage({id:"badgeText",defaultMessage:i},{badgeText:t});return e("sl-badge",{pill:!0,class:o},n)})(n.badgeStatus,r.statusBadgeText)),e("h1",{class:a.MainCurrency},n.balance),"PAYPAL"===n.payoutType?e("div",{class:a.PaypalDetailsContainer},e("span",{class:a.PaypalEmail},n.paypalEmailAddress),e(Qe,null)):e("div",{class:a.AccountDetailsContainer},e("span",null,n.cardNumberPreview?`${r.accountText} ${n.cardNumberPreview}`:r.payoutMissingInformationText))))}const it=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="{}",this.demoData=void 0,x(this)}disconnectedCallback(){}getTextProps(){return{...T(this)}}render(){const t=m()?function(e){return k({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||{})}(this):function(e){var t,i,o,a,n,r,l,s,d;const{data:c,loading:m}=u(B),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=me.DateTime.now().day;return"1"===t?1===o?me.DateTime.now().toFormat("LLL dd, yyyy"):me.DateTime.now().plus({month:1}).startOf("month").toFormat("LLL dd, yyyy"):"15"===t?o<=15?me.DateTime.now().plus({day:15-o}).toFormat("LLL dd, yyyy"):me.DateTime.now().plus({month:1}).startOf("month").plus({day:14}).toFormat("LLL dd, yyyy"):void I.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=me.DateTime.now().toFormat("LLL dd, yyyy")===h;return{states:{loading:m,thresholdBalance:Y(p),belowPayoutThreshold:V(p),balance:null===(a=null==p?void 0:p.payoutsAccount)||void 0===a?void 0:a.balance,badgeStatus:"FIXED_DAY"!==(null===(n=null==p?void 0:p.withdrawalSettings)||void 0===n?void 0:n.paymentSchedulingType)?"thresholdPayout":v?"payoutToday":"nextPayout",payoutType:null===(r=null==p?void 0:p.withdrawalSettings)||void 0===r?void 0:r.paymentMethod,error:null===(l=null==p?void 0:p.payoutsAccount)||void 0===l?void 0:l.hold,paypalEmailAddress:null===(s=null==p?void 0:p.withdrawalSettings)||void 0===s?void 0:s.paypalEmailAddress,cardNumberPreview:null===(d=null==p?void 0:p.withdrawalSettings)||void 0===d?void 0:d.bankAccountNumber,nextPayoutDate:h},text:e.getTextProps()}}(this);return e(i,null,e(tt,{text:t.text,states:t.states}))}},ot=a.gql`
71
+ query getTenantSettings {
72
+ tenantSettings {
73
+ enforceUsTaxCompliance
74
+ }
75
+ }
76
+ `;function at(e,t){if(e)return new Intl.DisplayNames([(null==t?void 0:t.replace("_","-"))||"en-US"],{type:"region"}).of([e])}function nt(e){var t;if(!e)return"";const i=e.replace("_","");return null===(t=[...H,...j].find((e=>e.regionCode===i)))||void 0===t?void 0:t.displayName}function rt(e){var t;const i=[...H,...j];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)&&J[e.indirectTaxCountryCode]||"Indirect Tax"}const lt=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.demoData=void 0,this.stateController="{}",x(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=m()?function(t){const i=_(t.stateController),o=i&&"object"==typeof i&&!Array.isArray(i)?i:{};return k({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||o)}(this):(e=>{var t,i,o,a,n,l,s,d,c,m,h,v,f;const x=p(N),C=p(D),[w,S]=g(!1),{render:k,loading:I}=te(),{data:P}=y(ot,{}),T=r();b((()=>{C({}),window.location.hash&&(C({overrideNextStep:"/dashboard",overrideBackStep:"/dashboard",hideSteps:!0}),x(`/${window.location.hash.replace("#","")}`))}),[]);const{data:A,loading:q,errors:E,refetch:M}=u(B),R=null===(i=null===(t=null==A?void 0:A.user)||void 0===t?void 0:t.impactConnection)||void 0===i?void 0:i.publisher,F=null==R?void 0:R.requiredTaxDocumentType,L=null===(o=null==R?void 0:R.currentTaxDocument)||void 0===o?void 0:o.dateCreated,U=L?me.DateTime.fromMillis(L).toFormat("LLL dd, yyyy"):void 0,_=null===(a=H.find((e=>{var t;return e.regionCode===(null===(t=null==R?void 0:R.taxInformation)||void 0===t?void 0:t.indirectTaxRegion)})))||void 0===a?void 0:a.displayName,z=A?ie(A):null;b((()=>{const e=()=>M();return window.addEventListener(oe,e),()=>{window.removeEventListener(oe,e)}}),[]);const j=null===(n=null==P?void 0:P.tenantSettings)||void 0===n?void 0:n.enforceUsTaxCompliance;return{states:{dateSubmitted:U,documentType:F,canEditPayoutInfo:null==R?void 0:R.brandedSignup,documentTypeString:W(F),status:null===(l=null==R?void 0:R.currentTaxDocument)||void 0===l?void 0:l.status,subRegion:nt(null===(s=null==R?void 0:R.taxInformation)||void 0===s?void 0:s.indirectTaxRegion),subRegionTaxNumber:null===(d=null==R?void 0:R.taxInformation)||void 0===d?void 0:d.withholdingTaxId,qstNumber:null===(c=null==R?void 0:R.taxInformation)||void 0===c?void 0:c.additionalTaxId,indirectTaxType:rt(null==R?void 0:R.taxInformation),indirectTaxNumber:null===(m=null==R?void 0:R.taxInformation)||void 0===m?void 0:m.indirectTaxId,isBusinessEntity:"W8BENE"===(null==R?void 0:R.requiredTaxDocumentType),province:_,country:at(null===(h=null==R?void 0:R.taxInformation)||void 0===h?void 0:h.indirectTaxCountryCode,T),notRegistered:!(null===(v=null==R?void 0:R.taxInformation)||void 0===v?void 0:v.indirectTaxId),noFormNeeded:!F,disabled:q,loading:q,loadingError:!!(null==E?void 0:E.message),showNewFormDialog:w,hasHold:!!(null===(f=null==R?void 0:R.payoutsAccount)||void 0===f?void 0:f.hold),payoutStatus:z,belowPayoutThreshold:V(R),minPayoutAmount:Y(R),veriffLoading:I,enforceUsTaxComplianceOption:j},callbacks:{onClick:()=>S(!0),onVerifyClick:()=>k(),onEditPayoutInfo:()=>{C({overrideNextStep:"/dashboard",overrideBackStep:"/dashboard",hideSteps:!0}),x("/4")},onNewFormCancel:()=>S(!1),onNewFormClick:()=>{S(!1),C({overrideNextStep:"/dashboard",overrideBackStep:"/dashboard",hideSteps:!0}),x("/3")}},text:e.getTextProps()}})(this);return e(i,null,e(Z,{callbacks:t.callbacks,states:t.states,text:t.text,slots:{payoutDetailsCardSlot:e("sqm-payout-details-card",{...this.getTextProps()})}}))}},st=a.gql`
77
+ query getIndirectTaxCountryCode {
78
+ tenantSettings {
79
+ impactBrandCountryCode
80
+ impactBrandIndirectTaxCountryCode
81
+ }
82
+ }
83
+ `;const dt=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",this.demoData=void 0,x(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=m()?function(e){const t=p(N);return k({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||{})}(this):function(e){var t,i,o,a,n,r,m,p,h,v,x,C,w,k,I,P,T;const A=f(void 0),E=f(void 0),L=f(null),_=d(D),W=d(q),[j,H]=s(N),[Y,V]=s(M),K=l(),[X,{loading:J}]=c(ae),[Z,{loading:Q}]=c(ne),{data:ee}=y(st,{}),{data:te,loading:ie,refetch:oe,errors:re}=u(B),le=d(R),se=S((()=>[...le||[]].sort(((e,t)=>e.displayName.localeCompare(t.displayName)))),[le]),[de,ue]=g(""),[ce,me]=g(""),[pe,he]=g(W||[]),[ve,ye]=g(W||[]),[fe,ge]=g(""),[be,xe]=g(se||[]),[Ce,we]=g({});b((()=>{window.location.hash=""}),[]),b((()=>{var e,t,i,o,a,n,r,l,s,d,u,c,m,p;const h=null==te?void 0:te.user;if(!h||"/1"!==j)return;if(O(Y))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)?V({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==Y?void 0:Y.email)||V({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})}),[te,j,Y]),b((()=>{(null==W?void 0:W.length)&&(""===de.trim()?he(W||[]):he(W.filter((e=>e.displayName.toLowerCase().includes(de.toLowerCase())))||[]))}),[de,W]),b((()=>{(null==W?void 0:W.length)&&(""===ce.trim()?ye(W||[]):ye(W.filter((e=>e.displayName.toLowerCase().includes(ce.toLowerCase())))||[]))}),[ce,W]),b((()=>{(null==se?void 0:se.length)&&(""===fe.trim()?xe(se||[]):xe(se.filter((e=>e.currencyCode.toLowerCase().includes(fe.toLowerCase())))||[]))}),[fe,se]);const Se=null===(t=null==ee?void 0:ee.tenantSettings)||void 0===t?void 0:t.impactBrandIndirectTaxCountryCode,ke=!!Se,Ie=["ES","AU","US","CA"].includes(Y.countryCode),Pe=Ie?G[null==Y?void 0:Y.countryCode]:{};return{setStep:H,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&&F.set(a,i,e)}t.required&&(!n||"string"==typeof n&&""===n.trim())&&F.set(a,i,e.fieldRequiredError),F.set(o,i,n)})),Object.keys(a).length)return void we(a);const{allowBankingCollection:n,...r}=o,l=$(r.phoneNumberCountryCode,r.phoneNumber);V({...Y,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;const a={user:{id:K.id,accountId:K.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:$(e.phoneNumberCountryCode,e.phoneNumber),phoneNumberCountryCode:e.phoneNumberCountryCode},n=null==te?void 0:te.user;let r,l=null;if("STARTED"===(null===(t=null==n?void 0:n.impactConnection)||void 0===t?void 0:t.connectionStatus)?(l=await Z({vars:a}),r=null==l?void 0:l.completeImpactConnection):(l=await X({vars:a}),r=null==l?void 0:l.createImpactConnection),!l||(null==l?void 0:l.message))throw new Error;if(!(null==r?void 0:r.success))throw console.error("Failed to create Impact connection: ",null==r?void 0:r.validationErrors),new Error;await oe();const s=null===(o=null===(i=null==r?void 0:r.user)||void 0===i?void 0:i.impactConnection)||void 0===o?void 0:o.publisher,d=z(null==s?void 0:s.requiredTaxDocumentType)&&(null==s?void 0:s.currentTaxDocument);return window.dispatchEvent(new Event(U)),{resultPublisher:s,hasValidCurrentDocument:d}}({...o,phoneNumber:l});return void H((null==e?void 0:e.requiredTaxDocumentType)&&!t?"/3":(null==e?void 0:e.brandedSignup)?"/4":"/dashboard")}catch(e){return void we({general:!0})}H(_.overrideNextStep||s?"/3":"/2")},text:e.getTextProps(),callbacks:{setCurrencySearch:ge,setCountrySearch:ue,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"),V({...Y,[e]:a}),"countryCode"===e&&(E.current.value=a,A.current.value="")}},refs:{formRef:L,currencyRef:A,phoneCountryRef:E},data:{currencies:be,countries:pe,phoneCountries:ve,allCurrencies:se,allCountries:W,regionLabelEnum:null==Pe?void 0:Pe.labelEnum,regions:(null==Pe?void 0:Pe.regions)||[],partnerData:null===(o=null===(i=null==te?void 0:te.user)||void 0===i?void 0:i.impactConnection)||void 0===o?void 0:o.publisher,userData:null===(n=null===(a=null==te?void 0:te.user)||void 0===a?void 0:a.impactConnection)||void 0===n?void 0:n.user},states:{step:null==j?void 0:j.replace("/",""),hideState:!Ie,hideSteps:!!_.hideSteps,disabled:ie||J||Q,loadingError:!!(null==re?void 0:re.message),loading:ie||J||Q,isPartner:!!(null===(m=null===(r=null==te?void 0:te.user)||void 0===r?void 0:r.impactConnection)||void 0===m?void 0:m.publisher),isUser:!!(null===(h=null===(p=null==te?void 0:te.user)||void 0===p?void 0:p.impactConnection)||void 0===h?void 0:h.user),isUserLegacy:!!(null===(x=null===(v=null==te?void 0:te.user)||void 0===v?void 0:v.impactConnection)||void 0===x?void 0:x.user)&&"STARTED"!==(null===(w=null===(C=null==te?void 0:te.user)||void 0===C?void 0:C.impactConnection)||void 0===w?void 0:w.connectionStatus),isPartnerLegacy:!!(null===(I=null===(k=null==te?void 0:te.user)||void 0===k?void 0:k.impactConnection)||void 0===I?void 0:I.publisher)&&"STARTED"!==(null===(T=null===(P=null==te?void 0:te.user)||void 0===P?void 0:P.impactConnection)||void 0===T?void 0:T.connectionStatus),formState:{...Y,errors:Ce}}}}(this);return e(Q,{data:t.data,states:t.states,callbacks:{...t.callbacks,onSubmit:t.onSubmit},text:t.text,refs:t.refs})}};export{Se as sqm_banking_info_form,Le as sqm_docusign_form,je as sqm_indirect_tax_form,Oe as sqm_invoice_table,Xe as sqm_invoice_table_data_column,Je as sqm_invoice_table_date_column,Ze as sqm_invoice_table_download_column,it as sqm_payout_details_card,lt as sqm_tax_and_cash_dashboard,dt as sqm_user_info_form}
@@ -0,0 +1 @@
1
+ function e(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function r(e){return e&&e.sensitive?"":"i"}function t(t,n,i){return function(t,n,i){void 0===i&&(i={});for(var f=i.strict,a=void 0!==f&&f,o=i.start,u=void 0===o||o,v=i.end,p=void 0===v||v,s=i.encode,E=void 0===s?function(e){return e}:s,d=i.delimiter,l=void 0===d?"/#?":d,x=i.endsWith,w="[".concat(e(void 0===x?"":x),"]|$"),c="[".concat(e(l),"]"),y=u?"^":"",A=0,R=t;A<R.length;A++){var T=R[A];if("string"==typeof T)y+=e(E(T));else{var g=e(E(T.prefix)),C=e(E(T.suffix));if(T.pattern)if(n&&n.push(T),g||C)if("+"===T.modifier||"*"===T.modifier){var h="*"===T.modifier?"?":"";y+="(?:".concat(g,"((?:").concat(T.pattern,")(?:").concat(C).concat(g,"(?:").concat(T.pattern,"))*)").concat(C,")").concat(h)}else y+="(?:".concat(g,"(").concat(T.pattern,")").concat(C,")").concat(T.modifier);else{if("+"===T.modifier||"*"===T.modifier)throw new TypeError('Can not repeat "'.concat(T.name,'" without a prefix and suffix'));y+="(".concat(T.pattern,")").concat(T.modifier)}else y+="(?:".concat(g).concat(C,")").concat(T.modifier)}}if(p)a||(y+="".concat(c,"?")),y+=i.endsWith?"(?=".concat(w,")"):"$";else{var m=t[t.length-1],N="string"==typeof m?c.indexOf(m[m.length-1])>-1:void 0===m;a||(y+="(?:".concat(c,"(?=").concat(w,"))?")),N||(y+="(?=".concat(c,"|").concat(w,")"))}return new RegExp(y,r(i))}(function(r,t){void 0===t&&(t={});for(var n=function(e){for(var r=[],t=0;t<e.length;){var n=e[t];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)r.push({type:"CHAR",index:t,value:e[t++]});else{var i=1,f="";if("?"===e[o=t+1])throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;)if("\\"!==e[o]){if(")"===e[o]){if(0==--i){o++;break}}else if("("===e[o]&&(i++,"?"!==e[o+1]))throw new TypeError("Capturing groups are not allowed at ".concat(o));f+=e[o++]}else f+=e[o++]+e[o++];if(i)throw new TypeError("Unbalanced pattern at ".concat(t));if(!f)throw new TypeError("Missing pattern at ".concat(t));r.push({type:"PATTERN",index:t,value:f}),t=o}else{for(var a="",o=t+1;o<e.length;){var u=e.charCodeAt(o);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;a+=e[o++]}if(!a)throw new TypeError("Missing parameter name at ".concat(t));r.push({type:"NAME",index:t,value:a}),t=o}else r.push({type:"CLOSE",index:t,value:e[t++]});else r.push({type:"OPEN",index:t,value:e[t++]});else r.push({type:"ESCAPED_CHAR",index:t++,value:e[t++]});else r.push({type:"MODIFIER",index:t,value:e[t++]})}return r.push({type:"END",index:t,value:""}),r}(r),i=t.prefixes,f=void 0===i?"./":i,a=t.delimiter,o=void 0===a?"/#?":a,u=[],v=0,p=0,s="",E=function(e){if(p<n.length&&n[p].type===e)return n[p++].value},d=function(e){var r=E(e);if(void 0!==r)return r;var t=n[p],i=t.index;throw new TypeError("Unexpected ".concat(t.type," at ").concat(i,", expected ").concat(e))},l=function(){for(var e,r="";e=E("CHAR")||E("ESCAPED_CHAR");)r+=e;return r},x=function(r){var t=u[u.length-1],n=r||(t&&"string"==typeof t?t:"");if(t&&!n)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!n||function(e){for(var r=0,t=o;r<t.length;r++)if(e.indexOf(t[r])>-1)return!0;return!1}(n)?"[^".concat(e(o),"]+?"):"(?:(?!".concat(e(n),")[^").concat(e(o),"])+?")};p<n.length;){var w=E("CHAR"),c=E("NAME"),y=E("PATTERN");if(c||y)-1===f.indexOf(R=w||"")&&(s+=R,R=""),s&&(u.push(s),s=""),u.push({name:c||v++,prefix:R,suffix:"",pattern:y||x(R),modifier:E("MODIFIER")||""});else{var A=w||E("ESCAPED_CHAR");if(A)s+=A;else if(s&&(u.push(s),s=""),E("OPEN")){var R=l(),T=E("NAME")||"",g=E("PATTERN")||"",C=l();d("CLOSE"),u.push({name:T||(g?v++:""),pattern:T&&!g?x(R):g,prefix:R,suffix:C,modifier:E("MODIFIER")||""})}else d("END")}}return u}(t,i),n,i)}function n(e,i,f){return e instanceof RegExp?function(e,r){if(!r)return e;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=t.exec(e.source);i;)r.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=t.exec(e.source);return e}(e,i):Array.isArray(e)?function(e,t,i){var f=e.map((function(e){return n(e,t,i).source}));return new RegExp("(?:".concat(f.join("|"),")"),r(i))}(e,i,f):t(e,i,f)}export{n as p}
@@ -0,0 +1 @@
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(r=0)),r)try{if(n=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;a=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1];i=l;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(l);break}if(i[2])r.ops.pop();r.trys.pop();continue}l=t.call(e,r)}catch(e){l=[6,e];a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-8740794e.system.js","./p-11028f98.system.js","./p-643a756b.system.js","./p-edc8d9bc.system.js","./p-8886a874.system.js","./p-6cdde5e8.system.js","./p-6f66bb97.system.js","./p-c50c206e.system.js","./p-cb714df1.system.js","./p-0bdacc2d.system.js","./p-6333265f.system.js","./p-487dac4b.system.js","./p-dd7e8c95.system.js","./p-04eaa3bb.system.js","./p-8a6494c7.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,d,u,c,f,v,p,h,E,m,_,g,T,N,D,P;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.i},function(e){s=e.n;l=e.i;o=e.u;d=e.j},function(e){u=e.d},function(e){c=e.G},function(e){f=e.a;v=e.u},function(e){p=e.u;h=e.t;E=e.d},function(e){m=e.u},function(e){_=e.l},function(e){g=e.g},function(e){T=e.l},function(e){N=e.i},function(e){D=e.c},function(e){P=e.T},function(){}],execute:function(){var y=function(e){if(e===void 0){e=4}var t=__spreadArray([],Array(e),true).map((function(){return R()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var x=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var A=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var I=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var R=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:A[Math.floor(Math.random()*A.length)],lastName:I[Math.floor(Math.random()*I.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?_.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:_.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:x[Math.floor(Math.random()*x.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},g()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:x[Math.floor(Math.random()*x.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:x[Math.floor(Math.random()*x.length)],type:"CREDIT",value:1},depth:1}]}}};var b=e("sqm_referral_table",function(){function e(e){t(this,e);this.programId=undefined;this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;this.demoData=undefined;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(w,null);var t=r(S,null);var n=i()?L(this,e,t):p(this,e,t),a=n.states,s=n.data,l=n.callbacks,o=n.elements;f([this.showReferrer,this.perPage]);return r(c,{states:a,data:s,callbacks:l,elements:o})};return e}());function w(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function S(){return r("slot",{name:"loading"},r(C,null),r(C,null),r(C,null),r(C,null))}function C(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sqm-skeleton",null)))}function L(e,t,r){var n=l((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var s=v();var c=o((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||y(e.perPage)}),[e.perPage]);var f=m();function p(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,d,u,f,v,p,m,_,g;var T=this;return __generator(this,(function(N){switch(N.label){case 0:a=c===null||c===void 0?void 0:c.referredByReferral;s=e.showReferrer&&!!((r=c===null||c===void 0?void 0:c.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=c.data.slice(0,e.perPage-1)}else{n=c.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(T,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,h(e,(function(){return e.renderLabel(t)}))]}return[2,h(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];u=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(T,void 0,void 0,(function(){return __generator(this,(function(t){return[2,h(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(u)];case 1:d=N.sent();N.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(T,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,h(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));p=f;if(!p)return[3,4];m=[[d]];return[4,Promise.all(f)];case 3:p=__spreadArray.apply(void 0,m.concat([N.sent(),true])).filter((function(e){return e}));N.label=4;case 4:v=p;i({rows:v});g=o;if(!g)return[3,6];return[4,Promise.all(o)];case 5:g=N.sent();N.label=6;case 6:_=g;i({columns:_,dropZoneColumns:E(l),loading:false,page:0});return[2]}}))}))}d((function(){i({loading:true});(c===null||c===void 0?void 0:c.data)&&p(f)}),[c===null||c===void 0?void 0:c.data,f,s]);var _=u({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:__assign(__assign({},a),{emptyElement:t,loadingElement:r})},e.demoData||{});return _}var O=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;this.innerTemplate=undefined;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var M=e("sqm_referral_table_column",function(){function e(e){t(this,e);this.columnTitle=undefined;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){f([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var G=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.date=undefined;this.locale="en";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=_.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(T(this.locale)).toLocaleString(_.DateTime.DATE_MED);return t};return e}());var U=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t===null||t===void 0?void 0:t.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){f([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var B=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.rewards=undefined;this.taxConnection=undefined;this.hideDetails=undefined;this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PROCESSING {Payment Processing} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText=undefined;this.rewardReceivedText=undefined;this.expiringText=undefined;this.pendingForText="{status} for {date}";this.deniedHelpText=undefined;this.locale="en"}e.prototype.render=function(){var e=this;var t;N.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"".concat(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{border:"var(--sqm-border-thickness) solid var(--sqm-border-color)",opacity:"1"},"&::part(summary-icon)":{display:"".concat(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-informative-color-icon)",color:"var(--sl-color-white)"}},DangerBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-danger-color-icon)",color:"var(--sl-color-white)"}},WarningBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-warning-color-icon)",color:"var(--sl-color-white)"}},SuccessBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-success-color-icon)",color:"var(--sl-color-white)"}}};var a=D(n);var i=a.toString();var s=function(e){switch(e){case"primary":return a.classes.RedeemBadge;case"danger":return a.classes.DangerBadge;case"success":return a.classes.SuccessBadge;case"warning":case"info":return a.classes.WarningBadge;default:return a.classes.WarningBadge}};var l=function(t,r){var n,a,i,s,l,o,d,u,c,f,v,p,h,E,m,_,g;var T=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION","PROCESSING"];if(((a=(n=t.referral)===null||n===void 0?void 0:n.fraudData)===null||a===void 0?void 0:a.moderationStatus)!=="APPROVED"){if(((s=(i=t.referral)===null||i===void 0?void 0:i.fraudData)===null||s===void 0?void 0:s.moderationStatus)==="PENDING")return"PENDING_REVIEW";if(((o=(l=t.referral)===null||l===void 0?void 0:l.fraudData)===null||o===void 0?void 0:o.moderationStatus)==="DENIED")return"DENIED"}var N=t.rewardedCash;if(N){if(!((d=e.taxConnection)===null||d===void 0?void 0:d.connected)||((u=e.taxConnection)===null||u===void 0?void 0:u.connected)&&!((f=(c=e.taxConnection)===null||c===void 0?void 0:c.publisher)===null||f===void 0?void 0:f.withdrawalSettings))return"PENDING_PARTNER_CREATION"}var D=(v=t.partnerFundsTransfer)===null||v===void 0?void 0:v.status;if(t.partnerFundsTransfer){if(D==="REVERSED")return"PAYOUT_CANCELLED";if(D==="OVERDUE")return"PAYOUT_FAILED"}if(t.partnerFundsTransfer){if(t.partnerFundsTransfer.dateScheduled&&t.partnerFundsTransfer.dateScheduled>Date.now()){return"PROCESSING"}if(D==="TRANSFERRED"||D==="NOT_YET_DUE"||t.partnerFundsTransfer.dateScheduled&&t.partnerFundsTransfer.dateScheduled<Date.now()&&D!=="OVERDUE"&&D!=="REVERSED")return"PAYOUT_APPROVED"}if((p=t===null||t===void 0?void 0:t.pendingReasons)===null||p===void 0?void 0:p.includes("US_TAX")){if(!(r===null||r===void 0?void 0:r.taxHandlingEnabled))return"PENDING";if(!(r===null||r===void 0?void 0:r.connected))return"PENDING_PARTNER_CREATION";if((h=r===null||r===void 0?void 0:r.publisher)===null||h===void 0?void 0:h.requiredTaxDocumentType){if(!((E=r===null||r===void 0?void 0:r.publisher)===null||E===void 0?void 0:E.currentTaxDocument))return"PENDING_TAX_SUBMISSION";var P=r.publisher.currentTaxDocument.status;if(P==="INACTIVE"||P==="INVALID_W9_ELECTRONIC_DOCUMENT"||P==="INVALID_W9_ELECTRONIC_DOCUMENT_CHECK_INTERNAL")return"PENDING_NEW_TAX_FORM";if(P==="NOT_VERIFIED")return"PENDING_TAX_REVIEW"}if(!((m=r===null||r===void 0?void 0:r.publisher)===null||m===void 0?void 0:m.withdrawalSettings))return"PENDING_PARTNER_CREATION"}if(t.rewardedCash){if(!(r===null||r===void 0?void 0:r.connected)||(r===null||r===void 0?void 0:r.connected)&&!((_=r===null||r===void 0?void 0:r.publisher)===null||_===void 0?void 0:_.withdrawalSettings))return"PENDING_PARTNER_CREATION"}if((g=t===null||t===void 0?void 0:t.pendingReasons)===null||g===void 0?void 0:g.includes("MISSING_PAYOUT_CONFIGURATION")){return"PENDING_PARTNER_CREATION"}if(t.statuses.length===1)return t.statuses[0];return T.find((function(e){return t.statuses.includes(e)&&e}))};var o=function(e){switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":case"PROCESSING":return"warning";case"AVAILABLE":return"success"}};var d=function(t){return _.DateTime.fromMillis(t).setLocale(T(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n,u,c,f;var v=l(t,e.taxConnection);var p=o(v);var h=N.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:v});var E=N.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:v,scheduledPayoutDate:((n=t.partnerFundsTransfer)===null||n===void 0?void 0:n.dateScheduled)?(u=_.DateTime.fromMillis(t.partnerFundsTransfer.dateScheduled))===null||u===void 0?void 0:u.setLocale(T(e.locale)).toLocaleString(_.DateTime.DATE_MED):null});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(P,{type:"p"},r("span",{part:"sqm-cell-value",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},v==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:s(p),type:p,pill:true},N.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:h,date:d(t.dateScheduledFor)})):r("sl-badge",{class:s(p),type:p,pill:true},h),t.dateExpires&&v==="AVAILABLE"&&r("sl-badge",{class:s(p),type:"info",pill:true},e.expiringText," ".concat(d(t.dateExpires))))),r("div",null,v==="PENDING_REVIEW"&&((c=t.referral)===null||c===void 0?void 0:c.dateModerated)&&r("div",null,r(P,{type:"p"},E," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.referral.dateModerated).setLocale(T(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),v===""&&r("div",null,r(P,{type:"p"},E)),v==="PROCESSING"&&r("div",null,r(P,{type:"p"},E)),v==="PAYOUT_APPROVED"&&r("div",null,r(P,{type:"p"},E)),v==="PAYOUT_FAILED"&&r("div",null,r(P,{type:"p"},E)),v==="PAYOUT_CANCELLED"&&r("div",null,r(P,{type:"p"},E)),v==="PENDING_TAX_REVIEW"&&r("div",null,r(P,{type:"p"},E)),v==="PENDING_NEW_TAX_FORM"&&r("div",null,r(P,{type:"p"},E)),v==="PENDING_TAX_SUBMISSION"&&r("div",null,r(P,{type:"p"},E)),v==="PENDING_PARTNER_CREATION"&&r("div",null,r(P,{type:"p"},E)),v==="DENIED"&&((f=t.referral)===null||f===void 0?void 0:f.dateModerated)&&r("div",null,r(P,{type:"p"},E," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.referral.dateModerated).setLocale(T(e.locale)).toLocaleString(_.DateTime.DATE_MED)),".",e.deniedHelpText?" ".concat(e.deniedHelpText):"")),t.dateGiven&&r("div",null,r(P,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateGiven).setLocale(T(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),v==="EXPIRED"&&t.dateExpires&&r("div",null,r(P,{type:"p"},E," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),v==="CANCELLED"&&t.dateCancelled&&r("div",null,r(P,{type:"p"},E," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateCancelled).setLocale(T(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),v==="PENDING"&&t.dateScheduledFor&&r("div",null,r(P,{type:"p"},E," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateScheduledFor).setLocale(T(e.locale)).toLocaleString(_.DateTime.DATE_MED))))," ",v==="AVAILABLE"&&t.dateExpires&&r("div",null,r(P,{type:"p"},E," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},t.fuelTankCode))))}))};return e}());var k=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PROCESSING {Payment Processing} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.deniedHelpText="Contact support if you think this is a mistake.";this.hideDetails=false;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:t===null||t===void 0?void 0:t.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:t===null||t===void 0?void 0:t.locale,exportparts:"sqm-cell-value"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})]}))}))};e.prototype.render=function(){f([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var q={SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sqm-text-subdued)",margin:"0"},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-informative-color-icon)",color:"var(--sl-color-white)"}},DangerBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-danger-color-icon)",color:"var(--sl-color-white)"}},WarningBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-warning-color-icon)",color:"var(--sl-color-white)"}},SuccessBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-success-color-icon)",color:"var(--sl-color-white)"}}};var V=D(q);V.toString();var F=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e);this.statusText=undefined;this.fraudStatus=undefined;this.converted=undefined;this.statusSubText=undefined}e.prototype.render=function(){var e=this;var t=D(q);var n=t.toString();var a=function(t){if(t==="PENDING")return"warning";if(t==="DENIED")return"danger";if(e.converted)return"success";return"warning"};var i=function(e){switch(e){case"primary":return t.classes.RedeemBadge;case"danger":return t.classes.DangerBadge;case"success":return t.classes.SuccessBadge;case"warning":case"info":return t.classes.WarningBadge;default:return t.classes.WarningBadge}};return r("div",null,r("style",{type:"text/css"},n),r("sl-badge",{pill:true,type:a(this.fraudStatus),class:i(a(this.fraudStatus))},this.statusText),this.statusSubText?r("p",{class:t.classes.SubText},this.statusSubText):null)};return e}());var W=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";this.pendingReviewStatusText="Pending";this.deniedStatusText="Denied";this.pendingReviewStatusSubText="Awaiting review";this.deniedStatusSubText="Detected self-referral";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i;return __generator(this,(function(s){i=(t=e===null||e===void 0?void 0:e.fraudData)===null||t===void 0?void 0:t.moderationStatus;if(i==="DENIED"){n=this.deniedStatusText;a=this.deniedStatusSubText}else if(i==="PENDING"){n=this.pendingReviewStatusText;a=this.pendingReviewStatusSubText}else{n=e.dateConverted?this.convertedStatusText:this.inProgressStatusText}return[2,r("sqm-referral-table-status-cell",{"status-text":n,"status-sub-text":a,"fraud-status":i,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){f([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var X=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e);this.name=undefined}e.prototype.render=function(){return this.name};return e}());var Y=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Your Friend";this.deletedUser="Deleted User";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,d,u;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){u=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){u=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){u="".concat((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName," ").concat((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{u="".concat((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName," ").concat((d=e===null||e===void 0?void 0:e.referredUser)===null||d===void 0?void 0:d.lastName)}return[2,r("sqm-referral-table-user-cell",{name:u})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s="".concat((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName," ").concat((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){f([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
@@ -0,0 +1,13 @@
1
+ import{h as t,F as e,r as s}from"./p-834cd992.js";import{u as a,i as o,d as n,a as i,b as r,c as l,e as d,f as c}from"./p-3f9d4025.js";import{n as p,k as u}from"./p-056845fb.js";import{d as m}from"./p-df45273e.js";import{i as g}from"./p-fa2edc58.js";import{g as h}from"./p-9ec99ced.js";import{c as v}from"./p-af9d3491.js";import{R as f,a as x,S as y,u as C}from"./p-ce06d498.js";import{C as b}from"./p-6e00edce.js";import"./p-49b20dae.js";const T=v({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)"}}),P=T.toString();function k(s){const{states:a,callbacks:o,text:n,buttonType:i}=s,{onNext:r,onPrev:l}=o,{currentPage:d,totalPages:c,loading:p}=a;return 1===c?t(e,null):t("span",{class:T.classes.Container,part:"sqm-base"},t("style",{type:"text/css"},P),t("sl-button",{exportparts:`base: ${i}button-base`,onClick:l,part:"sqm-pagination-button",circle:!0,disabled:1===d},t("sl-icon",{name:"chevron-left",label:"Previous Page"})),p?t("div",{class:T.classes.SkeletonContainer},t("sl-skeleton",{height:"16px",width:"50%"})):t(e,null,t("div",{class:T.classes.TextContainer},n.paginationText)),t("sl-button",{exportparts:`base: ${i}button-base`,onClick:r,part:"sqm-pagination-button",circle:!0,disabled:d===c},t("sl-icon",{name:"chevron-right",label:"Previous Page"})))}const w=class{constructor(t){s(this,t),this.ignored=!0,this.paginationText="{currentPage} of {totalPages}",this.buttonType="secondary",this.demoData=void 0,p(this)}disconnectedCallback(){}render(){const e=o()?function(t){const[e,s]=u(1);return m({states:{currentPage:e,totalPages:5,loading:!1},buttonType:t.buttonType,callbacks:{onNext:()=>s(e+1),onPrev:()=>s(e-1)},text:{paginationText:g.formatMessage({id:"paginationText",defaultMessage:t.paginationText||"{currentPage} of {totalPages}"},{currentPage:e,totalPages:5})}},t.demoData||{})}(h(this)):function(t){var e;const s=a(f),o=s.states.currentPage+1,n=null===(e=s.states)||void 0===e?void 0:e.pageCount;return{states:{currentPage:o,totalPages:n,loading:s.states.loading},callbacks:{onNext:()=>{var t,e;return null===(t=s.callbacks)||void 0===t?void 0:t.setCurrentPage((null===(e=s.states)||void 0===e?void 0:e.currentPage)+1)},onPrev:()=>{var t,e;return null===(t=s.callbacks)||void 0===t?void 0:t.setCurrentPage((null===(e=s.states)||void 0===e?void 0:e.currentPage)-1)}},text:{paginationText:g.formatMessage({id:"paginationText",defaultMessage:t.paginationText},{currentPage:o,totalPages:n})}}}(h(this));return t(k,{...e})}},E=n.gql`
2
+ query getReferralCode($programId: ID) {
3
+ user: viewer {
4
+ ... on User {
5
+ referralCode(programId: $programId)
6
+ }
7
+ }
8
+ }
9
+ `,I=n.gql`
10
+ mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
11
+ createUserAnalyticsEvent(eventMeta: $eventMeta)
12
+ }
13
+ `,S=class{constructor(t){s(this,t),this.programId=void 0,this.tooltiptext="Copied to Clipboard",this.showNotificationText=!1,this.notificationText="You've copied this code before",this.tooltiplifespan=1e3,this.textAlign="left",this.copyButtonLabel="Copy Code",this.buttonStyle="icon",this.backgroundColor=void 0,this.borderColor=void 0,this.textColor=void 0,this.borderRadius=void 0,this.buttonType="primary",this.demoData=void 0,p(this)}disconnectedCallback(){}render(){const e=h(this),s=o()?function(t){const[e,s]=u(!1),a="REFERRALCODE001";return m({copyString:a,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:!1,rewardStatus:"AVAILABLE",open:e,onClick:()=>{navigator.clipboard.writeText(a),s(!0),setTimeout((()=>s(!1)),t.tooltiplifespan)}},t.demoData||{})}(e):function(t){var e,s;const{programId:o=i()}=t,n=r(),p=l(),m=a(x),{data:g}=d(E,{programId:o},!(null==n?void 0:n.jwt)||void 0!==(null==m?void 0:m.referralCode)),[h]=c(I),[v]=c(y),f=null!==(s=(null==m?void 0:m.referralCode)||(null===(e=null==g?void 0:g.user)||void 0===e?void 0:e.referralCode))&&void 0!==s?s:"...",[C,b]=u(!1);return{...t,onClick:async function(){m&&(await v({referralCode:m.referralCode}),m.refresh()),navigator.clipboard.writeText(f),b(!0),setTimeout((()=>b(!1)),t.tooltiplifespan),h({eventMeta:{programId:o,id:null==n?void 0:n.id,accountId:null==n?void 0:n.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:p,shareMedium:"DIRECT"}}})},open:C,copyString:f,isCopied:null==m?void 0:m.isCopied,showNotificationText:t.showNotificationText&&!!(null==m?void 0:m.singleUse)}}(e);return t(b,{...s})}};function j(e){const{slots:s,titleText:a,states:o,textColor:n="var(--sqm-text-subdued)"}=e,i=v({Wrapper:{width:"100%",display:"flex",alignItems:"flex-start",justifyContent:"center",flexDirection:"column",gap:"var(--sl-spacing-large)",color:n},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"}}),r=i.toString();return t("div",{class:i.classes.Wrapper,part:"sqm-base"},t("style",{type:"text/css"},"\n :host {\n display: block;\n }\n :host([hidden]): {\n display: none;\n }\n ",r),t("div",{class:i.classes.HeaderContainer},t("h2",{class:i.classes.TitleText},a),!o.noCodes&&s.pagination),(e=>e.noCodes?s.empty:e.loading?t("slot",{name:"loading"},t("div",{class:i.classes.SkeletonContainer},t("sl-skeleton",{class:i.classes.SkeletonOne}))):t("div",{class:i.classes.Wrapper},t("div",{class:i.classes.ShareCodeContainer},s.shareCodes),t("div",{class:i.classes.ShareButtonContainer},s.shareButtons)))(o))}const R=class{constructor(t){s(this,t),this.titleText="Start sharing",this.textColor=void 0,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",this.programId=void 0,this.demoData=void 0,p(this)}disconnectedCallback(){}render(){const e=h(this),s=o()?function(t){return m({titleText:t.titleText,textColor:t.textColor,states:{noCodes:!1,loading:!1}},t.demoData||{})}(e):C(e),a={slots:{shareButtons:t("slot",{name:"shareButtons"}),shareCodes:t("slot",{name:"shareCodes"}),pagination:t("slot",{name:"pagination"}),empty:t(q,{headerText:this.emptyStateHeaderText,descriptionText:this.emptyStateDescriptionText,imageUrl:this.emptyStateImageUrl})},...s,loading:s.states.loading,noCodes:s.states.noCodes};return t(j,{...a})}};function q({headerText:e,descriptionText:s,imageUrl:a}){return t("slot",{name:"empty"},t("sqm-empty",{emptyStateHeader:e,emptyStateText:s,emptyStateImage:a}))}export{w as sqm_pagination,S as sqm_referral_code,R as sqm_referral_codes}
@@ -0,0 +1 @@
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};System.register(["./p-8740794e.system.js","./p-487dac4b.system.js","./p-a43a9fa9.system.js","./p-643a756b.system.js","./p-49d4188a.system.js","./p-6333265f.system.js","./p-11028f98.system.js","./p-dd7e8c95.system.js"],(function(t){"use strict";var e,n,s,i,o,a,r,c,l;return{setters:[function(t){e=t.h;n=t.r;s=t.c},function(t){i=t.i},function(t){o=t.o},function(t){a=t.n},function(t){r=t.P;c=t.a},function(t){l=t.g},function(){},function(){}],execute:function(){function p(t){var n=t.emptyStateHeader,s=t.emptyStateImage,a=t.emptyStateText,r=t.supportText,c=t.missingFeature,l=c===void 0?"":c;return e("sqm-portal-container",{padding:"large",gap:"medium",part:"sqm-base"},e("img",{style:{height:"100px",margin:"auto"},src:o(s,{height:200}),decoding:"async"}),e("sqm-titled-section",{style:{maxHeight:"400px"},"label-margin":"xxx-small","text-align":"center"},e("sqm-text",{slot:"label"},e("p",{part:"header-text"},n)),e("sqm-text",{slot:"content"},e("p",{part:"description-text"},i.formatMessage({id:"emptyStateText",defaultMessage:a},{supportText:e("a",{target:"_blank",href:"mailto:saasquatch-support@impact.com?subject=Next steps for ".concat(l," feature&body=Hi Support Team, %0D%0A\n %0D%0A \n I am interested to learn more about the ").concat(l," feature. Please let me know the next steps to access this feature, including any necessary plan upgrades.%0D%0A\n %0D%0A \n - Feature Interested In: ").concat(l,"%0D%0A\n - Company Name: [Please fill out your company name here]%0D%0A\n %0D%0A\n Thank you")},r)})))))}var f=t("sqm_empty",function(){function t(t){n(this,t);this.emptyStateImage=undefined;this.emptyStateHeader=undefined;this.emptyStateText=undefined;this.supportText=undefined}t.prototype.render=function(){return e(s,{slot:"empty"},e(p,{emptyStateImage:this.emptyStateImage||"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png",emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText,supportText:this.supportText}))};return t}());var h=t("sqm_portal_container",function(){function t(t){n(this,t);this.ignored=true;this.direction="column";this.padding=undefined;this.gap="xxx-large";this.minWidth=undefined;this.display="grid";this.justifyContent=undefined;this.maxWidth="100%";this.flexWrap="wrap";this.center=undefined;this.backgroundColor=undefined;a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return e(r,__assign({},l(this)),e("slot",null))};return t}());var m=t("sqm_text",function(){function t(t){n(this,t);this.ignored=true;this.fontSize=undefined;this.textColor=undefined;a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.componentWillLoad=function(){};t.prototype.render=function(){var t="\n sqm-text {\n display: block;\n color: ".concat(this.textColor||"var(--sqm-text)",";\n }\n\n sqm-text h1 {\n font-size: ").concat(this.fontSize?"".concat(this.fontSize,"px"):"var(--sl-font-size-xxx-large)",";\n font-weight: var(--sl-font-weight-semibold);\n color: ").concat(this.textColor||"var(--sqm-text)",";\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: ").concat(this.fontSize?"".concat(this.fontSize,"px"):"var(--sl-font-size-xx-large)",";\n font-weight: var(--sl-font-weight-semibold);\n color: ").concat(this.textColor||"var(--sqm-text)",";\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: ").concat(this.fontSize?"".concat(this.fontSize,"px"):"var(--sl-font-size-x-large)",";\n font-weight: var(--sl-font-weight-semibold);\n color: ").concat(this.textColor||"var(--sqm-text)",";\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: ").concat(this.fontSize?"".concat(this.fontSize,"px"):"var(--sl-font-size-large)",";\n font-weight: var(--sl-font-weight-bold);\n color: ").concat(this.textColor||"var(--sqm-text)",";\n margin: 0;\n }\n\n sqm-text p {\n font-size: ").concat(this.fontSize?"".concat(this.fontSize,"px"):"var(--sl-font-size-medium)",";\n font-weight: var(--sl-font-weight-normal);\n color: ").concat(this.textColor||"var(--sqm-text)",";\n margin: 0;\n }\n\n sqm-text sub {\n font-size: ").concat(this.fontSize?"".concat(this.fontSize,"px"):"var(--sl-font-size-small)",";\n font-weight: var(--sl-font-weight-normal);\n color: ").concat(this.textColor||"var(--sqm-text)",";\n margin: 0;\n }\n ");return e("div",null,e("style",null,t),e("slot",null))};return t}());var u=t("sqm_titled_section",function(){function t(t){n(this,t);this.label=undefined;this.textAlign="left";this.labelMargin="small";this.padding="none";a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=e("slot",{name:"label"},this.label);var n=e("slot",{name:"content"});return e(c,__assign({},__assign(__assign({},l(this)),{label:t,content:n})))};return t}())}}}));
@@ -1 +1 @@
1
- System.register([],(function(t){"use strict";return{execute:function(){t({a:e,g:r,l:o,s:i});function n(t){var n=[];Object.keys(t).forEach((function(r){var e=Object.getOwnPropertyDescriptor(t,r);if(typeof e.get==="function"){n.push(r)}}));return n}function r(t){var r={};for(var e=0,o=n(Object.getPrototypeOf(t));e<o.length;e++){var i=o[e];r[i]=t[i]}return r}function e(t){var n=t.filter((function(t){return!t.value}));return n.length?n:false}function o(t){var n=t===null||t===void 0?void 0:t.split("_");if(!n||n.length===1)return t;var r=n[0];var e=n[1];return r+"-"+e.toUpperCase()}function i(t){var n=new URL(t,window.location.origin);var r=new URL(window.location.origin);r.pathname=n.pathname;r.search=n.search;r.hash=n.hash;return r}}}}));
1
+ System.register([],(function(t){"use strict";return{execute:function(){t({a:e,g:r,l:o,s:a});function n(t){var n=[];Object.keys(t).forEach((function(r){var e=Object.getOwnPropertyDescriptor(t,r);if(typeof e.get==="function"){n.push(r)}}));return n}function r(t){var r={};for(var e=0,o=n(Object.getPrototypeOf(t));e<o.length;e++){var a=o[e];r[a]=t[a]}return r}function e(t){var n=t.filter((function(t){return!t.value}));return n.length?n:false}function o(t){var n=t===null||t===void 0?void 0:t.split("_");if(!n||n.length===1)return t;var r=n[0];var e=n[1];return"".concat(r,"-").concat(e.toUpperCase())}function a(t){var n=new URL(t,window.location.origin);var r=new URL(window.location.origin);r.pathname=n.pathname;r.search=n.search;r.hash=n.hash;return r}}}}));