@saasquatch/mint-components 1.15.0-16 → 1.15.0-161
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/{GenericTableView-f0e9c531.js → GenericTableView-a9845e80.js} +6 -6
- package/dist/cjs/IndirectTaxDetailsView-e5f70b8b.js +660 -0
- package/dist/cjs/{ShadowViewAddon-8bab3674.js → ShadowViewAddon-7b458058.js} +1436 -1229
- package/dist/cjs/{copy-text-view-b2f47da0.js → copy-text-view-51c8ee5d.js} +23 -12
- package/dist/cjs/data-d4339c2e.js +137 -0
- package/dist/cjs/{stencil-hooks.module-3a336b0f.js → dom-context-hooks.module-7fa676ae.js} +18 -18
- package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-ace50780.js} +5 -3
- package/dist/cjs/{global-19fe8600.js → global-8bba5b3a.js} +11845 -11623
- package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
- package/dist/cjs/{index.module-ee84433d.js → index.module-4f54e412.js} +191 -191
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-2926d85f.js → luxon-949beaf2.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
- package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-df37c8a3.js} +2 -2
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-b324deab.js → re-render-d516138a.js} +4 -4
- package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +930 -2404
- package/dist/cjs/{sqm-base-registration-form-view-1b2440c3.js → sqm-base-registration-form-view-8847804c.js} +3 -3
- package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_44.cjs.entry.js} +1189 -243
- package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-5e85ac51.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
- package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
- package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
- package/dist/cjs/sqm-email-verification.cjs.entry.js +152 -28
- package/dist/cjs/sqm-empty_4.cjs.entry.js +9 -15
- 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-data-cell_5.cjs.entry.js +84 -0
- package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +10 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/sqm-navigation-sidebar-item-view-4e88f774.js +56 -0
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +31 -8
- package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-de90ef03.js} +18 -8
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +25 -9
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +28 -18
- 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-4f15143a.js → sqm-portal-container-view-07e4343f.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-9f7b86a9.js → sqm-portal-email-verification-view-5518eb0d.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
- 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-84e99287.js → sqm-portal-login-view-bb50304c.js} +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-e77710f0.js → sqm-portal-profile-view-615e6975.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-4377d849.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-reset-password-view-52fc50fe.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-verify-email-view-4f837226.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-qr-code-view-3da9ed28.js → sqm-qr-code-view-0c3b2f48.js} +9 -4
- package/dist/cjs/sqm-qr-code.cjs.entry.js +12 -13
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +133 -44
- 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 +82 -35
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +21 -67
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +13837 -12611
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +20 -10
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1254 -0
- package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +25 -13
- package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
- package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
- package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-3b34dab1.js} +13 -10
- package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-6aa864ef.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
- package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
- package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
- package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
- package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
- package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
- package/dist/cjs/utils-83d125fa.js +105 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -7
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +169 -4
- package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -8
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +14 -5
- package/dist/collection/components/sqm-brand/sqm-brand.js +12 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +7 -0
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +2 -2
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +61 -4
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +5 -5
- package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +16 -8
- package/dist/collection/components/sqm-hero/sqm-hero.js +39 -5
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +5 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -3
- 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 +2 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
- 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 +6 -3
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +3 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +5 -5
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +1 -0
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +2 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -0
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +17 -7
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -2
- 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 +8 -4
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
- 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 +1 -8
- 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 +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +5 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +102 -2
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
- 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 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +1 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +5 -3
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +5 -5
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -1
- package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +9 -2
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +6 -4
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +7 -13
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +4 -4
- 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 +55 -18
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
- package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +3 -2
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -10
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +32 -6
- 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 +48 -49
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +81 -35
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +3 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +57 -8
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +5 -3
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -2
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +22 -101
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +9 -22
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +4 -4
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +5 -5
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +13 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +6 -4
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +21 -9
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +80 -100
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +11 -1
- package/dist/collection/components/sqm-task-card/DetailsView.js +7 -1
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +23 -26
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -8
- package/dist/collection/components/sqm-task-card/useTaskCard.js +1 -1
- package/dist/collection/components/sqm-text/sqm-text.js +1 -1
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +2 -2
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
- 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 +138 -14
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -7
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +45 -8
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +30 -9
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +58 -62
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +117 -5
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +59 -61
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +82 -4
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +60 -63
- 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 +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +24 -27
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
- 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/sqm-payout-status-alert-view.js +18 -48
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +284 -30
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +135 -93
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +50 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
- 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 +17 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +182 -54
- 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 +3 -3
- package/dist/collection/components/views/copy-text-view.js +21 -10
- package/dist/collection/components/views/email-registration-view.js +3 -1
- package/dist/collection/global/global.js +27 -12
- package/dist/collection/global/mixins.js +6 -6
- package/dist/collection/global/styles.js +311 -136
- package/dist/collection/global/styles.ts +411 -136
- package/dist/collection/insertfont.js +18 -0
- package/dist/collection/stories/PortalTemplates.stories.js +22 -30
- package/dist/collection/tables/GenericTableView.js +4 -4
- package/dist/collection/utils/parseStates.js +12 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/esm/{GenericTableView-e7addb2b.js → GenericTableView-e43d310f.js} +6 -6
- package/dist/esm/IndirectTaxDetailsView-0a57b622.js +653 -0
- package/dist/esm/{ShadowViewAddon-967f1f54.js → ShadowViewAddon-b8323ee6.js} +1432 -1225
- package/dist/esm/{copy-text-view-0ac6e1d1.js → copy-text-view-83b09456.js} +23 -12
- package/dist/esm/data-dea73d4d.js +121 -0
- package/dist/esm/{stencil-hooks.module-4bc38af4.js → dom-context-hooks.module-63370afd.js} +13 -13
- package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-1f587f8b.js} +5 -3
- package/dist/esm/{global-9d6f3bbe.js → global-1099f20d.js} +11879 -11658
- package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
- package/dist/esm/{index.module-89a79f66.js → index.module-c9811a48.js} +154 -154
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-8d51c92b.js → luxon-bbf75a9d.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
- package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +2 -2
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-cc945f38.js → re-render-7e22fb0d.js} +2 -2
- package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +779 -2246
- package/dist/esm/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +3 -3
- package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_44.entry.js} +1100 -157
- package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -5
- package/dist/esm/sqm-code-verification.entry.js +348 -0
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-email-verification.entry.js +145 -21
- package/dist/esm/sqm-empty_4.entry.js +6 -12
- 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-data-cell_5.entry.js +76 -0
- package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar-item-view-5a452423.js +54 -0
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +30 -7
- package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-0a2ec560.js} +18 -8
- package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
- package/dist/esm/sqm-pagination_3.entry.js +22 -12
- 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-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-14f1c22c.js → sqm-portal-email-verification-view-7d86299c.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
- 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-37c85d04.js → sqm-portal-login-view-7670cd86.js} +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-3ed13e4d.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-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
- package/dist/esm/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/{sqm-qr-code-view-10b8b4cb.js → sqm-qr-code-view-97124a66.js} +8 -3
- package/dist/esm/sqm-qr-code.entry.js +6 -7
- package/dist/esm/sqm-referral-table_11.entry.js +122 -33
- 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 +70 -23
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-scroll.entry.js +20 -66
- package/dist/esm/sqm-stencilbook.entry.js +11443 -10217
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +17 -7
- package/dist/esm/sqm-tax-and-cash.entry.js +1250 -0
- package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
- package/dist/esm/sqm-text-span.entry.js +6 -6
- package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
- package/dist/esm/sqm-widget-verification.entry.js +22 -10
- package/dist/esm/{useChildElements-7945ae56.js → useChildElements-3d872cef.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-dda1f52b.js} +3 -3
- package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-93462be3.js} +10 -7
- package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-e95df3c3.js} +3 -3
- package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-1eb3cd72.js} +3 -3
- package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-c2e809cf.js} +2 -2
- package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-909ccb28.js} +5 -5
- package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-24d594ea.js} +2 -2
- package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-55e0e98f.js} +2 -2
- package/dist/esm/{utilities-5b0ca040.js → utilities-72c07b09.js} +2 -2
- package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
- package/dist/esm/utils-6122971b.js +97 -0
- package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
- package/dist/esm-es5/IndirectTaxDetailsView-0a57b622.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-b8323ee6.js +1 -0
- package/dist/esm-es5/copy-text-view-83b09456.js +1 -0
- package/dist/esm-es5/data-dea73d4d.js +1 -0
- package/dist/esm-es5/dom-context-hooks.module-63370afd.js +53 -0
- package/dist/esm-es5/email-registration-view-1f587f8b.js +1 -0
- package/dist/esm-es5/{global-9d6f3bbe.js → global-1099f20d.js} +5 -5
- package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
- package/dist/esm-es5/index.module-c9811a48.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-bbf75a9d.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mixins-f750863a.js +1 -0
- package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +1 -1
- package/dist/esm-es5/parseStates-ed75e224.js +1 -0
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/re-render-7e22fb0d.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
- package/dist/esm-es5/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_44.entry.js +1 -0
- package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- 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-data-cell_5.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-5a452423.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.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-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-14f1c22c.js → sqm-portal-email-verification-view-7d86299c.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.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-7670cd86.js +1 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-3ed13e4d.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-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code-view-97124a66.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-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-tax-and-cash.entry.js +1 -0
- package/dist/esm-es5/sqm-text-span-view-4c17b8c9.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/useChildElements-3d872cef.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-dda1f52b.js +1 -0
- package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-93462be3.js} +2 -2
- package/dist/esm-es5/usePortalLogin-e95df3c3.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +1 -0
- package/dist/esm-es5/useReferralCodes-c2e809cf.js +1 -0
- package/dist/esm-es5/useReferralTable-909ccb28.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-24d594ea.js +1 -0
- package/dist/esm-es5/useVerificationEmail-55e0e98f.js +1 -0
- package/dist/esm-es5/utilities-72c07b09.js +1 -0
- package/dist/esm-es5/utils-03188de2.js +1 -0
- package/dist/esm-es5/utils-6122971b.js +1 -0
- package/dist/mint-components/global/styles.ts +411 -136
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
- package/dist/mint-components/p-0087ad39.system.js +1 -0
- package/dist/mint-components/{p-28b011a0.js → p-00bc7211.js} +1 -1
- package/dist/mint-components/p-0723f759.system.entry.js +1 -0
- package/dist/mint-components/{p-e145e4f8.js → p-07dc6d68.js} +1 -1
- package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
- package/dist/mint-components/p-0935f9b7.system.js +1 -0
- package/dist/mint-components/p-0e532b53.entry.js +1 -0
- package/dist/mint-components/p-0ec54f97.js +1 -0
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/p-125a894f.js +1 -0
- package/dist/mint-components/p-1363c4ab.system.js +1 -0
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/p-14128c84.system.entry.js +1 -0
- package/dist/mint-components/{p-a81b507f.entry.js → p-155f7d25.entry.js} +2 -2
- package/dist/mint-components/p-15bfd7e2.system.js +1 -0
- package/dist/mint-components/p-171310d9.system.js +1 -0
- package/dist/mint-components/{p-dbc0e4f8.system.js → p-17a0f310.system.js} +1 -1
- package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
- package/dist/mint-components/p-1d4ba4ce.system.entry.js +1 -0
- package/dist/mint-components/p-1de5d35d.entry.js +33 -0
- package/dist/mint-components/p-204861a6.js +1 -0
- package/dist/mint-components/{p-e8ffcc68.entry.js → p-20916402.entry.js} +2 -2
- package/dist/mint-components/p-2128d9c2.system.entry.js +1 -0
- package/dist/mint-components/{p-b385c9f0.system.entry.js → p-22a9114f.system.entry.js} +1 -1
- package/dist/mint-components/p-2403c6e1.system.js +1 -0
- package/dist/mint-components/p-240bec23.js +1 -0
- package/dist/mint-components/{p-164a9103.system.entry.js → p-26a7051d.system.entry.js} +1 -1
- package/dist/mint-components/p-26b1971c.entry.js +1 -0
- package/dist/mint-components/{p-0559d880.entry.js → p-27a7f6a6.entry.js} +1 -1
- package/dist/mint-components/p-29398c98.entry.js +1 -0
- package/dist/mint-components/{p-480e08e9.js → p-293e3b25.js} +2 -2
- package/dist/mint-components/p-29ba2eaa.entry.js +1 -0
- package/dist/mint-components/p-3007e9dc.entry.js +13 -0
- package/dist/mint-components/p-330a015d.js +448 -0
- package/dist/mint-components/{p-36ffebd8.system.entry.js → p-355079f4.system.entry.js} +1 -1
- package/dist/mint-components/{p-44891949.entry.js → p-386ec00c.entry.js} +1 -1
- package/dist/mint-components/{p-20245645.js → p-3eba9036.js} +1 -1
- package/dist/mint-components/p-40752a0f.entry.js +1 -0
- package/dist/mint-components/p-40c01a5a.system.js +1 -0
- package/dist/mint-components/{p-301ddcaa.system.entry.js → p-40c33b6a.system.entry.js} +1 -1
- package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
- package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
- package/dist/mint-components/{p-345fd28e.system.entry.js → p-43d9c1c5.system.entry.js} +1 -1
- package/dist/mint-components/p-45c3ff6d.js +1 -0
- package/dist/mint-components/{p-726a9924.js → p-460155de.js} +1 -1
- package/dist/mint-components/{p-1b7e6ee9.entry.js → p-47c83656.entry.js} +1 -1
- package/dist/mint-components/{p-c0f19490.js → p-49400aab.js} +2 -2
- package/dist/mint-components/p-49b20dae.js +1 -0
- package/dist/mint-components/p-4a221b56.entry.js +258 -0
- package/dist/mint-components/p-4c811d12.entry.js +13 -0
- package/dist/mint-components/p-4f5329a2.system.js +53 -0
- package/dist/mint-components/{p-ac9f4085.system.entry.js → p-4f5a3dad.system.entry.js} +1 -1
- package/dist/mint-components/{p-4027c743.system.entry.js → p-511c87ce.system.entry.js} +1 -1
- package/dist/mint-components/p-513f5d80.js +1 -0
- package/dist/mint-components/{p-13ed8586.system.js → p-537a3894.system.js} +1 -1
- package/dist/mint-components/p-53edaa57.system.entry.js +1 -0
- package/dist/mint-components/{p-4b6f2eca.system.entry.js → p-54abb144.system.entry.js} +1 -1
- package/dist/mint-components/p-552a6d1b.js +103 -0
- package/dist/mint-components/{p-9b6a0152.system.entry.js → p-58e0eccc.system.entry.js} +1 -1
- package/dist/mint-components/p-59b028db.system.js +1 -0
- package/dist/mint-components/{p-f4a72903.system.entry.js → p-5b29d833.system.entry.js} +1 -1
- package/dist/mint-components/p-5e145a54.system.entry.js +1 -0
- package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-5e8d6f3a.system.entry.js} +1 -1
- package/dist/mint-components/p-5ff2da11.js +1 -0
- package/dist/mint-components/{p-4d91a1d6.system.js → p-60465a2d.system.js} +1 -1
- package/dist/mint-components/{p-fa37513e.system.entry.js → p-60ec0961.system.entry.js} +1 -1
- package/dist/mint-components/p-621f3e30.entry.js +1 -0
- package/dist/mint-components/p-625ca62f.entry.js +1 -0
- package/dist/mint-components/p-63e29387.js +42 -0
- package/dist/mint-components/{p-71d7c2a0.system.js → p-64997b59.system.js} +1 -1
- package/dist/mint-components/{p-b5fb3826.system.js → p-6578ea31.system.js} +1 -1
- package/dist/mint-components/p-676f7f4c.system.entry.js +1 -0
- package/dist/mint-components/p-67ad2252.system.js +1 -0
- package/dist/mint-components/p-67e9414e.system.entry.js +1 -0
- package/dist/mint-components/{p-dc52c36a.js → p-68043f30.js} +1 -1
- package/dist/mint-components/p-692bacf3.js +1 -0
- package/dist/mint-components/{p-9ec99ced.js → p-6951663b.js} +1 -1
- package/dist/mint-components/p-6a8ce297.entry.js +11 -0
- package/dist/mint-components/p-6b076bae.system.entry.js +1 -0
- package/dist/mint-components/p-6b5cc1cb.entry.js +1 -0
- package/dist/mint-components/{p-8175e85f.system.js → p-6c82d60c.system.js} +1 -1
- package/dist/mint-components/p-6d5bd95a.js +1 -0
- package/dist/mint-components/p-6ecf4afe.entry.js +9 -0
- package/dist/mint-components/p-71271fbd.system.js +1 -0
- package/dist/mint-components/{p-6d9e52c7.system.js → p-7159c51c.system.js} +1 -1
- package/dist/mint-components/{p-05f29f64.js → p-71af93e3.js} +1 -1
- package/dist/mint-components/{p-cc7af682.system.js → p-71daeed9.system.js} +2 -2
- package/dist/mint-components/p-74f43a08.system.js +1 -0
- package/dist/mint-components/p-75b8fd75.entry.js +1 -0
- package/dist/mint-components/p-7602eb6a.entry.js +1 -0
- package/dist/mint-components/p-76680eed.entry.js +1 -0
- package/dist/mint-components/{p-8362cb4c.system.entry.js → p-78c754de.system.entry.js} +1 -1
- package/dist/mint-components/p-7a268047.js +1 -0
- package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
- package/dist/mint-components/{p-1a6b7d2a.entry.js → p-7eb0573c.entry.js} +1 -1
- package/dist/mint-components/{p-7c2b9fe4.system.js → p-867b2baf.system.js} +1 -1
- package/dist/mint-components/p-8700536e.entry.js +1 -0
- package/dist/mint-components/p-8a6494c7.system.js +1 -0
- package/dist/mint-components/p-8caef004.js +1 -0
- package/dist/mint-components/p-8d80453e.entry.js +93 -0
- package/dist/mint-components/{p-8413ade9.system.js → p-8e28333b.system.js} +1 -1
- package/dist/mint-components/p-916a2045.system.entry.js +1 -0
- package/dist/mint-components/p-92a54b0c.entry.js +1 -0
- package/dist/mint-components/p-93541e4c.system.entry.js +1 -0
- package/dist/mint-components/{p-c2fdd608.system.entry.js → p-9491f5fb.system.entry.js} +1 -1
- package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
- package/dist/mint-components/p-967a9040.system.js +1 -0
- package/dist/mint-components/p-976ee669.js +1 -0
- package/dist/mint-components/{p-6d2f5a1d.js → p-97dc6863.js} +2 -2
- package/dist/mint-components/{p-284e4ed5.entry.js → p-9943f53e.entry.js} +1 -1
- package/dist/mint-components/{p-e21a1cb8.system.entry.js → p-9ab8a0fd.system.entry.js} +1 -1
- package/dist/mint-components/{p-3f7b81b8.js → p-9c79ab08.js} +2 -2
- package/dist/mint-components/p-9e297104.entry.js +1 -0
- package/dist/mint-components/p-9eba8408.js +1 -0
- package/dist/mint-components/p-a1b89894.system.entry.js +1 -0
- package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
- package/dist/mint-components/p-a4e8eb33.entry.js +1 -0
- package/dist/mint-components/{p-87c21535.entry.js → p-a52df294.entry.js} +1 -1
- package/dist/mint-components/p-a597b136.entry.js +1 -0
- package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
- package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
- package/dist/mint-components/p-a85ff05e.system.entry.js +1 -0
- package/dist/mint-components/p-a8c86cd8.system.entry.js +1 -0
- package/dist/mint-components/{p-17da19a2.system.js → p-aa08457e.system.js} +1 -1
- package/dist/mint-components/{p-4e526a94.js → p-aa596749.js} +1 -1
- package/dist/mint-components/{p-3c96533f.js → p-aa8c6332.js} +1 -1
- package/dist/mint-components/p-ad4348c3.system.js +1 -0
- package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-af69ee79.system.entry.js} +1 -1
- package/dist/mint-components/{p-2ae0e06a.entry.js → p-b2fdb0b1.entry.js} +1 -1
- package/dist/mint-components/p-b56a295f.entry.js +1 -0
- package/dist/mint-components/{p-571e1427.system.js → p-b6911812.system.js} +1 -1
- package/dist/mint-components/p-bad50dc1.entry.js +1 -0
- package/dist/mint-components/{p-5488fdd9.system.js → p-bb5d153f.system.js} +1 -1
- package/dist/mint-components/p-bcac83f0.system.js +1 -0
- package/dist/mint-components/p-bd093069.system.entry.js +1 -0
- package/dist/mint-components/p-be88596c.system.js +1 -0
- package/dist/mint-components/p-bfe02bdf.system.entry.js +1 -0
- package/dist/mint-components/p-c210374a.system.js +1 -0
- package/dist/mint-components/{p-d6831af5.js → p-c30ad421.js} +1 -1
- package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
- package/dist/mint-components/p-c7c11325.js +1 -0
- package/dist/mint-components/{p-605c2904.system.entry.js → p-cc8ca3ff.system.entry.js} +1 -1
- package/dist/mint-components/{p-aaff68dc.entry.js → p-d08bcd88.entry.js} +1 -1
- package/dist/mint-components/{p-a71b9154.system.js → p-d09d3b8f.system.js} +1 -1
- package/dist/mint-components/p-d14f3149.system.js +1 -0
- package/dist/mint-components/p-d399b343.system.entry.js +1 -0
- package/dist/mint-components/p-d848957e.system.entry.js +1 -0
- package/dist/mint-components/p-db1a0db1.js +1233 -0
- package/dist/mint-components/p-dcc50d90.entry.js +1 -0
- package/dist/mint-components/{p-69ac09d4.js → p-ddf3c05e.js} +1 -1
- package/dist/mint-components/{p-642b0650.system.js → p-e0a724dd.system.js} +21 -21
- package/dist/mint-components/{p-2d52e2d7.system.js → p-e174b704.system.js} +1 -1
- package/dist/mint-components/p-e33a4e43.system.js +1 -0
- package/dist/mint-components/{p-45bb63c7.system.entry.js → p-e37c04f6.system.entry.js} +1 -1
- package/dist/mint-components/{p-ccf8c9aa.entry.js → p-ea063d99.entry.js} +1 -1
- package/dist/mint-components/p-eacc4e0f.entry.js +144 -0
- package/dist/mint-components/p-eaeddfe2.system.js +1 -0
- package/dist/mint-components/p-ecd36b10.entry.js +25 -0
- package/dist/mint-components/p-ee92a728.system.entry.js +1 -0
- package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
- package/dist/mint-components/p-f1dc581f.js +1 -0
- package/dist/mint-components/{p-527216de.system.js → p-f3392945.system.js} +1 -1
- package/dist/mint-components/p-f4202a64.system.entry.js +1 -0
- package/dist/mint-components/p-f584594d.system.entry.js +1 -0
- package/dist/mint-components/{p-4e451f75.js → p-f5fff87e.js} +1 -1
- package/dist/mint-components/p-f6baa0c9.system.js +1 -0
- package/dist/mint-components/p-f764e51f.entry.js +16 -0
- package/dist/mint-components/{p-3af1ec4c.entry.js → p-f9295990.entry.js} +1 -1
- package/dist/mint-components/p-f94edac5.system.entry.js +1 -0
- package/dist/mint-components/p-f9c7248e.js +1 -0
- package/dist/mint-components/{p-2b462e4f.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
- package/dist/mint-components/{p-59274a91.system.js → p-ff0e1564.system.js} +1 -1
- package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +45 -1
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +1 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +1 -1
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +14 -1
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
- package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +9 -2
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +1 -1
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +3 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +5 -5
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +1 -0
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -2
- 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 +2 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-portal-forgot-password/PortalForgotPassword.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +1 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +1 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +3 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +6 -5
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +2 -2
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -1
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +8 -1
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +0 -8
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +3 -3
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +3 -2
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
- package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +9 -0
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
- package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -5
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +1 -1
- package/dist/types/components/sqm-text/sqm-text.d.ts +1 -1
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -2
- package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +7 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +47 -4
- 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 +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +5 -0
- 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.d.ts +670 -112
- 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 +10 -2
- package/dist/types/insertfont.d.ts +1 -0
- package/dist/types/saasquatch.d.ts +142 -0
- package/dist/types/utils/parseStates.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -2
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/cjs/ErrorView-b2fcf954.js +0 -35
- package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
- package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
- package/dist/cjs/sqm-invoice-table-view-55066ec6.js +0 -2038
- package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
- package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
- package/dist/cjs/sqm-portal-forgot-password-view-b986086e.js +0 -45
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +0 -127
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -178
- package/dist/cjs/sqm-text-span-view-56e48a78.js +0 -62
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
- package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
- package/dist/esm/ErrorView-48e2b969.js +0 -33
- package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
- package/dist/esm/sqm-asset-card.entry.js +0 -41
- package/dist/esm/sqm-invoice-table-view-fda573e4.js +0 -2022
- package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
- package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
- package/dist/esm/sqm-portal-forgot-password-view-50444a7c.js +0 -43
- package/dist/esm/sqm-portal-forgot-password.entry.js +0 -123
- package/dist/esm/sqm-referred-registration.entry.js +0 -174
- package/dist/esm/sqm-text-span-view-c577cc60.js +0 -60
- package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
- package/dist/esm-es5/GenericTableView-e7addb2b.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-967f1f54.js +0 -1
- package/dist/esm-es5/copy-text-view-0ac6e1d1.js +0 -1
- package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
- package/dist/esm-es5/index.module-89a79f66.js +0 -1
- package/dist/esm-es5/luxon-8d51c92b.js +0 -1
- package/dist/esm-es5/mixins-83f90fa1.js +0 -1
- package/dist/esm-es5/re-render-cc945f38.js +0 -1
- package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-fda573e4.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-50444a7c.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-37c85d04.js +0 -1
- package/dist/esm-es5/sqm-qr-code-view-10b8b4cb.js +0 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-c577cc60.js +0 -1
- package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +0 -53
- package/dist/esm-es5/useChildElements-7945ae56.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +0 -1
- package/dist/esm-es5/usePortalLogin-ef647a50.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +0 -1
- package/dist/esm-es5/useReferralCodes-8f75921a.js +0 -1
- package/dist/esm-es5/useReferralTable-b3876ed6.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-d6f33135.js +0 -1
- package/dist/esm-es5/useVerificationEmail-edc318cb.js +0 -1
- package/dist/esm-es5/utilities-5b0ca040.js +0 -1
- package/dist/esm-es5/utils-334c1e34.js +0 -1
- package/dist/mint-components/p-00ed4c2e.entry.js +0 -1
- package/dist/mint-components/p-04a6e457.entry.js +0 -1
- package/dist/mint-components/p-12536a1f.system.entry.js +0 -1
- package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
- package/dist/mint-components/p-14a65f29.system.js +0 -1
- package/dist/mint-components/p-1513309d.entry.js +0 -1
- package/dist/mint-components/p-18425f38.system.entry.js +0 -1
- package/dist/mint-components/p-19ccb4ce.js +0 -1
- package/dist/mint-components/p-1ae6c418.entry.js +0 -1
- package/dist/mint-components/p-1b3ab15a.system.entry.js +0 -1
- package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
- package/dist/mint-components/p-217514ac.system.js +0 -1
- package/dist/mint-components/p-229f797b.js +0 -1
- package/dist/mint-components/p-24db5c70.js +0 -1
- package/dist/mint-components/p-266bbd02.system.js +0 -1
- package/dist/mint-components/p-275b4767.entry.js +0 -1
- package/dist/mint-components/p-2bbff88f.entry.js +0 -1
- package/dist/mint-components/p-2c7ebd5b.js +0 -1
- package/dist/mint-components/p-2dca9e1a.system.js +0 -1
- package/dist/mint-components/p-2e110002.system.js +0 -1
- package/dist/mint-components/p-320d3c31.entry.js +0 -205
- package/dist/mint-components/p-32dbde60.system.js +0 -1
- package/dist/mint-components/p-33c96e14.entry.js +0 -16
- package/dist/mint-components/p-38de17fa.system.js +0 -1
- package/dist/mint-components/p-38e5c429.system.js +0 -1
- package/dist/mint-components/p-38fc919b.entry.js +0 -1
- package/dist/mint-components/p-3a62a7e2.system.js +0 -1
- package/dist/mint-components/p-3db34d68.js +0 -1
- package/dist/mint-components/p-420554af.system.entry.js +0 -1
- package/dist/mint-components/p-42187319.system.entry.js +0 -1
- package/dist/mint-components/p-4428294b.entry.js +0 -1
- package/dist/mint-components/p-44eead35.entry.js +0 -258
- package/dist/mint-components/p-48135f99.system.js +0 -53
- package/dist/mint-components/p-49206a9c.entry.js +0 -1
- package/dist/mint-components/p-4e5af50c.js +0 -1
- package/dist/mint-components/p-52858682.system.js +0 -1
- package/dist/mint-components/p-5dbe8b0a.system.js +0 -1
- package/dist/mint-components/p-6055eb4c.system.js +0 -1
- package/dist/mint-components/p-6333265f.system.js +0 -1
- package/dist/mint-components/p-635d5ef2.system.js +0 -1
- package/dist/mint-components/p-6427e963.entry.js +0 -1
- package/dist/mint-components/p-65ba9e94.entry.js +0 -1
- package/dist/mint-components/p-6b7a595f.system.js +0 -1
- package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
- package/dist/mint-components/p-6d8f7c71.js +0 -1
- package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
- package/dist/mint-components/p-775f3ded.entry.js +0 -1
- package/dist/mint-components/p-776260e8.js +0 -1248
- package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
- package/dist/mint-components/p-7cbec088.system.entry.js +0 -1
- package/dist/mint-components/p-7e3a84bc.js +0 -1
- package/dist/mint-components/p-7e3d84a3.entry.js +0 -13
- package/dist/mint-components/p-802b9f7e.entry.js +0 -1
- package/dist/mint-components/p-8053366e.system.entry.js +0 -1
- package/dist/mint-components/p-8119a65e.system.entry.js +0 -1
- package/dist/mint-components/p-82d04fd3.entry.js +0 -25
- package/dist/mint-components/p-868daffd.system.entry.js +0 -1
- package/dist/mint-components/p-893d7ab4.js +0 -1
- package/dist/mint-components/p-8ab87bd4.entry.js +0 -144
- package/dist/mint-components/p-8abfeff8.entry.js +0 -1
- package/dist/mint-components/p-8c23d1b8.js +0 -1
- package/dist/mint-components/p-8c494bf1.js +0 -1
- package/dist/mint-components/p-8d9328dd.entry.js +0 -33
- package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
- package/dist/mint-components/p-8f6297b0.js +0 -394
- package/dist/mint-components/p-91521e9d.js +0 -1
- package/dist/mint-components/p-92816d1f.js +0 -1
- package/dist/mint-components/p-94a876b9.js +0 -1
- package/dist/mint-components/p-97d4d651.system.js +0 -1
- package/dist/mint-components/p-98698131.js +0 -1
- package/dist/mint-components/p-9abb9ab0.entry.js +0 -13
- package/dist/mint-components/p-9acb5038.js +0 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
- package/dist/mint-components/p-ae07ce99.system.entry.js +0 -1
- package/dist/mint-components/p-afbb3f73.entry.js +0 -1
- package/dist/mint-components/p-b12e132b.system.entry.js +0 -1
- package/dist/mint-components/p-b22a7b2d.entry.js +0 -9
- package/dist/mint-components/p-b6de39a2.entry.js +0 -1
- package/dist/mint-components/p-b7d1469d.system.entry.js +0 -1
- package/dist/mint-components/p-bd2a2546.system.js +0 -1
- package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
- package/dist/mint-components/p-ccb5699b.js +0 -1
- package/dist/mint-components/p-cd1d497f.system.js +0 -1
- package/dist/mint-components/p-cd651f81.js +0 -42
- package/dist/mint-components/p-d68003fe.system.entry.js +0 -1
- package/dist/mint-components/p-da7708a7.entry.js +0 -1
- package/dist/mint-components/p-dce51a2e.system.entry.js +0 -1
- package/dist/mint-components/p-df89186f.system.js +0 -1
- package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
- package/dist/mint-components/p-eab1c9f3.js +0 -1
- package/dist/mint-components/p-ee06426a.system.js +0 -1
- package/dist/mint-components/p-f2228da3.system.entry.js +0 -1
- package/dist/mint-components/p-f26aedcd.system.js +0 -1
- package/dist/mint-components/p-f708da7b.js +0 -1
- package/dist/mint-components/p-f9da2c34.system.entry.js +0 -1
- package/dist/mint-components/p-fd0a013f.entry.js +0 -1
- package/dist/mint-components/p-fdaa4dbb.system.entry.js +0 -1
- package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
- package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
- package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
- /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js}
RENAMED
|
@@ -2,152 +2,32 @@
|
|
|
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-a43a63b4.js');
|
|
6
|
+
const global = require('./global-8bba5b3a.js');
|
|
7
|
+
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
|
+
const index_module = require('./index.module-4f54e412.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-7cbd60cc.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
|
|
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
|
|
22
|
-
const extractProps = require('./extractProps-fd93ba62.js');
|
|
13
|
+
require('./mixins-4761d472.js');
|
|
14
|
+
const GenericTableView = require('./GenericTableView-a9845e80.js');
|
|
15
|
+
const reRender = require('./re-render-d516138a.js');
|
|
16
|
+
const useChildElements = require('./useChildElements-966c9041.js');
|
|
17
|
+
const luxon = require('./luxon-949beaf2.js');
|
|
18
|
+
const useReferralTable = require('./useReferralTable-90d4d6e9.js');
|
|
19
|
+
const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
|
|
20
|
+
const utils$1 = require('./utils-83d125fa.js');
|
|
21
|
+
const data = require('./data-d4339c2e.js');
|
|
23
22
|
const keys = require('./keys-cff24974.js');
|
|
24
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
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;
|
|
23
|
+
const usePayoutStatus = require('./usePayoutStatus-3b34dab1.js');
|
|
144
24
|
|
|
145
25
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
146
26
|
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;
|
|
147
27
|
const { errors, ...formState } = props.states.formState;
|
|
148
28
|
return {
|
|
149
29
|
0: {
|
|
150
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
|
|
30
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text", "help-text": props.text.beneficiaryAccountNameDescription }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
|
|
151
31
|
class: "error-input",
|
|
152
32
|
helpText: getValidationErrorMessage({
|
|
153
33
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
|
|
@@ -649,6 +529,11 @@ const mockPaymentOptions = {
|
|
|
649
529
|
};
|
|
650
530
|
|
|
651
531
|
const style = {
|
|
532
|
+
ModalTitleContainer: {
|
|
533
|
+
display: "flex",
|
|
534
|
+
gap: "var(--sl-spacing-small)",
|
|
535
|
+
alignItems: "center",
|
|
536
|
+
},
|
|
652
537
|
FormWrapper: {
|
|
653
538
|
display: "flex",
|
|
654
539
|
justifyContent: "flex-start",
|
|
@@ -679,40 +564,20 @@ const style = {
|
|
|
679
564
|
gap: "8px",
|
|
680
565
|
},
|
|
681
566
|
ErrorText: {
|
|
682
|
-
color: "var(--
|
|
567
|
+
color: "var(--sqm-danger-color-icon)",
|
|
683
568
|
marginTop: "10px",
|
|
684
569
|
},
|
|
685
570
|
PageDescriptionText: {
|
|
686
|
-
color: "var(--
|
|
571
|
+
color: "var(--sqm-text-subdued)",
|
|
687
572
|
fontSize: "var(--sl-font-size-medium)",
|
|
688
573
|
},
|
|
689
574
|
DescriptionText: {
|
|
690
|
-
color: "var(--
|
|
691
|
-
},
|
|
692
|
-
AlertContainer: {
|
|
693
|
-
"&::part(base)": {
|
|
694
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
695
|
-
borderTop: "none",
|
|
696
|
-
padding: "0 16px",
|
|
697
|
-
},
|
|
698
|
-
"& sl-icon::part(base)": {
|
|
699
|
-
color: "var(--sl-color-danger-500)",
|
|
700
|
-
},
|
|
575
|
+
color: "var(--sqm-text-subdued)",
|
|
701
576
|
},
|
|
702
577
|
RadioContainer: {
|
|
703
578
|
display: "flex",
|
|
704
579
|
flexDirection: "column",
|
|
705
580
|
},
|
|
706
|
-
PartnerAlertContainer: {
|
|
707
|
-
"&::part(base)": {
|
|
708
|
-
backgroundColor: "var(--sl-color-sky-100)",
|
|
709
|
-
borderTop: "none",
|
|
710
|
-
padding: "0 16px",
|
|
711
|
-
},
|
|
712
|
-
"& sl-icon::part(base)": {
|
|
713
|
-
color: "var(--sl-color-blue-500)",
|
|
714
|
-
},
|
|
715
|
-
},
|
|
716
581
|
Checkbox: {
|
|
717
582
|
"&::part(control)": {
|
|
718
583
|
borderRadius: "50% !important",
|
|
@@ -724,8 +589,8 @@ const style = {
|
|
|
724
589
|
InputContainer: {
|
|
725
590
|
padding: "16px",
|
|
726
591
|
margin: "16px 0px 16px 0px",
|
|
727
|
-
borderTop: "1px solid var(--
|
|
728
|
-
borderBottom: "1px solid var(--
|
|
592
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
593
|
+
borderBottom: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
729
594
|
display: "flex",
|
|
730
595
|
flexDirection: "column",
|
|
731
596
|
width: "100%",
|
|
@@ -747,42 +612,47 @@ const style = {
|
|
|
747
612
|
width: "16px",
|
|
748
613
|
height: "16px",
|
|
749
614
|
borderRadius: "50%",
|
|
750
|
-
background: "var(--
|
|
615
|
+
background: "var(--sqm-skeleton-background)",
|
|
751
616
|
},
|
|
752
617
|
SmallSkeleton: {
|
|
753
618
|
width: "100px",
|
|
754
619
|
height: "16px",
|
|
755
620
|
borderRadius: "50px",
|
|
756
|
-
background: "var(--
|
|
621
|
+
background: "var(--sqm-skeleton-background)",
|
|
757
622
|
},
|
|
758
623
|
LargeSkeleton: {
|
|
759
624
|
width: "100%",
|
|
760
625
|
maxWidth: "320px",
|
|
761
626
|
height: "40px",
|
|
762
627
|
borderRadius: "50px",
|
|
763
|
-
background: "var(--
|
|
628
|
+
background: "var(--sqm-skeleton-background)",
|
|
764
629
|
},
|
|
765
|
-
|
|
766
|
-
"
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
630
|
+
InfoWarningIcon: {
|
|
631
|
+
height: "26px",
|
|
632
|
+
width: "26px",
|
|
633
|
+
},
|
|
634
|
+
Dialog: {
|
|
635
|
+
"&::part(panel)": {
|
|
636
|
+
maxWidth: "420px",
|
|
637
|
+
},
|
|
638
|
+
"&::part(title)": {
|
|
639
|
+
fontSize: "var(--sl-font-size-large)",
|
|
640
|
+
fontWeight: "600",
|
|
770
641
|
},
|
|
771
|
-
"&::part(
|
|
642
|
+
"&::part(body)": {
|
|
643
|
+
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
644
|
+
fontSize: "var(--sl-font-size-small)",
|
|
645
|
+
},
|
|
646
|
+
"&::part(footer)": {
|
|
772
647
|
display: "flex",
|
|
648
|
+
flexDirection: "column",
|
|
649
|
+
gap: "var(--sl-spacing-small)",
|
|
650
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
773
651
|
alignItems: "center",
|
|
774
|
-
|
|
775
|
-
padding: "10px",
|
|
776
|
-
height: "max-content",
|
|
777
|
-
},
|
|
778
|
-
"& sl-icon::part(base)": {
|
|
779
|
-
color: "var(--sl-color-yellow-500)",
|
|
652
|
+
flex: "1",
|
|
780
653
|
},
|
|
781
654
|
},
|
|
782
|
-
|
|
783
|
-
height: "26px",
|
|
784
|
-
width: "26px",
|
|
785
|
-
},
|
|
655
|
+
DialogButton: { margin: "auto", width: "100%" },
|
|
786
656
|
};
|
|
787
657
|
const sheet = JSS.createStyleSheet(style);
|
|
788
658
|
const styleString = sheet.toString();
|
|
@@ -803,12 +673,14 @@ const vanillaStyle = `
|
|
|
803
673
|
|
|
804
674
|
/* this class is dynamically applied in controller */
|
|
805
675
|
.error-input::part(base) {
|
|
806
|
-
border:
|
|
807
|
-
border-
|
|
676
|
+
--sqm-input-border-color: var(--sqm-danger-color-border);
|
|
677
|
+
--sl-input-border-color: var(--sqm-danger-color-border);
|
|
678
|
+
--sl-input-border-color-hover: var(--sqm-danger-color-border);
|
|
679
|
+
--sl-input-border-color-focus: var(--sqm-danger-color-background);
|
|
808
680
|
}
|
|
809
681
|
|
|
810
682
|
.error-input::part(help-text) {
|
|
811
|
-
color: var(--
|
|
683
|
+
color: var(--sqm-danger-color-text);
|
|
812
684
|
}
|
|
813
685
|
|
|
814
686
|
`;
|
|
@@ -846,28 +718,30 @@ const BankingInfoFormView = (props) => {
|
|
|
846
718
|
index.h("style", { type: "text/css" },
|
|
847
719
|
styleString,
|
|
848
720
|
vanillaStyle),
|
|
721
|
+
index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
722
|
+
index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
723
|
+
index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
|
|
724
|
+
index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
725
|
+
index.h("p", null, text.modalDescription),
|
|
726
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, submit: true, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
849
727
|
index.h("div", { class: classes.TextContainer },
|
|
850
728
|
index.h("div", null,
|
|
851
729
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
852
730
|
id: "formStep",
|
|
853
731
|
defaultMessage: text.formStep,
|
|
854
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
732
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
855
733
|
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
856
734
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
857
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
858
|
-
index.h("
|
|
859
|
-
index.h("strong", null, text.error.generalTitle),
|
|
860
|
-
index.h("br", null),
|
|
735
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
|
|
736
|
+
index.h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
861
737
|
global.intl.formatMessage({
|
|
862
738
|
id: "generalDescription",
|
|
863
739
|
defaultMessage: text.error.generalDescription,
|
|
864
740
|
}, {
|
|
865
741
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
866
742
|
}))),
|
|
867
|
-
states.isPartner && !states.hideSteps && (index.h("
|
|
868
|
-
index.h("
|
|
869
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
870
|
-
index.h("br", null),
|
|
743
|
+
states.isPartner && !states.hideSteps && (index.h("sqm-form-message", { type: "info" },
|
|
744
|
+
index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
871
745
|
global.intl.formatMessage({
|
|
872
746
|
id: "isPartnerAlertDescription",
|
|
873
747
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -879,7 +753,7 @@ const BankingInfoFormView = (props) => {
|
|
|
879
753
|
index.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
880
754
|
index.h("div", null,
|
|
881
755
|
index.h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (index.h("div", { class: classes.RadioContainer },
|
|
882
|
-
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "
|
|
756
|
+
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
|
|
883
757
|
formState.paymentMethodChecked === "toBankAccount" && (index.h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
|
|
884
758
|
? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
|
|
885
759
|
: [
|
|
@@ -887,7 +761,7 @@ const BankingInfoFormView = (props) => {
|
|
|
887
761
|
slots.paymentMethodSlot,
|
|
888
762
|
slots.formInputsSlot,
|
|
889
763
|
])),
|
|
890
|
-
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "
|
|
764
|
+
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, global.intl.formatMessage({
|
|
891
765
|
id: "paypal-input-label",
|
|
892
766
|
defaultMessage: text.toPayPalAccount,
|
|
893
767
|
}, { feeCap: states.feeCap }))),
|
|
@@ -896,17 +770,19 @@ const BankingInfoFormView = (props) => {
|
|
|
896
770
|
: slots.paypalInputSlot)),
|
|
897
771
|
index.h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
|
|
898
772
|
index.h("h4", null, text.paymentSchedule)),
|
|
899
|
-
index.h("sl-radio", { class: classes.Checkbox, exportparts: "
|
|
773
|
+
index.h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
|
|
900
774
|
formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (index.h("div", { class: classes.InputContainer, style: states.hideBalanceThreshold ? { display: "none" } : {} }, states.loading
|
|
901
775
|
? getLoadingSkeleton("toPayPalAccount")
|
|
902
776
|
: slots.paymentThresholdSelectSlot)),
|
|
903
|
-
index.h("sl-radio", { class: classes.Checkbox, exportparts: "
|
|
777
|
+
index.h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
|
|
904
778
|
formState.paymentScheduleChecked === "FIXED_DAY" && (index.h("div", { class: classes.InputContainer, style: states.hideFixedDay ? { display: "none" } : {} }, states.loading
|
|
905
779
|
? getLoadingSkeleton("toPayPalAccount")
|
|
906
780
|
: slots.paymentFixedDaySelectSlot))))),
|
|
907
781
|
index.h("div", { class: classes.BtnContainer },
|
|
908
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading
|
|
909
|
-
|
|
782
|
+
index.h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
|
|
783
|
+
? { onClick: callbacks.onModalOpen }
|
|
784
|
+
: { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
|
|
785
|
+
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "secondary", onClick: callbacks.onBack }, text.backButton))))));
|
|
910
786
|
};
|
|
911
787
|
|
|
912
788
|
// Hardcoded in Impact backend
|
|
@@ -990,24 +866,25 @@ function useBankingInfoForm(props) {
|
|
|
990
866
|
const host = index_module._();
|
|
991
867
|
const locale = index_module.L();
|
|
992
868
|
const user = index_module.J();
|
|
993
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
994
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
995
|
-
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
996
|
-
const formRef =
|
|
997
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
998
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
869
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
870
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
871
|
+
const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
|
|
872
|
+
const formRef = domContextHooks_module.useRef(null);
|
|
873
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(data.FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
874
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
999
875
|
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
1000
876
|
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
1001
|
-
const [showVerification, setShowVerification] =
|
|
1002
|
-
const [currentFormData, setCurrentFormData] =
|
|
1003
|
-
const [formState, setFormState] =
|
|
1004
|
-
const [currentPaymentOption, setCurrentPaymentOption] =
|
|
1005
|
-
const [loading, setLoading] =
|
|
1006
|
-
const [errors, setErrors] =
|
|
1007
|
-
const [_paymentMethodChecked, _setPaymentMethodChecked] =
|
|
1008
|
-
const [paymentScheduleChecked, setPaymentScheduleChecked] =
|
|
1009
|
-
const [countrySearch, setCountrySearch] =
|
|
1010
|
-
const [filteredCountries, setFilteredCountries] =
|
|
877
|
+
const [showVerification, setShowVerification] = domContextHooks_module.useState(false);
|
|
878
|
+
const [currentFormData, setCurrentFormData] = domContextHooks_module.useState(null);
|
|
879
|
+
const [formState, setFormState] = domContextHooks_module.useState({});
|
|
880
|
+
const [currentPaymentOption, setCurrentPaymentOption] = domContextHooks_module.useState(null);
|
|
881
|
+
const [loading, setLoading] = domContextHooks_module.useState(false);
|
|
882
|
+
const [errors, setErrors] = domContextHooks_module.useState({});
|
|
883
|
+
const [_paymentMethodChecked, _setPaymentMethodChecked] = domContextHooks_module.useState(undefined);
|
|
884
|
+
const [paymentScheduleChecked, setPaymentScheduleChecked] = domContextHooks_module.useState(undefined);
|
|
885
|
+
const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
|
|
886
|
+
const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(countries || []);
|
|
887
|
+
const [showModal, setShowModal] = domContextHooks_module.useState(false);
|
|
1011
888
|
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) || "";
|
|
1012
889
|
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);
|
|
1013
890
|
const feeCap = paypalFeeMap[currency] || "";
|
|
@@ -1027,7 +904,7 @@ function useBankingInfoForm(props) {
|
|
|
1027
904
|
const paymentMethodChecked = !hasPayPal
|
|
1028
905
|
? "toBankAccount"
|
|
1029
906
|
: _paymentMethodChecked;
|
|
1030
|
-
|
|
907
|
+
domContextHooks_module.useEffect(() => {
|
|
1031
908
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1032
909
|
if (!userData)
|
|
1033
910
|
return;
|
|
@@ -1071,7 +948,7 @@ function useBankingInfoForm(props) {
|
|
|
1071
948
|
setPaymentScheduleChecked(initialData.paymentSchedulingType);
|
|
1072
949
|
setFormState(initialData);
|
|
1073
950
|
}, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
|
|
1074
|
-
|
|
951
|
+
domContextHooks_module.useEffect(() => {
|
|
1075
952
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
1076
953
|
return;
|
|
1077
954
|
if (countrySearch.trim() === "") {
|
|
@@ -1179,10 +1056,12 @@ function useBankingInfoForm(props) {
|
|
|
1179
1056
|
});
|
|
1180
1057
|
setErrors({ inputErrors: validationErrors });
|
|
1181
1058
|
if (Object.keys(validationErrors).length) {
|
|
1059
|
+
setShowModal(false);
|
|
1182
1060
|
return;
|
|
1183
1061
|
}
|
|
1184
1062
|
let token = undefined;
|
|
1185
1063
|
if (isPartner) {
|
|
1064
|
+
setShowModal(false);
|
|
1186
1065
|
setShowVerification(true);
|
|
1187
1066
|
token = await new Promise((res) => {
|
|
1188
1067
|
const cb = (e) => {
|
|
@@ -1195,6 +1074,7 @@ function useBankingInfoForm(props) {
|
|
|
1195
1074
|
setShowVerification(false);
|
|
1196
1075
|
}
|
|
1197
1076
|
await runMutation(formData, token);
|
|
1077
|
+
setShowModal(false);
|
|
1198
1078
|
};
|
|
1199
1079
|
const onVerification = async (token) => {
|
|
1200
1080
|
host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
|
|
@@ -1228,6 +1108,8 @@ function useBankingInfoForm(props) {
|
|
|
1228
1108
|
setCountrySearch,
|
|
1229
1109
|
onVerification,
|
|
1230
1110
|
onVerificationHide: () => onVerification(null),
|
|
1111
|
+
onModalClose: () => setShowModal(false),
|
|
1112
|
+
onModalOpen: () => setShowModal(true),
|
|
1231
1113
|
},
|
|
1232
1114
|
states: {
|
|
1233
1115
|
showVerification,
|
|
@@ -1261,6 +1143,7 @@ function useBankingInfoForm(props) {
|
|
|
1261
1143
|
bankCountry: formState.bankCountry,
|
|
1262
1144
|
countrySearch,
|
|
1263
1145
|
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1146
|
+
showModal,
|
|
1264
1147
|
},
|
|
1265
1148
|
refs: {
|
|
1266
1149
|
formRef,
|
|
@@ -1345,7 +1228,11 @@ const BankingInfoForm = class {
|
|
|
1345
1228
|
/**
|
|
1346
1229
|
* @uiName Beneficiary account field label
|
|
1347
1230
|
*/
|
|
1348
|
-
this.beneficiaryAccountNameLabel = "
|
|
1231
|
+
this.beneficiaryAccountNameLabel = "Account holder name";
|
|
1232
|
+
/**
|
|
1233
|
+
* @uiName Beneficiary account field description
|
|
1234
|
+
*/
|
|
1235
|
+
this.beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
1349
1236
|
/**
|
|
1350
1237
|
* @uiName Bank account type field label
|
|
1351
1238
|
*/
|
|
@@ -1524,7 +1411,19 @@ const BankingInfoForm = class {
|
|
|
1524
1411
|
* @uiWidget textArea
|
|
1525
1412
|
*/
|
|
1526
1413
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
|
|
1527
|
-
|
|
1414
|
+
/**
|
|
1415
|
+
* @uiName Information modal title
|
|
1416
|
+
*/
|
|
1417
|
+
this.modalTitle = "Important Note";
|
|
1418
|
+
/**
|
|
1419
|
+
* @uiName Information modal description text
|
|
1420
|
+
*/
|
|
1421
|
+
this.modalDescription = "Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";
|
|
1422
|
+
/**
|
|
1423
|
+
* @uiName Information modal button text
|
|
1424
|
+
*/
|
|
1425
|
+
this.modalButtonText = "I understand, update my information";
|
|
1426
|
+
domContextHooks_module.h$1(this);
|
|
1528
1427
|
}
|
|
1529
1428
|
disconnectedCallback() { }
|
|
1530
1429
|
getTextProps() {
|
|
@@ -1615,7 +1514,15 @@ const BankingInfoForm = class {
|
|
|
1615
1514
|
}, {
|
|
1616
1515
|
email: props.states.email,
|
|
1617
1516
|
});
|
|
1618
|
-
|
|
1517
|
+
const vanillaStyle = `
|
|
1518
|
+
sl-menu-item::part(base) {
|
|
1519
|
+
color: var(--sqm-input-color);
|
|
1520
|
+
}
|
|
1521
|
+
sl-menu-item::part(base):hover {
|
|
1522
|
+
background-color: var(--sqm-input-border-color-hover);
|
|
1523
|
+
}
|
|
1524
|
+
`;
|
|
1525
|
+
return (index.h(index.Host, null, index.h("style", { type: "text/css" }, styleString), index.h("style", { type: "text/css" }, vanillaStyle), props.states.isPartner && props.states.showVerification ? (index.h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, index.h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1619
1526
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1620
1527
|
countryInputSlot: (index.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, disabled: props.states.saveLoading, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1621
1528
|
class: "error-input",
|
|
@@ -1664,11 +1571,11 @@ function useDemoBankingInfoForm(props) {
|
|
|
1664
1571
|
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;
|
|
1665
1572
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1666
1573
|
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;
|
|
1667
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1668
|
-
const [paymentMethodChecked, setPaymentMethodChecked] =
|
|
1669
|
-
const [paymentScheduleChecked, setPaymentScheduleChecked] =
|
|
1670
|
-
const [currency, setCurrency] =
|
|
1671
|
-
const [bankCountry, setBankCountry] =
|
|
1574
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
1575
|
+
const [paymentMethodChecked, setPaymentMethodChecked] = domContextHooks_module.useState(undefined);
|
|
1576
|
+
const [paymentScheduleChecked, setPaymentScheduleChecked] = domContextHooks_module.useState(undefined);
|
|
1577
|
+
const [currency, setCurrency] = domContextHooks_module.useState(defaultCurrency);
|
|
1578
|
+
const [bankCountry, setBankCountry] = domContextHooks_module.useState(defaultCountry);
|
|
1672
1579
|
const currentPaymentOption = (_m = mockPaymentOptions[currency]) === null || _m === void 0 ? void 0 : _m.find((paymentOption) => {
|
|
1673
1580
|
if (paymentOption.countryCode === bankCountry)
|
|
1674
1581
|
return true;
|
|
@@ -1676,7 +1583,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1676
1583
|
});
|
|
1677
1584
|
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) ||
|
|
1678
1585
|
0;
|
|
1679
|
-
|
|
1586
|
+
domContextHooks_module.useEffect(() => {
|
|
1680
1587
|
if (defaultPaymentMethodChecked !== paymentMethodChecked)
|
|
1681
1588
|
setPaymentMethodChecked(defaultPaymentMethodChecked);
|
|
1682
1589
|
if (defaultPaymentScheduleChecked !== paymentScheduleChecked)
|
|
@@ -1737,6 +1644,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1737
1644
|
currency,
|
|
1738
1645
|
setCurrency,
|
|
1739
1646
|
hasPayPal: true,
|
|
1647
|
+
showModal: false,
|
|
1740
1648
|
},
|
|
1741
1649
|
callbacks: {
|
|
1742
1650
|
onVerificationHide: () => { },
|
|
@@ -1749,6 +1657,8 @@ function useDemoBankingInfoForm(props) {
|
|
|
1749
1657
|
setCountrySearch: () => { },
|
|
1750
1658
|
onBack: async () => setStep("/dashboard"),
|
|
1751
1659
|
onVerification: () => { },
|
|
1660
|
+
onModalOpen: () => { },
|
|
1661
|
+
onModalClose: () => { },
|
|
1752
1662
|
},
|
|
1753
1663
|
text: props.getTextProps(),
|
|
1754
1664
|
refs: {
|
|
@@ -1757,331 +1667,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1757
1667
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1758
1668
|
}
|
|
1759
1669
|
|
|
1760
|
-
const style$1 = {
|
|
1761
|
-
Wrapper: {
|
|
1762
|
-
display: "flex",
|
|
1763
|
-
flexDirection: "column",
|
|
1764
|
-
gap: "var(--sl-spacing-medium)",
|
|
1765
|
-
maxWidth: "550px",
|
|
1766
|
-
},
|
|
1767
|
-
HeaderContainer: {
|
|
1768
|
-
display: "flex",
|
|
1769
|
-
flexDirection: "column",
|
|
1770
|
-
},
|
|
1771
|
-
InputsContainer: {
|
|
1772
|
-
display: "flex",
|
|
1773
|
-
gap: "var(--sl-spacing-medium)",
|
|
1774
|
-
position: "relative",
|
|
1775
|
-
flexDirection: "column",
|
|
1776
|
-
},
|
|
1777
|
-
CodeInputContainer: {
|
|
1778
|
-
display: "flex",
|
|
1779
|
-
gap: "var(--sl-spacing-medium)",
|
|
1780
|
-
},
|
|
1781
|
-
CodeInput: {
|
|
1782
|
-
maxWidth: "40px",
|
|
1783
|
-
"&::part(input)": {
|
|
1784
|
-
margin: "0",
|
|
1785
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1786
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1787
|
-
},
|
|
1788
|
-
},
|
|
1789
|
-
CodeInputError: {
|
|
1790
|
-
...mixins.ErrorStyles,
|
|
1791
|
-
maxWidth: "40px",
|
|
1792
|
-
"&::part(input)": {
|
|
1793
|
-
margin: "0",
|
|
1794
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1795
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1796
|
-
},
|
|
1797
|
-
},
|
|
1798
|
-
ErrorText: {
|
|
1799
|
-
color: "var(--sl-color-danger-500)",
|
|
1800
|
-
fontSize: "var(--sl-font-size-small)",
|
|
1801
|
-
margin: "0",
|
|
1802
|
-
},
|
|
1803
|
-
ContinueButton: {
|
|
1804
|
-
width: "100%",
|
|
1805
|
-
maxWidth: "100px",
|
|
1806
|
-
},
|
|
1807
|
-
FooterContainer: {
|
|
1808
|
-
display: "flex",
|
|
1809
|
-
flexDirection: "column",
|
|
1810
|
-
},
|
|
1811
|
-
SkeletonOne: {
|
|
1812
|
-
width: "50%",
|
|
1813
|
-
height: "16px",
|
|
1814
|
-
},
|
|
1815
|
-
SkeletonTwo: {
|
|
1816
|
-
width: "30%",
|
|
1817
|
-
height: "34px",
|
|
1818
|
-
},
|
|
1819
|
-
SkeletonThree: {
|
|
1820
|
-
width: "15%",
|
|
1821
|
-
height: "24px",
|
|
1822
|
-
},
|
|
1823
|
-
};
|
|
1824
|
-
const vanillaStyle$1 = `
|
|
1825
|
-
:host {
|
|
1826
|
-
display: block;
|
|
1827
|
-
}
|
|
1828
|
-
:host([hidden]): {
|
|
1829
|
-
display: none;
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
`;
|
|
1834
|
-
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1835
|
-
const styleString$1 = sheet$1.toString();
|
|
1836
|
-
function WidgetCodeVerificationView(props) {
|
|
1837
|
-
const { states, refs, callbacks, text } = props;
|
|
1838
|
-
const resendCodeText = global.intl.formatMessage({
|
|
1839
|
-
id: "resendCodeText",
|
|
1840
|
-
defaultMessage: text.resendCodeText,
|
|
1841
|
-
}, {
|
|
1842
|
-
resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1843
|
-
e.preventDefault();
|
|
1844
|
-
callbacks.resendEmail();
|
|
1845
|
-
} }, text.resendCodeLabel)),
|
|
1846
|
-
});
|
|
1847
|
-
const codeResentSuccessfully = global.intl.formatMessage({
|
|
1848
|
-
id: "codeResentSuccessfully",
|
|
1849
|
-
defaultMessage: text.codeResentSuccessfullyText,
|
|
1850
|
-
}, {
|
|
1851
|
-
email: states.email,
|
|
1852
|
-
});
|
|
1853
|
-
const inputClass = states.verifyFailed
|
|
1854
|
-
? sheet$1.classes.CodeInputError
|
|
1855
|
-
: sheet$1.classes.CodeInput;
|
|
1856
|
-
return (index.h("div", { part: "sqm-base" },
|
|
1857
|
-
index.h("style", { type: "text/css" },
|
|
1858
|
-
vanillaStyle$1,
|
|
1859
|
-
styleString$1),
|
|
1860
|
-
index.h("div", { class: sheet$1.classes.Wrapper },
|
|
1861
|
-
index.h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1862
|
-
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
|
|
1863
|
-
id: `emailHeaderText`,
|
|
1864
|
-
defaultMessage: states.verifyFailed
|
|
1865
|
-
? text.reverifyCodeHeaderText
|
|
1866
|
-
: text.verifyCodeHeaderText,
|
|
1867
|
-
}, { email: states.email }))),
|
|
1868
|
-
states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1869
|
-
index.h("b", null, codeResentSuccessfully))),
|
|
1870
|
-
index.h("div", { class: sheet$1.classes.InputsContainer },
|
|
1871
|
-
index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1872
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1873
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1874
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1875
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1876
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1877
|
-
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
1878
|
-
states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1879
|
-
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)),
|
|
1880
|
-
index.h("div", { class: sheet$1.classes.FooterContainer },
|
|
1881
|
-
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|
|
1885
|
-
mutation submitImpactPublisherEmail2FACode(
|
|
1886
|
-
$user: UserIdInput!
|
|
1887
|
-
$code: String!
|
|
1888
|
-
) {
|
|
1889
|
-
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1890
|
-
verifiedEmail
|
|
1891
|
-
accessKey
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
`;
|
|
1895
|
-
function useWidgetCodeVerification(props) {
|
|
1896
|
-
const host = stencilHooks_module.l();
|
|
1897
|
-
const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
|
|
1898
|
-
const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
|
|
1899
|
-
const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
|
|
1900
|
-
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
1901
|
-
const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
|
|
1902
|
-
const [validationError, setValidationError] = stencilHooks_module.useState(false);
|
|
1903
|
-
const [emailError, setEmailError] = stencilHooks_module.useState(false);
|
|
1904
|
-
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
1905
|
-
stencilHooks_module.useEffect(() => {
|
|
1906
|
-
if (!codeRef)
|
|
1907
|
-
return;
|
|
1908
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1909
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1910
|
-
codeElements.forEach((element, idx) => {
|
|
1911
|
-
element.addEventListener("focus", (e) => {
|
|
1912
|
-
e.target.select();
|
|
1913
|
-
});
|
|
1914
|
-
element.addEventListener("keydown", (e) => {
|
|
1915
|
-
if (e.key === "Backspace" && e.target.value === "") {
|
|
1916
|
-
codeElements[Math.max(0, idx - 1)].focus();
|
|
1917
|
-
}
|
|
1918
|
-
});
|
|
1919
|
-
element.addEventListener("input", (e) => {
|
|
1920
|
-
const input = e.data;
|
|
1921
|
-
if (!input)
|
|
1922
|
-
return;
|
|
1923
|
-
if (idx === codeElements.length - 1) {
|
|
1924
|
-
e.target.value = input.slice(0, 1);
|
|
1925
|
-
return;
|
|
1926
|
-
}
|
|
1927
|
-
if (input.length > 1) {
|
|
1928
|
-
const rest = input.slice(1);
|
|
1929
|
-
e.target.value = input.slice(0, 1);
|
|
1930
|
-
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1931
|
-
inputType: "insertFromPaste",
|
|
1932
|
-
data: rest,
|
|
1933
|
-
}));
|
|
1934
|
-
}
|
|
1935
|
-
codeElements[idx + 1].focus();
|
|
1936
|
-
});
|
|
1937
|
-
});
|
|
1938
|
-
}, [codeRef]);
|
|
1939
|
-
const reset = () => {
|
|
1940
|
-
setShowCode(false);
|
|
1941
|
-
setValidationError(false);
|
|
1942
|
-
};
|
|
1943
|
-
const resendEmail = async () => {
|
|
1944
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
1945
|
-
if (!initialized)
|
|
1946
|
-
return;
|
|
1947
|
-
const result = await sendEmail();
|
|
1948
|
-
if (!result) {
|
|
1949
|
-
setEmailError(true);
|
|
1950
|
-
return;
|
|
1951
|
-
}
|
|
1952
|
-
if (emailSent)
|
|
1953
|
-
setEmailResent(true);
|
|
1954
|
-
setEmailSent(true);
|
|
1955
|
-
};
|
|
1956
|
-
const submitCode = async () => {
|
|
1957
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1958
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1959
|
-
if (codeElements.find((el) => !el.value)) {
|
|
1960
|
-
setValidationError(true);
|
|
1961
|
-
return;
|
|
1962
|
-
}
|
|
1963
|
-
let code = "";
|
|
1964
|
-
codeElements.forEach((element) => {
|
|
1965
|
-
code = `${code}${element.value}`;
|
|
1966
|
-
});
|
|
1967
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
1968
|
-
if (!initialized)
|
|
1969
|
-
return;
|
|
1970
|
-
setValidationError(false);
|
|
1971
|
-
const res = await verifyEmail(code);
|
|
1972
|
-
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1973
|
-
props.onVerification(res.accessKey);
|
|
1974
|
-
reset();
|
|
1975
|
-
}
|
|
1976
|
-
else {
|
|
1977
|
-
setValidationError(true);
|
|
1978
|
-
}
|
|
1979
|
-
};
|
|
1980
|
-
stencilHooks_module.useEffect(() => {
|
|
1981
|
-
// Wait for mutations to be determined from user lookup
|
|
1982
|
-
if (!initialized)
|
|
1983
|
-
return;
|
|
1984
|
-
// email should already exist if user has completed email-verification
|
|
1985
|
-
if (!email)
|
|
1986
|
-
resendEmail();
|
|
1987
|
-
else
|
|
1988
|
-
setEmailSent(true);
|
|
1989
|
-
}, [initialized]);
|
|
1990
|
-
return {
|
|
1991
|
-
refs: {
|
|
1992
|
-
codeWrapperRef: setCodeRef,
|
|
1993
|
-
},
|
|
1994
|
-
states: {
|
|
1995
|
-
email: verificationEmail,
|
|
1996
|
-
emailResent,
|
|
1997
|
-
resendError: sendErrors || verifyErrors,
|
|
1998
|
-
initialiseLoading: !initialized,
|
|
1999
|
-
loading: sendLoading || verifyLoading,
|
|
2000
|
-
verifyFailed: !!validationError,
|
|
2001
|
-
},
|
|
2002
|
-
callbacks: {
|
|
2003
|
-
resendEmail,
|
|
2004
|
-
submitCode,
|
|
2005
|
-
},
|
|
2006
|
-
text: props.getTextProps(),
|
|
2007
|
-
};
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
|
-
const WidgetCodeVerification = class {
|
|
2011
|
-
constructor(hostRef) {
|
|
2012
|
-
index.registerInstance(this, hostRef);
|
|
2013
|
-
/**
|
|
2014
|
-
* @uiName Verify code widget header text
|
|
2015
|
-
*/
|
|
2016
|
-
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2017
|
-
/**
|
|
2018
|
-
* @uiName Reverify code widget header text
|
|
2019
|
-
*/
|
|
2020
|
-
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2021
|
-
/**
|
|
2022
|
-
* Text displayed under verify button
|
|
2023
|
-
* @uiName Resend code text
|
|
2024
|
-
*/
|
|
2025
|
-
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2026
|
-
/**
|
|
2027
|
-
* The link that appears in the resend code link
|
|
2028
|
-
* @uiName Resend code label
|
|
2029
|
-
*/
|
|
2030
|
-
this.resendCodeLabel = "Resend code";
|
|
2031
|
-
/**
|
|
2032
|
-
* Link text displayed under verify button
|
|
2033
|
-
* @uiName Resend code text
|
|
2034
|
-
*/
|
|
2035
|
-
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2036
|
-
/**
|
|
2037
|
-
* Error text displayed under verification input
|
|
2038
|
-
* @uiName Invalid code text
|
|
2039
|
-
*/
|
|
2040
|
-
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2041
|
-
/**
|
|
2042
|
-
* @uiName Verify code button text
|
|
2043
|
-
*/
|
|
2044
|
-
this.verifyText = "Verify";
|
|
2045
|
-
/**
|
|
2046
|
-
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2047
|
-
* @uiName Network error message
|
|
2048
|
-
*/
|
|
2049
|
-
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2050
|
-
stencilHooks_module.h$1(this);
|
|
2051
|
-
}
|
|
2052
|
-
disconnectedCallback() { }
|
|
2053
|
-
getTextProps() {
|
|
2054
|
-
return utils.getProps(this);
|
|
2055
|
-
}
|
|
2056
|
-
render() {
|
|
2057
|
-
const props = index_module.isDemo()
|
|
2058
|
-
? useDemoWidgetCodeVerification(this)
|
|
2059
|
-
: useWidgetCodeVerification(this);
|
|
2060
|
-
return index.h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2061
|
-
}
|
|
2062
|
-
};
|
|
2063
|
-
function useDemoWidgetCodeVerification(props) {
|
|
2064
|
-
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
2065
|
-
const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
2066
|
-
return cjs.cjs({
|
|
2067
|
-
states: {
|
|
2068
|
-
loading: false,
|
|
2069
|
-
email: "test@example.com",
|
|
2070
|
-
emailResent,
|
|
2071
|
-
resendError: false,
|
|
2072
|
-
verifyFailed: false,
|
|
2073
|
-
},
|
|
2074
|
-
refs: {
|
|
2075
|
-
codeWrapperRef: () => { },
|
|
2076
|
-
},
|
|
2077
|
-
callbacks: {
|
|
2078
|
-
resendEmail: async () => setEmailResent(true),
|
|
2079
|
-
submitCode: async () => setVerifiedContext(true),
|
|
2080
|
-
},
|
|
2081
|
-
text: props.getTextProps(),
|
|
2082
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
1670
|
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
2086
1671
|
mutation createImpactPublisherTaxDocument(
|
|
2087
1672
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -2110,23 +1695,24 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
|
2110
1695
|
function useDocusignForm(props) {
|
|
2111
1696
|
var _a, _b, _c;
|
|
2112
1697
|
const user = index_module.J();
|
|
2113
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2114
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2115
|
-
const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2116
|
-
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;
|
|
1698
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
1699
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
1700
|
+
const { data: data$1, loading: userLoading, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
1701
|
+
const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
2117
1702
|
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
2118
1703
|
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
2119
|
-
const [docusignStatus, setDocusignStatus] =
|
|
2120
|
-
const [participantType, setParticipantType] =
|
|
2121
|
-
const [errors, setErrors] =
|
|
2122
|
-
const [loading, setLoading] =
|
|
2123
|
-
const [showExitButton, setShowExitButton] =
|
|
1704
|
+
const [docusignStatus, setDocusignStatus] = domContextHooks_module.useState(undefined);
|
|
1705
|
+
const [participantType, setParticipantType] = domContextHooks_module.useState(undefined);
|
|
1706
|
+
const [errors, setErrors] = domContextHooks_module.useState({});
|
|
1707
|
+
const [loading, setLoading] = domContextHooks_module.useState(false);
|
|
1708
|
+
const [showExitButton, setShowExitButton] = domContextHooks_module.useState(false);
|
|
1709
|
+
const [showModal, setShowModal] = domContextHooks_module.useState(true);
|
|
2124
1710
|
// Only look at current document if it's valid (same as required type)
|
|
2125
|
-
const existingDocumentType =
|
|
1711
|
+
const existingDocumentType = utils$1.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
2126
1712
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
2127
1713
|
const actualDocumentType = existingDocumentType ||
|
|
2128
1714
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
2129
|
-
|
|
1715
|
+
domContextHooks_module.useEffect(() => {
|
|
2130
1716
|
if (!existingDocumentType)
|
|
2131
1717
|
return;
|
|
2132
1718
|
if (existingDocumentType === "W8BEN") {
|
|
@@ -2136,7 +1722,7 @@ function useDocusignForm(props) {
|
|
|
2136
1722
|
setParticipantType("businessEntity");
|
|
2137
1723
|
}
|
|
2138
1724
|
}, [existingDocumentType]);
|
|
2139
|
-
|
|
1725
|
+
domContextHooks_module.useEffect(() => {
|
|
2140
1726
|
// Skip if no publisher info
|
|
2141
1727
|
if (!user || !publisher)
|
|
2142
1728
|
return;
|
|
@@ -2214,8 +1800,9 @@ function useDocusignForm(props) {
|
|
|
2214
1800
|
},
|
|
2215
1801
|
docusignStatus,
|
|
2216
1802
|
documentType: actualDocumentType,
|
|
2217
|
-
documentTypeString:
|
|
1803
|
+
documentTypeString: utils$1.taxTypeToName(actualDocumentType),
|
|
2218
1804
|
showExitButton,
|
|
1805
|
+
showModal,
|
|
2219
1806
|
},
|
|
2220
1807
|
data: {
|
|
2221
1808
|
taxForm: actualDocumentType,
|
|
@@ -2226,6 +1813,8 @@ function useDocusignForm(props) {
|
|
|
2226
1813
|
completeDocument,
|
|
2227
1814
|
onExit: progressStep,
|
|
2228
1815
|
setParticipantType,
|
|
1816
|
+
onModalClose: () => setShowModal(false),
|
|
1817
|
+
onModalOpen: () => setShowModal(true),
|
|
2229
1818
|
},
|
|
2230
1819
|
text: props.getTextProps(),
|
|
2231
1820
|
};
|
|
@@ -2239,7 +1828,7 @@ function getDocumentType(p) {
|
|
|
2239
1828
|
return undefined;
|
|
2240
1829
|
}
|
|
2241
1830
|
|
|
2242
|
-
const style$
|
|
1831
|
+
const style$1 = {
|
|
2243
1832
|
DocusignStatusContainer: {
|
|
2244
1833
|
width: "100%",
|
|
2245
1834
|
minHeight: "600px",
|
|
@@ -2251,7 +1840,7 @@ const style$2 = {
|
|
|
2251
1840
|
gap: "10px",
|
|
2252
1841
|
margin: "auto",
|
|
2253
1842
|
textAlign: "center",
|
|
2254
|
-
border: "1px solid var(--
|
|
1843
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
2255
1844
|
justifyContent: "center",
|
|
2256
1845
|
},
|
|
2257
1846
|
MessageContainer: {
|
|
@@ -2266,48 +1855,48 @@ const style$2 = {
|
|
|
2266
1855
|
},
|
|
2267
1856
|
},
|
|
2268
1857
|
};
|
|
2269
|
-
const sheet$
|
|
2270
|
-
const styleString$
|
|
1858
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1859
|
+
const styleString$1 = sheet$1.toString();
|
|
2271
1860
|
const DocusignExpiredView = (props) => {
|
|
2272
|
-
const { classes } = sheet$
|
|
1861
|
+
const { classes } = sheet$1;
|
|
2273
1862
|
const { text } = props;
|
|
2274
1863
|
return (index.h("div", null,
|
|
2275
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1864
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2276
1865
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2277
1866
|
index.h("sl-icon", { style: {
|
|
2278
1867
|
width: "50px",
|
|
2279
1868
|
height: "50px",
|
|
2280
|
-
color: "var(--
|
|
1869
|
+
color: "var(--sqm-text)",
|
|
2281
1870
|
}, name: "clock" }),
|
|
2282
1871
|
index.h("div", { class: classes.MessageContainer },
|
|
2283
1872
|
index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
2284
1873
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2285
1874
|
};
|
|
2286
1875
|
const DocusignErrorView = (props) => {
|
|
2287
|
-
const { classes } = sheet$
|
|
1876
|
+
const { classes } = sheet$1;
|
|
2288
1877
|
const { text } = props;
|
|
2289
1878
|
return (index.h("div", null,
|
|
2290
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1879
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2291
1880
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2292
1881
|
index.h("sl-icon", { style: {
|
|
2293
1882
|
width: "50px",
|
|
2294
1883
|
height: "50px",
|
|
2295
|
-
color: "var(--
|
|
1884
|
+
color: "var(--sqm-text)",
|
|
2296
1885
|
}, name: "exclamation-octagon" }),
|
|
2297
1886
|
index.h("div", { class: classes.MessageContainer },
|
|
2298
1887
|
index.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
2299
1888
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2300
1889
|
};
|
|
2301
1890
|
const DocusignLoadingView = () => {
|
|
2302
|
-
const { classes } = sheet$
|
|
1891
|
+
const { classes } = sheet$1;
|
|
2303
1892
|
return (index.h("div", null,
|
|
2304
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1893
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2305
1894
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2306
1895
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
2307
1896
|
};
|
|
2308
1897
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
2309
|
-
const { classes } = sheet$
|
|
2310
|
-
const [iFrameHeight, setiFrameHeight] =
|
|
1898
|
+
const { classes } = sheet$1;
|
|
1899
|
+
const [iFrameHeight, setiFrameHeight] = domContextHooks_module.useState("100%");
|
|
2311
1900
|
const allowedDomains = [
|
|
2312
1901
|
"referralsaasquatch.com",
|
|
2313
1902
|
"impacttech.complysandbox.com",
|
|
@@ -2324,7 +1913,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2324
1913
|
callbacks.completeDocument();
|
|
2325
1914
|
}
|
|
2326
1915
|
}, []);
|
|
2327
|
-
|
|
1916
|
+
domContextHooks_module.useEffect(() => {
|
|
2328
1917
|
window.addEventListener("message", callback, false);
|
|
2329
1918
|
return () => {
|
|
2330
1919
|
window.removeEventListener("message", callback, false);
|
|
@@ -2339,12 +1928,17 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2339
1928
|
return index.h(DocusignExpiredView, { text: text });
|
|
2340
1929
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
2341
1930
|
return (index.h("div", { style: { height: iFrameHeight } },
|
|
2342
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1931
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2343
1932
|
index.h("div", { class: classes.IFrameContainer },
|
|
2344
1933
|
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
2345
1934
|
};
|
|
2346
1935
|
|
|
2347
|
-
const style$
|
|
1936
|
+
const style$2 = {
|
|
1937
|
+
ModalTitleContainer: {
|
|
1938
|
+
display: "flex",
|
|
1939
|
+
gap: "var(--sl-spacing-small)",
|
|
1940
|
+
alignItems: "center",
|
|
1941
|
+
},
|
|
2348
1942
|
FormWrapper: {
|
|
2349
1943
|
display: "flex",
|
|
2350
1944
|
justifyContent: "flex-start",
|
|
@@ -2376,7 +1970,7 @@ const style$3 = {
|
|
|
2376
1970
|
gap: "8px",
|
|
2377
1971
|
},
|
|
2378
1972
|
ErrorText: {
|
|
2379
|
-
color: "var(--
|
|
1973
|
+
color: "var(--sqm-danger-color-icon)",
|
|
2380
1974
|
marginTop: "10px",
|
|
2381
1975
|
},
|
|
2382
1976
|
DescriptionText: {
|
|
@@ -2385,35 +1979,6 @@ const style$3 = {
|
|
|
2385
1979
|
BoldText: {
|
|
2386
1980
|
fontWeight: "bold",
|
|
2387
1981
|
},
|
|
2388
|
-
ErrorAlertContainer: {
|
|
2389
|
-
"&::part(base)": {
|
|
2390
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
2391
|
-
borderTop: "none",
|
|
2392
|
-
padding: "0 16px",
|
|
2393
|
-
},
|
|
2394
|
-
"& sl-icon::part(base)": {
|
|
2395
|
-
color: "var(--sl-color-danger-500)",
|
|
2396
|
-
},
|
|
2397
|
-
},
|
|
2398
|
-
InfoAlert: {
|
|
2399
|
-
"&::part(base)": {
|
|
2400
|
-
backgroundColor: "transparent",
|
|
2401
|
-
borderTop: "none",
|
|
2402
|
-
padding: "0px",
|
|
2403
|
-
marginBottom: "16px",
|
|
2404
|
-
border: "none",
|
|
2405
|
-
},
|
|
2406
|
-
"&::part(message)": {
|
|
2407
|
-
display: "flex",
|
|
2408
|
-
alignItems: "center",
|
|
2409
|
-
justifyContent: "flex-start",
|
|
2410
|
-
padding: "10px",
|
|
2411
|
-
height: "max-content",
|
|
2412
|
-
},
|
|
2413
|
-
"& sl-icon::part(base)": {
|
|
2414
|
-
color: "var(--sl-color-sky-500)",
|
|
2415
|
-
},
|
|
2416
|
-
},
|
|
2417
1982
|
Container: {
|
|
2418
1983
|
width: "100%",
|
|
2419
1984
|
display: "flex",
|
|
@@ -2421,16 +1986,6 @@ const style$3 = {
|
|
|
2421
1986
|
flexDirection: "column",
|
|
2422
1987
|
gap: "16px",
|
|
2423
1988
|
},
|
|
2424
|
-
Link: {
|
|
2425
|
-
color: "var(--sl-color-sky-500)",
|
|
2426
|
-
textDecoration: "none",
|
|
2427
|
-
"&:visited": {
|
|
2428
|
-
color: "var(--sl-color-sky-500)",
|
|
2429
|
-
},
|
|
2430
|
-
"&:hover": {
|
|
2431
|
-
textDecoration: "underline",
|
|
2432
|
-
},
|
|
2433
|
-
},
|
|
2434
1989
|
CheckboxWrapper: {
|
|
2435
1990
|
display: "flex",
|
|
2436
1991
|
justifyContent: "flex-start",
|
|
@@ -2444,59 +1999,91 @@ const style$3 = {
|
|
|
2444
1999
|
fontSize: "var(--sl-font-size-small)",
|
|
2445
2000
|
},
|
|
2446
2001
|
PageDescriptionText: {
|
|
2447
|
-
color: "var(--
|
|
2002
|
+
color: "var(--sqm-text-subdued)",
|
|
2448
2003
|
fontSize: "var(--sl-font-size-medium)",
|
|
2449
2004
|
},
|
|
2005
|
+
Dialog: {
|
|
2006
|
+
"&::part(panel)": {
|
|
2007
|
+
maxWidth: "420px",
|
|
2008
|
+
},
|
|
2009
|
+
"&::part(title)": {
|
|
2010
|
+
fontSize: "var(--sl-font-size-large)",
|
|
2011
|
+
fontWeight: "600",
|
|
2012
|
+
},
|
|
2013
|
+
"&::part(body)": {
|
|
2014
|
+
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
2015
|
+
fontSize: "var(--sl-font-size-small)",
|
|
2016
|
+
},
|
|
2017
|
+
"&::part(footer)": {
|
|
2018
|
+
display: "flex",
|
|
2019
|
+
flexDirection: "column",
|
|
2020
|
+
gap: "var(--sl-spacing-small)",
|
|
2021
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
2022
|
+
alignItems: "center",
|
|
2023
|
+
flex: "1",
|
|
2024
|
+
},
|
|
2025
|
+
},
|
|
2026
|
+
DialogButton: { margin: "auto", width: "100%" },
|
|
2450
2027
|
};
|
|
2451
|
-
const sheet$
|
|
2452
|
-
const styleString$
|
|
2453
|
-
const vanillaStyle$
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
* {
|
|
2458
|
-
margin: 0;
|
|
2459
|
-
padding: 0;
|
|
2460
|
-
box-sizing: border-box;
|
|
2461
|
-
}
|
|
2028
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
2029
|
+
const styleString$2 = sheet$2.toString();
|
|
2030
|
+
const vanillaStyle$1 = `
|
|
2031
|
+
:host{
|
|
2032
|
+
display: block;
|
|
2033
|
+
}
|
|
2462
2034
|
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2035
|
+
* {
|
|
2036
|
+
margin: 0;
|
|
2037
|
+
padding: 0;
|
|
2038
|
+
box-sizing: border-box;
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
a {
|
|
2042
|
+
color: inherit;
|
|
2043
|
+
text-decoration: underline;
|
|
2044
|
+
cursor: pointer;
|
|
2045
|
+
}
|
|
2466
2046
|
|
|
2467
2047
|
|
|
2468
2048
|
`;
|
|
2469
2049
|
const DocusignFormView = (props) => {
|
|
2470
2050
|
var _a;
|
|
2471
2051
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2472
|
-
const { classes } = sheet$
|
|
2052
|
+
const { classes } = sheet$2;
|
|
2473
2053
|
return (index.h("div", { class: classes.Container },
|
|
2474
2054
|
index.h("style", { type: "text/css" },
|
|
2475
|
-
styleString$
|
|
2476
|
-
vanillaStyle$
|
|
2055
|
+
styleString$2,
|
|
2056
|
+
vanillaStyle$1),
|
|
2057
|
+
index.h("sl-dialog", { class: sheet$2.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
2058
|
+
index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
2059
|
+
index.h("sl-icon", { name: "info-circle", style: { color: "var(--sqm-informative-color-icon)" } }),
|
|
2060
|
+
index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
2061
|
+
index.h("p", null, global.intl.formatMessage({
|
|
2062
|
+
id: "modalText",
|
|
2063
|
+
defaultMessage: text.modalDescription,
|
|
2064
|
+
}, {
|
|
2065
|
+
br: index.h("br", null),
|
|
2066
|
+
})),
|
|
2067
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$2.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
2477
2068
|
index.h("div", { class: classes.TextContainer },
|
|
2478
2069
|
index.h("div", null,
|
|
2479
2070
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2480
2071
|
id: "formStep",
|
|
2481
2072
|
defaultMessage: text.formStep,
|
|
2482
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2073
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
2483
2074
|
index.h("h3", null, text.taxForm),
|
|
2484
2075
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2485
2076
|
states.loadingError && (index.h("div", null,
|
|
2486
|
-
index.h("
|
|
2487
|
-
index.h("
|
|
2488
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2489
|
-
index.h("br", null),
|
|
2077
|
+
index.h("sqm-form-message", { type: "error" },
|
|
2078
|
+
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
2490
2079
|
global.intl.formatMessage({
|
|
2491
2080
|
id: "loadingErrorAlertDescription",
|
|
2492
2081
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2493
2082
|
}, {
|
|
2494
2083
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2495
2084
|
})))),
|
|
2496
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
2497
|
-
index.h("
|
|
2498
|
-
index.h("strong", null, text.error.generalTitle),
|
|
2499
|
-
index.h("br", null),
|
|
2085
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
|
|
2086
|
+
index.h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
2500
2087
|
global.intl.formatMessage({
|
|
2501
2088
|
id: "generalDescription",
|
|
2502
2089
|
defaultMessage: text.error.generalDescription,
|
|
@@ -2627,7 +2214,19 @@ const DocusignForm = class {
|
|
|
2627
2214
|
* @uiName Exit button text
|
|
2628
2215
|
*/
|
|
2629
2216
|
this.exitButton = "Exit";
|
|
2630
|
-
|
|
2217
|
+
/**
|
|
2218
|
+
* @uiName Information modal title
|
|
2219
|
+
*/
|
|
2220
|
+
this.modalTitle = "Important Note";
|
|
2221
|
+
/**
|
|
2222
|
+
* @uiName Information modal description text
|
|
2223
|
+
*/
|
|
2224
|
+
this.modalDescription = "Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
|
|
2225
|
+
/**
|
|
2226
|
+
* @uiName Information modal button text
|
|
2227
|
+
*/
|
|
2228
|
+
this.modalButtonText = "I understand";
|
|
2229
|
+
domContextHooks_module.h$1(this);
|
|
2631
2230
|
}
|
|
2632
2231
|
disconnectedCallback() { }
|
|
2633
2232
|
getTextProps() {
|
|
@@ -2664,11 +2263,11 @@ const DocusignForm = class {
|
|
|
2664
2263
|
get el() { return index.getElement(this); }
|
|
2665
2264
|
};
|
|
2666
2265
|
function useDocusignFormDemo(props) {
|
|
2667
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2266
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
2668
2267
|
return cjs.cjs({
|
|
2669
2268
|
text: props.getTextProps(),
|
|
2670
2269
|
states: {
|
|
2671
|
-
step: "
|
|
2270
|
+
step: "3",
|
|
2672
2271
|
disabled: false,
|
|
2673
2272
|
submitDisabled: false,
|
|
2674
2273
|
loading: false,
|
|
@@ -2681,6 +2280,7 @@ function useDocusignFormDemo(props) {
|
|
|
2681
2280
|
errors: {},
|
|
2682
2281
|
},
|
|
2683
2282
|
documentType: "W9",
|
|
2283
|
+
showModal: false,
|
|
2684
2284
|
},
|
|
2685
2285
|
data: {
|
|
2686
2286
|
taxForm: "W9",
|
|
@@ -2691,6 +2291,8 @@ function useDocusignFormDemo(props) {
|
|
|
2691
2291
|
demo: {
|
|
2692
2292
|
onSubmit: () => setStep("/4"),
|
|
2693
2293
|
onBack: () => setStep("/3"),
|
|
2294
|
+
onModalOpen: () => { },
|
|
2295
|
+
onModalClose: () => { },
|
|
2694
2296
|
},
|
|
2695
2297
|
setParticipantType: (p) => console.log({ p }),
|
|
2696
2298
|
setDocusignStatus: (status) => console.log(status),
|
|
@@ -2701,7 +2303,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2701
2303
|
return (index.h("div", { style: {
|
|
2702
2304
|
width: "100%",
|
|
2703
2305
|
height: "600px",
|
|
2704
|
-
background: "
|
|
2306
|
+
background: "inherit",
|
|
2705
2307
|
display: "flex",
|
|
2706
2308
|
justifyContent: "center",
|
|
2707
2309
|
alignItems: "center",
|
|
@@ -2713,7 +2315,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2713
2315
|
} }, 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")))));
|
|
2714
2316
|
};
|
|
2715
2317
|
|
|
2716
|
-
const style$
|
|
2318
|
+
const style$3 = {
|
|
2717
2319
|
FormWrapper: {
|
|
2718
2320
|
display: "flex",
|
|
2719
2321
|
justifyContent: "flex-start",
|
|
@@ -2725,6 +2327,7 @@ const style$4 = {
|
|
|
2725
2327
|
justifyContent: "flex-start",
|
|
2726
2328
|
flexDirection: "column",
|
|
2727
2329
|
gap: "var(--sl-spacing-medium)",
|
|
2330
|
+
marginBottom: "16px",
|
|
2728
2331
|
"& sl-radio::part(base)": {
|
|
2729
2332
|
alignItems: "start",
|
|
2730
2333
|
},
|
|
@@ -2740,6 +2343,7 @@ const style$4 = {
|
|
|
2740
2343
|
flexDirection: "column",
|
|
2741
2344
|
gap: "var(--sl-spacing-xx-small)",
|
|
2742
2345
|
fontSize: "var(--sl-font-size-small)",
|
|
2346
|
+
color: "var(--sqm-text)",
|
|
2743
2347
|
},
|
|
2744
2348
|
TitleContainer: {
|
|
2745
2349
|
display: "flex",
|
|
@@ -2761,65 +2365,68 @@ const style$4 = {
|
|
|
2761
2365
|
gap: "8px",
|
|
2762
2366
|
},
|
|
2763
2367
|
ErrorText: {
|
|
2764
|
-
color: "var(--
|
|
2368
|
+
color: "var(--sqm-danger-color-text)",
|
|
2765
2369
|
marginTop: "10px",
|
|
2766
2370
|
},
|
|
2767
2371
|
DescriptionText: {
|
|
2768
|
-
color: "var(--
|
|
2372
|
+
color: "var(--sqm-text-subdued)",
|
|
2769
2373
|
},
|
|
2770
|
-
|
|
2771
|
-
"
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
"
|
|
2777
|
-
|
|
2778
|
-
},
|
|
2374
|
+
InfoWarningIcon: {
|
|
2375
|
+
height: "26px",
|
|
2376
|
+
width: "26px",
|
|
2377
|
+
},
|
|
2378
|
+
PageDescriptionText: {
|
|
2379
|
+
color: "var(--sqm-text-subdued)",
|
|
2380
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2381
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
2779
2382
|
},
|
|
2780
|
-
|
|
2383
|
+
PrimaryButton: {
|
|
2781
2384
|
"&::part(base)": {
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2385
|
+
background: "var(--sqm-primary-button-background)",
|
|
2386
|
+
color: "var(--sqm-primary-button-color)",
|
|
2387
|
+
borderColor: "var(--sqm-primary-button-color-border)",
|
|
2388
|
+
borderRadius: "var(--sqm-primary-button-radius)",
|
|
2785
2389
|
},
|
|
2786
|
-
"
|
|
2787
|
-
|
|
2390
|
+
"&::part(base):hover": {
|
|
2391
|
+
backgroundColor: "var(--sqm-primary-button-background-hover)",
|
|
2392
|
+
borderColor: "var(--sqm-primary-button-border-color-hover)",
|
|
2393
|
+
color: "var(--sqm-primary-button-color-hover)",
|
|
2788
2394
|
},
|
|
2789
2395
|
},
|
|
2790
|
-
|
|
2791
|
-
marginTop: "var(--sl-spacing-large)",
|
|
2396
|
+
SecondaryButton: {
|
|
2792
2397
|
"&::part(base)": {
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
padding: "var(--sl-spacing-small)",
|
|
2801
|
-
whiteSpace: "nowrap",
|
|
2398
|
+
background: "var(--sqm-secondary-button-background)",
|
|
2399
|
+
color: "var(--sqm-secondary-button-color)",
|
|
2400
|
+
borderColor: "var(--sqm-secondary-button-color-border)",
|
|
2401
|
+
borderRadius: "var(--sqm-secondary-button-radius)",
|
|
2402
|
+
width: "max-content",
|
|
2403
|
+
display: "flex",
|
|
2404
|
+
margin: "auto",
|
|
2802
2405
|
},
|
|
2803
|
-
"
|
|
2804
|
-
|
|
2406
|
+
"&::part(base):hover": {
|
|
2407
|
+
backgroundColor: "var(--sqm-secondary-button-background-hover)",
|
|
2408
|
+
color: "var(--sqm-secondary-button-color-hover)",
|
|
2409
|
+
borderColor: "var(--sqm-secondary-button-border-color-hover)",
|
|
2805
2410
|
},
|
|
2806
2411
|
},
|
|
2807
|
-
InfoWarningIcon: {
|
|
2808
|
-
height: "26px",
|
|
2809
|
-
width: "26px",
|
|
2810
|
-
},
|
|
2811
|
-
PageDescriptionText: {
|
|
2812
|
-
color: "var(--sl-color-neutral-500)",
|
|
2813
|
-
fontSize: "var(--sl-font-size-medium)",
|
|
2814
|
-
marginBottom: "var(--sl-spacing-small)",
|
|
2815
|
-
},
|
|
2816
2412
|
};
|
|
2817
|
-
const sheet$
|
|
2818
|
-
const styleString$
|
|
2819
|
-
const vanillaStyle$
|
|
2413
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2414
|
+
const styleString$3 = sheet$3.toString();
|
|
2415
|
+
const vanillaStyle$2 = `
|
|
2820
2416
|
:host{
|
|
2821
2417
|
display: block;
|
|
2822
2418
|
}
|
|
2419
|
+
|
|
2420
|
+
hr {
|
|
2421
|
+
border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
a {
|
|
2425
|
+
color: inherit;
|
|
2426
|
+
text-decoration: underline;
|
|
2427
|
+
cursor: pointer;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2823
2430
|
* {
|
|
2824
2431
|
margin: 0;
|
|
2825
2432
|
padding: 0;
|
|
@@ -2830,11 +2437,11 @@ const vanillaStyle$3 = `
|
|
|
2830
2437
|
const IndirectTaxFormView = (props) => {
|
|
2831
2438
|
var _a;
|
|
2832
2439
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2833
|
-
const { classes } = sheet$
|
|
2440
|
+
const { classes } = sheet$3;
|
|
2834
2441
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2835
2442
|
index.h("style", { type: "text/css" },
|
|
2836
|
-
styleString$
|
|
2837
|
-
vanillaStyle$
|
|
2443
|
+
styleString$3,
|
|
2444
|
+
vanillaStyle$2),
|
|
2838
2445
|
index.h("div", { class: classes.TextContainer },
|
|
2839
2446
|
index.h("div", null,
|
|
2840
2447
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2842,35 +2449,29 @@ const IndirectTaxFormView = (props) => {
|
|
|
2842
2449
|
global.intl.formatMessage({
|
|
2843
2450
|
id: "formStep",
|
|
2844
2451
|
defaultMessage: text.formStep,
|
|
2845
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2452
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
2846
2453
|
index.h("h3", null, text.indirectTax),
|
|
2847
2454
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2848
2455
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2849
2456
|
states.loadingError && (index.h("div", null,
|
|
2850
|
-
index.h("
|
|
2851
|
-
index.h("
|
|
2852
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2853
|
-
index.h("br", null),
|
|
2457
|
+
index.h("sqm-form-message", { type: "error" },
|
|
2458
|
+
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
2854
2459
|
global.intl.formatMessage({
|
|
2855
2460
|
id: "loadingErrorAlertDescription",
|
|
2856
2461
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2857
2462
|
}, {
|
|
2858
2463
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2859
2464
|
})))),
|
|
2860
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
2861
|
-
index.h("
|
|
2862
|
-
index.h("strong", null, text.error.generalTitle),
|
|
2863
|
-
index.h("br", null),
|
|
2465
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
|
|
2466
|
+
index.h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
2864
2467
|
global.intl.formatMessage({
|
|
2865
2468
|
id: "generalDescription",
|
|
2866
2469
|
defaultMessage: text.error.generalDescription,
|
|
2867
2470
|
}, {
|
|
2868
2471
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2869
2472
|
}))),
|
|
2870
|
-
states.isPartner && (index.h("
|
|
2871
|
-
index.h("
|
|
2872
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2873
|
-
index.h("br", null),
|
|
2473
|
+
states.isPartner && (index.h("sqm-form-message", { type: "info" },
|
|
2474
|
+
index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
2874
2475
|
global.intl.formatMessage({
|
|
2875
2476
|
id: "isPartnerAlertDescription",
|
|
2876
2477
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -2891,17 +2492,15 @@ const IndirectTaxFormView = (props) => {
|
|
|
2891
2492
|
text.otherRegion,
|
|
2892
2493
|
index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2893
2494
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2894
|
-
index.h("
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2901
|
-
})),
|
|
2495
|
+
index.h("sqm-form-message", { type: "info" }, global.intl.formatMessage({
|
|
2496
|
+
id: "cannotChangeInfoAlert",
|
|
2497
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
2498
|
+
}, {
|
|
2499
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2500
|
+
})),
|
|
2902
2501
|
index.h("div", { class: classes.BtnContainer },
|
|
2903
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2904
|
-
index.h("sl-button", { type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2502
|
+
index.h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2503
|
+
index.h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2905
2504
|
};
|
|
2906
2505
|
|
|
2907
2506
|
const CONNECT_PARTNER = index_module.dist.gql `
|
|
@@ -2944,30 +2543,30 @@ function useIndirectTaxForm(props) {
|
|
|
2944
2543
|
var _a, _b, _c, _d, _e;
|
|
2945
2544
|
const user = index_module.J();
|
|
2946
2545
|
const locale = index_module.L();
|
|
2947
|
-
const formRef =
|
|
2948
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2949
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2546
|
+
const formRef = domContextHooks_module.useRef(null);
|
|
2547
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
2548
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
2950
2549
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2951
|
-
const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
|
|
2952
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2953
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
|
|
2550
|
+
const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
2551
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
2552
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
|
|
2954
2553
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2955
|
-
const _countries =
|
|
2956
|
-
const [loading, setLoading] =
|
|
2957
|
-
const [formState, setFormState] =
|
|
2958
|
-
const [errors, setErrors] =
|
|
2959
|
-
const [countrySearch, setCountrySearch] =
|
|
2960
|
-
const [filteredCountries, setFilteredCountries] =
|
|
2961
|
-
const [option, setOption] =
|
|
2554
|
+
const _countries = domContextHooks_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) => utils$1.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2555
|
+
const [loading, setLoading] = domContextHooks_module.useState(false);
|
|
2556
|
+
const [formState, setFormState] = domContextHooks_module.useState({});
|
|
2557
|
+
const [errors, setErrors] = domContextHooks_module.useState({});
|
|
2558
|
+
const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
|
|
2559
|
+
const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(_countries || []);
|
|
2560
|
+
const [option, setOption] = domContextHooks_module.useState("notRegistered");
|
|
2962
2561
|
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;
|
|
2963
|
-
|
|
2562
|
+
domContextHooks_module.useEffect(() => {
|
|
2964
2563
|
var _a;
|
|
2965
2564
|
if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
|
|
2966
2565
|
return;
|
|
2967
2566
|
const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
|
|
2968
2567
|
setOption(_option);
|
|
2969
2568
|
}, [publisher, _countries]);
|
|
2970
|
-
|
|
2569
|
+
domContextHooks_module.useEffect(() => {
|
|
2971
2570
|
if (countrySearch.trim() === "") {
|
|
2972
2571
|
setFilteredCountries(_countries || []);
|
|
2973
2572
|
}
|
|
@@ -2975,7 +2574,7 @@ function useIndirectTaxForm(props) {
|
|
|
2975
2574
|
setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
|
|
2976
2575
|
}
|
|
2977
2576
|
}, [countrySearch, _countries]);
|
|
2978
|
-
|
|
2577
|
+
domContextHooks_module.useEffect(() => {
|
|
2979
2578
|
var _a, _b;
|
|
2980
2579
|
const user = userData === null || userData === void 0 ? void 0 : userData.user;
|
|
2981
2580
|
if (!user)
|
|
@@ -3067,7 +2666,7 @@ function useIndirectTaxForm(props) {
|
|
|
3067
2666
|
await refetch();
|
|
3068
2667
|
const resultPublisher = (_e = (_d = (_c = result
|
|
3069
2668
|
.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;
|
|
3070
|
-
const hasValidCurrentDocument =
|
|
2669
|
+
const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3071
2670
|
// Fire form change event
|
|
3072
2671
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
3073
2672
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
@@ -3122,10 +2721,10 @@ function useIndirectTaxForm(props) {
|
|
|
3122
2721
|
})),
|
|
3123
2722
|
},
|
|
3124
2723
|
data: {
|
|
3125
|
-
esRegions:
|
|
2724
|
+
esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3126
2725
|
countries: filteredCountries,
|
|
3127
2726
|
allCountries: _countries,
|
|
3128
|
-
provinces:
|
|
2727
|
+
provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
|
|
3129
2728
|
},
|
|
3130
2729
|
text: props.getTextProps(),
|
|
3131
2730
|
refs: {
|
|
@@ -3292,7 +2891,7 @@ const IndirectTaxForm = class {
|
|
|
3292
2891
|
* @uiName Page description
|
|
3293
2892
|
*/
|
|
3294
2893
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
3295
|
-
|
|
2894
|
+
domContextHooks_module.h$1(this);
|
|
3296
2895
|
}
|
|
3297
2896
|
disconnectedCallback() { }
|
|
3298
2897
|
getTextProps() {
|
|
@@ -3327,7 +2926,7 @@ const IndirectTaxForm = class {
|
|
|
3327
2926
|
const props = index_module.isDemo()
|
|
3328
2927
|
? useDemoIndirectTaxForm(this)
|
|
3329
2928
|
: useIndirectTaxForm(this);
|
|
3330
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(
|
|
2929
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
|
|
3331
2930
|
hide: props.states.formState.checked !== "otherRegion",
|
|
3332
2931
|
disabled: props.states.disabled || props.states.isPartner,
|
|
3333
2932
|
formState: props.slotProps.formState,
|
|
@@ -3345,9 +2944,9 @@ const IndirectTaxForm = class {
|
|
|
3345
2944
|
}
|
|
3346
2945
|
};
|
|
3347
2946
|
function useDemoIndirectTaxForm(props) {
|
|
3348
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
3349
|
-
const [option, setOption] =
|
|
3350
|
-
const [demoFormState, setDemoFormState] =
|
|
2947
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
2948
|
+
const [option, setOption] = domContextHooks_module.useState("otherRegion");
|
|
2949
|
+
const [demoFormState, setDemoFormState] = domContextHooks_module.useState({});
|
|
3351
2950
|
return cjs.cjs({
|
|
3352
2951
|
states: {
|
|
3353
2952
|
step: "2",
|
|
@@ -3386,7 +2985,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3386
2985
|
setCountrySearch: (c) => console.log(c),
|
|
3387
2986
|
},
|
|
3388
2987
|
data: {
|
|
3389
|
-
esRegions:
|
|
2988
|
+
esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3390
2989
|
countries: [
|
|
3391
2990
|
{
|
|
3392
2991
|
countryCode: "CA",
|
|
@@ -3405,7 +3004,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3405
3004
|
displayName: "United States",
|
|
3406
3005
|
},
|
|
3407
3006
|
],
|
|
3408
|
-
provinces:
|
|
3007
|
+
provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
|
|
3409
3008
|
},
|
|
3410
3009
|
text: props.getTextProps(),
|
|
3411
3010
|
refs: {
|
|
@@ -3427,7 +3026,27 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3427
3026
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3428
3027
|
}
|
|
3429
3028
|
|
|
3430
|
-
const
|
|
3029
|
+
const mockInvoiceData = (count = 4) => {
|
|
3030
|
+
const data = [...Array(count)].map(() => getMockData());
|
|
3031
|
+
return { data };
|
|
3032
|
+
};
|
|
3033
|
+
const getMockData = () => {
|
|
3034
|
+
const today = luxon.luxon.DateTime.now();
|
|
3035
|
+
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3036
|
+
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3037
|
+
const indirectTax = Math.round(earnings * 0.2);
|
|
3038
|
+
return {
|
|
3039
|
+
downloadUrl: "https://example.com",
|
|
3040
|
+
dateCreated: today.toMillis(),
|
|
3041
|
+
invoiceId,
|
|
3042
|
+
program: "my-program",
|
|
3043
|
+
earnings: `$${earnings}.00`,
|
|
3044
|
+
indirectTax: `$${indirectTax}.00`,
|
|
3045
|
+
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3046
|
+
};
|
|
3047
|
+
};
|
|
3048
|
+
|
|
3049
|
+
const debug = domContextHooks_module.browser("sq:useInvoiceTable");
|
|
3431
3050
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
3432
3051
|
const GET_INVOICES = index_module.dist.gql `
|
|
3433
3052
|
query getUserTaxInfo($limit: Int!, $offset: Int!) {
|
|
@@ -3457,7 +3076,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3457
3076
|
var _a;
|
|
3458
3077
|
const user = index_module.J();
|
|
3459
3078
|
const locale = index_module.L();
|
|
3460
|
-
const [content, setContent] =
|
|
3079
|
+
const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
|
|
3461
3080
|
...state,
|
|
3462
3081
|
...next,
|
|
3463
3082
|
}), {
|
|
@@ -3501,7 +3120,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3501
3120
|
// Set the content to render and finish loading components
|
|
3502
3121
|
setContent({ columns, loading: false, page: states.currentPage });
|
|
3503
3122
|
}
|
|
3504
|
-
|
|
3123
|
+
domContextHooks_module.useEffect(() => {
|
|
3505
3124
|
setContent({ loading: true });
|
|
3506
3125
|
invoicesData && getComponentData(components);
|
|
3507
3126
|
}, [invoicesData, components, tick]);
|
|
@@ -3575,26 +3194,6 @@ async function tryMethod(c, callback) {
|
|
|
3575
3194
|
}
|
|
3576
3195
|
}
|
|
3577
3196
|
|
|
3578
|
-
const mockInvoiceData = (count = 4) => {
|
|
3579
|
-
const data = [...Array(count)].map(() => getMockData());
|
|
3580
|
-
return { data };
|
|
3581
|
-
};
|
|
3582
|
-
const getMockData = () => {
|
|
3583
|
-
const today = luxon.luxon.DateTime.now();
|
|
3584
|
-
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3585
|
-
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3586
|
-
const indirectTax = Math.round(earnings * 0.2);
|
|
3587
|
-
return {
|
|
3588
|
-
downloadUrl: "https://example.com",
|
|
3589
|
-
dateCreated: today.toMillis(),
|
|
3590
|
-
invoiceId,
|
|
3591
|
-
program: "my-program",
|
|
3592
|
-
earnings: `$${earnings}.00`,
|
|
3593
|
-
indirectTax: `$${indirectTax}.00`,
|
|
3594
|
-
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3595
|
-
};
|
|
3596
|
-
};
|
|
3597
|
-
|
|
3598
3197
|
const InvoiceTable = class {
|
|
3599
3198
|
constructor(hostRef) {
|
|
3600
3199
|
index.registerInstance(this, hostRef);
|
|
@@ -3628,7 +3227,7 @@ const InvoiceTable = class {
|
|
|
3628
3227
|
this.emptyStateHeader = "View your invoice details";
|
|
3629
3228
|
/** @uiName Empty invoice table description */
|
|
3630
3229
|
this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
3631
|
-
|
|
3230
|
+
domContextHooks_module.h$1(this);
|
|
3632
3231
|
}
|
|
3633
3232
|
disconnectedCallback() { }
|
|
3634
3233
|
render() {
|
|
@@ -3638,7 +3237,7 @@ const InvoiceTable = class {
|
|
|
3638
3237
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3639
3238
|
: useInvoiceTable(this, empty, loading);
|
|
3640
3239
|
reRender.useRequestRerender([this.perPage]);
|
|
3641
|
-
return (index.h(
|
|
3240
|
+
return (index.h(IndirectTaxDetailsView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3642
3241
|
}
|
|
3643
3242
|
};
|
|
3644
3243
|
function EmptySlot(props) {
|
|
@@ -3651,7 +3250,7 @@ function LoadingRow() {
|
|
|
3651
3250
|
return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
|
|
3652
3251
|
}
|
|
3653
3252
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
3654
|
-
const [content, setContent] =
|
|
3253
|
+
const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
|
|
3655
3254
|
...state,
|
|
3656
3255
|
...next,
|
|
3657
3256
|
}), {
|
|
@@ -3661,7 +3260,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3661
3260
|
page: 0,
|
|
3662
3261
|
});
|
|
3663
3262
|
const tick = reRender.useRerenderListener();
|
|
3664
|
-
const mockData =
|
|
3263
|
+
const mockData = domContextHooks_module.useMemo(() => { var _a; return ((_a = props.demoData) === null || _a === void 0 ? void 0 : _a.mockData) || mockInvoiceData(props.perPage); }, [props.perPage]);
|
|
3665
3264
|
const components = useChildElements.useChildElements();
|
|
3666
3265
|
async function getComponentData(components) {
|
|
3667
3266
|
const componentData = mockData.data.slice(0, props.perPage);
|
|
@@ -3704,7 +3303,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3704
3303
|
// Set the content to render and finish loading components
|
|
3705
3304
|
setContent({ columns, loading: false, page: 0 });
|
|
3706
3305
|
}
|
|
3707
|
-
|
|
3306
|
+
domContextHooks_module.useEffect(() => {
|
|
3708
3307
|
setContent({ loading: true });
|
|
3709
3308
|
(mockData === null || mockData === void 0 ? void 0 : mockData.data) && getComponentData(components);
|
|
3710
3309
|
}, [mockData === null || mockData === void 0 ? void 0 : mockData.data, components, tick]);
|
|
@@ -3740,22 +3339,10 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3740
3339
|
return demoProps;
|
|
3741
3340
|
}
|
|
3742
3341
|
|
|
3743
|
-
const InvoiceTableDataCell = class {
|
|
3744
|
-
constructor(hostRef) {
|
|
3745
|
-
index.registerInstance(this, hostRef);
|
|
3746
|
-
this.ignored = true;
|
|
3747
|
-
stencilHooks_module.h$1(this);
|
|
3748
|
-
}
|
|
3749
|
-
disconnectedCallback() { }
|
|
3750
|
-
render() {
|
|
3751
|
-
return this.data;
|
|
3752
|
-
}
|
|
3753
|
-
};
|
|
3754
|
-
|
|
3755
3342
|
const InvoiceTableDataColumn = class {
|
|
3756
3343
|
constructor(hostRef) {
|
|
3757
3344
|
index.registerInstance(this, hostRef);
|
|
3758
|
-
|
|
3345
|
+
domContextHooks_module.h$1(this);
|
|
3759
3346
|
}
|
|
3760
3347
|
disconnectedCallback() { }
|
|
3761
3348
|
async renderCell(data) {
|
|
@@ -3770,27 +3357,10 @@ const InvoiceTableDataColumn = class {
|
|
|
3770
3357
|
}
|
|
3771
3358
|
};
|
|
3772
3359
|
|
|
3773
|
-
const RewardTableDateCell = class {
|
|
3774
|
-
constructor(hostRef) {
|
|
3775
|
-
index.registerInstance(this, hostRef);
|
|
3776
|
-
this.ignored = true;
|
|
3777
|
-
this.locale = "en";
|
|
3778
|
-
stencilHooks_module.h$1(this);
|
|
3779
|
-
}
|
|
3780
|
-
disconnectedCallback() { }
|
|
3781
|
-
render() {
|
|
3782
|
-
var _a, _b;
|
|
3783
|
-
const date = !this.date
|
|
3784
|
-
? "-"
|
|
3785
|
-
: (_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);
|
|
3786
|
-
return date;
|
|
3787
|
-
}
|
|
3788
|
-
};
|
|
3789
|
-
|
|
3790
3360
|
const InvoiceTableDateColumn = class {
|
|
3791
3361
|
constructor(hostRef) {
|
|
3792
3362
|
index.registerInstance(this, hostRef);
|
|
3793
|
-
|
|
3363
|
+
domContextHooks_module.h$1(this);
|
|
3794
3364
|
}
|
|
3795
3365
|
disconnectedCallback() { }
|
|
3796
3366
|
async renderCell(data, options) {
|
|
@@ -3805,25 +3375,10 @@ const InvoiceTableDateColumn = class {
|
|
|
3805
3375
|
}
|
|
3806
3376
|
};
|
|
3807
3377
|
|
|
3808
|
-
const InvoiceTableDownloadCell = class {
|
|
3809
|
-
constructor(hostRef) {
|
|
3810
|
-
index.registerInstance(this, hostRef);
|
|
3811
|
-
this.ignored = true;
|
|
3812
|
-
stencilHooks_module.h$1(this);
|
|
3813
|
-
}
|
|
3814
|
-
disconnectedCallback() { }
|
|
3815
|
-
render() {
|
|
3816
|
-
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3817
|
-
cursor: pointer;
|
|
3818
|
-
}`;
|
|
3819
|
-
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" }))))));
|
|
3820
|
-
}
|
|
3821
|
-
};
|
|
3822
|
-
|
|
3823
3378
|
const InvoiceTableGenericColumn = class {
|
|
3824
3379
|
constructor(hostRef) {
|
|
3825
3380
|
index.registerInstance(this, hostRef);
|
|
3826
|
-
|
|
3381
|
+
domContextHooks_module.h$1(this);
|
|
3827
3382
|
}
|
|
3828
3383
|
disconnectedCallback() { }
|
|
3829
3384
|
async renderCell(data) {
|
|
@@ -3842,17 +3397,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3842
3397
|
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" }),
|
|
3843
3398
|
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" })));
|
|
3844
3399
|
|
|
3845
|
-
const style$
|
|
3400
|
+
const style$4 = {
|
|
3846
3401
|
CardContainer: {
|
|
3847
3402
|
display: "grid",
|
|
3848
3403
|
gridTemplateColumns: "1fr",
|
|
3849
3404
|
gridGap: "var(--sl-spacing-large)",
|
|
3850
|
-
background: "
|
|
3405
|
+
background: "inherit",
|
|
3851
3406
|
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
3852
|
-
borderRadius: "
|
|
3407
|
+
borderRadius: "var(--sqm-border-radius-normal)",
|
|
3853
3408
|
padding: "var(--sl-spacing-large)",
|
|
3854
3409
|
minHeight: "150px",
|
|
3855
|
-
border: "1px solid var(--
|
|
3410
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3856
3411
|
maxWidth: "450px",
|
|
3857
3412
|
},
|
|
3858
3413
|
StatusContainer: {
|
|
@@ -3862,7 +3417,7 @@ const style$5 = {
|
|
|
3862
3417
|
},
|
|
3863
3418
|
MainCurrencyLabel: {
|
|
3864
3419
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
3865
|
-
color: "var(--
|
|
3420
|
+
color: "var(--sqm-text-subdued)",
|
|
3866
3421
|
},
|
|
3867
3422
|
MainCurrency: {
|
|
3868
3423
|
margin: 0,
|
|
@@ -3871,12 +3426,12 @@ const style$5 = {
|
|
|
3871
3426
|
},
|
|
3872
3427
|
SubduedRegularText: {
|
|
3873
3428
|
fontSize: "var(--sl-font-size-small)",
|
|
3874
|
-
color: "var(--
|
|
3429
|
+
color: "var(--sqm-text-subdued)",
|
|
3875
3430
|
margin: 0,
|
|
3876
3431
|
width: "auto",
|
|
3877
3432
|
},
|
|
3878
3433
|
PaypalEmail: {
|
|
3879
|
-
borderRight: "1px solid var(--
|
|
3434
|
+
borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3880
3435
|
paddingRight: "var(--sl-spacing-small)",
|
|
3881
3436
|
"@media (max-width: 499px)": {
|
|
3882
3437
|
borderRight: "none",
|
|
@@ -3884,7 +3439,7 @@ const style$5 = {
|
|
|
3884
3439
|
},
|
|
3885
3440
|
},
|
|
3886
3441
|
PaypalDetailsContainer: {
|
|
3887
|
-
color: "var(--
|
|
3442
|
+
color: "var(--sqm-text-subdued)",
|
|
3888
3443
|
display: "flex",
|
|
3889
3444
|
gap: "var(--sl-spacing-small)",
|
|
3890
3445
|
justifyContent: "flex-start",
|
|
@@ -3905,7 +3460,7 @@ const style$5 = {
|
|
|
3905
3460
|
},
|
|
3906
3461
|
},
|
|
3907
3462
|
AccountDetailsContainer: {
|
|
3908
|
-
color: "var(--
|
|
3463
|
+
color: "var(--sqm-text-subdued)",
|
|
3909
3464
|
display: "flex",
|
|
3910
3465
|
gap: "var(--sl-spacing-small)",
|
|
3911
3466
|
justifyContent: "flex-start",
|
|
@@ -3918,7 +3473,7 @@ const style$5 = {
|
|
|
3918
3473
|
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
3919
3474
|
paddingTop: "var(--sq-spacing-xx-small)",
|
|
3920
3475
|
"& > :not(:last-child)": {
|
|
3921
|
-
borderRight: "1px solid var(--
|
|
3476
|
+
borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3922
3477
|
},
|
|
3923
3478
|
"& > :nth-child(3)": {
|
|
3924
3479
|
border: "none",
|
|
@@ -3935,7 +3490,7 @@ const style$5 = {
|
|
|
3935
3490
|
},
|
|
3936
3491
|
W9Container: {
|
|
3937
3492
|
paddingTop: "var(--sl-spacing-large)",
|
|
3938
|
-
borderTop: "1px solid var(--
|
|
3493
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3939
3494
|
},
|
|
3940
3495
|
SkeletonOne: {
|
|
3941
3496
|
width: "25%",
|
|
@@ -3949,25 +3504,21 @@ const style$5 = {
|
|
|
3949
3504
|
width: "50%",
|
|
3950
3505
|
height: "34px",
|
|
3951
3506
|
},
|
|
3952
|
-
|
|
3507
|
+
SuccessBadge: {
|
|
3953
3508
|
"&::part(base)": {
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
"& sl-icon": {
|
|
3959
|
-
margin: 0,
|
|
3960
|
-
},
|
|
3961
|
-
"& sl-icon::part(base)": {
|
|
3962
|
-
color: "var(--sl-color-warning-500)",
|
|
3963
|
-
margin: 0,
|
|
3509
|
+
textAlign: "center",
|
|
3510
|
+
whiteSpace: "pre-line",
|
|
3511
|
+
background: "var(--sqm-success-color-icon)",
|
|
3512
|
+
color: "var(--sl-color-white)",
|
|
3964
3513
|
},
|
|
3965
3514
|
},
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3515
|
+
PrimaryBadge: {
|
|
3516
|
+
"&::part(base)": {
|
|
3517
|
+
textAlign: "center",
|
|
3518
|
+
whiteSpace: "pre-line",
|
|
3519
|
+
background: "var(--sqm-informative-color-icon)",
|
|
3520
|
+
color: "var(--sl-color-white)",
|
|
3521
|
+
},
|
|
3971
3522
|
},
|
|
3972
3523
|
Container: {
|
|
3973
3524
|
display: "flex",
|
|
@@ -3976,7 +3527,7 @@ const style$5 = {
|
|
|
3976
3527
|
},
|
|
3977
3528
|
};
|
|
3978
3529
|
function PayoutDetailsCardView(props) {
|
|
3979
|
-
const sheet = JSS.createStyleSheet(style$
|
|
3530
|
+
const sheet = JSS.createStyleSheet(style$4);
|
|
3980
3531
|
const styleString = sheet.toString();
|
|
3981
3532
|
const { classes } = sheet;
|
|
3982
3533
|
const { states, text } = props;
|
|
@@ -3990,13 +3541,14 @@ function PayoutDetailsCardView(props) {
|
|
|
3990
3541
|
};
|
|
3991
3542
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3992
3543
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
3544
|
+
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
3993
3545
|
const statusText = global.intl.formatMessage({
|
|
3994
3546
|
id: "badgeText",
|
|
3995
3547
|
defaultMessage: statusBadgeText,
|
|
3996
3548
|
}, {
|
|
3997
3549
|
badgeText: status,
|
|
3998
3550
|
});
|
|
3999
|
-
return (index.h("sl-badge", { pill: true,
|
|
3551
|
+
return (index.h("sl-badge", { pill: true, class: badgeClass }, statusText));
|
|
4000
3552
|
};
|
|
4001
3553
|
const thresholdText = global.intl.formatMessage({
|
|
4002
3554
|
id: "thresholdText",
|
|
@@ -4027,8 +3579,8 @@ function PayoutDetailsCardView(props) {
|
|
|
4027
3579
|
|
|
4028
3580
|
function usePayoutDetailsCard(props) {
|
|
4029
3581
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
4030
|
-
const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
4031
|
-
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;
|
|
3582
|
+
const { data: data$1, loading } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
3583
|
+
const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
4032
3584
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
4033
3585
|
var _a;
|
|
4034
3586
|
const currentDay = luxon.luxon.DateTime.now().day;
|
|
@@ -4044,1364 +3596,126 @@ function usePayoutDetailsCard(props) {
|
|
|
4044
3596
|
return currentDay <= 15
|
|
4045
3597
|
? luxon.luxon.DateTime.now()
|
|
4046
3598
|
.plus({ day: 15 - currentDay })
|
|
4047
|
-
.toFormat("LLL dd, yyyy")
|
|
4048
|
-
: luxon.luxon.DateTime.now()
|
|
4049
|
-
.plus({ month: 1 })
|
|
4050
|
-
.startOf("month")
|
|
4051
|
-
.plus({ day: 14 })
|
|
4052
|
-
.toFormat("LLL dd, yyyy");
|
|
4053
|
-
}
|
|
4054
|
-
else {
|
|
4055
|
-
global.intl.formatMessage({
|
|
4056
|
-
id: `nextPayoutBalance`,
|
|
4057
|
-
defaultMessage: props.thresholdPayoutText,
|
|
4058
|
-
}, {
|
|
4059
|
-
thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
|
|
4060
|
-
});
|
|
4061
|
-
}
|
|
4062
|
-
}
|
|
4063
|
-
const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
|
|
4064
|
-
const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
|
|
4065
|
-
return {
|
|
4066
|
-
states: {
|
|
4067
|
-
loading,
|
|
4068
|
-
thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
|
|
4069
|
-
: undefined,
|
|
4070
|
-
balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
|
|
4071
|
-
badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
|
|
4072
|
-
? "thresholdPayout"
|
|
4073
|
-
: isPayoutToday
|
|
4074
|
-
? "payoutToday"
|
|
4075
|
-
: "nextPayout",
|
|
4076
|
-
payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
|
|
4077
|
-
error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
|
|
4078
|
-
paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
|
|
4079
|
-
cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
|
|
4080
|
-
nextPayoutDate: paymentDay,
|
|
4081
|
-
},
|
|
4082
|
-
text: props.getTextProps(),
|
|
4083
|
-
};
|
|
4084
|
-
}
|
|
4085
|
-
|
|
4086
|
-
const PayoutDetailsCard = class {
|
|
4087
|
-
constructor(hostRef) {
|
|
4088
|
-
index.registerInstance(this, hostRef);
|
|
4089
|
-
/**
|
|
4090
|
-
* Badge text indicating payout status
|
|
4091
|
-
* @uiName Payout badge status text
|
|
4092
|
-
*/
|
|
4093
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4094
|
-
/**
|
|
4095
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4096
|
-
* @uiName Payout schedule by threshold text
|
|
4097
|
-
*/
|
|
4098
|
-
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
4099
|
-
/**
|
|
4100
|
-
* Shown before the participant’s bank account information.
|
|
4101
|
-
* @uiName Bank account field label
|
|
4102
|
-
*/
|
|
4103
|
-
this.accountText = "Account";
|
|
4104
|
-
/**
|
|
4105
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
4106
|
-
* @uiName Payout missing information subtext
|
|
4107
|
-
*/
|
|
4108
|
-
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
4109
|
-
stencilHooks_module.h$1(this);
|
|
4110
|
-
}
|
|
4111
|
-
disconnectedCallback() { }
|
|
4112
|
-
getTextProps() {
|
|
4113
|
-
const props = utils.getProps(this);
|
|
4114
|
-
return {
|
|
4115
|
-
...props,
|
|
4116
|
-
};
|
|
4117
|
-
}
|
|
4118
|
-
render() {
|
|
4119
|
-
const props = index_module.isDemo()
|
|
4120
|
-
? useDemoPayoutDetailsCard(this)
|
|
4121
|
-
: usePayoutDetailsCard(this);
|
|
4122
|
-
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
4123
|
-
}
|
|
4124
|
-
};
|
|
4125
|
-
function useDemoPayoutDetailsCard(props) {
|
|
4126
|
-
return cjs.cjs({
|
|
4127
|
-
states: {
|
|
4128
|
-
loading: false,
|
|
4129
|
-
error: false,
|
|
4130
|
-
thresholdBalance: "$50",
|
|
4131
|
-
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
4132
|
-
badgeStatus: "nextPayout",
|
|
4133
|
-
payoutType: "BANK_TRANSFER",
|
|
4134
|
-
nextPayoutDate: "March 14, 2024",
|
|
4135
|
-
paypalEmailAddress: "joesmith@example.com",
|
|
4136
|
-
otherCurrencies: false,
|
|
4137
|
-
hasW9Pending: false,
|
|
4138
|
-
hasDatePending: true,
|
|
4139
|
-
cardNumberPreview: "XX2381",
|
|
4140
|
-
balance: "20.00 USD",
|
|
4141
|
-
},
|
|
4142
|
-
text: props.getTextProps(),
|
|
4143
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4144
|
-
}
|
|
4145
|
-
|
|
4146
|
-
const TableCell = class {
|
|
4147
|
-
constructor(hostRef) {
|
|
4148
|
-
index.registerInstance(this, hostRef);
|
|
4149
|
-
/** @uiName Column span */
|
|
4150
|
-
this.colspan = 1;
|
|
4151
|
-
/** @uiName Padding */
|
|
4152
|
-
this.padding = "15px 10px";
|
|
4153
|
-
}
|
|
4154
|
-
render() {
|
|
4155
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
4156
|
-
}
|
|
4157
|
-
};
|
|
4158
|
-
|
|
4159
|
-
const TableRow = class {
|
|
4160
|
-
constructor(hostRef) {
|
|
4161
|
-
index.registerInstance(this, hostRef);
|
|
4162
|
-
/**
|
|
4163
|
-
* @uiName Border
|
|
4164
|
-
*/
|
|
4165
|
-
this.border = "1px solid #EAEAEA";
|
|
4166
|
-
}
|
|
4167
|
-
render() {
|
|
4168
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
4169
|
-
}
|
|
4170
|
-
};
|
|
4171
|
-
|
|
4172
|
-
function getCurrentStep(user) {
|
|
4173
|
-
var _a, _b;
|
|
4174
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4175
|
-
return "/1";
|
|
4176
|
-
}
|
|
4177
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
4178
|
-
// If they do have a required document, look at current document
|
|
4179
|
-
if (requiredTaxDocumentType && !currentTaxDocument)
|
|
4180
|
-
return "/3";
|
|
4181
|
-
if (!withdrawalSettings && brandedSignup)
|
|
4182
|
-
return "/4";
|
|
4183
|
-
return "/dashboard";
|
|
4184
|
-
}
|
|
4185
|
-
function useTaxAndCash() {
|
|
4186
|
-
var _a, _b, _c, _d, _e;
|
|
4187
|
-
const host = index_module._();
|
|
4188
|
-
const user = index_module.J();
|
|
4189
|
-
const locale = index_module.L();
|
|
4190
|
-
// State for current step of form
|
|
4191
|
-
const [step, setStep] = index_module.In({
|
|
4192
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4193
|
-
initialValue: "/loading",
|
|
4194
|
-
});
|
|
4195
|
-
// State for when to hide steps, or override certain actions
|
|
4196
|
-
const [context, _setContext] = index_module.In({
|
|
4197
|
-
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4198
|
-
initialValue: {},
|
|
4199
|
-
});
|
|
4200
|
-
// State to carry user form information into step 2
|
|
4201
|
-
const [userFormContext, _setUserFormContext] = index_module.In({
|
|
4202
|
-
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4203
|
-
initialValue: {
|
|
4204
|
-
firstName: undefined,
|
|
4205
|
-
lastName: undefined,
|
|
4206
|
-
email: undefined,
|
|
4207
|
-
countryCode: undefined,
|
|
4208
|
-
currency: undefined,
|
|
4209
|
-
},
|
|
4210
|
-
});
|
|
4211
|
-
const [_currenciesContext, setCurrenciesContext] = index_module.In({
|
|
4212
|
-
namespace: CURRENCIES_NAMESPACE,
|
|
4213
|
-
initialValue: [],
|
|
4214
|
-
});
|
|
4215
|
-
const [_countriesContext, _setCountriesContext] = index_module.In({
|
|
4216
|
-
namespace: COUNTRIES_NAMESPACE,
|
|
4217
|
-
initialValue: [],
|
|
4218
|
-
});
|
|
4219
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
|
|
4220
|
-
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4221
|
-
initialValue: [],
|
|
4222
|
-
});
|
|
4223
|
-
const { data, errors } = index_module.Sn({
|
|
4224
|
-
namespace: USER_QUERY_NAMESPACE,
|
|
4225
|
-
query: GET_USER,
|
|
4226
|
-
skip: !user,
|
|
4227
|
-
options: {
|
|
4228
|
-
batch: false,
|
|
4229
|
-
},
|
|
4230
|
-
});
|
|
4231
|
-
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) ||
|
|
4232
|
-
userFormContext.countryCode;
|
|
4233
|
-
index_module.Sn({
|
|
4234
|
-
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4235
|
-
query: GET_COUNTRIES,
|
|
4236
|
-
skip: !user,
|
|
4237
|
-
});
|
|
4238
|
-
const { data: financeNetworkData, refetch } = index_module.Sn({
|
|
4239
|
-
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4240
|
-
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4241
|
-
skip: !user,
|
|
4242
|
-
variables: {
|
|
4243
|
-
filter: getFinanceNetworkFilter(),
|
|
4244
|
-
},
|
|
4245
|
-
});
|
|
4246
|
-
const { data: currenciesData } = index_module.Sn({
|
|
4247
|
-
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4248
|
-
query: GET_CURRENCIES,
|
|
4249
|
-
skip: !user,
|
|
4250
|
-
variables: {
|
|
4251
|
-
locale,
|
|
4252
|
-
},
|
|
4253
|
-
});
|
|
4254
|
-
const supportedCurrencies = stencilHooks_module.useMemo(() => {
|
|
4255
|
-
var _a, _b;
|
|
4256
|
-
// Filter out any currencies not supported by finance network settings
|
|
4257
|
-
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) => {
|
|
4258
|
-
var _a, _b;
|
|
4259
|
-
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);
|
|
4260
|
-
// Currency not in supported list
|
|
4261
|
-
if (!currency)
|
|
4262
|
-
return agg;
|
|
4263
|
-
// Currency already added to list
|
|
4264
|
-
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4265
|
-
return agg;
|
|
4266
|
-
// Currency not supported by selected country
|
|
4267
|
-
if (userFormContext.countryCode &&
|
|
4268
|
-
settings.countryCode !== countryCode)
|
|
4269
|
-
return agg;
|
|
4270
|
-
return [...agg, currency];
|
|
4271
|
-
}, []);
|
|
4272
|
-
return allValidCurrencies;
|
|
4273
|
-
}, [financeNetworkData, countryCode]);
|
|
4274
|
-
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4275
|
-
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4276
|
-
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4277
|
-
// filter out any duplicate countries and null countryCode
|
|
4278
|
-
const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4279
|
-
const _topCountries = ["CA", "GB", "US"];
|
|
4280
|
-
const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
|
|
4281
|
-
.map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
|
|
4282
|
-
.sort(sortByName)
|
|
4283
|
-
.reduce((prev, countryObj) => {
|
|
4284
|
-
if (_topCountries.includes(countryObj.countryCode))
|
|
4285
|
-
return [countryObj, ...prev];
|
|
4286
|
-
return [...prev, countryObj];
|
|
4287
|
-
}, []), [availableCountries]);
|
|
4288
|
-
stencilHooks_module.useEffect(() => {
|
|
4289
|
-
if (sortedCountries)
|
|
4290
|
-
setSortedCountriesContext(sortedCountries);
|
|
4291
|
-
}, [sortedCountries]);
|
|
4292
|
-
stencilHooks_module.useEffect(() => {
|
|
4293
|
-
if (supportedCurrencies)
|
|
4294
|
-
setCurrenciesContext(supportedCurrencies);
|
|
4295
|
-
}, [supportedCurrencies]);
|
|
4296
|
-
stencilHooks_module.useEffect(() => {
|
|
4297
|
-
if (errors) {
|
|
4298
|
-
setStep("/error");
|
|
4299
|
-
return;
|
|
4300
|
-
}
|
|
4301
|
-
if (!host || !user)
|
|
4302
|
-
return;
|
|
4303
|
-
if (data) {
|
|
4304
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4305
|
-
if (!user || step !== "/loading")
|
|
4306
|
-
return;
|
|
4307
|
-
const currentStep = getCurrentStep(user);
|
|
4308
|
-
setStep(currentStep);
|
|
4309
|
-
}
|
|
4310
|
-
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4311
|
-
function getFinanceNetworkFilter() {
|
|
4312
|
-
var _a, _b, _c;
|
|
4313
|
-
if (step === "/1")
|
|
4314
|
-
return {};
|
|
4315
|
-
if (step === "/4")
|
|
4316
|
-
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 };
|
|
4317
|
-
if (countryCode)
|
|
4318
|
-
return {
|
|
4319
|
-
countryCode_eq: countryCode,
|
|
4320
|
-
};
|
|
4321
|
-
return {};
|
|
4322
|
-
}
|
|
4323
|
-
return {
|
|
4324
|
-
step,
|
|
4325
|
-
setStep,
|
|
4326
|
-
context,
|
|
4327
|
-
namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
|
|
4328
|
-
loading: step === "/loading",
|
|
4329
|
-
};
|
|
4330
|
-
}
|
|
4331
|
-
|
|
4332
|
-
const TaxAndCashMonolith = class {
|
|
4333
|
-
constructor(hostRef) {
|
|
4334
|
-
index.registerInstance(this, hostRef);
|
|
4335
|
-
/*---------------------------------------------------------------------------------
|
|
4336
|
-
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4337
|
-
-----------------------------------------------------------------------------------*/
|
|
4338
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4339
|
-
STEP 1 PROPS:
|
|
4340
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4341
|
-
/**
|
|
4342
|
-
* @uiName First name field label
|
|
4343
|
-
* @uiGroup Step 1 Properties
|
|
4344
|
-
*/
|
|
4345
|
-
this.step1_firstName = "First name";
|
|
4346
|
-
/**
|
|
4347
|
-
* @uiName Last name field label
|
|
4348
|
-
* @uiGroup Step 1 Properties
|
|
4349
|
-
*/
|
|
4350
|
-
this.step1_lastName = "Last name";
|
|
4351
|
-
/**
|
|
4352
|
-
* @uiName Email field label
|
|
4353
|
-
* @uiGroup Step 1 Properties
|
|
4354
|
-
*/
|
|
4355
|
-
this.step1_email = "Email";
|
|
4356
|
-
/**
|
|
4357
|
-
* @uiName Country field label
|
|
4358
|
-
* @uiGroup Step 1 Properties
|
|
4359
|
-
*/
|
|
4360
|
-
this.step1_country = "Country";
|
|
4361
|
-
/**
|
|
4362
|
-
* @uiName Phone number field label
|
|
4363
|
-
* @uiGroup Step 1 Properties
|
|
4364
|
-
*/
|
|
4365
|
-
this.step1_phoneNumber = "Phone number";
|
|
4366
|
-
/**
|
|
4367
|
-
* @uiName Address field label
|
|
4368
|
-
* @uiGroup Step 1 Properties
|
|
4369
|
-
*/
|
|
4370
|
-
this.step1_address = "Address";
|
|
4371
|
-
/**
|
|
4372
|
-
* @uiName City field label
|
|
4373
|
-
* @uiGroup Step 1 Properties
|
|
4374
|
-
*/
|
|
4375
|
-
this.step1_city = "City";
|
|
4376
|
-
/**
|
|
4377
|
-
* @uiName State field label for states
|
|
4378
|
-
* @uiGroup Step 1 Properties
|
|
4379
|
-
*/
|
|
4380
|
-
this.step1_state = "State";
|
|
4381
|
-
/**
|
|
4382
|
-
* @uiName State field label for provinces
|
|
4383
|
-
* @uiGroup Step 1 Properties
|
|
4384
|
-
*/
|
|
4385
|
-
this.step1_province = "Province";
|
|
4386
|
-
/**
|
|
4387
|
-
* @uiName State field label for regions
|
|
4388
|
-
* @uiGroup Step 1 Properties
|
|
4389
|
-
*/
|
|
4390
|
-
this.step1_region = "Region";
|
|
4391
|
-
/**
|
|
4392
|
-
* @uiName Postal code field label
|
|
4393
|
-
* @uiGroup Step 1 Properties
|
|
4394
|
-
*/
|
|
4395
|
-
this.step1_postalCode = "Postal code";
|
|
4396
|
-
/**
|
|
4397
|
-
* @uiName Currency field label
|
|
4398
|
-
* @uiGroup Step 1 Properties
|
|
4399
|
-
*/
|
|
4400
|
-
this.step1_currency = "Currency";
|
|
4401
|
-
/**
|
|
4402
|
-
* @uiName Currency field help text
|
|
4403
|
-
* @uiGroup Step 1 Properties
|
|
4404
|
-
*/
|
|
4405
|
-
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4406
|
-
/**
|
|
4407
|
-
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4408
|
-
* @uiName Terms and conditions checkbox
|
|
4409
|
-
* @uiGroup Step 1 Properties
|
|
4410
|
-
*/
|
|
4411
|
-
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4412
|
-
/**
|
|
4413
|
-
* @uiName Step 1 title
|
|
4414
|
-
* @uiGroup Step 1 Properties
|
|
4415
|
-
*/
|
|
4416
|
-
this.step1_personalInformation = "Personal Information";
|
|
4417
|
-
/**
|
|
4418
|
-
* The link text that appears in the terms and conditions checkbox
|
|
4419
|
-
* @uiName Terms and conditions text
|
|
4420
|
-
* @uiGroup Step 1 Properties
|
|
4421
|
-
* @uiWidget textArea
|
|
4422
|
-
*/
|
|
4423
|
-
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4424
|
-
/**
|
|
4425
|
-
* The link that appears in the terms and conditions checkbox
|
|
4426
|
-
* @uiName Terms and conditions link
|
|
4427
|
-
* @uiGroup Step 1 Properties
|
|
4428
|
-
*/
|
|
4429
|
-
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4430
|
-
/**
|
|
4431
|
-
* Placeholder text displayed in the currency search dropdown
|
|
4432
|
-
* @uiName Currency field placeholder text
|
|
4433
|
-
* @uiGroup Step 1 Properties
|
|
4434
|
-
*/
|
|
4435
|
-
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4436
|
-
/**
|
|
4437
|
-
|
|
4438
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4439
|
-
STEP 2 PROPS:
|
|
4440
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4441
|
-
/**
|
|
4442
|
-
* @uiName Step 2 title
|
|
4443
|
-
* @uiGroup Step 2 Properties
|
|
4444
|
-
*/
|
|
4445
|
-
this.step2_indirectTax = "Indirect Tax";
|
|
4446
|
-
/**
|
|
4447
|
-
* Displayed under the title of this step.
|
|
4448
|
-
* @uiName Step 2 description
|
|
4449
|
-
* @uiGroup Step 2 Properties
|
|
4450
|
-
* @uiWidget textArea
|
|
4451
|
-
*/
|
|
4452
|
-
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.";
|
|
4453
|
-
/**
|
|
4454
|
-
* Displayed with indirect tax registration options.
|
|
4455
|
-
* @uiName Indirect tax details section title
|
|
4456
|
-
* @uiGroup Step 2 Properties
|
|
4457
|
-
*/
|
|
4458
|
-
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4459
|
-
/**
|
|
4460
|
-
* @uiName Registered for indirect tax option
|
|
4461
|
-
* @uiGroup Step 2 Properties
|
|
4462
|
-
* @uiWidget textArea
|
|
4463
|
-
*
|
|
4464
|
-
*/
|
|
4465
|
-
this.step2_otherRegion = "Registered for indirect tax";
|
|
4466
|
-
/**
|
|
4467
|
-
* Selecting this option will display fields to enter indirect tax details.
|
|
4468
|
-
* @uiName Registered for indirect tax option description
|
|
4469
|
-
* @uiGroup Step 2 Properties
|
|
4470
|
-
*/
|
|
4471
|
-
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4472
|
-
/**
|
|
4473
|
-
* @uiName Not registered for indirect tax option
|
|
4474
|
-
* @uiGroup Step 2 Properties
|
|
4475
|
-
* @uiWidget textArea
|
|
4476
|
-
*/
|
|
4477
|
-
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4478
|
-
/**
|
|
4479
|
-
* Participants based in the US are considered not registered.
|
|
4480
|
-
* @uiName Not registered for indirect tax option description
|
|
4481
|
-
* @uiGroup Step 2 Properties
|
|
4482
|
-
*/
|
|
4483
|
-
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4484
|
-
/**
|
|
4485
|
-
* @uiName Region of indirect tax field label
|
|
4486
|
-
* @uiGroup Step 2 Properties
|
|
4487
|
-
*/
|
|
4488
|
-
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4489
|
-
/**
|
|
4490
|
-
* @uiName Indirect tax number field label
|
|
4491
|
-
* @uiGroup Step 2 Properties
|
|
4492
|
-
*/
|
|
4493
|
-
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4494
|
-
/**
|
|
4495
|
-
* @uiName Province field label
|
|
4496
|
-
* @uiGroup Step 2 Properties
|
|
4497
|
-
*/
|
|
4498
|
-
this.step2_province = "Province";
|
|
4499
|
-
/**
|
|
4500
|
-
* @uiName Missing indirect tax number error message
|
|
4501
|
-
* @uiGroup Step 2 Properties
|
|
4502
|
-
*/
|
|
4503
|
-
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";
|
|
4504
|
-
/**
|
|
4505
|
-
* Displayed to participants registered for QST.
|
|
4506
|
-
* @uiName QST number field label
|
|
4507
|
-
* @uiGroup Step 2 Properties
|
|
4508
|
-
*/
|
|
4509
|
-
this.step2_qstNumber = "QST number";
|
|
4510
|
-
/**
|
|
4511
|
-
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4512
|
-
* @uiName QST tax checkbox
|
|
4513
|
-
* @uiGroup Step 2 Properties
|
|
4514
|
-
*/
|
|
4515
|
-
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4516
|
-
/**
|
|
4517
|
-
* Displayed to participants registered for indirect tax in Spain.
|
|
4518
|
-
* @uiName Spain income tax checkbox
|
|
4519
|
-
* @uiGroup Step 2 Properties
|
|
4520
|
-
* @uiWidget textArea
|
|
4521
|
-
*/
|
|
4522
|
-
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.";
|
|
4523
|
-
/**
|
|
4524
|
-
* Displayed to participants registered in Spain.
|
|
4525
|
-
* @uiName Sub-region of indirect tax field label
|
|
4526
|
-
* @uiGroup Step 2 Properties
|
|
4527
|
-
*/
|
|
4528
|
-
this.step2_subRegion = "Sub-region";
|
|
4529
|
-
/**
|
|
4530
|
-
* @uiName Income tax field label
|
|
4531
|
-
* @uiGroup Step 2 Properties
|
|
4532
|
-
*/
|
|
4533
|
-
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4534
|
-
/**
|
|
4535
|
-
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4536
|
-
* @uiName Submission confirmation alert
|
|
4537
|
-
* @uiGroup Step 2 Properties
|
|
4538
|
-
* @uiWidget textArea
|
|
4539
|
-
*/
|
|
4540
|
-
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.";
|
|
4541
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4542
|
-
STEP 3 PROPS:
|
|
4543
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4544
|
-
/**
|
|
4545
|
-
* @uiName Step 3 title
|
|
4546
|
-
* @uiGroup Step 3 Properties
|
|
4547
|
-
*/
|
|
4548
|
-
this.step3_taxForm = "Tax form";
|
|
4549
|
-
/**
|
|
4550
|
-
* Display the type of tax form that the participant must submit.
|
|
4551
|
-
* @uiName Tax form name
|
|
4552
|
-
* @uiGroup Step 3 Properties
|
|
4553
|
-
*/
|
|
4554
|
-
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4555
|
-
/**
|
|
4556
|
-
* @uiName Participant type field label
|
|
4557
|
-
* @uiGroup Step 3 Properties
|
|
4558
|
-
*/
|
|
4559
|
-
this.step3_participantType = "Participant type";
|
|
4560
|
-
/**
|
|
4561
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4562
|
-
* @uiName Business representative participant type label
|
|
4563
|
-
* @uiGroup Step 3 Properties
|
|
4564
|
-
*/
|
|
4565
|
-
this.step3_businessEntity = "I represent a business";
|
|
4566
|
-
/**
|
|
4567
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4568
|
-
* @uiName Individual participant type label
|
|
4569
|
-
* @uiGroup Step 3 Properties
|
|
4570
|
-
*/
|
|
4571
|
-
this.step3_individualParticipant = "I am an individual participant";
|
|
4572
|
-
/**
|
|
4573
|
-
* Displayed at the top of the page to participants based in the US.
|
|
4574
|
-
* @uiName W-9 tax form description
|
|
4575
|
-
* @uiGroup Step 3 Properties
|
|
4576
|
-
* @uiWidget textArea
|
|
4577
|
-
*/
|
|
4578
|
-
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4579
|
-
/**
|
|
4580
|
-
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4581
|
-
* @uiName W-8 BEN tax form description
|
|
4582
|
-
* @uiGroup Step 3 Properties
|
|
4583
|
-
* @uiWidget textArea
|
|
4584
|
-
*/
|
|
4585
|
-
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4586
|
-
/**
|
|
4587
|
-
* Displayed at the top of the page to participants representing a business.
|
|
4588
|
-
* @uiName W-8 BEN-E tax form description
|
|
4589
|
-
* @uiGroup Step 3 Properties
|
|
4590
|
-
* @uiWidget textArea
|
|
4591
|
-
*/
|
|
4592
|
-
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4593
|
-
/**
|
|
4594
|
-
* This appears inside the Docusign frame.
|
|
4595
|
-
* @uiName Docusign session expired message
|
|
4596
|
-
* @uiGroup Step 3 Properties
|
|
4597
|
-
* @uiWidget textArea
|
|
4598
|
-
*/
|
|
4599
|
-
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.";
|
|
4600
|
-
/**
|
|
4601
|
-
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4602
|
-
* @uiName Docusign timed session message
|
|
4603
|
-
* @uiGroup Step 3 Properties
|
|
4604
|
-
* @uiWidget textArea
|
|
4605
|
-
*/
|
|
4606
|
-
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4607
|
-
/**
|
|
4608
|
-
* This appears inside the Docusign frame.
|
|
4609
|
-
* @uiName Docusign form error message
|
|
4610
|
-
* @uiGroup Step 3 Properties
|
|
4611
|
-
* @uiWidget textArea
|
|
4612
|
-
*/
|
|
4613
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4614
|
-
/**
|
|
4615
|
-
* @uiName Refresh page button label
|
|
4616
|
-
* @uiGroup Step 3 Properties
|
|
4617
|
-
*/
|
|
4618
|
-
this.step3_refreshButton = "Refresh Page";
|
|
4619
|
-
/**
|
|
4620
|
-
* @uiName Exit button text
|
|
4621
|
-
* @uiGroup Step 3 Properties
|
|
4622
|
-
*/
|
|
4623
|
-
this.step3_exitButton = "Exit";
|
|
4624
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4625
|
-
STEP 4 PROPS:
|
|
4626
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4627
|
-
/**
|
|
4628
|
-
* @uiName Step 4 title
|
|
4629
|
-
* @uiGroup Step 4 Properties
|
|
4630
|
-
*/
|
|
4631
|
-
this.step4_taxAndPayouts = "Payouts";
|
|
4632
|
-
/**
|
|
4633
|
-
* @uiName Direct to bank payout option
|
|
4634
|
-
* @uiGroup Step 4 Properties
|
|
4635
|
-
*/
|
|
4636
|
-
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4637
|
-
/**
|
|
4638
|
-
* @uiName PayPal payout option
|
|
4639
|
-
* @uiGroup Step 4 Properties
|
|
4640
|
-
*/
|
|
4641
|
-
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4642
|
-
/**
|
|
4643
|
-
* @uiName Threshold balance payment schedule option
|
|
4644
|
-
* @uiGroup Step 4 Properties
|
|
4645
|
-
*/
|
|
4646
|
-
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4647
|
-
/**
|
|
4648
|
-
* @uiName Fixed day payment schedule option
|
|
4649
|
-
* @uiGroup Step 4 Properties
|
|
4650
|
-
*/
|
|
4651
|
-
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4652
|
-
/**
|
|
4653
|
-
* Let the participant choose what day of the month they’ll get paid
|
|
4654
|
-
* @uiName Payment day field label
|
|
4655
|
-
* @uiGroup Step 4 Properties
|
|
4656
|
-
*/
|
|
4657
|
-
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4658
|
-
/**
|
|
4659
|
-
* Participant use this field to select the balance at which they want to be paid
|
|
4660
|
-
* @uiName Payment threshold field label
|
|
4661
|
-
* @uiGroup Step 4 Properties
|
|
4662
|
-
*/
|
|
4663
|
-
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4664
|
-
/**
|
|
4665
|
-
* One of two payment day options
|
|
4666
|
-
* @uiName First of month payday option
|
|
4667
|
-
* @uiGroup Step 4 Properties
|
|
4668
|
-
*/
|
|
4669
|
-
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4670
|
-
/**
|
|
4671
|
-
* One of two payment day options
|
|
4672
|
-
* @uiName Fifteenth of month payday option
|
|
4673
|
-
* @uiGroup Step 4 Properties
|
|
4674
|
-
*/
|
|
4675
|
-
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4676
|
-
/**
|
|
4677
|
-
* @uiName Payment method section header
|
|
4678
|
-
* @uiGroup Step 4 Properties
|
|
4679
|
-
*/
|
|
4680
|
-
this.step4_paymentMethod = "Payment method";
|
|
4681
|
-
/**
|
|
4682
|
-
* @uiName Payment schedule section header
|
|
4683
|
-
* @uiGroup Step 4 Properties
|
|
4684
|
-
*/
|
|
4685
|
-
this.step4_paymentSchedule = "Payment schedule";
|
|
4686
|
-
/**
|
|
4687
|
-
* @uiName Payment method section description
|
|
4688
|
-
* @uiGroup Step 4 Properties
|
|
4689
|
-
*/
|
|
4690
|
-
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4691
|
-
/**
|
|
4692
|
-
* Displayed to participants who choose PayPal as their payout method
|
|
4693
|
-
* @uiName PayPal email field label
|
|
4694
|
-
* @uiGroup Step 4 Properties
|
|
4695
|
-
*/
|
|
4696
|
-
this.step4_payPalInputLabel = "PayPal email";
|
|
4697
|
-
/**
|
|
4698
|
-
* @uiName Bank country field label
|
|
4699
|
-
* @uiGroup Step 4 Properties
|
|
4700
|
-
*/
|
|
4701
|
-
this.step4_bankLocationLabel = "Bank country location";
|
|
4702
|
-
/**
|
|
4703
|
-
* @uiName Beneficiary account field label
|
|
4704
|
-
* @uiGroup Step 4 Properties
|
|
4705
|
-
*/
|
|
4706
|
-
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4707
|
-
/**
|
|
4708
|
-
* @uiName Bank account type field label
|
|
4709
|
-
* @uiGroup Step 4 Properties
|
|
4710
|
-
*/
|
|
4711
|
-
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4712
|
-
/**
|
|
4713
|
-
* @uiName Checking account option
|
|
4714
|
-
* @uiGroup Step 4 Properties
|
|
4715
|
-
*/
|
|
4716
|
-
this.step4_checkingSelectItemLabel = "Checking";
|
|
4717
|
-
/**
|
|
4718
|
-
* Label text for the savings account type select item
|
|
4719
|
-
* @uiName Savings account options
|
|
4720
|
-
* @uiGroup Step 4 Properties
|
|
4721
|
-
*/
|
|
4722
|
-
this.step4_savingsSelectItemLabel = "Savings";
|
|
4723
|
-
/**
|
|
4724
|
-
* @uiName Bank account number field label
|
|
4725
|
-
* @uiGroup Step 4 Properties
|
|
4726
|
-
*/
|
|
4727
|
-
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4728
|
-
/**
|
|
4729
|
-
* @uiName IBAN field label
|
|
4730
|
-
* @uiGroup Step 4 Properties
|
|
4731
|
-
*/
|
|
4732
|
-
this.step4_ibanLabel = "IBAN";
|
|
4733
|
-
/**
|
|
4734
|
-
* @uiName SWIFT code field label
|
|
4735
|
-
* @uiGroup Step 4 Properties
|
|
4736
|
-
*/
|
|
4737
|
-
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4738
|
-
/**
|
|
4739
|
-
* @uiName Routing code field label
|
|
4740
|
-
* @uiGroup Step 4 Properties
|
|
4741
|
-
*/
|
|
4742
|
-
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} }";
|
|
4743
|
-
/**
|
|
4744
|
-
* @uiName Bank name field label
|
|
4745
|
-
* @uiGroup Step 4 Properties
|
|
4746
|
-
*/
|
|
4747
|
-
this.step4_bankNameLabel = "Bank name";
|
|
4748
|
-
/**
|
|
4749
|
-
* @uiName Classification entity field label
|
|
4750
|
-
* @uiGroup Step 4 Properties
|
|
4751
|
-
*/
|
|
4752
|
-
this.step4_classificationEntityLabel = "Classification entity";
|
|
4753
|
-
/**
|
|
4754
|
-
* One of three options listed for the classification field
|
|
4755
|
-
* @uiName Business classification option
|
|
4756
|
-
* @uiGroup Step 4 Properties
|
|
4757
|
-
*/
|
|
4758
|
-
this.step4_businessSelectItemLabel = "Business";
|
|
4759
|
-
/**
|
|
4760
|
-
* One of three options listed for the classification field
|
|
4761
|
-
* @uiName Individual classification option
|
|
4762
|
-
* @uiGroup Step 4 Properties
|
|
4763
|
-
*/
|
|
4764
|
-
this.step4_individualSelectItemLabel = "Individual";
|
|
4765
|
-
/**
|
|
4766
|
-
* One of three options listed for the classification field
|
|
4767
|
-
* @uiName Foreign classification option
|
|
4768
|
-
* @uiGroup Step 4 Properties
|
|
4769
|
-
*/
|
|
4770
|
-
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4771
|
-
/**
|
|
4772
|
-
* @uiName Classification CPF field label
|
|
4773
|
-
* @uiGroup Step 4 Properties
|
|
4774
|
-
*/
|
|
4775
|
-
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4776
|
-
/**
|
|
4777
|
-
* @uiName Patronymic name field label
|
|
4778
|
-
* @uiGroup Step 4 Properties
|
|
4779
|
-
*/
|
|
4780
|
-
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4781
|
-
/**
|
|
4782
|
-
* @uiName VO code field label
|
|
4783
|
-
* @uiGroup Step 4 Properties
|
|
4784
|
-
*/
|
|
4785
|
-
this.step4_voCodeLabel = "VO code";
|
|
4786
|
-
/**
|
|
4787
|
-
* @uiName Agency code field label
|
|
4788
|
-
* @uiGroup Step 4 Properties
|
|
4789
|
-
*/
|
|
4790
|
-
this.step4_agencyCodeLabel = "Agency code";
|
|
4791
|
-
/**
|
|
4792
|
-
* @uiName Branch code field label
|
|
4793
|
-
* @uiGroup Step 4 Properties
|
|
4794
|
-
*/
|
|
4795
|
-
this.step4_branchCodeLabel = "Branch code";
|
|
4796
|
-
/**
|
|
4797
|
-
* Label text for the classification input field
|
|
4798
|
-
* @uiName Classification field label
|
|
4799
|
-
* @uiGroup Step 4 Properties
|
|
4800
|
-
*/
|
|
4801
|
-
this.step4_classificationLabel = "Classification";
|
|
4802
|
-
/**
|
|
4803
|
-
* @uiName Taxpayer ID field label
|
|
4804
|
-
* @uiGroup Step 4 Properties
|
|
4805
|
-
*/
|
|
4806
|
-
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4807
|
-
/**
|
|
4808
|
-
* @uiName Bank address field label
|
|
4809
|
-
* @uiGroup Step 4 Properties
|
|
4810
|
-
*/
|
|
4811
|
-
this.step4_bankAddressLabel = "Bank address";
|
|
4812
|
-
/**
|
|
4813
|
-
* @uiName Bank city field label
|
|
4814
|
-
* @uiGroup Step 4 Properties
|
|
4815
|
-
*/
|
|
4816
|
-
this.step4_bankCityLabel = "Bank city";
|
|
4817
|
-
/**
|
|
4818
|
-
* @uiName Bank province/state field label
|
|
4819
|
-
* @uiGroup Step 4 Properties
|
|
4820
|
-
*/
|
|
4821
|
-
this.step4_bankStateLabel = "Bank Province / State";
|
|
4822
|
-
/**
|
|
4823
|
-
* @uiName Bank postal code field label
|
|
4824
|
-
* @uiGroup Step 4 Properties
|
|
4825
|
-
*/
|
|
4826
|
-
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
4827
|
-
/**
|
|
4828
|
-
* Default payment method to the participants’ bank account.
|
|
4829
|
-
* @uiName EFT withdrawal payment method
|
|
4830
|
-
* @uiGroup Step 4 Properties
|
|
4831
|
-
*/
|
|
4832
|
-
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
4833
|
-
/**
|
|
4834
|
-
* @uiName FX Wire Processing fee text
|
|
4835
|
-
* @uiGroup Step 4 Properties
|
|
4836
|
-
*/
|
|
4837
|
-
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4838
|
-
/**
|
|
4839
|
-
* @uiName Text for verify email dialog
|
|
4840
|
-
* @uiGroup Step 4 Properties
|
|
4841
|
-
*/
|
|
4842
|
-
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4843
|
-
/**
|
|
4844
|
-
* @uiName Verify code widget header text
|
|
4845
|
-
* @uiGroup Step 4 Properties
|
|
4846
|
-
*/
|
|
4847
|
-
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4848
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4849
|
-
DASHBOARD PROPS:
|
|
4850
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4851
|
-
/**
|
|
4852
|
-
* @uiName Active tax form badge label
|
|
4853
|
-
* @uiGroup Dashboard Properties
|
|
4854
|
-
*/
|
|
4855
|
-
this.dashboard_statusTextActive = "Active";
|
|
4856
|
-
/**
|
|
4857
|
-
* @uiName Invalid tax form badge label
|
|
4858
|
-
* @uiGroup Dashboard Properties
|
|
4859
|
-
*/
|
|
4860
|
-
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
4861
|
-
/**
|
|
4862
|
-
* Displayed when the participant submitted their form but it is awaiting review.
|
|
4863
|
-
*
|
|
4864
|
-
* @uiName Not verified tax form badge label
|
|
4865
|
-
* @uiGroup Dashboard Properties
|
|
4866
|
-
*/
|
|
4867
|
-
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
4868
|
-
/**
|
|
4869
|
-
* Additional text displayed next to the tax form's status badge
|
|
4870
|
-
*
|
|
4871
|
-
* @uiName Active W-9 description
|
|
4872
|
-
* @uiGroup Dashboard Properties
|
|
4873
|
-
*/
|
|
4874
|
-
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
4875
|
-
/**
|
|
4876
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4877
|
-
*
|
|
4878
|
-
* @uiName Active W-8 description
|
|
4879
|
-
* @uiGroup Dashboard Properties
|
|
4880
|
-
*/
|
|
4881
|
-
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
4882
|
-
/**
|
|
4883
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4884
|
-
*
|
|
4885
|
-
* @uiName Tax form in review description
|
|
4886
|
-
* @uiGroup Dashboard Properties
|
|
4887
|
-
*/
|
|
4888
|
-
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
4889
|
-
/**
|
|
4890
|
-
* Part of the alert displayed at the top of the page.
|
|
4891
|
-
*
|
|
4892
|
-
* @uiName Inactive W-9 error message title
|
|
4893
|
-
* @uiGroup Dashboard Properties
|
|
4894
|
-
* @uiWidget textArea
|
|
4895
|
-
*/
|
|
4896
|
-
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
4897
|
-
/**
|
|
4898
|
-
* Part of the alert displayed at the top of the page.
|
|
4899
|
-
*
|
|
4900
|
-
* @uiName Inactive W-8 error message title
|
|
4901
|
-
* @uiGroup Dashboard Properties
|
|
4902
|
-
* @uiWidget textArea
|
|
4903
|
-
*/
|
|
4904
|
-
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
4905
|
-
/**
|
|
4906
|
-
* Part of the alert displayed at the top of the page.
|
|
4907
|
-
*
|
|
4908
|
-
* @uiName Inactive W-9 error message description
|
|
4909
|
-
* @uiGroup Dashboard Properties
|
|
4910
|
-
* @uiWidget textArea
|
|
4911
|
-
*/
|
|
4912
|
-
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
4913
|
-
/**
|
|
4914
|
-
* Part of the alert displayed at the top of the page.
|
|
4915
|
-
*
|
|
4916
|
-
* @uiName Inactive W-8 error message description
|
|
4917
|
-
* @uiGroup Dashboard Properties
|
|
4918
|
-
*/
|
|
4919
|
-
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.";
|
|
4920
|
-
/**
|
|
4921
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4922
|
-
*
|
|
4923
|
-
* @uiName Invalid tax form description
|
|
4924
|
-
* @uiGroup Dashboard Properties
|
|
4925
|
-
* @uiWidget textArea
|
|
4926
|
-
*/
|
|
4927
|
-
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
4928
|
-
/**
|
|
4929
|
-
* @uiName Payout information section header
|
|
4930
|
-
* @uiGroup Dashboard Properties
|
|
4931
|
-
*/
|
|
4932
|
-
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
4933
|
-
/**
|
|
4934
|
-
* @uiName Tax document section header
|
|
4935
|
-
* @uiGroup Dashboard Properties
|
|
4936
|
-
*/
|
|
4937
|
-
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
4938
|
-
/**
|
|
4939
|
-
* Displayed under the tax document section header.
|
|
4940
|
-
*
|
|
4941
|
-
* @uiName Tax documents section description
|
|
4942
|
-
* @uiGroup Dashboard Properties
|
|
4943
|
-
*/
|
|
4944
|
-
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4945
|
-
/**
|
|
4946
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4947
|
-
*
|
|
4948
|
-
* @uiName Tax form not required text
|
|
4949
|
-
* @uiGroup Dashboard Properties
|
|
4950
|
-
* @uiWidget textArea
|
|
4951
|
-
*/
|
|
4952
|
-
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.";
|
|
4953
|
-
/**
|
|
4954
|
-
*
|
|
4955
|
-
* @uiName Indirect tax section header
|
|
4956
|
-
* @uiGroup Dashboard Properties
|
|
4957
|
-
*/
|
|
4958
|
-
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
4959
|
-
/**
|
|
4960
|
-
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
4961
|
-
*
|
|
4962
|
-
* @uiName Canadian province of indirect tax
|
|
4963
|
-
* @uiGroup Dashboard Properties
|
|
4964
|
-
*/
|
|
4965
|
-
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
4966
|
-
/**
|
|
4967
|
-
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
4968
|
-
*
|
|
4969
|
-
* @uiName Indirect tax country
|
|
4970
|
-
* @uiGroup Dashboard Properties
|
|
4971
|
-
*/
|
|
4972
|
-
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
4973
|
-
/**
|
|
4974
|
-
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
4975
|
-
*
|
|
4976
|
-
* @uiName Spanish region of indirect tax
|
|
4977
|
-
* @uiGroup Dashboard Properties
|
|
4978
|
-
*/
|
|
4979
|
-
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
4980
|
-
/**
|
|
4981
|
-
* @uiName Indirect tax tooltip
|
|
4982
|
-
* @uiGroup Dashboard Properties
|
|
4983
|
-
* @uiWidget textArea
|
|
4984
|
-
*/
|
|
4985
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
4986
|
-
/**
|
|
4987
|
-
* Displayed to participants who have submitted their indirect tax information.
|
|
4988
|
-
*
|
|
4989
|
-
* @uiName Indirect tax details
|
|
4990
|
-
* @uiGroup Dashboard Properties
|
|
4991
|
-
*/
|
|
4992
|
-
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
4993
|
-
/**
|
|
4994
|
-
* @uiName Submit new tax form button label
|
|
4995
|
-
* @uiGroup Dashboard Properties
|
|
4996
|
-
*/
|
|
4997
|
-
this.dashboard_newFormButton = "Submit new form";
|
|
4998
|
-
/**
|
|
4999
|
-
* @uiName Edit payment info button label
|
|
5000
|
-
* @uiGroup Dashboard Properties
|
|
5001
|
-
*/
|
|
5002
|
-
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5003
|
-
/**
|
|
5004
|
-
* @uiName Not registered for indirect tax text
|
|
5005
|
-
* @uiGroup Dashboard Properties
|
|
5006
|
-
* @uiWidget textArea
|
|
5007
|
-
*/
|
|
5008
|
-
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.";
|
|
5009
|
-
/**
|
|
5010
|
-
* Displayed to participants registered in Quebec, Canada.
|
|
5011
|
-
* @uiName QST indirect tax details
|
|
5012
|
-
* @uiGroup Dashboard Properties
|
|
5013
|
-
*/
|
|
5014
|
-
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5015
|
-
/**
|
|
5016
|
-
* @uiName Spain sub-region indirect tax number
|
|
5017
|
-
* @uiGroup Dashboard Properties
|
|
5018
|
-
*/
|
|
5019
|
-
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5020
|
-
/**
|
|
5021
|
-
* @uiName Payout status badge
|
|
5022
|
-
* @uiGroup Dashboard Properties
|
|
5023
|
-
*/
|
|
5024
|
-
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5025
|
-
/**
|
|
5026
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5027
|
-
* @uiName Payout schedule by threshold text
|
|
5028
|
-
* @uiGroup Dashboard Properties
|
|
5029
|
-
*/
|
|
5030
|
-
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5031
|
-
/**
|
|
5032
|
-
* Shown before the participant’s bank account information.
|
|
5033
|
-
* @uiName Bank account field label
|
|
5034
|
-
* @uiGroup Dashboard Properties
|
|
5035
|
-
*/
|
|
5036
|
-
this.dashboard_accountText = "Account";
|
|
5037
|
-
/**
|
|
5038
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5039
|
-
* @uiName Invoice number column title
|
|
5040
|
-
* @uiGroup Dashboard Properties
|
|
5041
|
-
*/
|
|
5042
|
-
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5043
|
-
/**
|
|
5044
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5045
|
-
* @uiName Date column title
|
|
5046
|
-
* @uiGroup Dashboard Properties
|
|
5047
|
-
*/
|
|
5048
|
-
this.dashboard_dateColumnTitle = "Date";
|
|
5049
|
-
/**
|
|
5050
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5051
|
-
* @uiName Earnings column title
|
|
5052
|
-
* @uiGroup Dashboard Properties
|
|
5053
|
-
*/
|
|
5054
|
-
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5055
|
-
/**
|
|
5056
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5057
|
-
* @uiName Indirect tax column title
|
|
5058
|
-
* @uiGroup Dashboard Properties
|
|
5059
|
-
*/
|
|
5060
|
-
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5061
|
-
/**
|
|
5062
|
-
* Displayed under the payout details card.
|
|
5063
|
-
* @uiName Payout from impact text
|
|
5064
|
-
* @uiGroup Dashboard Properties
|
|
5065
|
-
* @uiWidget textArea
|
|
5066
|
-
*/
|
|
5067
|
-
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5068
|
-
/**
|
|
5069
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5070
|
-
* @uiName Earnings after tax column title
|
|
5071
|
-
* @uiGroup Dashboard Properties
|
|
5072
|
-
*/
|
|
5073
|
-
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5074
|
-
/**
|
|
5075
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5076
|
-
* @uiName Payout error message title
|
|
5077
|
-
* @uiGroup Dashboard Properties
|
|
5078
|
-
* @uiWidget textArea
|
|
5079
|
-
*/
|
|
5080
|
-
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5081
|
-
/**
|
|
5082
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5083
|
-
* @uiName Payout error message description
|
|
5084
|
-
* @uiGroup Dashboard Properties
|
|
5085
|
-
* @uiWidget textArea
|
|
5086
|
-
*/
|
|
5087
|
-
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5088
|
-
/**
|
|
5089
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
5090
|
-
* @uiName Payout missing information subtext
|
|
5091
|
-
* @uiGroup Dashboard Properties
|
|
5092
|
-
*/
|
|
5093
|
-
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5094
|
-
/**
|
|
5095
|
-
* @uiName Invoice table description
|
|
5096
|
-
* @uiGroup Dashboard Properties
|
|
5097
|
-
*/
|
|
5098
|
-
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5099
|
-
/**
|
|
5100
|
-
* @uiName Invoice table previous page button label
|
|
5101
|
-
* @uiGroup Dashboard Properties
|
|
5102
|
-
*/
|
|
5103
|
-
this.dashboard_invoicePrevLabel = "Prev";
|
|
5104
|
-
/**
|
|
5105
|
-
* @uiName Invoice table next page button label
|
|
5106
|
-
* @uiGroup Dashboard Properties
|
|
5107
|
-
*/
|
|
5108
|
-
this.dashboard_invoiceMoreLabel = "Next";
|
|
5109
|
-
/**
|
|
5110
|
-
* @uiName Invoice table title
|
|
5111
|
-
* @uiGroup Dashboard Properties
|
|
5112
|
-
*/
|
|
5113
|
-
this.dashboard_invoiceHeader = "Invoices";
|
|
5114
|
-
/**
|
|
5115
|
-
* @uiName Empty invoice table header
|
|
5116
|
-
* @uiGroup Dashboard Properties
|
|
5117
|
-
*/
|
|
5118
|
-
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5119
|
-
/**
|
|
5120
|
-
* @uiName Empty invoice table description
|
|
5121
|
-
* @uiGroup Dashboard Properties
|
|
5122
|
-
*/
|
|
5123
|
-
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5124
|
-
/**
|
|
5125
|
-
* @uiName Replace tax form modal header
|
|
5126
|
-
* @uiGroup Dashboard Properties
|
|
5127
|
-
*/
|
|
5128
|
-
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5129
|
-
/**
|
|
5130
|
-
* @uiName Replace tax form modal body text
|
|
5131
|
-
* @uiGroup Dashboard Properties
|
|
5132
|
-
* @uiWidget textArea
|
|
5133
|
-
*/
|
|
5134
|
-
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.";
|
|
5135
|
-
/**
|
|
5136
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5137
|
-
* @uiName Verification required alert message title
|
|
5138
|
-
* @uiGroup Dashboard Properties
|
|
5139
|
-
* @uiWidget textArea
|
|
5140
|
-
*/
|
|
5141
|
-
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5142
|
-
/**
|
|
5143
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5144
|
-
* @uiName Verification required alert message description
|
|
5145
|
-
* @uiGroup Dashboard Properties
|
|
5146
|
-
* @uiWidget textArea
|
|
5147
|
-
*/
|
|
5148
|
-
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}.";
|
|
5149
|
-
/**
|
|
5150
|
-
* @uiName Verification required internal alert header
|
|
5151
|
-
* @uiGroup Dashboard Properties
|
|
5152
|
-
* @uiWidget textArea
|
|
5153
|
-
*/
|
|
5154
|
-
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5155
|
-
/**
|
|
5156
|
-
* @uiName Verification required internal alert description
|
|
5157
|
-
* @uiGroup Dashboard Properties
|
|
5158
|
-
* @uiWidget textArea
|
|
5159
|
-
*/
|
|
5160
|
-
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}.";
|
|
5161
|
-
/**
|
|
5162
|
-
* @uiName Verification review internal alert header
|
|
5163
|
-
* @uiGroup Dashboard Properties
|
|
5164
|
-
* @uiWidget textArea
|
|
5165
|
-
*/
|
|
5166
|
-
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5167
|
-
/**
|
|
5168
|
-
* @uiName Verification review internal alert description
|
|
5169
|
-
* @uiGroup Dashboard Properties
|
|
5170
|
-
* @uiWidget textArea
|
|
5171
|
-
*/
|
|
5172
|
-
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}.";
|
|
5173
|
-
/**
|
|
5174
|
-
* @uiName Verification failed internal alert header
|
|
5175
|
-
* @uiGroup Dashboard Properties
|
|
5176
|
-
* @uiWidget textArea
|
|
5177
|
-
*/
|
|
5178
|
-
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5179
|
-
/**
|
|
5180
|
-
* @uiName Verification failed internal alert description
|
|
5181
|
-
* @uiGroup Dashboard Properties
|
|
5182
|
-
* @uiWidget textArea
|
|
5183
|
-
*/
|
|
5184
|
-
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}.";
|
|
5185
|
-
/**
|
|
5186
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5187
|
-
* @uiName Verification required alert button text
|
|
5188
|
-
* @uiGroup Dashboard Properties
|
|
5189
|
-
* @uiWidget textArea
|
|
5190
|
-
*/
|
|
5191
|
-
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5192
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5193
|
-
GENERAL PROPS:
|
|
5194
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5195
|
-
/**
|
|
5196
|
-
* @uiName Setup progress
|
|
5197
|
-
* @uiGroup General Form Properties
|
|
5198
|
-
*/
|
|
5199
|
-
this.formStep = "Step {step} of {count}";
|
|
5200
|
-
/**
|
|
5201
|
-
* Part of the alert displayed at the top of the page.
|
|
5202
|
-
* @uiName Form submission error message title
|
|
5203
|
-
* @uiGroup General Form Properties
|
|
5204
|
-
* @uiWidget textArea
|
|
5205
|
-
*/
|
|
5206
|
-
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5207
|
-
/**
|
|
5208
|
-
* Part of the alert displayed at the top of the page.
|
|
5209
|
-
* @uiName Form submission error message description
|
|
5210
|
-
* @uiGroup General Form Properties
|
|
5211
|
-
* @uiWidget textArea
|
|
5212
|
-
*/
|
|
5213
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5214
|
-
/**
|
|
5215
|
-
* Displayed under a field that is missing required information.
|
|
5216
|
-
* @uiName Empty form field error message
|
|
5217
|
-
* @uiGroup General Form Properties
|
|
5218
|
-
*/
|
|
5219
|
-
this.fieldRequiredError = "{fieldName} is required";
|
|
5220
|
-
/**
|
|
5221
|
-
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5222
|
-
* @uiName Invalid character error message
|
|
5223
|
-
* @uiGroup General Form Properties
|
|
5224
|
-
*/
|
|
5225
|
-
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5226
|
-
/**
|
|
5227
|
-
* Displayed under a field when it has an invalid entry.
|
|
5228
|
-
* @uiName Form field error message
|
|
5229
|
-
* @uiGroup General Form Properties
|
|
5230
|
-
*/
|
|
5231
|
-
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5232
|
-
/**
|
|
5233
|
-
* @uiName Continue button label
|
|
5234
|
-
* @uiGroup General Form Properties
|
|
5235
|
-
*/
|
|
5236
|
-
this.continueButton = "Continue";
|
|
5237
|
-
/**
|
|
5238
|
-
* @uiName Back button label
|
|
5239
|
-
* @uiGroup General Form Properties
|
|
5240
|
-
*/
|
|
5241
|
-
this.backButton = "Back";
|
|
5242
|
-
/**
|
|
5243
|
-
* @uiName Cancel button label
|
|
5244
|
-
* @uiGroup General Form Properties
|
|
5245
|
-
*/
|
|
5246
|
-
this.cancelButton = "Cancel";
|
|
5247
|
-
/**
|
|
5248
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5249
|
-
* @uiName Participant is a partner alert title
|
|
5250
|
-
* @uiGroup General Form Properties
|
|
5251
|
-
* @uiWidget textArea
|
|
5252
|
-
*/
|
|
5253
|
-
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5254
|
-
/**
|
|
5255
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5256
|
-
* @uiName Participant is a partner alert description
|
|
5257
|
-
* @uiGroup General Form Properties
|
|
5258
|
-
* @uiWidget textArea
|
|
5259
|
-
*/
|
|
5260
|
-
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.";
|
|
3599
|
+
.toFormat("LLL dd, yyyy")
|
|
3600
|
+
: luxon.luxon.DateTime.now()
|
|
3601
|
+
.plus({ month: 1 })
|
|
3602
|
+
.startOf("month")
|
|
3603
|
+
.plus({ day: 14 })
|
|
3604
|
+
.toFormat("LLL dd, yyyy");
|
|
3605
|
+
}
|
|
3606
|
+
else {
|
|
3607
|
+
global.intl.formatMessage({
|
|
3608
|
+
id: `nextPayoutBalance`,
|
|
3609
|
+
defaultMessage: props.thresholdPayoutText,
|
|
3610
|
+
}, {
|
|
3611
|
+
thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
|
|
3612
|
+
});
|
|
3613
|
+
}
|
|
3614
|
+
}
|
|
3615
|
+
const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
|
|
3616
|
+
const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
|
|
3617
|
+
return {
|
|
3618
|
+
states: {
|
|
3619
|
+
loading,
|
|
3620
|
+
thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
|
|
3621
|
+
: undefined,
|
|
3622
|
+
balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
|
|
3623
|
+
badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
|
|
3624
|
+
? "thresholdPayout"
|
|
3625
|
+
: isPayoutToday
|
|
3626
|
+
? "payoutToday"
|
|
3627
|
+
: "nextPayout",
|
|
3628
|
+
payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
|
|
3629
|
+
error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
|
|
3630
|
+
paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
|
|
3631
|
+
cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
|
|
3632
|
+
nextPayoutDate: paymentDay,
|
|
3633
|
+
},
|
|
3634
|
+
text: props.getTextProps(),
|
|
3635
|
+
};
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
const PayoutDetailsCard = class {
|
|
3639
|
+
constructor(hostRef) {
|
|
3640
|
+
index.registerInstance(this, hostRef);
|
|
5261
3641
|
/**
|
|
5262
|
-
*
|
|
5263
|
-
* @uiName
|
|
5264
|
-
* @uiGroup General Form Properties
|
|
3642
|
+
* Badge text indicating payout status
|
|
3643
|
+
* @uiName Payout badge status text
|
|
5265
3644
|
*/
|
|
5266
|
-
this.
|
|
3645
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5267
3646
|
/**
|
|
5268
|
-
*
|
|
5269
|
-
* @uiName
|
|
5270
|
-
* @uiGroup General Form Properties
|
|
5271
|
-
* @uiWidget textArea
|
|
3647
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
3648
|
+
* @uiName Payout schedule by threshold text
|
|
5272
3649
|
*/
|
|
5273
|
-
this.
|
|
3650
|
+
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5274
3651
|
/**
|
|
5275
|
-
*
|
|
5276
|
-
* @uiName
|
|
5277
|
-
* @uiGroup General Form Properties
|
|
5278
|
-
* @uiWidget textArea
|
|
3652
|
+
* Shown before the participant’s bank account information.
|
|
3653
|
+
* @uiName Bank account field label
|
|
5279
3654
|
*/
|
|
5280
|
-
this.
|
|
3655
|
+
this.accountText = "Account";
|
|
5281
3656
|
/**
|
|
5282
|
-
*
|
|
5283
|
-
* @uiName
|
|
5284
|
-
* @uiGroup General Form Properties
|
|
3657
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
3658
|
+
* @uiName Payout missing information subtext
|
|
5285
3659
|
*/
|
|
5286
|
-
this.
|
|
3660
|
+
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5287
3661
|
/**
|
|
5288
|
-
*
|
|
5289
|
-
* @uiName Suport link text
|
|
5290
|
-
* @uiGroup General Form Properties
|
|
3662
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
5291
3663
|
*/
|
|
5292
|
-
this.
|
|
5293
|
-
|
|
3664
|
+
this.stateController = "{}";
|
|
3665
|
+
domContextHooks_module.h$1(this);
|
|
5294
3666
|
}
|
|
5295
3667
|
disconnectedCallback() { }
|
|
5296
|
-
|
|
5297
|
-
getGeneralStepTextProps(prefix) {
|
|
3668
|
+
getTextProps() {
|
|
5298
3669
|
const props = utils.getProps(this);
|
|
5299
3670
|
return {
|
|
5300
|
-
...
|
|
5301
|
-
generalErrorTitle: props.generalErrorTitle,
|
|
5302
|
-
generalErrorDescription: props.generalErrorDescription,
|
|
5303
|
-
fieldRequiredError: props.fieldRequiredError,
|
|
5304
|
-
invalidCharacterError: props.invalidCharacterError,
|
|
5305
|
-
fieldInvalidError: props.fieldInvalidError,
|
|
5306
|
-
continueButton: props.continueButton,
|
|
5307
|
-
backButton: props.backButton,
|
|
5308
|
-
cancelButton: props.cancelButton,
|
|
5309
|
-
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5310
|
-
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5311
|
-
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5312
|
-
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5313
|
-
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5314
|
-
searchForCountryText: props.searchForCountryText,
|
|
5315
|
-
formStep: props.formStep,
|
|
5316
|
-
supportLink: props.supportLink,
|
|
3671
|
+
...props,
|
|
5317
3672
|
};
|
|
5318
3673
|
}
|
|
5319
3674
|
render() {
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
const textProps = utils.getProps(this);
|
|
5325
|
-
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5326
|
-
if (prop === "demoData")
|
|
5327
|
-
return;
|
|
5328
|
-
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
5329
|
-
})));
|
|
5330
|
-
}
|
|
5331
|
-
switch (props.step) {
|
|
5332
|
-
case "/1":
|
|
5333
|
-
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5334
|
-
case "/2":
|
|
5335
|
-
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5336
|
-
case "/3":
|
|
5337
|
-
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5338
|
-
case "/4":
|
|
5339
|
-
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5340
|
-
case "/dashboard":
|
|
5341
|
-
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5342
|
-
case "/error":
|
|
5343
|
-
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5344
|
-
}
|
|
5345
|
-
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
3675
|
+
const props = index_module.isDemo()
|
|
3676
|
+
? useDemoPayoutDetailsCard(this)
|
|
3677
|
+
: usePayoutDetailsCard(this);
|
|
3678
|
+
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
5346
3679
|
}
|
|
5347
3680
|
};
|
|
5348
|
-
function
|
|
5349
|
-
const [step, setStep] = index_module.In({
|
|
5350
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5351
|
-
initialValue: "/1",
|
|
5352
|
-
});
|
|
3681
|
+
function useDemoPayoutDetailsCard(props) {
|
|
5353
3682
|
return cjs.cjs({
|
|
5354
|
-
|
|
5355
|
-
|
|
3683
|
+
states: {
|
|
3684
|
+
loading: false,
|
|
3685
|
+
error: false,
|
|
3686
|
+
thresholdBalance: "$50",
|
|
3687
|
+
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
3688
|
+
badgeStatus: "nextPayout",
|
|
3689
|
+
payoutType: "BANK_TRANSFER",
|
|
3690
|
+
nextPayoutDate: "March 14, 2024",
|
|
3691
|
+
paypalEmailAddress: "joesmith@example.com",
|
|
3692
|
+
otherCurrencies: false,
|
|
3693
|
+
hasW9Pending: false,
|
|
3694
|
+
hasDatePending: true,
|
|
3695
|
+
cardNumberPreview: "XX2381",
|
|
3696
|
+
balance: "20.00 USD",
|
|
3697
|
+
},
|
|
3698
|
+
text: props.getTextProps(),
|
|
5356
3699
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5357
3700
|
}
|
|
5358
3701
|
|
|
5359
|
-
const style$
|
|
5360
|
-
|
|
5361
|
-
"&::part(base)": {
|
|
5362
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
5363
|
-
borderTop: "none",
|
|
5364
|
-
},
|
|
5365
|
-
"& sl-icon::part(base)": {
|
|
5366
|
-
color: "var(--sl-color-danger-500)",
|
|
5367
|
-
},
|
|
5368
|
-
},
|
|
5369
|
-
WarningAlertContainer: {
|
|
5370
|
-
"&::part(base)": {
|
|
5371
|
-
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5372
|
-
borderTop: "none",
|
|
5373
|
-
maxWidth: "600px",
|
|
5374
|
-
},
|
|
5375
|
-
"& sl-icon::part(base)": {
|
|
5376
|
-
color: "var(--sl-color-warning-500)",
|
|
5377
|
-
},
|
|
5378
|
-
},
|
|
5379
|
-
WarningHoldAlertContainer: {
|
|
5380
|
-
marginLeft: "-20px",
|
|
3702
|
+
const style$5 = {
|
|
3703
|
+
DangerBadge: {
|
|
5381
3704
|
"&::part(base)": {
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
backgroundColor: "transparent",
|
|
5385
|
-
},
|
|
5386
|
-
"& sl-icon::part(base)": {
|
|
5387
|
-
color: "var(--sl-color-warning-500)",
|
|
3705
|
+
backgroundColor: "var(--sqm-danger-color-icon)",
|
|
3706
|
+
color: "var(--sl-color-white)",
|
|
5388
3707
|
},
|
|
5389
3708
|
},
|
|
5390
|
-
|
|
5391
|
-
marginLeft: "-20px",
|
|
3709
|
+
SuccessBadge: {
|
|
5392
3710
|
"&::part(base)": {
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
backgroundColor: "transparent",
|
|
5396
|
-
},
|
|
5397
|
-
"& sl-icon::part(base)": {
|
|
5398
|
-
color: "var(--sl-color-danger-500)",
|
|
3711
|
+
backgroundColor: "var(--sqm-success-color-icon)",
|
|
3712
|
+
color: "var(--sl-color-white)",
|
|
5399
3713
|
},
|
|
5400
3714
|
},
|
|
5401
|
-
|
|
3715
|
+
WarningBadge: {
|
|
5402
3716
|
"&::part(base)": {
|
|
5403
|
-
backgroundColor: "var(--
|
|
5404
|
-
|
|
3717
|
+
backgroundColor: "var(--sqm-warning-color-icon)",
|
|
3718
|
+
color: "var(--sl-color-white)",
|
|
5405
3719
|
},
|
|
5406
3720
|
},
|
|
5407
3721
|
BankingInformationContainer: {
|
|
@@ -5409,7 +3723,7 @@ const style$6 = {
|
|
|
5409
3723
|
},
|
|
5410
3724
|
IndirectTaxPreviewContainer: {
|
|
5411
3725
|
marginTop: "var(--sl-spacing-x-large)",
|
|
5412
|
-
borderTop: "1px solid var(--
|
|
3726
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
5413
3727
|
},
|
|
5414
3728
|
IndirectTaxPreviewHeaderContainer: {
|
|
5415
3729
|
marginTop: "var(--sl-spacing-large)",
|
|
@@ -5418,7 +3732,7 @@ const style$6 = {
|
|
|
5418
3732
|
display: "flex",
|
|
5419
3733
|
gap: "var(--sl-spacing-x-small)",
|
|
5420
3734
|
"&::part(base)": {
|
|
5421
|
-
color: "var(--
|
|
3735
|
+
color: "var(--sqm-success-color-text)",
|
|
5422
3736
|
},
|
|
5423
3737
|
},
|
|
5424
3738
|
IndirectTaxPreviewDetails: {
|
|
@@ -5432,11 +3746,11 @@ const style$6 = {
|
|
|
5432
3746
|
marginTop: "var(--sl-spacing-medium)",
|
|
5433
3747
|
},
|
|
5434
3748
|
NotRegisteredIndirectTaxText: {
|
|
5435
|
-
color: "var(--
|
|
3749
|
+
color: "var(--sqm-text-subdued)",
|
|
5436
3750
|
},
|
|
5437
3751
|
TaxDocumentsContainer: {
|
|
5438
3752
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
5439
|
-
borderTop: "1px solid var(--
|
|
3753
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
5440
3754
|
},
|
|
5441
3755
|
TaxDocumentsSectionHeaderContainer: {
|
|
5442
3756
|
marginTop: "var(--sl-spacing-x-large)",
|
|
@@ -5453,7 +3767,7 @@ const style$6 = {
|
|
|
5453
3767
|
"& p": {
|
|
5454
3768
|
margin: "0",
|
|
5455
3769
|
paddingTop: "2px",
|
|
5456
|
-
color: "var(--
|
|
3770
|
+
color: "var(--sqm-text-subdued)",
|
|
5457
3771
|
},
|
|
5458
3772
|
},
|
|
5459
3773
|
StatusAlert: {
|
|
@@ -5488,7 +3802,7 @@ const style$6 = {
|
|
|
5488
3802
|
},
|
|
5489
3803
|
TaxDocSubtext: {
|
|
5490
3804
|
margin: "0",
|
|
5491
|
-
color: "var(--
|
|
3805
|
+
color: "var(--sqm-text-subdued)",
|
|
5492
3806
|
lineHeight: "var(--sl-spacing-medium)",
|
|
5493
3807
|
fontSize: "var(--sl-font-size-small)",
|
|
5494
3808
|
marginLeft: "1px",
|
|
@@ -5509,28 +3823,65 @@ const style$6 = {
|
|
|
5509
3823
|
gap: "6px",
|
|
5510
3824
|
},
|
|
5511
3825
|
DescriptionText: {
|
|
5512
|
-
color: "var(--
|
|
3826
|
+
color: "var(--sqm-text-subdued)",
|
|
5513
3827
|
fontSize: "var(--sl-font-size-x-small)",
|
|
5514
|
-
marginBottom: "none",
|
|
5515
3828
|
maxWidth: "492px",
|
|
5516
3829
|
},
|
|
5517
3830
|
PageDescriptionText: {
|
|
5518
|
-
color: "var(--
|
|
3831
|
+
color: "var(--sqm-text-subdued)",
|
|
5519
3832
|
fontSize: "var(--sl-font-size-medium)",
|
|
5520
3833
|
marginTop: "0",
|
|
5521
3834
|
},
|
|
3835
|
+
WarningButton: {
|
|
3836
|
+
"&::part(base)": {
|
|
3837
|
+
marginTop: "20px",
|
|
3838
|
+
borderColor: "var(--sqm-warning-color-border)",
|
|
3839
|
+
color: "var(--sqm-warning-color-text)",
|
|
3840
|
+
background: "var(--sqm-warning-color-background)",
|
|
3841
|
+
"&:hover": {
|
|
3842
|
+
background: "var(--sqm-warning-color-icon)",
|
|
3843
|
+
},
|
|
3844
|
+
},
|
|
3845
|
+
},
|
|
3846
|
+
ErrorButton: {
|
|
3847
|
+
"&::part(base)": {
|
|
3848
|
+
marginTop: "20px",
|
|
3849
|
+
borderColor: "var(--sqm-danger-color-border)",
|
|
3850
|
+
color: "var(--sqm-danger-color-text)",
|
|
3851
|
+
background: "var(--sqm-danger-color-background)",
|
|
3852
|
+
"&:hover": {
|
|
3853
|
+
background: "var(--sqm-danger-color-icon)",
|
|
3854
|
+
},
|
|
3855
|
+
},
|
|
3856
|
+
},
|
|
3857
|
+
SuccessButton: {
|
|
3858
|
+
"&::part(base)": {
|
|
3859
|
+
marginTop: "20px",
|
|
3860
|
+
borderColor: "var(--sqm-success-color-border)",
|
|
3861
|
+
color: "var(--sqm-success-color-text)",
|
|
3862
|
+
background: "var(--sqm-success-color-background)",
|
|
3863
|
+
"&:hover": {
|
|
3864
|
+
background: "var(--sqm-success-color-icon)",
|
|
3865
|
+
},
|
|
3866
|
+
},
|
|
3867
|
+
},
|
|
5522
3868
|
Dialog: {
|
|
5523
3869
|
"&::part(panel)": {
|
|
5524
3870
|
maxWidth: "420px",
|
|
5525
3871
|
},
|
|
3872
|
+
"&::part(header)": {
|
|
3873
|
+
display: "flex",
|
|
3874
|
+
alignItems: "center",
|
|
3875
|
+
justifyContent: "center",
|
|
3876
|
+
paddingTop: "var(--sl-spacing-large)",
|
|
3877
|
+
},
|
|
5526
3878
|
"&::part(close-button)": {
|
|
5527
3879
|
marginBottom: "var(--sl-spacing-xx-large)",
|
|
5528
3880
|
},
|
|
5529
3881
|
"&::part(title)": {
|
|
5530
|
-
fontSize: "var(--sl-font-size-
|
|
3882
|
+
fontSize: "var(--sl-font-size-large)",
|
|
5531
3883
|
fontWeight: "600",
|
|
5532
|
-
|
|
5533
|
-
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
3884
|
+
padding: "0px var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
5534
3885
|
},
|
|
5535
3886
|
"&::part(body)": {
|
|
5536
3887
|
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
@@ -5547,10 +3898,59 @@ const style$6 = {
|
|
|
5547
3898
|
},
|
|
5548
3899
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5549
3900
|
};
|
|
5550
|
-
const
|
|
5551
|
-
|
|
3901
|
+
const vanillaStyle$3 = `
|
|
3902
|
+
* {
|
|
3903
|
+
font-family: var(--sqm-primary-font);
|
|
3904
|
+
}
|
|
3905
|
+
a {
|
|
3906
|
+
color: inherit;
|
|
3907
|
+
text-decoration: underline;
|
|
3908
|
+
cursor: pointer;
|
|
3909
|
+
}
|
|
3910
|
+
|
|
3911
|
+
*::part(primarybutton-base),
|
|
3912
|
+
sl-button[type="primary"]::part(base) {
|
|
3913
|
+
font-family: var(--sqm-primary-font);
|
|
3914
|
+
width: 100%;
|
|
3915
|
+
background-color: var(--sqm-primary-button-background);
|
|
3916
|
+
color: var(--sqm-primary-button-color);
|
|
3917
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
3918
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
3919
|
+
}
|
|
3920
|
+
|
|
3921
|
+
*::part(primarybutton-base):hover,
|
|
3922
|
+
sl-button[type="primary"]::part(base):hover{
|
|
3923
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
3924
|
+
border-color: var(--sqm-primary-button-border-color-hover);
|
|
3925
|
+
color: var(--sqm-primary-button-color-hover);
|
|
3926
|
+
}
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
*::part(primarybutton-base):focus,
|
|
3930
|
+
sl-button[type="primary"]::part(base):focus {
|
|
3931
|
+
box-shadow: none;
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3934
|
+
*::part(secondarybutton-base),
|
|
3935
|
+
sl-button[type="secondary"]::part(base) {
|
|
3936
|
+
font-family: var(--sqm-primary-font);
|
|
3937
|
+
background-color: var(--sqm-secondary-button-background);
|
|
3938
|
+
color: var(--sqm-secondary-button-color);
|
|
3939
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
3940
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
3941
|
+
}
|
|
3942
|
+
|
|
3943
|
+
*::part(secondarybutton-base):hover,
|
|
3944
|
+
sl-button[type="secondary"]::part(base):hover {
|
|
3945
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
3946
|
+
color: var(--sqm-secondary-button-color-hover);
|
|
3947
|
+
border-color: var(--sqm-secondary-button-border-color-hover);
|
|
3948
|
+
}
|
|
3949
|
+
`;
|
|
3950
|
+
const sheet$4 = JSS.createStyleSheet(style$5);
|
|
3951
|
+
const styleString$4 = sheet$4.toString();
|
|
5552
3952
|
const TaxAndCashDashboardView = (props) => {
|
|
5553
|
-
var _a
|
|
3953
|
+
var _a;
|
|
5554
3954
|
const { states, text, callbacks, slots } = props;
|
|
5555
3955
|
function getAlert(status) {
|
|
5556
3956
|
switch (status) {
|
|
@@ -5565,8 +3965,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5565
3965
|
}),
|
|
5566
3966
|
buttonText: text.verificationRequiredButtonText,
|
|
5567
3967
|
alertType: "warning",
|
|
5568
|
-
icon: "exclamation-triangle",
|
|
5569
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5570
3968
|
};
|
|
5571
3969
|
case "VERIFICATION:INTERNAL":
|
|
5572
3970
|
return {
|
|
@@ -5578,8 +3976,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5578
3976
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5579
3977
|
}),
|
|
5580
3978
|
alertType: "warning",
|
|
5581
|
-
icon: "exclamation-triangle",
|
|
5582
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5583
3979
|
};
|
|
5584
3980
|
case "VERIFICATION:REVIEW":
|
|
5585
3981
|
return {
|
|
@@ -5591,8 +3987,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5591
3987
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5592
3988
|
}),
|
|
5593
3989
|
alertType: "warning",
|
|
5594
|
-
icon: "exclamation-triangle",
|
|
5595
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5596
3990
|
};
|
|
5597
3991
|
case "VERIFICATION:FAILED":
|
|
5598
3992
|
return {
|
|
@@ -5603,9 +3997,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5603
3997
|
}, {
|
|
5604
3998
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5605
3999
|
}),
|
|
5606
|
-
alertType: "
|
|
5607
|
-
icon: "exclamation-octagon",
|
|
5608
|
-
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
4000
|
+
alertType: "error",
|
|
5609
4001
|
};
|
|
5610
4002
|
case "HOLD":
|
|
5611
4003
|
return {
|
|
@@ -5618,24 +4010,22 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5618
4010
|
}),
|
|
5619
4011
|
buttonText: null,
|
|
5620
4012
|
alertType: "warning",
|
|
5621
|
-
icon: "exclamation-triangle",
|
|
5622
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5623
4013
|
};
|
|
5624
4014
|
default:
|
|
5625
4015
|
return;
|
|
5626
4016
|
}
|
|
5627
4017
|
}
|
|
5628
4018
|
const statusMap = {
|
|
5629
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
5630
|
-
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4019
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4020
|
+
index.h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5631
4021
|
index.h("p", null, global.intl.formatMessage({
|
|
5632
4022
|
id: `badgeTextAwaitingReview`,
|
|
5633
4023
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
5634
4024
|
}, {
|
|
5635
4025
|
dateSubmitted: states.dateSubmitted,
|
|
5636
4026
|
})))),
|
|
5637
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
5638
|
-
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
4027
|
+
ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4028
|
+
index.h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
|
|
5639
4029
|
index.h("p", null, global.intl.formatMessage({
|
|
5640
4030
|
id: `badgeTextSubmittedOn`,
|
|
5641
4031
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5644,14 +4034,13 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5644
4034
|
}, {
|
|
5645
4035
|
dateSubmitted: states.dateSubmitted,
|
|
5646
4036
|
})))),
|
|
5647
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
5648
|
-
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
4037
|
+
INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4038
|
+
index.h("sl-badge", { class: sheet$4.classes.DangerBadge, type: "danger", pill: true }, text.statusTextNotActive),
|
|
5649
4039
|
index.h("p", null, text.invalidForm))),
|
|
5650
4040
|
};
|
|
5651
4041
|
const alertMap = {
|
|
5652
|
-
INACTIVE: (index.h("
|
|
5653
|
-
index.h("
|
|
5654
|
-
index.h("strong", null, global.intl.formatMessage({
|
|
4042
|
+
INACTIVE: (index.h("sqm-form-message", { type: "error" },
|
|
4043
|
+
index.h("p", { part: "alert-title" }, global.intl.formatMessage({
|
|
5655
4044
|
id: `taxAlertHeaderNotActive`,
|
|
5656
4045
|
defaultMessage: states.documentType === "W9"
|
|
5657
4046
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -5659,7 +4048,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5659
4048
|
}, {
|
|
5660
4049
|
documentType: states.documentTypeString,
|
|
5661
4050
|
})),
|
|
5662
|
-
index.h("br", null),
|
|
5663
4051
|
global.intl.formatMessage({
|
|
5664
4052
|
id: `taxAlertMessage`,
|
|
5665
4053
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5697,78 +4085,74 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5697
4085
|
});
|
|
5698
4086
|
}
|
|
5699
4087
|
};
|
|
4088
|
+
const alert = getAlert(states.payoutStatus);
|
|
5700
4089
|
return (index.h("div", null,
|
|
5701
4090
|
index.h("div", null,
|
|
5702
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
((_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 },
|
|
5715
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5716
|
-
index.h("strong", null, text.error.generalTitle),
|
|
5717
|
-
index.h("br", null),
|
|
4091
|
+
index.h("style", { type: "text/css" }, styleString$4),
|
|
4092
|
+
index.h("style", { type: "text/css" }, vanillaStyle$3),
|
|
4093
|
+
states.loadingError && (index.h("sqm-form-message", { type: "error" },
|
|
4094
|
+
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
4095
|
+
global.intl.formatMessage({
|
|
4096
|
+
id: "loadingErrorAlertDescription",
|
|
4097
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
4098
|
+
}, {
|
|
4099
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4100
|
+
}))),
|
|
4101
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
|
|
4102
|
+
index.h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
5718
4103
|
global.intl.formatMessage({
|
|
5719
4104
|
id: "generalDescription",
|
|
5720
4105
|
defaultMessage: text.error.generalDescription,
|
|
5721
4106
|
}, {
|
|
5722
4107
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5723
4108
|
}))),
|
|
5724
|
-
|
|
5725
|
-
index.h("
|
|
5726
|
-
index.h("
|
|
5727
|
-
index.h("
|
|
5728
|
-
|
|
5729
|
-
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
4109
|
+
alert && (index.h("sqm-form-message", { type: alert.alertType },
|
|
4110
|
+
index.h("p", { part: "alert-title" }, alert.header),
|
|
4111
|
+
index.h("p", { part: "alert-description" }, alert.description),
|
|
4112
|
+
alert.buttonText && (index.h("sl-button", { class: sheet$4.classes[`${utils.capitalizeFirstLetter(alert.alertType)}Button`], loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alert.buttonText)))),
|
|
4113
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5730
4114
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5731
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5732
|
-
index.h("sl-button", { slot: "footer", type: "
|
|
4115
|
+
index.h("sl-button", { slot: "footer", type: "primary", exportparts: "base: primarybutton-base", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
4116
|
+
index.h("sl-button", { slot: "footer", type: "secondary", exportparts: "base: secondarybutton-base", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5733
4117
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5734
4118
|
index.h("div", null,
|
|
5735
4119
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5736
|
-
index.h("p", { class: sheet$
|
|
5737
|
-
index.h("div", { class: sheet$
|
|
4120
|
+
index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
4121
|
+
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5738
4122
|
slots.payoutDetailsCardSlot,
|
|
5739
|
-
!states.loading && (index.h("p", { class: sheet$
|
|
5740
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
5741
|
-
index.h("div", { class: sheet$
|
|
5742
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$
|
|
5743
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5744
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5745
|
-
index.h("h3", { class: sheet$
|
|
5746
|
-
index.h("p", { class: sheet$
|
|
5747
|
-
index.h("span", { class: sheet$
|
|
5748
|
-
index.h("div", { class: sheet$
|
|
4123
|
+
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4124
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onEditPayoutInfo, style: { marginTop: states.loading ? "12px" : "0px" } }, text.editPaymentInformationButton)))),
|
|
4125
|
+
index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4126
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4127
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4128
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
4129
|
+
index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
4130
|
+
index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
4131
|
+
index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4132
|
+
index.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5749
4133
|
index.h("h3", null, global.intl.formatMessage({
|
|
5750
4134
|
id: "section-subheader",
|
|
5751
4135
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5752
4136
|
}, {
|
|
5753
4137
|
documentType: states.documentTypeString,
|
|
5754
4138
|
})),
|
|
5755
|
-
index.h("span", { class: sheet$
|
|
5756
|
-
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "
|
|
5757
|
-
index.h("div", { class: sheet$
|
|
5758
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5759
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5760
|
-
index.h("h3", { class: sheet$
|
|
4139
|
+
index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
4140
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { style: { marginTop: "20px" }, disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "secondary", exportparts: "base: secondarybutton-base" }, text.newFormButton)))))))),
|
|
4141
|
+
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4142
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4143
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
4144
|
+
index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5761
4145
|
text.indirectTaxInfoSectionHeader,
|
|
5762
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5763
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$
|
|
5764
|
-
index.h("div", { class: sheet$
|
|
5765
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$
|
|
4146
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
4147
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
4148
|
+
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
4149
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
5766
4150
|
id: "notRegisteredForTax",
|
|
5767
4151
|
defaultMessage: text.notRegisteredForTax,
|
|
5768
4152
|
}, {
|
|
5769
4153
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5770
4154
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
5771
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
4155
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5772
4156
|
index.h("span", null, global.intl.formatMessage({
|
|
5773
4157
|
id: `indirectTaxDetails`,
|
|
5774
4158
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5791,7 +4175,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5791
4175
|
}, {
|
|
5792
4176
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5793
4177
|
})))),
|
|
5794
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
4178
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5795
4179
|
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 },
|
|
5796
4180
|
index.h("sqm-invoice-table-download-column", null),
|
|
5797
4181
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -5815,12 +4199,12 @@ function getSubRegionName(regionCode) {
|
|
|
5815
4199
|
return "";
|
|
5816
4200
|
// Impact adds an underscore to some regions
|
|
5817
4201
|
const standardCode = regionCode.replace("_", "");
|
|
5818
|
-
const regions = [...
|
|
4202
|
+
const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5819
4203
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
5820
4204
|
}
|
|
5821
4205
|
function getIndirectTaxType(taxInformation) {
|
|
5822
4206
|
var _a;
|
|
5823
|
-
const regions = [...
|
|
4207
|
+
const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5824
4208
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
5825
4209
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
5826
4210
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -5831,23 +4215,23 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5831
4215
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
5832
4216
|
return "VAT";
|
|
5833
4217
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
5834
|
-
return
|
|
4218
|
+
return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
5835
4219
|
}
|
|
5836
4220
|
return "Indirect Tax";
|
|
5837
4221
|
}
|
|
5838
4222
|
const useTaxAndCashDashboard = (props) => {
|
|
5839
4223
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5840
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
5841
|
-
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5842
|
-
const [showDialog, setShowDialog] =
|
|
4224
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
4225
|
+
const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
4226
|
+
const [showDialog, setShowDialog] = domContextHooks_module.useState(false);
|
|
5843
4227
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
5844
4228
|
const locale = index_module.L();
|
|
5845
|
-
|
|
4229
|
+
domContextHooks_module.useEffect(() => {
|
|
5846
4230
|
// Clear override context once on submitted
|
|
5847
4231
|
setContext({});
|
|
5848
4232
|
}, []);
|
|
5849
|
-
const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
5850
|
-
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;
|
|
4233
|
+
const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
4234
|
+
const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
5851
4235
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5852
4236
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
5853
4237
|
const dateSubmitted = submissionDate
|
|
@@ -5870,9 +4254,9 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5870
4254
|
});
|
|
5871
4255
|
setStep("/3");
|
|
5872
4256
|
};
|
|
5873
|
-
const provinceName = (_d =
|
|
5874
|
-
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
5875
|
-
|
|
4257
|
+
const provinceName = (_d = IndirectTaxDetailsView.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;
|
|
4258
|
+
const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
|
|
4259
|
+
domContextHooks_module.useEffect(() => {
|
|
5876
4260
|
const cb = () => refetch();
|
|
5877
4261
|
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5878
4262
|
return () => {
|
|
@@ -5884,7 +4268,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5884
4268
|
dateSubmitted,
|
|
5885
4269
|
documentType,
|
|
5886
4270
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
5887
|
-
documentTypeString:
|
|
4271
|
+
documentTypeString: utils$1.taxTypeToName(documentType),
|
|
5888
4272
|
status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
|
|
5889
4273
|
subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
|
|
5890
4274
|
subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
|
|
@@ -6222,7 +4606,12 @@ const TaxAndCashDashboard = class {
|
|
|
6222
4606
|
* @uiName Cancel button label
|
|
6223
4607
|
*/
|
|
6224
4608
|
this.cancelButton = "Cancel";
|
|
6225
|
-
|
|
4609
|
+
/**
|
|
4610
|
+
* @undocumented
|
|
4611
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "uiGroup": "Dashboard Properties" }
|
|
4612
|
+
*/
|
|
4613
|
+
this.stateController = "{}";
|
|
4614
|
+
domContextHooks_module.h$1(this);
|
|
6226
4615
|
}
|
|
6227
4616
|
disconnectedCallback() { }
|
|
6228
4617
|
getTextProps() {
|
|
@@ -6247,23 +4636,32 @@ const TaxAndCashDashboard = class {
|
|
|
6247
4636
|
}
|
|
6248
4637
|
};
|
|
6249
4638
|
function useDemoTaxAndCashDashboard(props) {
|
|
4639
|
+
console.log("dashboard", { props });
|
|
4640
|
+
// @ts-ignore
|
|
6250
4641
|
return cjs.cjs({
|
|
6251
4642
|
states: {
|
|
6252
4643
|
dateSubmitted: "today",
|
|
6253
4644
|
documentType: "W9",
|
|
6254
4645
|
documentTypeString: "W9",
|
|
6255
|
-
status: "ACTIVE",
|
|
6256
4646
|
country: "United States",
|
|
6257
|
-
indirectTaxNumber: 55555555,
|
|
4647
|
+
indirectTaxNumber: "55555555",
|
|
6258
4648
|
indirectTaxType: "Indirect Tax",
|
|
6259
|
-
noFormNeeded:
|
|
4649
|
+
noFormNeeded: false,
|
|
6260
4650
|
disabled: false,
|
|
6261
4651
|
loading: false,
|
|
6262
4652
|
showNewFormDialog: false,
|
|
6263
4653
|
hasHold: false,
|
|
6264
|
-
|
|
4654
|
+
subRegion: "CA",
|
|
4655
|
+
subRegionTaxNumber: undefined,
|
|
4656
|
+
qstNumber: undefined,
|
|
4657
|
+
isBusinessEntity: false,
|
|
4658
|
+
province: undefined,
|
|
4659
|
+
notRegistered: true,
|
|
4660
|
+
loadingError: false,
|
|
6265
4661
|
payoutStatus: "DONE",
|
|
6266
4662
|
veriffLoading: false,
|
|
4663
|
+
canEditPayoutInfo: true,
|
|
4664
|
+
status: "ACTIVE",
|
|
6267
4665
|
},
|
|
6268
4666
|
callbacks: {
|
|
6269
4667
|
onClick: () => console.debug("check step"),
|
|
@@ -6273,7 +4671,14 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6273
4671
|
onVerifyClick: () => console.log("verify"),
|
|
6274
4672
|
},
|
|
6275
4673
|
text: props.getTextProps(),
|
|
6276
|
-
|
|
4674
|
+
slots: {
|
|
4675
|
+
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
|
|
4676
|
+
states: {
|
|
4677
|
+
badgeStatus: "nextPayout",
|
|
4678
|
+
},
|
|
4679
|
+
} })),
|
|
4680
|
+
},
|
|
4681
|
+
}, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
|
|
6277
4682
|
}
|
|
6278
4683
|
|
|
6279
4684
|
const PHONE_EXTENSIONS = {
|
|
@@ -7247,19 +5652,19 @@ const PHONE_EXTENSIONS = {
|
|
|
7247
5652
|
},
|
|
7248
5653
|
};
|
|
7249
5654
|
|
|
7250
|
-
const style$
|
|
5655
|
+
const style$6 = {
|
|
7251
5656
|
FormWrapper: {},
|
|
7252
5657
|
ErrorInput: {
|
|
7253
5658
|
"&::part(base)": {
|
|
7254
|
-
border: "1px solid var(--
|
|
5659
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",
|
|
7255
5660
|
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
7256
5661
|
},
|
|
7257
5662
|
"&::part(help-text)": {
|
|
7258
|
-
color: "var(--
|
|
5663
|
+
color: "var(--sqm-danger-color-text)",
|
|
7259
5664
|
},
|
|
7260
5665
|
},
|
|
7261
5666
|
ErrorText: {
|
|
7262
|
-
color: "var(--
|
|
5667
|
+
color: "var(--sqm-danger-color-text)",
|
|
7263
5668
|
marginTop: "10px",
|
|
7264
5669
|
},
|
|
7265
5670
|
TextContainer: {
|
|
@@ -7290,9 +5695,6 @@ const style$7 = {
|
|
|
7290
5695
|
justifyContent: "flex-start",
|
|
7291
5696
|
flexDirection: "column",
|
|
7292
5697
|
},
|
|
7293
|
-
DescriptionText: {
|
|
7294
|
-
color: "var(--sl-color-neutral-500)",
|
|
7295
|
-
},
|
|
7296
5698
|
BoldText: {
|
|
7297
5699
|
fontWeight: "bold",
|
|
7298
5700
|
},
|
|
@@ -7301,28 +5703,8 @@ const style$7 = {
|
|
|
7301
5703
|
borderRadius: "50%",
|
|
7302
5704
|
},
|
|
7303
5705
|
},
|
|
7304
|
-
AlertContainer: {
|
|
7305
|
-
"&::part(base)": {
|
|
7306
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
7307
|
-
borderTop: "none",
|
|
7308
|
-
padding: "0 16px",
|
|
7309
|
-
},
|
|
7310
|
-
"& sl-icon::part(base)": {
|
|
7311
|
-
color: "var(--sl-color-danger-500)",
|
|
7312
|
-
},
|
|
7313
|
-
},
|
|
7314
|
-
PartnerAlertContainer: {
|
|
7315
|
-
"&::part(base)": {
|
|
7316
|
-
backgroundColor: "var(--sl-color-sky-100)",
|
|
7317
|
-
borderTop: "none",
|
|
7318
|
-
padding: "0 16px",
|
|
7319
|
-
},
|
|
7320
|
-
"& sl-icon::part(base)": {
|
|
7321
|
-
color: "var(--sl-color-blue-500)",
|
|
7322
|
-
},
|
|
7323
|
-
},
|
|
7324
5706
|
PageDescriptionText: {
|
|
7325
|
-
color: "var(--
|
|
5707
|
+
color: "var(--sqm-text-subdued)",
|
|
7326
5708
|
fontSize: "var(--sl-font-size-medium)",
|
|
7327
5709
|
},
|
|
7328
5710
|
PhoneInputsSection: {
|
|
@@ -7331,7 +5713,7 @@ const style$7 = {
|
|
|
7331
5713
|
gap: "4px",
|
|
7332
5714
|
"& p": {
|
|
7333
5715
|
fontSize: "var(--sl-font-size-small)",
|
|
7334
|
-
color: "var(--
|
|
5716
|
+
color: "var(--sqm-input-label-color)",
|
|
7335
5717
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
7336
5718
|
},
|
|
7337
5719
|
},
|
|
@@ -7345,8 +5727,8 @@ const style$7 = {
|
|
|
7345
5727
|
},
|
|
7346
5728
|
},
|
|
7347
5729
|
};
|
|
7348
|
-
const sheet$
|
|
7349
|
-
const styleString$
|
|
5730
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5731
|
+
const styleString$5 = sheet$5.toString();
|
|
7350
5732
|
const vanillaStyle$4 = `
|
|
7351
5733
|
:host{
|
|
7352
5734
|
display: block;
|
|
@@ -7356,6 +5738,11 @@ const vanillaStyle$4 = `
|
|
|
7356
5738
|
padding: 0;
|
|
7357
5739
|
box-sizing: border-box;
|
|
7358
5740
|
}
|
|
5741
|
+
a {
|
|
5742
|
+
color: var(--sqm-text);
|
|
5743
|
+
color: inherit !important;
|
|
5744
|
+
text-decoration: underline;
|
|
5745
|
+
}
|
|
7359
5746
|
|
|
7360
5747
|
p {
|
|
7361
5748
|
line-height: 18px;
|
|
@@ -7370,11 +5757,163 @@ const vanillaStyle$4 = `
|
|
|
7370
5757
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
7371
5758
|
min-width: 250px;
|
|
7372
5759
|
}
|
|
7373
|
-
|
|
5760
|
+
|
|
5761
|
+
sl-button[type="primary"]::part(base){
|
|
5762
|
+
background-color: var(--sqm-primary-button-background);
|
|
5763
|
+
color: var(--sqm-primary-button-color);
|
|
5764
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
5765
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
5766
|
+
}
|
|
5767
|
+
|
|
5768
|
+
sl-button[type="primary"]::part(base):hover{
|
|
5769
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
5770
|
+
}
|
|
5771
|
+
|
|
5772
|
+
sl-button[type="primary"]::part(base):focus{
|
|
5773
|
+
box-shadow: none;
|
|
5774
|
+
}
|
|
5775
|
+
|
|
5776
|
+
sl-button[type="secondary"]::part(base){
|
|
5777
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5778
|
+
color: var(--sqm-secondary-button-color);
|
|
5779
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5780
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5781
|
+
}
|
|
5782
|
+
|
|
5783
|
+
sl-button[type="secondary"]::part(base):hover{
|
|
5784
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
5785
|
+
}
|
|
5786
|
+
|
|
5787
|
+
|
|
5788
|
+
|
|
5789
|
+
*::part(primarybutton-base){
|
|
5790
|
+
background-color: var(--sqm-primary-button-background);
|
|
5791
|
+
color: var(--sqm-primary-button-color);
|
|
5792
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
5793
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
5794
|
+
}
|
|
5795
|
+
|
|
5796
|
+
*::part(primarybutton-base):hover{
|
|
5797
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
5798
|
+
}
|
|
5799
|
+
|
|
5800
|
+
*::part(primarybutton-base):focus{
|
|
5801
|
+
box-shadow: none;
|
|
5802
|
+
}
|
|
5803
|
+
|
|
5804
|
+
*::part(secondarybutton-base){
|
|
5805
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5806
|
+
color: var(--sqm-secondary-button-color);
|
|
5807
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5808
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5809
|
+
}
|
|
5810
|
+
|
|
5811
|
+
*::part(secondarybutton-base):hover{
|
|
5812
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
5813
|
+
}
|
|
5814
|
+
|
|
5815
|
+
*::part(secondarybutton-base){
|
|
5816
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5817
|
+
color: var(--sqm-secondary-button-color);
|
|
5818
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5819
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5820
|
+
width: max-content;
|
|
5821
|
+
display: flex;
|
|
5822
|
+
margin: auto;
|
|
5823
|
+
}
|
|
5824
|
+
|
|
5825
|
+
*::part(secondarybutton-base):hover{
|
|
5826
|
+
background: var(--sqm-secondary-button-background-hover);
|
|
5827
|
+
}
|
|
5828
|
+
|
|
5829
|
+
sl-input::part(label),
|
|
5830
|
+
sl-select::part(label),
|
|
5831
|
+
sl-textarea::part(label){
|
|
5832
|
+
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
5833
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
5834
|
+
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
5835
|
+
}
|
|
5836
|
+
|
|
5837
|
+
/* Corrected: Target sl-input, sl-select, sl-textarea base elements */
|
|
5838
|
+
sl-input::part(base),
|
|
5839
|
+
sl-dropdown::part(base),
|
|
5840
|
+
sl-textarea::part(base){
|
|
5841
|
+
background-color: var(--sqm-input-background, #fff);
|
|
5842
|
+
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
5843
|
+
color: var(--sqm-input-color, white);
|
|
5844
|
+
border-width: var(--sqm-border-thickness, 1px);
|
|
5845
|
+
border-style: solid;
|
|
5846
|
+
border-color: var(--sqm-input-border-color, #ccc);
|
|
5847
|
+
}
|
|
5848
|
+
|
|
5849
|
+
|
|
5850
|
+
sl-select::part(menu) {
|
|
5851
|
+
background: var(--sqm-input-background, inherit);
|
|
5852
|
+
color: var(--sqm-input-color, inherit);
|
|
5853
|
+
border:none;
|
|
5854
|
+
}
|
|
5855
|
+
|
|
5856
|
+
sl-menu-item::part(base) {
|
|
5857
|
+
color: var(--sqm-input-color);
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
sl-menu-item::part(base):hover {
|
|
5861
|
+
background-color: var(--sqm-input-border-color-hover);
|
|
5862
|
+
}
|
|
5863
|
+
|
|
5864
|
+
sl-select::part(panel) {
|
|
5865
|
+
border-radius: var(--sqm-border-radius-normal);
|
|
5866
|
+
}
|
|
5867
|
+
|
|
5868
|
+
sl-select::part(help-text) {
|
|
5869
|
+
color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
|
|
5870
|
+
}
|
|
5871
|
+
|
|
5872
|
+
sl-input::part(base):focus,
|
|
5873
|
+
sl-select::part(base):focus, /* Corrected part name for sl-select */
|
|
5874
|
+
sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
|
|
5875
|
+
border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
|
|
5876
|
+
}
|
|
5877
|
+
|
|
5878
|
+
sl-input[disabled]::part(base),
|
|
5879
|
+
sl-select[disabled]::part(base),
|
|
5880
|
+
sl-textarea[disabled]::part(base){
|
|
5881
|
+
background: var(--sqm-input-disabled-background, #f5f5f5);
|
|
5882
|
+
border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
|
|
5883
|
+
}
|
|
5884
|
+
|
|
5885
|
+
|
|
5886
|
+
sl-input::part(input):-webkit-autofill {
|
|
5887
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5888
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5889
|
+
}
|
|
5890
|
+
|
|
5891
|
+
sl-input::part(input):-webkit-autofill:hover {
|
|
5892
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5893
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5894
|
+
}
|
|
5895
|
+
|
|
5896
|
+
sl-input::part(input):-webkit-autofill:focus {
|
|
5897
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5898
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5899
|
+
}
|
|
5900
|
+
|
|
5901
|
+
sl-checkbox::part(label){
|
|
5902
|
+
color: var(--sqm-text);
|
|
5903
|
+
}
|
|
5904
|
+
|
|
5905
|
+
sl-checkbox[checked]::part(control){
|
|
5906
|
+
background-color: var(--sqm-input-border-color-focus);
|
|
5907
|
+
}
|
|
5908
|
+
|
|
5909
|
+
sl-checkbox[checked]::part(checked-icon){
|
|
5910
|
+
color: var(--sqm-input-background);
|
|
5911
|
+
}
|
|
5912
|
+
`;
|
|
7374
5913
|
const UserInfoFormView = (props) => {
|
|
7375
5914
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
7376
|
-
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7377
|
-
const { classes } = sheet$
|
|
5915
|
+
const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
|
|
5916
|
+
const { classes } = sheet$5;
|
|
7378
5917
|
const bankingCollectionText = global.intl.formatMessage({
|
|
7379
5918
|
id: "bankingCollectionText",
|
|
7380
5919
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -7382,7 +5921,7 @@ const UserInfoFormView = (props) => {
|
|
|
7382
5921
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
7383
5922
|
});
|
|
7384
5923
|
let regionLabel = undefined;
|
|
7385
|
-
switch (data.regionLabelEnum) {
|
|
5924
|
+
switch (data$1.regionLabelEnum) {
|
|
7386
5925
|
case "STATE":
|
|
7387
5926
|
regionLabel = text.state;
|
|
7388
5927
|
break;
|
|
@@ -7397,65 +5936,58 @@ const UserInfoFormView = (props) => {
|
|
|
7397
5936
|
}
|
|
7398
5937
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
7399
5938
|
index.h("style", { type: "text/css" },
|
|
7400
|
-
styleString$
|
|
5939
|
+
styleString$5,
|
|
7401
5940
|
vanillaStyle$4),
|
|
7402
5941
|
states.loadingError && (index.h("div", null,
|
|
7403
|
-
index.h("
|
|
7404
|
-
index.h("
|
|
7405
|
-
index.h("
|
|
7406
|
-
index.h("br", null),
|
|
7407
|
-
global.intl.formatMessage({
|
|
5942
|
+
index.h("sqm-form-message", { type: "error" },
|
|
5943
|
+
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
5944
|
+
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
7408
5945
|
id: "loadingErrorAlertDescription",
|
|
7409
5946
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
7410
5947
|
}, {
|
|
7411
5948
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7412
|
-
})),
|
|
7413
|
-
|
|
7414
|
-
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
5949
|
+
}))))),
|
|
5950
|
+
states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
|
|
7415
5951
|
index.h("div", { class: classes.TextContainer },
|
|
7416
5952
|
index.h("div", null,
|
|
7417
5953
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
7418
5954
|
id: "formStep",
|
|
7419
5955
|
defaultMessage: text.formStep,
|
|
7420
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
5956
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
7421
5957
|
index.h("h3", null, text.personalInformation),
|
|
7422
5958
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
7423
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
7424
|
-
index.h("
|
|
7425
|
-
index.h("
|
|
7426
|
-
index.h("br", null),
|
|
7427
|
-
global.intl.formatMessage({
|
|
5959
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
|
|
5960
|
+
index.h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
5961
|
+
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
7428
5962
|
id: "generalDescription",
|
|
7429
5963
|
defaultMessage: text.error.generalDescription,
|
|
7430
5964
|
}, {
|
|
7431
5965
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7432
|
-
}))),
|
|
7433
|
-
(states.isPartner || states.isUser) && (index.h("
|
|
7434
|
-
index.h("
|
|
7435
|
-
index.h("
|
|
7436
|
-
index.h("br", null),
|
|
7437
|
-
global.intl.formatMessage({
|
|
5966
|
+
})))),
|
|
5967
|
+
(states.isPartner || states.isUser) && (index.h("sqm-form-message", { type: "info" },
|
|
5968
|
+
index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
5969
|
+
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
7438
5970
|
id: "isPartnerAlertDescription",
|
|
7439
5971
|
defaultMessage: text.isPartnerAlertDescription,
|
|
7440
5972
|
}, {
|
|
7441
5973
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7442
|
-
}))),
|
|
5974
|
+
})))),
|
|
7443
5975
|
index.h("div", null,
|
|
7444
5976
|
index.h("div", { class: classes.InputContainer },
|
|
7445
|
-
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) ? {
|
|
5977
|
+
index.h("sl-input", Object.assign({ class: "ErrorInput", 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) ? {
|
|
7446
5978
|
class: classes.ErrorInput,
|
|
7447
|
-
helpText:
|
|
5979
|
+
helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
7448
5980
|
}
|
|
7449
5981
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
7450
5982
|
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) ? {
|
|
7451
5983
|
class: classes.ErrorInput,
|
|
7452
|
-
helpText:
|
|
5984
|
+
helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
7453
5985
|
}
|
|
7454
5986
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
7455
5987
|
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 }),
|
|
7456
5988
|
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) ? {
|
|
7457
5989
|
class: classes.ErrorInput,
|
|
7458
|
-
helpText:
|
|
5990
|
+
helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
7459
5991
|
}
|
|
7460
5992
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
7461
5993
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
@@ -7463,8 +5995,8 @@ const UserInfoFormView = (props) => {
|
|
|
7463
5995
|
e.stopPropagation();
|
|
7464
5996
|
}, "onSl-input": (e) => {
|
|
7465
5997
|
callbacks.setCountrySearch(e.target.value);
|
|
7466
|
-
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
7467
|
-
_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 :
|
|
5998
|
+
} }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
|
|
5999
|
+
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _f === void 0 ? void 0 :
|
|
7468
6000
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
7469
6001
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
7470
6002
|
index.h("p", null, text.phoneNumber),
|
|
@@ -7478,13 +6010,13 @@ const UserInfoFormView = (props) => {
|
|
|
7478
6010
|
e.stopPropagation();
|
|
7479
6011
|
}, "onSl-input": (e) => {
|
|
7480
6012
|
callbacks.setPhoneCountrySearch(e.target.value);
|
|
7481
|
-
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
6013
|
+
} }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
7482
6014
|
_h.map((c) => {
|
|
7483
6015
|
var _a, _b;
|
|
7484
6016
|
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
7485
6017
|
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 :
|
|
7486
6018
|
_b.dial_code));
|
|
7487
|
-
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
6019
|
+
}), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
|
|
7488
6020
|
_j.map((c) => {
|
|
7489
6021
|
var _a, _b;
|
|
7490
6022
|
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
@@ -7493,42 +6025,42 @@ const UserInfoFormView = (props) => {
|
|
|
7493
6025
|
})),
|
|
7494
6026
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
7495
6027
|
// Naive phone number validation
|
|
7496
|
-
|
|
7497
|
-
|
|
6028
|
+
utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
6029
|
+
utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
7498
6030
|
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
7499
6031
|
class: classes.ErrorInput,
|
|
7500
|
-
helpText:
|
|
6032
|
+
helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
7501
6033
|
}
|
|
7502
6034
|
: {}), { required: true })))),
|
|
7503
6035
|
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 }) =>
|
|
7504
6036
|
// Checks for non-ASCII characters
|
|
7505
|
-
!
|
|
7506
|
-
|
|
6037
|
+
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6038
|
+
utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
7507
6039
|
class: classes.ErrorInput,
|
|
7508
|
-
helpText:
|
|
6040
|
+
helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
|
|
7509
6041
|
}
|
|
7510
6042
|
: {}), { required: true })),
|
|
7511
6043
|
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 }) =>
|
|
7512
6044
|
// Checks for non-ASCII characters
|
|
7513
|
-
!
|
|
7514
|
-
|
|
6045
|
+
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6046
|
+
utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
7515
6047
|
class: classes.ErrorInput,
|
|
7516
|
-
helpText:
|
|
6048
|
+
helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
|
|
7517
6049
|
}
|
|
7518
6050
|
: {}), { required: true })),
|
|
7519
6051
|
!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) ? {
|
|
7520
6052
|
class: classes.ErrorInput,
|
|
7521
|
-
helpText:
|
|
6053
|
+
helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
|
|
7522
6054
|
}
|
|
7523
|
-
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6055
|
+
: {}), { required: true }), (_p = data$1.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
7524
6056
|
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) ? {
|
|
7525
6057
|
class: classes.ErrorInput,
|
|
7526
|
-
helpText:
|
|
6058
|
+
helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
7527
6059
|
}
|
|
7528
6060
|
: {}), { required: true })),
|
|
7529
6061
|
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) ? {
|
|
7530
6062
|
class: classes.ErrorInput,
|
|
7531
|
-
helpText:
|
|
6063
|
+
helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
|
|
7532
6064
|
}
|
|
7533
6065
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
7534
6066
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
@@ -7536,49 +6068,49 @@ const UserInfoFormView = (props) => {
|
|
|
7536
6068
|
e.stopPropagation();
|
|
7537
6069
|
}, "onSl-input": (e) => {
|
|
7538
6070
|
callbacks.setCurrencySearch(e.target.value);
|
|
7539
|
-
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6071
|
+
} }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
|
|
7540
6072
|
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
7541
6073
|
c.currencyCode,
|
|
7542
6074
|
" - ",
|
|
7543
|
-
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6075
|
+
c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
7544
6076
|
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
7545
6077
|
c.currencyCode,
|
|
7546
6078
|
" - ",
|
|
7547
6079
|
c.displayName)))),
|
|
7548
6080
|
index.h("div", { class: classes.CheckboxWrapper },
|
|
7549
|
-
index.h("sl-checkbox", {
|
|
6081
|
+
index.h("sl-checkbox", { checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
7550
6082
|
e.target.value = e.target.checked;
|
|
7551
6083
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
7552
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText },
|
|
6084
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, utils$1.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
7553
6085
|
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
7554
6086
|
};
|
|
7555
6087
|
|
|
7556
6088
|
function useUserInfoForm(props) {
|
|
7557
6089
|
var _a, _b, _c, _d;
|
|
7558
|
-
const currencyRef =
|
|
7559
|
-
const phoneCountryRef =
|
|
7560
|
-
const formRef =
|
|
7561
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7562
|
-
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
7563
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
7564
|
-
const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7565
|
-
const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
7566
|
-
const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
|
|
7567
|
-
const currencies =
|
|
7568
|
-
const [countrySearch, setCountrySearch] =
|
|
7569
|
-
const [phoneCountrySearch, setPhoneCountrySearch] =
|
|
7570
|
-
const [filteredCountries, setFilteredCountries] =
|
|
7571
|
-
const [filteredPhoneCountries, setFilteredPhoneCountries] =
|
|
7572
|
-
const [currencySearch, setCurrencySearch] =
|
|
7573
|
-
const [filteredCurrencies, setFilteredCurrencies] =
|
|
7574
|
-
const [formErrors, setErrors] =
|
|
7575
|
-
|
|
6090
|
+
const currencyRef = domContextHooks_module.useRef(undefined);
|
|
6091
|
+
const phoneCountryRef = domContextHooks_module.useRef(undefined);
|
|
6092
|
+
const formRef = domContextHooks_module.useRef(null);
|
|
6093
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
6094
|
+
const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
|
|
6095
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
6096
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
6097
|
+
const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
6098
|
+
const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
|
|
6099
|
+
const currencies = domContextHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6100
|
+
const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
|
|
6101
|
+
const [phoneCountrySearch, setPhoneCountrySearch] = domContextHooks_module.useState("");
|
|
6102
|
+
const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(countries || []);
|
|
6103
|
+
const [filteredPhoneCountries, setFilteredPhoneCountries] = domContextHooks_module.useState(countries || []);
|
|
6104
|
+
const [currencySearch, setCurrencySearch] = domContextHooks_module.useState("");
|
|
6105
|
+
const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(currencies || []);
|
|
6106
|
+
const [formErrors, setErrors] = domContextHooks_module.useState({});
|
|
6107
|
+
domContextHooks_module.useEffect(() => {
|
|
7576
6108
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7577
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6109
|
+
const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
|
|
7578
6110
|
if (!user || step !== "/1")
|
|
7579
6111
|
return;
|
|
7580
6112
|
// If form already filled out, skip initialising it
|
|
7581
|
-
if (
|
|
6113
|
+
if (utils$1.objectIsFull(userFormContext))
|
|
7582
6114
|
return;
|
|
7583
6115
|
// Prefer MI email if it was verified before this
|
|
7584
6116
|
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
@@ -7615,7 +6147,7 @@ function useUserInfoForm(props) {
|
|
|
7615
6147
|
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
7616
6148
|
});
|
|
7617
6149
|
}
|
|
7618
|
-
}, [data, step, userFormContext]);
|
|
6150
|
+
}, [data$1, step, userFormContext]);
|
|
7619
6151
|
const onFormChange = (field, e) => {
|
|
7620
6152
|
var _a, _b;
|
|
7621
6153
|
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
@@ -7630,7 +6162,7 @@ function useUserInfoForm(props) {
|
|
|
7630
6162
|
currencyRef.current.value = "";
|
|
7631
6163
|
}
|
|
7632
6164
|
};
|
|
7633
|
-
|
|
6165
|
+
domContextHooks_module.useEffect(() => {
|
|
7634
6166
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
7635
6167
|
return;
|
|
7636
6168
|
if (countrySearch.trim() === "") {
|
|
@@ -7640,7 +6172,7 @@ function useUserInfoForm(props) {
|
|
|
7640
6172
|
setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
|
|
7641
6173
|
}
|
|
7642
6174
|
}, [countrySearch, countries]);
|
|
7643
|
-
|
|
6175
|
+
domContextHooks_module.useEffect(() => {
|
|
7644
6176
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
7645
6177
|
return;
|
|
7646
6178
|
if (phoneCountrySearch.trim() === "") {
|
|
@@ -7650,7 +6182,7 @@ function useUserInfoForm(props) {
|
|
|
7650
6182
|
setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
|
|
7651
6183
|
}
|
|
7652
6184
|
}, [phoneCountrySearch, countries]);
|
|
7653
|
-
|
|
6185
|
+
domContextHooks_module.useEffect(() => {
|
|
7654
6186
|
if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
|
|
7655
6187
|
return;
|
|
7656
6188
|
if (currencySearch.trim() === "") {
|
|
@@ -7707,7 +6239,7 @@ function useUserInfoForm(props) {
|
|
|
7707
6239
|
}
|
|
7708
6240
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
7709
6241
|
const regionObj = hasStates
|
|
7710
|
-
?
|
|
6242
|
+
? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
7711
6243
|
: {};
|
|
7712
6244
|
return {
|
|
7713
6245
|
setStep: setStep,
|
|
@@ -7740,8 +6272,8 @@ function useUserInfoForm(props) {
|
|
|
7740
6272
|
disabled: loading,
|
|
7741
6273
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
7742
6274
|
loading: loading,
|
|
7743
|
-
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),
|
|
7744
|
-
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),
|
|
6275
|
+
isPartner: !!((_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
|
|
6276
|
+
isUser: !!((_d = (_c = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
|
|
7745
6277
|
formState: {
|
|
7746
6278
|
...userFormContext,
|
|
7747
6279
|
errors: formErrors,
|
|
@@ -7904,7 +6436,7 @@ const TaxForm = class {
|
|
|
7904
6436
|
* @uiName Support link text
|
|
7905
6437
|
*/
|
|
7906
6438
|
this.supportLink = "support team";
|
|
7907
|
-
|
|
6439
|
+
domContextHooks_module.h$1(this);
|
|
7908
6440
|
}
|
|
7909
6441
|
disconnectedCallback() { }
|
|
7910
6442
|
getTextProps() {
|
|
@@ -7924,19 +6456,20 @@ const TaxForm = class {
|
|
|
7924
6456
|
}
|
|
7925
6457
|
render() {
|
|
7926
6458
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
7927
|
-
return (index.h(
|
|
6459
|
+
return (index.h(UserInfoFormView, { data: props.data,
|
|
7928
6460
|
// @ts-ignore
|
|
7929
6461
|
states: props.states, callbacks: {
|
|
7930
6462
|
...props.callbacks,
|
|
7931
6463
|
onSubmit: props.onSubmit,
|
|
7932
|
-
}, text: props.text, refs: props.refs }))
|
|
6464
|
+
}, text: props.text, refs: props.refs }));
|
|
7933
6465
|
}
|
|
7934
6466
|
};
|
|
7935
6467
|
function useDemoUserInfoForm(props) {
|
|
7936
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6468
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
6469
|
+
// @ts-ignore
|
|
7937
6470
|
return cjs.cjs({
|
|
7938
6471
|
setStep,
|
|
7939
|
-
onSubmit: () => {
|
|
6472
|
+
onSubmit: async () => {
|
|
7940
6473
|
setStep("/2");
|
|
7941
6474
|
},
|
|
7942
6475
|
onRadioClick: () => { },
|
|
@@ -7980,19 +6513,12 @@ function useDemoUserInfoForm(props) {
|
|
|
7980
6513
|
}
|
|
7981
6514
|
|
|
7982
6515
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
7983
|
-
exports.sqm_code_verification = WidgetCodeVerification;
|
|
7984
6516
|
exports.sqm_docusign_form = DocusignForm;
|
|
7985
6517
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
7986
6518
|
exports.sqm_invoice_table = InvoiceTable;
|
|
7987
|
-
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
7988
6519
|
exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
|
|
7989
|
-
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
7990
6520
|
exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
|
|
7991
|
-
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
7992
6521
|
exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
|
|
7993
6522
|
exports.sqm_payout_details_card = PayoutDetailsCard;
|
|
7994
|
-
exports.sqm_table_cell = TableCell;
|
|
7995
|
-
exports.sqm_table_row = TableRow;
|
|
7996
|
-
exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
7997
6523
|
exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
|
|
7998
6524
|
exports.sqm_user_info_form = TaxForm;
|