@saasquatch/mint-components 1.15.0-99 → 1.15.0
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.
- package/dist/cjs/ErrorView-b2fcf954.js +35 -0
- package/dist/cjs/{GenericTableView-a9845e80.js → GenericTableView-a9f4ba75.js} +8 -8
- package/dist/cjs/{ShadowViewAddon-c06b2910.js → ShadowViewAddon-28865623.js} +1531 -1495
- package/dist/cjs/copy-text-view-c85acaaa.js +96 -0
- package/dist/cjs/{email-registration-view-ace50780.js → email-registration-view-55b378dc.js} +3 -5
- package/dist/cjs/{global-4cd8623e.js → global-e31dc4f5.js} +10494 -10772
- package/dist/cjs/{index-a43a63b4.js → index-a29c60ef.js} +0 -4
- package/dist/cjs/{index.module-4f54e412.js → index.module-ee84433d.js} +191 -191
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-949beaf2.js → luxon-2926d85f.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mixins-4761d472.js → mixins-f7e0377a.js} +6 -6
- package/dist/cjs/{mockRewardData-df37c8a3.js → mockRewardData-7815f10f.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-d516138a.js → re-render-b324deab.js} +4 -4
- package/dist/cjs/sqm-asset-card-view-21ddf04f.js +51 -0
- package/dist/cjs/sqm-asset-card.cjs.entry.js +45 -0
- package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +2614 -729
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-8a2c8763.js} +3 -3
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +834 -1274
- package/dist/cjs/{sqm-close-button-view-5e85ac51.js → sqm-close-button-view-ea3fa23b.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
- package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
- package/dist/cjs/sqm-email-verification.cjs.entry.js +28 -152
- package/dist/cjs/sqm-empty_4.cjs.entry.js +63 -58
- package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
- package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
- package/dist/cjs/sqm-invoice-table-view-5c74607f.js +2074 -0
- package/dist/cjs/sqm-lead-checkbox-field-view-34d94919.js +83 -0
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +81 -0
- package/dist/cjs/sqm-lead-input-field-view-89308aab.js +51 -0
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +88 -0
- package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +10 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-logout-current-user-view-b61c8bdf.js → sqm-logout-current-user-view-11d57c12.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +45 -0
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +8 -31
- package/dist/cjs/{sqm-navigation-sidebar-view-de90ef03.js → sqm-navigation-sidebar-view-17111896.js} +8 -18
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +9 -25
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +70 -97
- package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
- package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-container-view-07e4343f.js → sqm-portal-container-view-4f15143a.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-5a22b152.js → sqm-portal-email-verification-view-7ebb426a.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-forgot-password-view-0a8d3243.js → sqm-portal-forgot-password-view-78f19ef9.js} +16 -24
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +10 -39
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
- package/dist/cjs/{sqm-portal-login-view-bb50304c.js → sqm-portal-login-view-761a4d8e.js} +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-4dbfeaeb.js → sqm-portal-profile-view-33164798.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-registration-form-view-5a96c2f5.js → sqm-portal-registration-form-view-637a4bf4.js} +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-reset-password-view-25eb2099.js → sqm-portal-reset-password-view-fe602822.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-verify-email-view-1c4e781f.js → sqm-portal-verify-email-view-7b678f34.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-qr-code-view-0c3b2f48.js → sqm-qr-code-view-15dfc0b6.js} +10 -10
- package/dist/cjs/sqm-qr-code.cjs.entry.js +14 -25
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +49 -134
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +178 -0
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +40 -87
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +3 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +14117 -15117
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +13 -27
- package/dist/cjs/sqm-text-span-view-0aa82125.js +62 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -19
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +13 -25
- package/dist/cjs/{dom-context-hooks.module-7fa676ae.js → stencil-hooks.module-3a336b0f.js} +18 -18
- package/dist/cjs/{useChildElements-966c9041.js → useChildElements-1b35d945.js} +5 -5
- package/dist/cjs/{useInstantAccessRegistration-08bcb487.js → useInstantAccessRegistration-0537e28e.js} +4 -4
- package/dist/cjs/useLeadFormState-c83d2034.js +72 -0
- package/dist/cjs/{usePayoutStatus-3b34dab1.js → usePayoutStatus-d459ddde.js} +38 -14
- package/dist/cjs/{usePortalLogin-6aa864ef.js → usePortalLogin-63d896d1.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-75b647fe.js → usePortalRegistrationForm-f25d89e7.js} +6 -6
- package/dist/cjs/{useReferralCodes-11cdf43b.js → useReferralCodes-82e8797b.js} +3 -3
- package/dist/cjs/{useReferralTable-90d4d6e9.js → useReferralTable-7c3f9600.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-bbee6e7b.js → useRegistrationFormState-7b820f0c.js} +6 -6
- package/dist/cjs/{useVerificationEmail-9dd3997a.js → useVerificationEmail-95a82767.js} +6 -6
- package/dist/cjs/{utilities-9a0c5e91.js → utilities-78f5e169.js} +4 -4
- package/dist/cjs/{utils-7cbd60cc.js → utils-6847bc06.js} +0 -5
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +29 -0
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +46 -0
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +107 -0
- package/dist/collection/components/sqm-asset-card/useAssetCard.js +9 -0
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +0 -13
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +8 -15
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +4 -171
- package/dist/collection/components/sqm-big-stat/useBigStat.js +8 -127
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +5 -14
- package/dist/collection/components/sqm-brand/sqm-brand.js +4 -12
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +0 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +11 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +0 -1
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +0 -4
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +48 -145
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +65 -3
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +6 -14
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +3 -62
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +16 -8
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +11 -50
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +0 -1
- package/dist/collection/components/sqm-hero/Hero.stories.js +0 -11
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +6 -13
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -30
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +0 -80
- package/dist/collection/components/sqm-image/sqm-image.js +0 -1
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -4
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +3 -6
- package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +44 -0
- package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +93 -0
- package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +62 -0
- package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +49 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +79 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +234 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +65 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +251 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +123 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +495 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +47 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +251 -0
- package/dist/collection/components/sqm-lead-form/useCheckboxField.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadDropdownField.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +155 -0
- package/dist/collection/components/sqm-lead-form/useLeadFormState.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadInputField.js +10 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +0 -37
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +54 -60
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +36 -202
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +0 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +3 -28
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -2
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +0 -1
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +7 -17
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +5 -85
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +7 -18
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -233
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +1 -9
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +2 -43
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +4 -8
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +8 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +0 -1
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +13 -21
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -103
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +36 -41
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +2 -102
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +1 -4
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +5 -10
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -2
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +0 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +0 -1
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +0 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +3 -1
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +0 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +0 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -12
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +2 -77
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +0 -1
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +7 -2
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +0 -1
- package/dist/collection/components/sqm-qr-code/useQRCode.js +1 -13
- package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +31 -34
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +10 -81
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -3
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -170
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -6
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +1 -29
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +22 -55
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +7 -62
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -4
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -9
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +3 -6
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +2 -4
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -5
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +10 -3
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +5 -31
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +42 -39
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +7 -50
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +5 -6
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +4 -5
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +9 -58
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +9 -11
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -5
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-route/sqm-route.js +0 -1
- package/dist/collection/components/sqm-router/sqm-router.js +0 -2
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +0 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -3
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +22 -23
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +10 -57
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -170
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +1 -13
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +3 -172
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +9 -21
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +2 -112
- package/dist/collection/components/sqm-stencilbook/Themes.js +33 -325
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +107 -81
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +0 -7
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +2 -16
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -30
- package/dist/collection/components/sqm-task-card/DetailsView.js +2 -8
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +2 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +157 -139
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -147
- package/dist/collection/components/sqm-task-card/useTaskCard.js +0 -10
- package/dist/collection/components/sqm-text/sqm-text.js +48 -101
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +43 -44
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +2 -52
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +1 -8
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +0 -52
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +1 -3
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +2 -12
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +14 -138
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +7 -39
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +8 -45
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +26 -13
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +69 -19
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +5 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +76 -21
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +5 -5
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +71 -54
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +6 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +27 -24
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -26
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +100 -19
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +154 -5
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +33 -9
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +27 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +275 -63
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +8 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +159 -109
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +213 -110
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +25 -12
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +54 -167
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +7 -3
- package/dist/collection/components/views/copy-text-view.js +38 -69
- package/dist/collection/components/views/email-registration-view.js +1 -3
- package/dist/collection/global/global.js +12 -27
- package/dist/collection/global/mixins.js +8 -8
- package/dist/collection/global/styles.js +99 -330
- package/dist/collection/global/styles.ts +100 -419
- package/dist/collection/stories/PortalTemplates.stories.js +30 -22
- package/dist/collection/tables/GenericTableView.js +6 -6
- package/dist/collection/utils/utils.js +0 -4
- package/dist/esm/ErrorView-48e2b969.js +33 -0
- package/dist/esm/{GenericTableView-e43d310f.js → GenericTableView-7b9087af.js} +8 -8
- package/dist/esm/{ShadowViewAddon-cf7c03a0.js → ShadowViewAddon-f2176779.js} +1525 -1492
- package/dist/esm/copy-text-view-782137ba.js +94 -0
- package/dist/esm/{email-registration-view-1f587f8b.js → email-registration-view-a7818cf2.js} +3 -5
- package/dist/esm/{global-f97ae778.js → global-be1f9992.js} +8276 -8553
- package/dist/esm/{index-b3a06de8.js → index-91e7729f.js} +0 -4
- package/dist/esm/{index.module-38dad6c9.js → index.module-89a79f66.js} +153 -153
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-bbf75a9d.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mixins-f750863a.js → mixins-83f90fa1.js} +6 -6
- package/dist/esm/{mockRewardData-96a2d26d.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-9c90767d.js → re-render-cc945f38.js} +2 -2
- package/dist/esm/sqm-asset-card-view-fe5db3c0.js +49 -0
- package/dist/esm/sqm-asset-card.entry.js +41 -0
- package/dist/esm/{sqm-banking-info-form_10.entry.js → sqm-banking-info-form_17.entry.js} +2454 -576
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-593d4ac3.js} +3 -3
- package/dist/esm/sqm-big-stat_43.entry.js +742 -1182
- package/dist/esm/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-f9819751.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -5
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-email-verification.entry.js +21 -145
- package/dist/esm/sqm-empty_4.entry.js +60 -55
- package/dist/esm/sqm-form-message.entry.js +7 -7
- package/dist/esm/sqm-google-sign-in.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
- package/dist/esm/sqm-invoice-table-view-3491dd80.js +2058 -0
- package/dist/esm/sqm-lead-checkbox-field-view-a8c1c78e.js +81 -0
- package/dist/esm/sqm-lead-checkbox-field.entry.js +77 -0
- package/dist/esm/sqm-lead-input-field-view-4ede5d7f.js +49 -0
- package/dist/esm/sqm-lead-input-field.entry.js +84 -0
- package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +8 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
- package/dist/esm/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +43 -0
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -30
- package/dist/esm/{sqm-navigation-sidebar-view-0a2ec560.js → sqm-navigation-sidebar-view-9d802b78.js} +8 -18
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -22
- package/dist/esm/sqm-pagination_3.entry.js +64 -91
- package/dist/esm/sqm-password-field.entry.js +6 -6
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-container-view-176e92e3.js → sqm-portal-container-view-1683ae32.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-98fc3374.js → sqm-portal-email-verification-view-35b4353b.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
- package/dist/esm/{sqm-portal-forgot-password-view-0e795cdd.js → sqm-portal-forgot-password-view-3d3182f1.js} +16 -24
- package/dist/esm/sqm-portal-forgot-password.entry.js +7 -36
- package/dist/esm/sqm-portal-google-login.entry.js +8 -8
- package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
- package/dist/esm/{sqm-portal-login-view-7670cd86.js → sqm-portal-login-view-7e49609a.js} +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-25b3250a.js → sqm-portal-profile-view-93003974.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +8 -8
- package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
- package/dist/esm/{sqm-portal-registration-form-view-8bdc3804.js → sqm-portal-registration-form-view-3c1f6000.js} +3 -3
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-54a8651f.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
- package/dist/esm/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-b12cb894.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/{sqm-qr-code-view-97124a66.js → sqm-qr-code-view-f1d0763b.js} +9 -9
- package/dist/esm/sqm-qr-code.entry.js +8 -19
- package/dist/esm/sqm-referral-table_11.entry.js +38 -123
- package/dist/esm/sqm-referred-registration.entry.js +174 -0
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +28 -75
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-scroll.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +14111 -15111
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +10 -24
- package/dist/esm/sqm-text-span-view-ca32495e.js +60 -0
- package/dist/esm/sqm-text-span.entry.js +6 -6
- package/dist/esm/sqm-widget-verification-controller.entry.js +6 -14
- package/dist/esm/sqm-widget-verification.entry.js +10 -22
- package/dist/esm/{dom-context-hooks.module-63370afd.js → stencil-hooks.module-4bc38af4.js} +13 -13
- package/dist/esm/{useChildElements-4e70ac0e.js → useChildElements-7945ae56.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-0f04459e.js → useInstantAccessRegistration-dc4ad9f2.js} +3 -3
- package/dist/esm/useLeadFormState-9016d812.js +68 -0
- package/dist/esm/{usePayoutStatus-7eeec61b.js → usePayoutStatus-4a7625b9.js} +35 -11
- package/dist/esm/{usePortalLogin-d0720c81.js → usePortalLogin-ef647a50.js} +3 -3
- package/dist/esm/{usePortalRegistrationForm-afc0171e.js → usePortalRegistrationForm-4b35a357.js} +3 -3
- package/dist/esm/{useReferralCodes-311e6d72.js → useReferralCodes-8f75921a.js} +2 -2
- package/dist/esm/{useReferralTable-65a01a6a.js → useReferralTable-b3876ed6.js} +5 -5
- package/dist/esm/{useRegistrationFormState-18c2cea7.js → useRegistrationFormState-d6f33135.js} +2 -2
- package/dist/esm/{useVerificationEmail-f9413de9.js → useVerificationEmail-edc318cb.js} +2 -2
- package/dist/esm/{utilities-ad9c2893.js → utilities-5b0ca040.js} +2 -2
- package/dist/esm/{utils-03188de2.js → utils-334c1e34.js} +1 -5
- package/dist/esm-es5/ErrorView-48e2b969.js +1 -0
- package/dist/esm-es5/GenericTableView-7b9087af.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-f2176779.js +1 -0
- package/dist/esm-es5/copy-text-view-782137ba.js +1 -0
- package/dist/esm-es5/email-registration-view-a7818cf2.js +1 -0
- package/dist/esm-es5/{global-f97ae778.js → global-be1f9992.js} +5 -5
- package/dist/esm-es5/{index-b3a06de8.js → index-91e7729f.js} +1 -1
- package/dist/esm-es5/index.module-89a79f66.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-8d51c92b.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mixins-83f90fa1.js +1 -0
- package/dist/esm-es5/{mockRewardData-96a2d26d.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/re-render-cc945f38.js +1 -0
- package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +1 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
- package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-593d4ac3.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-f9819751.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field-view-a8c1c78e.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field-view-4ede5d7f.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-176e92e3.js → sqm-portal-container-view-1683ae32.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-98fc3374.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +1 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-25b3250a.js → sqm-portal-profile-view-93003974.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-8bdc3804.js → sqm-portal-registration-form-view-3c1f6000.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-54a8651f.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-b12cb894.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code-view-f1d0763b.js +1 -0
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -0
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span-view-ca32495e.js +1 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +53 -0
- package/dist/esm-es5/useChildElements-7945ae56.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +1 -0
- package/dist/esm-es5/useLeadFormState-9016d812.js +1 -0
- package/dist/esm-es5/usePayoutStatus-4a7625b9.js +6 -0
- package/dist/esm-es5/usePortalLogin-ef647a50.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +1 -0
- package/dist/esm-es5/useReferralCodes-8f75921a.js +1 -0
- package/dist/esm-es5/useReferralTable-b3876ed6.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-d6f33135.js +1 -0
- package/dist/esm-es5/useVerificationEmail-edc318cb.js +1 -0
- package/dist/esm-es5/utilities-5b0ca040.js +1 -0
- package/dist/esm-es5/utils-334c1e34.js +1 -0
- package/dist/mint-components/global/styles.ts +100 -419
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-00df0cac.js +1 -0
- package/dist/mint-components/p-00ed4c2e.entry.js +1 -0
- package/dist/mint-components/p-01dd541f.system.js +1 -0
- package/dist/mint-components/p-0309fdfa.entry.js +1 -0
- package/dist/mint-components/p-04a6e457.entry.js +1 -0
- package/dist/mint-components/{p-f307b716.js → p-05f29f64.js} +1 -1
- package/dist/mint-components/p-0b4cac9f.system.entry.js +1 -0
- package/dist/mint-components/{p-bb12b845.system.js → p-0d182dc1.system.js} +1 -1
- package/dist/mint-components/{p-8dc1cd0f.entry.js → p-0d2d0b6d.entry.js} +1 -1
- package/dist/mint-components/p-0d939b73.system.js +1 -0
- package/dist/mint-components/p-0ebab63e.system.js +1 -0
- package/dist/mint-components/{p-e0f9a395.entry.js → p-10d17989.entry.js} +1 -1
- package/dist/mint-components/{p-a6f4fb03.system.js → p-127e66c2.system.js} +1 -1
- package/dist/mint-components/p-12bba567.entry.js +1 -0
- package/dist/mint-components/{p-3dc34570.system.js → p-13ed8586.system.js} +1 -1
- package/dist/mint-components/p-141bf5c1.system.entry.js +1 -0
- package/dist/mint-components/p-14a65f29.system.js +1 -0
- package/dist/mint-components/p-1513309d.entry.js +1 -0
- package/dist/mint-components/{p-0cba75e6.system.entry.js → p-164a9103.system.entry.js} +1 -1
- package/dist/mint-components/{p-910f56ca.system.entry.js → p-18425f38.system.entry.js} +1 -1
- package/dist/mint-components/{p-fb2976fc.system.entry.js → p-19bc3406.system.entry.js} +1 -1
- package/dist/mint-components/p-19ccb4ce.js +1 -0
- package/dist/mint-components/{p-b9bccc55.entry.js → p-1a6b7d2a.entry.js} +1 -1
- package/dist/mint-components/p-1b3ab15a.system.entry.js +1 -0
- package/dist/mint-components/p-1d704c40.system.js +1 -0
- package/dist/mint-components/p-1fa9ed0d.system.entry.js +1 -0
- package/dist/mint-components/p-21620f81.system.entry.js +1 -0
- package/dist/mint-components/p-229f797b.js +1 -0
- package/dist/mint-components/p-24db5c70.js +1 -0
- package/dist/mint-components/p-25ae959c.system.entry.js +1 -0
- package/dist/mint-components/{p-00791abc.js → p-266a8b4d.js} +1 -1
- package/dist/mint-components/p-267c8f8c.entry.js +144 -0
- package/dist/mint-components/p-275b4767.entry.js +1 -0
- package/dist/mint-components/{p-0b0f49ad.entry.js → p-284e4ed5.entry.js} +1 -1
- package/dist/mint-components/{p-711bc624.entry.js → p-2ae0e06a.entry.js} +1 -1
- package/dist/mint-components/p-2bbff88f.entry.js +1 -0
- package/dist/mint-components/{p-91014439.system.js → p-2d52e2d7.system.js} +1 -1
- package/dist/mint-components/p-2da21ba4.entry.js +1 -0
- package/dist/mint-components/p-2dca9e1a.system.js +1 -0
- package/dist/mint-components/{p-d5f1df29.entry.js → p-2f101bae.entry.js} +1 -1
- package/dist/mint-components/{p-485e2d9f.system.entry.js → p-301ddcaa.system.entry.js} +1 -1
- package/dist/mint-components/p-31015791.js +1 -0
- package/dist/mint-components/p-33c96e14.entry.js +16 -0
- package/dist/mint-components/{p-a45680fe.js → p-35b475bf.js} +1 -1
- package/dist/mint-components/{p-0d22c0e5.system.entry.js → p-36ffebd8.system.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -0
- package/dist/mint-components/p-37a4452c.system.entry.js +1 -0
- package/dist/mint-components/p-380bfde1.entry.js +1 -0
- package/dist/mint-components/p-38e5c429.system.js +1 -0
- package/dist/mint-components/p-38fc919b.entry.js +1 -0
- package/dist/mint-components/p-3a62a7e2.system.js +1 -0
- package/dist/mint-components/{p-0e59a91e.js → p-3b2f1211.js} +8 -2
- package/dist/mint-components/p-3b90e01b.system.js +1 -0
- package/dist/mint-components/p-3db34d68.js +1 -0
- package/dist/mint-components/p-3f6e0197.system.entry.js +1 -0
- package/dist/mint-components/{p-862845d7.js → p-3f7b81b8.js} +2 -2
- package/dist/mint-components/p-420554af.system.entry.js +1 -0
- package/dist/mint-components/p-42187319.system.entry.js +1 -0
- package/dist/mint-components/p-4428294b.entry.js +1 -0
- package/dist/mint-components/{p-c3884e55.entry.js → p-44891949.entry.js} +1 -1
- package/dist/mint-components/p-4794641c.system.js +1 -0
- package/dist/mint-components/p-48135f99.system.js +53 -0
- package/dist/mint-components/p-48c69c2d.entry.js +1 -0
- package/dist/mint-components/p-492b70db.system.js +1 -0
- package/dist/mint-components/p-49932f12.system.js +1 -0
- package/dist/mint-components/{p-4204a6e3.entry.js → p-4b6dc0e5.entry.js} +1 -1
- package/dist/mint-components/{p-fb5be0c5.js → p-4e451f75.js} +1 -1
- package/dist/mint-components/{p-5ed49bf2.js → p-4e526a94.js} +1 -1
- package/dist/mint-components/p-4e5af50c.js +1 -0
- package/dist/mint-components/{p-3d05ebb1.system.entry.js → p-50c902ca.system.entry.js} +1 -1
- package/dist/mint-components/{p-82505f6e.system.js → p-527216de.system.js} +1 -1
- package/dist/mint-components/{p-9fb8b33a.system.js → p-5488fdd9.system.js} +1 -1
- package/dist/mint-components/p-5868dc11.entry.js +9 -0
- package/dist/mint-components/{p-578a27c8.system.js → p-59274a91.system.js} +1 -1
- package/dist/mint-components/{p-08700497.js → p-5bedb58c.js} +1 -1
- package/dist/mint-components/{p-ebb487d0.system.entry.js → p-5c28406d.system.entry.js} +1 -1
- package/dist/mint-components/p-5cb7f9fc.system.entry.js +1 -0
- package/dist/mint-components/p-6055eb4c.system.js +1 -0
- package/dist/mint-components/p-6122bf99.system.entry.js +1 -0
- package/dist/mint-components/p-626e9e84.js +1 -0
- package/dist/mint-components/p-6333265f.system.js +1 -0
- package/dist/mint-components/p-635d5ef2.system.js +1 -0
- package/dist/mint-components/{p-750e7b01.js → p-63a75798.js} +1 -1
- package/dist/mint-components/p-6427e963.entry.js +1 -0
- package/dist/mint-components/p-65069b66.js +1248 -0
- package/dist/mint-components/p-653f963f.entry.js +13 -0
- package/dist/mint-components/p-65ba9e94.entry.js +1 -0
- package/dist/mint-components/{p-42b62299.system.entry.js → p-6a8d9def.system.entry.js} +1 -1
- package/dist/mint-components/p-6b7a595f.system.js +1 -0
- package/dist/mint-components/p-6ba44ca9.js +1 -0
- package/dist/mint-components/p-6cd4f2b1.system.js +1 -0
- package/dist/mint-components/{p-4d19270b.js → p-6d2f5a1d.js} +2 -2
- package/dist/mint-components/{p-7159c51c.system.js → p-6d9e52c7.system.js} +1 -1
- package/dist/mint-components/p-6eaf9c57.entry.js +1 -0
- package/dist/mint-components/p-775f3ded.entry.js +1 -0
- package/dist/mint-components/p-7846937e.entry.js +13 -0
- package/dist/mint-components/{p-3eba9036.js → p-7a9290ba.js} +1 -1
- package/dist/mint-components/p-7ab21e4d.entry.js +1 -0
- package/dist/mint-components/{p-15012f59.system.js → p-7c2b9fe4.system.js} +1 -1
- package/dist/mint-components/{p-eea87fdc.system.entry.js → p-7dabdca6.system.entry.js} +1 -1
- package/dist/mint-components/p-7ec4ccd6.system.entry.js +1 -0
- package/dist/mint-components/{p-94f9fbf7.entry.js → p-7f80a9d7.entry.js} +1 -1
- package/dist/mint-components/{p-a148663a.system.js → p-8175e85f.system.js} +1 -1
- package/dist/mint-components/{p-ac2fdad8.system.entry.js → p-8362cb4c.system.entry.js} +1 -1
- package/dist/mint-components/p-837a0fdd.js +1 -0
- package/dist/mint-components/p-85671c3d.system.entry.js +1 -0
- package/dist/mint-components/p-8abfeff8.entry.js +1 -0
- package/dist/mint-components/p-8b584c46.system.entry.js +1 -0
- package/dist/mint-components/p-8c0b7881.system.entry.js +1 -0
- package/dist/mint-components/p-8c23d1b8.js +1 -0
- package/dist/mint-components/p-8d9d04b7.system.entry.js +1 -0
- package/dist/mint-components/{p-258f4e5e.system.entry.js → p-90fc6774.system.entry.js} +1 -1
- package/dist/mint-components/p-91521e9d.js +1 -0
- package/dist/mint-components/{p-ddf3c05e.js → p-91959fbe.js} +1 -1
- package/dist/mint-components/{p-68043f30.js → p-91ab3da1.js} +1 -1
- package/dist/mint-components/p-92816d1f.js +1 -0
- package/dist/mint-components/{p-da6fe95f.system.entry.js → p-9386ad84.system.entry.js} +1 -1
- package/dist/mint-components/{p-460155de.js → p-938f64d9.js} +1 -1
- package/dist/mint-components/p-94a876b9.js +1 -0
- package/dist/mint-components/p-95b88eb6.system.js +1 -0
- package/dist/mint-components/{p-c3dce602.system.entry.js → p-96431b4f.system.entry.js} +1 -1
- package/dist/mint-components/p-97d4d651.system.js +1 -0
- package/dist/mint-components/p-98698131.js +1 -0
- package/dist/mint-components/p-986d4c17.system.entry.js +1 -0
- package/dist/mint-components/{p-64997b59.system.js → p-99ad7d56.system.js} +1 -1
- package/dist/mint-components/p-9acb5038.js +1 -0
- package/dist/mint-components/{p-002e6205.system.entry.js → p-9b6a0152.system.entry.js} +1 -1
- package/dist/mint-components/{p-b3da317b.system.entry.js → p-9bfd9bed.system.entry.js} +1 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +1 -0
- package/dist/mint-components/{p-6951663b.js → p-9ec99ced.js} +1 -1
- package/dist/mint-components/{p-fa6fba34.system.js → p-9f22f58a.system.js} +2 -2
- package/dist/mint-components/{p-22c11f0e.entry.js → p-a2fde301.entry.js} +1 -1
- package/dist/mint-components/{p-d399162b.system.js → p-a71b9154.system.js} +1 -1
- package/dist/mint-components/{p-9580aac3.js → p-a9f4ddb1.js} +1 -1
- package/dist/mint-components/p-aad32fb6.system.js +1 -0
- package/dist/mint-components/{p-8e28333b.system.js → p-ae1ea5ac.system.js} +1 -1
- package/dist/mint-components/p-b207beeb.entry.js +1 -0
- package/dist/mint-components/{p-e55f3eb6.system.entry.js → p-b287833c.system.entry.js} +1 -1
- package/dist/mint-components/{p-6578ea31.system.js → p-b75bb6e3.system.js} +1 -1
- package/dist/mint-components/{p-7059ee40.system.entry.js → p-b7d1469d.system.entry.js} +1 -1
- package/dist/mint-components/p-b82e1935.system.entry.js +1 -0
- package/dist/mint-components/{p-6ef73224.js → p-bbcd824a.js} +1 -1
- package/dist/mint-components/{p-f1f20fdf.system.js → p-bdb7d451.system.js} +22 -22
- package/dist/mint-components/p-bfc7cfc0.system.js +1 -0
- package/dist/mint-components/p-c060f770.system.entry.js +1 -0
- package/dist/mint-components/{p-3787a4d6.js → p-c0f19490.js} +1 -1
- package/dist/mint-components/p-c1b074b6.js +394 -0
- package/dist/mint-components/{p-dbe29e53.system.entry.js → p-c2fdd608.system.entry.js} +1 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +1 -0
- package/dist/mint-components/p-c9b08184.entry.js +17 -0
- package/dist/mint-components/p-c9f1dde7.js +1 -0
- package/dist/mint-components/p-cb7bdbe4.entry.js +1 -0
- package/dist/mint-components/p-cbbfac66.entry.js +25 -0
- package/dist/mint-components/p-cd1d497f.system.js +1 -0
- package/dist/mint-components/{p-a392912a.system.js → p-cd569259.system.js} +1 -1
- package/dist/mint-components/p-cd651f81.js +42 -0
- package/dist/mint-components/{p-9aadc253.entry.js → p-d07f3090.entry.js} +1 -1
- package/dist/mint-components/p-d66b9a61.entry.js +211 -0
- package/dist/mint-components/{p-b22b7891.js → p-d6831af5.js} +1 -1
- package/dist/mint-components/p-d78e7323.entry.js +273 -0
- package/dist/mint-components/{p-e27ff213.entry.js → p-da7708a7.entry.js} +1 -1
- package/dist/mint-components/{p-1c1f4ce7.system.js → p-dbc0e4f8.system.js} +1 -1
- package/dist/mint-components/p-dbcb5359.js +1 -0
- package/dist/mint-components/p-dcc81e90.entry.js +1 -0
- package/dist/mint-components/p-e07bc6c4.system.js +1 -0
- package/dist/mint-components/p-e5a5ae7f.system.entry.js +1 -0
- package/dist/mint-components/{p-b6911812.system.js → p-e5d0375e.system.js} +1 -1
- package/dist/mint-components/p-e6f50ffd.entry.js +1 -0
- package/dist/mint-components/p-e8e48982.js +1 -0
- package/dist/mint-components/{p-5e0af707.entry.js → p-e8ffcc68.entry.js} +2 -2
- package/dist/mint-components/{p-a2533860.system.entry.js → p-f0772618.system.entry.js} +1 -1
- package/dist/mint-components/p-f26aedcd.system.js +1 -0
- package/dist/mint-components/p-f2d8d3d3.system.entry.js +1 -0
- package/dist/mint-components/{p-4271f436.system.entry.js → p-f4a72903.system.entry.js} +1 -1
- package/dist/mint-components/{p-22d20816.system.entry.js → p-f4a8ee29.system.entry.js} +1 -1
- package/dist/mint-components/p-f56bedd5.js +1 -0
- package/dist/mint-components/p-f708da7b.js +1 -0
- package/dist/mint-components/p-f7c99803.system.js +1 -0
- package/dist/mint-components/{p-07dc6d68.js → p-f940190a.js} +1 -1
- package/dist/mint-components/p-f98a4354.js +1 -0
- package/dist/mint-components/{p-7af4fba0.system.entry.js → p-fa37513e.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7ee19dc.entry.js → p-faba3198.entry.js} +1 -1
- package/dist/mint-components/p-ff8b8067.entry.js +33 -0
- package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +7 -0
- package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +8 -0
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +24 -0
- package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +7 -0
- package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +0 -2
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -5
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +1 -47
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +0 -2
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +0 -1
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +0 -2
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +16 -43
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +3 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +1 -4
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +0 -15
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +1 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +0 -1
- package/dist/types/components/sqm-hero/Hero.stories.d.ts +0 -1
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +0 -1
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +1 -6
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +0 -1
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +0 -20
- package/dist/types/components/sqm-image/sqm-image.d.ts +0 -1
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -2
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +0 -3
- package/dist/types/components/sqm-lead-form/LeadCheckboxField.stories.d.ts +28 -0
- package/dist/types/components/sqm-lead-form/LeadForm.stories.d.ts +10 -0
- package/dist/types/components/sqm-lead-form/LeadFormDropdownField.stories.d.ts +10 -0
- package/dist/types/components/sqm-lead-form/LeadInputField.stories.d.ts +8 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field-view.d.ts +15 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field.d.ts +46 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +17 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +49 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +36 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +93 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +15 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +51 -0
- package/dist/types/components/sqm-lead-form/useCheckboxField.d.ts +6 -0
- package/dist/types/components/sqm-lead-form/useLeadDropdownField.d.ts +6 -0
- package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +28 -0
- package/dist/types/components/sqm-lead-form/useLeadFormState.d.ts +19 -0
- package/dist/types/components/sqm-lead-form/useLeadInputField.d.ts +6 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +0 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +0 -6
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +11 -53
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +0 -6
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +0 -1
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +0 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +1 -1
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +0 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +0 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +0 -16
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +0 -8
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +0 -57
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -1
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +2 -9
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +0 -2
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +0 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +0 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -5
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +0 -15
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +0 -3
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +0 -19
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +1 -2
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +0 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -1
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +0 -1
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +0 -1
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +0 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +0 -2
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +0 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -20
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +0 -1
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +0 -1
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +2 -5
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +2 -25
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -1
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -43
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -1
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -1
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -7
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -2
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -4
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -2
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +437 -457
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +1 -10
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +3 -4
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -3
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
- package/dist/types/components/sqm-route/sqm-route.d.ts +0 -1
- package/dist/types/components/sqm-router/sqm-router.d.ts +0 -2
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +0 -1
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +1 -2
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +6 -19
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +0 -43
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +0 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -44
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +0 -3
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +0 -25
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
- package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +0 -1
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +0 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +0 -10
- package/dist/types/components/sqm-task-card/DetailsView.d.ts +0 -6
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +0 -5
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +4 -33
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +0 -9
- package/dist/types/components/sqm-text/sqm-text.d.ts +0 -13
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +2 -4
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -14
- package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +0 -1
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +0 -2
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +0 -14
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +1 -3
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +0 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +2 -5
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +2 -6
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +8 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +24 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +9 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +51 -9
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +10 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +36 -17
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components/views/copy-text-view.d.ts +0 -5
- package/dist/types/components.d.ts +729 -1243
- package/dist/types/global/global.d.ts +2 -2
- package/dist/types/global/mixins.d.ts +12 -12
- package/dist/types/global/styles.d.ts +2 -10
- package/dist/types/saasquatch.d.ts +7 -143
- package/dist/types/utils/utils.d.ts +0 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -3
- package/dist/cjs/IndirectTaxDetailsView-282c1fda.js +0 -646
- package/dist/cjs/copy-text-view-97ae8a48.js +0 -127
- package/dist/cjs/data-d4339c2e.js +0 -137
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -352
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +0 -84
- package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +0 -10
- package/dist/cjs/sqm-navigation-sidebar-item-view-ec7a5c53.js +0 -56
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1254
- package/dist/cjs/sqm-text-span-view-7a61ae4c.js +0 -63
- package/dist/cjs/utils-aacb4233.js +0 -105
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +0 -198
- package/dist/collection/components/sqm-text/Text.stories.js +0 -12
- package/dist/collection/insertfont.js +0 -18
- package/dist/collection/utils/parseStates.js +0 -12
- package/dist/esm/IndirectTaxDetailsView-5e60d91f.js +0 -639
- package/dist/esm/copy-text-view-ab2fda20.js +0 -125
- package/dist/esm/data-ee3ae298.js +0 -121
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-code-verification.entry.js +0 -348
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +0 -76
- package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +0 -8
- package/dist/esm/sqm-navigation-sidebar-item-view-797601b0.js +0 -54
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1250
- package/dist/esm/sqm-text-span-view-4c17b8c9.js +0 -61
- package/dist/esm/utils-e1cdc479.js +0 -97
- package/dist/esm-es5/GenericTableView-e43d310f.js +0 -1
- package/dist/esm-es5/IndirectTaxDetailsView-5e60d91f.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-cf7c03a0.js +0 -1
- package/dist/esm-es5/copy-text-view-ab2fda20.js +0 -1
- package/dist/esm-es5/data-ee3ae298.js +0 -1
- package/dist/esm-es5/dom-context-hooks.module-63370afd.js +0 -53
- package/dist/esm-es5/email-registration-view-1f587f8b.js +0 -1
- package/dist/esm-es5/index.module-38dad6c9.js +0 -1
- package/dist/esm-es5/luxon-bbf75a9d.js +0 -1
- package/dist/esm-es5/mixins-f750863a.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/re-render-9c90767d.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-797601b0.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +0 -1
- package/dist/esm-es5/sqm-qr-code-view-97124a66.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +0 -1
- package/dist/esm-es5/useChildElements-4e70ac0e.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-0f04459e.js +0 -1
- package/dist/esm-es5/usePayoutStatus-7eeec61b.js +0 -6
- package/dist/esm-es5/usePortalLogin-d0720c81.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-afc0171e.js +0 -1
- package/dist/esm-es5/useReferralCodes-311e6d72.js +0 -1
- package/dist/esm-es5/useReferralTable-65a01a6a.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-18c2cea7.js +0 -1
- package/dist/esm-es5/useVerificationEmail-f9413de9.js +0 -1
- package/dist/esm-es5/utilities-ad9c2893.js +0 -1
- package/dist/esm-es5/utils-03188de2.js +0 -1
- package/dist/esm-es5/utils-e1cdc479.js +0 -1
- package/dist/mint-components/p-000c91b1.js +0 -1
- package/dist/mint-components/p-0935f9b7.system.js +0 -1
- package/dist/mint-components/p-0bb21f5b.system.entry.js +0 -1
- package/dist/mint-components/p-0e532b53.entry.js +0 -1
- package/dist/mint-components/p-0ea61502.system.js +0 -1
- package/dist/mint-components/p-100c878b.system.entry.js +0 -1
- package/dist/mint-components/p-11500698.entry.js +0 -25
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-1337f47c.entry.js +0 -1
- package/dist/mint-components/p-1363c4ab.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-14128c84.system.entry.js +0 -1
- package/dist/mint-components/p-14959d73.system.entry.js +0 -1
- package/dist/mint-components/p-15bfd7e2.system.js +0 -1
- package/dist/mint-components/p-1a278658.entry.js +0 -1
- package/dist/mint-components/p-1c727332.entry.js +0 -1
- package/dist/mint-components/p-1cd0e1e9.system.js +0 -1
- package/dist/mint-components/p-1ee5070b.system.entry.js +0 -1
- package/dist/mint-components/p-204861a6.js +0 -1
- package/dist/mint-components/p-209ea185.js +0 -1
- package/dist/mint-components/p-21e3cac4.js +0 -1
- package/dist/mint-components/p-2403c6e1.system.js +0 -1
- package/dist/mint-components/p-240bec23.js +0 -1
- package/dist/mint-components/p-274ea2c4.entry.js +0 -9
- package/dist/mint-components/p-2f2bff39.entry.js +0 -1
- package/dist/mint-components/p-3285a6b3.system.entry.js +0 -1
- package/dist/mint-components/p-3836d1e2.entry.js +0 -1
- package/dist/mint-components/p-38a03a10.system.js +0 -1
- package/dist/mint-components/p-3cb249c3.js +0 -1
- package/dist/mint-components/p-3d1b91a1.system.entry.js +0 -1
- package/dist/mint-components/p-3d99fa43.entry.js +0 -1
- package/dist/mint-components/p-3ea3f5e3.system.entry.js +0 -1
- package/dist/mint-components/p-40c01a5a.system.js +0 -1
- package/dist/mint-components/p-42da8239.system.js +0 -1
- package/dist/mint-components/p-49b20dae.js +0 -1
- package/dist/mint-components/p-4f5329a2.system.js +0 -53
- package/dist/mint-components/p-51b8979d.js +0 -448
- package/dist/mint-components/p-57970440.js +0 -1233
- package/dist/mint-components/p-587115cb.system.entry.js +0 -1
- package/dist/mint-components/p-59b028db.system.js +0 -1
- package/dist/mint-components/p-5aca73f7.entry.js +0 -13
- package/dist/mint-components/p-5ff2da11.js +0 -1
- package/dist/mint-components/p-63e29387.js +0 -42
- package/dist/mint-components/p-66c14cb2.system.entry.js +0 -1
- package/dist/mint-components/p-672d144e.entry.js +0 -1
- package/dist/mint-components/p-67ad2252.system.js +0 -1
- package/dist/mint-components/p-6906ef5d.system.entry.js +0 -1
- package/dist/mint-components/p-692bacf3.js +0 -1
- package/dist/mint-components/p-6ad674c2.js +0 -103
- package/dist/mint-components/p-6b076bae.system.entry.js +0 -1
- package/dist/mint-components/p-6d290019.js +0 -1
- package/dist/mint-components/p-6e069052.entry.js +0 -1
- package/dist/mint-components/p-71271fbd.system.js +0 -1
- package/dist/mint-components/p-75584f9e.entry.js +0 -11
- package/dist/mint-components/p-77d2244b.system.js +0 -1
- package/dist/mint-components/p-7970e73a.js +0 -1
- package/dist/mint-components/p-797fd8d9.system.js +0 -1
- package/dist/mint-components/p-7b8d29bb.entry.js +0 -1
- package/dist/mint-components/p-7c17e06f.system.entry.js +0 -1
- package/dist/mint-components/p-7e13424d.system.js +0 -1
- package/dist/mint-components/p-88b63a7c.entry.js +0 -93
- package/dist/mint-components/p-8a6494c7.system.js +0 -1
- package/dist/mint-components/p-8caef004.js +0 -1
- package/dist/mint-components/p-8e2bead4.js +0 -1
- package/dist/mint-components/p-901cb538.system.entry.js +0 -1
- package/dist/mint-components/p-9049b387.entry.js +0 -1
- package/dist/mint-components/p-916100a9.js +0 -1
- package/dist/mint-components/p-926f17f9.system.js +0 -1
- package/dist/mint-components/p-9374b5bb.system.entry.js +0 -1
- package/dist/mint-components/p-9e297104.entry.js +0 -1
- package/dist/mint-components/p-9f3e7e48.entry.js +0 -13
- package/dist/mint-components/p-9f82e69d.entry.js +0 -1
- package/dist/mint-components/p-a5c9ce6c.entry.js +0 -1
- package/dist/mint-components/p-abd33116.system.entry.js +0 -1
- package/dist/mint-components/p-b065215a.entry.js +0 -1
- package/dist/mint-components/p-b1a2a83b.entry.js +0 -144
- package/dist/mint-components/p-ba4a5fed.entry.js +0 -258
- package/dist/mint-components/p-bab57520.system.entry.js +0 -1
- package/dist/mint-components/p-bad50dc1.entry.js +0 -1
- package/dist/mint-components/p-bb627d95.entry.js +0 -17
- package/dist/mint-components/p-be88596c.system.js +0 -1
- package/dist/mint-components/p-c0d48b64.system.entry.js +0 -1
- package/dist/mint-components/p-c4886223.entry.js +0 -1
- package/dist/mint-components/p-c726f778.system.entry.js +0 -1
- package/dist/mint-components/p-c7965639.entry.js +0 -1
- package/dist/mint-components/p-c79bb1c6.entry.js +0 -16
- package/dist/mint-components/p-c7c11325.js +0 -1
- package/dist/mint-components/p-cab1f502.js +0 -1
- package/dist/mint-components/p-d785a297.system.entry.js +0 -1
- package/dist/mint-components/p-d821418e.system.js +0 -1
- package/dist/mint-components/p-d8c5b80a.system.js +0 -1
- package/dist/mint-components/p-da3ffd4e.system.entry.js +0 -1
- package/dist/mint-components/p-e539fed3.entry.js +0 -1
- package/dist/mint-components/p-e57d61af.system.js +0 -1
- package/dist/mint-components/p-eaeddfe2.system.js +0 -1
- package/dist/mint-components/p-ecc5faba.entry.js +0 -33
- package/dist/mint-components/p-f0e0d0b9.system.entry.js +0 -1
- package/dist/mint-components/p-f0ebccea.system.entry.js +0 -1
- package/dist/mint-components/p-f1dc581f.js +0 -1
- package/dist/mint-components/p-f6baa0c9.system.js +0 -1
- package/dist/mint-components/p-f9c7248e.js +0 -1
- package/dist/mint-components/p-fb77f662.entry.js +0 -1
- package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +0 -9
- package/dist/types/components/sqm-text/Text.stories.d.ts +0 -6
- package/dist/types/insertfont.d.ts +0 -1
- package/dist/types/utils/parseStates.d.ts +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
- /package/dist/collection/components/tax-and-cash/{data.js → sqm-tax-and-cash/data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{data.d.ts → sqm-tax-and-cash/data.d.ts} +0 -0
package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js}
RENAMED
|
@@ -2,25 +2,145 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const index_module = require('./index.module-
|
|
5
|
+
const index = require('./index-a29c60ef.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
7
|
+
const global = require('./global-e31dc4f5.js');
|
|
8
|
+
const index_module = require('./index.module-ee84433d.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
|
-
const utils = require('./utils-
|
|
11
|
+
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
require('./mixins-
|
|
14
|
-
const GenericTableView = require('./GenericTableView-
|
|
15
|
-
const reRender = require('./re-render-
|
|
16
|
-
const useChildElements = require('./useChildElements-
|
|
17
|
-
const luxon = require('./luxon-
|
|
18
|
-
const useReferralTable = require('./useReferralTable-
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
13
|
+
const mixins = require('./mixins-f7e0377a.js');
|
|
14
|
+
const GenericTableView = require('./GenericTableView-a9f4ba75.js');
|
|
15
|
+
const reRender = require('./re-render-b324deab.js');
|
|
16
|
+
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
17
|
+
const luxon = require('./luxon-2926d85f.js');
|
|
18
|
+
const useReferralTable = require('./useReferralTable-7c3f9600.js');
|
|
19
|
+
const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
|
|
20
|
+
const ErrorView = require('./ErrorView-b2fcf954.js');
|
|
21
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-5c74607f.js');
|
|
22
|
+
const extractProps = require('./extractProps-fd93ba62.js');
|
|
22
23
|
const keys = require('./keys-cff24974.js');
|
|
23
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
24
|
+
const usePayoutStatus = require('./usePayoutStatus-d459ddde.js');
|
|
25
|
+
const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
|
|
26
|
+
|
|
27
|
+
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
28
|
+
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
29
|
+
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
30
|
+
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
31
|
+
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
32
|
+
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
33
|
+
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
34
|
+
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
35
|
+
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
36
|
+
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
37
|
+
const GET_USER = index_module.dist.gql `
|
|
38
|
+
query getUserTaxInfo {
|
|
39
|
+
user: viewer {
|
|
40
|
+
... on User {
|
|
41
|
+
id
|
|
42
|
+
firstName
|
|
43
|
+
lastName
|
|
44
|
+
email
|
|
45
|
+
countryCode
|
|
46
|
+
customFields
|
|
47
|
+
managedIdentity {
|
|
48
|
+
uid
|
|
49
|
+
email
|
|
50
|
+
emailVerified
|
|
51
|
+
}
|
|
52
|
+
impactConnection {
|
|
53
|
+
connected
|
|
54
|
+
user {
|
|
55
|
+
firstName
|
|
56
|
+
lastName
|
|
57
|
+
}
|
|
58
|
+
publisher {
|
|
59
|
+
id
|
|
60
|
+
brandedSignup
|
|
61
|
+
countryCode
|
|
62
|
+
currency
|
|
63
|
+
billingAddress
|
|
64
|
+
billingCity
|
|
65
|
+
billingState
|
|
66
|
+
billingCountryCode
|
|
67
|
+
billingPostalCode
|
|
68
|
+
phoneNumberCountryCode
|
|
69
|
+
phoneNumber
|
|
70
|
+
taxInformation {
|
|
71
|
+
indirectTaxId
|
|
72
|
+
indirectTaxCountryCode
|
|
73
|
+
indirectTaxRegion
|
|
74
|
+
additionalTaxId
|
|
75
|
+
withholdingTaxId
|
|
76
|
+
withholdingTaxCountryCode
|
|
77
|
+
}
|
|
78
|
+
requiredTaxDocumentType
|
|
79
|
+
currentTaxDocument {
|
|
80
|
+
status
|
|
81
|
+
type
|
|
82
|
+
dateCreated
|
|
83
|
+
}
|
|
84
|
+
withdrawalSettings {
|
|
85
|
+
paymentMethod
|
|
86
|
+
paypalEmailAddress
|
|
87
|
+
bankCountry
|
|
88
|
+
bankAccountNumber
|
|
89
|
+
paymentSchedulingType
|
|
90
|
+
paymentThreshold
|
|
91
|
+
paymentDay
|
|
92
|
+
}
|
|
93
|
+
payoutsAccount {
|
|
94
|
+
hold
|
|
95
|
+
holdReasons
|
|
96
|
+
balance
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
const GET_COUNTRIES = index_module.dist.gql `
|
|
105
|
+
query getCountries {
|
|
106
|
+
impactPayoutCountries(limit: 1000) {
|
|
107
|
+
data {
|
|
108
|
+
countryCode
|
|
109
|
+
displayName
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
const GET_CURRENCIES = index_module.dist.gql `
|
|
115
|
+
query currencies($locale: RSLocale) {
|
|
116
|
+
currencies(limit: 300) {
|
|
117
|
+
data {
|
|
118
|
+
displayName(locale: $locale)
|
|
119
|
+
currencyCode
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
`;
|
|
124
|
+
const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
|
|
125
|
+
query impactFinanceNetworkSettings(
|
|
126
|
+
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
127
|
+
) {
|
|
128
|
+
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
129
|
+
data {
|
|
130
|
+
countryCode
|
|
131
|
+
currency
|
|
132
|
+
defaultFinancePaymentMethodId
|
|
133
|
+
thresholdOptions
|
|
134
|
+
withdrawalSettingId
|
|
135
|
+
internationalEftFee
|
|
136
|
+
foreignFxFee
|
|
137
|
+
defaultFxFee
|
|
138
|
+
}
|
|
139
|
+
totalCount
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
`;
|
|
143
|
+
const FORM_STEPS = 4;
|
|
24
144
|
|
|
25
145
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
26
146
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
|
|
@@ -564,20 +684,45 @@ const style = {
|
|
|
564
684
|
gap: "8px",
|
|
565
685
|
},
|
|
566
686
|
ErrorText: {
|
|
567
|
-
color: "var(--
|
|
687
|
+
color: "var(--sl-color-danger-500)",
|
|
568
688
|
marginTop: "10px",
|
|
569
689
|
},
|
|
570
690
|
PageDescriptionText: {
|
|
571
|
-
color: "var(--
|
|
691
|
+
color: "var(--sl-color-neutral-500)",
|
|
572
692
|
fontSize: "var(--sl-font-size-medium)",
|
|
573
693
|
},
|
|
574
694
|
DescriptionText: {
|
|
575
|
-
color: "var(--
|
|
695
|
+
color: "var(--sl-color-neutral-500)",
|
|
696
|
+
},
|
|
697
|
+
SecondaryBtn: {
|
|
698
|
+
"&::part(base)": {
|
|
699
|
+
color: "var(--sl-color-gray-800) !important",
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
AlertContainer: {
|
|
703
|
+
"&::part(base)": {
|
|
704
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
705
|
+
borderTop: "none",
|
|
706
|
+
padding: "0 16px",
|
|
707
|
+
},
|
|
708
|
+
"& sl-icon::part(base)": {
|
|
709
|
+
color: "var(--sl-color-danger-500)",
|
|
710
|
+
},
|
|
576
711
|
},
|
|
577
712
|
RadioContainer: {
|
|
578
713
|
display: "flex",
|
|
579
714
|
flexDirection: "column",
|
|
580
715
|
},
|
|
716
|
+
PartnerAlertContainer: {
|
|
717
|
+
"&::part(base)": {
|
|
718
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
719
|
+
borderTop: "none",
|
|
720
|
+
padding: "0 16px",
|
|
721
|
+
},
|
|
722
|
+
"& sl-icon::part(base)": {
|
|
723
|
+
color: "var(--sl-color-blue-500)",
|
|
724
|
+
},
|
|
725
|
+
},
|
|
581
726
|
Checkbox: {
|
|
582
727
|
"&::part(control)": {
|
|
583
728
|
borderRadius: "50% !important",
|
|
@@ -589,8 +734,8 @@ const style = {
|
|
|
589
734
|
InputContainer: {
|
|
590
735
|
padding: "16px",
|
|
591
736
|
margin: "16px 0px 16px 0px",
|
|
592
|
-
borderTop: "
|
|
593
|
-
borderBottom: "
|
|
737
|
+
borderTop: "1px solid var(--sl-color-gray-300)",
|
|
738
|
+
borderBottom: "1px solid var(--sl-color-gray-300)",
|
|
594
739
|
display: "flex",
|
|
595
740
|
flexDirection: "column",
|
|
596
741
|
width: "100%",
|
|
@@ -612,20 +757,37 @@ const style = {
|
|
|
612
757
|
width: "16px",
|
|
613
758
|
height: "16px",
|
|
614
759
|
borderRadius: "50%",
|
|
615
|
-
background: "var(--
|
|
760
|
+
background: "var(--sl-color-gray-200)",
|
|
616
761
|
},
|
|
617
762
|
SmallSkeleton: {
|
|
618
763
|
width: "100px",
|
|
619
764
|
height: "16px",
|
|
620
765
|
borderRadius: "50px",
|
|
621
|
-
background: "var(--
|
|
766
|
+
background: "var(--sl-color-gray-200)",
|
|
622
767
|
},
|
|
623
768
|
LargeSkeleton: {
|
|
624
769
|
width: "100%",
|
|
625
770
|
maxWidth: "320px",
|
|
626
771
|
height: "40px",
|
|
627
772
|
borderRadius: "50px",
|
|
628
|
-
background: "var(--
|
|
773
|
+
background: "var(--sl-color-gray-200)",
|
|
774
|
+
},
|
|
775
|
+
InfoAlert: {
|
|
776
|
+
"&::part(base)": {
|
|
777
|
+
backgroundColor: "transparent",
|
|
778
|
+
borderTop: "none",
|
|
779
|
+
border: "none",
|
|
780
|
+
},
|
|
781
|
+
"&::part(message)": {
|
|
782
|
+
display: "flex",
|
|
783
|
+
alignItems: "center",
|
|
784
|
+
justifyContent: "flex-start",
|
|
785
|
+
padding: "10px",
|
|
786
|
+
height: "max-content",
|
|
787
|
+
},
|
|
788
|
+
"& sl-icon::part(base)": {
|
|
789
|
+
color: "var(--sl-color-yellow-500)",
|
|
790
|
+
},
|
|
629
791
|
},
|
|
630
792
|
InfoWarningIcon: {
|
|
631
793
|
height: "26px",
|
|
@@ -671,16 +833,20 @@ const vanillaStyle = `
|
|
|
671
833
|
font-weight: 600
|
|
672
834
|
}
|
|
673
835
|
|
|
836
|
+
p {
|
|
837
|
+
line-height: 18px;
|
|
838
|
+
color: var(--sl-color-gray-800);
|
|
839
|
+
font-size: var(--sl-font-size-small);
|
|
840
|
+
}
|
|
841
|
+
|
|
674
842
|
/* this class is dynamically applied in controller */
|
|
675
843
|
.error-input::part(base) {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
--sl-input-border-color-hover: var(--sqm-danger-color-border);
|
|
679
|
-
--sl-input-border-color-focus: var(--sqm-danger-color-background);
|
|
844
|
+
border: 1px solid var(--sl-color-danger-500);
|
|
845
|
+
border-radius: var(--sl-input-border-radius-medium);
|
|
680
846
|
}
|
|
681
847
|
|
|
682
848
|
.error-input::part(help-text) {
|
|
683
|
-
color: var(--
|
|
849
|
+
color: var(--sl-color-danger-500) !important;
|
|
684
850
|
}
|
|
685
851
|
|
|
686
852
|
`;
|
|
@@ -729,19 +895,23 @@ const BankingInfoFormView = (props) => {
|
|
|
729
895
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
730
896
|
id: "formStep",
|
|
731
897
|
defaultMessage: text.formStep,
|
|
732
|
-
}, { step: states.step, count:
|
|
898
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
733
899
|
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
734
900
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
735
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
736
|
-
index.h("
|
|
901
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
902
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
903
|
+
index.h("strong", null, text.error.generalTitle),
|
|
904
|
+
index.h("br", null),
|
|
737
905
|
global.intl.formatMessage({
|
|
738
906
|
id: "generalDescription",
|
|
739
907
|
defaultMessage: text.error.generalDescription,
|
|
740
908
|
}, {
|
|
741
909
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
742
910
|
}))),
|
|
743
|
-
states.isPartner && !states.hideSteps && (index.h("
|
|
744
|
-
index.h("
|
|
911
|
+
states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
912
|
+
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
913
|
+
index.h("strong", null, text.isPartnerAlertHeader),
|
|
914
|
+
index.h("br", null),
|
|
745
915
|
global.intl.formatMessage({
|
|
746
916
|
id: "isPartnerAlertDescription",
|
|
747
917
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -782,7 +952,7 @@ const BankingInfoFormView = (props) => {
|
|
|
782
952
|
index.h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
|
|
783
953
|
? { onClick: callbacks.onModalOpen }
|
|
784
954
|
: { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
|
|
785
|
-
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "
|
|
955
|
+
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
786
956
|
};
|
|
787
957
|
|
|
788
958
|
// Hardcoded in Impact backend
|
|
@@ -866,25 +1036,25 @@ function useBankingInfoForm(props) {
|
|
|
866
1036
|
const host = index_module._();
|
|
867
1037
|
const locale = index_module.L();
|
|
868
1038
|
const user = index_module.J();
|
|
869
|
-
const [step, setStep] = index_module.Pn(
|
|
870
|
-
const context = index_module.Fn(
|
|
871
|
-
const countries = index_module.Fn(
|
|
872
|
-
const formRef =
|
|
873
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(
|
|
874
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(
|
|
1039
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
1040
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1041
|
+
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
1042
|
+
const formRef = stencilHooks_module.useRef(null);
|
|
1043
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
1044
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
875
1045
|
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
876
1046
|
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
877
|
-
const [showVerification, setShowVerification] =
|
|
878
|
-
const [currentFormData, setCurrentFormData] =
|
|
879
|
-
const [formState, setFormState] =
|
|
880
|
-
const [currentPaymentOption, setCurrentPaymentOption] =
|
|
881
|
-
const [loading, setLoading] =
|
|
882
|
-
const [errors, setErrors] =
|
|
883
|
-
const [_paymentMethodChecked, _setPaymentMethodChecked] =
|
|
884
|
-
const [paymentScheduleChecked, setPaymentScheduleChecked] =
|
|
885
|
-
const [countrySearch, setCountrySearch] =
|
|
886
|
-
const [filteredCountries, setFilteredCountries] =
|
|
887
|
-
const [showModal, setShowModal] =
|
|
1047
|
+
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
1048
|
+
const [currentFormData, setCurrentFormData] = stencilHooks_module.useState(null);
|
|
1049
|
+
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
1050
|
+
const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
|
|
1051
|
+
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
1052
|
+
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
1053
|
+
const [_paymentMethodChecked, _setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1054
|
+
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1055
|
+
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
1056
|
+
const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
|
|
1057
|
+
const [showModal, setShowModal] = stencilHooks_module.useState(false);
|
|
888
1058
|
const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
|
|
889
1059
|
const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
|
|
890
1060
|
const feeCap = paypalFeeMap[currency] || "";
|
|
@@ -904,7 +1074,11 @@ function useBankingInfoForm(props) {
|
|
|
904
1074
|
const paymentMethodChecked = !hasPayPal
|
|
905
1075
|
? "toBankAccount"
|
|
906
1076
|
: _paymentMethodChecked;
|
|
907
|
-
|
|
1077
|
+
stencilHooks_module.useEffect(() => {
|
|
1078
|
+
// reset redirect hash
|
|
1079
|
+
window.location.hash = "";
|
|
1080
|
+
}, []);
|
|
1081
|
+
stencilHooks_module.useEffect(() => {
|
|
908
1082
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
909
1083
|
if (!userData)
|
|
910
1084
|
return;
|
|
@@ -948,7 +1122,7 @@ function useBankingInfoForm(props) {
|
|
|
948
1122
|
setPaymentScheduleChecked(initialData.paymentSchedulingType);
|
|
949
1123
|
setFormState(initialData);
|
|
950
1124
|
}, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
|
|
951
|
-
|
|
1125
|
+
stencilHooks_module.useEffect(() => {
|
|
952
1126
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
953
1127
|
return;
|
|
954
1128
|
if (countrySearch.trim() === "") {
|
|
@@ -1423,7 +1597,7 @@ const BankingInfoForm = class {
|
|
|
1423
1597
|
* @uiName Information modal button text
|
|
1424
1598
|
*/
|
|
1425
1599
|
this.modalButtonText = "I understand, update my information";
|
|
1426
|
-
|
|
1600
|
+
stencilHooks_module.h$1(this);
|
|
1427
1601
|
}
|
|
1428
1602
|
disconnectedCallback() { }
|
|
1429
1603
|
getTextProps() {
|
|
@@ -1563,11 +1737,11 @@ function useDemoBankingInfoForm(props) {
|
|
|
1563
1737
|
const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
|
|
1564
1738
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1565
1739
|
const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
|
|
1566
|
-
const setStep = index_module.En(
|
|
1567
|
-
const [paymentMethodChecked, setPaymentMethodChecked] =
|
|
1568
|
-
const [paymentScheduleChecked, setPaymentScheduleChecked] =
|
|
1569
|
-
const [currency, setCurrency] =
|
|
1570
|
-
const [bankCountry, setBankCountry] =
|
|
1740
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1741
|
+
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1742
|
+
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1743
|
+
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
1744
|
+
const [bankCountry, setBankCountry] = stencilHooks_module.useState(defaultCountry);
|
|
1571
1745
|
const currentPaymentOption = (_m = mockPaymentOptions[currency]) === null || _m === void 0 ? void 0 : _m.find((paymentOption) => {
|
|
1572
1746
|
if (paymentOption.countryCode === bankCountry)
|
|
1573
1747
|
return true;
|
|
@@ -1575,7 +1749,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1575
1749
|
});
|
|
1576
1750
|
const bitset = (currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.withdrawalSettingId) || ((_p = (_o = props.demoData) === null || _o === void 0 ? void 0 : _o.states) === null || _p === void 0 ? void 0 : _p.bitset) ||
|
|
1577
1751
|
0;
|
|
1578
|
-
|
|
1752
|
+
stencilHooks_module.useEffect(() => {
|
|
1579
1753
|
if (defaultPaymentMethodChecked !== paymentMethodChecked)
|
|
1580
1754
|
setPaymentMethodChecked(defaultPaymentMethodChecked);
|
|
1581
1755
|
if (defaultPaymentScheduleChecked !== paymentScheduleChecked)
|
|
@@ -1659,6 +1833,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1659
1833
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1660
1834
|
}
|
|
1661
1835
|
|
|
1836
|
+
const style$1 = {
|
|
1837
|
+
Wrapper: {
|
|
1838
|
+
display: "flex",
|
|
1839
|
+
flexDirection: "column",
|
|
1840
|
+
gap: "var(--sl-spacing-medium)",
|
|
1841
|
+
maxWidth: "550px",
|
|
1842
|
+
},
|
|
1843
|
+
HeaderContainer: {
|
|
1844
|
+
display: "flex",
|
|
1845
|
+
flexDirection: "column",
|
|
1846
|
+
},
|
|
1847
|
+
InputsContainer: {
|
|
1848
|
+
display: "flex",
|
|
1849
|
+
gap: "var(--sl-spacing-medium)",
|
|
1850
|
+
position: "relative",
|
|
1851
|
+
flexDirection: "column",
|
|
1852
|
+
},
|
|
1853
|
+
CodeInputContainer: {
|
|
1854
|
+
display: "flex",
|
|
1855
|
+
gap: "var(--sl-spacing-medium)",
|
|
1856
|
+
},
|
|
1857
|
+
CodeInput: {
|
|
1858
|
+
maxWidth: "40px",
|
|
1859
|
+
"&::part(input)": {
|
|
1860
|
+
margin: "0",
|
|
1861
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1862
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1863
|
+
},
|
|
1864
|
+
},
|
|
1865
|
+
CodeInputError: {
|
|
1866
|
+
...mixins.ErrorStyles,
|
|
1867
|
+
maxWidth: "40px",
|
|
1868
|
+
"&::part(input)": {
|
|
1869
|
+
margin: "0",
|
|
1870
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1871
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1872
|
+
},
|
|
1873
|
+
},
|
|
1874
|
+
ErrorText: {
|
|
1875
|
+
color: "var(--sl-color-danger-500)",
|
|
1876
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1877
|
+
margin: "0",
|
|
1878
|
+
},
|
|
1879
|
+
ContinueButton: {
|
|
1880
|
+
width: "100%",
|
|
1881
|
+
maxWidth: "100px",
|
|
1882
|
+
},
|
|
1883
|
+
FooterContainer: {
|
|
1884
|
+
display: "flex",
|
|
1885
|
+
flexDirection: "column",
|
|
1886
|
+
},
|
|
1887
|
+
SkeletonOne: {
|
|
1888
|
+
width: "50%",
|
|
1889
|
+
height: "16px",
|
|
1890
|
+
},
|
|
1891
|
+
SkeletonTwo: {
|
|
1892
|
+
width: "30%",
|
|
1893
|
+
height: "34px",
|
|
1894
|
+
},
|
|
1895
|
+
SkeletonThree: {
|
|
1896
|
+
width: "15%",
|
|
1897
|
+
height: "24px",
|
|
1898
|
+
},
|
|
1899
|
+
};
|
|
1900
|
+
const vanillaStyle$1 = `
|
|
1901
|
+
:host {
|
|
1902
|
+
display: block;
|
|
1903
|
+
}
|
|
1904
|
+
:host([hidden]): {
|
|
1905
|
+
display: none;
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
`;
|
|
1910
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1911
|
+
const styleString$1 = sheet$1.toString();
|
|
1912
|
+
function WidgetCodeVerificationView(props) {
|
|
1913
|
+
const { states, refs, callbacks, text } = props;
|
|
1914
|
+
const resendCodeText = global.intl.formatMessage({
|
|
1915
|
+
id: "resendCodeText",
|
|
1916
|
+
defaultMessage: text.resendCodeText,
|
|
1917
|
+
}, {
|
|
1918
|
+
resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1919
|
+
e.preventDefault();
|
|
1920
|
+
callbacks.resendEmail();
|
|
1921
|
+
} }, text.resendCodeLabel)),
|
|
1922
|
+
});
|
|
1923
|
+
const codeResentSuccessfully = global.intl.formatMessage({
|
|
1924
|
+
id: "codeResentSuccessfully",
|
|
1925
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1926
|
+
}, {
|
|
1927
|
+
email: states.email,
|
|
1928
|
+
});
|
|
1929
|
+
const inputClass = states.verifyFailed
|
|
1930
|
+
? sheet$1.classes.CodeInputError
|
|
1931
|
+
: sheet$1.classes.CodeInput;
|
|
1932
|
+
return (index.h("div", { part: "sqm-base" },
|
|
1933
|
+
index.h("style", { type: "text/css" },
|
|
1934
|
+
vanillaStyle$1,
|
|
1935
|
+
styleString$1),
|
|
1936
|
+
index.h("div", { class: sheet$1.classes.Wrapper },
|
|
1937
|
+
index.h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1938
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
|
|
1939
|
+
id: `emailHeaderText`,
|
|
1940
|
+
defaultMessage: states.verifyFailed
|
|
1941
|
+
? text.reverifyCodeHeaderText
|
|
1942
|
+
: text.verifyCodeHeaderText,
|
|
1943
|
+
}, { email: states.email }))),
|
|
1944
|
+
states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1945
|
+
index.h("b", null, codeResentSuccessfully))),
|
|
1946
|
+
index.h("div", { class: sheet$1.classes.InputsContainer },
|
|
1947
|
+
index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1948
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1949
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1950
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1951
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1952
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1953
|
+
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
1954
|
+
states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1955
|
+
index.h("sl-button", { class: sheet$1.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
|
|
1956
|
+
index.h("div", { class: sheet$1.classes.FooterContainer },
|
|
1957
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|
|
1961
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1962
|
+
$user: UserIdInput!
|
|
1963
|
+
$code: String!
|
|
1964
|
+
) {
|
|
1965
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1966
|
+
verifiedEmail
|
|
1967
|
+
accessKey
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
`;
|
|
1971
|
+
function useWidgetCodeVerification(props) {
|
|
1972
|
+
const host = stencilHooks_module.l();
|
|
1973
|
+
const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
|
|
1974
|
+
const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
|
|
1975
|
+
const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
|
|
1976
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
1977
|
+
const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
|
|
1978
|
+
const [validationError, setValidationError] = stencilHooks_module.useState(false);
|
|
1979
|
+
const [emailError, setEmailError] = stencilHooks_module.useState(false);
|
|
1980
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
1981
|
+
stencilHooks_module.useEffect(() => {
|
|
1982
|
+
if (!codeRef)
|
|
1983
|
+
return;
|
|
1984
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1985
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1986
|
+
codeElements.forEach((element, idx) => {
|
|
1987
|
+
element.addEventListener("focus", (e) => {
|
|
1988
|
+
e.target.select();
|
|
1989
|
+
});
|
|
1990
|
+
element.addEventListener("keydown", (e) => {
|
|
1991
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1992
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1993
|
+
}
|
|
1994
|
+
});
|
|
1995
|
+
element.addEventListener("input", (e) => {
|
|
1996
|
+
const input = e.data;
|
|
1997
|
+
if (!input)
|
|
1998
|
+
return;
|
|
1999
|
+
if (idx === codeElements.length - 1) {
|
|
2000
|
+
e.target.value = input.slice(0, 1);
|
|
2001
|
+
return;
|
|
2002
|
+
}
|
|
2003
|
+
if (input.length > 1) {
|
|
2004
|
+
const rest = input.slice(1);
|
|
2005
|
+
e.target.value = input.slice(0, 1);
|
|
2006
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
2007
|
+
inputType: "insertFromPaste",
|
|
2008
|
+
data: rest,
|
|
2009
|
+
}));
|
|
2010
|
+
}
|
|
2011
|
+
codeElements[idx + 1].focus();
|
|
2012
|
+
});
|
|
2013
|
+
});
|
|
2014
|
+
}, [codeRef]);
|
|
2015
|
+
const reset = () => {
|
|
2016
|
+
setShowCode(false);
|
|
2017
|
+
setValidationError(false);
|
|
2018
|
+
};
|
|
2019
|
+
const resendEmail = async () => {
|
|
2020
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
2021
|
+
if (!initialized)
|
|
2022
|
+
return;
|
|
2023
|
+
const result = await sendEmail();
|
|
2024
|
+
if (!result) {
|
|
2025
|
+
setEmailError(true);
|
|
2026
|
+
return;
|
|
2027
|
+
}
|
|
2028
|
+
if (emailSent)
|
|
2029
|
+
setEmailResent(true);
|
|
2030
|
+
setEmailSent(true);
|
|
2031
|
+
};
|
|
2032
|
+
const submitCode = async () => {
|
|
2033
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
2034
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
2035
|
+
if (codeElements.find((el) => !el.value)) {
|
|
2036
|
+
setValidationError(true);
|
|
2037
|
+
return;
|
|
2038
|
+
}
|
|
2039
|
+
let code = "";
|
|
2040
|
+
codeElements.forEach((element) => {
|
|
2041
|
+
code = `${code}${element.value}`;
|
|
2042
|
+
});
|
|
2043
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
2044
|
+
if (!initialized)
|
|
2045
|
+
return;
|
|
2046
|
+
setValidationError(false);
|
|
2047
|
+
const res = await verifyEmail(code);
|
|
2048
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
2049
|
+
props.onVerification(res.accessKey);
|
|
2050
|
+
reset();
|
|
2051
|
+
}
|
|
2052
|
+
else {
|
|
2053
|
+
setValidationError(true);
|
|
2054
|
+
}
|
|
2055
|
+
};
|
|
2056
|
+
stencilHooks_module.useEffect(() => {
|
|
2057
|
+
// Wait for mutations to be determined from user lookup
|
|
2058
|
+
if (!initialized)
|
|
2059
|
+
return;
|
|
2060
|
+
// email should already exist if user has completed email-verification
|
|
2061
|
+
if (!email)
|
|
2062
|
+
resendEmail();
|
|
2063
|
+
else
|
|
2064
|
+
setEmailSent(true);
|
|
2065
|
+
}, [initialized]);
|
|
2066
|
+
return {
|
|
2067
|
+
refs: {
|
|
2068
|
+
codeWrapperRef: setCodeRef,
|
|
2069
|
+
},
|
|
2070
|
+
states: {
|
|
2071
|
+
email: verificationEmail,
|
|
2072
|
+
emailResent,
|
|
2073
|
+
resendError: sendErrors || verifyErrors,
|
|
2074
|
+
initialiseLoading: !initialized,
|
|
2075
|
+
loading: sendLoading || verifyLoading,
|
|
2076
|
+
verifyFailed: !!validationError,
|
|
2077
|
+
},
|
|
2078
|
+
callbacks: {
|
|
2079
|
+
resendEmail,
|
|
2080
|
+
submitCode,
|
|
2081
|
+
},
|
|
2082
|
+
text: props.getTextProps(),
|
|
2083
|
+
};
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
const WidgetCodeVerification = class {
|
|
2087
|
+
constructor(hostRef) {
|
|
2088
|
+
index.registerInstance(this, hostRef);
|
|
2089
|
+
/**
|
|
2090
|
+
* @uiName Verify code widget header text
|
|
2091
|
+
*/
|
|
2092
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2093
|
+
/**
|
|
2094
|
+
* @uiName Reverify code widget header text
|
|
2095
|
+
*/
|
|
2096
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2097
|
+
/**
|
|
2098
|
+
* Text displayed under verify button
|
|
2099
|
+
* @uiName Resend code text
|
|
2100
|
+
*/
|
|
2101
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2102
|
+
/**
|
|
2103
|
+
* The link that appears in the resend code link
|
|
2104
|
+
* @uiName Resend code label
|
|
2105
|
+
*/
|
|
2106
|
+
this.resendCodeLabel = "Resend code";
|
|
2107
|
+
/**
|
|
2108
|
+
* Link text displayed under verify button
|
|
2109
|
+
* @uiName Resend code text
|
|
2110
|
+
*/
|
|
2111
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2112
|
+
/**
|
|
2113
|
+
* Error text displayed under verification input
|
|
2114
|
+
* @uiName Invalid code text
|
|
2115
|
+
*/
|
|
2116
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2117
|
+
/**
|
|
2118
|
+
* @uiName Verify code button text
|
|
2119
|
+
*/
|
|
2120
|
+
this.verifyText = "Verify";
|
|
2121
|
+
/**
|
|
2122
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2123
|
+
* @uiName Network error message
|
|
2124
|
+
*/
|
|
2125
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2126
|
+
stencilHooks_module.h$1(this);
|
|
2127
|
+
}
|
|
2128
|
+
disconnectedCallback() { }
|
|
2129
|
+
getTextProps() {
|
|
2130
|
+
return utils.getProps(this);
|
|
2131
|
+
}
|
|
2132
|
+
render() {
|
|
2133
|
+
const props = index_module.isDemo()
|
|
2134
|
+
? useDemoWidgetCodeVerification(this)
|
|
2135
|
+
: useWidgetCodeVerification(this);
|
|
2136
|
+
return index.h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2137
|
+
}
|
|
2138
|
+
};
|
|
2139
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2140
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
2141
|
+
const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
2142
|
+
return cjs.cjs({
|
|
2143
|
+
states: {
|
|
2144
|
+
loading: false,
|
|
2145
|
+
email: "test@example.com",
|
|
2146
|
+
emailResent,
|
|
2147
|
+
resendError: false,
|
|
2148
|
+
verifyFailed: false,
|
|
2149
|
+
},
|
|
2150
|
+
refs: {
|
|
2151
|
+
codeWrapperRef: () => { },
|
|
2152
|
+
},
|
|
2153
|
+
callbacks: {
|
|
2154
|
+
resendEmail: async () => setEmailResent(true),
|
|
2155
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2156
|
+
},
|
|
2157
|
+
text: props.getTextProps(),
|
|
2158
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2159
|
+
}
|
|
2160
|
+
|
|
1662
2161
|
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
1663
2162
|
mutation createImpactPublisherTaxDocument(
|
|
1664
2163
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1687,24 +2186,24 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
|
1687
2186
|
function useDocusignForm(props) {
|
|
1688
2187
|
var _a, _b, _c;
|
|
1689
2188
|
const user = index_module.J();
|
|
1690
|
-
const context = index_module.Fn(
|
|
1691
|
-
const [step, setStep] = index_module.Pn(
|
|
1692
|
-
const { data
|
|
1693
|
-
const publisher = (_b = (_a = data
|
|
2189
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2190
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2191
|
+
const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2192
|
+
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
1694
2193
|
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
1695
2194
|
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
1696
|
-
const [docusignStatus, setDocusignStatus] =
|
|
1697
|
-
const [participantType, setParticipantType] =
|
|
1698
|
-
const [errors, setErrors] =
|
|
1699
|
-
const [loading, setLoading] =
|
|
1700
|
-
const [showExitButton, setShowExitButton] =
|
|
1701
|
-
const [showModal, setShowModal] =
|
|
2195
|
+
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
2196
|
+
const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
|
|
2197
|
+
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
2198
|
+
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
2199
|
+
const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
|
|
2200
|
+
const [showModal, setShowModal] = stencilHooks_module.useState(true);
|
|
1702
2201
|
// Only look at current document if it's valid (same as required type)
|
|
1703
|
-
const existingDocumentType =
|
|
2202
|
+
const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
1704
2203
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
1705
2204
|
const actualDocumentType = existingDocumentType ||
|
|
1706
2205
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
1707
|
-
|
|
2206
|
+
stencilHooks_module.useEffect(() => {
|
|
1708
2207
|
if (!existingDocumentType)
|
|
1709
2208
|
return;
|
|
1710
2209
|
if (existingDocumentType === "W8BEN") {
|
|
@@ -1714,7 +2213,7 @@ function useDocusignForm(props) {
|
|
|
1714
2213
|
setParticipantType("businessEntity");
|
|
1715
2214
|
}
|
|
1716
2215
|
}, [existingDocumentType]);
|
|
1717
|
-
|
|
2216
|
+
stencilHooks_module.useEffect(() => {
|
|
1718
2217
|
// Skip if no publisher info
|
|
1719
2218
|
if (!user || !publisher)
|
|
1720
2219
|
return;
|
|
@@ -1792,7 +2291,7 @@ function useDocusignForm(props) {
|
|
|
1792
2291
|
},
|
|
1793
2292
|
docusignStatus,
|
|
1794
2293
|
documentType: actualDocumentType,
|
|
1795
|
-
documentTypeString:
|
|
2294
|
+
documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
|
|
1796
2295
|
showExitButton,
|
|
1797
2296
|
showModal,
|
|
1798
2297
|
},
|
|
@@ -1820,7 +2319,7 @@ function getDocumentType(p) {
|
|
|
1820
2319
|
return undefined;
|
|
1821
2320
|
}
|
|
1822
2321
|
|
|
1823
|
-
const style$
|
|
2322
|
+
const style$2 = {
|
|
1824
2323
|
DocusignStatusContainer: {
|
|
1825
2324
|
width: "100%",
|
|
1826
2325
|
minHeight: "600px",
|
|
@@ -1832,7 +2331,7 @@ const style$1 = {
|
|
|
1832
2331
|
gap: "10px",
|
|
1833
2332
|
margin: "auto",
|
|
1834
2333
|
textAlign: "center",
|
|
1835
|
-
border: "
|
|
2334
|
+
border: "1px solid var(--sl-color-gray-200)",
|
|
1836
2335
|
justifyContent: "center",
|
|
1837
2336
|
},
|
|
1838
2337
|
MessageContainer: {
|
|
@@ -1847,48 +2346,48 @@ const style$1 = {
|
|
|
1847
2346
|
},
|
|
1848
2347
|
},
|
|
1849
2348
|
};
|
|
1850
|
-
const sheet$
|
|
1851
|
-
const styleString$
|
|
2349
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
2350
|
+
const styleString$2 = sheet$2.toString();
|
|
1852
2351
|
const DocusignExpiredView = (props) => {
|
|
1853
|
-
const { classes } = sheet$
|
|
2352
|
+
const { classes } = sheet$2;
|
|
1854
2353
|
const { text } = props;
|
|
1855
2354
|
return (index.h("div", null,
|
|
1856
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2355
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1857
2356
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1858
2357
|
index.h("sl-icon", { style: {
|
|
1859
2358
|
width: "50px",
|
|
1860
2359
|
height: "50px",
|
|
1861
|
-
color: "var(--
|
|
2360
|
+
color: "var(--sl-color-neutral-500)",
|
|
1862
2361
|
}, name: "clock" }),
|
|
1863
2362
|
index.h("div", { class: classes.MessageContainer },
|
|
1864
2363
|
index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1865
2364
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1866
2365
|
};
|
|
1867
2366
|
const DocusignErrorView = (props) => {
|
|
1868
|
-
const { classes } = sheet$
|
|
2367
|
+
const { classes } = sheet$2;
|
|
1869
2368
|
const { text } = props;
|
|
1870
2369
|
return (index.h("div", null,
|
|
1871
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2370
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1872
2371
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1873
2372
|
index.h("sl-icon", { style: {
|
|
1874
2373
|
width: "50px",
|
|
1875
2374
|
height: "50px",
|
|
1876
|
-
color: "var(--
|
|
2375
|
+
color: "var(--sl-color-gray-500)",
|
|
1877
2376
|
}, name: "exclamation-octagon" }),
|
|
1878
2377
|
index.h("div", { class: classes.MessageContainer },
|
|
1879
2378
|
index.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1880
2379
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1881
2380
|
};
|
|
1882
2381
|
const DocusignLoadingView = () => {
|
|
1883
|
-
const { classes } = sheet$
|
|
2382
|
+
const { classes } = sheet$2;
|
|
1884
2383
|
return (index.h("div", null,
|
|
1885
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2384
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1886
2385
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1887
2386
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1888
2387
|
};
|
|
1889
2388
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1890
|
-
const { classes } = sheet$
|
|
1891
|
-
const [iFrameHeight, setiFrameHeight] =
|
|
2389
|
+
const { classes } = sheet$2;
|
|
2390
|
+
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
1892
2391
|
const allowedDomains = [
|
|
1893
2392
|
"referralsaasquatch.com",
|
|
1894
2393
|
"impacttech.complysandbox.com",
|
|
@@ -1901,11 +2400,11 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1901
2400
|
if (typeof e.data === "number") {
|
|
1902
2401
|
setiFrameHeight(e.data + "px");
|
|
1903
2402
|
}
|
|
1904
|
-
if (e.data === "Complyexchange Thank you page Load") {
|
|
2403
|
+
if (e.data === "Complyexchange Thank you page Load" && !states.loading) {
|
|
1905
2404
|
callbacks.completeDocument();
|
|
1906
2405
|
}
|
|
1907
2406
|
}, []);
|
|
1908
|
-
|
|
2407
|
+
stencilHooks_module.useEffect(() => {
|
|
1909
2408
|
window.addEventListener("message", callback, false);
|
|
1910
2409
|
return () => {
|
|
1911
2410
|
window.removeEventListener("message", callback, false);
|
|
@@ -1920,12 +2419,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1920
2419
|
return index.h(DocusignExpiredView, { text: text });
|
|
1921
2420
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1922
2421
|
return (index.h("div", { style: { height: iFrameHeight } },
|
|
1923
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2422
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1924
2423
|
index.h("div", { class: classes.IFrameContainer },
|
|
1925
2424
|
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1926
2425
|
};
|
|
1927
2426
|
|
|
1928
|
-
const style$
|
|
2427
|
+
const style$3 = {
|
|
1929
2428
|
ModalTitleContainer: {
|
|
1930
2429
|
display: "flex",
|
|
1931
2430
|
gap: "var(--sl-spacing-small)",
|
|
@@ -1962,7 +2461,7 @@ const style$2 = {
|
|
|
1962
2461
|
gap: "8px",
|
|
1963
2462
|
},
|
|
1964
2463
|
ErrorText: {
|
|
1965
|
-
color: "var(--
|
|
2464
|
+
color: "var(--sl-color-danger-500)",
|
|
1966
2465
|
marginTop: "10px",
|
|
1967
2466
|
},
|
|
1968
2467
|
DescriptionText: {
|
|
@@ -1971,6 +2470,44 @@ const style$2 = {
|
|
|
1971
2470
|
BoldText: {
|
|
1972
2471
|
fontWeight: "bold",
|
|
1973
2472
|
},
|
|
2473
|
+
SecondaryBtn: {
|
|
2474
|
+
"&::part(base)": {
|
|
2475
|
+
color: "var(--sl-color-gray-800) !important",
|
|
2476
|
+
},
|
|
2477
|
+
"&::part(label)": {
|
|
2478
|
+
padding: "0px",
|
|
2479
|
+
margin: "0px",
|
|
2480
|
+
},
|
|
2481
|
+
},
|
|
2482
|
+
ErrorAlertContainer: {
|
|
2483
|
+
"&::part(base)": {
|
|
2484
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
2485
|
+
borderTop: "none",
|
|
2486
|
+
padding: "0 16px",
|
|
2487
|
+
},
|
|
2488
|
+
"& sl-icon::part(base)": {
|
|
2489
|
+
color: "var(--sl-color-danger-500)",
|
|
2490
|
+
},
|
|
2491
|
+
},
|
|
2492
|
+
InfoAlert: {
|
|
2493
|
+
"&::part(base)": {
|
|
2494
|
+
backgroundColor: "transparent",
|
|
2495
|
+
borderTop: "none",
|
|
2496
|
+
padding: "0px",
|
|
2497
|
+
marginBottom: "16px",
|
|
2498
|
+
border: "none",
|
|
2499
|
+
},
|
|
2500
|
+
"&::part(message)": {
|
|
2501
|
+
display: "flex",
|
|
2502
|
+
alignItems: "center",
|
|
2503
|
+
justifyContent: "flex-start",
|
|
2504
|
+
padding: "10px",
|
|
2505
|
+
height: "max-content",
|
|
2506
|
+
},
|
|
2507
|
+
"& sl-icon::part(base)": {
|
|
2508
|
+
color: "var(--sl-color-sky-500)",
|
|
2509
|
+
},
|
|
2510
|
+
},
|
|
1974
2511
|
Container: {
|
|
1975
2512
|
width: "100%",
|
|
1976
2513
|
display: "flex",
|
|
@@ -1978,6 +2515,16 @@ const style$2 = {
|
|
|
1978
2515
|
flexDirection: "column",
|
|
1979
2516
|
gap: "16px",
|
|
1980
2517
|
},
|
|
2518
|
+
Link: {
|
|
2519
|
+
color: "var(--sl-color-sky-500)",
|
|
2520
|
+
textDecoration: "none",
|
|
2521
|
+
"&:visited": {
|
|
2522
|
+
color: "var(--sl-color-sky-500)",
|
|
2523
|
+
},
|
|
2524
|
+
"&:hover": {
|
|
2525
|
+
textDecoration: "underline",
|
|
2526
|
+
},
|
|
2527
|
+
},
|
|
1981
2528
|
CheckboxWrapper: {
|
|
1982
2529
|
display: "flex",
|
|
1983
2530
|
justifyContent: "flex-start",
|
|
@@ -1991,7 +2538,7 @@ const style$2 = {
|
|
|
1991
2538
|
fontSize: "var(--sl-font-size-small)",
|
|
1992
2539
|
},
|
|
1993
2540
|
PageDescriptionText: {
|
|
1994
|
-
color: "var(--
|
|
2541
|
+
color: "var(--sl-color-neutral-500)",
|
|
1995
2542
|
fontSize: "var(--sl-font-size-medium)",
|
|
1996
2543
|
},
|
|
1997
2544
|
Dialog: {
|
|
@@ -2017,38 +2564,41 @@ const style$2 = {
|
|
|
2017
2564
|
},
|
|
2018
2565
|
DialogButton: { margin: "auto", width: "100%" },
|
|
2019
2566
|
};
|
|
2020
|
-
const sheet$
|
|
2021
|
-
const styleString$
|
|
2022
|
-
const vanillaStyle$
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
}
|
|
2567
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2568
|
+
const styleString$3 = sheet$3.toString();
|
|
2569
|
+
const vanillaStyle$2 = `
|
|
2570
|
+
:host{
|
|
2571
|
+
display: block;
|
|
2572
|
+
}
|
|
2573
|
+
* {
|
|
2574
|
+
margin: 0;
|
|
2575
|
+
padding: 0;
|
|
2576
|
+
box-sizing: border-box;
|
|
2577
|
+
}
|
|
2032
2578
|
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2579
|
+
p {
|
|
2580
|
+
line-height: 18px;
|
|
2581
|
+
color: var(--sl-color-gray-800);
|
|
2582
|
+
font-size: var(--sl-font-size-small);
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
a {
|
|
2586
|
+
cursor: pointer;
|
|
2587
|
+
}
|
|
2038
2588
|
|
|
2039
2589
|
|
|
2040
2590
|
`;
|
|
2041
2591
|
const DocusignFormView = (props) => {
|
|
2042
2592
|
var _a;
|
|
2043
2593
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2044
|
-
const { classes } = sheet$
|
|
2594
|
+
const { classes } = sheet$3;
|
|
2045
2595
|
return (index.h("div", { class: classes.Container },
|
|
2046
2596
|
index.h("style", { type: "text/css" },
|
|
2047
|
-
styleString$
|
|
2048
|
-
vanillaStyle$
|
|
2049
|
-
index.h("sl-dialog", { class: sheet$
|
|
2597
|
+
styleString$3,
|
|
2598
|
+
vanillaStyle$2),
|
|
2599
|
+
index.h("sl-dialog", { class: sheet$3.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
2050
2600
|
index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
2051
|
-
index.h("sl-icon", { name: "info-circle", style: { color: "var(--
|
|
2601
|
+
index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
|
|
2052
2602
|
index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
2053
2603
|
index.h("p", null, global.intl.formatMessage({
|
|
2054
2604
|
id: "modalText",
|
|
@@ -2056,26 +2606,30 @@ const DocusignFormView = (props) => {
|
|
|
2056
2606
|
}, {
|
|
2057
2607
|
br: index.h("br", null),
|
|
2058
2608
|
})),
|
|
2059
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
2609
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$3.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
2060
2610
|
index.h("div", { class: classes.TextContainer },
|
|
2061
2611
|
index.h("div", null,
|
|
2062
2612
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2063
2613
|
id: "formStep",
|
|
2064
2614
|
defaultMessage: text.formStep,
|
|
2065
|
-
}, { step: states.step, count:
|
|
2615
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
2066
2616
|
index.h("h3", null, text.taxForm),
|
|
2067
2617
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2068
2618
|
states.loadingError && (index.h("div", null,
|
|
2069
|
-
index.h("
|
|
2070
|
-
index.h("
|
|
2619
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2620
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2621
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2622
|
+
index.h("br", null),
|
|
2071
2623
|
global.intl.formatMessage({
|
|
2072
2624
|
id: "loadingErrorAlertDescription",
|
|
2073
2625
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2074
2626
|
}, {
|
|
2075
2627
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2076
2628
|
})))),
|
|
2077
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
2078
|
-
index.h("
|
|
2629
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2630
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2631
|
+
index.h("strong", null, text.error.generalTitle),
|
|
2632
|
+
index.h("br", null),
|
|
2079
2633
|
global.intl.formatMessage({
|
|
2080
2634
|
id: "generalDescription",
|
|
2081
2635
|
defaultMessage: text.error.generalDescription,
|
|
@@ -2135,7 +2689,7 @@ const DocusignForm = class {
|
|
|
2135
2689
|
* @uiName W-8 BEN-E tax form description
|
|
2136
2690
|
* @uiWidget textArea
|
|
2137
2691
|
*/
|
|
2138
|
-
this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US
|
|
2692
|
+
this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";
|
|
2139
2693
|
/**
|
|
2140
2694
|
* This appears inside the Docusign frame.
|
|
2141
2695
|
* @uiName Docusign session expired messag
|
|
@@ -2218,7 +2772,7 @@ const DocusignForm = class {
|
|
|
2218
2772
|
* @uiName Information modal button text
|
|
2219
2773
|
*/
|
|
2220
2774
|
this.modalButtonText = "I understand";
|
|
2221
|
-
|
|
2775
|
+
stencilHooks_module.h$1(this);
|
|
2222
2776
|
}
|
|
2223
2777
|
disconnectedCallback() { }
|
|
2224
2778
|
getTextProps() {
|
|
@@ -2255,11 +2809,11 @@ const DocusignForm = class {
|
|
|
2255
2809
|
get el() { return index.getElement(this); }
|
|
2256
2810
|
};
|
|
2257
2811
|
function useDocusignFormDemo(props) {
|
|
2258
|
-
const setStep = index_module.En(
|
|
2812
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2259
2813
|
return cjs.cjs({
|
|
2260
2814
|
text: props.getTextProps(),
|
|
2261
2815
|
states: {
|
|
2262
|
-
step: "
|
|
2816
|
+
step: "4",
|
|
2263
2817
|
disabled: false,
|
|
2264
2818
|
submitDisabled: false,
|
|
2265
2819
|
loading: false,
|
|
@@ -2295,7 +2849,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2295
2849
|
return (index.h("div", { style: {
|
|
2296
2850
|
width: "100%",
|
|
2297
2851
|
height: "600px",
|
|
2298
|
-
background: "
|
|
2852
|
+
background: "#fafafa",
|
|
2299
2853
|
display: "flex",
|
|
2300
2854
|
justifyContent: "center",
|
|
2301
2855
|
alignItems: "center",
|
|
@@ -2307,7 +2861,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2307
2861
|
} }, index.h("span", null, "Placeholder for docusign iframe"), index.h("div", { style: { display: "flex", gap: "8px" } }, index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2308
2862
|
};
|
|
2309
2863
|
|
|
2310
|
-
const style$
|
|
2864
|
+
const style$4 = {
|
|
2311
2865
|
FormWrapper: {
|
|
2312
2866
|
display: "flex",
|
|
2313
2867
|
justifyContent: "flex-start",
|
|
@@ -2319,7 +2873,6 @@ const style$3 = {
|
|
|
2319
2873
|
justifyContent: "flex-start",
|
|
2320
2874
|
flexDirection: "column",
|
|
2321
2875
|
gap: "var(--sl-spacing-medium)",
|
|
2322
|
-
marginBottom: "16px",
|
|
2323
2876
|
"& sl-radio::part(base)": {
|
|
2324
2877
|
alignItems: "start",
|
|
2325
2878
|
},
|
|
@@ -2360,76 +2913,86 @@ const style$3 = {
|
|
|
2360
2913
|
marginTop: "10px",
|
|
2361
2914
|
},
|
|
2362
2915
|
DescriptionText: {
|
|
2363
|
-
color: "var(--
|
|
2916
|
+
color: "var(--sl-color-neutral-500)",
|
|
2364
2917
|
},
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2918
|
+
SecondaryBtn: {
|
|
2919
|
+
"&::part(base)": {
|
|
2920
|
+
color: "var(--sl-color-gray-800) !important",
|
|
2921
|
+
},
|
|
2368
2922
|
},
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2923
|
+
AlertContainer: {
|
|
2924
|
+
"&::part(base)": {
|
|
2925
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
2926
|
+
borderTop: "none",
|
|
2927
|
+
padding: "0 16px",
|
|
2928
|
+
},
|
|
2929
|
+
"& sl-icon::part(base)": {
|
|
2930
|
+
color: "var(--sl-color-danger-500)",
|
|
2931
|
+
},
|
|
2373
2932
|
},
|
|
2374
|
-
|
|
2933
|
+
PartnerAlertContainer: {
|
|
2375
2934
|
"&::part(base)": {
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
borderRadius: "var(--sqm-primary-button-radius)",
|
|
2935
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
2936
|
+
borderTop: "none",
|
|
2937
|
+
padding: "0 16px",
|
|
2380
2938
|
},
|
|
2381
|
-
"
|
|
2382
|
-
|
|
2939
|
+
"& sl-icon::part(base)": {
|
|
2940
|
+
color: "var(--sl-color-blue-500)",
|
|
2383
2941
|
},
|
|
2384
2942
|
},
|
|
2385
|
-
|
|
2943
|
+
InfoAlert: {
|
|
2944
|
+
marginTop: "var(--sl-spacing-large)",
|
|
2386
2945
|
"&::part(base)": {
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2946
|
+
backgroundColor: "transparent",
|
|
2947
|
+
borderTop: "none",
|
|
2948
|
+
padding: "0px",
|
|
2949
|
+
border: "none",
|
|
2950
|
+
},
|
|
2951
|
+
"&::part(message)": {
|
|
2952
|
+
alignItems: "center",
|
|
2953
|
+
padding: "var(--sl-spacing-small)",
|
|
2954
|
+
whiteSpace: "nowrap",
|
|
2394
2955
|
},
|
|
2395
|
-
"
|
|
2396
|
-
color: "var(--
|
|
2397
|
-
background: "var(--sqm-secondary-button-background-hover)",
|
|
2956
|
+
"& sl-icon::part(base)": {
|
|
2957
|
+
color: "var(--sl-color-yellow-500)",
|
|
2398
2958
|
},
|
|
2399
2959
|
},
|
|
2960
|
+
InfoWarningIcon: {
|
|
2961
|
+
height: "26px",
|
|
2962
|
+
width: "26px",
|
|
2963
|
+
},
|
|
2964
|
+
PageDescriptionText: {
|
|
2965
|
+
color: "var(--sl-color-neutral-500)",
|
|
2966
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2967
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
2968
|
+
},
|
|
2400
2969
|
};
|
|
2401
|
-
const sheet$
|
|
2402
|
-
const styleString$
|
|
2403
|
-
const vanillaStyle$
|
|
2970
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
2971
|
+
const styleString$4 = sheet$4.toString();
|
|
2972
|
+
const vanillaStyle$3 = `
|
|
2404
2973
|
:host{
|
|
2405
2974
|
display: block;
|
|
2406
2975
|
}
|
|
2407
|
-
|
|
2408
|
-
hr {
|
|
2409
|
-
border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);
|
|
2410
|
-
}
|
|
2411
|
-
|
|
2412
|
-
a {
|
|
2413
|
-
color: inherit;
|
|
2414
|
-
text-decoration: underline;
|
|
2415
|
-
cursor: pointer;
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
2976
|
* {
|
|
2419
2977
|
margin: 0;
|
|
2420
2978
|
padding: 0;
|
|
2421
2979
|
box-sizing: border-box;
|
|
2422
2980
|
}
|
|
2423
2981
|
|
|
2982
|
+
p {
|
|
2983
|
+
line-height: 18px;
|
|
2984
|
+
color: var(--sl-color-gray-800);
|
|
2985
|
+
font-size: var(--sl-font-size-small);
|
|
2986
|
+
}
|
|
2424
2987
|
`;
|
|
2425
2988
|
const IndirectTaxFormView = (props) => {
|
|
2426
2989
|
var _a;
|
|
2427
2990
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2428
|
-
const { classes } = sheet$
|
|
2991
|
+
const { classes } = sheet$4;
|
|
2429
2992
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2430
2993
|
index.h("style", { type: "text/css" },
|
|
2431
|
-
styleString$
|
|
2432
|
-
vanillaStyle$
|
|
2994
|
+
styleString$4,
|
|
2995
|
+
vanillaStyle$3),
|
|
2433
2996
|
index.h("div", { class: classes.TextContainer },
|
|
2434
2997
|
index.h("div", null,
|
|
2435
2998
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2437,29 +3000,35 @@ const IndirectTaxFormView = (props) => {
|
|
|
2437
3000
|
global.intl.formatMessage({
|
|
2438
3001
|
id: "formStep",
|
|
2439
3002
|
defaultMessage: text.formStep,
|
|
2440
|
-
}, { step: states.step, count:
|
|
3003
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
2441
3004
|
index.h("h3", null, text.indirectTax),
|
|
2442
3005
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2443
3006
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2444
3007
|
states.loadingError && (index.h("div", null,
|
|
2445
|
-
index.h("
|
|
2446
|
-
index.h("
|
|
3008
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
3009
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3010
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
3011
|
+
index.h("br", null),
|
|
2447
3012
|
global.intl.formatMessage({
|
|
2448
3013
|
id: "loadingErrorAlertDescription",
|
|
2449
3014
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2450
3015
|
}, {
|
|
2451
3016
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2452
3017
|
})))),
|
|
2453
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
2454
|
-
index.h("
|
|
3018
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
|
|
3019
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3020
|
+
index.h("strong", null, text.error.generalTitle),
|
|
3021
|
+
index.h("br", null),
|
|
2455
3022
|
global.intl.formatMessage({
|
|
2456
3023
|
id: "generalDescription",
|
|
2457
3024
|
defaultMessage: text.error.generalDescription,
|
|
2458
3025
|
}, {
|
|
2459
3026
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2460
3027
|
}))),
|
|
2461
|
-
states.isPartner && (index.h("
|
|
2462
|
-
index.h("
|
|
3028
|
+
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
3029
|
+
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
3030
|
+
index.h("strong", null, text.isPartnerAlertHeader),
|
|
3031
|
+
index.h("br", null),
|
|
2463
3032
|
global.intl.formatMessage({
|
|
2464
3033
|
id: "isPartnerAlertDescription",
|
|
2465
3034
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -2480,15 +3049,17 @@ const IndirectTaxFormView = (props) => {
|
|
|
2480
3049
|
text.otherRegion,
|
|
2481
3050
|
index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2482
3051
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2483
|
-
index.h("
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
3052
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
3053
|
+
index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
3054
|
+
global.intl.formatMessage({
|
|
3055
|
+
id: "cannotChangeInfoAlert",
|
|
3056
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
3057
|
+
}, {
|
|
3058
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3059
|
+
})),
|
|
2489
3060
|
index.h("div", { class: classes.BtnContainer },
|
|
2490
|
-
index.h("sl-button", {
|
|
2491
|
-
index.h("sl-button", { class: classes.
|
|
3061
|
+
index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
3062
|
+
index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2492
3063
|
};
|
|
2493
3064
|
|
|
2494
3065
|
const CONNECT_PARTNER = index_module.dist.gql `
|
|
@@ -2531,30 +3102,34 @@ function useIndirectTaxForm(props) {
|
|
|
2531
3102
|
var _a, _b, _c, _d, _e;
|
|
2532
3103
|
const user = index_module.J();
|
|
2533
3104
|
const locale = index_module.L();
|
|
2534
|
-
const formRef =
|
|
2535
|
-
const context = index_module.Fn(
|
|
2536
|
-
const [step, setStep] = index_module.Pn(
|
|
3105
|
+
const formRef = stencilHooks_module.useRef(null);
|
|
3106
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
3107
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2537
3108
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2538
|
-
const userForm = index_module.Fn(
|
|
2539
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(
|
|
2540
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(
|
|
3109
|
+
const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
|
|
3110
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
3111
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
|
|
2541
3112
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2542
|
-
const _countries =
|
|
2543
|
-
const [loading, setLoading] =
|
|
2544
|
-
const [formState, setFormState] =
|
|
2545
|
-
const [errors, setErrors] =
|
|
2546
|
-
const [countrySearch, setCountrySearch] =
|
|
2547
|
-
const [filteredCountries, setFilteredCountries] =
|
|
2548
|
-
const [option, setOption] =
|
|
3113
|
+
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
3114
|
+
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
3115
|
+
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
3116
|
+
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
3117
|
+
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
3118
|
+
const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(_countries || []);
|
|
3119
|
+
const [option, setOption] = stencilHooks_module.useState("notRegistered");
|
|
2549
3120
|
const publisher = (_c = (_b = userData === null || userData === void 0 ? void 0 : userData.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher;
|
|
2550
|
-
|
|
3121
|
+
stencilHooks_module.useEffect(() => {
|
|
3122
|
+
// reset redirect hash
|
|
3123
|
+
window.location.hash = "";
|
|
3124
|
+
}, []);
|
|
3125
|
+
stencilHooks_module.useEffect(() => {
|
|
2551
3126
|
var _a;
|
|
2552
3127
|
if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
|
|
2553
3128
|
return;
|
|
2554
3129
|
const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
|
|
2555
3130
|
setOption(_option);
|
|
2556
3131
|
}, [publisher, _countries]);
|
|
2557
|
-
|
|
3132
|
+
stencilHooks_module.useEffect(() => {
|
|
2558
3133
|
if (countrySearch.trim() === "") {
|
|
2559
3134
|
setFilteredCountries(_countries || []);
|
|
2560
3135
|
}
|
|
@@ -2562,7 +3137,7 @@ function useIndirectTaxForm(props) {
|
|
|
2562
3137
|
setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
|
|
2563
3138
|
}
|
|
2564
3139
|
}, [countrySearch, _countries]);
|
|
2565
|
-
|
|
3140
|
+
stencilHooks_module.useEffect(() => {
|
|
2566
3141
|
var _a, _b;
|
|
2567
3142
|
const user = userData === null || userData === void 0 ? void 0 : userData.user;
|
|
2568
3143
|
if (!user)
|
|
@@ -2654,7 +3229,7 @@ function useIndirectTaxForm(props) {
|
|
|
2654
3229
|
await refetch();
|
|
2655
3230
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2656
3231
|
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
2657
|
-
const hasValidCurrentDocument =
|
|
3232
|
+
const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
2658
3233
|
// Fire form change event
|
|
2659
3234
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2660
3235
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
@@ -2709,10 +3284,10 @@ function useIndirectTaxForm(props) {
|
|
|
2709
3284
|
})),
|
|
2710
3285
|
},
|
|
2711
3286
|
data: {
|
|
2712
|
-
esRegions:
|
|
3287
|
+
esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
2713
3288
|
countries: filteredCountries,
|
|
2714
3289
|
allCountries: _countries,
|
|
2715
|
-
provinces:
|
|
3290
|
+
provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
|
|
2716
3291
|
},
|
|
2717
3292
|
text: props.getTextProps(),
|
|
2718
3293
|
refs: {
|
|
@@ -2879,7 +3454,7 @@ const IndirectTaxForm = class {
|
|
|
2879
3454
|
* @uiName Page description
|
|
2880
3455
|
*/
|
|
2881
3456
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2882
|
-
|
|
3457
|
+
stencilHooks_module.h$1(this);
|
|
2883
3458
|
}
|
|
2884
3459
|
disconnectedCallback() { }
|
|
2885
3460
|
getTextProps() {
|
|
@@ -2914,7 +3489,7 @@ const IndirectTaxForm = class {
|
|
|
2914
3489
|
const props = index_module.isDemo()
|
|
2915
3490
|
? useDemoIndirectTaxForm(this)
|
|
2916
3491
|
: useIndirectTaxForm(this);
|
|
2917
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(
|
|
3492
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2918
3493
|
hide: props.states.formState.checked !== "otherRegion",
|
|
2919
3494
|
disabled: props.states.disabled || props.states.isPartner,
|
|
2920
3495
|
formState: props.slotProps.formState,
|
|
@@ -2932,9 +3507,9 @@ const IndirectTaxForm = class {
|
|
|
2932
3507
|
}
|
|
2933
3508
|
};
|
|
2934
3509
|
function useDemoIndirectTaxForm(props) {
|
|
2935
|
-
const setStep = index_module.En(
|
|
2936
|
-
const [option, setOption] =
|
|
2937
|
-
const [demoFormState, setDemoFormState] =
|
|
3510
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
3511
|
+
const [option, setOption] = stencilHooks_module.useState(null);
|
|
3512
|
+
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2938
3513
|
return cjs.cjs({
|
|
2939
3514
|
states: {
|
|
2940
3515
|
step: "2",
|
|
@@ -2973,7 +3548,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2973
3548
|
setCountrySearch: (c) => console.log(c),
|
|
2974
3549
|
},
|
|
2975
3550
|
data: {
|
|
2976
|
-
esRegions:
|
|
3551
|
+
esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
2977
3552
|
countries: [
|
|
2978
3553
|
{
|
|
2979
3554
|
countryCode: "CA",
|
|
@@ -2992,7 +3567,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2992
3567
|
displayName: "United States",
|
|
2993
3568
|
},
|
|
2994
3569
|
],
|
|
2995
|
-
provinces:
|
|
3570
|
+
provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
|
|
2996
3571
|
},
|
|
2997
3572
|
text: props.getTextProps(),
|
|
2998
3573
|
refs: {
|
|
@@ -3014,27 +3589,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3014
3589
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3015
3590
|
}
|
|
3016
3591
|
|
|
3017
|
-
const
|
|
3018
|
-
const data = [...Array(count)].map(() => getMockData());
|
|
3019
|
-
return { data };
|
|
3020
|
-
};
|
|
3021
|
-
const getMockData = () => {
|
|
3022
|
-
const today = luxon.luxon.DateTime.now();
|
|
3023
|
-
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3024
|
-
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3025
|
-
const indirectTax = Math.round(earnings * 0.2);
|
|
3026
|
-
return {
|
|
3027
|
-
downloadUrl: "https://example.com",
|
|
3028
|
-
dateCreated: today.toMillis(),
|
|
3029
|
-
invoiceId,
|
|
3030
|
-
program: "my-program",
|
|
3031
|
-
earnings: `$${earnings}.00`,
|
|
3032
|
-
indirectTax: `$${indirectTax}.00`,
|
|
3033
|
-
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3034
|
-
};
|
|
3035
|
-
};
|
|
3036
|
-
|
|
3037
|
-
const debug = domContextHooks_module.browser("sq:useInvoiceTable");
|
|
3592
|
+
const debug = stencilHooks_module.browser("sq:useInvoiceTable");
|
|
3038
3593
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
3039
3594
|
const GET_INVOICES = index_module.dist.gql `
|
|
3040
3595
|
query getUserTaxInfo($limit: Int!, $offset: Int!) {
|
|
@@ -3064,7 +3619,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3064
3619
|
var _a;
|
|
3065
3620
|
const user = index_module.J();
|
|
3066
3621
|
const locale = index_module.L();
|
|
3067
|
-
const [content, setContent] =
|
|
3622
|
+
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
3068
3623
|
...state,
|
|
3069
3624
|
...next,
|
|
3070
3625
|
}), {
|
|
@@ -3108,7 +3663,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3108
3663
|
// Set the content to render and finish loading components
|
|
3109
3664
|
setContent({ columns, loading: false, page: states.currentPage });
|
|
3110
3665
|
}
|
|
3111
|
-
|
|
3666
|
+
stencilHooks_module.useEffect(() => {
|
|
3112
3667
|
setContent({ loading: true });
|
|
3113
3668
|
invoicesData && getComponentData(components);
|
|
3114
3669
|
}, [invoicesData, components, tick]);
|
|
@@ -3182,6 +3737,26 @@ async function tryMethod(c, callback) {
|
|
|
3182
3737
|
}
|
|
3183
3738
|
}
|
|
3184
3739
|
|
|
3740
|
+
const mockInvoiceData = (count = 4) => {
|
|
3741
|
+
const data = [...Array(count)].map(() => getMockData());
|
|
3742
|
+
return { data };
|
|
3743
|
+
};
|
|
3744
|
+
const getMockData = () => {
|
|
3745
|
+
const today = luxon.luxon.DateTime.now();
|
|
3746
|
+
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3747
|
+
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3748
|
+
const indirectTax = Math.round(earnings * 0.2);
|
|
3749
|
+
return {
|
|
3750
|
+
downloadUrl: "https://example.com",
|
|
3751
|
+
dateCreated: today.toMillis(),
|
|
3752
|
+
invoiceId,
|
|
3753
|
+
program: "my-program",
|
|
3754
|
+
earnings: `$${earnings}.00`,
|
|
3755
|
+
indirectTax: `$${indirectTax}.00`,
|
|
3756
|
+
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3757
|
+
};
|
|
3758
|
+
};
|
|
3759
|
+
|
|
3185
3760
|
const InvoiceTable = class {
|
|
3186
3761
|
constructor(hostRef) {
|
|
3187
3762
|
index.registerInstance(this, hostRef);
|
|
@@ -3215,7 +3790,7 @@ const InvoiceTable = class {
|
|
|
3215
3790
|
this.emptyStateHeader = "View your invoice details";
|
|
3216
3791
|
/** @uiName Empty invoice table description */
|
|
3217
3792
|
this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
3218
|
-
|
|
3793
|
+
stencilHooks_module.h$1(this);
|
|
3219
3794
|
}
|
|
3220
3795
|
disconnectedCallback() { }
|
|
3221
3796
|
render() {
|
|
@@ -3225,7 +3800,7 @@ const InvoiceTable = class {
|
|
|
3225
3800
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3226
3801
|
: useInvoiceTable(this, empty, loading);
|
|
3227
3802
|
reRender.useRequestRerender([this.perPage]);
|
|
3228
|
-
return (index.h(
|
|
3803
|
+
return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3229
3804
|
}
|
|
3230
3805
|
};
|
|
3231
3806
|
function EmptySlot(props) {
|
|
@@ -3238,7 +3813,7 @@ function LoadingRow() {
|
|
|
3238
3813
|
return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
|
|
3239
3814
|
}
|
|
3240
3815
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
3241
|
-
const [content, setContent] =
|
|
3816
|
+
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
3242
3817
|
...state,
|
|
3243
3818
|
...next,
|
|
3244
3819
|
}), {
|
|
@@ -3248,7 +3823,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3248
3823
|
page: 0,
|
|
3249
3824
|
});
|
|
3250
3825
|
const tick = reRender.useRerenderListener();
|
|
3251
|
-
const mockData =
|
|
3826
|
+
const mockData = stencilHooks_module.useMemo(() => { var _a; return ((_a = props.demoData) === null || _a === void 0 ? void 0 : _a.mockData) || mockInvoiceData(props.perPage); }, [props.perPage]);
|
|
3252
3827
|
const components = useChildElements.useChildElements();
|
|
3253
3828
|
async function getComponentData(components) {
|
|
3254
3829
|
const componentData = mockData.data.slice(0, props.perPage);
|
|
@@ -3291,7 +3866,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3291
3866
|
// Set the content to render and finish loading components
|
|
3292
3867
|
setContent({ columns, loading: false, page: 0 });
|
|
3293
3868
|
}
|
|
3294
|
-
|
|
3869
|
+
stencilHooks_module.useEffect(() => {
|
|
3295
3870
|
setContent({ loading: true });
|
|
3296
3871
|
(mockData === null || mockData === void 0 ? void 0 : mockData.data) && getComponentData(components);
|
|
3297
3872
|
}, [mockData === null || mockData === void 0 ? void 0 : mockData.data, components, tick]);
|
|
@@ -3327,10 +3902,22 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3327
3902
|
return demoProps;
|
|
3328
3903
|
}
|
|
3329
3904
|
|
|
3905
|
+
const InvoiceTableDataCell = class {
|
|
3906
|
+
constructor(hostRef) {
|
|
3907
|
+
index.registerInstance(this, hostRef);
|
|
3908
|
+
this.ignored = true;
|
|
3909
|
+
stencilHooks_module.h$1(this);
|
|
3910
|
+
}
|
|
3911
|
+
disconnectedCallback() { }
|
|
3912
|
+
render() {
|
|
3913
|
+
return this.data;
|
|
3914
|
+
}
|
|
3915
|
+
};
|
|
3916
|
+
|
|
3330
3917
|
const InvoiceTableDataColumn = class {
|
|
3331
3918
|
constructor(hostRef) {
|
|
3332
3919
|
index.registerInstance(this, hostRef);
|
|
3333
|
-
|
|
3920
|
+
stencilHooks_module.h$1(this);
|
|
3334
3921
|
}
|
|
3335
3922
|
disconnectedCallback() { }
|
|
3336
3923
|
async renderCell(data) {
|
|
@@ -3345,10 +3932,27 @@ const InvoiceTableDataColumn = class {
|
|
|
3345
3932
|
}
|
|
3346
3933
|
};
|
|
3347
3934
|
|
|
3935
|
+
const RewardTableDateCell = class {
|
|
3936
|
+
constructor(hostRef) {
|
|
3937
|
+
index.registerInstance(this, hostRef);
|
|
3938
|
+
this.ignored = true;
|
|
3939
|
+
this.locale = "en";
|
|
3940
|
+
stencilHooks_module.h$1(this);
|
|
3941
|
+
}
|
|
3942
|
+
disconnectedCallback() { }
|
|
3943
|
+
render() {
|
|
3944
|
+
var _a, _b;
|
|
3945
|
+
const date = !this.date
|
|
3946
|
+
? "-"
|
|
3947
|
+
: (_b = (_a = luxon.luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(utils.luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.luxon.DateTime.DATE_MED);
|
|
3948
|
+
return date;
|
|
3949
|
+
}
|
|
3950
|
+
};
|
|
3951
|
+
|
|
3348
3952
|
const InvoiceTableDateColumn = class {
|
|
3349
3953
|
constructor(hostRef) {
|
|
3350
3954
|
index.registerInstance(this, hostRef);
|
|
3351
|
-
|
|
3955
|
+
stencilHooks_module.h$1(this);
|
|
3352
3956
|
}
|
|
3353
3957
|
disconnectedCallback() { }
|
|
3354
3958
|
async renderCell(data, options) {
|
|
@@ -3363,10 +3967,25 @@ const InvoiceTableDateColumn = class {
|
|
|
3363
3967
|
}
|
|
3364
3968
|
};
|
|
3365
3969
|
|
|
3970
|
+
const InvoiceTableDownloadCell = class {
|
|
3971
|
+
constructor(hostRef) {
|
|
3972
|
+
index.registerInstance(this, hostRef);
|
|
3973
|
+
this.ignored = true;
|
|
3974
|
+
stencilHooks_module.h$1(this);
|
|
3975
|
+
}
|
|
3976
|
+
disconnectedCallback() { }
|
|
3977
|
+
render() {
|
|
3978
|
+
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3979
|
+
cursor: pointer;
|
|
3980
|
+
}`;
|
|
3981
|
+
return (index.h(index.Host, null, index.h("style", null, vanillaStyle), !!this.downloadUrl && (index.h("a", { href: this.downloadUrl, target: "_blank" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), index.h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "#717179" }))))));
|
|
3982
|
+
}
|
|
3983
|
+
};
|
|
3984
|
+
|
|
3366
3985
|
const InvoiceTableGenericColumn = class {
|
|
3367
3986
|
constructor(hostRef) {
|
|
3368
3987
|
index.registerInstance(this, hostRef);
|
|
3369
|
-
|
|
3988
|
+
stencilHooks_module.h$1(this);
|
|
3370
3989
|
}
|
|
3371
3990
|
disconnectedCallback() { }
|
|
3372
3991
|
async renderCell(data) {
|
|
@@ -3385,17 +4004,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3385
4004
|
index.h("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" }),
|
|
3386
4005
|
index.h("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" })));
|
|
3387
4006
|
|
|
3388
|
-
const style$
|
|
4007
|
+
const style$5 = {
|
|
3389
4008
|
CardContainer: {
|
|
3390
4009
|
display: "grid",
|
|
3391
4010
|
gridTemplateColumns: "1fr",
|
|
3392
4011
|
gridGap: "var(--sl-spacing-large)",
|
|
3393
|
-
background: "
|
|
4012
|
+
background: "var(--sl-color-neutral-0)",
|
|
3394
4013
|
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
3395
|
-
borderRadius: "
|
|
4014
|
+
borderRadius: "4px",
|
|
3396
4015
|
padding: "var(--sl-spacing-large)",
|
|
3397
4016
|
minHeight: "150px",
|
|
3398
|
-
border: "
|
|
4017
|
+
border: "1px solid var(--sl-color-gray-200)",
|
|
3399
4018
|
maxWidth: "450px",
|
|
3400
4019
|
},
|
|
3401
4020
|
StatusContainer: {
|
|
@@ -3405,7 +4024,7 @@ const style$4 = {
|
|
|
3405
4024
|
},
|
|
3406
4025
|
MainCurrencyLabel: {
|
|
3407
4026
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
3408
|
-
color: "var(--
|
|
4027
|
+
color: "var(--sl-color-gray-500)",
|
|
3409
4028
|
},
|
|
3410
4029
|
MainCurrency: {
|
|
3411
4030
|
margin: 0,
|
|
@@ -3414,12 +4033,12 @@ const style$4 = {
|
|
|
3414
4033
|
},
|
|
3415
4034
|
SubduedRegularText: {
|
|
3416
4035
|
fontSize: "var(--sl-font-size-small)",
|
|
3417
|
-
color: "var(--
|
|
4036
|
+
color: "var(--sl-color-gray-500)",
|
|
3418
4037
|
margin: 0,
|
|
3419
4038
|
width: "auto",
|
|
3420
4039
|
},
|
|
3421
4040
|
PaypalEmail: {
|
|
3422
|
-
borderRight: "
|
|
4041
|
+
borderRight: "1px solid var(--sl-color-gray-200)",
|
|
3423
4042
|
paddingRight: "var(--sl-spacing-small)",
|
|
3424
4043
|
"@media (max-width: 499px)": {
|
|
3425
4044
|
borderRight: "none",
|
|
@@ -3427,7 +4046,7 @@ const style$4 = {
|
|
|
3427
4046
|
},
|
|
3428
4047
|
},
|
|
3429
4048
|
PaypalDetailsContainer: {
|
|
3430
|
-
color: "var(--
|
|
4049
|
+
color: "var(--sl-color-gray-500)",
|
|
3431
4050
|
display: "flex",
|
|
3432
4051
|
gap: "var(--sl-spacing-small)",
|
|
3433
4052
|
justifyContent: "flex-start",
|
|
@@ -3448,7 +4067,7 @@ const style$4 = {
|
|
|
3448
4067
|
},
|
|
3449
4068
|
},
|
|
3450
4069
|
AccountDetailsContainer: {
|
|
3451
|
-
color: "var(--
|
|
4070
|
+
color: "var(--sl-color-gray-500)",
|
|
3452
4071
|
display: "flex",
|
|
3453
4072
|
gap: "var(--sl-spacing-small)",
|
|
3454
4073
|
justifyContent: "flex-start",
|
|
@@ -3461,7 +4080,7 @@ const style$4 = {
|
|
|
3461
4080
|
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
3462
4081
|
paddingTop: "var(--sq-spacing-xx-small)",
|
|
3463
4082
|
"& > :not(:last-child)": {
|
|
3464
|
-
borderRight: "
|
|
4083
|
+
borderRight: "1px solid var(--sl-color-gray-200)",
|
|
3465
4084
|
},
|
|
3466
4085
|
"& > :nth-child(3)": {
|
|
3467
4086
|
border: "none",
|
|
@@ -3478,7 +4097,7 @@ const style$4 = {
|
|
|
3478
4097
|
},
|
|
3479
4098
|
W9Container: {
|
|
3480
4099
|
paddingTop: "var(--sl-spacing-large)",
|
|
3481
|
-
borderTop: "
|
|
4100
|
+
borderTop: "1px solid var(--sl-color-gray-200)",
|
|
3482
4101
|
},
|
|
3483
4102
|
SkeletonOne: {
|
|
3484
4103
|
width: "25%",
|
|
@@ -3492,22 +4111,26 @@ const style$4 = {
|
|
|
3492
4111
|
width: "50%",
|
|
3493
4112
|
height: "34px",
|
|
3494
4113
|
},
|
|
3495
|
-
|
|
4114
|
+
Alert: {
|
|
3496
4115
|
"&::part(base)": {
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
color: "var(--sl-color-white)",
|
|
4116
|
+
backgroundColor: "var(--sl-color-warning-100)",
|
|
4117
|
+
border: "1px solid var(--sl-color-warning-200)",
|
|
4118
|
+
padding: "0 16px",
|
|
3501
4119
|
},
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
color: "var(--sl-color-white)",
|
|
4120
|
+
"& sl-icon": {
|
|
4121
|
+
margin: 0,
|
|
4122
|
+
},
|
|
4123
|
+
"& sl-icon::part(base)": {
|
|
4124
|
+
color: "var(--sl-color-warning-500)",
|
|
4125
|
+
margin: 0,
|
|
3509
4126
|
},
|
|
3510
4127
|
},
|
|
4128
|
+
AlertContent: {
|
|
4129
|
+
display: "flex",
|
|
4130
|
+
alignItems: "flex-start",
|
|
4131
|
+
justifyContent: "flex-start",
|
|
4132
|
+
flexDirection: "column",
|
|
4133
|
+
},
|
|
3511
4134
|
Container: {
|
|
3512
4135
|
display: "flex",
|
|
3513
4136
|
flexDirection: "column",
|
|
@@ -3515,7 +4138,7 @@ const style$4 = {
|
|
|
3515
4138
|
},
|
|
3516
4139
|
};
|
|
3517
4140
|
function PayoutDetailsCardView(props) {
|
|
3518
|
-
const sheet = JSS.createStyleSheet(style$
|
|
4141
|
+
const sheet = JSS.createStyleSheet(style$5);
|
|
3519
4142
|
const styleString = sheet.toString();
|
|
3520
4143
|
const { classes } = sheet;
|
|
3521
4144
|
const { states, text } = props;
|
|
@@ -3529,14 +4152,13 @@ function PayoutDetailsCardView(props) {
|
|
|
3529
4152
|
};
|
|
3530
4153
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3531
4154
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
3532
|
-
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
3533
4155
|
const statusText = global.intl.formatMessage({
|
|
3534
4156
|
id: "badgeText",
|
|
3535
4157
|
defaultMessage: statusBadgeText,
|
|
3536
4158
|
}, {
|
|
3537
4159
|
badgeText: status,
|
|
3538
4160
|
});
|
|
3539
|
-
return (index.h("sl-badge", { pill: true,
|
|
4161
|
+
return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3540
4162
|
};
|
|
3541
4163
|
const thresholdText = global.intl.formatMessage({
|
|
3542
4164
|
id: "thresholdText",
|
|
@@ -3567,8 +4189,8 @@ function PayoutDetailsCardView(props) {
|
|
|
3567
4189
|
|
|
3568
4190
|
function usePayoutDetailsCard(props) {
|
|
3569
4191
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3570
|
-
const { data
|
|
3571
|
-
const publisher = (_b = (_a = data
|
|
4192
|
+
const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
4193
|
+
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
3572
4194
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3573
4195
|
var _a;
|
|
3574
4196
|
const currentDay = luxon.luxon.DateTime.now().day;
|
|
@@ -3627,83 +4249,1410 @@ const PayoutDetailsCard = class {
|
|
|
3627
4249
|
constructor(hostRef) {
|
|
3628
4250
|
index.registerInstance(this, hostRef);
|
|
3629
4251
|
/**
|
|
3630
|
-
* Badge text indicating payout status
|
|
3631
|
-
* @uiName Payout badge status text
|
|
4252
|
+
* Badge text indicating payout status
|
|
4253
|
+
* @uiName Payout badge status text
|
|
4254
|
+
*/
|
|
4255
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4256
|
+
/**
|
|
4257
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4258
|
+
* @uiName Payout schedule by threshold text
|
|
4259
|
+
*/
|
|
4260
|
+
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
4261
|
+
/**
|
|
4262
|
+
* Shown before the participant’s bank account information.
|
|
4263
|
+
* @uiName Bank account field label
|
|
4264
|
+
*/
|
|
4265
|
+
this.accountText = "Account";
|
|
4266
|
+
/**
|
|
4267
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
4268
|
+
* @uiName Payout missing information subtext
|
|
4269
|
+
*/
|
|
4270
|
+
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
4271
|
+
stencilHooks_module.h$1(this);
|
|
4272
|
+
}
|
|
4273
|
+
disconnectedCallback() { }
|
|
4274
|
+
getTextProps() {
|
|
4275
|
+
const props = utils.getProps(this);
|
|
4276
|
+
return {
|
|
4277
|
+
...props,
|
|
4278
|
+
};
|
|
4279
|
+
}
|
|
4280
|
+
render() {
|
|
4281
|
+
const props = index_module.isDemo()
|
|
4282
|
+
? useDemoPayoutDetailsCard(this)
|
|
4283
|
+
: usePayoutDetailsCard(this);
|
|
4284
|
+
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
4285
|
+
}
|
|
4286
|
+
};
|
|
4287
|
+
function useDemoPayoutDetailsCard(props) {
|
|
4288
|
+
return cjs.cjs({
|
|
4289
|
+
states: {
|
|
4290
|
+
loading: false,
|
|
4291
|
+
error: false,
|
|
4292
|
+
thresholdBalance: "$50",
|
|
4293
|
+
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
4294
|
+
badgeStatus: "nextPayout",
|
|
4295
|
+
payoutType: "BANK_TRANSFER",
|
|
4296
|
+
nextPayoutDate: "March 14, 2024",
|
|
4297
|
+
paypalEmailAddress: "joesmith@example.com",
|
|
4298
|
+
otherCurrencies: false,
|
|
4299
|
+
hasW9Pending: false,
|
|
4300
|
+
hasDatePending: true,
|
|
4301
|
+
cardNumberPreview: "XX2381",
|
|
4302
|
+
balance: "20.00 USD",
|
|
4303
|
+
},
|
|
4304
|
+
text: props.getTextProps(),
|
|
4305
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4306
|
+
}
|
|
4307
|
+
|
|
4308
|
+
const TableCell = class {
|
|
4309
|
+
constructor(hostRef) {
|
|
4310
|
+
index.registerInstance(this, hostRef);
|
|
4311
|
+
/** @uiName Column span */
|
|
4312
|
+
this.colspan = 1;
|
|
4313
|
+
/** @uiName Padding */
|
|
4314
|
+
this.padding = "15px 10px";
|
|
4315
|
+
}
|
|
4316
|
+
render() {
|
|
4317
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
4318
|
+
}
|
|
4319
|
+
};
|
|
4320
|
+
|
|
4321
|
+
const TableRow = class {
|
|
4322
|
+
constructor(hostRef) {
|
|
4323
|
+
index.registerInstance(this, hostRef);
|
|
4324
|
+
/**
|
|
4325
|
+
* @uiName Border
|
|
4326
|
+
*/
|
|
4327
|
+
this.border = "1px solid #EAEAEA";
|
|
4328
|
+
}
|
|
4329
|
+
render() {
|
|
4330
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
4331
|
+
}
|
|
4332
|
+
};
|
|
4333
|
+
|
|
4334
|
+
function getCurrentStep(user) {
|
|
4335
|
+
var _a, _b;
|
|
4336
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4337
|
+
return "/1";
|
|
4338
|
+
}
|
|
4339
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
4340
|
+
// If they do have a required document, look at current document
|
|
4341
|
+
if (requiredTaxDocumentType && !currentTaxDocument) {
|
|
4342
|
+
// Specific to custom CASH setting,
|
|
4343
|
+
if (payoutsAccount.hold &&
|
|
4344
|
+
payoutsAccount.holdReasons.includes("NO_W9_DOCUMENT"))
|
|
4345
|
+
return "/dashboard";
|
|
4346
|
+
return "/3";
|
|
4347
|
+
}
|
|
4348
|
+
if (!withdrawalSettings && brandedSignup)
|
|
4349
|
+
return "/4";
|
|
4350
|
+
return "/dashboard";
|
|
4351
|
+
}
|
|
4352
|
+
function useTaxAndCash() {
|
|
4353
|
+
var _a, _b, _c, _d, _e;
|
|
4354
|
+
const host = index_module._();
|
|
4355
|
+
const user = index_module.J();
|
|
4356
|
+
const locale = index_module.L();
|
|
4357
|
+
// State for current step of form
|
|
4358
|
+
const [step, setStep] = index_module.In({
|
|
4359
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4360
|
+
initialValue: "/loading",
|
|
4361
|
+
});
|
|
4362
|
+
// State for when to hide steps, or override certain actions
|
|
4363
|
+
const [context, _setContext] = index_module.In({
|
|
4364
|
+
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4365
|
+
initialValue: {},
|
|
4366
|
+
});
|
|
4367
|
+
// State to carry user form information into step 2
|
|
4368
|
+
const [userFormContext, _setUserFormContext] = index_module.In({
|
|
4369
|
+
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4370
|
+
initialValue: {
|
|
4371
|
+
firstName: undefined,
|
|
4372
|
+
lastName: undefined,
|
|
4373
|
+
email: undefined,
|
|
4374
|
+
countryCode: undefined,
|
|
4375
|
+
currency: undefined,
|
|
4376
|
+
},
|
|
4377
|
+
});
|
|
4378
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.In({
|
|
4379
|
+
namespace: CURRENCIES_NAMESPACE,
|
|
4380
|
+
initialValue: [],
|
|
4381
|
+
});
|
|
4382
|
+
const [_countriesContext, _setCountriesContext] = index_module.In({
|
|
4383
|
+
namespace: COUNTRIES_NAMESPACE,
|
|
4384
|
+
initialValue: [],
|
|
4385
|
+
});
|
|
4386
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
|
|
4387
|
+
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4388
|
+
initialValue: [],
|
|
4389
|
+
});
|
|
4390
|
+
const { data, errors } = index_module.Sn({
|
|
4391
|
+
namespace: USER_QUERY_NAMESPACE,
|
|
4392
|
+
query: GET_USER,
|
|
4393
|
+
skip: !user,
|
|
4394
|
+
options: {
|
|
4395
|
+
batch: false,
|
|
4396
|
+
},
|
|
4397
|
+
});
|
|
4398
|
+
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
4399
|
+
userFormContext.countryCode;
|
|
4400
|
+
index_module.Sn({
|
|
4401
|
+
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4402
|
+
query: GET_COUNTRIES,
|
|
4403
|
+
skip: !user,
|
|
4404
|
+
});
|
|
4405
|
+
const { data: financeNetworkData, refetch } = index_module.Sn({
|
|
4406
|
+
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4407
|
+
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4408
|
+
skip: !user,
|
|
4409
|
+
variables: {
|
|
4410
|
+
filter: getFinanceNetworkFilter(),
|
|
4411
|
+
},
|
|
4412
|
+
});
|
|
4413
|
+
const { data: currenciesData } = index_module.Sn({
|
|
4414
|
+
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4415
|
+
query: GET_CURRENCIES,
|
|
4416
|
+
skip: !user,
|
|
4417
|
+
variables: {
|
|
4418
|
+
locale,
|
|
4419
|
+
},
|
|
4420
|
+
});
|
|
4421
|
+
const supportedCurrencies = stencilHooks_module.useMemo(() => {
|
|
4422
|
+
var _a, _b;
|
|
4423
|
+
// Filter out any currencies not supported by finance network settings
|
|
4424
|
+
const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
|
|
4425
|
+
var _a, _b;
|
|
4426
|
+
const currency = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((currency) => currency.currencyCode === settings.currency);
|
|
4427
|
+
// Currency not in supported list
|
|
4428
|
+
if (!currency)
|
|
4429
|
+
return agg;
|
|
4430
|
+
// Currency already added to list
|
|
4431
|
+
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4432
|
+
return agg;
|
|
4433
|
+
// Currency not supported by selected country
|
|
4434
|
+
if (userFormContext.countryCode &&
|
|
4435
|
+
settings.countryCode !== countryCode)
|
|
4436
|
+
return agg;
|
|
4437
|
+
return [...agg, currency];
|
|
4438
|
+
}, []);
|
|
4439
|
+
return allValidCurrencies;
|
|
4440
|
+
}, [financeNetworkData, countryCode]);
|
|
4441
|
+
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4442
|
+
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4443
|
+
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4444
|
+
// filter out any duplicate countries and null countryCode
|
|
4445
|
+
const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4446
|
+
const _topCountries = ["CA", "GB", "US"];
|
|
4447
|
+
const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
|
|
4448
|
+
.map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
|
|
4449
|
+
.sort(sortByName)
|
|
4450
|
+
.reduce((prev, countryObj) => {
|
|
4451
|
+
if (_topCountries.includes(countryObj.countryCode))
|
|
4452
|
+
return [countryObj, ...prev];
|
|
4453
|
+
return [...prev, countryObj];
|
|
4454
|
+
}, []), [availableCountries]);
|
|
4455
|
+
stencilHooks_module.useEffect(() => {
|
|
4456
|
+
if (sortedCountries)
|
|
4457
|
+
setSortedCountriesContext(sortedCountries);
|
|
4458
|
+
}, [sortedCountries]);
|
|
4459
|
+
stencilHooks_module.useEffect(() => {
|
|
4460
|
+
if (supportedCurrencies)
|
|
4461
|
+
setCurrenciesContext(supportedCurrencies);
|
|
4462
|
+
}, [supportedCurrencies]);
|
|
4463
|
+
stencilHooks_module.useEffect(() => {
|
|
4464
|
+
if (errors) {
|
|
4465
|
+
setStep("/error");
|
|
4466
|
+
return;
|
|
4467
|
+
}
|
|
4468
|
+
if (!host || !user)
|
|
4469
|
+
return;
|
|
4470
|
+
if (data) {
|
|
4471
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4472
|
+
if (!user || step !== "/loading")
|
|
4473
|
+
return;
|
|
4474
|
+
const currentStep = getCurrentStep(user);
|
|
4475
|
+
setStep(currentStep);
|
|
4476
|
+
}
|
|
4477
|
+
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4478
|
+
function getFinanceNetworkFilter() {
|
|
4479
|
+
var _a, _b, _c;
|
|
4480
|
+
if (step === "/1")
|
|
4481
|
+
return {};
|
|
4482
|
+
if (step === "/4")
|
|
4483
|
+
return { currency_eq: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency };
|
|
4484
|
+
if (countryCode)
|
|
4485
|
+
return {
|
|
4486
|
+
countryCode_eq: countryCode,
|
|
4487
|
+
};
|
|
4488
|
+
return {};
|
|
4489
|
+
}
|
|
4490
|
+
return {
|
|
4491
|
+
step,
|
|
4492
|
+
setStep,
|
|
4493
|
+
context,
|
|
4494
|
+
namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
|
|
4495
|
+
loading: step === "/loading",
|
|
4496
|
+
};
|
|
4497
|
+
}
|
|
4498
|
+
|
|
4499
|
+
const TaxAndCashMonolith = class {
|
|
4500
|
+
constructor(hostRef) {
|
|
4501
|
+
index.registerInstance(this, hostRef);
|
|
4502
|
+
/*---------------------------------------------------------------------------------
|
|
4503
|
+
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4504
|
+
-----------------------------------------------------------------------------------*/
|
|
4505
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4506
|
+
STEP 1 PROPS:
|
|
4507
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4508
|
+
/**
|
|
4509
|
+
* @uiName First name field label
|
|
4510
|
+
* @uiGroup Step 1 Properties
|
|
4511
|
+
*/
|
|
4512
|
+
this.step1_firstName = "First name";
|
|
4513
|
+
/**
|
|
4514
|
+
* @uiName Last name field label
|
|
4515
|
+
* @uiGroup Step 1 Properties
|
|
4516
|
+
*/
|
|
4517
|
+
this.step1_lastName = "Last name";
|
|
4518
|
+
/**
|
|
4519
|
+
* @uiName Email field label
|
|
4520
|
+
* @uiGroup Step 1 Properties
|
|
4521
|
+
*/
|
|
4522
|
+
this.step1_email = "Email";
|
|
4523
|
+
/**
|
|
4524
|
+
* @uiName Country field label
|
|
4525
|
+
* @uiGroup Step 1 Properties
|
|
4526
|
+
*/
|
|
4527
|
+
this.step1_country = "Country";
|
|
4528
|
+
/**
|
|
4529
|
+
* @uiName Phone number field label
|
|
4530
|
+
* @uiGroup Step 1 Properties
|
|
4531
|
+
*/
|
|
4532
|
+
this.step1_phoneNumber = "Phone number";
|
|
4533
|
+
/**
|
|
4534
|
+
* @uiName Address field label
|
|
4535
|
+
* @uiGroup Step 1 Properties
|
|
4536
|
+
*/
|
|
4537
|
+
this.step1_address = "Address";
|
|
4538
|
+
/**
|
|
4539
|
+
* @uiName City field label
|
|
4540
|
+
* @uiGroup Step 1 Properties
|
|
4541
|
+
*/
|
|
4542
|
+
this.step1_city = "City";
|
|
4543
|
+
/**
|
|
4544
|
+
* @uiName State field label for states
|
|
4545
|
+
* @uiGroup Step 1 Properties
|
|
4546
|
+
*/
|
|
4547
|
+
this.step1_state = "State";
|
|
4548
|
+
/**
|
|
4549
|
+
* @uiName State field label for provinces
|
|
4550
|
+
* @uiGroup Step 1 Properties
|
|
4551
|
+
*/
|
|
4552
|
+
this.step1_province = "Province";
|
|
4553
|
+
/**
|
|
4554
|
+
* @uiName State field label for regions
|
|
4555
|
+
* @uiGroup Step 1 Properties
|
|
4556
|
+
*/
|
|
4557
|
+
this.step1_region = "Region";
|
|
4558
|
+
/**
|
|
4559
|
+
* @uiName Postal code field label
|
|
4560
|
+
* @uiGroup Step 1 Properties
|
|
4561
|
+
*/
|
|
4562
|
+
this.step1_postalCode = "Postal code";
|
|
4563
|
+
/**
|
|
4564
|
+
* @uiName Currency field label
|
|
4565
|
+
* @uiGroup Step 1 Properties
|
|
4566
|
+
*/
|
|
4567
|
+
this.step1_currency = "Currency";
|
|
4568
|
+
/**
|
|
4569
|
+
* @uiName Currency field help text
|
|
4570
|
+
* @uiGroup Step 1 Properties
|
|
4571
|
+
*/
|
|
4572
|
+
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4573
|
+
/**
|
|
4574
|
+
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4575
|
+
* @uiName Terms and conditions checkbox
|
|
4576
|
+
* @uiGroup Step 1 Properties
|
|
4577
|
+
*/
|
|
4578
|
+
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4579
|
+
/**
|
|
4580
|
+
* @uiName Step 1 title
|
|
4581
|
+
* @uiGroup Step 1 Properties
|
|
4582
|
+
*/
|
|
4583
|
+
this.step1_personalInformation = "Personal Information";
|
|
4584
|
+
/**
|
|
4585
|
+
* The link text that appears in the terms and conditions checkbox
|
|
4586
|
+
* @uiName Terms and conditions text
|
|
4587
|
+
* @uiGroup Step 1 Properties
|
|
4588
|
+
* @uiWidget textArea
|
|
4589
|
+
*/
|
|
4590
|
+
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4591
|
+
/**
|
|
4592
|
+
* The link that appears in the terms and conditions checkbox
|
|
4593
|
+
* @uiName Terms and conditions link
|
|
4594
|
+
* @uiGroup Step 1 Properties
|
|
4595
|
+
*/
|
|
4596
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4597
|
+
/**
|
|
4598
|
+
* Placeholder text displayed in the currency search dropdown
|
|
4599
|
+
* @uiName Currency field placeholder text
|
|
4600
|
+
* @uiGroup Step 1 Properties
|
|
4601
|
+
*/
|
|
4602
|
+
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4603
|
+
/**
|
|
4604
|
+
|
|
4605
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4606
|
+
STEP 2 PROPS:
|
|
4607
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4608
|
+
/**
|
|
4609
|
+
* @uiName Step 2 title
|
|
4610
|
+
* @uiGroup Step 2 Properties
|
|
4611
|
+
*/
|
|
4612
|
+
this.step2_indirectTax = "Indirect Tax";
|
|
4613
|
+
/**
|
|
4614
|
+
* Displayed under the title of this step.
|
|
4615
|
+
* @uiName Step 2 description
|
|
4616
|
+
* @uiGroup Step 2 Properties
|
|
4617
|
+
* @uiWidget textArea
|
|
4618
|
+
*/
|
|
4619
|
+
this.step2_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.";
|
|
4620
|
+
/**
|
|
4621
|
+
* Displayed with indirect tax registration options.
|
|
4622
|
+
* @uiName Indirect tax details section title
|
|
4623
|
+
* @uiGroup Step 2 Properties
|
|
4624
|
+
*/
|
|
4625
|
+
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4626
|
+
/**
|
|
4627
|
+
* @uiName Registered for indirect tax option
|
|
4628
|
+
* @uiGroup Step 2 Properties
|
|
4629
|
+
* @uiWidget textArea
|
|
4630
|
+
*
|
|
4631
|
+
*/
|
|
4632
|
+
this.step2_otherRegion = "Registered for indirect tax";
|
|
4633
|
+
/**
|
|
4634
|
+
* Selecting this option will display fields to enter indirect tax details.
|
|
4635
|
+
* @uiName Registered for indirect tax option description
|
|
4636
|
+
* @uiGroup Step 2 Properties
|
|
4637
|
+
*/
|
|
4638
|
+
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4639
|
+
/**
|
|
4640
|
+
* @uiName Not registered for indirect tax option
|
|
4641
|
+
* @uiGroup Step 2 Properties
|
|
4642
|
+
* @uiWidget textArea
|
|
4643
|
+
*/
|
|
4644
|
+
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4645
|
+
/**
|
|
4646
|
+
* Participants based in the US are considered not registered.
|
|
4647
|
+
* @uiName Not registered for indirect tax option description
|
|
4648
|
+
* @uiGroup Step 2 Properties
|
|
4649
|
+
*/
|
|
4650
|
+
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4651
|
+
/**
|
|
4652
|
+
* @uiName Region of indirect tax field label
|
|
4653
|
+
* @uiGroup Step 2 Properties
|
|
4654
|
+
*/
|
|
4655
|
+
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4656
|
+
/**
|
|
4657
|
+
* @uiName Indirect tax number field label
|
|
4658
|
+
* @uiGroup Step 2 Properties
|
|
4659
|
+
*/
|
|
4660
|
+
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4661
|
+
/**
|
|
4662
|
+
* @uiName Province field label
|
|
4663
|
+
* @uiGroup Step 2 Properties
|
|
4664
|
+
*/
|
|
4665
|
+
this.step2_province = "Province";
|
|
4666
|
+
/**
|
|
4667
|
+
* @uiName Missing indirect tax number error message
|
|
4668
|
+
* @uiGroup Step 2 Properties
|
|
4669
|
+
*/
|
|
4670
|
+
this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
|
|
4671
|
+
/**
|
|
4672
|
+
* Displayed to participants registered for QST.
|
|
4673
|
+
* @uiName QST number field label
|
|
4674
|
+
* @uiGroup Step 2 Properties
|
|
4675
|
+
*/
|
|
4676
|
+
this.step2_qstNumber = "QST number";
|
|
4677
|
+
/**
|
|
4678
|
+
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4679
|
+
* @uiName QST tax checkbox
|
|
4680
|
+
* @uiGroup Step 2 Properties
|
|
4681
|
+
*/
|
|
4682
|
+
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4683
|
+
/**
|
|
4684
|
+
* Displayed to participants registered for indirect tax in Spain.
|
|
4685
|
+
* @uiName Spain income tax checkbox
|
|
4686
|
+
* @uiGroup Step 2 Properties
|
|
4687
|
+
* @uiWidget textArea
|
|
4688
|
+
*/
|
|
4689
|
+
this.step2_isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
|
|
4690
|
+
/**
|
|
4691
|
+
* Displayed to participants registered in Spain.
|
|
4692
|
+
* @uiName Sub-region of indirect tax field label
|
|
4693
|
+
* @uiGroup Step 2 Properties
|
|
4694
|
+
*/
|
|
4695
|
+
this.step2_subRegion = "Sub-region";
|
|
4696
|
+
/**
|
|
4697
|
+
* @uiName Income tax field label
|
|
4698
|
+
* @uiGroup Step 2 Properties
|
|
4699
|
+
*/
|
|
4700
|
+
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4701
|
+
/**
|
|
4702
|
+
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4703
|
+
* @uiName Submission confirmation alert
|
|
4704
|
+
* @uiGroup Step 2 Properties
|
|
4705
|
+
* @uiWidget textArea
|
|
4706
|
+
*/
|
|
4707
|
+
this.step2_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.";
|
|
4708
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4709
|
+
STEP 3 PROPS:
|
|
4710
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4711
|
+
/**
|
|
4712
|
+
* @uiName Step 3 title
|
|
4713
|
+
* @uiGroup Step 3 Properties
|
|
4714
|
+
*/
|
|
4715
|
+
this.step3_taxForm = "Tax form";
|
|
4716
|
+
/**
|
|
4717
|
+
* Display the type of tax form that the participant must submit.
|
|
4718
|
+
* @uiName Tax form name
|
|
4719
|
+
* @uiGroup Step 3 Properties
|
|
4720
|
+
*/
|
|
4721
|
+
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4722
|
+
/**
|
|
4723
|
+
* @uiName Participant type field label
|
|
4724
|
+
* @uiGroup Step 3 Properties
|
|
4725
|
+
*/
|
|
4726
|
+
this.step3_participantType = "Participant type";
|
|
4727
|
+
/**
|
|
4728
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4729
|
+
* @uiName Business representative participant type label
|
|
4730
|
+
* @uiGroup Step 3 Properties
|
|
4731
|
+
*/
|
|
4732
|
+
this.step3_businessEntity = "I represent a business";
|
|
4733
|
+
/**
|
|
4734
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4735
|
+
* @uiName Individual participant type label
|
|
4736
|
+
* @uiGroup Step 3 Properties
|
|
4737
|
+
*/
|
|
4738
|
+
this.step3_individualParticipant = "I am an individual participant";
|
|
4739
|
+
/**
|
|
4740
|
+
* Displayed at the top of the page to participants based in the US.
|
|
4741
|
+
* @uiName W-9 tax form description
|
|
4742
|
+
* @uiGroup Step 3 Properties
|
|
4743
|
+
* @uiWidget textArea
|
|
4744
|
+
*/
|
|
4745
|
+
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4746
|
+
/**
|
|
4747
|
+
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4748
|
+
* @uiName W-8 BEN tax form description
|
|
4749
|
+
* @uiGroup Step 3 Properties
|
|
4750
|
+
* @uiWidget textArea
|
|
4751
|
+
*/
|
|
4752
|
+
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4753
|
+
/**
|
|
4754
|
+
* Displayed at the top of the page to participants representing a business.
|
|
4755
|
+
* @uiName W-8 BEN-E tax form description
|
|
4756
|
+
* @uiGroup Step 3 Properties
|
|
4757
|
+
* @uiWidget textArea
|
|
4758
|
+
*/
|
|
4759
|
+
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";
|
|
4760
|
+
/**
|
|
4761
|
+
* This appears inside the Docusign frame.
|
|
4762
|
+
* @uiName Docusign session expired message
|
|
4763
|
+
* @uiGroup Step 3 Properties
|
|
4764
|
+
* @uiWidget textArea
|
|
4765
|
+
*/
|
|
4766
|
+
this.step3_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.";
|
|
4767
|
+
/**
|
|
4768
|
+
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4769
|
+
* @uiName Docusign timed session message
|
|
4770
|
+
* @uiGroup Step 3 Properties
|
|
4771
|
+
* @uiWidget textArea
|
|
4772
|
+
*/
|
|
4773
|
+
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4774
|
+
/**
|
|
4775
|
+
* This appears inside the Docusign frame.
|
|
4776
|
+
* @uiName Docusign form error message
|
|
4777
|
+
* @uiGroup Step 3 Properties
|
|
4778
|
+
* @uiWidget textArea
|
|
4779
|
+
*/
|
|
4780
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4781
|
+
/**
|
|
4782
|
+
* @uiName Refresh page button label
|
|
4783
|
+
* @uiGroup Step 3 Properties
|
|
4784
|
+
*/
|
|
4785
|
+
this.step3_refreshButton = "Refresh Page";
|
|
4786
|
+
/**
|
|
4787
|
+
* @uiName Exit button text
|
|
4788
|
+
* @uiGroup Step 3 Properties
|
|
4789
|
+
*/
|
|
4790
|
+
this.step3_exitButton = "Exit";
|
|
4791
|
+
/**
|
|
4792
|
+
* @uiName Information modal title
|
|
4793
|
+
* @uiGroup Step 3 Properties
|
|
4794
|
+
*/
|
|
4795
|
+
this.step3_modalTitle = "Important Note";
|
|
4796
|
+
/**
|
|
4797
|
+
* @uiName Information modal description text
|
|
4798
|
+
* @uiGroup Step 3 Properties
|
|
4799
|
+
*/
|
|
4800
|
+
this.step3_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.";
|
|
4801
|
+
/**
|
|
4802
|
+
* @uiName Information modal button text
|
|
4803
|
+
* @uiGroup Step 3 Properties
|
|
4804
|
+
*/
|
|
4805
|
+
this.step3_modalButtonText = "I understand";
|
|
4806
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4807
|
+
STEP 4 PROPS:
|
|
4808
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4809
|
+
/**
|
|
4810
|
+
* @uiName Step 4 title
|
|
4811
|
+
* @uiGroup Step 4 Properties
|
|
4812
|
+
*/
|
|
4813
|
+
this.step4_taxAndPayouts = "Payouts";
|
|
4814
|
+
/**
|
|
4815
|
+
* @uiName Direct to bank payout option
|
|
4816
|
+
* @uiGroup Step 4 Properties
|
|
4817
|
+
*/
|
|
4818
|
+
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4819
|
+
/**
|
|
4820
|
+
* @uiName PayPal payout option
|
|
4821
|
+
* @uiGroup Step 4 Properties
|
|
4822
|
+
*/
|
|
4823
|
+
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4824
|
+
/**
|
|
4825
|
+
* @uiName Threshold balance payment schedule option
|
|
4826
|
+
* @uiGroup Step 4 Properties
|
|
4827
|
+
*/
|
|
4828
|
+
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4829
|
+
/**
|
|
4830
|
+
* @uiName Fixed day payment schedule option
|
|
4831
|
+
* @uiGroup Step 4 Properties
|
|
4832
|
+
*/
|
|
4833
|
+
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4834
|
+
/**
|
|
4835
|
+
* Let the participant choose what day of the month they’ll get paid
|
|
4836
|
+
* @uiName Payment day field label
|
|
4837
|
+
* @uiGroup Step 4 Properties
|
|
4838
|
+
*/
|
|
4839
|
+
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4840
|
+
/**
|
|
4841
|
+
* Participant use this field to select the balance at which they want to be paid
|
|
4842
|
+
* @uiName Payment threshold field label
|
|
4843
|
+
* @uiGroup Step 4 Properties
|
|
4844
|
+
*/
|
|
4845
|
+
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4846
|
+
/**
|
|
4847
|
+
* One of two payment day options
|
|
4848
|
+
* @uiName First of month payday option
|
|
4849
|
+
* @uiGroup Step 4 Properties
|
|
4850
|
+
*/
|
|
4851
|
+
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4852
|
+
/**
|
|
4853
|
+
* One of two payment day options
|
|
4854
|
+
* @uiName Fifteenth of month payday option
|
|
4855
|
+
* @uiGroup Step 4 Properties
|
|
4856
|
+
*/
|
|
4857
|
+
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4858
|
+
/**
|
|
4859
|
+
* @uiName Payment method section header
|
|
4860
|
+
* @uiGroup Step 4 Properties
|
|
4861
|
+
*/
|
|
4862
|
+
this.step4_paymentMethod = "Payment method";
|
|
4863
|
+
/**
|
|
4864
|
+
* @uiName Payment schedule section header
|
|
4865
|
+
* @uiGroup Step 4 Properties
|
|
4866
|
+
*/
|
|
4867
|
+
this.step4_paymentSchedule = "Payment schedule";
|
|
4868
|
+
/**
|
|
4869
|
+
* @uiName Payment method section description
|
|
4870
|
+
* @uiGroup Step 4 Properties
|
|
4871
|
+
*/
|
|
4872
|
+
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4873
|
+
/**
|
|
4874
|
+
* Displayed to participants who choose PayPal as their payout method
|
|
4875
|
+
* @uiName PayPal email field label
|
|
4876
|
+
* @uiGroup Step 4 Properties
|
|
4877
|
+
*/
|
|
4878
|
+
this.step4_payPalInputLabel = "PayPal email";
|
|
4879
|
+
/**
|
|
4880
|
+
* @uiName Bank country field label
|
|
4881
|
+
* @uiGroup Step 4 Properties
|
|
4882
|
+
*/
|
|
4883
|
+
this.step4_bankLocationLabel = "Bank country location";
|
|
4884
|
+
/**
|
|
4885
|
+
* @uiName Beneficiary account field label
|
|
4886
|
+
* @uiGroup Step 4 Properties
|
|
4887
|
+
*/
|
|
4888
|
+
this.step4_beneficiaryAccountNameLabel = "Account holder name";
|
|
4889
|
+
/**
|
|
4890
|
+
* @uiName Beneficiary account field description
|
|
4891
|
+
* @uiGroup Step 4 Properties
|
|
4892
|
+
*/
|
|
4893
|
+
this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
4894
|
+
/**
|
|
4895
|
+
* @uiName Bank account type field label
|
|
4896
|
+
* @uiGroup Step 4 Properties
|
|
4897
|
+
*/
|
|
4898
|
+
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4899
|
+
/**
|
|
4900
|
+
* @uiName Checking account option
|
|
4901
|
+
* @uiGroup Step 4 Properties
|
|
4902
|
+
*/
|
|
4903
|
+
this.step4_checkingSelectItemLabel = "Checking";
|
|
4904
|
+
/**
|
|
4905
|
+
* Label text for the savings account type select item
|
|
4906
|
+
* @uiName Savings account options
|
|
4907
|
+
* @uiGroup Step 4 Properties
|
|
4908
|
+
*/
|
|
4909
|
+
this.step4_savingsSelectItemLabel = "Savings";
|
|
4910
|
+
/**
|
|
4911
|
+
* @uiName Bank account number field label
|
|
4912
|
+
* @uiGroup Step 4 Properties
|
|
4913
|
+
*/
|
|
4914
|
+
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4915
|
+
/**
|
|
4916
|
+
* @uiName IBAN field label
|
|
4917
|
+
* @uiGroup Step 4 Properties
|
|
4918
|
+
*/
|
|
4919
|
+
this.step4_ibanLabel = "IBAN";
|
|
4920
|
+
/**
|
|
4921
|
+
* @uiName SWIFT code field label
|
|
4922
|
+
* @uiGroup Step 4 Properties
|
|
4923
|
+
*/
|
|
4924
|
+
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4925
|
+
/**
|
|
4926
|
+
* @uiName Routing code field label
|
|
4927
|
+
* @uiGroup Step 4 Properties
|
|
4928
|
+
*/
|
|
4929
|
+
this.step4_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} }";
|
|
4930
|
+
/**
|
|
4931
|
+
* @uiName Bank name field label
|
|
4932
|
+
* @uiGroup Step 4 Properties
|
|
4933
|
+
*/
|
|
4934
|
+
this.step4_bankNameLabel = "Bank name";
|
|
4935
|
+
/**
|
|
4936
|
+
* @uiName Classification entity field label
|
|
4937
|
+
* @uiGroup Step 4 Properties
|
|
4938
|
+
*/
|
|
4939
|
+
this.step4_classificationEntityLabel = "Classification entity";
|
|
4940
|
+
/**
|
|
4941
|
+
* One of three options listed for the classification field
|
|
4942
|
+
* @uiName Business classification option
|
|
4943
|
+
* @uiGroup Step 4 Properties
|
|
4944
|
+
*/
|
|
4945
|
+
this.step4_businessSelectItemLabel = "Business";
|
|
4946
|
+
/**
|
|
4947
|
+
* One of three options listed for the classification field
|
|
4948
|
+
* @uiName Individual classification option
|
|
4949
|
+
* @uiGroup Step 4 Properties
|
|
4950
|
+
*/
|
|
4951
|
+
this.step4_individualSelectItemLabel = "Individual";
|
|
4952
|
+
/**
|
|
4953
|
+
* One of three options listed for the classification field
|
|
4954
|
+
* @uiName Foreign classification option
|
|
4955
|
+
* @uiGroup Step 4 Properties
|
|
4956
|
+
*/
|
|
4957
|
+
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4958
|
+
/**
|
|
4959
|
+
* @uiName Classification CPF field label
|
|
4960
|
+
* @uiGroup Step 4 Properties
|
|
4961
|
+
*/
|
|
4962
|
+
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4963
|
+
/**
|
|
4964
|
+
* @uiName Patronymic name field label
|
|
4965
|
+
* @uiGroup Step 4 Properties
|
|
4966
|
+
*/
|
|
4967
|
+
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4968
|
+
/**
|
|
4969
|
+
* @uiName VO code field label
|
|
4970
|
+
* @uiGroup Step 4 Properties
|
|
4971
|
+
*/
|
|
4972
|
+
this.step4_voCodeLabel = "VO code";
|
|
4973
|
+
/**
|
|
4974
|
+
* @uiName Agency code field label
|
|
4975
|
+
* @uiGroup Step 4 Properties
|
|
4976
|
+
*/
|
|
4977
|
+
this.step4_agencyCodeLabel = "Agency code";
|
|
4978
|
+
/**
|
|
4979
|
+
* @uiName Branch code field label
|
|
4980
|
+
* @uiGroup Step 4 Properties
|
|
4981
|
+
*/
|
|
4982
|
+
this.step4_branchCodeLabel = "Branch code";
|
|
4983
|
+
/**
|
|
4984
|
+
* Label text for the classification input field
|
|
4985
|
+
* @uiName Classification field label
|
|
4986
|
+
* @uiGroup Step 4 Properties
|
|
4987
|
+
*/
|
|
4988
|
+
this.step4_classificationLabel = "Classification";
|
|
4989
|
+
/**
|
|
4990
|
+
* @uiName Taxpayer ID field label
|
|
4991
|
+
* @uiGroup Step 4 Properties
|
|
4992
|
+
*/
|
|
4993
|
+
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4994
|
+
/**
|
|
4995
|
+
* @uiName Bank address field label
|
|
4996
|
+
* @uiGroup Step 4 Properties
|
|
4997
|
+
*/
|
|
4998
|
+
this.step4_bankAddressLabel = "Bank address";
|
|
4999
|
+
/**
|
|
5000
|
+
* @uiName Bank city field label
|
|
5001
|
+
* @uiGroup Step 4 Properties
|
|
5002
|
+
*/
|
|
5003
|
+
this.step4_bankCityLabel = "Bank city";
|
|
5004
|
+
/**
|
|
5005
|
+
* @uiName Bank province/state field label
|
|
5006
|
+
* @uiGroup Step 4 Properties
|
|
5007
|
+
*/
|
|
5008
|
+
this.step4_bankStateLabel = "Bank Province / State";
|
|
5009
|
+
/**
|
|
5010
|
+
* @uiName Bank postal code field label
|
|
5011
|
+
* @uiGroup Step 4 Properties
|
|
5012
|
+
*/
|
|
5013
|
+
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
5014
|
+
/**
|
|
5015
|
+
* Default payment method to the participants’ bank account.
|
|
5016
|
+
* @uiName EFT withdrawal payment method
|
|
5017
|
+
* @uiGroup Step 4 Properties
|
|
5018
|
+
*/
|
|
5019
|
+
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
5020
|
+
/**
|
|
5021
|
+
* @uiName FX Wire Processing fee text
|
|
5022
|
+
* @uiGroup Step 4 Properties
|
|
5023
|
+
*/
|
|
5024
|
+
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
5025
|
+
/**
|
|
5026
|
+
* @uiName Text for verify email dialog
|
|
5027
|
+
* @uiGroup Step 4 Properties
|
|
5028
|
+
*/
|
|
5029
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
5030
|
+
/**
|
|
5031
|
+
* @uiName Verify code widget header text
|
|
5032
|
+
* @uiGroup Step 4 Properties
|
|
5033
|
+
*/
|
|
5034
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
5035
|
+
/**
|
|
5036
|
+
* @uiName Information modal title
|
|
5037
|
+
* @uiGroup Step 4 Properties
|
|
5038
|
+
*/
|
|
5039
|
+
this.step4_modalTitle = "Important Note";
|
|
5040
|
+
/**
|
|
5041
|
+
* @uiName Information modal description text
|
|
5042
|
+
* @uiGroup Step 4 Properties
|
|
5043
|
+
*/
|
|
5044
|
+
this.step4_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.";
|
|
5045
|
+
/**
|
|
5046
|
+
* @uiName Information modal button text
|
|
5047
|
+
* @uiGroup Step 4 Properties
|
|
5048
|
+
*/
|
|
5049
|
+
this.step4_modalButtonText = "I understand, update my information";
|
|
5050
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5051
|
+
DASHBOARD PROPS:
|
|
5052
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5053
|
+
/**
|
|
5054
|
+
* @uiName Active tax form badge label
|
|
5055
|
+
* @uiGroup Dashboard Properties
|
|
5056
|
+
*/
|
|
5057
|
+
this.dashboard_statusTextActive = "Active";
|
|
5058
|
+
/**
|
|
5059
|
+
* @uiName Invalid tax form badge label
|
|
5060
|
+
* @uiGroup Dashboard Properties
|
|
5061
|
+
*/
|
|
5062
|
+
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
5063
|
+
/**
|
|
5064
|
+
* Displayed when the participant submitted their form but it is awaiting review.
|
|
5065
|
+
*
|
|
5066
|
+
* @uiName Not verified tax form badge label
|
|
5067
|
+
* @uiGroup Dashboard Properties
|
|
5068
|
+
*/
|
|
5069
|
+
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
5070
|
+
/**
|
|
5071
|
+
* Displayed when the participant has not submitted their required tax form.
|
|
5072
|
+
*
|
|
5073
|
+
* @uiName Required tax form badge label
|
|
5074
|
+
*/
|
|
5075
|
+
this.dashboard_statusTextRequired = "Required";
|
|
5076
|
+
/**
|
|
5077
|
+
* Additional text displayed next to the tax form's status badge
|
|
5078
|
+
*
|
|
5079
|
+
* @uiName Required tax form description
|
|
5080
|
+
*/
|
|
5081
|
+
this.dashboard_requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
|
|
5082
|
+
/**
|
|
5083
|
+
* Additional text displayed next to the tax form's status badge
|
|
5084
|
+
*
|
|
5085
|
+
* @uiName Active W-9 description
|
|
5086
|
+
* @uiGroup Dashboard Properties
|
|
5087
|
+
*/
|
|
5088
|
+
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
5089
|
+
/**
|
|
5090
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5091
|
+
*
|
|
5092
|
+
* @uiName Active W-8 description
|
|
5093
|
+
* @uiGroup Dashboard Properties
|
|
5094
|
+
*/
|
|
5095
|
+
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
5096
|
+
/**
|
|
5097
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5098
|
+
*
|
|
5099
|
+
* @uiName Tax form in review description
|
|
5100
|
+
* @uiGroup Dashboard Properties
|
|
5101
|
+
*/
|
|
5102
|
+
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
5103
|
+
/**
|
|
5104
|
+
* Part of the alert displayed at the top of the page.
|
|
5105
|
+
*
|
|
5106
|
+
* @uiName Inactive W-9 error message title
|
|
5107
|
+
* @uiGroup Dashboard Properties
|
|
5108
|
+
* @uiWidget textArea
|
|
5109
|
+
*/
|
|
5110
|
+
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W-9 tax form has personal information that doesn’t match your profile";
|
|
5111
|
+
/**
|
|
5112
|
+
* Part of the alert displayed at the top of the page.
|
|
5113
|
+
*
|
|
5114
|
+
* @uiName Inactive W-8 error message title
|
|
5115
|
+
* @uiGroup Dashboard Properties
|
|
5116
|
+
* @uiWidget textArea
|
|
5117
|
+
*/
|
|
5118
|
+
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
5119
|
+
/**
|
|
5120
|
+
* Part of the alert displayed at the top of the page.
|
|
5121
|
+
*
|
|
5122
|
+
* @uiName Inactive W-9 error message description
|
|
5123
|
+
* @uiGroup Dashboard Properties
|
|
5124
|
+
* @uiWidget textArea
|
|
5125
|
+
*/
|
|
5126
|
+
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
5127
|
+
/**
|
|
5128
|
+
* Part of the alert displayed at the top of the page.
|
|
5129
|
+
*
|
|
5130
|
+
* @uiName Inactive W-8 error message description
|
|
5131
|
+
* @uiGroup Dashboard Properties
|
|
5132
|
+
*/
|
|
5133
|
+
this.dashboard_taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
|
|
5134
|
+
/**
|
|
5135
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5136
|
+
*
|
|
5137
|
+
* @uiName Invalid tax form description
|
|
5138
|
+
* @uiGroup Dashboard Properties
|
|
5139
|
+
* @uiWidget textArea
|
|
5140
|
+
*/
|
|
5141
|
+
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
5142
|
+
/**
|
|
5143
|
+
* @uiName Payout information section header
|
|
5144
|
+
* @uiGroup Dashboard Properties
|
|
5145
|
+
*/
|
|
5146
|
+
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
5147
|
+
/**
|
|
5148
|
+
* @uiName Tax document section header
|
|
5149
|
+
* @uiGroup Dashboard Properties
|
|
5150
|
+
*/
|
|
5151
|
+
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
5152
|
+
/**
|
|
5153
|
+
* Displayed under the tax document section header.
|
|
5154
|
+
*
|
|
5155
|
+
* @uiName Tax documents section description
|
|
5156
|
+
* @uiGroup Dashboard Properties
|
|
5157
|
+
*/
|
|
5158
|
+
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
5159
|
+
/**
|
|
5160
|
+
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
5161
|
+
*
|
|
5162
|
+
* @uiName Tax form not required text
|
|
5163
|
+
* @uiGroup Dashboard Properties
|
|
5164
|
+
* @uiWidget textArea
|
|
5165
|
+
*/
|
|
5166
|
+
this.dashboard_noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
|
|
5167
|
+
/**
|
|
5168
|
+
*
|
|
5169
|
+
* @uiName Indirect tax section header
|
|
5170
|
+
* @uiGroup Dashboard Properties
|
|
5171
|
+
*/
|
|
5172
|
+
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
5173
|
+
/**
|
|
5174
|
+
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
5175
|
+
*
|
|
5176
|
+
* @uiName Canadian province of indirect tax
|
|
5177
|
+
* @uiGroup Dashboard Properties
|
|
5178
|
+
*/
|
|
5179
|
+
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
5180
|
+
/**
|
|
5181
|
+
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5182
|
+
*
|
|
5183
|
+
* @uiName Indirect tax country
|
|
5184
|
+
* @uiGroup Dashboard Properties
|
|
5185
|
+
*/
|
|
5186
|
+
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5187
|
+
/**
|
|
5188
|
+
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5189
|
+
*
|
|
5190
|
+
* @uiName Spanish region of indirect tax
|
|
5191
|
+
* @uiGroup Dashboard Properties
|
|
5192
|
+
*/
|
|
5193
|
+
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5194
|
+
/**
|
|
5195
|
+
* @uiName Indirect tax tooltip
|
|
5196
|
+
* @uiGroup Dashboard Properties
|
|
5197
|
+
* @uiWidget textArea
|
|
5198
|
+
*/
|
|
5199
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5200
|
+
/**
|
|
5201
|
+
* Displayed to participants who have submitted their indirect tax information.
|
|
5202
|
+
*
|
|
5203
|
+
* @uiName Indirect tax details
|
|
5204
|
+
* @uiGroup Dashboard Properties
|
|
5205
|
+
*/
|
|
5206
|
+
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5207
|
+
/**
|
|
5208
|
+
* @uiName Submit new tax form button label
|
|
5209
|
+
* @uiGroup Dashboard Properties
|
|
5210
|
+
*/
|
|
5211
|
+
this.dashboard_newFormButton = "Submit new form";
|
|
5212
|
+
/**
|
|
5213
|
+
* @uiName Edit payment info button label
|
|
5214
|
+
* @uiGroup Dashboard Properties
|
|
5215
|
+
*/
|
|
5216
|
+
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5217
|
+
/**
|
|
5218
|
+
* @uiName Not registered for indirect tax text
|
|
5219
|
+
* @uiGroup Dashboard Properties
|
|
5220
|
+
* @uiWidget textArea
|
|
5221
|
+
*/
|
|
5222
|
+
this.dashboard_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.";
|
|
5223
|
+
/**
|
|
5224
|
+
* Displayed to participants registered in Quebec, Canada.
|
|
5225
|
+
* @uiName QST indirect tax details
|
|
5226
|
+
* @uiGroup Dashboard Properties
|
|
5227
|
+
*/
|
|
5228
|
+
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5229
|
+
/**
|
|
5230
|
+
* @uiName Spain sub-region indirect tax number
|
|
5231
|
+
* @uiGroup Dashboard Properties
|
|
5232
|
+
*/
|
|
5233
|
+
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5234
|
+
/**
|
|
5235
|
+
* @uiName Payout status badge
|
|
5236
|
+
* @uiGroup Dashboard Properties
|
|
5237
|
+
*/
|
|
5238
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5239
|
+
/**
|
|
5240
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5241
|
+
* @uiName Payout schedule by threshold text
|
|
5242
|
+
* @uiGroup Dashboard Properties
|
|
5243
|
+
*/
|
|
5244
|
+
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5245
|
+
/**
|
|
5246
|
+
* Shown before the participant’s bank account information.
|
|
5247
|
+
* @uiName Bank account field label
|
|
5248
|
+
* @uiGroup Dashboard Properties
|
|
5249
|
+
*/
|
|
5250
|
+
this.dashboard_accountText = "Account";
|
|
5251
|
+
/**
|
|
5252
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5253
|
+
* @uiName Invoice number column title
|
|
5254
|
+
* @uiGroup Dashboard Properties
|
|
5255
|
+
*/
|
|
5256
|
+
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5257
|
+
/**
|
|
5258
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5259
|
+
* @uiName Date column title
|
|
5260
|
+
* @uiGroup Dashboard Properties
|
|
5261
|
+
*/
|
|
5262
|
+
this.dashboard_dateColumnTitle = "Date";
|
|
5263
|
+
/**
|
|
5264
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5265
|
+
* @uiName Earnings column title
|
|
5266
|
+
* @uiGroup Dashboard Properties
|
|
5267
|
+
*/
|
|
5268
|
+
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5269
|
+
/**
|
|
5270
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5271
|
+
* @uiName Indirect tax column title
|
|
5272
|
+
* @uiGroup Dashboard Properties
|
|
5273
|
+
*/
|
|
5274
|
+
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5275
|
+
/**
|
|
5276
|
+
* Displayed under the payout details card.
|
|
5277
|
+
* @uiName Payout from impact text
|
|
5278
|
+
* @uiGroup Dashboard Properties
|
|
5279
|
+
* @uiWidget textArea
|
|
5280
|
+
*/
|
|
5281
|
+
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5282
|
+
/**
|
|
5283
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5284
|
+
* @uiName Earnings after tax column title
|
|
5285
|
+
* @uiGroup Dashboard Properties
|
|
5286
|
+
*/
|
|
5287
|
+
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5288
|
+
/**
|
|
5289
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5290
|
+
* @uiName Payout error message title
|
|
5291
|
+
* @uiGroup Dashboard Properties
|
|
5292
|
+
* @uiWidget textArea
|
|
5293
|
+
*/
|
|
5294
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5295
|
+
/**
|
|
5296
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5297
|
+
* @uiName Payout error message description
|
|
5298
|
+
* @uiGroup Dashboard Properties
|
|
5299
|
+
* @uiWidget textArea
|
|
5300
|
+
*/
|
|
5301
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5302
|
+
/**
|
|
5303
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
5304
|
+
* @uiName Payout missing information subtext
|
|
5305
|
+
* @uiGroup Dashboard Properties
|
|
5306
|
+
*/
|
|
5307
|
+
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5308
|
+
/**
|
|
5309
|
+
* @uiName Invoice table description
|
|
5310
|
+
* @uiGroup Dashboard Properties
|
|
5311
|
+
*/
|
|
5312
|
+
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5313
|
+
/**
|
|
5314
|
+
* @uiName Invoice table previous page button label
|
|
5315
|
+
* @uiGroup Dashboard Properties
|
|
5316
|
+
*/
|
|
5317
|
+
this.dashboard_invoicePrevLabel = "Prev";
|
|
5318
|
+
/**
|
|
5319
|
+
* @uiName Invoice table next page button label
|
|
5320
|
+
* @uiGroup Dashboard Properties
|
|
5321
|
+
*/
|
|
5322
|
+
this.dashboard_invoiceMoreLabel = "Next";
|
|
5323
|
+
/**
|
|
5324
|
+
* @uiName Invoice table title
|
|
5325
|
+
* @uiGroup Dashboard Properties
|
|
5326
|
+
*/
|
|
5327
|
+
this.dashboard_invoiceHeader = "Invoices";
|
|
5328
|
+
/**
|
|
5329
|
+
* @uiName Empty invoice table header
|
|
5330
|
+
* @uiGroup Dashboard Properties
|
|
5331
|
+
*/
|
|
5332
|
+
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5333
|
+
/**
|
|
5334
|
+
* @uiName Empty invoice table description
|
|
5335
|
+
* @uiGroup Dashboard Properties
|
|
5336
|
+
*/
|
|
5337
|
+
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5338
|
+
/**
|
|
5339
|
+
* @uiName Replace tax form modal header
|
|
5340
|
+
* @uiGroup Dashboard Properties
|
|
5341
|
+
*/
|
|
5342
|
+
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5343
|
+
/**
|
|
5344
|
+
* @uiName Replace tax form modal body text
|
|
5345
|
+
* @uiGroup Dashboard Properties
|
|
5346
|
+
* @uiWidget textArea
|
|
5347
|
+
*/
|
|
5348
|
+
this.dashboard_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.";
|
|
5349
|
+
/**
|
|
5350
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5351
|
+
* @uiName Verification required alert message title
|
|
5352
|
+
* @uiGroup Dashboard Properties
|
|
5353
|
+
* @uiWidget textArea
|
|
5354
|
+
*/
|
|
5355
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5356
|
+
/**
|
|
5357
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5358
|
+
* @uiName Verification required alert message description
|
|
5359
|
+
* @uiGroup Dashboard Properties
|
|
5360
|
+
* @uiWidget textArea
|
|
5361
|
+
*/
|
|
5362
|
+
this.dashboard_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}.";
|
|
5363
|
+
/**
|
|
5364
|
+
* @uiName Verification required internal alert header
|
|
5365
|
+
* @uiGroup Dashboard Properties
|
|
5366
|
+
* @uiWidget textArea
|
|
5367
|
+
*/
|
|
5368
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5369
|
+
/**
|
|
5370
|
+
* @uiName Verification required internal alert description
|
|
5371
|
+
* @uiGroup Dashboard Properties
|
|
5372
|
+
* @uiWidget textArea
|
|
5373
|
+
*/
|
|
5374
|
+
this.dashboard_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}.";
|
|
5375
|
+
/**
|
|
5376
|
+
* @uiName Verification review internal alert header
|
|
5377
|
+
* @uiGroup Dashboard Properties
|
|
5378
|
+
* @uiWidget textArea
|
|
5379
|
+
*/
|
|
5380
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5381
|
+
/**
|
|
5382
|
+
* @uiName Verification review internal alert description
|
|
5383
|
+
* @uiGroup Dashboard Properties
|
|
5384
|
+
* @uiWidget textArea
|
|
5385
|
+
*/
|
|
5386
|
+
this.dashboard_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}.";
|
|
5387
|
+
/**
|
|
5388
|
+
* @uiName Verification failed internal alert header
|
|
5389
|
+
* @uiGroup Dashboard Properties
|
|
5390
|
+
* @uiWidget textArea
|
|
5391
|
+
*/
|
|
5392
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5393
|
+
/**
|
|
5394
|
+
* @uiName Verification failed internal alert description
|
|
5395
|
+
* @uiGroup Dashboard Properties
|
|
5396
|
+
* @uiWidget textArea
|
|
5397
|
+
*/
|
|
5398
|
+
this.dashboard_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}.";
|
|
5399
|
+
/**
|
|
5400
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5401
|
+
* @uiName Verification required alert button text
|
|
5402
|
+
* @uiGroup Dashboard Properties
|
|
5403
|
+
* @uiWidget textArea
|
|
5404
|
+
*/
|
|
5405
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5406
|
+
/**
|
|
5407
|
+
* @uiName W-9 payment threshold alert header
|
|
5408
|
+
* @uiGroup Dashboard Properties
|
|
5409
|
+
* @uiWidget textArea
|
|
5410
|
+
*/
|
|
5411
|
+
this.dashboard_w9RequiredHeader = "Your next payout is on hold";
|
|
5412
|
+
/**
|
|
5413
|
+
* @uiName W-9 payment threshold alert description
|
|
5414
|
+
* @uiGroup Dashboard Properties
|
|
5415
|
+
* @uiWidget textArea
|
|
5416
|
+
*/
|
|
5417
|
+
this.dashboard_w9RequiredDescription = "You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
|
|
5418
|
+
/**
|
|
5419
|
+
* @uiName Account review alert header
|
|
5420
|
+
*/
|
|
5421
|
+
this.dashboard_accountReviewHeader = "Your account is under review";
|
|
5422
|
+
/**
|
|
5423
|
+
* @uiName Account review alert description
|
|
5424
|
+
*/
|
|
5425
|
+
this.dashboard_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}.";
|
|
5426
|
+
/**
|
|
5427
|
+
* @uiName Terms and Conditions text
|
|
5428
|
+
* @uiGroup Dashboard Properties
|
|
5429
|
+
*/
|
|
5430
|
+
this.dashboard_termsAndConditions = "Terms and Conditions";
|
|
5431
|
+
/**
|
|
5432
|
+
* @uiName W-9 payment threshold alert button text
|
|
5433
|
+
* @uiGroup Dashboard Properties
|
|
5434
|
+
* @uiWidget textArea
|
|
5435
|
+
*/
|
|
5436
|
+
this.dashboard_w9RequiredButtonText = "Submit W-9";
|
|
5437
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5438
|
+
GENERAL PROPS:
|
|
5439
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5440
|
+
/**
|
|
5441
|
+
* @uiName Setup progress
|
|
5442
|
+
* @uiGroup General Form Properties
|
|
5443
|
+
*/
|
|
5444
|
+
this.formStep = "Step {step} of {count}";
|
|
5445
|
+
/**
|
|
5446
|
+
* Part of the alert displayed at the top of the page.
|
|
5447
|
+
* @uiName Form submission error message title
|
|
5448
|
+
* @uiGroup General Form Properties
|
|
5449
|
+
* @uiWidget textArea
|
|
5450
|
+
*/
|
|
5451
|
+
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5452
|
+
/**
|
|
5453
|
+
* Part of the alert displayed at the top of the page.
|
|
5454
|
+
* @uiName Form submission error message description
|
|
5455
|
+
* @uiGroup General Form Properties
|
|
5456
|
+
* @uiWidget textArea
|
|
5457
|
+
*/
|
|
5458
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5459
|
+
/**
|
|
5460
|
+
* Displayed under a field that is missing required information.
|
|
5461
|
+
* @uiName Empty form field error message
|
|
5462
|
+
* @uiGroup General Form Properties
|
|
5463
|
+
*/
|
|
5464
|
+
this.fieldRequiredError = "{fieldName} is required";
|
|
5465
|
+
/**
|
|
5466
|
+
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5467
|
+
* @uiName Invalid character error message
|
|
5468
|
+
* @uiGroup General Form Properties
|
|
5469
|
+
*/
|
|
5470
|
+
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5471
|
+
/**
|
|
5472
|
+
* Displayed under a field when it has an invalid entry.
|
|
5473
|
+
* @uiName Form field error message
|
|
5474
|
+
* @uiGroup General Form Properties
|
|
5475
|
+
*/
|
|
5476
|
+
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5477
|
+
/**
|
|
5478
|
+
* @uiName Continue button label
|
|
5479
|
+
* @uiGroup General Form Properties
|
|
5480
|
+
*/
|
|
5481
|
+
this.continueButton = "Continue";
|
|
5482
|
+
/**
|
|
5483
|
+
* @uiName Back button label
|
|
5484
|
+
* @uiGroup General Form Properties
|
|
5485
|
+
*/
|
|
5486
|
+
this.backButton = "Back";
|
|
5487
|
+
/**
|
|
5488
|
+
* @uiName Cancel button label
|
|
5489
|
+
* @uiGroup General Form Properties
|
|
5490
|
+
*/
|
|
5491
|
+
this.cancelButton = "Cancel";
|
|
5492
|
+
/**
|
|
5493
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5494
|
+
* @uiName Participant is a partner alert title
|
|
5495
|
+
* @uiGroup General Form Properties
|
|
5496
|
+
* @uiWidget textArea
|
|
5497
|
+
*/
|
|
5498
|
+
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5499
|
+
/**
|
|
5500
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5501
|
+
* @uiName Participant is a partner alert description
|
|
5502
|
+
* @uiGroup General Form Properties
|
|
5503
|
+
* @uiWidget textArea
|
|
5504
|
+
*/
|
|
5505
|
+
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.";
|
|
5506
|
+
/**
|
|
5507
|
+
* Placeholder text displayed in the country search dropdown
|
|
5508
|
+
* @uiName Country field placeholder text
|
|
5509
|
+
* @uiGroup General Form Properties
|
|
3632
5510
|
*/
|
|
3633
|
-
this.
|
|
5511
|
+
this.searchForCountryText = "Search for country..";
|
|
3634
5512
|
/**
|
|
3635
|
-
*
|
|
3636
|
-
* @uiName
|
|
5513
|
+
* Part of the alert displayed at the top of the page.
|
|
5514
|
+
* @uiName Page load error message title
|
|
5515
|
+
* @uiGroup General Form Properties
|
|
5516
|
+
* @uiWidget textArea
|
|
3637
5517
|
*/
|
|
3638
|
-
this.
|
|
5518
|
+
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
3639
5519
|
/**
|
|
3640
|
-
*
|
|
3641
|
-
* @uiName
|
|
5520
|
+
* Part of the alert displayed at the top of the page.
|
|
5521
|
+
* @uiName Page load error message description
|
|
5522
|
+
* @uiGroup General Form Properties
|
|
5523
|
+
* @uiWidget textArea
|
|
3642
5524
|
*/
|
|
3643
|
-
this.
|
|
5525
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
3644
5526
|
/**
|
|
3645
|
-
*
|
|
3646
|
-
* @uiName
|
|
5527
|
+
* Displayed at the top of the page on all set up steps.
|
|
5528
|
+
* @uiName Page description
|
|
5529
|
+
* @uiGroup General Form Properties
|
|
3647
5530
|
*/
|
|
3648
|
-
this.
|
|
5531
|
+
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5532
|
+
/**
|
|
5533
|
+
* Link text for contacting support team
|
|
5534
|
+
* @uiName Suport link text
|
|
5535
|
+
* @uiGroup General Form Properties
|
|
5536
|
+
*/
|
|
5537
|
+
this.supportLink = "support team";
|
|
3649
5538
|
/**
|
|
3650
|
-
*
|
|
5539
|
+
* Link text for Terms and Conditions
|
|
5540
|
+
* @uiName Terms and Conditions text
|
|
5541
|
+
* @uiGroup General Form Properties
|
|
3651
5542
|
*/
|
|
3652
|
-
this.
|
|
3653
|
-
|
|
5543
|
+
this.termsAndConditions = "Terms and Conditions";
|
|
5544
|
+
stencilHooks_module.h$1(this);
|
|
3654
5545
|
}
|
|
3655
5546
|
disconnectedCallback() { }
|
|
3656
|
-
|
|
5547
|
+
// this field is required prop
|
|
5548
|
+
getGeneralStepTextProps(prefix) {
|
|
3657
5549
|
const props = utils.getProps(this);
|
|
3658
5550
|
return {
|
|
3659
|
-
...props,
|
|
5551
|
+
...extractProps.extractProps(props, prefix),
|
|
5552
|
+
generalErrorTitle: props.generalErrorTitle,
|
|
5553
|
+
generalErrorDescription: props.generalErrorDescription,
|
|
5554
|
+
fieldRequiredError: props.fieldRequiredError,
|
|
5555
|
+
invalidCharacterError: props.invalidCharacterError,
|
|
5556
|
+
fieldInvalidError: props.fieldInvalidError,
|
|
5557
|
+
continueButton: props.continueButton,
|
|
5558
|
+
backButton: props.backButton,
|
|
5559
|
+
cancelButton: props.cancelButton,
|
|
5560
|
+
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5561
|
+
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5562
|
+
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5563
|
+
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5564
|
+
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5565
|
+
searchForCountryText: props.searchForCountryText,
|
|
5566
|
+
formStep: props.formStep,
|
|
5567
|
+
supportLink: props.supportLink,
|
|
3660
5568
|
};
|
|
3661
5569
|
}
|
|
3662
5570
|
render() {
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
5571
|
+
var _a, _b;
|
|
5572
|
+
const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
5573
|
+
// @ts-ignore
|
|
5574
|
+
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
5575
|
+
const textProps = utils.getProps(this);
|
|
5576
|
+
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5577
|
+
if (prop === "demoData")
|
|
5578
|
+
return;
|
|
5579
|
+
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
5580
|
+
})));
|
|
5581
|
+
}
|
|
5582
|
+
switch (props.step) {
|
|
5583
|
+
case "/1":
|
|
5584
|
+
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5585
|
+
case "/2":
|
|
5586
|
+
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5587
|
+
case "/3":
|
|
5588
|
+
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5589
|
+
case "/4":
|
|
5590
|
+
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5591
|
+
case "/dashboard":
|
|
5592
|
+
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5593
|
+
case "/error":
|
|
5594
|
+
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5595
|
+
}
|
|
5596
|
+
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
3667
5597
|
}
|
|
3668
5598
|
};
|
|
3669
|
-
function
|
|
5599
|
+
function useDemoTaxAndCash(props) {
|
|
5600
|
+
const [step, setStep] = index_module.In({
|
|
5601
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5602
|
+
initialValue: "/1",
|
|
5603
|
+
});
|
|
3670
5604
|
return cjs.cjs({
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
error: false,
|
|
3674
|
-
thresholdBalance: "$50",
|
|
3675
|
-
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
3676
|
-
badgeStatus: "nextPayout",
|
|
3677
|
-
payoutType: "BANK_TRANSFER",
|
|
3678
|
-
nextPayoutDate: "March 14, 2024",
|
|
3679
|
-
paypalEmailAddress: "joesmith@example.com",
|
|
3680
|
-
otherCurrencies: false,
|
|
3681
|
-
hasW9Pending: false,
|
|
3682
|
-
hasDatePending: true,
|
|
3683
|
-
cardNumberPreview: "XX2381",
|
|
3684
|
-
balance: "20.00 USD",
|
|
3685
|
-
},
|
|
3686
|
-
text: props.getTextProps(),
|
|
5605
|
+
step,
|
|
5606
|
+
setStep,
|
|
3687
5607
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3688
5608
|
}
|
|
3689
5609
|
|
|
3690
|
-
const style$
|
|
3691
|
-
|
|
5610
|
+
const style$6 = {
|
|
5611
|
+
ErrorAlertContainer: {
|
|
5612
|
+
"&::part(base)": {
|
|
5613
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
5614
|
+
borderTop: "none",
|
|
5615
|
+
},
|
|
5616
|
+
"& sl-icon::part(base)": {
|
|
5617
|
+
color: "var(--sl-color-danger-500)",
|
|
5618
|
+
},
|
|
5619
|
+
},
|
|
5620
|
+
WarningAlertContainer: {
|
|
5621
|
+
"&::part(base)": {
|
|
5622
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5623
|
+
borderTop: "none",
|
|
5624
|
+
maxWidth: "600px",
|
|
5625
|
+
},
|
|
5626
|
+
"& sl-icon::part(base)": {
|
|
5627
|
+
color: "var(--sl-color-warning-500)",
|
|
5628
|
+
},
|
|
5629
|
+
},
|
|
5630
|
+
WarningHoldAlertContainer: {
|
|
5631
|
+
marginLeft: "-20px",
|
|
3692
5632
|
"&::part(base)": {
|
|
3693
|
-
|
|
3694
|
-
|
|
5633
|
+
maxWidth: "850px",
|
|
5634
|
+
border: "none",
|
|
5635
|
+
backgroundColor: "transparent",
|
|
5636
|
+
},
|
|
5637
|
+
"& sl-icon::part(base)": {
|
|
5638
|
+
color: "var(--sl-color-warning-500)",
|
|
3695
5639
|
},
|
|
3696
5640
|
},
|
|
3697
|
-
|
|
5641
|
+
ErrorHoldAlertContainer: {
|
|
5642
|
+
marginLeft: "-20px",
|
|
3698
5643
|
"&::part(base)": {
|
|
3699
|
-
|
|
3700
|
-
|
|
5644
|
+
maxWidth: "850px",
|
|
5645
|
+
border: "none",
|
|
5646
|
+
backgroundColor: "transparent",
|
|
5647
|
+
},
|
|
5648
|
+
"& sl-icon::part(base)": {
|
|
5649
|
+
color: "var(--sl-color-danger-500)",
|
|
3701
5650
|
},
|
|
3702
5651
|
},
|
|
3703
|
-
|
|
5652
|
+
ExpiringSoonAlertContainer: {
|
|
3704
5653
|
"&::part(base)": {
|
|
3705
|
-
backgroundColor: "var(--
|
|
3706
|
-
|
|
5654
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5655
|
+
borderTop: "none",
|
|
3707
5656
|
},
|
|
3708
5657
|
},
|
|
3709
5658
|
BankingInformationContainer: {
|
|
@@ -3711,7 +5660,7 @@ const style$5 = {
|
|
|
3711
5660
|
},
|
|
3712
5661
|
IndirectTaxPreviewContainer: {
|
|
3713
5662
|
marginTop: "var(--sl-spacing-x-large)",
|
|
3714
|
-
borderTop: "
|
|
5663
|
+
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
3715
5664
|
},
|
|
3716
5665
|
IndirectTaxPreviewHeaderContainer: {
|
|
3717
5666
|
marginTop: "var(--sl-spacing-large)",
|
|
@@ -3720,7 +5669,7 @@ const style$5 = {
|
|
|
3720
5669
|
display: "flex",
|
|
3721
5670
|
gap: "var(--sl-spacing-x-small)",
|
|
3722
5671
|
"&::part(base)": {
|
|
3723
|
-
color: "var(--
|
|
5672
|
+
color: "var(--sl-color-green-500)",
|
|
3724
5673
|
},
|
|
3725
5674
|
},
|
|
3726
5675
|
IndirectTaxPreviewDetails: {
|
|
@@ -3734,11 +5683,11 @@ const style$5 = {
|
|
|
3734
5683
|
marginTop: "var(--sl-spacing-medium)",
|
|
3735
5684
|
},
|
|
3736
5685
|
NotRegisteredIndirectTaxText: {
|
|
3737
|
-
color: "var(--
|
|
5686
|
+
color: "var(--sl-color-gray-500)",
|
|
3738
5687
|
},
|
|
3739
5688
|
TaxDocumentsContainer: {
|
|
3740
5689
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
3741
|
-
borderTop: "1px solid var(--
|
|
5690
|
+
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
3742
5691
|
},
|
|
3743
5692
|
TaxDocumentsSectionHeaderContainer: {
|
|
3744
5693
|
marginTop: "var(--sl-spacing-x-large)",
|
|
@@ -3755,7 +5704,7 @@ const style$5 = {
|
|
|
3755
5704
|
"& p": {
|
|
3756
5705
|
margin: "0",
|
|
3757
5706
|
paddingTop: "2px",
|
|
3758
|
-
color: "var(--
|
|
5707
|
+
color: "var(--sl-color-gray-500)",
|
|
3759
5708
|
},
|
|
3760
5709
|
},
|
|
3761
5710
|
StatusAlert: {
|
|
@@ -3790,7 +5739,7 @@ const style$5 = {
|
|
|
3790
5739
|
},
|
|
3791
5740
|
TaxDocSubtext: {
|
|
3792
5741
|
margin: "0",
|
|
3793
|
-
color: "var(--
|
|
5742
|
+
color: "var(--sl-color-neutral-500)",
|
|
3794
5743
|
lineHeight: "var(--sl-spacing-medium)",
|
|
3795
5744
|
fontSize: "var(--sl-font-size-small)",
|
|
3796
5745
|
marginLeft: "1px",
|
|
@@ -3811,66 +5760,28 @@ const style$5 = {
|
|
|
3811
5760
|
gap: "6px",
|
|
3812
5761
|
},
|
|
3813
5762
|
DescriptionText: {
|
|
3814
|
-
color: "var(--
|
|
5763
|
+
color: "var(--sl-color-gray-500)",
|
|
3815
5764
|
fontSize: "var(--sl-font-size-x-small)",
|
|
3816
5765
|
marginBottom: "none",
|
|
3817
5766
|
maxWidth: "492px",
|
|
3818
5767
|
},
|
|
3819
5768
|
PageDescriptionText: {
|
|
3820
|
-
color: "var(--
|
|
5769
|
+
color: "var(--sl-color-neutral-500)",
|
|
3821
5770
|
fontSize: "var(--sl-font-size-medium)",
|
|
3822
5771
|
marginTop: "0",
|
|
3823
5772
|
},
|
|
3824
|
-
WarningButton: {
|
|
3825
|
-
"&::part(base)": {
|
|
3826
|
-
marginTop: "20px",
|
|
3827
|
-
borderColor: "var(--sqm-warning-color-border)",
|
|
3828
|
-
color: "var(--sqm-warning-color-text)",
|
|
3829
|
-
background: "var(--sqm-warning-color-background)",
|
|
3830
|
-
"&:hover": {
|
|
3831
|
-
background: "var(--sqm-warning-color-icon)",
|
|
3832
|
-
},
|
|
3833
|
-
},
|
|
3834
|
-
},
|
|
3835
|
-
ErrorButton: {
|
|
3836
|
-
"&::part(base)": {
|
|
3837
|
-
marginTop: "20px",
|
|
3838
|
-
borderColor: "var(--sqm-danger-color-border)",
|
|
3839
|
-
color: "var(--sqm-danger-color-text)",
|
|
3840
|
-
background: "var(--sqm-danger-color-background)",
|
|
3841
|
-
"&:hover": {
|
|
3842
|
-
background: "var(--sqm-danger-color-icon)",
|
|
3843
|
-
},
|
|
3844
|
-
},
|
|
3845
|
-
},
|
|
3846
|
-
SuccessButton: {
|
|
3847
|
-
"&::part(base)": {
|
|
3848
|
-
marginTop: "20px",
|
|
3849
|
-
borderColor: "var(--sqm-success-color-border)",
|
|
3850
|
-
color: "var(--sqm-success-color-text)",
|
|
3851
|
-
background: "var(--sqm-success-color-background)",
|
|
3852
|
-
"&:hover": {
|
|
3853
|
-
background: "var(--sqm-success-color-icon)",
|
|
3854
|
-
},
|
|
3855
|
-
},
|
|
3856
|
-
},
|
|
3857
5773
|
Dialog: {
|
|
3858
5774
|
"&::part(panel)": {
|
|
3859
5775
|
maxWidth: "420px",
|
|
3860
5776
|
},
|
|
3861
|
-
"&::part(header)": {
|
|
3862
|
-
display: "flex",
|
|
3863
|
-
alignItems: "center",
|
|
3864
|
-
justifyContent: "center",
|
|
3865
|
-
paddingTop: "var(--sl-spacing-large)",
|
|
3866
|
-
},
|
|
3867
5777
|
"&::part(close-button)": {
|
|
3868
5778
|
marginBottom: "var(--sl-spacing-xx-large)",
|
|
3869
5779
|
},
|
|
3870
5780
|
"&::part(title)": {
|
|
3871
|
-
fontSize: "var(--sl-font-size-large)",
|
|
5781
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
3872
5782
|
fontWeight: "600",
|
|
3873
|
-
|
|
5783
|
+
marginTop: "var(--sl-spacing-xxx-large)",
|
|
5784
|
+
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
3874
5785
|
},
|
|
3875
5786
|
"&::part(body)": {
|
|
3876
5787
|
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
@@ -3887,23 +5798,44 @@ const style$5 = {
|
|
|
3887
5798
|
},
|
|
3888
5799
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3889
5800
|
};
|
|
3890
|
-
const
|
|
3891
|
-
|
|
3892
|
-
font-family: var(--sqm-primary-font);
|
|
3893
|
-
}
|
|
3894
|
-
a {
|
|
3895
|
-
color: inherit;
|
|
3896
|
-
text-decoration: underline;
|
|
3897
|
-
cursor: pointer;
|
|
3898
|
-
}
|
|
3899
|
-
`;
|
|
3900
|
-
const sheet$4 = JSS.createStyleSheet(style$5);
|
|
3901
|
-
const styleString$4 = sheet$4.toString();
|
|
5801
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5802
|
+
const styleString$5 = sheet$5.toString();
|
|
3902
5803
|
const TaxAndCashDashboardView = (props) => {
|
|
3903
5804
|
var _a;
|
|
3904
5805
|
const { states, text, callbacks, slots } = props;
|
|
3905
5806
|
function getAlert(status) {
|
|
3906
5807
|
switch (status) {
|
|
5808
|
+
case "OVER_W9_THRESHOLD":
|
|
5809
|
+
if (states.enforceUsTaxComplianceOption === "CASH_ONLY_DEFER_W9") {
|
|
5810
|
+
return {
|
|
5811
|
+
header: text.w9RequiredHeader,
|
|
5812
|
+
description: global.intl.formatMessage({
|
|
5813
|
+
id: "w9RequiredDescription",
|
|
5814
|
+
defaultMessage: text.w9RequiredDescription,
|
|
5815
|
+
}, {
|
|
5816
|
+
termsAndConditions: (index.h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
|
|
5817
|
+
}),
|
|
5818
|
+
button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
5819
|
+
alertType: "info",
|
|
5820
|
+
icon: "info-circle",
|
|
5821
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5822
|
+
};
|
|
5823
|
+
}
|
|
5824
|
+
else {
|
|
5825
|
+
return {
|
|
5826
|
+
header: text.payoutHoldAlertHeader,
|
|
5827
|
+
description: global.intl.formatMessage({
|
|
5828
|
+
id: "payoutHoldAlertDescription",
|
|
5829
|
+
defaultMessage: text.payoutHoldAlertDescription,
|
|
5830
|
+
}, {
|
|
5831
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5832
|
+
}),
|
|
5833
|
+
buttonText: null,
|
|
5834
|
+
alertType: "warning",
|
|
5835
|
+
icon: "exclamation-triangle",
|
|
5836
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5837
|
+
};
|
|
5838
|
+
}
|
|
3907
5839
|
case "VERIFICATION:REQUIRED":
|
|
3908
5840
|
return {
|
|
3909
5841
|
header: text.verificationRequiredHeader,
|
|
@@ -3915,6 +5847,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3915
5847
|
}),
|
|
3916
5848
|
buttonText: text.verificationRequiredButtonText,
|
|
3917
5849
|
alertType: "warning",
|
|
5850
|
+
icon: "exclamation-triangle",
|
|
5851
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3918
5852
|
};
|
|
3919
5853
|
case "VERIFICATION:INTERNAL":
|
|
3920
5854
|
return {
|
|
@@ -3926,6 +5860,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3926
5860
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3927
5861
|
}),
|
|
3928
5862
|
alertType: "warning",
|
|
5863
|
+
icon: "exclamation-triangle",
|
|
5864
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3929
5865
|
};
|
|
3930
5866
|
case "VERIFICATION:REVIEW":
|
|
3931
5867
|
return {
|
|
@@ -3937,6 +5873,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3937
5873
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3938
5874
|
}),
|
|
3939
5875
|
alertType: "warning",
|
|
5876
|
+
icon: "exclamation-triangle",
|
|
5877
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3940
5878
|
};
|
|
3941
5879
|
case "VERIFICATION:FAILED":
|
|
3942
5880
|
return {
|
|
@@ -3947,7 +5885,23 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3947
5885
|
}, {
|
|
3948
5886
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3949
5887
|
}),
|
|
3950
|
-
alertType: "
|
|
5888
|
+
alertType: "critical",
|
|
5889
|
+
icon: "exclamation-octagon",
|
|
5890
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
5891
|
+
};
|
|
5892
|
+
case "ACCOUNT_REVIEW":
|
|
5893
|
+
return {
|
|
5894
|
+
header: text.accountReviewHeader,
|
|
5895
|
+
description: global.intl.formatMessage({
|
|
5896
|
+
id: "accountReviewDescription",
|
|
5897
|
+
defaultMessage: text.accountReviewDescription,
|
|
5898
|
+
}, {
|
|
5899
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5900
|
+
}),
|
|
5901
|
+
buttonText: null,
|
|
5902
|
+
alertType: "warning",
|
|
5903
|
+
icon: "exclamation-triangle",
|
|
5904
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3951
5905
|
};
|
|
3952
5906
|
case "HOLD":
|
|
3953
5907
|
return {
|
|
@@ -3960,22 +5914,24 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3960
5914
|
}),
|
|
3961
5915
|
buttonText: null,
|
|
3962
5916
|
alertType: "warning",
|
|
5917
|
+
icon: "exclamation-triangle",
|
|
5918
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3963
5919
|
};
|
|
3964
5920
|
default:
|
|
3965
5921
|
return;
|
|
3966
5922
|
}
|
|
3967
5923
|
}
|
|
3968
5924
|
const statusMap = {
|
|
3969
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
3970
|
-
index.h("sl-badge", {
|
|
5925
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5926
|
+
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
3971
5927
|
index.h("p", null, global.intl.formatMessage({
|
|
3972
5928
|
id: `badgeTextAwaitingReview`,
|
|
3973
5929
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
3974
5930
|
}, {
|
|
3975
5931
|
dateSubmitted: states.dateSubmitted,
|
|
3976
5932
|
})))),
|
|
3977
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
3978
|
-
index.h("sl-badge", {
|
|
5933
|
+
ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5934
|
+
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
3979
5935
|
index.h("p", null, global.intl.formatMessage({
|
|
3980
5936
|
id: `badgeTextSubmittedOn`,
|
|
3981
5937
|
defaultMessage: states.documentType === "W9"
|
|
@@ -3984,13 +5940,22 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3984
5940
|
}, {
|
|
3985
5941
|
dateSubmitted: states.dateSubmitted,
|
|
3986
5942
|
})))),
|
|
3987
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
3988
|
-
index.h("sl-badge", {
|
|
5943
|
+
INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5944
|
+
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
3989
5945
|
index.h("p", null, text.invalidForm))),
|
|
5946
|
+
undefined: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5947
|
+
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
5948
|
+
index.h("p", null, global.intl.formatMessage({
|
|
5949
|
+
id: `requiredTaxForm`,
|
|
5950
|
+
defaultMessage: text.requiredTaxForm,
|
|
5951
|
+
}, {
|
|
5952
|
+
taxFormType: states.documentType,
|
|
5953
|
+
})))),
|
|
3990
5954
|
};
|
|
3991
5955
|
const alertMap = {
|
|
3992
|
-
INACTIVE: (index.h("
|
|
3993
|
-
index.h("
|
|
5956
|
+
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5957
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5958
|
+
index.h("strong", null, global.intl.formatMessage({
|
|
3994
5959
|
id: `taxAlertHeaderNotActive`,
|
|
3995
5960
|
defaultMessage: states.documentType === "W9"
|
|
3996
5961
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -3998,6 +5963,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3998
5963
|
}, {
|
|
3999
5964
|
documentType: states.documentTypeString,
|
|
4000
5965
|
})),
|
|
5966
|
+
index.h("br", null),
|
|
4001
5967
|
global.intl.formatMessage({
|
|
4002
5968
|
id: `taxAlertMessage`,
|
|
4003
5969
|
defaultMessage: states.documentType === "W9"
|
|
@@ -4035,74 +6001,79 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4035
6001
|
});
|
|
4036
6002
|
}
|
|
4037
6003
|
};
|
|
4038
|
-
const
|
|
6004
|
+
const alertInfo = getAlert(states.payoutStatus);
|
|
4039
6005
|
return (index.h("div", null,
|
|
4040
6006
|
index.h("div", null,
|
|
4041
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
4042
|
-
index.h("
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
6007
|
+
index.h("style", { type: "text/css" }, styleString$5),
|
|
6008
|
+
states.loadingError && (index.h("div", null,
|
|
6009
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
6010
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6011
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6012
|
+
index.h("br", null),
|
|
6013
|
+
global.intl.formatMessage({
|
|
6014
|
+
id: "loadingErrorAlertDescription",
|
|
6015
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
6016
|
+
}, {
|
|
6017
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
6018
|
+
})))),
|
|
6019
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
6020
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6021
|
+
index.h("strong", null, text.error.generalTitle),
|
|
6022
|
+
index.h("br", null),
|
|
4053
6023
|
global.intl.formatMessage({
|
|
4054
6024
|
id: "generalDescription",
|
|
4055
6025
|
defaultMessage: text.error.generalDescription,
|
|
4056
6026
|
}, {
|
|
4057
6027
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4058
6028
|
}))),
|
|
4059
|
-
|
|
4060
|
-
index.h("
|
|
4061
|
-
index.h("
|
|
4062
|
-
|
|
4063
|
-
|
|
6029
|
+
alertInfo && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
6030
|
+
index.h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
|
|
6031
|
+
index.h("strong", null, alertInfo.header),
|
|
6032
|
+
index.h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
6033
|
+
alertInfo.buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
6034
|
+
alertInfo.button ? (alertInfo.button) : (index.h("div", { style: { display: "none" } })))),
|
|
6035
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
4064
6036
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
4065
|
-
index.h("sl-button", { slot: "footer", type: "primary",
|
|
4066
|
-
index.h("sl-button", { slot: "footer", type: "
|
|
6037
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
6038
|
+
index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
4067
6039
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
4068
6040
|
index.h("div", null,
|
|
4069
6041
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
4070
|
-
index.h("
|
|
4071
|
-
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
6042
|
+
index.h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
4072
6043
|
slots.payoutDetailsCardSlot,
|
|
4073
|
-
!states.loading && (index.h("p", { class: sheet$
|
|
4074
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
4075
|
-
index.h("div", { class: sheet$
|
|
4076
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$
|
|
4077
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4078
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4079
|
-
index.h("
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
index.h("div", { class: sheet$
|
|
4092
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4093
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4094
|
-
index.h("h3", { class: sheet$
|
|
6044
|
+
!states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
6045
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
6046
|
+
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
6047
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
6048
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
6049
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
6050
|
+
index.h("div", null,
|
|
6051
|
+
index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
6052
|
+
index.h("div", { class: sheet$5.classes.StatusContainer },
|
|
6053
|
+
index.h("h3", null, global.intl.formatMessage({
|
|
6054
|
+
id: "section-subheader",
|
|
6055
|
+
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
6056
|
+
}, {
|
|
6057
|
+
documentType: states.documentTypeString || "W-9",
|
|
6058
|
+
})),
|
|
6059
|
+
index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
6060
|
+
states.noFormNeeded &&
|
|
6061
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
6062
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
6063
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
6064
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
6065
|
+
index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
4095
6066
|
text.indirectTaxInfoSectionHeader,
|
|
4096
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
4097
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$
|
|
4098
|
-
index.h("div", { class: sheet$
|
|
4099
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$
|
|
6067
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
6068
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
6069
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
6070
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
4100
6071
|
id: "notRegisteredForTax",
|
|
4101
6072
|
defaultMessage: text.notRegisteredForTax,
|
|
4102
6073
|
}, {
|
|
4103
6074
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4104
6075
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
4105
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
6076
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
4106
6077
|
index.h("span", null, global.intl.formatMessage({
|
|
4107
6078
|
id: `indirectTaxDetails`,
|
|
4108
6079
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -4125,7 +6096,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4125
6096
|
}, {
|
|
4126
6097
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
4127
6098
|
})))),
|
|
4128
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
6099
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
4129
6100
|
index.h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
|
|
4130
6101
|
index.h("sqm-invoice-table-download-column", null),
|
|
4131
6102
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -4135,6 +6106,13 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4135
6106
|
index.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
4136
6107
|
};
|
|
4137
6108
|
|
|
6109
|
+
const GET_TAX_SETTING = index_module.dist.gql `
|
|
6110
|
+
query getTenantSettings {
|
|
6111
|
+
tenantSettings {
|
|
6112
|
+
enforceUsTaxCompliance
|
|
6113
|
+
}
|
|
6114
|
+
}
|
|
6115
|
+
`;
|
|
4138
6116
|
function getCountryName(countryCode, locale) {
|
|
4139
6117
|
if (!countryCode)
|
|
4140
6118
|
return undefined;
|
|
@@ -4149,12 +6127,12 @@ function getSubRegionName(regionCode) {
|
|
|
4149
6127
|
return "";
|
|
4150
6128
|
// Impact adds an underscore to some regions
|
|
4151
6129
|
const standardCode = regionCode.replace("_", "");
|
|
4152
|
-
const regions = [...
|
|
6130
|
+
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4153
6131
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
4154
6132
|
}
|
|
4155
6133
|
function getIndirectTaxType(taxInformation) {
|
|
4156
6134
|
var _a;
|
|
4157
|
-
const regions = [...
|
|
6135
|
+
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4158
6136
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
4159
6137
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
4160
6138
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -4165,23 +6143,26 @@ function getIndirectTaxType(taxInformation) {
|
|
|
4165
6143
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
4166
6144
|
return "VAT";
|
|
4167
6145
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
4168
|
-
return
|
|
6146
|
+
return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
4169
6147
|
}
|
|
4170
6148
|
return "Indirect Tax";
|
|
4171
6149
|
}
|
|
4172
6150
|
const useTaxAndCashDashboard = (props) => {
|
|
4173
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
4174
|
-
const setStep = index_module.En(
|
|
4175
|
-
const setContext = index_module.En(
|
|
4176
|
-
const [showDialog, setShowDialog] =
|
|
6151
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
6152
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6153
|
+
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6154
|
+
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
4177
6155
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
6156
|
+
const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
|
|
4178
6157
|
const locale = index_module.L();
|
|
4179
|
-
|
|
6158
|
+
stencilHooks_module.useEffect(() => {
|
|
4180
6159
|
// Clear override context once on submitted
|
|
4181
6160
|
setContext({});
|
|
6161
|
+
if (window.location.hash)
|
|
6162
|
+
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
4182
6163
|
}, []);
|
|
4183
|
-
const { data
|
|
4184
|
-
const publisher = (_b = (_a = data
|
|
6164
|
+
const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
6165
|
+
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
4185
6166
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
4186
6167
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
4187
6168
|
const dateSubmitted = submissionDate
|
|
@@ -4204,39 +6185,41 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4204
6185
|
});
|
|
4205
6186
|
setStep("/3");
|
|
4206
6187
|
};
|
|
4207
|
-
const provinceName = (_d =
|
|
4208
|
-
const payoutStatus = data
|
|
4209
|
-
|
|
6188
|
+
const provinceName = (_d = sqmInvoiceTableView.INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
|
|
6189
|
+
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
6190
|
+
stencilHooks_module.useEffect(() => {
|
|
4210
6191
|
const cb = () => refetch();
|
|
4211
6192
|
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
4212
6193
|
return () => {
|
|
4213
6194
|
window.removeEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
4214
6195
|
};
|
|
4215
6196
|
}, []);
|
|
6197
|
+
const enforceUsTaxComplianceOption = (_e = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _e === void 0 ? void 0 : _e.enforceUsTaxCompliance;
|
|
4216
6198
|
return {
|
|
4217
6199
|
states: {
|
|
4218
6200
|
dateSubmitted,
|
|
4219
6201
|
documentType,
|
|
4220
6202
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
4221
|
-
documentTypeString:
|
|
4222
|
-
status: (
|
|
4223
|
-
subRegion: getSubRegionName((
|
|
4224
|
-
subRegionTaxNumber: (
|
|
4225
|
-
qstNumber: (
|
|
6203
|
+
documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
|
|
6204
|
+
status: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _f === void 0 ? void 0 : _f.status,
|
|
6205
|
+
subRegion: getSubRegionName((_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.indirectTaxRegion),
|
|
6206
|
+
subRegionTaxNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.withholdingTaxId,
|
|
6207
|
+
qstNumber: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.additionalTaxId,
|
|
4226
6208
|
indirectTaxType: getIndirectTaxType(publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation),
|
|
4227
|
-
indirectTaxNumber: (
|
|
6209
|
+
indirectTaxNumber: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxId,
|
|
4228
6210
|
isBusinessEntity: (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) === "W8BENE",
|
|
4229
6211
|
province: provinceName,
|
|
4230
|
-
country: getCountryName((
|
|
4231
|
-
notRegistered: !((
|
|
6212
|
+
country: getCountryName((_l = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _l === void 0 ? void 0 : _l.indirectTaxCountryCode, locale),
|
|
6213
|
+
notRegistered: !((_m = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _m === void 0 ? void 0 : _m.indirectTaxId),
|
|
4232
6214
|
noFormNeeded: !documentType,
|
|
4233
6215
|
disabled: loading,
|
|
4234
6216
|
loading,
|
|
4235
6217
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
4236
6218
|
showNewFormDialog: showDialog,
|
|
4237
|
-
hasHold: !!((
|
|
6219
|
+
hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
|
|
4238
6220
|
payoutStatus,
|
|
4239
6221
|
veriffLoading,
|
|
6222
|
+
enforceUsTaxComplianceOption,
|
|
4240
6223
|
},
|
|
4241
6224
|
callbacks: {
|
|
4242
6225
|
onClick: () => setShowDialog(true),
|
|
@@ -4266,6 +6249,18 @@ const TaxAndCashDashboard = class {
|
|
|
4266
6249
|
* @uiName Not verified tax form badge label
|
|
4267
6250
|
*/
|
|
4268
6251
|
this.statusTextNotVerified = "Not Verified";
|
|
6252
|
+
/**
|
|
6253
|
+
* Displayed when the participant has not submitted their required tax form.
|
|
6254
|
+
*
|
|
6255
|
+
* @uiName Required tax form badge label
|
|
6256
|
+
*/
|
|
6257
|
+
this.statusTextRequired = "Required";
|
|
6258
|
+
/**
|
|
6259
|
+
* Additional text displayed next to the tax form's status badge
|
|
6260
|
+
*
|
|
6261
|
+
* @uiName Required tax form description
|
|
6262
|
+
*/
|
|
6263
|
+
this.requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
|
|
4269
6264
|
/**
|
|
4270
6265
|
* Additional text displayed next to the tax form's status badge
|
|
4271
6266
|
*
|
|
@@ -4290,7 +6285,7 @@ const TaxAndCashDashboard = class {
|
|
|
4290
6285
|
* @uiName Inactive W-9 error message title
|
|
4291
6286
|
* @uiWidget textArea
|
|
4292
6287
|
*/
|
|
4293
|
-
this.taxAlertHeaderNotActiveW9 = "Your
|
|
6288
|
+
this.taxAlertHeaderNotActiveW9 = "Your W-9 tax form has personal information that doesn’t match your profile";
|
|
4294
6289
|
/**
|
|
4295
6290
|
* Part of the alert displayed at the top of the page.
|
|
4296
6291
|
*
|
|
@@ -4332,13 +6327,6 @@ const TaxAndCashDashboard = class {
|
|
|
4332
6327
|
* @uiName Tax documents section description
|
|
4333
6328
|
*/
|
|
4334
6329
|
this.taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4335
|
-
/**
|
|
4336
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4337
|
-
*
|
|
4338
|
-
* @uiName Tax form not required text
|
|
4339
|
-
* @uiWidget textArea
|
|
4340
|
-
*/
|
|
4341
|
-
this.noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
|
|
4342
6330
|
/**
|
|
4343
6331
|
*
|
|
4344
6332
|
* @uiName Indirect tax section header
|
|
@@ -4468,6 +6456,30 @@ const TaxAndCashDashboard = class {
|
|
|
4468
6456
|
* @uiName Verification required alert button text
|
|
4469
6457
|
*/
|
|
4470
6458
|
this.verificationRequiredButtonText = "Start Verification";
|
|
6459
|
+
/**
|
|
6460
|
+
* @uiName W-9 payment threshold alert header
|
|
6461
|
+
*/
|
|
6462
|
+
this.w9RequiredHeader = "Your next payout is on hold";
|
|
6463
|
+
/**
|
|
6464
|
+
* @uiName W-9 payment threshold alert description
|
|
6465
|
+
*/
|
|
6466
|
+
this.w9RequiredDescription = "You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
|
|
6467
|
+
/**
|
|
6468
|
+
* @uiName Account review alert header
|
|
6469
|
+
*/
|
|
6470
|
+
this.accountReviewHeader = "Your account is under review";
|
|
6471
|
+
/**
|
|
6472
|
+
* @uiName Account review alert description
|
|
6473
|
+
*/
|
|
6474
|
+
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}.";
|
|
6475
|
+
/**
|
|
6476
|
+
* @uiName Terms and Conditions text
|
|
6477
|
+
*/
|
|
6478
|
+
this.termsAndConditions = "Terms and Conditions";
|
|
6479
|
+
/**
|
|
6480
|
+
* @uiName W-9 payment threshold alert button text
|
|
6481
|
+
*/
|
|
6482
|
+
this.w9RequiredButtonText = "Submit W-9";
|
|
4471
6483
|
/**
|
|
4472
6484
|
* Part of the alert displayed at the top of the page.
|
|
4473
6485
|
* @uiName Form submission error message title
|
|
@@ -4535,11 +6547,6 @@ const TaxAndCashDashboard = class {
|
|
|
4535
6547
|
this.invoiceEmptyStateHeader = "View your invoice details";
|
|
4536
6548
|
/** @uiName Empty invoice table description */
|
|
4537
6549
|
this.invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
4538
|
-
/**
|
|
4539
|
-
* Displayed at the top of the page on all set up steps and on the dashboard.
|
|
4540
|
-
* @uiName Page description
|
|
4541
|
-
*/
|
|
4542
|
-
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
4543
6550
|
/**
|
|
4544
6551
|
* @uiName Replace tax form modal header
|
|
4545
6552
|
*/
|
|
@@ -4556,12 +6563,7 @@ const TaxAndCashDashboard = class {
|
|
|
4556
6563
|
* @uiName Cancel button label
|
|
4557
6564
|
*/
|
|
4558
6565
|
this.cancelButton = "Cancel";
|
|
4559
|
-
|
|
4560
|
-
* @undocumented
|
|
4561
|
-
* @componentState { "title": "Payouts on hold", "props": { "payoutStatus": "HOLD" }, "uiGroup": "Dashboard Properties" }
|
|
4562
|
-
*/
|
|
4563
|
-
this.stateController = "{}";
|
|
4564
|
-
domContextHooks_module.h$1(this);
|
|
6566
|
+
stencilHooks_module.h$1(this);
|
|
4565
6567
|
}
|
|
4566
6568
|
disconnectedCallback() { }
|
|
4567
6569
|
getTextProps() {
|
|
@@ -4586,31 +6588,23 @@ const TaxAndCashDashboard = class {
|
|
|
4586
6588
|
}
|
|
4587
6589
|
};
|
|
4588
6590
|
function useDemoTaxAndCashDashboard(props) {
|
|
4589
|
-
// @ts-ignore
|
|
4590
6591
|
return cjs.cjs({
|
|
4591
6592
|
states: {
|
|
4592
6593
|
dateSubmitted: "today",
|
|
4593
6594
|
documentType: "W9",
|
|
4594
|
-
documentTypeString: "
|
|
6595
|
+
documentTypeString: "W-9",
|
|
6596
|
+
status: "ACTIVE",
|
|
4595
6597
|
country: "United States",
|
|
4596
|
-
indirectTaxNumber:
|
|
6598
|
+
indirectTaxNumber: 55555555,
|
|
4597
6599
|
indirectTaxType: "Indirect Tax",
|
|
4598
|
-
noFormNeeded:
|
|
6600
|
+
noFormNeeded: true,
|
|
4599
6601
|
disabled: false,
|
|
4600
6602
|
loading: false,
|
|
4601
6603
|
showNewFormDialog: false,
|
|
4602
6604
|
hasHold: false,
|
|
4603
|
-
|
|
4604
|
-
subRegionTaxNumber: undefined,
|
|
4605
|
-
qstNumber: undefined,
|
|
4606
|
-
isBusinessEntity: false,
|
|
4607
|
-
province: undefined,
|
|
4608
|
-
notRegistered: true,
|
|
4609
|
-
loadingError: false,
|
|
6605
|
+
showVerifyIdentity: false,
|
|
4610
6606
|
payoutStatus: "DONE",
|
|
4611
6607
|
veriffLoading: false,
|
|
4612
|
-
canEditPayoutInfo: true,
|
|
4613
|
-
status: "ACTIVE",
|
|
4614
6608
|
},
|
|
4615
6609
|
callbacks: {
|
|
4616
6610
|
onClick: () => console.debug("check step"),
|
|
@@ -4620,14 +6614,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4620
6614
|
onVerifyClick: () => console.log("verify"),
|
|
4621
6615
|
},
|
|
4622
6616
|
text: props.getTextProps(),
|
|
4623
|
-
|
|
4624
|
-
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
|
|
4625
|
-
states: {
|
|
4626
|
-
badgeStatus: "nextPayout",
|
|
4627
|
-
},
|
|
4628
|
-
} })),
|
|
4629
|
-
},
|
|
4630
|
-
}, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
|
|
6617
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4631
6618
|
}
|
|
4632
6619
|
|
|
4633
6620
|
const PHONE_EXTENSIONS = {
|
|
@@ -5601,19 +7588,19 @@ const PHONE_EXTENSIONS = {
|
|
|
5601
7588
|
},
|
|
5602
7589
|
};
|
|
5603
7590
|
|
|
5604
|
-
const style$
|
|
7591
|
+
const style$7 = {
|
|
5605
7592
|
FormWrapper: {},
|
|
5606
7593
|
ErrorInput: {
|
|
5607
7594
|
"&::part(base)": {
|
|
5608
|
-
border: "
|
|
7595
|
+
border: "1px solid var(--sl-color-danger-500)",
|
|
5609
7596
|
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
5610
7597
|
},
|
|
5611
7598
|
"&::part(help-text)": {
|
|
5612
|
-
color: "var(--
|
|
7599
|
+
color: "var(--sl-color-danger-500)",
|
|
5613
7600
|
},
|
|
5614
7601
|
},
|
|
5615
7602
|
ErrorText: {
|
|
5616
|
-
color: "var(--
|
|
7603
|
+
color: "var(--sl-color-danger-500)",
|
|
5617
7604
|
marginTop: "10px",
|
|
5618
7605
|
},
|
|
5619
7606
|
TextContainer: {
|
|
@@ -5644,6 +7631,9 @@ const style$6 = {
|
|
|
5644
7631
|
justifyContent: "flex-start",
|
|
5645
7632
|
flexDirection: "column",
|
|
5646
7633
|
},
|
|
7634
|
+
DescriptionText: {
|
|
7635
|
+
color: "var(--sl-color-neutral-500)",
|
|
7636
|
+
},
|
|
5647
7637
|
BoldText: {
|
|
5648
7638
|
fontWeight: "bold",
|
|
5649
7639
|
},
|
|
@@ -5652,8 +7642,28 @@ const style$6 = {
|
|
|
5652
7642
|
borderRadius: "50%",
|
|
5653
7643
|
},
|
|
5654
7644
|
},
|
|
7645
|
+
AlertContainer: {
|
|
7646
|
+
"&::part(base)": {
|
|
7647
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
7648
|
+
borderTop: "none",
|
|
7649
|
+
padding: "0 16px",
|
|
7650
|
+
},
|
|
7651
|
+
"& sl-icon::part(base)": {
|
|
7652
|
+
color: "var(--sl-color-danger-500)",
|
|
7653
|
+
},
|
|
7654
|
+
},
|
|
7655
|
+
PartnerAlertContainer: {
|
|
7656
|
+
"&::part(base)": {
|
|
7657
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
7658
|
+
borderTop: "none",
|
|
7659
|
+
padding: "0 16px",
|
|
7660
|
+
},
|
|
7661
|
+
"& sl-icon::part(base)": {
|
|
7662
|
+
color: "var(--sl-color-blue-500)",
|
|
7663
|
+
},
|
|
7664
|
+
},
|
|
5655
7665
|
PageDescriptionText: {
|
|
5656
|
-
color: "var(--
|
|
7666
|
+
color: "var(--sl-color-neutral-500)",
|
|
5657
7667
|
fontSize: "var(--sl-font-size-medium)",
|
|
5658
7668
|
},
|
|
5659
7669
|
PhoneInputsSection: {
|
|
@@ -5676,8 +7686,8 @@ const style$6 = {
|
|
|
5676
7686
|
},
|
|
5677
7687
|
},
|
|
5678
7688
|
};
|
|
5679
|
-
const sheet$
|
|
5680
|
-
const styleString$
|
|
7689
|
+
const sheet$6 = JSS.createStyleSheet(style$7);
|
|
7690
|
+
const styleString$6 = sheet$6.toString();
|
|
5681
7691
|
const vanillaStyle$4 = `
|
|
5682
7692
|
:host{
|
|
5683
7693
|
display: block;
|
|
@@ -5687,15 +7697,11 @@ const vanillaStyle$4 = `
|
|
|
5687
7697
|
padding: 0;
|
|
5688
7698
|
box-sizing: border-box;
|
|
5689
7699
|
}
|
|
5690
|
-
a {
|
|
5691
|
-
color: var(--sqm-text);
|
|
5692
|
-
color: inherit !important;
|
|
5693
|
-
text-decoration: underline;
|
|
5694
|
-
}
|
|
5695
7700
|
|
|
5696
7701
|
p {
|
|
5697
7702
|
line-height: 18px;
|
|
5698
|
-
|
|
7703
|
+
color: var(--sl-color-gray-800);
|
|
7704
|
+
font-size: var(--sl-font-size-small);
|
|
5699
7705
|
}
|
|
5700
7706
|
|
|
5701
7707
|
sl-radio-group::part(base) {
|
|
@@ -5706,149 +7712,11 @@ const vanillaStyle$4 = `
|
|
|
5706
7712
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
5707
7713
|
min-width: 250px;
|
|
5708
7714
|
}
|
|
5709
|
-
|
|
5710
|
-
sl-button[type="primary"]::part(base){
|
|
5711
|
-
background-color: var(--sqm-primary-button-background);
|
|
5712
|
-
color: var(--sqm-primary-button-color);
|
|
5713
|
-
border-color: var(--sqm-primary-button-color-border);
|
|
5714
|
-
border-radius: var(--sqm-primary-button-radius);
|
|
5715
|
-
}
|
|
5716
|
-
|
|
5717
|
-
sl-button[type="primary"]::part(base):hover{
|
|
5718
|
-
background-color: var(--sqm-primary-button-background-hover);
|
|
5719
|
-
}
|
|
5720
|
-
|
|
5721
|
-
sl-button[type="primary"]::part(base):focus{
|
|
5722
|
-
box-shadow: none;
|
|
5723
|
-
}
|
|
5724
|
-
|
|
5725
|
-
sl-button[type="secondary"]::part(base){
|
|
5726
|
-
background-color: var(--sqm-secondary-button-background);
|
|
5727
|
-
color: var(--sqm-secondary-button-color);
|
|
5728
|
-
border-color: var(--sqm-secondary-button-color-border);
|
|
5729
|
-
border-radius: var(--sqm-secondary-button-radius);
|
|
5730
|
-
}
|
|
5731
|
-
|
|
5732
|
-
sl-button[type="secondary"]::part(base):hover{
|
|
5733
|
-
background-color: var(--sqm-secondary-button-background-hover);
|
|
5734
|
-
}
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
*::part(primarybutton-base){
|
|
5739
|
-
background-color: var(--sqm-primary-button-background);
|
|
5740
|
-
color: var(--sqm-primary-button-color);
|
|
5741
|
-
border-color: var(--sqm-primary-button-color-border);
|
|
5742
|
-
border-radius: var(--sqm-primary-button-radius);
|
|
5743
|
-
}
|
|
5744
|
-
|
|
5745
|
-
*::part(primarybutton-base):hover{
|
|
5746
|
-
background-color: var(--sqm-primary-button-background-hover);
|
|
5747
|
-
}
|
|
5748
|
-
|
|
5749
|
-
*::part(primarybutton-base):focus{
|
|
5750
|
-
box-shadow: none;
|
|
5751
|
-
}
|
|
5752
|
-
|
|
5753
|
-
*::part(secondarybutton-base){
|
|
5754
|
-
background-color: var(--sqm-secondary-button-background);
|
|
5755
|
-
color: var(--sqm-secondary-button-color);
|
|
5756
|
-
border-color: var(--sqm-secondary-button-color-border);
|
|
5757
|
-
border-radius: var(--sqm-secondary-button-radius);
|
|
5758
|
-
}
|
|
5759
|
-
|
|
5760
|
-
*::part(secondarybutton-base):hover{
|
|
5761
|
-
background-color: var(--sqm-secondary-button-background-hover);
|
|
5762
|
-
}
|
|
5763
|
-
|
|
5764
|
-
*::part(secondarybutton-base){
|
|
5765
|
-
background-color: var(--sqm-secondary-button-background);
|
|
5766
|
-
color: var(--sqm-secondary-button-color);
|
|
5767
|
-
border-color: var(--sqm-secondary-button-color-border);
|
|
5768
|
-
border-radius: var(--sqm-secondary-button-radius);
|
|
5769
|
-
width: max-content;
|
|
5770
|
-
display: flex;
|
|
5771
|
-
margin: auto;
|
|
5772
|
-
}
|
|
5773
|
-
|
|
5774
|
-
*::part(secondarybutton-base):hover{
|
|
5775
|
-
background: var(--sqm-secondary-button-background-hover);
|
|
5776
|
-
}
|
|
5777
|
-
|
|
5778
|
-
sl-input::part(label),
|
|
5779
|
-
sl-select::part(label),
|
|
5780
|
-
sl-textarea::part(label){
|
|
5781
|
-
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
5782
|
-
font-weight: var(--sl-font-weight-semibold);
|
|
5783
|
-
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
5784
|
-
}
|
|
5785
|
-
|
|
5786
|
-
/* Corrected: Target sl-input, sl-select, sl-textarea base elements */
|
|
5787
|
-
sl-input::part(base),
|
|
5788
|
-
sl-dropdown::part(base),
|
|
5789
|
-
sl-textarea::part(base){
|
|
5790
|
-
background-color: var(--sqm-input-background, #fff);
|
|
5791
|
-
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
5792
|
-
color: var(--sqm-input-color, white);
|
|
5793
|
-
border-width: var(--sqm-border-thickness, 1px);
|
|
5794
|
-
border-style: solid;
|
|
5795
|
-
border-color: var(--sqm-input-border-color, #ccc);
|
|
5796
|
-
}
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
sl-select::part(menu) {
|
|
5800
|
-
background: var(--sqm-input-background, inherit);
|
|
5801
|
-
color: var(--sqm-input-color, inherit);
|
|
5802
|
-
border:none;
|
|
5803
|
-
}
|
|
5804
|
-
|
|
5805
|
-
sl-select::part(panel) {
|
|
5806
|
-
border-radius: var(--sqm-border-radius-normal);
|
|
5807
|
-
}
|
|
5808
|
-
|
|
5809
|
-
sl-select::part(help-text) {
|
|
5810
|
-
color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
|
|
5811
|
-
}
|
|
5812
|
-
|
|
5813
|
-
sl-input::part(base):focus,
|
|
5814
|
-
sl-select::part(base):focus, /* Corrected part name for sl-select */
|
|
5815
|
-
sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
|
|
5816
|
-
border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
|
|
5817
|
-
}
|
|
5818
|
-
|
|
5819
|
-
sl-input[disabled]::part(label),
|
|
5820
|
-
sl-select[disabled]::part(label),
|
|
5821
|
-
sl-textarea[disabled]::part(label){
|
|
5822
|
-
color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
|
|
5823
|
-
}
|
|
5824
|
-
|
|
5825
|
-
sl-input[disabled]::part(base),
|
|
5826
|
-
sl-select[disabled]::part(base),
|
|
5827
|
-
sl-textarea[disabled]::part(base){
|
|
5828
|
-
background: var(--sqm-input-disabled-background, #f5f5f5);
|
|
5829
|
-
border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
|
|
5830
|
-
}
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
sl-input::part(input):-webkit-autofill {
|
|
5834
|
-
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5835
|
-
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5836
|
-
}
|
|
5837
|
-
|
|
5838
|
-
sl-input::part(input):-webkit-autofill:hover {
|
|
5839
|
-
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5840
|
-
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5841
|
-
}
|
|
5842
|
-
|
|
5843
|
-
sl-input::part(input):-webkit-autofill:focus {
|
|
5844
|
-
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5845
|
-
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5846
|
-
}
|
|
5847
|
-
`;
|
|
7715
|
+
`;
|
|
5848
7716
|
const UserInfoFormView = (props) => {
|
|
5849
7717
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
5850
|
-
const { states, states: { formState }, callbacks, text, refs, data
|
|
5851
|
-
const { classes } = sheet$
|
|
7718
|
+
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7719
|
+
const { classes } = sheet$6;
|
|
5852
7720
|
const bankingCollectionText = global.intl.formatMessage({
|
|
5853
7721
|
id: "bankingCollectionText",
|
|
5854
7722
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -5856,7 +7724,7 @@ const UserInfoFormView = (props) => {
|
|
|
5856
7724
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
5857
7725
|
});
|
|
5858
7726
|
let regionLabel = undefined;
|
|
5859
|
-
switch (data
|
|
7727
|
+
switch (data.regionLabelEnum) {
|
|
5860
7728
|
case "STATE":
|
|
5861
7729
|
regionLabel = text.state;
|
|
5862
7730
|
break;
|
|
@@ -5871,58 +7739,65 @@ const UserInfoFormView = (props) => {
|
|
|
5871
7739
|
}
|
|
5872
7740
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
5873
7741
|
index.h("style", { type: "text/css" },
|
|
5874
|
-
styleString$
|
|
7742
|
+
styleString$6,
|
|
5875
7743
|
vanillaStyle$4),
|
|
5876
7744
|
states.loadingError && (index.h("div", null,
|
|
5877
|
-
index.h("
|
|
5878
|
-
index.h("
|
|
5879
|
-
index.h("
|
|
7745
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
7746
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7747
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
7748
|
+
index.h("br", null),
|
|
7749
|
+
global.intl.formatMessage({
|
|
5880
7750
|
id: "loadingErrorAlertDescription",
|
|
5881
7751
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
5882
7752
|
}, {
|
|
5883
7753
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5884
|
-
}))
|
|
5885
|
-
|
|
7754
|
+
})),
|
|
7755
|
+
index.h("br", null))),
|
|
7756
|
+
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
5886
7757
|
index.h("div", { class: classes.TextContainer },
|
|
5887
7758
|
index.h("div", null,
|
|
5888
7759
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
5889
7760
|
id: "formStep",
|
|
5890
7761
|
defaultMessage: text.formStep,
|
|
5891
|
-
}, { step: states.step, count:
|
|
7762
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
5892
7763
|
index.h("h3", null, text.personalInformation),
|
|
5893
7764
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
5894
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
5895
|
-
index.h("
|
|
5896
|
-
index.h("
|
|
7765
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
7766
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7767
|
+
index.h("strong", null, text.error.generalTitle),
|
|
7768
|
+
index.h("br", null),
|
|
7769
|
+
global.intl.formatMessage({
|
|
5897
7770
|
id: "generalDescription",
|
|
5898
7771
|
defaultMessage: text.error.generalDescription,
|
|
5899
7772
|
}, {
|
|
5900
7773
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5901
|
-
})))
|
|
5902
|
-
(states.isPartner || states.isUser) && (index.h("
|
|
5903
|
-
index.h("
|
|
5904
|
-
index.h("
|
|
7774
|
+
}))),
|
|
7775
|
+
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
7776
|
+
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
7777
|
+
index.h("strong", null, text.isPartnerAlertHeader),
|
|
7778
|
+
index.h("br", null),
|
|
7779
|
+
global.intl.formatMessage({
|
|
5905
7780
|
id: "isPartnerAlertDescription",
|
|
5906
7781
|
defaultMessage: text.isPartnerAlertDescription,
|
|
5907
7782
|
}, {
|
|
5908
7783
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5909
|
-
})))
|
|
7784
|
+
}))),
|
|
5910
7785
|
index.h("div", null,
|
|
5911
7786
|
index.h("div", { class: classes.InputContainer },
|
|
5912
|
-
index.h("sl-input", Object.assign({
|
|
7787
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
5913
7788
|
class: classes.ErrorInput,
|
|
5914
|
-
helpText:
|
|
7789
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
5915
7790
|
}
|
|
5916
7791
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
5917
7792
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
5918
7793
|
class: classes.ErrorInput,
|
|
5919
|
-
helpText:
|
|
7794
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
5920
7795
|
}
|
|
5921
7796
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
5922
7797
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
5923
7798
|
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
5924
7799
|
class: classes.ErrorInput,
|
|
5925
|
-
helpText:
|
|
7800
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
5926
7801
|
}
|
|
5927
7802
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
5928
7803
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
@@ -5930,8 +7805,8 @@ const UserInfoFormView = (props) => {
|
|
|
5930
7805
|
e.stopPropagation();
|
|
5931
7806
|
}, "onSl-input": (e) => {
|
|
5932
7807
|
callbacks.setCountrySearch(e.target.value);
|
|
5933
|
-
} }), (_e = data
|
|
5934
|
-
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data
|
|
7808
|
+
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
7809
|
+
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
5935
7810
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
5936
7811
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
5937
7812
|
index.h("p", null, text.phoneNumber),
|
|
@@ -5945,13 +7820,13 @@ const UserInfoFormView = (props) => {
|
|
|
5945
7820
|
e.stopPropagation();
|
|
5946
7821
|
}, "onSl-input": (e) => {
|
|
5947
7822
|
callbacks.setPhoneCountrySearch(e.target.value);
|
|
5948
|
-
} }), (_h = data
|
|
7823
|
+
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
5949
7824
|
_h.map((c) => {
|
|
5950
7825
|
var _a, _b;
|
|
5951
7826
|
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
5952
7827
|
index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
5953
7828
|
_b.dial_code));
|
|
5954
|
-
}), (_j = data
|
|
7829
|
+
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
5955
7830
|
_j.map((c) => {
|
|
5956
7831
|
var _a, _b;
|
|
5957
7832
|
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
@@ -5960,42 +7835,42 @@ const UserInfoFormView = (props) => {
|
|
|
5960
7835
|
})),
|
|
5961
7836
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
5962
7837
|
// Naive phone number validation
|
|
5963
|
-
|
|
5964
|
-
|
|
7838
|
+
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
7839
|
+
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
5965
7840
|
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
5966
7841
|
class: classes.ErrorInput,
|
|
5967
|
-
helpText:
|
|
7842
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
5968
7843
|
}
|
|
5969
7844
|
: {}), { required: true })))),
|
|
5970
7845
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
5971
7846
|
// Checks for non-ASCII characters
|
|
5972
|
-
!
|
|
5973
|
-
|
|
7847
|
+
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7848
|
+
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
5974
7849
|
class: classes.ErrorInput,
|
|
5975
|
-
helpText:
|
|
7850
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
5976
7851
|
}
|
|
5977
7852
|
: {}), { required: true })),
|
|
5978
7853
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
5979
7854
|
// Checks for non-ASCII characters
|
|
5980
|
-
!
|
|
5981
|
-
|
|
7855
|
+
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7856
|
+
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
5982
7857
|
class: classes.ErrorInput,
|
|
5983
|
-
helpText:
|
|
7858
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
5984
7859
|
}
|
|
5985
7860
|
: {}), { required: true })),
|
|
5986
7861
|
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
5987
7862
|
class: classes.ErrorInput,
|
|
5988
|
-
helpText:
|
|
7863
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
5989
7864
|
}
|
|
5990
|
-
: {}), { required: true }), (_p = data
|
|
7865
|
+
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
5991
7866
|
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
5992
7867
|
class: classes.ErrorInput,
|
|
5993
|
-
helpText:
|
|
7868
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
5994
7869
|
}
|
|
5995
7870
|
: {}), { required: true })),
|
|
5996
7871
|
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
5997
7872
|
class: classes.ErrorInput,
|
|
5998
|
-
helpText:
|
|
7873
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
5999
7874
|
}
|
|
6000
7875
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
6001
7876
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
@@ -6003,11 +7878,11 @@ const UserInfoFormView = (props) => {
|
|
|
6003
7878
|
e.stopPropagation();
|
|
6004
7879
|
}, "onSl-input": (e) => {
|
|
6005
7880
|
callbacks.setCurrencySearch(e.target.value);
|
|
6006
|
-
} }), (_s = data
|
|
7881
|
+
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6007
7882
|
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
6008
7883
|
c.currencyCode,
|
|
6009
7884
|
" - ",
|
|
6010
|
-
c.displayName))), (_t = data
|
|
7885
|
+
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6011
7886
|
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6012
7887
|
c.currencyCode,
|
|
6013
7888
|
" - ",
|
|
@@ -6016,36 +7891,40 @@ const UserInfoFormView = (props) => {
|
|
|
6016
7891
|
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6017
7892
|
e.target.value = e.target.checked;
|
|
6018
7893
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6019
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText },
|
|
7894
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6020
7895
|
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6021
7896
|
};
|
|
6022
7897
|
|
|
6023
7898
|
function useUserInfoForm(props) {
|
|
6024
7899
|
var _a, _b, _c, _d;
|
|
6025
|
-
const currencyRef =
|
|
6026
|
-
const phoneCountryRef =
|
|
6027
|
-
const formRef =
|
|
6028
|
-
const context = index_module.Fn(
|
|
6029
|
-
const countries = index_module.Fn(
|
|
6030
|
-
const [step, setStep] = index_module.Pn(
|
|
6031
|
-
const [userFormContext, setUserFormContext] = index_module.Pn(
|
|
6032
|
-
const { data
|
|
6033
|
-
const _currencies = index_module.Fn(
|
|
6034
|
-
const currencies =
|
|
6035
|
-
const [countrySearch, setCountrySearch] =
|
|
6036
|
-
const [phoneCountrySearch, setPhoneCountrySearch] =
|
|
6037
|
-
const [filteredCountries, setFilteredCountries] =
|
|
6038
|
-
const [filteredPhoneCountries, setFilteredPhoneCountries] =
|
|
6039
|
-
const [currencySearch, setCurrencySearch] =
|
|
6040
|
-
const [filteredCurrencies, setFilteredCurrencies] =
|
|
6041
|
-
const [formErrors, setErrors] =
|
|
6042
|
-
|
|
7900
|
+
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
7901
|
+
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
7902
|
+
const formRef = stencilHooks_module.useRef(null);
|
|
7903
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7904
|
+
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
7905
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
7906
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7907
|
+
const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
7908
|
+
const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
|
|
7909
|
+
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
7910
|
+
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
7911
|
+
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
7912
|
+
const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
|
|
7913
|
+
const [filteredPhoneCountries, setFilteredPhoneCountries] = stencilHooks_module.useState(countries || []);
|
|
7914
|
+
const [currencySearch, setCurrencySearch] = stencilHooks_module.useState("");
|
|
7915
|
+
const [filteredCurrencies, setFilteredCurrencies] = stencilHooks_module.useState(currencies || []);
|
|
7916
|
+
const [formErrors, setErrors] = stencilHooks_module.useState({});
|
|
7917
|
+
stencilHooks_module.useEffect(() => {
|
|
7918
|
+
// reset redirect hash
|
|
7919
|
+
window.location.hash = "";
|
|
7920
|
+
}, []);
|
|
7921
|
+
stencilHooks_module.useEffect(() => {
|
|
6043
7922
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6044
|
-
const user = data
|
|
7923
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6045
7924
|
if (!user || step !== "/1")
|
|
6046
7925
|
return;
|
|
6047
7926
|
// If form already filled out, skip initialising it
|
|
6048
|
-
if (
|
|
7927
|
+
if (sqmInvoiceTableView.objectIsFull(userFormContext))
|
|
6049
7928
|
return;
|
|
6050
7929
|
// Prefer MI email if it was verified before this
|
|
6051
7930
|
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
@@ -6082,7 +7961,7 @@ function useUserInfoForm(props) {
|
|
|
6082
7961
|
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
6083
7962
|
});
|
|
6084
7963
|
}
|
|
6085
|
-
}, [data
|
|
7964
|
+
}, [data, step, userFormContext]);
|
|
6086
7965
|
const onFormChange = (field, e) => {
|
|
6087
7966
|
var _a, _b;
|
|
6088
7967
|
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
@@ -6097,7 +7976,7 @@ function useUserInfoForm(props) {
|
|
|
6097
7976
|
currencyRef.current.value = "";
|
|
6098
7977
|
}
|
|
6099
7978
|
};
|
|
6100
|
-
|
|
7979
|
+
stencilHooks_module.useEffect(() => {
|
|
6101
7980
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
6102
7981
|
return;
|
|
6103
7982
|
if (countrySearch.trim() === "") {
|
|
@@ -6107,7 +7986,7 @@ function useUserInfoForm(props) {
|
|
|
6107
7986
|
setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
|
|
6108
7987
|
}
|
|
6109
7988
|
}, [countrySearch, countries]);
|
|
6110
|
-
|
|
7989
|
+
stencilHooks_module.useEffect(() => {
|
|
6111
7990
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
6112
7991
|
return;
|
|
6113
7992
|
if (phoneCountrySearch.trim() === "") {
|
|
@@ -6117,7 +7996,7 @@ function useUserInfoForm(props) {
|
|
|
6117
7996
|
setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
|
|
6118
7997
|
}
|
|
6119
7998
|
}, [phoneCountrySearch, countries]);
|
|
6120
|
-
|
|
7999
|
+
stencilHooks_module.useEffect(() => {
|
|
6121
8000
|
if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
|
|
6122
8001
|
return;
|
|
6123
8002
|
if (currencySearch.trim() === "") {
|
|
@@ -6174,7 +8053,7 @@ function useUserInfoForm(props) {
|
|
|
6174
8053
|
}
|
|
6175
8054
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
6176
8055
|
const regionObj = hasStates
|
|
6177
|
-
?
|
|
8056
|
+
? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
6178
8057
|
: {};
|
|
6179
8058
|
return {
|
|
6180
8059
|
setStep: setStep,
|
|
@@ -6207,8 +8086,8 @@ function useUserInfoForm(props) {
|
|
|
6207
8086
|
disabled: loading,
|
|
6208
8087
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6209
8088
|
loading: loading,
|
|
6210
|
-
isPartner: !!((_b = (_a = data
|
|
6211
|
-
isUser: !!((_d = (_c = data
|
|
8089
|
+
isPartner: !!((_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
|
|
8090
|
+
isUser: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
|
|
6212
8091
|
formState: {
|
|
6213
8092
|
...userFormContext,
|
|
6214
8093
|
errors: formErrors,
|
|
@@ -6371,7 +8250,7 @@ const TaxForm = class {
|
|
|
6371
8250
|
* @uiName Support link text
|
|
6372
8251
|
*/
|
|
6373
8252
|
this.supportLink = "support team";
|
|
6374
|
-
|
|
8253
|
+
stencilHooks_module.h$1(this);
|
|
6375
8254
|
}
|
|
6376
8255
|
disconnectedCallback() { }
|
|
6377
8256
|
getTextProps() {
|
|
@@ -6391,20 +8270,19 @@ const TaxForm = class {
|
|
|
6391
8270
|
}
|
|
6392
8271
|
render() {
|
|
6393
8272
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
6394
|
-
return (index.h(UserInfoFormView, { data: props.data,
|
|
8273
|
+
return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
|
|
6395
8274
|
// @ts-ignore
|
|
6396
8275
|
states: props.states, callbacks: {
|
|
6397
8276
|
...props.callbacks,
|
|
6398
8277
|
onSubmit: props.onSubmit,
|
|
6399
|
-
}, text: props.text, refs: props.refs }));
|
|
8278
|
+
}, text: props.text, refs: props.refs })));
|
|
6400
8279
|
}
|
|
6401
8280
|
};
|
|
6402
8281
|
function useDemoUserInfoForm(props) {
|
|
6403
|
-
const setStep = index_module.En(
|
|
6404
|
-
// @ts-ignore
|
|
8282
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6405
8283
|
return cjs.cjs({
|
|
6406
8284
|
setStep,
|
|
6407
|
-
onSubmit:
|
|
8285
|
+
onSubmit: () => {
|
|
6408
8286
|
setStep("/2");
|
|
6409
8287
|
},
|
|
6410
8288
|
onRadioClick: () => { },
|
|
@@ -6448,12 +8326,19 @@ function useDemoUserInfoForm(props) {
|
|
|
6448
8326
|
}
|
|
6449
8327
|
|
|
6450
8328
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
8329
|
+
exports.sqm_code_verification = WidgetCodeVerification;
|
|
6451
8330
|
exports.sqm_docusign_form = DocusignForm;
|
|
6452
8331
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
6453
8332
|
exports.sqm_invoice_table = InvoiceTable;
|
|
8333
|
+
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
6454
8334
|
exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
|
|
8335
|
+
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
6455
8336
|
exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
|
|
8337
|
+
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
6456
8338
|
exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
|
|
6457
8339
|
exports.sqm_payout_details_card = PayoutDetailsCard;
|
|
8340
|
+
exports.sqm_table_cell = TableCell;
|
|
8341
|
+
exports.sqm_table_row = TableRow;
|
|
8342
|
+
exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
6458
8343
|
exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
|
|
6459
8344
|
exports.sqm_user_info_form = TaxForm;
|