@saasquatch/mint-components 1.15.0-4 → 1.15.0-41
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-a9f4ba75.js → GenericTableView-a9d0b798.js} +7 -7
- package/dist/cjs/IndirectTaxDetailsView-d0290a12.js +646 -0
- package/dist/cjs/{ShadowViewAddon-9e7916d8.js → ShadowViewAddon-9cb7a310.js} +1333 -1316
- package/dist/cjs/{copy-text-view-c85acaaa.js → copy-text-view-ee147291.js} +54 -39
- package/dist/cjs/data-6d96b89c.js +137 -0
- package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-dca94dc9.js} +2 -2
- package/dist/cjs/{global-0cf6d295.js → global-d62c5561.js} +308 -90
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +647 -2188
- package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-1c5094d3.js} +2 -2
- package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_42.cjs.entry.js} +570 -115
- package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-b297e933.js} +1 -1
- package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
- package/dist/cjs/sqm-code-verification.cjs.entry.js +348 -0
- package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +49 -49
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
- package/dist/cjs/{sqm-leaderboard-rank-view-d39a55d8.js → sqm-leaderboard-rank-view-7c6cebe3.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-navigation-sidebar-item-view-6f35d2ee.js → sqm-navigation-sidebar-item-view-10b62df1.js} +18 -7
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +26 -3
- package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-38a5227a.js} +16 -6
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +19 -3
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +86 -59
- package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-ab0fb983.js → sqm-portal-email-verification-view-156accab.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-forgot-password-view-78f19ef9.js → sqm-portal-forgot-password-view-fdd97c18.js} +24 -17
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +25 -4
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-login-view-761a4d8e.js → sqm-portal-login-view-0fbbda1b.js} +3 -3
- package/dist/cjs/{sqm-portal-profile-view-e3026b53.js → sqm-portal-profile-view-f226725e.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-registration-form-view-637a4bf4.js → sqm-portal-registration-form-view-399f4eaf.js} +2 -2
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-0439a9e5.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-05f72dec.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-7ee9fa56.js} +2 -7
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +111 -24
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +81 -15
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +13717 -12395
- package/dist/cjs/sqm-tabs.cjs.entry.js +16 -4
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1221 -0
- package/dist/cjs/sqm-text-span-view-ce4c0178.js +63 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +4 -4
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -6
- package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-feeac99b.js} +8 -5
- package/dist/cjs/utils-ce18d1bc.js +105 -0
- package/dist/collection/collection-manifest.json +1 -0
- 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 +162 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +10 -0
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +13 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +7 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +169 -1
- 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 +58 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +1 -1
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +3 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +2 -2
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +60 -54
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +197 -32
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +27 -2
- 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 +16 -6
- 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 +17 -6
- 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 -0
- 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-footer/sqm-portal-footer-view.js +6 -6
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +22 -15
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +95 -2
- 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 +103 -2
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +9 -3
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +32 -31
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +75 -0
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +169 -1
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +48 -15
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +60 -6
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -4
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +3 -3
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +71 -5
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +53 -7
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +169 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +171 -3
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +20 -8
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +179 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +21 -17
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +83 -97
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +14 -2
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
- package/dist/collection/components/sqm-task-card/DetailsView.js +8 -2
- 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 +138 -156
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +146 -0
- package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
- package/dist/collection/components/sqm-text/Text.stories.js +12 -0
- package/dist/collection/components/sqm-text/sqm-text.js +100 -49
- 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/Timeline.stories.js +8 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +33 -3
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -6
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +20 -43
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +15 -42
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +57 -23
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
- 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 +13 -13
- 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/usePayoutStatus.js +8 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +77 -28
- 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 +18 -18
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +62 -3
- 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/sqm-user-info-form-view.js +173 -20
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +49 -11
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/components/views/copy-text-view.js +53 -38
- package/dist/collection/components/views/email-registration-view.js +1 -1
- package/dist/collection/global/mixins.js +8 -8
- package/dist/collection/global/styles.js +308 -90
- package/dist/collection/global/styles.ts +321 -90
- package/dist/collection/tables/GenericTableView.js +6 -6
- package/dist/collection/utils/parseStates.js +12 -0
- package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-3b6f9ccc.js} +7 -7
- package/dist/esm/IndirectTaxDetailsView-3be86bcf.js +639 -0
- package/dist/esm/{ShadowViewAddon-e350d540.js → ShadowViewAddon-d8cfd6c7.js} +1336 -1318
- package/dist/esm/{copy-text-view-782137ba.js → copy-text-view-4a207b17.js} +54 -39
- package/dist/esm/data-a05c78ae.js +121 -0
- package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-8782c01b.js} +2 -2
- package/dist/esm/{global-1d207c9e.js → global-632fb2fa.js} +308 -90
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +571 -2105
- package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-d732a5df.js} +2 -2
- package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_42.entry.js} +574 -120
- package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-bc2bc10e.js} +1 -1
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-code-verification.entry.js +344 -0
- package/dist/esm/sqm-email-verification.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +49 -49
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
- package/dist/esm/{sqm-leaderboard-rank-view-753c8d4a.js → sqm-leaderboard-rank-view-84b3c539.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-8f1c72bc.js → sqm-navigation-sidebar-item-view-6e046743.js} +18 -7
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +26 -3
- package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-f898265a.js} +16 -6
- package/dist/esm/sqm-navigation-sidebar.entry.js +20 -4
- package/dist/esm/sqm-pagination_3.entry.js +86 -59
- package/dist/esm/sqm-password-field.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-6c8bad0b.js → sqm-portal-email-verification-view-24ea7b3c.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/{sqm-portal-forgot-password-view-3d3182f1.js → sqm-portal-forgot-password-view-55fc0873.js} +24 -17
- package/dist/esm/sqm-portal-forgot-password.entry.js +25 -4
- package/dist/esm/sqm-portal-google-login.entry.js +3 -3
- package/dist/esm/sqm-portal-google-registration-form.entry.js +4 -4
- package/dist/esm/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-e870b4b0.js} +3 -3
- package/dist/esm/{sqm-portal-profile-view-cbdeec1f.js → sqm-portal-profile-view-9b4d7ec1.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-5d651c04.js} +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +3 -3
- package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-6903828e.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-01ac711f.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +3 -3
- package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-62c10948.js} +2 -7
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +111 -24
- package/dist/esm/sqm-referred-registration.entry.js +2 -2
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +81 -15
- package/dist/esm/sqm-stencilbook.entry.js +13715 -12393
- package/dist/esm/sqm-tabs.entry.js +16 -4
- package/dist/esm/sqm-tax-and-cash.entry.js +1217 -0
- package/dist/esm/sqm-text-span-view-cd3902e5.js +61 -0
- package/dist/esm/sqm-text-span.entry.js +4 -4
- package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
- package/dist/esm/sqm-widget-verification.entry.js +17 -6
- package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-fed17fc9.js} +8 -5
- package/dist/esm/utils-1654e233.js +97 -0
- package/dist/esm-es5/GenericTableView-3b6f9ccc.js +1 -0
- package/dist/esm-es5/IndirectTaxDetailsView-3be86bcf.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-d8cfd6c7.js +1 -0
- package/dist/esm-es5/copy-text-view-4a207b17.js +1 -0
- package/dist/esm-es5/data-a05c78ae.js +1 -0
- package/dist/esm-es5/email-registration-view-8782c01b.js +1 -0
- package/dist/esm-es5/{global-1d207c9e.js → global-632fb2fa.js} +5 -5
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mixins-f750863a.js +1 -0
- package/dist/esm-es5/parseStates-ed75e224.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-593d4ac3.js → sqm-base-registration-form-view-d732a5df.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -0
- package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-bc2bc10e.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-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.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-84b3c539.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-6e046743.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-f898265a.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-portal-email-verification-view-6c8bad0b.js → sqm-portal-email-verification-view-24ea7b3c.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-55fc0873.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-login-view-e870b4b0.js +1 -0
- package/dist/esm-es5/{sqm-portal-profile-view-cbdeec1f.js → sqm-portal-profile-view-9b4d7ec1.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-5d651c04.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-6903828e.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-01ac711f.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-62c10948.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.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-cd3902e5.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/{usePayoutStatus-58aa56b4.js → usePayoutStatus-fed17fc9.js} +2 -2
- package/dist/esm-es5/utils-1654e233.js +1 -0
- package/dist/mint-components/global/styles.ts +321 -90
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-042642d3.entry.js +1 -0
- package/dist/mint-components/{p-91ab3da1.js → p-057f5402.js} +1 -1
- package/dist/mint-components/p-06ce54e2.entry.js +258 -0
- package/dist/mint-components/p-0984523b.js +1 -0
- package/dist/mint-components/p-0a37a288.system.entry.js +1 -0
- package/dist/mint-components/p-0a8a6d45.system.entry.js +1 -0
- package/dist/mint-components/{p-d07f3090.entry.js → p-0b3218a5.entry.js} +1 -1
- package/dist/mint-components/{p-e5d0375e.system.js → p-0df294ad.system.js} +1 -1
- package/dist/mint-components/p-0e32981f.js +1 -0
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/{p-480e08e9.js → p-11dff275.js} +2 -2
- package/dist/mint-components/{p-1673fae9.system.entry.js → p-12e61414.system.entry.js} +1 -1
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/p-155cf177.system.js +1 -0
- package/dist/mint-components/{p-15d77d0b.entry.js → p-1878da9b.entry.js} +2 -2
- package/dist/mint-components/{p-99ad7d56.system.js → p-223dd3f7.system.js} +1 -1
- package/dist/mint-components/p-2cfe9826.system.entry.js +1 -0
- package/dist/mint-components/p-2df6ce8f.entry.js +144 -0
- package/dist/mint-components/p-32a47b41.system.js +1 -0
- package/dist/mint-components/{p-9d3d4098.system.js → p-33f640f6.system.js} +1 -1
- package/dist/mint-components/p-3a21f8f9.system.entry.js +1 -0
- package/dist/mint-components/p-3c3aab4c.system.js +1 -0
- package/dist/mint-components/{p-19bc3406.system.entry.js → p-3e4e74a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-164a9103.system.entry.js → p-41d051b1.system.entry.js} +1 -1
- package/dist/mint-components/{p-709e1799.system.entry.js → p-450a7705.system.entry.js} +1 -1
- package/dist/mint-components/{p-90fc6774.system.entry.js → p-457962b7.system.entry.js} +1 -1
- package/dist/mint-components/p-46a672e4.entry.js +1 -0
- package/dist/mint-components/p-4841c5e9.system.entry.js +1 -0
- package/dist/mint-components/p-49b20dae.js +1 -0
- package/dist/mint-components/{p-380bfde1.entry.js → p-4b42b756.entry.js} +1 -1
- package/dist/mint-components/{p-2dca9e1a.system.js → p-4b9789a2.system.js} +1 -1
- package/dist/mint-components/p-4bb1c4b2.system.js +1 -0
- package/dist/mint-components/p-4cbd7eec.js +394 -0
- package/dist/mint-components/{p-f0772618.system.entry.js → p-4d478108.system.entry.js} +1 -1
- package/dist/mint-components/{p-b75bb6e3.system.js → p-505951d2.system.js} +1 -1
- package/dist/mint-components/{p-6df88590.system.entry.js → p-51aa8c38.system.entry.js} +1 -1
- package/dist/mint-components/p-52d15f87.system.js +1 -0
- package/dist/mint-components/p-54b0b768.system.js +1 -0
- package/dist/mint-components/p-5510be1e.system.entry.js +1 -0
- package/dist/mint-components/p-5c5964e0.js +1 -0
- package/dist/mint-components/p-5d407714.system.entry.js +1 -0
- package/dist/mint-components/{p-a2fde301.entry.js → p-5ef6de10.entry.js} +1 -1
- package/dist/mint-components/p-66a2b1a4.js +1 -0
- package/dist/mint-components/p-66d22d46.entry.js +13 -0
- package/dist/mint-components/p-674b82ac.js +1 -0
- package/dist/mint-components/p-6798cad1.system.js +1 -0
- package/dist/mint-components/{p-0c78815e.system.entry.js → p-6a49b077.system.entry.js} +1 -1
- package/dist/mint-components/{p-53730ffe.entry.js → p-6a5f57d7.entry.js} +1 -1
- package/dist/mint-components/p-6ef506ba.entry.js +16 -0
- package/dist/mint-components/{p-9cb06082.system.entry.js → p-6fa624ff.system.entry.js} +1 -1
- package/dist/mint-components/p-704f162e.entry.js +1 -0
- package/dist/mint-components/p-70fddbdd.entry.js +11 -0
- package/dist/mint-components/p-731d06a9.entry.js +1 -0
- package/dist/mint-components/p-74afdafb.system.js +1 -0
- package/dist/mint-components/p-767485b8.system.js +1 -0
- package/dist/mint-components/p-780b981b.entry.js +1 -0
- package/dist/mint-components/{p-fbac722b.js → p-7adb141e.js} +1 -1
- package/dist/mint-components/p-7b731acd.entry.js +93 -0
- package/dist/mint-components/{p-7a9290ba.js → p-82113e37.js} +1 -1
- package/dist/mint-components/{p-42187319.system.entry.js → p-846aff6a.system.entry.js} +1 -1
- package/dist/mint-components/p-84a78d09.entry.js +1 -0
- package/dist/mint-components/{p-0d2d0b6d.entry.js → p-865f812e.entry.js} +1 -1
- package/dist/mint-components/p-8a6494c7.system.js +1 -0
- package/dist/mint-components/p-8feb4180.entry.js +1 -0
- package/dist/mint-components/{p-475245d1.system.js → p-96e339f6.system.js} +15 -15
- package/dist/mint-components/p-9711efb7.entry.js +1 -0
- package/dist/mint-components/{p-cc7af682.system.js → p-9721a29a.system.js} +2 -2
- package/dist/mint-components/p-9acf0b39.system.entry.js +1 -0
- package/dist/mint-components/p-9d41d676.system.entry.js +1 -0
- package/dist/mint-components/p-9f2edf59.system.js +1 -0
- package/dist/mint-components/p-a1e17fd2.js +1 -0
- package/dist/mint-components/p-a27a15c5.system.entry.js +1 -0
- package/dist/mint-components/{p-d929b9d5.system.js → p-a3383f54.system.js} +1 -1
- package/dist/mint-components/{p-4428294b.entry.js → p-a3e68251.entry.js} +1 -1
- package/dist/mint-components/p-a572db9b.system.entry.js +1 -0
- package/dist/mint-components/{p-7f80a9d7.entry.js → p-a60d5315.entry.js} +1 -1
- package/dist/mint-components/p-a91e7c05.system.entry.js +1 -0
- package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-af516659.system.entry.js} +1 -1
- package/dist/mint-components/p-b637f1e4.js +1 -0
- package/dist/mint-components/{p-2f101bae.entry.js → p-b6761073.entry.js} +1 -1
- package/dist/mint-components/{p-f1e72435.entry.js → p-b73a4df4.entry.js} +2 -2
- package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-bb6e411d.system.entry.js} +1 -1
- package/dist/mint-components/p-bdd80fce.js +1 -0
- package/dist/mint-components/p-be89074c.entry.js +1 -0
- package/dist/mint-components/p-c0b07067.system.js +1 -0
- package/dist/mint-components/p-c1b1f8ae.system.entry.js +1 -0
- package/dist/mint-components/p-c75a3b4a.js +103 -0
- package/dist/mint-components/{p-91959fbe.js → p-c96a25c6.js} +1 -1
- package/dist/mint-components/p-c9745c8f.system.js +1 -0
- package/dist/mint-components/p-ca9e0322.system.js +1 -0
- package/dist/mint-components/{p-1a6b7d2a.entry.js → p-cd0ee247.entry.js} +1 -1
- package/dist/mint-components/p-cf157c6e.system.entry.js +1 -0
- package/dist/mint-components/{p-9386ad84.system.entry.js → p-d12e9cfd.system.entry.js} +1 -1
- package/dist/mint-components/{p-35b475bf.js → p-d1ae7a2d.js} +1 -1
- package/dist/mint-components/{p-5c28406d.system.entry.js → p-d5b3397c.system.entry.js} +1 -1
- package/dist/mint-components/p-d6352d15.js +1 -0
- package/dist/mint-components/p-d94a4d50.system.entry.js +1 -0
- package/dist/mint-components/p-da71337b.entry.js +1 -0
- package/dist/mint-components/{p-9b894557.entry.js → p-dbb83730.entry.js} +1 -1
- package/dist/mint-components/{p-6d4a313f.js → p-dc293b10.js} +81 -81
- package/dist/mint-components/p-de136dd3.js +1 -0
- package/dist/mint-components/{p-00ed4c2e.entry.js → p-df223bff.entry.js} +1 -1
- package/dist/mint-components/p-e1e62d55.entry.js +1 -0
- package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-e217afd9.system.entry.js} +1 -1
- package/dist/mint-components/{p-4794641c.system.js → p-e2705fbe.system.js} +1 -1
- package/dist/mint-components/p-e309a219.js +1 -0
- package/dist/mint-components/{p-f940190a.js → p-e518a60d.js} +1 -1
- package/dist/mint-components/p-e5d9e709.entry.js +13 -0
- package/dist/mint-components/p-eb998f7b.entry.js +9 -0
- package/dist/mint-components/p-f53f5304.system.entry.js +1 -0
- package/dist/mint-components/p-f8175201.system.js +1 -0
- package/dist/mint-components/p-fb13065a.js +1 -0
- package/dist/mint-components/p-fb584d7a.js +1 -0
- package/dist/mint-components/p-fbef4ecb.system.js +1 -0
- package/dist/mint-components/p-fda43e22.system.entry.js +1 -0
- 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 +41 -0
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +2 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +42 -0
- 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 +13 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +48 -7
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -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 -0
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +7 -0
- 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-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +20 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +20 -0
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +42 -0
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +15 -3
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +42 -0
- 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 +43 -1
- 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 +6 -0
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +4 -5
- package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
- 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 +5 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
- package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
- package/dist/types/components/sqm-text/sqm-text.d.ts +12 -0
- 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-timeline/Timeline.stories.d.ts +1 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -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 +10 -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 +10 -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/sqm-user-info-form.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components/views/copy-text-view.d.ts +5 -0
- package/dist/types/components.d.ts +1232 -35
- package/dist/types/global/mixins.d.ts +12 -12
- package/dist/types/global/styles.d.ts +6 -1
- package/dist/types/saasquatch.d.ts +61 -0
- package/dist/types/utils/parseStates.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 +2 -1
- package/dist/cjs/sqm-invoice-table-view-dbf7a907.js +0 -2038
- package/dist/cjs/sqm-text-span-view-0aa82125.js +0 -62
- package/dist/esm/sqm-invoice-table-view-e0c9772a.js +0 -2022
- package/dist/esm/sqm-text-span-view-ca32495e.js +0 -60
- package/dist/esm-es5/GenericTableView-7b9087af.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-e350d540.js +0 -1
- package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
- package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
- package/dist/esm-es5/mixins-83f90fa1.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-e0c9772a.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-3d3182f1.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
- package/dist/mint-components/p-091e7ca2.system.entry.js +0 -1
- package/dist/mint-components/p-0ebab63e.system.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-23379b5b.entry.js +0 -144
- package/dist/mint-components/p-24db5c70.js +0 -1
- package/dist/mint-components/p-2bcd406c.system.js +0 -1
- package/dist/mint-components/p-2da21ba4.entry.js +0 -1
- package/dist/mint-components/p-31015791.js +0 -1
- package/dist/mint-components/p-33c96e14.entry.js +0 -16
- package/dist/mint-components/p-342bc70c.system.entry.js +0 -1
- package/dist/mint-components/p-38e5c429.system.js +0 -1
- package/dist/mint-components/p-3a31cc83.entry.js +0 -13
- package/dist/mint-components/p-3b90e01b.system.js +0 -1
- package/dist/mint-components/p-3ba1ab43.system.js +0 -1
- package/dist/mint-components/p-3db34d68.js +0 -1
- package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
- package/dist/mint-components/p-420554af.system.entry.js +0 -1
- package/dist/mint-components/p-441b60ac.system.entry.js +0 -1
- package/dist/mint-components/p-492b70db.system.js +0 -1
- package/dist/mint-components/p-4e5af50c.js +0 -1
- package/dist/mint-components/p-5bdafc7e.system.entry.js +0 -1
- package/dist/mint-components/p-6055eb4c.system.js +0 -1
- package/dist/mint-components/p-626e9e84.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-6a97b51d.entry.js +0 -13
- package/dist/mint-components/p-716d0275.entry.js +0 -1
- package/dist/mint-components/p-775f3ded.entry.js +0 -1
- package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
- package/dist/mint-components/p-837a0fdd.js +0 -1
- package/dist/mint-components/p-85671c3d.system.entry.js +0 -1
- package/dist/mint-components/p-904ebcf6.system.entry.js +0 -1
- package/dist/mint-components/p-91521e9d.js +0 -1
- package/dist/mint-components/p-92816d1f.js +0 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
- package/dist/mint-components/p-9db71c84.entry.js +0 -1
- package/dist/mint-components/p-aad32fb6.system.js +0 -1
- package/dist/mint-components/p-b207beeb.entry.js +0 -1
- package/dist/mint-components/p-b2bf509e.entry.js +0 -9
- package/dist/mint-components/p-b33b7eb5.system.js +0 -1
- package/dist/mint-components/p-babcdb1f.system.entry.js +0 -1
- package/dist/mint-components/p-c060f770.system.entry.js +0 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
- package/dist/mint-components/p-c3bfb9c3.entry.js +0 -258
- package/dist/mint-components/p-c8147def.js +0 -1
- package/dist/mint-components/p-c9f1dde7.js +0 -1
- package/dist/mint-components/p-cd1d497f.system.js +0 -1
- package/dist/mint-components/p-dbcb5359.js +0 -1
- package/dist/mint-components/p-dcc81e90.entry.js +0 -1
- package/dist/mint-components/p-e07bc6c4.system.js +0 -1
- package/dist/mint-components/p-e41aac34.js +0 -1
- package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
- package/dist/mint-components/p-f3e2098c.js +0 -394
- package/dist/mint-components/p-f56bedd5.js +0 -1
- package/dist/mint-components/p-f71ae358.system.entry.js +0 -1
- package/dist/mint-components/p-f7c99803.system.js +0 -1
- package/dist/mint-components/p-f87ae19e.entry.js +0 -205
- /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
|
@@ -1,142 +1,23 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-91e7729f.js';
|
|
2
|
-
import { m as useRef, k as useState, f as useEffect, n as h$1,
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn
|
|
2
|
+
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-632fb2fa.js';
|
|
4
|
+
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn } from './index.module-89a79f66.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
|
-
import { g as getProps
|
|
7
|
+
import { g as getProps } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import
|
|
10
|
-
import { G as GenericTableView } from './GenericTableView-
|
|
9
|
+
import './mixins-f750863a.js';
|
|
10
|
+
import { G as GenericTableView } from './GenericTableView-3b6f9ccc.js';
|
|
11
11
|
import { u as useRerenderListener, a as useRequestRerender } from './re-render-cc945f38.js';
|
|
12
12
|
import { u as useChildElements } from './useChildElements-7945ae56.js';
|
|
13
13
|
import { l as luxon } from './luxon-8d51c92b.js';
|
|
14
14
|
import { g as generateUserError } from './useReferralTable-b3876ed6.js';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { b as VERIFICATION_EVENT_KEY
|
|
20
|
-
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-
|
|
21
|
-
import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
|
|
22
|
-
|
|
23
|
-
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
24
|
-
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
25
|
-
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
26
|
-
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
27
|
-
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
28
|
-
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
29
|
-
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
30
|
-
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
31
|
-
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
32
|
-
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
33
|
-
const GET_USER = dist.gql `
|
|
34
|
-
query getUserTaxInfo {
|
|
35
|
-
user: viewer {
|
|
36
|
-
... on User {
|
|
37
|
-
id
|
|
38
|
-
firstName
|
|
39
|
-
lastName
|
|
40
|
-
email
|
|
41
|
-
countryCode
|
|
42
|
-
customFields
|
|
43
|
-
managedIdentity {
|
|
44
|
-
uid
|
|
45
|
-
email
|
|
46
|
-
emailVerified
|
|
47
|
-
}
|
|
48
|
-
impactConnection {
|
|
49
|
-
connected
|
|
50
|
-
user {
|
|
51
|
-
firstName
|
|
52
|
-
lastName
|
|
53
|
-
}
|
|
54
|
-
publisher {
|
|
55
|
-
id
|
|
56
|
-
brandedSignup
|
|
57
|
-
countryCode
|
|
58
|
-
currency
|
|
59
|
-
billingAddress
|
|
60
|
-
billingCity
|
|
61
|
-
billingState
|
|
62
|
-
billingCountryCode
|
|
63
|
-
billingPostalCode
|
|
64
|
-
phoneNumberCountryCode
|
|
65
|
-
phoneNumber
|
|
66
|
-
taxInformation {
|
|
67
|
-
indirectTaxId
|
|
68
|
-
indirectTaxCountryCode
|
|
69
|
-
indirectTaxRegion
|
|
70
|
-
additionalTaxId
|
|
71
|
-
withholdingTaxId
|
|
72
|
-
withholdingTaxCountryCode
|
|
73
|
-
}
|
|
74
|
-
requiredTaxDocumentType
|
|
75
|
-
currentTaxDocument {
|
|
76
|
-
status
|
|
77
|
-
type
|
|
78
|
-
dateCreated
|
|
79
|
-
}
|
|
80
|
-
withdrawalSettings {
|
|
81
|
-
paymentMethod
|
|
82
|
-
paypalEmailAddress
|
|
83
|
-
bankCountry
|
|
84
|
-
bankAccountNumber
|
|
85
|
-
paymentSchedulingType
|
|
86
|
-
paymentThreshold
|
|
87
|
-
paymentDay
|
|
88
|
-
}
|
|
89
|
-
payoutsAccount {
|
|
90
|
-
hold
|
|
91
|
-
holdReasons
|
|
92
|
-
balance
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
`;
|
|
100
|
-
const GET_COUNTRIES = dist.gql `
|
|
101
|
-
query getCountries {
|
|
102
|
-
impactPayoutCountries(limit: 1000) {
|
|
103
|
-
data {
|
|
104
|
-
countryCode
|
|
105
|
-
displayName
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
`;
|
|
110
|
-
const GET_CURRENCIES = dist.gql `
|
|
111
|
-
query currencies($locale: RSLocale) {
|
|
112
|
-
currencies(limit: 300) {
|
|
113
|
-
data {
|
|
114
|
-
displayName(locale: $locale)
|
|
115
|
-
currencyCode
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
`;
|
|
120
|
-
const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
|
|
121
|
-
query impactFinanceNetworkSettings(
|
|
122
|
-
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
123
|
-
) {
|
|
124
|
-
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
125
|
-
data {
|
|
126
|
-
countryCode
|
|
127
|
-
currency
|
|
128
|
-
defaultFinancePaymentMethodId
|
|
129
|
-
thresholdOptions
|
|
130
|
-
withdrawalSettingId
|
|
131
|
-
internationalEftFee
|
|
132
|
-
foreignFxFee
|
|
133
|
-
defaultFxFee
|
|
134
|
-
}
|
|
135
|
-
totalCount
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
`;
|
|
139
|
-
const FORM_STEPS = 4;
|
|
15
|
+
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS } from './IndirectTaxDetailsView-3be86bcf.js';
|
|
16
|
+
import { t as taxTypeToName, v as validTaxDocument, g as getCountryObj, L as LoadingView, f as formatErrorMessage, a as validateBillingField, o as objectIsFull } from './utils-1654e233.js';
|
|
17
|
+
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
18
|
+
import { i as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-a05c78ae.js';
|
|
19
|
+
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
20
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-fed17fc9.js';
|
|
140
21
|
|
|
141
22
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
142
23
|
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;
|
|
@@ -675,29 +556,26 @@ const style = {
|
|
|
675
556
|
gap: "8px",
|
|
676
557
|
},
|
|
677
558
|
ErrorText: {
|
|
678
|
-
color: "var(--
|
|
559
|
+
color: "var(--sqm-danger-color-icon)",
|
|
679
560
|
marginTop: "10px",
|
|
680
561
|
},
|
|
681
562
|
PageDescriptionText: {
|
|
682
|
-
color: "var(--
|
|
563
|
+
color: "var(--sqm-text-subdued)",
|
|
683
564
|
fontSize: "var(--sl-font-size-medium)",
|
|
684
565
|
},
|
|
685
566
|
DescriptionText: {
|
|
686
|
-
color: "var(--
|
|
687
|
-
},
|
|
688
|
-
SecondaryBtn: {
|
|
689
|
-
"&::part(base)": {
|
|
690
|
-
color: "var(--sl-color-gray-800) !important",
|
|
691
|
-
},
|
|
567
|
+
color: "var(--sqm-text-subdued)",
|
|
692
568
|
},
|
|
693
569
|
AlertContainer: {
|
|
694
570
|
"&::part(base)": {
|
|
695
|
-
backgroundColor: "var(--
|
|
696
|
-
|
|
571
|
+
backgroundColor: "var(--sqm-danger-color-background)",
|
|
572
|
+
border: "none",
|
|
697
573
|
padding: "0 16px",
|
|
574
|
+
color: "var(--sqm-danger-color-text)",
|
|
575
|
+
marginBottom: "16px",
|
|
698
576
|
},
|
|
699
577
|
"& sl-icon::part(base)": {
|
|
700
|
-
color: "var(--
|
|
578
|
+
color: "var(--sqm-danger-color-icon)",
|
|
701
579
|
},
|
|
702
580
|
},
|
|
703
581
|
RadioContainer: {
|
|
@@ -706,12 +584,15 @@ const style = {
|
|
|
706
584
|
},
|
|
707
585
|
PartnerAlertContainer: {
|
|
708
586
|
"&::part(base)": {
|
|
709
|
-
backgroundColor: "var(--
|
|
587
|
+
backgroundColor: "var(--sqm-informative-color-background)",
|
|
710
588
|
borderTop: "none",
|
|
711
589
|
padding: "0 16px",
|
|
590
|
+
border: "none",
|
|
591
|
+
color: "var(--sqm-informative-color-text)",
|
|
592
|
+
marginBottom: "16px",
|
|
712
593
|
},
|
|
713
594
|
"& sl-icon::part(base)": {
|
|
714
|
-
color: "var(--
|
|
595
|
+
color: "var(--sqm-informative-color-icon)",
|
|
715
596
|
},
|
|
716
597
|
},
|
|
717
598
|
Checkbox: {
|
|
@@ -725,8 +606,8 @@ const style = {
|
|
|
725
606
|
InputContainer: {
|
|
726
607
|
padding: "16px",
|
|
727
608
|
margin: "16px 0px 16px 0px",
|
|
728
|
-
borderTop: "1px solid var(--
|
|
729
|
-
borderBottom: "1px solid var(--
|
|
609
|
+
borderTop: "1px solid var(--sqm-border-color)",
|
|
610
|
+
borderBottom: "1px solid var(--sqm-border-color)",
|
|
730
611
|
display: "flex",
|
|
731
612
|
flexDirection: "column",
|
|
732
613
|
width: "100%",
|
|
@@ -763,23 +644,6 @@ const style = {
|
|
|
763
644
|
borderRadius: "50px",
|
|
764
645
|
background: "var(--sl-color-gray-200)",
|
|
765
646
|
},
|
|
766
|
-
InfoAlert: {
|
|
767
|
-
"&::part(base)": {
|
|
768
|
-
backgroundColor: "transparent",
|
|
769
|
-
borderTop: "none",
|
|
770
|
-
border: "none",
|
|
771
|
-
},
|
|
772
|
-
"&::part(message)": {
|
|
773
|
-
display: "flex",
|
|
774
|
-
alignItems: "center",
|
|
775
|
-
justifyContent: "flex-start",
|
|
776
|
-
padding: "10px",
|
|
777
|
-
height: "max-content",
|
|
778
|
-
},
|
|
779
|
-
"& sl-icon::part(base)": {
|
|
780
|
-
color: "var(--sl-color-yellow-500)",
|
|
781
|
-
},
|
|
782
|
-
},
|
|
783
647
|
InfoWarningIcon: {
|
|
784
648
|
height: "26px",
|
|
785
649
|
width: "26px",
|
|
@@ -802,20 +666,14 @@ const vanillaStyle = `
|
|
|
802
666
|
font-weight: 600
|
|
803
667
|
}
|
|
804
668
|
|
|
805
|
-
p {
|
|
806
|
-
line-height: 18px;
|
|
807
|
-
color: var(--sl-color-gray-800);
|
|
808
|
-
font-size: var(--sl-font-size-small);
|
|
809
|
-
}
|
|
810
|
-
|
|
811
669
|
/* this class is dynamically applied in controller */
|
|
812
670
|
.error-input::part(base) {
|
|
813
|
-
border: 1px solid var(--
|
|
814
|
-
border-radius: var(--
|
|
671
|
+
border: 1px solid var(--sqm-danger-color-border);
|
|
672
|
+
border-radius: var(--sqm-input-border-radius);
|
|
815
673
|
}
|
|
816
674
|
|
|
817
675
|
.error-input::part(help-text) {
|
|
818
|
-
color: var(--
|
|
676
|
+
color: var(--sqm-danger-color-text);
|
|
819
677
|
}
|
|
820
678
|
|
|
821
679
|
`;
|
|
@@ -913,7 +771,7 @@ const BankingInfoFormView = (props) => {
|
|
|
913
771
|
: slots.paymentFixedDaySelectSlot))))),
|
|
914
772
|
h("div", { class: classes.BtnContainer },
|
|
915
773
|
h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
916
|
-
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base",
|
|
774
|
+
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
917
775
|
};
|
|
918
776
|
|
|
919
777
|
// Hardcoded in Impact backend
|
|
@@ -1764,331 +1622,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1764
1622
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1765
1623
|
}
|
|
1766
1624
|
|
|
1767
|
-
const style$1 = {
|
|
1768
|
-
Wrapper: {
|
|
1769
|
-
display: "flex",
|
|
1770
|
-
flexDirection: "column",
|
|
1771
|
-
gap: "var(--sl-spacing-medium)",
|
|
1772
|
-
maxWidth: "550px",
|
|
1773
|
-
},
|
|
1774
|
-
HeaderContainer: {
|
|
1775
|
-
display: "flex",
|
|
1776
|
-
flexDirection: "column",
|
|
1777
|
-
},
|
|
1778
|
-
InputsContainer: {
|
|
1779
|
-
display: "flex",
|
|
1780
|
-
gap: "var(--sl-spacing-medium)",
|
|
1781
|
-
position: "relative",
|
|
1782
|
-
flexDirection: "column",
|
|
1783
|
-
},
|
|
1784
|
-
CodeInputContainer: {
|
|
1785
|
-
display: "flex",
|
|
1786
|
-
gap: "var(--sl-spacing-medium)",
|
|
1787
|
-
},
|
|
1788
|
-
CodeInput: {
|
|
1789
|
-
maxWidth: "40px",
|
|
1790
|
-
"&::part(input)": {
|
|
1791
|
-
margin: "0",
|
|
1792
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1793
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1794
|
-
},
|
|
1795
|
-
},
|
|
1796
|
-
CodeInputError: {
|
|
1797
|
-
...ErrorStyles,
|
|
1798
|
-
maxWidth: "40px",
|
|
1799
|
-
"&::part(input)": {
|
|
1800
|
-
margin: "0",
|
|
1801
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1802
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1803
|
-
},
|
|
1804
|
-
},
|
|
1805
|
-
ErrorText: {
|
|
1806
|
-
color: "var(--sl-color-danger-500)",
|
|
1807
|
-
fontSize: "var(--sl-font-size-small)",
|
|
1808
|
-
margin: "0",
|
|
1809
|
-
},
|
|
1810
|
-
ContinueButton: {
|
|
1811
|
-
width: "100%",
|
|
1812
|
-
maxWidth: "100px",
|
|
1813
|
-
},
|
|
1814
|
-
FooterContainer: {
|
|
1815
|
-
display: "flex",
|
|
1816
|
-
flexDirection: "column",
|
|
1817
|
-
},
|
|
1818
|
-
SkeletonOne: {
|
|
1819
|
-
width: "50%",
|
|
1820
|
-
height: "16px",
|
|
1821
|
-
},
|
|
1822
|
-
SkeletonTwo: {
|
|
1823
|
-
width: "30%",
|
|
1824
|
-
height: "34px",
|
|
1825
|
-
},
|
|
1826
|
-
SkeletonThree: {
|
|
1827
|
-
width: "15%",
|
|
1828
|
-
height: "24px",
|
|
1829
|
-
},
|
|
1830
|
-
};
|
|
1831
|
-
const vanillaStyle$1 = `
|
|
1832
|
-
:host {
|
|
1833
|
-
display: block;
|
|
1834
|
-
}
|
|
1835
|
-
:host([hidden]): {
|
|
1836
|
-
display: none;
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
`;
|
|
1841
|
-
const sheet$1 = createStyleSheet(style$1);
|
|
1842
|
-
const styleString$1 = sheet$1.toString();
|
|
1843
|
-
function WidgetCodeVerificationView(props) {
|
|
1844
|
-
const { states, refs, callbacks, text } = props;
|
|
1845
|
-
const resendCodeText = intl.formatMessage({
|
|
1846
|
-
id: "resendCodeText",
|
|
1847
|
-
defaultMessage: text.resendCodeText,
|
|
1848
|
-
}, {
|
|
1849
|
-
resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1850
|
-
e.preventDefault();
|
|
1851
|
-
callbacks.resendEmail();
|
|
1852
|
-
} }, text.resendCodeLabel)),
|
|
1853
|
-
});
|
|
1854
|
-
const codeResentSuccessfully = intl.formatMessage({
|
|
1855
|
-
id: "codeResentSuccessfully",
|
|
1856
|
-
defaultMessage: text.codeResentSuccessfullyText,
|
|
1857
|
-
}, {
|
|
1858
|
-
email: states.email,
|
|
1859
|
-
});
|
|
1860
|
-
const inputClass = states.verifyFailed
|
|
1861
|
-
? sheet$1.classes.CodeInputError
|
|
1862
|
-
: sheet$1.classes.CodeInput;
|
|
1863
|
-
return (h("div", { part: "sqm-base" },
|
|
1864
|
-
h("style", { type: "text/css" },
|
|
1865
|
-
vanillaStyle$1,
|
|
1866
|
-
styleString$1),
|
|
1867
|
-
h("div", { class: sheet$1.classes.Wrapper },
|
|
1868
|
-
h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1869
|
-
h(TextSpanView, { type: "p" }, intl.formatMessage({
|
|
1870
|
-
id: `emailHeaderText`,
|
|
1871
|
-
defaultMessage: states.verifyFailed
|
|
1872
|
-
? text.reverifyCodeHeaderText
|
|
1873
|
-
: text.verifyCodeHeaderText,
|
|
1874
|
-
}, { email: states.email }))),
|
|
1875
|
-
states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1876
|
-
h("b", null, codeResentSuccessfully))),
|
|
1877
|
-
h("div", { class: sheet$1.classes.InputsContainer },
|
|
1878
|
-
h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1879
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1880
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1881
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1882
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1883
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1884
|
-
h("sl-input", { class: inputClass, name: "code" })),
|
|
1885
|
-
states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1886
|
-
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)),
|
|
1887
|
-
h("div", { class: sheet$1.classes.FooterContainer },
|
|
1888
|
-
h(TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1889
|
-
}
|
|
1890
|
-
|
|
1891
|
-
const VerifyEmailWithCodeMutation = dist.gql `
|
|
1892
|
-
mutation submitImpactPublisherEmail2FACode(
|
|
1893
|
-
$user: UserIdInput!
|
|
1894
|
-
$code: String!
|
|
1895
|
-
) {
|
|
1896
|
-
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1897
|
-
verifiedEmail
|
|
1898
|
-
accessKey
|
|
1899
|
-
}
|
|
1900
|
-
}
|
|
1901
|
-
`;
|
|
1902
|
-
function useWidgetCodeVerification(props) {
|
|
1903
|
-
const host = l();
|
|
1904
|
-
const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
|
|
1905
|
-
const email = Fn(VERIFICATION_EMAIL_NAMESPACE);
|
|
1906
|
-
const [emailSent, setEmailSent] = useState(false);
|
|
1907
|
-
const [emailResent, setEmailResent] = useState(false);
|
|
1908
|
-
const [codeRef, setCodeRef] = useState(null);
|
|
1909
|
-
const [validationError, setValidationError] = useState(false);
|
|
1910
|
-
const [emailError, setEmailError] = useState(false);
|
|
1911
|
-
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
1912
|
-
useEffect(() => {
|
|
1913
|
-
if (!codeRef)
|
|
1914
|
-
return;
|
|
1915
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1916
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1917
|
-
codeElements.forEach((element, idx) => {
|
|
1918
|
-
element.addEventListener("focus", (e) => {
|
|
1919
|
-
e.target.select();
|
|
1920
|
-
});
|
|
1921
|
-
element.addEventListener("keydown", (e) => {
|
|
1922
|
-
if (e.key === "Backspace" && e.target.value === "") {
|
|
1923
|
-
codeElements[Math.max(0, idx - 1)].focus();
|
|
1924
|
-
}
|
|
1925
|
-
});
|
|
1926
|
-
element.addEventListener("input", (e) => {
|
|
1927
|
-
const input = e.data;
|
|
1928
|
-
if (!input)
|
|
1929
|
-
return;
|
|
1930
|
-
if (idx === codeElements.length - 1) {
|
|
1931
|
-
e.target.value = input.slice(0, 1);
|
|
1932
|
-
return;
|
|
1933
|
-
}
|
|
1934
|
-
if (input.length > 1) {
|
|
1935
|
-
const rest = input.slice(1);
|
|
1936
|
-
e.target.value = input.slice(0, 1);
|
|
1937
|
-
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1938
|
-
inputType: "insertFromPaste",
|
|
1939
|
-
data: rest,
|
|
1940
|
-
}));
|
|
1941
|
-
}
|
|
1942
|
-
codeElements[idx + 1].focus();
|
|
1943
|
-
});
|
|
1944
|
-
});
|
|
1945
|
-
}, [codeRef]);
|
|
1946
|
-
const reset = () => {
|
|
1947
|
-
setShowCode(false);
|
|
1948
|
-
setValidationError(false);
|
|
1949
|
-
};
|
|
1950
|
-
const resendEmail = async () => {
|
|
1951
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
1952
|
-
if (!initialized)
|
|
1953
|
-
return;
|
|
1954
|
-
const result = await sendEmail();
|
|
1955
|
-
if (!result) {
|
|
1956
|
-
setEmailError(true);
|
|
1957
|
-
return;
|
|
1958
|
-
}
|
|
1959
|
-
if (emailSent)
|
|
1960
|
-
setEmailResent(true);
|
|
1961
|
-
setEmailSent(true);
|
|
1962
|
-
};
|
|
1963
|
-
const submitCode = async () => {
|
|
1964
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1965
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1966
|
-
if (codeElements.find((el) => !el.value)) {
|
|
1967
|
-
setValidationError(true);
|
|
1968
|
-
return;
|
|
1969
|
-
}
|
|
1970
|
-
let code = "";
|
|
1971
|
-
codeElements.forEach((element) => {
|
|
1972
|
-
code = `${code}${element.value}`;
|
|
1973
|
-
});
|
|
1974
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
1975
|
-
if (!initialized)
|
|
1976
|
-
return;
|
|
1977
|
-
setValidationError(false);
|
|
1978
|
-
const res = await verifyEmail(code);
|
|
1979
|
-
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1980
|
-
props.onVerification(res.accessKey);
|
|
1981
|
-
reset();
|
|
1982
|
-
}
|
|
1983
|
-
else {
|
|
1984
|
-
setValidationError(true);
|
|
1985
|
-
}
|
|
1986
|
-
};
|
|
1987
|
-
useEffect(() => {
|
|
1988
|
-
// Wait for mutations to be determined from user lookup
|
|
1989
|
-
if (!initialized)
|
|
1990
|
-
return;
|
|
1991
|
-
// email should already exist if user has completed email-verification
|
|
1992
|
-
if (!email)
|
|
1993
|
-
resendEmail();
|
|
1994
|
-
else
|
|
1995
|
-
setEmailSent(true);
|
|
1996
|
-
}, [initialized]);
|
|
1997
|
-
return {
|
|
1998
|
-
refs: {
|
|
1999
|
-
codeWrapperRef: setCodeRef,
|
|
2000
|
-
},
|
|
2001
|
-
states: {
|
|
2002
|
-
email: verificationEmail,
|
|
2003
|
-
emailResent,
|
|
2004
|
-
resendError: sendErrors || verifyErrors,
|
|
2005
|
-
initialiseLoading: !initialized,
|
|
2006
|
-
loading: sendLoading || verifyLoading,
|
|
2007
|
-
verifyFailed: !!validationError,
|
|
2008
|
-
},
|
|
2009
|
-
callbacks: {
|
|
2010
|
-
resendEmail,
|
|
2011
|
-
submitCode,
|
|
2012
|
-
},
|
|
2013
|
-
text: props.getTextProps(),
|
|
2014
|
-
};
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
const WidgetCodeVerification = class {
|
|
2018
|
-
constructor(hostRef) {
|
|
2019
|
-
registerInstance(this, hostRef);
|
|
2020
|
-
/**
|
|
2021
|
-
* @uiName Verify code widget header text
|
|
2022
|
-
*/
|
|
2023
|
-
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2024
|
-
/**
|
|
2025
|
-
* @uiName Reverify code widget header text
|
|
2026
|
-
*/
|
|
2027
|
-
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2028
|
-
/**
|
|
2029
|
-
* Text displayed under verify button
|
|
2030
|
-
* @uiName Resend code text
|
|
2031
|
-
*/
|
|
2032
|
-
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2033
|
-
/**
|
|
2034
|
-
* The link that appears in the resend code link
|
|
2035
|
-
* @uiName Resend code label
|
|
2036
|
-
*/
|
|
2037
|
-
this.resendCodeLabel = "Resend code";
|
|
2038
|
-
/**
|
|
2039
|
-
* Link text displayed under verify button
|
|
2040
|
-
* @uiName Resend code text
|
|
2041
|
-
*/
|
|
2042
|
-
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2043
|
-
/**
|
|
2044
|
-
* Error text displayed under verification input
|
|
2045
|
-
* @uiName Invalid code text
|
|
2046
|
-
*/
|
|
2047
|
-
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2048
|
-
/**
|
|
2049
|
-
* @uiName Verify code button text
|
|
2050
|
-
*/
|
|
2051
|
-
this.verifyText = "Verify";
|
|
2052
|
-
/**
|
|
2053
|
-
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2054
|
-
* @uiName Network error message
|
|
2055
|
-
*/
|
|
2056
|
-
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2057
|
-
h$1(this);
|
|
2058
|
-
}
|
|
2059
|
-
disconnectedCallback() { }
|
|
2060
|
-
getTextProps() {
|
|
2061
|
-
return getProps(this);
|
|
2062
|
-
}
|
|
2063
|
-
render() {
|
|
2064
|
-
const props = isDemo()
|
|
2065
|
-
? useDemoWidgetCodeVerification(this)
|
|
2066
|
-
: useWidgetCodeVerification(this);
|
|
2067
|
-
return h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2068
|
-
}
|
|
2069
|
-
};
|
|
2070
|
-
function useDemoWidgetCodeVerification(props) {
|
|
2071
|
-
const [emailResent, setEmailResent] = useState(false);
|
|
2072
|
-
const setVerifiedContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
2073
|
-
return cjs({
|
|
2074
|
-
states: {
|
|
2075
|
-
loading: false,
|
|
2076
|
-
email: "test@example.com",
|
|
2077
|
-
emailResent,
|
|
2078
|
-
resendError: false,
|
|
2079
|
-
verifyFailed: false,
|
|
2080
|
-
},
|
|
2081
|
-
refs: {
|
|
2082
|
-
codeWrapperRef: () => { },
|
|
2083
|
-
},
|
|
2084
|
-
callbacks: {
|
|
2085
|
-
resendEmail: async () => setEmailResent(true),
|
|
2086
|
-
submitCode: async () => setVerifiedContext(true),
|
|
2087
|
-
},
|
|
2088
|
-
text: props.getTextProps(),
|
|
2089
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
1625
|
const GET_TAX_DOCUMENT = dist.gql `
|
|
2093
1626
|
mutation createImpactPublisherTaxDocument(
|
|
2094
1627
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -2246,7 +1779,7 @@ function getDocumentType(p) {
|
|
|
2246
1779
|
return undefined;
|
|
2247
1780
|
}
|
|
2248
1781
|
|
|
2249
|
-
const style$
|
|
1782
|
+
const style$1 = {
|
|
2250
1783
|
DocusignStatusContainer: {
|
|
2251
1784
|
width: "100%",
|
|
2252
1785
|
minHeight: "600px",
|
|
@@ -2273,47 +1806,47 @@ const style$2 = {
|
|
|
2273
1806
|
},
|
|
2274
1807
|
},
|
|
2275
1808
|
};
|
|
2276
|
-
const sheet$
|
|
2277
|
-
const styleString$
|
|
1809
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1810
|
+
const styleString$1 = sheet$1.toString();
|
|
2278
1811
|
const DocusignExpiredView = (props) => {
|
|
2279
|
-
const { classes } = sheet$
|
|
1812
|
+
const { classes } = sheet$1;
|
|
2280
1813
|
const { text } = props;
|
|
2281
1814
|
return (h("div", null,
|
|
2282
|
-
h("style", { type: "text/css" }, styleString$
|
|
1815
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2283
1816
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2284
1817
|
h("sl-icon", { style: {
|
|
2285
1818
|
width: "50px",
|
|
2286
1819
|
height: "50px",
|
|
2287
|
-
color: "var(--
|
|
1820
|
+
color: "var(--sqm-text)",
|
|
2288
1821
|
}, name: "clock" }),
|
|
2289
1822
|
h("div", { class: classes.MessageContainer },
|
|
2290
1823
|
h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
2291
1824
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2292
1825
|
};
|
|
2293
1826
|
const DocusignErrorView = (props) => {
|
|
2294
|
-
const { classes } = sheet$
|
|
1827
|
+
const { classes } = sheet$1;
|
|
2295
1828
|
const { text } = props;
|
|
2296
1829
|
return (h("div", null,
|
|
2297
|
-
h("style", { type: "text/css" }, styleString$
|
|
1830
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2298
1831
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2299
1832
|
h("sl-icon", { style: {
|
|
2300
1833
|
width: "50px",
|
|
2301
1834
|
height: "50px",
|
|
2302
|
-
color: "var(--
|
|
1835
|
+
color: "var(--sqm-text)",
|
|
2303
1836
|
}, name: "exclamation-octagon" }),
|
|
2304
1837
|
h("div", { class: classes.MessageContainer },
|
|
2305
1838
|
h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
2306
1839
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2307
1840
|
};
|
|
2308
1841
|
const DocusignLoadingView = () => {
|
|
2309
|
-
const { classes } = sheet$
|
|
1842
|
+
const { classes } = sheet$1;
|
|
2310
1843
|
return (h("div", null,
|
|
2311
|
-
h("style", { type: "text/css" }, styleString$
|
|
1844
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2312
1845
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2313
1846
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
2314
1847
|
};
|
|
2315
1848
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
2316
|
-
const { classes } = sheet$
|
|
1849
|
+
const { classes } = sheet$1;
|
|
2317
1850
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
2318
1851
|
const allowedDomains = [
|
|
2319
1852
|
"referralsaasquatch.com",
|
|
@@ -2346,12 +1879,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2346
1879
|
return h(DocusignExpiredView, { text: text });
|
|
2347
1880
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
2348
1881
|
return (h("div", { style: { height: iFrameHeight } },
|
|
2349
|
-
h("style", { type: "text/css" }, styleString$
|
|
1882
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2350
1883
|
h("div", { class: classes.IFrameContainer },
|
|
2351
1884
|
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
2352
1885
|
};
|
|
2353
1886
|
|
|
2354
|
-
const style$
|
|
1887
|
+
const style$2 = {
|
|
2355
1888
|
FormWrapper: {
|
|
2356
1889
|
display: "flex",
|
|
2357
1890
|
justifyContent: "flex-start",
|
|
@@ -2383,7 +1916,7 @@ const style$3 = {
|
|
|
2383
1916
|
gap: "8px",
|
|
2384
1917
|
},
|
|
2385
1918
|
ErrorText: {
|
|
2386
|
-
color: "var(--
|
|
1919
|
+
color: "var(--sqm-danger-color-icon)",
|
|
2387
1920
|
marginTop: "10px",
|
|
2388
1921
|
},
|
|
2389
1922
|
DescriptionText: {
|
|
@@ -2392,42 +1925,29 @@ const style$3 = {
|
|
|
2392
1925
|
BoldText: {
|
|
2393
1926
|
fontWeight: "bold",
|
|
2394
1927
|
},
|
|
2395
|
-
SecondaryBtn: {
|
|
2396
|
-
"&::part(base)": {
|
|
2397
|
-
color: "var(--sl-color-gray-800) !important",
|
|
2398
|
-
},
|
|
2399
|
-
"&::part(label)": {
|
|
2400
|
-
padding: "0px",
|
|
2401
|
-
margin: "0px",
|
|
2402
|
-
},
|
|
2403
|
-
},
|
|
2404
1928
|
ErrorAlertContainer: {
|
|
2405
1929
|
"&::part(base)": {
|
|
2406
|
-
backgroundColor: "var(--
|
|
2407
|
-
|
|
1930
|
+
backgroundColor: "var(--sqm-danger-color-background)",
|
|
1931
|
+
border: "none",
|
|
2408
1932
|
padding: "0 16px",
|
|
1933
|
+
color: "var(--sqm-danger-color-text)",
|
|
1934
|
+
marginBottom: "16px",
|
|
2409
1935
|
},
|
|
2410
1936
|
"& sl-icon::part(base)": {
|
|
2411
|
-
color: "var(--
|
|
1937
|
+
color: "var(--sqm-danger-color-icon)",
|
|
2412
1938
|
},
|
|
2413
1939
|
},
|
|
2414
1940
|
InfoAlert: {
|
|
2415
1941
|
"&::part(base)": {
|
|
2416
|
-
backgroundColor: "
|
|
1942
|
+
backgroundColor: "var(--sqm-informative-color-background)",
|
|
2417
1943
|
borderTop: "none",
|
|
2418
|
-
padding: "
|
|
2419
|
-
marginBottom: "16px",
|
|
1944
|
+
padding: "0 16px",
|
|
2420
1945
|
border: "none",
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
display: "flex",
|
|
2424
|
-
alignItems: "center",
|
|
2425
|
-
justifyContent: "flex-start",
|
|
2426
|
-
padding: "10px",
|
|
2427
|
-
height: "max-content",
|
|
1946
|
+
color: "var(--sqm-informative-color-text)",
|
|
1947
|
+
marginBottom: "16px",
|
|
2428
1948
|
},
|
|
2429
1949
|
"& sl-icon::part(base)": {
|
|
2430
|
-
color: "var(--
|
|
1950
|
+
color: "var(--sqm-informative-color-icon)",
|
|
2431
1951
|
},
|
|
2432
1952
|
},
|
|
2433
1953
|
Container: {
|
|
@@ -2437,16 +1957,6 @@ const style$3 = {
|
|
|
2437
1957
|
flexDirection: "column",
|
|
2438
1958
|
gap: "16px",
|
|
2439
1959
|
},
|
|
2440
|
-
Link: {
|
|
2441
|
-
color: "var(--sl-color-sky-500)",
|
|
2442
|
-
textDecoration: "none",
|
|
2443
|
-
"&:visited": {
|
|
2444
|
-
color: "var(--sl-color-sky-500)",
|
|
2445
|
-
},
|
|
2446
|
-
"&:hover": {
|
|
2447
|
-
textDecoration: "underline",
|
|
2448
|
-
},
|
|
2449
|
-
},
|
|
2450
1960
|
CheckboxWrapper: {
|
|
2451
1961
|
display: "flex",
|
|
2452
1962
|
justifyContent: "flex-start",
|
|
@@ -2460,13 +1970,13 @@ const style$3 = {
|
|
|
2460
1970
|
fontSize: "var(--sl-font-size-small)",
|
|
2461
1971
|
},
|
|
2462
1972
|
PageDescriptionText: {
|
|
2463
|
-
color: "var(--
|
|
1973
|
+
color: "var(--sqm-text-subdued)",
|
|
2464
1974
|
fontSize: "var(--sl-font-size-medium)",
|
|
2465
1975
|
},
|
|
2466
1976
|
};
|
|
2467
|
-
const sheet$
|
|
2468
|
-
const styleString$
|
|
2469
|
-
const vanillaStyle$
|
|
1977
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
1978
|
+
const styleString$2 = sheet$2.toString();
|
|
1979
|
+
const vanillaStyle$1 = `
|
|
2470
1980
|
:host{
|
|
2471
1981
|
display: block;
|
|
2472
1982
|
}
|
|
@@ -2476,14 +1986,10 @@ const vanillaStyle$2 = `
|
|
|
2476
1986
|
box-sizing: border-box;
|
|
2477
1987
|
}
|
|
2478
1988
|
|
|
2479
|
-
p {
|
|
2480
|
-
line-height: 18px;
|
|
2481
|
-
color: var(--sl-color-gray-800);
|
|
2482
|
-
font-size: var(--sl-font-size-small);
|
|
2483
|
-
}
|
|
2484
|
-
|
|
2485
1989
|
a {
|
|
2486
1990
|
cursor: pointer;
|
|
1991
|
+
color: var(--sqm-text);
|
|
1992
|
+
text-decoration: underline;
|
|
2487
1993
|
}
|
|
2488
1994
|
|
|
2489
1995
|
|
|
@@ -2491,11 +1997,11 @@ const vanillaStyle$2 = `
|
|
|
2491
1997
|
const DocusignFormView = (props) => {
|
|
2492
1998
|
var _a;
|
|
2493
1999
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2494
|
-
const { classes } = sheet$
|
|
2000
|
+
const { classes } = sheet$2;
|
|
2495
2001
|
return (h("div", { class: classes.Container },
|
|
2496
2002
|
h("style", { type: "text/css" },
|
|
2497
|
-
styleString$
|
|
2498
|
-
vanillaStyle$
|
|
2003
|
+
styleString$2,
|
|
2004
|
+
vanillaStyle$1),
|
|
2499
2005
|
h("div", { class: classes.TextContainer },
|
|
2500
2006
|
h("div", null,
|
|
2501
2007
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2505,7 +2011,7 @@ const DocusignFormView = (props) => {
|
|
|
2505
2011
|
h("h3", null, text.taxForm),
|
|
2506
2012
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2507
2013
|
states.loadingError && (h("div", null,
|
|
2508
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2014
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2509
2015
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2510
2016
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2511
2017
|
h("br", null),
|
|
@@ -2515,7 +2021,7 @@ const DocusignFormView = (props) => {
|
|
|
2515
2021
|
}, {
|
|
2516
2022
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2517
2023
|
})))),
|
|
2518
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
2024
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2519
2025
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2520
2026
|
h("strong", null, text.error.generalTitle),
|
|
2521
2027
|
h("br", null),
|
|
@@ -2690,7 +2196,7 @@ function useDocusignFormDemo(props) {
|
|
|
2690
2196
|
return cjs({
|
|
2691
2197
|
text: props.getTextProps(),
|
|
2692
2198
|
states: {
|
|
2693
|
-
step: "
|
|
2199
|
+
step: "3",
|
|
2694
2200
|
disabled: false,
|
|
2695
2201
|
submitDisabled: false,
|
|
2696
2202
|
loading: false,
|
|
@@ -2723,7 +2229,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2723
2229
|
return (h("div", { style: {
|
|
2724
2230
|
width: "100%",
|
|
2725
2231
|
height: "600px",
|
|
2726
|
-
background: "
|
|
2232
|
+
background: "inherit",
|
|
2727
2233
|
display: "flex",
|
|
2728
2234
|
justifyContent: "center",
|
|
2729
2235
|
alignItems: "center",
|
|
@@ -2735,7 +2241,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2735
2241
|
} }, h("span", null, "Placeholder for docusign iframe"), h("div", { style: { display: "flex", gap: "8px" } }, h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2736
2242
|
};
|
|
2737
2243
|
|
|
2738
|
-
const style$
|
|
2244
|
+
const style$3 = {
|
|
2739
2245
|
FormWrapper: {
|
|
2740
2246
|
display: "flex",
|
|
2741
2247
|
justifyContent: "flex-start",
|
|
@@ -2747,6 +2253,7 @@ const style$4 = {
|
|
|
2747
2253
|
justifyContent: "flex-start",
|
|
2748
2254
|
flexDirection: "column",
|
|
2749
2255
|
gap: "var(--sl-spacing-medium)",
|
|
2256
|
+
marginBottom: "16px",
|
|
2750
2257
|
"& sl-radio::part(base)": {
|
|
2751
2258
|
alignItems: "start",
|
|
2752
2259
|
},
|
|
@@ -2787,31 +2294,30 @@ const style$4 = {
|
|
|
2787
2294
|
marginTop: "10px",
|
|
2788
2295
|
},
|
|
2789
2296
|
DescriptionText: {
|
|
2790
|
-
color: "var(--
|
|
2791
|
-
},
|
|
2792
|
-
SecondaryBtn: {
|
|
2793
|
-
"&::part(base)": {
|
|
2794
|
-
color: "var(--sl-color-gray-800) !important",
|
|
2795
|
-
},
|
|
2297
|
+
color: "var(--sqm-text-subdued)",
|
|
2796
2298
|
},
|
|
2797
2299
|
AlertContainer: {
|
|
2798
2300
|
"&::part(base)": {
|
|
2799
|
-
backgroundColor: "var(--
|
|
2800
|
-
|
|
2301
|
+
backgroundColor: "var(--sqm-danger-color-background)",
|
|
2302
|
+
border: "none",
|
|
2801
2303
|
padding: "0 16px",
|
|
2304
|
+
marginBottom: "16px",
|
|
2802
2305
|
},
|
|
2803
2306
|
"& sl-icon::part(base)": {
|
|
2804
|
-
color: "var(--
|
|
2307
|
+
color: "var(--sqm-danger-color-icon)",
|
|
2805
2308
|
},
|
|
2806
2309
|
},
|
|
2807
2310
|
PartnerAlertContainer: {
|
|
2808
2311
|
"&::part(base)": {
|
|
2809
|
-
backgroundColor: "var(--
|
|
2312
|
+
backgroundColor: "var(--sqm-informative-color-background)",
|
|
2810
2313
|
borderTop: "none",
|
|
2811
2314
|
padding: "0 16px",
|
|
2315
|
+
border: "none",
|
|
2316
|
+
color: "var(--sqm-informative-color-text)",
|
|
2317
|
+
marginBottom: "16px",
|
|
2812
2318
|
},
|
|
2813
2319
|
"& sl-icon::part(base)": {
|
|
2814
|
-
color: "var(--
|
|
2320
|
+
color: "var(--sqm-informative-color-icon)",
|
|
2815
2321
|
},
|
|
2816
2322
|
},
|
|
2817
2323
|
InfoAlert: {
|
|
@@ -2836,37 +2342,71 @@ const style$4 = {
|
|
|
2836
2342
|
width: "26px",
|
|
2837
2343
|
},
|
|
2838
2344
|
PageDescriptionText: {
|
|
2839
|
-
color: "var(--
|
|
2345
|
+
color: "var(--sqm-text-subdued)",
|
|
2840
2346
|
fontSize: "var(--sl-font-size-medium)",
|
|
2841
2347
|
marginBottom: "var(--sl-spacing-small)",
|
|
2842
2348
|
},
|
|
2349
|
+
PrimaryButton: {
|
|
2350
|
+
"&::part(base)": {
|
|
2351
|
+
background: "var(--sqm-primary-button-background)",
|
|
2352
|
+
color: "var(--sqm-primary-button-color)",
|
|
2353
|
+
borderColor: "var(--sqm-primary-button-color-border)",
|
|
2354
|
+
borderRadius: "var(--sqm-primary-button-radius)",
|
|
2355
|
+
},
|
|
2356
|
+
"&::part(base):hover": {
|
|
2357
|
+
background: "var(--sqm-primary-button-background-hover)",
|
|
2358
|
+
},
|
|
2359
|
+
},
|
|
2360
|
+
TertiaryButton: {
|
|
2361
|
+
"&::part(base)": {
|
|
2362
|
+
background: "var(--sqm-tertiary-button-background)",
|
|
2363
|
+
color: "var(--sqm-tertiary-button-color)",
|
|
2364
|
+
borderColor: "var(--sqm-tertiary-button-color-border)",
|
|
2365
|
+
borderRadius: "var(--sqm-tertiary-button-radius)",
|
|
2366
|
+
width: "max-content",
|
|
2367
|
+
display: "flex",
|
|
2368
|
+
margin: "auto",
|
|
2369
|
+
},
|
|
2370
|
+
"&::part(base):hover": {
|
|
2371
|
+
color: "var(--sqm-text)",
|
|
2372
|
+
background: "var(--sqm-tertiary-button-background-hover)",
|
|
2373
|
+
},
|
|
2374
|
+
},
|
|
2843
2375
|
};
|
|
2844
|
-
const sheet$
|
|
2845
|
-
const styleString$
|
|
2846
|
-
const vanillaStyle$
|
|
2376
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2377
|
+
const styleString$3 = sheet$3.toString();
|
|
2378
|
+
const vanillaStyle$2 = `
|
|
2847
2379
|
:host{
|
|
2848
2380
|
display: block;
|
|
2849
2381
|
}
|
|
2382
|
+
|
|
2383
|
+
hr {
|
|
2384
|
+
border: 1px solid var(--sqm-border-color);
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
a {
|
|
2388
|
+
color: inherit;
|
|
2389
|
+
text-decoration: underline;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
a:hover {
|
|
2393
|
+
cursor: pointer;
|
|
2394
|
+
}
|
|
2850
2395
|
* {
|
|
2851
2396
|
margin: 0;
|
|
2852
2397
|
padding: 0;
|
|
2853
2398
|
box-sizing: border-box;
|
|
2854
2399
|
}
|
|
2855
2400
|
|
|
2856
|
-
p {
|
|
2857
|
-
line-height: 18px;
|
|
2858
|
-
color: var(--sl-color-gray-800);
|
|
2859
|
-
font-size: var(--sl-font-size-small);
|
|
2860
|
-
}
|
|
2861
2401
|
`;
|
|
2862
2402
|
const IndirectTaxFormView = (props) => {
|
|
2863
2403
|
var _a;
|
|
2864
2404
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2865
|
-
const { classes } = sheet$
|
|
2405
|
+
const { classes } = sheet$3;
|
|
2866
2406
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2867
2407
|
h("style", { type: "text/css" },
|
|
2868
|
-
styleString$
|
|
2869
|
-
vanillaStyle$
|
|
2408
|
+
styleString$3,
|
|
2409
|
+
vanillaStyle$2),
|
|
2870
2410
|
h("div", { class: classes.TextContainer },
|
|
2871
2411
|
h("div", null,
|
|
2872
2412
|
!states.hideSteps && (h("p", null,
|
|
@@ -2879,7 +2419,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2879
2419
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2880
2420
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2881
2421
|
states.loadingError && (h("div", null,
|
|
2882
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2422
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2883
2423
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2884
2424
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2885
2425
|
h("br", null),
|
|
@@ -2889,7 +2429,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2889
2429
|
}, {
|
|
2890
2430
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2891
2431
|
})))),
|
|
2892
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
2432
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
|
|
2893
2433
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2894
2434
|
h("strong", null, text.error.generalTitle),
|
|
2895
2435
|
h("br", null),
|
|
@@ -2899,7 +2439,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2899
2439
|
}, {
|
|
2900
2440
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2901
2441
|
}))),
|
|
2902
|
-
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
2442
|
+
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2903
2443
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2904
2444
|
h("strong", null, text.isPartnerAlertHeader),
|
|
2905
2445
|
h("br", null),
|
|
@@ -2923,8 +2463,8 @@ const IndirectTaxFormView = (props) => {
|
|
|
2923
2463
|
text.otherRegion,
|
|
2924
2464
|
h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2925
2465
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2926
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.
|
|
2927
|
-
h("sl-icon", {
|
|
2466
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.PartnerAlertContainer },
|
|
2467
|
+
h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
2928
2468
|
intl.formatMessage({
|
|
2929
2469
|
id: "cannotChangeInfoAlert",
|
|
2930
2470
|
defaultMessage: text.cannotChangeInfoAlert,
|
|
@@ -2932,8 +2472,8 @@ const IndirectTaxFormView = (props) => {
|
|
|
2932
2472
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2933
2473
|
})),
|
|
2934
2474
|
h("div", { class: classes.BtnContainer },
|
|
2935
|
-
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2936
|
-
h("sl-button", { class: classes.
|
|
2475
|
+
h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2476
|
+
h("sl-button", { class: classes.TertiaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: tertiarybutton-base" }, text.backButton))))));
|
|
2937
2477
|
};
|
|
2938
2478
|
|
|
2939
2479
|
const CONNECT_PARTNER = dist.gql `
|
|
@@ -3772,18 +3312,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3772
3312
|
return demoProps;
|
|
3773
3313
|
}
|
|
3774
3314
|
|
|
3775
|
-
const InvoiceTableDataCell = class {
|
|
3776
|
-
constructor(hostRef) {
|
|
3777
|
-
registerInstance(this, hostRef);
|
|
3778
|
-
this.ignored = true;
|
|
3779
|
-
h$1(this);
|
|
3780
|
-
}
|
|
3781
|
-
disconnectedCallback() { }
|
|
3782
|
-
render() {
|
|
3783
|
-
return this.data;
|
|
3784
|
-
}
|
|
3785
|
-
};
|
|
3786
|
-
|
|
3787
3315
|
const InvoiceTableDataColumn = class {
|
|
3788
3316
|
constructor(hostRef) {
|
|
3789
3317
|
registerInstance(this, hostRef);
|
|
@@ -3802,23 +3330,6 @@ const InvoiceTableDataColumn = class {
|
|
|
3802
3330
|
}
|
|
3803
3331
|
};
|
|
3804
3332
|
|
|
3805
|
-
const RewardTableDateCell = class {
|
|
3806
|
-
constructor(hostRef) {
|
|
3807
|
-
registerInstance(this, hostRef);
|
|
3808
|
-
this.ignored = true;
|
|
3809
|
-
this.locale = "en";
|
|
3810
|
-
h$1(this);
|
|
3811
|
-
}
|
|
3812
|
-
disconnectedCallback() { }
|
|
3813
|
-
render() {
|
|
3814
|
-
var _a, _b;
|
|
3815
|
-
const date = !this.date
|
|
3816
|
-
? "-"
|
|
3817
|
-
: (_b = (_a = luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.DateTime.DATE_MED);
|
|
3818
|
-
return date;
|
|
3819
|
-
}
|
|
3820
|
-
};
|
|
3821
|
-
|
|
3822
3333
|
const InvoiceTableDateColumn = class {
|
|
3823
3334
|
constructor(hostRef) {
|
|
3824
3335
|
registerInstance(this, hostRef);
|
|
@@ -3837,21 +3348,6 @@ const InvoiceTableDateColumn = class {
|
|
|
3837
3348
|
}
|
|
3838
3349
|
};
|
|
3839
3350
|
|
|
3840
|
-
const InvoiceTableDownloadCell = class {
|
|
3841
|
-
constructor(hostRef) {
|
|
3842
|
-
registerInstance(this, hostRef);
|
|
3843
|
-
this.ignored = true;
|
|
3844
|
-
h$1(this);
|
|
3845
|
-
}
|
|
3846
|
-
disconnectedCallback() { }
|
|
3847
|
-
render() {
|
|
3848
|
-
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3849
|
-
cursor: pointer;
|
|
3850
|
-
}`;
|
|
3851
|
-
return (h(Host, null, h("style", null, vanillaStyle), !!this.downloadUrl && (h("a", { href: this.downloadUrl, target: "_blank" }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, 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" }), 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" }))))));
|
|
3852
|
-
}
|
|
3853
|
-
};
|
|
3854
|
-
|
|
3855
3351
|
const InvoiceTableGenericColumn = class {
|
|
3856
3352
|
constructor(hostRef) {
|
|
3857
3353
|
registerInstance(this, hostRef);
|
|
@@ -3874,17 +3370,17 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3874
3370
|
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" }),
|
|
3875
3371
|
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" })));
|
|
3876
3372
|
|
|
3877
|
-
const style$
|
|
3373
|
+
const style$4 = {
|
|
3878
3374
|
CardContainer: {
|
|
3879
3375
|
display: "grid",
|
|
3880
3376
|
gridTemplateColumns: "1fr",
|
|
3881
3377
|
gridGap: "var(--sl-spacing-large)",
|
|
3882
|
-
background: "
|
|
3378
|
+
background: "inherit",
|
|
3883
3379
|
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
3884
|
-
borderRadius: "
|
|
3380
|
+
borderRadius: "var(--sqm-border-radius-normal)",
|
|
3885
3381
|
padding: "var(--sl-spacing-large)",
|
|
3886
3382
|
minHeight: "150px",
|
|
3887
|
-
border: "1px solid var(--
|
|
3383
|
+
border: "1px solid var(--sqm-border-color)",
|
|
3888
3384
|
maxWidth: "450px",
|
|
3889
3385
|
},
|
|
3890
3386
|
StatusContainer: {
|
|
@@ -3894,7 +3390,7 @@ const style$5 = {
|
|
|
3894
3390
|
},
|
|
3895
3391
|
MainCurrencyLabel: {
|
|
3896
3392
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
3897
|
-
color: "var(--
|
|
3393
|
+
color: "var(--sqm-text-subdued)",
|
|
3898
3394
|
},
|
|
3899
3395
|
MainCurrency: {
|
|
3900
3396
|
margin: 0,
|
|
@@ -3903,12 +3399,12 @@ const style$5 = {
|
|
|
3903
3399
|
},
|
|
3904
3400
|
SubduedRegularText: {
|
|
3905
3401
|
fontSize: "var(--sl-font-size-small)",
|
|
3906
|
-
color: "var(--
|
|
3402
|
+
color: "var(--sqm-text-subdued)",
|
|
3907
3403
|
margin: 0,
|
|
3908
3404
|
width: "auto",
|
|
3909
3405
|
},
|
|
3910
3406
|
PaypalEmail: {
|
|
3911
|
-
borderRight: "1px solid var(--
|
|
3407
|
+
borderRight: "1px solid var(--sqm-border-color)",
|
|
3912
3408
|
paddingRight: "var(--sl-spacing-small)",
|
|
3913
3409
|
"@media (max-width: 499px)": {
|
|
3914
3410
|
borderRight: "none",
|
|
@@ -3916,7 +3412,7 @@ const style$5 = {
|
|
|
3916
3412
|
},
|
|
3917
3413
|
},
|
|
3918
3414
|
PaypalDetailsContainer: {
|
|
3919
|
-
color: "var(--
|
|
3415
|
+
color: "var(--sqm-text-subdued)",
|
|
3920
3416
|
display: "flex",
|
|
3921
3417
|
gap: "var(--sl-spacing-small)",
|
|
3922
3418
|
justifyContent: "flex-start",
|
|
@@ -3937,7 +3433,7 @@ const style$5 = {
|
|
|
3937
3433
|
},
|
|
3938
3434
|
},
|
|
3939
3435
|
AccountDetailsContainer: {
|
|
3940
|
-
color: "var(--
|
|
3436
|
+
color: "var(--sqm-text-subdued)",
|
|
3941
3437
|
display: "flex",
|
|
3942
3438
|
gap: "var(--sl-spacing-small)",
|
|
3943
3439
|
justifyContent: "flex-start",
|
|
@@ -3950,7 +3446,7 @@ const style$5 = {
|
|
|
3950
3446
|
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
3951
3447
|
paddingTop: "var(--sq-spacing-xx-small)",
|
|
3952
3448
|
"& > :not(:last-child)": {
|
|
3953
|
-
borderRight: "1px solid var(--
|
|
3449
|
+
borderRight: "1px solid var(--sqm-border-color)",
|
|
3954
3450
|
},
|
|
3955
3451
|
"& > :nth-child(3)": {
|
|
3956
3452
|
border: "none",
|
|
@@ -3967,7 +3463,7 @@ const style$5 = {
|
|
|
3967
3463
|
},
|
|
3968
3464
|
W9Container: {
|
|
3969
3465
|
paddingTop: "var(--sl-spacing-large)",
|
|
3970
|
-
borderTop: "1px solid var(--
|
|
3466
|
+
borderTop: "1px solid var(--sqm-border-color)",
|
|
3971
3467
|
},
|
|
3972
3468
|
SkeletonOne: {
|
|
3973
3469
|
width: "25%",
|
|
@@ -3983,15 +3479,15 @@ const style$5 = {
|
|
|
3983
3479
|
},
|
|
3984
3480
|
Alert: {
|
|
3985
3481
|
"&::part(base)": {
|
|
3986
|
-
backgroundColor: "var(--
|
|
3987
|
-
border: "1px solid var(--
|
|
3482
|
+
backgroundColor: "var(--sqm-warning-color-background)",
|
|
3483
|
+
border: "1px solid var(--sqm-warning-color-border)",
|
|
3988
3484
|
padding: "0 16px",
|
|
3989
3485
|
},
|
|
3990
3486
|
"& sl-icon": {
|
|
3991
3487
|
margin: 0,
|
|
3992
3488
|
},
|
|
3993
3489
|
"& sl-icon::part(base)": {
|
|
3994
|
-
color: "var(--
|
|
3490
|
+
color: "var(--sqm-warning-color-text)",
|
|
3995
3491
|
margin: 0,
|
|
3996
3492
|
},
|
|
3997
3493
|
},
|
|
@@ -4006,1406 +3502,197 @@ const style$5 = {
|
|
|
4006
3502
|
flexDirection: "column",
|
|
4007
3503
|
gap: "var(--sl-spacing-xx-large)",
|
|
4008
3504
|
},
|
|
4009
|
-
};
|
|
4010
|
-
function PayoutDetailsCardView(props) {
|
|
4011
|
-
const sheet = createStyleSheet(style$
|
|
4012
|
-
const styleString = sheet.toString();
|
|
4013
|
-
const { classes } = sheet;
|
|
4014
|
-
const { states, text } = props;
|
|
4015
|
-
const renderLoadingSkeleton = () => {
|
|
4016
|
-
return (h("div", { class: classes.CardContainer },
|
|
4017
|
-
h("div", { class: classes.StatusContainer },
|
|
4018
|
-
h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
4019
|
-
h("sl-skeleton", { class: classes.SkeletonTwo })),
|
|
4020
|
-
h("sl-skeleton", { class: classes.SkeletonThree }),
|
|
4021
|
-
h("sl-skeleton", { class: classes.SkeletonOne })));
|
|
4022
|
-
};
|
|
4023
|
-
const renderStatusBadge = (status, statusBadgeText) => {
|
|
4024
|
-
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
4025
|
-
const statusText = intl.formatMessage({
|
|
4026
|
-
id: "badgeText",
|
|
4027
|
-
defaultMessage: statusBadgeText,
|
|
4028
|
-
}, {
|
|
4029
|
-
badgeText: status,
|
|
4030
|
-
});
|
|
4031
|
-
return (h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
4032
|
-
};
|
|
4033
|
-
const thresholdText = intl.formatMessage({
|
|
4034
|
-
id: "thresholdText",
|
|
4035
|
-
defaultMessage: text.thresholdPayoutText,
|
|
4036
|
-
}, {
|
|
4037
|
-
thresholdBalance: states.thresholdBalance,
|
|
4038
|
-
});
|
|
4039
|
-
return (h("div", { class: classes.Container },
|
|
4040
|
-
h("style", { type: "text/css" }, styleString),
|
|
4041
|
-
states.loading ? (renderLoadingSkeleton()) : (h("div", { class: classes.CardContainer },
|
|
4042
|
-
h("div", { class: classes.StatusContainer },
|
|
4043
|
-
h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
4044
|
-
? states.thresholdBalance
|
|
4045
|
-
? thresholdText
|
|
4046
|
-
: ""
|
|
4047
|
-
: states.nextPayoutDate),
|
|
4048
|
-
states.badgeStatus === "thresholdPayout"
|
|
4049
|
-
? null
|
|
4050
|
-
: renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
|
|
4051
|
-
h("h1", { class: classes.MainCurrency }, states.balance),
|
|
4052
|
-
states.payoutType === "PAYPAL" ? (h("div", { class: classes.PaypalDetailsContainer },
|
|
4053
|
-
h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
|
4054
|
-
h(PayPalIcon, null))) : (h("div", { class: classes.AccountDetailsContainer },
|
|
4055
|
-
h("span", null, states.cardNumberPreview
|
|
4056
|
-
? `${text.accountText} ${states.cardNumberPreview}`
|
|
4057
|
-
: text.payoutMissingInformationText)))))));
|
|
4058
|
-
}
|
|
4059
|
-
|
|
4060
|
-
function usePayoutDetailsCard(props) {
|
|
4061
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
4062
|
-
const { data, loading } = $n(USER_QUERY_NAMESPACE);
|
|
4063
|
-
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;
|
|
4064
|
-
function getPayoutDetailedStatusText(paymentDay) {
|
|
4065
|
-
var _a;
|
|
4066
|
-
const currentDay = luxon.DateTime.now().day;
|
|
4067
|
-
if (paymentDay === "1") {
|
|
4068
|
-
return currentDay === 1
|
|
4069
|
-
? luxon.DateTime.now().toFormat("LLL dd, yyyy")
|
|
4070
|
-
: luxon.DateTime.now()
|
|
4071
|
-
.plus({ month: 1 })
|
|
4072
|
-
.startOf("month")
|
|
4073
|
-
.toFormat("LLL dd, yyyy");
|
|
4074
|
-
}
|
|
4075
|
-
else if (paymentDay === "15") {
|
|
4076
|
-
return currentDay <= 15
|
|
4077
|
-
? luxon.DateTime.now()
|
|
4078
|
-
.plus({ day: 15 - currentDay })
|
|
4079
|
-
.toFormat("LLL dd, yyyy")
|
|
4080
|
-
: luxon.DateTime.now()
|
|
4081
|
-
.plus({ month: 1 })
|
|
4082
|
-
.startOf("month")
|
|
4083
|
-
.plus({ day: 14 })
|
|
4084
|
-
.toFormat("LLL dd, yyyy");
|
|
4085
|
-
}
|
|
4086
|
-
else {
|
|
4087
|
-
intl.formatMessage({
|
|
4088
|
-
id: `nextPayoutBalance`,
|
|
4089
|
-
defaultMessage: props.thresholdPayoutText,
|
|
4090
|
-
}, {
|
|
4091
|
-
thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
|
|
4092
|
-
});
|
|
4093
|
-
}
|
|
4094
|
-
}
|
|
4095
|
-
const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
|
|
4096
|
-
const isPayoutToday = luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
|
|
4097
|
-
return {
|
|
4098
|
-
states: {
|
|
4099
|
-
loading,
|
|
4100
|
-
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}`
|
|
4101
|
-
: undefined,
|
|
4102
|
-
balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
|
|
4103
|
-
badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
|
|
4104
|
-
? "thresholdPayout"
|
|
4105
|
-
: isPayoutToday
|
|
4106
|
-
? "payoutToday"
|
|
4107
|
-
: "nextPayout",
|
|
4108
|
-
payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
|
|
4109
|
-
error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
|
|
4110
|
-
paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
|
|
4111
|
-
cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
|
|
4112
|
-
nextPayoutDate: paymentDay,
|
|
4113
|
-
},
|
|
4114
|
-
text: props.getTextProps(),
|
|
4115
|
-
};
|
|
4116
|
-
}
|
|
4117
|
-
|
|
4118
|
-
const PayoutDetailsCard = class {
|
|
4119
|
-
constructor(hostRef) {
|
|
4120
|
-
registerInstance(this, hostRef);
|
|
4121
|
-
/**
|
|
4122
|
-
* Badge text indicating payout status
|
|
4123
|
-
* @uiName Payout badge status text
|
|
4124
|
-
*/
|
|
4125
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4126
|
-
/**
|
|
4127
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4128
|
-
* @uiName Payout schedule by threshold text
|
|
4129
|
-
*/
|
|
4130
|
-
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
4131
|
-
/**
|
|
4132
|
-
* Shown before the participant’s bank account information.
|
|
4133
|
-
* @uiName Bank account field label
|
|
4134
|
-
*/
|
|
4135
|
-
this.accountText = "Account";
|
|
4136
|
-
/**
|
|
4137
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
4138
|
-
* @uiName Payout missing information subtext
|
|
4139
|
-
*/
|
|
4140
|
-
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
4141
|
-
h$1(this);
|
|
4142
|
-
}
|
|
4143
|
-
disconnectedCallback() { }
|
|
4144
|
-
getTextProps() {
|
|
4145
|
-
const props = getProps(this);
|
|
4146
|
-
return {
|
|
4147
|
-
...props,
|
|
4148
|
-
};
|
|
4149
|
-
}
|
|
4150
|
-
render() {
|
|
4151
|
-
const props = isDemo()
|
|
4152
|
-
? useDemoPayoutDetailsCard(this)
|
|
4153
|
-
: usePayoutDetailsCard(this);
|
|
4154
|
-
return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
4155
|
-
}
|
|
4156
|
-
};
|
|
4157
|
-
function useDemoPayoutDetailsCard(props) {
|
|
4158
|
-
return cjs({
|
|
4159
|
-
states: {
|
|
4160
|
-
loading: false,
|
|
4161
|
-
error: false,
|
|
4162
|
-
thresholdBalance: "$50",
|
|
4163
|
-
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
4164
|
-
badgeStatus: "nextPayout",
|
|
4165
|
-
payoutType: "BANK_TRANSFER",
|
|
4166
|
-
nextPayoutDate: "March 14, 2024",
|
|
4167
|
-
paypalEmailAddress: "joesmith@example.com",
|
|
4168
|
-
otherCurrencies: false,
|
|
4169
|
-
hasW9Pending: false,
|
|
4170
|
-
hasDatePending: true,
|
|
4171
|
-
cardNumberPreview: "XX2381",
|
|
4172
|
-
balance: "20.00 USD",
|
|
4173
|
-
},
|
|
4174
|
-
text: props.getTextProps(),
|
|
4175
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4176
|
-
}
|
|
4177
|
-
|
|
4178
|
-
const TableCell = class {
|
|
4179
|
-
constructor(hostRef) {
|
|
4180
|
-
registerInstance(this, hostRef);
|
|
4181
|
-
/** @uiName Column span */
|
|
4182
|
-
this.colspan = 1;
|
|
4183
|
-
/** @uiName Padding */
|
|
4184
|
-
this.padding = "15px 10px";
|
|
4185
|
-
}
|
|
4186
|
-
render() {
|
|
4187
|
-
return (h(Host, { style: { display: "contents" } }, h("td", { colSpan: this.colspan, style: { padding: this.padding } }, h("slot", null))));
|
|
4188
|
-
}
|
|
4189
|
-
};
|
|
4190
|
-
|
|
4191
|
-
const TableRow = class {
|
|
4192
|
-
constructor(hostRef) {
|
|
4193
|
-
registerInstance(this, hostRef);
|
|
4194
|
-
/**
|
|
4195
|
-
* @uiName Border
|
|
4196
|
-
*/
|
|
4197
|
-
this.border = "1px solid #EAEAEA";
|
|
4198
|
-
}
|
|
4199
|
-
render() {
|
|
4200
|
-
return (h(Host, { style: { display: "contents" } }, h("tr", { style: { border: this.border } }, h("slot", null))));
|
|
4201
|
-
}
|
|
4202
|
-
};
|
|
4203
|
-
|
|
4204
|
-
function getCurrentStep(user) {
|
|
4205
|
-
var _a, _b;
|
|
4206
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4207
|
-
return "/1";
|
|
4208
|
-
}
|
|
4209
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
4210
|
-
// If they do have a required document, look at current document
|
|
4211
|
-
if (requiredTaxDocumentType && !currentTaxDocument)
|
|
4212
|
-
return "/3";
|
|
4213
|
-
if (!withdrawalSettings && brandedSignup)
|
|
4214
|
-
return "/4";
|
|
4215
|
-
return "/dashboard";
|
|
4216
|
-
}
|
|
4217
|
-
function useTaxAndCash() {
|
|
4218
|
-
var _a, _b, _c, _d, _e;
|
|
4219
|
-
const host = _();
|
|
4220
|
-
const user = J();
|
|
4221
|
-
const locale = L();
|
|
4222
|
-
// State for current step of form
|
|
4223
|
-
const [step, setStep] = In({
|
|
4224
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4225
|
-
initialValue: "/loading",
|
|
4226
|
-
});
|
|
4227
|
-
// State for when to hide steps, or override certain actions
|
|
4228
|
-
const [context, _setContext] = In({
|
|
4229
|
-
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4230
|
-
initialValue: {},
|
|
4231
|
-
});
|
|
4232
|
-
// State to carry user form information into step 2
|
|
4233
|
-
const [userFormContext, _setUserFormContext] = In({
|
|
4234
|
-
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4235
|
-
initialValue: {
|
|
4236
|
-
firstName: undefined,
|
|
4237
|
-
lastName: undefined,
|
|
4238
|
-
email: undefined,
|
|
4239
|
-
countryCode: undefined,
|
|
4240
|
-
currency: undefined,
|
|
4241
|
-
},
|
|
4242
|
-
});
|
|
4243
|
-
const [_currenciesContext, setCurrenciesContext] = In({
|
|
4244
|
-
namespace: CURRENCIES_NAMESPACE,
|
|
4245
|
-
initialValue: [],
|
|
4246
|
-
});
|
|
4247
|
-
const [_countriesContext, _setCountriesContext] = In({
|
|
4248
|
-
namespace: COUNTRIES_NAMESPACE,
|
|
4249
|
-
initialValue: [],
|
|
4250
|
-
});
|
|
4251
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = In({
|
|
4252
|
-
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4253
|
-
initialValue: [],
|
|
4254
|
-
});
|
|
4255
|
-
const { data, errors } = Sn({
|
|
4256
|
-
namespace: USER_QUERY_NAMESPACE,
|
|
4257
|
-
query: GET_USER,
|
|
4258
|
-
skip: !user,
|
|
4259
|
-
options: {
|
|
4260
|
-
batch: false,
|
|
4261
|
-
},
|
|
4262
|
-
});
|
|
4263
|
-
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) ||
|
|
4264
|
-
userFormContext.countryCode;
|
|
4265
|
-
Sn({
|
|
4266
|
-
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4267
|
-
query: GET_COUNTRIES,
|
|
4268
|
-
skip: !user,
|
|
4269
|
-
});
|
|
4270
|
-
const { data: financeNetworkData, refetch } = Sn({
|
|
4271
|
-
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4272
|
-
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4273
|
-
skip: !user,
|
|
4274
|
-
variables: {
|
|
4275
|
-
filter: getFinanceNetworkFilter(),
|
|
4276
|
-
},
|
|
4277
|
-
});
|
|
4278
|
-
const { data: currenciesData } = Sn({
|
|
4279
|
-
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4280
|
-
query: GET_CURRENCIES,
|
|
4281
|
-
skip: !user,
|
|
4282
|
-
variables: {
|
|
4283
|
-
locale,
|
|
4284
|
-
},
|
|
4285
|
-
});
|
|
4286
|
-
const supportedCurrencies = useMemo(() => {
|
|
4287
|
-
var _a, _b;
|
|
4288
|
-
// Filter out any currencies not supported by finance network settings
|
|
4289
|
-
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) => {
|
|
4290
|
-
var _a, _b;
|
|
4291
|
-
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);
|
|
4292
|
-
// Currency not in supported list
|
|
4293
|
-
if (!currency)
|
|
4294
|
-
return agg;
|
|
4295
|
-
// Currency already added to list
|
|
4296
|
-
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4297
|
-
return agg;
|
|
4298
|
-
// Currency not supported by selected country
|
|
4299
|
-
if (userFormContext.countryCode &&
|
|
4300
|
-
settings.countryCode !== countryCode)
|
|
4301
|
-
return agg;
|
|
4302
|
-
return [...agg, currency];
|
|
4303
|
-
}, []);
|
|
4304
|
-
return allValidCurrencies;
|
|
4305
|
-
}, [financeNetworkData, countryCode]);
|
|
4306
|
-
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4307
|
-
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4308
|
-
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4309
|
-
// filter out any duplicate countries and null countryCode
|
|
4310
|
-
const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4311
|
-
const _topCountries = ["CA", "GB", "US"];
|
|
4312
|
-
const sortedCountries = useMemo(() => Array.from(availableCountries)
|
|
4313
|
-
.map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
|
|
4314
|
-
.sort(sortByName)
|
|
4315
|
-
.reduce((prev, countryObj) => {
|
|
4316
|
-
if (_topCountries.includes(countryObj.countryCode))
|
|
4317
|
-
return [countryObj, ...prev];
|
|
4318
|
-
return [...prev, countryObj];
|
|
4319
|
-
}, []), [availableCountries]);
|
|
4320
|
-
useEffect(() => {
|
|
4321
|
-
if (sortedCountries)
|
|
4322
|
-
setSortedCountriesContext(sortedCountries);
|
|
4323
|
-
}, [sortedCountries]);
|
|
4324
|
-
useEffect(() => {
|
|
4325
|
-
if (supportedCurrencies)
|
|
4326
|
-
setCurrenciesContext(supportedCurrencies);
|
|
4327
|
-
}, [supportedCurrencies]);
|
|
4328
|
-
useEffect(() => {
|
|
4329
|
-
if (errors) {
|
|
4330
|
-
setStep("/error");
|
|
4331
|
-
return;
|
|
4332
|
-
}
|
|
4333
|
-
if (!host || !user)
|
|
4334
|
-
return;
|
|
4335
|
-
if (data) {
|
|
4336
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4337
|
-
if (!user || step !== "/loading")
|
|
4338
|
-
return;
|
|
4339
|
-
const currentStep = getCurrentStep(user);
|
|
4340
|
-
setStep(currentStep);
|
|
4341
|
-
}
|
|
4342
|
-
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4343
|
-
function getFinanceNetworkFilter() {
|
|
4344
|
-
var _a, _b, _c;
|
|
4345
|
-
if (step === "/1")
|
|
4346
|
-
return {};
|
|
4347
|
-
if (step === "/4")
|
|
4348
|
-
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 };
|
|
4349
|
-
if (countryCode)
|
|
4350
|
-
return {
|
|
4351
|
-
countryCode_eq: countryCode,
|
|
4352
|
-
};
|
|
4353
|
-
return {};
|
|
4354
|
-
}
|
|
4355
|
-
return {
|
|
4356
|
-
step,
|
|
4357
|
-
setStep,
|
|
4358
|
-
context,
|
|
4359
|
-
namespace: Mn(TAX_CONTEXT_NAMESPACE),
|
|
4360
|
-
loading: step === "/loading",
|
|
4361
|
-
};
|
|
4362
|
-
}
|
|
4363
|
-
|
|
4364
|
-
const TaxAndCashMonolith = class {
|
|
4365
|
-
constructor(hostRef) {
|
|
4366
|
-
registerInstance(this, hostRef);
|
|
4367
|
-
/*---------------------------------------------------------------------------------
|
|
4368
|
-
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4369
|
-
-----------------------------------------------------------------------------------*/
|
|
4370
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4371
|
-
STEP 1 PROPS:
|
|
4372
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4373
|
-
/**
|
|
4374
|
-
* @uiName First name field label
|
|
4375
|
-
* @uiGroup Step 1 Properties
|
|
4376
|
-
*/
|
|
4377
|
-
this.step1_firstName = "First name";
|
|
4378
|
-
/**
|
|
4379
|
-
* @uiName Last name field label
|
|
4380
|
-
* @uiGroup Step 1 Properties
|
|
4381
|
-
*/
|
|
4382
|
-
this.step1_lastName = "Last name";
|
|
4383
|
-
/**
|
|
4384
|
-
* @uiName Email field label
|
|
4385
|
-
* @uiGroup Step 1 Properties
|
|
4386
|
-
*/
|
|
4387
|
-
this.step1_email = "Email";
|
|
4388
|
-
/**
|
|
4389
|
-
* @uiName Country field label
|
|
4390
|
-
* @uiGroup Step 1 Properties
|
|
4391
|
-
*/
|
|
4392
|
-
this.step1_country = "Country";
|
|
4393
|
-
/**
|
|
4394
|
-
* @uiName Phone number field label
|
|
4395
|
-
* @uiGroup Step 1 Properties
|
|
4396
|
-
*/
|
|
4397
|
-
this.step1_phoneNumber = "Phone number";
|
|
4398
|
-
/**
|
|
4399
|
-
* @uiName Address field label
|
|
4400
|
-
* @uiGroup Step 1 Properties
|
|
4401
|
-
*/
|
|
4402
|
-
this.step1_address = "Address";
|
|
4403
|
-
/**
|
|
4404
|
-
* @uiName City field label
|
|
4405
|
-
* @uiGroup Step 1 Properties
|
|
4406
|
-
*/
|
|
4407
|
-
this.step1_city = "City";
|
|
4408
|
-
/**
|
|
4409
|
-
* @uiName State field label for states
|
|
4410
|
-
* @uiGroup Step 1 Properties
|
|
4411
|
-
*/
|
|
4412
|
-
this.step1_state = "State";
|
|
4413
|
-
/**
|
|
4414
|
-
* @uiName State field label for provinces
|
|
4415
|
-
* @uiGroup Step 1 Properties
|
|
4416
|
-
*/
|
|
4417
|
-
this.step1_province = "Province";
|
|
4418
|
-
/**
|
|
4419
|
-
* @uiName State field label for regions
|
|
4420
|
-
* @uiGroup Step 1 Properties
|
|
4421
|
-
*/
|
|
4422
|
-
this.step1_region = "Region";
|
|
4423
|
-
/**
|
|
4424
|
-
* @uiName Postal code field label
|
|
4425
|
-
* @uiGroup Step 1 Properties
|
|
4426
|
-
*/
|
|
4427
|
-
this.step1_postalCode = "Postal code";
|
|
4428
|
-
/**
|
|
4429
|
-
* @uiName Currency field label
|
|
4430
|
-
* @uiGroup Step 1 Properties
|
|
4431
|
-
*/
|
|
4432
|
-
this.step1_currency = "Currency";
|
|
4433
|
-
/**
|
|
4434
|
-
* @uiName Currency field help text
|
|
4435
|
-
* @uiGroup Step 1 Properties
|
|
4436
|
-
*/
|
|
4437
|
-
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4438
|
-
/**
|
|
4439
|
-
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4440
|
-
* @uiName Terms and conditions checkbox
|
|
4441
|
-
* @uiGroup Step 1 Properties
|
|
4442
|
-
*/
|
|
4443
|
-
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4444
|
-
/**
|
|
4445
|
-
* @uiName Step 1 title
|
|
4446
|
-
* @uiGroup Step 1 Properties
|
|
4447
|
-
*/
|
|
4448
|
-
this.step1_personalInformation = "Personal Information";
|
|
4449
|
-
/**
|
|
4450
|
-
* The link text that appears in the terms and conditions checkbox
|
|
4451
|
-
* @uiName Terms and conditions text
|
|
4452
|
-
* @uiGroup Step 1 Properties
|
|
4453
|
-
* @uiWidget textArea
|
|
4454
|
-
*/
|
|
4455
|
-
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4456
|
-
/**
|
|
4457
|
-
* The link that appears in the terms and conditions checkbox
|
|
4458
|
-
* @uiName Terms and conditions link
|
|
4459
|
-
* @uiGroup Step 1 Properties
|
|
4460
|
-
*/
|
|
4461
|
-
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4462
|
-
/**
|
|
4463
|
-
* Placeholder text displayed in the currency search dropdown
|
|
4464
|
-
* @uiName Currency field placeholder text
|
|
4465
|
-
* @uiGroup Step 1 Properties
|
|
4466
|
-
*/
|
|
4467
|
-
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4468
|
-
/**
|
|
4469
|
-
|
|
4470
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4471
|
-
STEP 2 PROPS:
|
|
4472
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4473
|
-
/**
|
|
4474
|
-
* @uiName Step 2 title
|
|
4475
|
-
* @uiGroup Step 2 Properties
|
|
4476
|
-
*/
|
|
4477
|
-
this.step2_indirectTax = "Indirect Tax";
|
|
4478
|
-
/**
|
|
4479
|
-
* Displayed under the title of this step.
|
|
4480
|
-
* @uiName Step 2 description
|
|
4481
|
-
* @uiGroup Step 2 Properties
|
|
4482
|
-
* @uiWidget textArea
|
|
4483
|
-
*/
|
|
4484
|
-
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.";
|
|
4485
|
-
/**
|
|
4486
|
-
* Displayed with indirect tax registration options.
|
|
4487
|
-
* @uiName Indirect tax details section title
|
|
4488
|
-
* @uiGroup Step 2 Properties
|
|
4489
|
-
*/
|
|
4490
|
-
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4491
|
-
/**
|
|
4492
|
-
* @uiName Registered for indirect tax option
|
|
4493
|
-
* @uiGroup Step 2 Properties
|
|
4494
|
-
* @uiWidget textArea
|
|
4495
|
-
*
|
|
4496
|
-
*/
|
|
4497
|
-
this.step2_otherRegion = "Registered for indirect tax";
|
|
4498
|
-
/**
|
|
4499
|
-
* Selecting this option will display fields to enter indirect tax details.
|
|
4500
|
-
* @uiName Registered for indirect tax option description
|
|
4501
|
-
* @uiGroup Step 2 Properties
|
|
4502
|
-
*/
|
|
4503
|
-
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4504
|
-
/**
|
|
4505
|
-
* @uiName Not registered for indirect tax option
|
|
4506
|
-
* @uiGroup Step 2 Properties
|
|
4507
|
-
* @uiWidget textArea
|
|
4508
|
-
*/
|
|
4509
|
-
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4510
|
-
/**
|
|
4511
|
-
* Participants based in the US are considered not registered.
|
|
4512
|
-
* @uiName Not registered for indirect tax option description
|
|
4513
|
-
* @uiGroup Step 2 Properties
|
|
4514
|
-
*/
|
|
4515
|
-
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4516
|
-
/**
|
|
4517
|
-
* @uiName Region of indirect tax field label
|
|
4518
|
-
* @uiGroup Step 2 Properties
|
|
4519
|
-
*/
|
|
4520
|
-
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4521
|
-
/**
|
|
4522
|
-
* @uiName Indirect tax number field label
|
|
4523
|
-
* @uiGroup Step 2 Properties
|
|
4524
|
-
*/
|
|
4525
|
-
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4526
|
-
/**
|
|
4527
|
-
* @uiName Province field label
|
|
4528
|
-
* @uiGroup Step 2 Properties
|
|
4529
|
-
*/
|
|
4530
|
-
this.step2_province = "Province";
|
|
4531
|
-
/**
|
|
4532
|
-
* @uiName Missing indirect tax number error message
|
|
4533
|
-
* @uiGroup Step 2 Properties
|
|
4534
|
-
*/
|
|
4535
|
-
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";
|
|
4536
|
-
/**
|
|
4537
|
-
* Displayed to participants registered for QST.
|
|
4538
|
-
* @uiName QST number field label
|
|
4539
|
-
* @uiGroup Step 2 Properties
|
|
4540
|
-
*/
|
|
4541
|
-
this.step2_qstNumber = "QST number";
|
|
4542
|
-
/**
|
|
4543
|
-
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4544
|
-
* @uiName QST tax checkbox
|
|
4545
|
-
* @uiGroup Step 2 Properties
|
|
4546
|
-
*/
|
|
4547
|
-
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4548
|
-
/**
|
|
4549
|
-
* Displayed to participants registered for indirect tax in Spain.
|
|
4550
|
-
* @uiName Spain income tax checkbox
|
|
4551
|
-
* @uiGroup Step 2 Properties
|
|
4552
|
-
* @uiWidget textArea
|
|
4553
|
-
*/
|
|
4554
|
-
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.";
|
|
4555
|
-
/**
|
|
4556
|
-
* Displayed to participants registered in Spain.
|
|
4557
|
-
* @uiName Sub-region of indirect tax field label
|
|
4558
|
-
* @uiGroup Step 2 Properties
|
|
4559
|
-
*/
|
|
4560
|
-
this.step2_subRegion = "Sub-region";
|
|
4561
|
-
/**
|
|
4562
|
-
* @uiName Income tax field label
|
|
4563
|
-
* @uiGroup Step 2 Properties
|
|
4564
|
-
*/
|
|
4565
|
-
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4566
|
-
/**
|
|
4567
|
-
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4568
|
-
* @uiName Submission confirmation alert
|
|
4569
|
-
* @uiGroup Step 2 Properties
|
|
4570
|
-
* @uiWidget textArea
|
|
4571
|
-
*/
|
|
4572
|
-
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.";
|
|
4573
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4574
|
-
STEP 3 PROPS:
|
|
4575
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4576
|
-
/**
|
|
4577
|
-
* @uiName Step 3 title
|
|
4578
|
-
* @uiGroup Step 3 Properties
|
|
4579
|
-
*/
|
|
4580
|
-
this.step3_taxForm = "Tax form";
|
|
4581
|
-
/**
|
|
4582
|
-
* Display the type of tax form that the participant must submit.
|
|
4583
|
-
* @uiName Tax form name
|
|
4584
|
-
* @uiGroup Step 3 Properties
|
|
4585
|
-
*/
|
|
4586
|
-
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4587
|
-
/**
|
|
4588
|
-
* @uiName Participant type field label
|
|
4589
|
-
* @uiGroup Step 3 Properties
|
|
4590
|
-
*/
|
|
4591
|
-
this.step3_participantType = "Participant type";
|
|
4592
|
-
/**
|
|
4593
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4594
|
-
* @uiName Business representative participant type label
|
|
4595
|
-
* @uiGroup Step 3 Properties
|
|
4596
|
-
*/
|
|
4597
|
-
this.step3_businessEntity = "I represent a business";
|
|
4598
|
-
/**
|
|
4599
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4600
|
-
* @uiName Individual participant type label
|
|
4601
|
-
* @uiGroup Step 3 Properties
|
|
4602
|
-
*/
|
|
4603
|
-
this.step3_individualParticipant = "I am an individual participant";
|
|
4604
|
-
/**
|
|
4605
|
-
* Displayed at the top of the page to participants based in the US.
|
|
4606
|
-
* @uiName W-9 tax form description
|
|
4607
|
-
* @uiGroup Step 3 Properties
|
|
4608
|
-
* @uiWidget textArea
|
|
4609
|
-
*/
|
|
4610
|
-
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4611
|
-
/**
|
|
4612
|
-
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4613
|
-
* @uiName W-8 BEN tax form description
|
|
4614
|
-
* @uiGroup Step 3 Properties
|
|
4615
|
-
* @uiWidget textArea
|
|
4616
|
-
*/
|
|
4617
|
-
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4618
|
-
/**
|
|
4619
|
-
* Displayed at the top of the page to participants representing a business.
|
|
4620
|
-
* @uiName W-8 BEN-E tax form description
|
|
4621
|
-
* @uiGroup Step 3 Properties
|
|
4622
|
-
* @uiWidget textArea
|
|
4623
|
-
*/
|
|
4624
|
-
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4625
|
-
/**
|
|
4626
|
-
* This appears inside the Docusign frame.
|
|
4627
|
-
* @uiName Docusign session expired message
|
|
4628
|
-
* @uiGroup Step 3 Properties
|
|
4629
|
-
* @uiWidget textArea
|
|
4630
|
-
*/
|
|
4631
|
-
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.";
|
|
4632
|
-
/**
|
|
4633
|
-
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4634
|
-
* @uiName Docusign timed session message
|
|
4635
|
-
* @uiGroup Step 3 Properties
|
|
4636
|
-
* @uiWidget textArea
|
|
4637
|
-
*/
|
|
4638
|
-
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4639
|
-
/**
|
|
4640
|
-
* This appears inside the Docusign frame.
|
|
4641
|
-
* @uiName Docusign form error message
|
|
4642
|
-
* @uiGroup Step 3 Properties
|
|
4643
|
-
* @uiWidget textArea
|
|
4644
|
-
*/
|
|
4645
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4646
|
-
/**
|
|
4647
|
-
* @uiName Refresh page button label
|
|
4648
|
-
* @uiGroup Step 3 Properties
|
|
4649
|
-
*/
|
|
4650
|
-
this.step3_refreshButton = "Refresh Page";
|
|
4651
|
-
/**
|
|
4652
|
-
* @uiName Exit button text
|
|
4653
|
-
* @uiGroup Step 3 Properties
|
|
4654
|
-
*/
|
|
4655
|
-
this.step3_exitButton = "Exit";
|
|
4656
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4657
|
-
STEP 4 PROPS:
|
|
4658
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4659
|
-
/**
|
|
4660
|
-
* @uiName Step 4 title
|
|
4661
|
-
* @uiGroup Step 4 Properties
|
|
4662
|
-
*/
|
|
4663
|
-
this.step4_taxAndPayouts = "Payouts";
|
|
4664
|
-
/**
|
|
4665
|
-
* @uiName Direct to bank payout option
|
|
4666
|
-
* @uiGroup Step 4 Properties
|
|
4667
|
-
*/
|
|
4668
|
-
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4669
|
-
/**
|
|
4670
|
-
* @uiName PayPal payout option
|
|
4671
|
-
* @uiGroup Step 4 Properties
|
|
4672
|
-
*/
|
|
4673
|
-
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4674
|
-
/**
|
|
4675
|
-
* @uiName Threshold balance payment schedule option
|
|
4676
|
-
* @uiGroup Step 4 Properties
|
|
4677
|
-
*/
|
|
4678
|
-
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4679
|
-
/**
|
|
4680
|
-
* @uiName Fixed day payment schedule option
|
|
4681
|
-
* @uiGroup Step 4 Properties
|
|
4682
|
-
*/
|
|
4683
|
-
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4684
|
-
/**
|
|
4685
|
-
* Let the participant choose what day of the month they’ll get paid
|
|
4686
|
-
* @uiName Payment day field label
|
|
4687
|
-
* @uiGroup Step 4 Properties
|
|
4688
|
-
*/
|
|
4689
|
-
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4690
|
-
/**
|
|
4691
|
-
* Participant use this field to select the balance at which they want to be paid
|
|
4692
|
-
* @uiName Payment threshold field label
|
|
4693
|
-
* @uiGroup Step 4 Properties
|
|
4694
|
-
*/
|
|
4695
|
-
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4696
|
-
/**
|
|
4697
|
-
* One of two payment day options
|
|
4698
|
-
* @uiName First of month payday option
|
|
4699
|
-
* @uiGroup Step 4 Properties
|
|
4700
|
-
*/
|
|
4701
|
-
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4702
|
-
/**
|
|
4703
|
-
* One of two payment day options
|
|
4704
|
-
* @uiName Fifteenth of month payday option
|
|
4705
|
-
* @uiGroup Step 4 Properties
|
|
4706
|
-
*/
|
|
4707
|
-
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4708
|
-
/**
|
|
4709
|
-
* @uiName Payment method section header
|
|
4710
|
-
* @uiGroup Step 4 Properties
|
|
4711
|
-
*/
|
|
4712
|
-
this.step4_paymentMethod = "Payment method";
|
|
4713
|
-
/**
|
|
4714
|
-
* @uiName Payment schedule section header
|
|
4715
|
-
* @uiGroup Step 4 Properties
|
|
4716
|
-
*/
|
|
4717
|
-
this.step4_paymentSchedule = "Payment schedule";
|
|
4718
|
-
/**
|
|
4719
|
-
* @uiName Payment method section description
|
|
4720
|
-
* @uiGroup Step 4 Properties
|
|
4721
|
-
*/
|
|
4722
|
-
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4723
|
-
/**
|
|
4724
|
-
* Displayed to participants who choose PayPal as their payout method
|
|
4725
|
-
* @uiName PayPal email field label
|
|
4726
|
-
* @uiGroup Step 4 Properties
|
|
4727
|
-
*/
|
|
4728
|
-
this.step4_payPalInputLabel = "PayPal email";
|
|
4729
|
-
/**
|
|
4730
|
-
* @uiName Bank country field label
|
|
4731
|
-
* @uiGroup Step 4 Properties
|
|
4732
|
-
*/
|
|
4733
|
-
this.step4_bankLocationLabel = "Bank country location";
|
|
4734
|
-
/**
|
|
4735
|
-
* @uiName Beneficiary account field label
|
|
4736
|
-
* @uiGroup Step 4 Properties
|
|
4737
|
-
*/
|
|
4738
|
-
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4739
|
-
/**
|
|
4740
|
-
* @uiName Bank account type field label
|
|
4741
|
-
* @uiGroup Step 4 Properties
|
|
4742
|
-
*/
|
|
4743
|
-
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4744
|
-
/**
|
|
4745
|
-
* @uiName Checking account option
|
|
4746
|
-
* @uiGroup Step 4 Properties
|
|
4747
|
-
*/
|
|
4748
|
-
this.step4_checkingSelectItemLabel = "Checking";
|
|
4749
|
-
/**
|
|
4750
|
-
* Label text for the savings account type select item
|
|
4751
|
-
* @uiName Savings account options
|
|
4752
|
-
* @uiGroup Step 4 Properties
|
|
4753
|
-
*/
|
|
4754
|
-
this.step4_savingsSelectItemLabel = "Savings";
|
|
4755
|
-
/**
|
|
4756
|
-
* @uiName Bank account number field label
|
|
4757
|
-
* @uiGroup Step 4 Properties
|
|
4758
|
-
*/
|
|
4759
|
-
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4760
|
-
/**
|
|
4761
|
-
* @uiName IBAN field label
|
|
4762
|
-
* @uiGroup Step 4 Properties
|
|
4763
|
-
*/
|
|
4764
|
-
this.step4_ibanLabel = "IBAN";
|
|
4765
|
-
/**
|
|
4766
|
-
* @uiName SWIFT code field label
|
|
4767
|
-
* @uiGroup Step 4 Properties
|
|
4768
|
-
*/
|
|
4769
|
-
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4770
|
-
/**
|
|
4771
|
-
* @uiName Routing code field label
|
|
4772
|
-
* @uiGroup Step 4 Properties
|
|
4773
|
-
*/
|
|
4774
|
-
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} }";
|
|
4775
|
-
/**
|
|
4776
|
-
* @uiName Bank name field label
|
|
4777
|
-
* @uiGroup Step 4 Properties
|
|
4778
|
-
*/
|
|
4779
|
-
this.step4_bankNameLabel = "Bank name";
|
|
4780
|
-
/**
|
|
4781
|
-
* @uiName Classification entity field label
|
|
4782
|
-
* @uiGroup Step 4 Properties
|
|
4783
|
-
*/
|
|
4784
|
-
this.step4_classificationEntityLabel = "Classification entity";
|
|
4785
|
-
/**
|
|
4786
|
-
* One of three options listed for the classification field
|
|
4787
|
-
* @uiName Business classification option
|
|
4788
|
-
* @uiGroup Step 4 Properties
|
|
4789
|
-
*/
|
|
4790
|
-
this.step4_businessSelectItemLabel = "Business";
|
|
4791
|
-
/**
|
|
4792
|
-
* One of three options listed for the classification field
|
|
4793
|
-
* @uiName Individual classification option
|
|
4794
|
-
* @uiGroup Step 4 Properties
|
|
4795
|
-
*/
|
|
4796
|
-
this.step4_individualSelectItemLabel = "Individual";
|
|
4797
|
-
/**
|
|
4798
|
-
* One of three options listed for the classification field
|
|
4799
|
-
* @uiName Foreign classification option
|
|
4800
|
-
* @uiGroup Step 4 Properties
|
|
4801
|
-
*/
|
|
4802
|
-
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4803
|
-
/**
|
|
4804
|
-
* @uiName Classification CPF field label
|
|
4805
|
-
* @uiGroup Step 4 Properties
|
|
4806
|
-
*/
|
|
4807
|
-
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4808
|
-
/**
|
|
4809
|
-
* @uiName Patronymic name field label
|
|
4810
|
-
* @uiGroup Step 4 Properties
|
|
4811
|
-
*/
|
|
4812
|
-
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4813
|
-
/**
|
|
4814
|
-
* @uiName VO code field label
|
|
4815
|
-
* @uiGroup Step 4 Properties
|
|
4816
|
-
*/
|
|
4817
|
-
this.step4_voCodeLabel = "VO code";
|
|
4818
|
-
/**
|
|
4819
|
-
* @uiName Agency code field label
|
|
4820
|
-
* @uiGroup Step 4 Properties
|
|
4821
|
-
*/
|
|
4822
|
-
this.step4_agencyCodeLabel = "Agency code";
|
|
4823
|
-
/**
|
|
4824
|
-
* @uiName Branch code field label
|
|
4825
|
-
* @uiGroup Step 4 Properties
|
|
4826
|
-
*/
|
|
4827
|
-
this.step4_branchCodeLabel = "Branch code";
|
|
4828
|
-
/**
|
|
4829
|
-
* Label text for the classification input field
|
|
4830
|
-
* @uiName Classification field label
|
|
4831
|
-
* @uiGroup Step 4 Properties
|
|
4832
|
-
*/
|
|
4833
|
-
this.step4_classificationLabel = "Classification";
|
|
4834
|
-
/**
|
|
4835
|
-
* @uiName Taxpayer ID field label
|
|
4836
|
-
* @uiGroup Step 4 Properties
|
|
4837
|
-
*/
|
|
4838
|
-
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4839
|
-
/**
|
|
4840
|
-
* @uiName Bank address field label
|
|
4841
|
-
* @uiGroup Step 4 Properties
|
|
4842
|
-
*/
|
|
4843
|
-
this.step4_bankAddressLabel = "Bank address";
|
|
4844
|
-
/**
|
|
4845
|
-
* @uiName Bank city field label
|
|
4846
|
-
* @uiGroup Step 4 Properties
|
|
4847
|
-
*/
|
|
4848
|
-
this.step4_bankCityLabel = "Bank city";
|
|
4849
|
-
/**
|
|
4850
|
-
* @uiName Bank province/state field label
|
|
4851
|
-
* @uiGroup Step 4 Properties
|
|
4852
|
-
*/
|
|
4853
|
-
this.step4_bankStateLabel = "Bank Province / State";
|
|
4854
|
-
/**
|
|
4855
|
-
* @uiName Bank postal code field label
|
|
4856
|
-
* @uiGroup Step 4 Properties
|
|
4857
|
-
*/
|
|
4858
|
-
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
4859
|
-
/**
|
|
4860
|
-
* Default payment method to the participants’ bank account.
|
|
4861
|
-
* @uiName EFT withdrawal payment method
|
|
4862
|
-
* @uiGroup Step 4 Properties
|
|
4863
|
-
*/
|
|
4864
|
-
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
4865
|
-
/**
|
|
4866
|
-
* @uiName FX Wire Processing fee text
|
|
4867
|
-
* @uiGroup Step 4 Properties
|
|
4868
|
-
*/
|
|
4869
|
-
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4870
|
-
/**
|
|
4871
|
-
* @uiName Text for verify email dialog
|
|
4872
|
-
* @uiGroup Step 4 Properties
|
|
4873
|
-
*/
|
|
4874
|
-
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4875
|
-
/**
|
|
4876
|
-
* @uiName Verify code widget header text
|
|
4877
|
-
* @uiGroup Step 4 Properties
|
|
4878
|
-
*/
|
|
4879
|
-
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4880
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4881
|
-
DASHBOARD PROPS:
|
|
4882
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4883
|
-
/**
|
|
4884
|
-
* @uiName Active tax form badge label
|
|
4885
|
-
* @uiGroup Dashboard Properties
|
|
4886
|
-
*/
|
|
4887
|
-
this.dashboard_statusTextActive = "Active";
|
|
4888
|
-
/**
|
|
4889
|
-
* @uiName Invalid tax form badge label
|
|
4890
|
-
* @uiGroup Dashboard Properties
|
|
4891
|
-
*/
|
|
4892
|
-
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
4893
|
-
/**
|
|
4894
|
-
* Displayed when the participant submitted their form but it is awaiting review.
|
|
4895
|
-
*
|
|
4896
|
-
* @uiName Not verified tax form badge label
|
|
4897
|
-
* @uiGroup Dashboard Properties
|
|
4898
|
-
*/
|
|
4899
|
-
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
4900
|
-
/**
|
|
4901
|
-
* Additional text displayed next to the tax form's status badge
|
|
4902
|
-
*
|
|
4903
|
-
* @uiName Active W-9 description
|
|
4904
|
-
* @uiGroup Dashboard Properties
|
|
4905
|
-
*/
|
|
4906
|
-
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
4907
|
-
/**
|
|
4908
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4909
|
-
*
|
|
4910
|
-
* @uiName Active W-8 description
|
|
4911
|
-
* @uiGroup Dashboard Properties
|
|
4912
|
-
*/
|
|
4913
|
-
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
4914
|
-
/**
|
|
4915
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4916
|
-
*
|
|
4917
|
-
* @uiName Tax form in review description
|
|
4918
|
-
* @uiGroup Dashboard Properties
|
|
4919
|
-
*/
|
|
4920
|
-
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
4921
|
-
/**
|
|
4922
|
-
* Part of the alert displayed at the top of the page.
|
|
4923
|
-
*
|
|
4924
|
-
* @uiName Inactive W-9 error message title
|
|
4925
|
-
* @uiGroup Dashboard Properties
|
|
4926
|
-
* @uiWidget textArea
|
|
4927
|
-
*/
|
|
4928
|
-
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
4929
|
-
/**
|
|
4930
|
-
* Part of the alert displayed at the top of the page.
|
|
4931
|
-
*
|
|
4932
|
-
* @uiName Inactive W-8 error message title
|
|
4933
|
-
* @uiGroup Dashboard Properties
|
|
4934
|
-
* @uiWidget textArea
|
|
4935
|
-
*/
|
|
4936
|
-
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
4937
|
-
/**
|
|
4938
|
-
* Part of the alert displayed at the top of the page.
|
|
4939
|
-
*
|
|
4940
|
-
* @uiName Inactive W-9 error message description
|
|
4941
|
-
* @uiGroup Dashboard Properties
|
|
4942
|
-
* @uiWidget textArea
|
|
4943
|
-
*/
|
|
4944
|
-
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
4945
|
-
/**
|
|
4946
|
-
* Part of the alert displayed at the top of the page.
|
|
4947
|
-
*
|
|
4948
|
-
* @uiName Inactive W-8 error message description
|
|
4949
|
-
* @uiGroup Dashboard Properties
|
|
4950
|
-
*/
|
|
4951
|
-
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.";
|
|
4952
|
-
/**
|
|
4953
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4954
|
-
*
|
|
4955
|
-
* @uiName Invalid tax form description
|
|
4956
|
-
* @uiGroup Dashboard Properties
|
|
4957
|
-
* @uiWidget textArea
|
|
4958
|
-
*/
|
|
4959
|
-
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
4960
|
-
/**
|
|
4961
|
-
* @uiName Payout information section header
|
|
4962
|
-
* @uiGroup Dashboard Properties
|
|
4963
|
-
*/
|
|
4964
|
-
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
4965
|
-
/**
|
|
4966
|
-
* @uiName Tax document section header
|
|
4967
|
-
* @uiGroup Dashboard Properties
|
|
4968
|
-
*/
|
|
4969
|
-
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
4970
|
-
/**
|
|
4971
|
-
* Displayed under the tax document section header.
|
|
4972
|
-
*
|
|
4973
|
-
* @uiName Tax documents section description
|
|
4974
|
-
* @uiGroup Dashboard Properties
|
|
4975
|
-
*/
|
|
4976
|
-
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4977
|
-
/**
|
|
4978
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4979
|
-
*
|
|
4980
|
-
* @uiName Tax form not required text
|
|
4981
|
-
* @uiGroup Dashboard Properties
|
|
4982
|
-
* @uiWidget textArea
|
|
4983
|
-
*/
|
|
4984
|
-
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.";
|
|
4985
|
-
/**
|
|
4986
|
-
*
|
|
4987
|
-
* @uiName Indirect tax section header
|
|
4988
|
-
* @uiGroup Dashboard Properties
|
|
4989
|
-
*/
|
|
4990
|
-
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
4991
|
-
/**
|
|
4992
|
-
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
4993
|
-
*
|
|
4994
|
-
* @uiName Canadian province of indirect tax
|
|
4995
|
-
* @uiGroup Dashboard Properties
|
|
4996
|
-
*/
|
|
4997
|
-
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
4998
|
-
/**
|
|
4999
|
-
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5000
|
-
*
|
|
5001
|
-
* @uiName Indirect tax country
|
|
5002
|
-
* @uiGroup Dashboard Properties
|
|
5003
|
-
*/
|
|
5004
|
-
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5005
|
-
/**
|
|
5006
|
-
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5007
|
-
*
|
|
5008
|
-
* @uiName Spanish region of indirect tax
|
|
5009
|
-
* @uiGroup Dashboard Properties
|
|
5010
|
-
*/
|
|
5011
|
-
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5012
|
-
/**
|
|
5013
|
-
* @uiName Indirect tax tooltip
|
|
5014
|
-
* @uiGroup Dashboard Properties
|
|
5015
|
-
* @uiWidget textArea
|
|
5016
|
-
*/
|
|
5017
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5018
|
-
/**
|
|
5019
|
-
* Displayed to participants who have submitted their indirect tax information.
|
|
5020
|
-
*
|
|
5021
|
-
* @uiName Indirect tax details
|
|
5022
|
-
* @uiGroup Dashboard Properties
|
|
5023
|
-
*/
|
|
5024
|
-
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5025
|
-
/**
|
|
5026
|
-
* @uiName Submit new tax form button label
|
|
5027
|
-
* @uiGroup Dashboard Properties
|
|
5028
|
-
*/
|
|
5029
|
-
this.dashboard_newFormButton = "Submit new form";
|
|
5030
|
-
/**
|
|
5031
|
-
* @uiName Edit payment info button label
|
|
5032
|
-
* @uiGroup Dashboard Properties
|
|
5033
|
-
*/
|
|
5034
|
-
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5035
|
-
/**
|
|
5036
|
-
* @uiName Not registered for indirect tax text
|
|
5037
|
-
* @uiGroup Dashboard Properties
|
|
5038
|
-
* @uiWidget textArea
|
|
5039
|
-
*/
|
|
5040
|
-
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.";
|
|
5041
|
-
/**
|
|
5042
|
-
* Displayed to participants registered in Quebec, Canada.
|
|
5043
|
-
* @uiName QST indirect tax details
|
|
5044
|
-
* @uiGroup Dashboard Properties
|
|
5045
|
-
*/
|
|
5046
|
-
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5047
|
-
/**
|
|
5048
|
-
* @uiName Spain sub-region indirect tax number
|
|
5049
|
-
* @uiGroup Dashboard Properties
|
|
5050
|
-
*/
|
|
5051
|
-
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5052
|
-
/**
|
|
5053
|
-
* @uiName Payout status badge
|
|
5054
|
-
* @uiGroup Dashboard Properties
|
|
5055
|
-
*/
|
|
5056
|
-
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5057
|
-
/**
|
|
5058
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5059
|
-
* @uiName Payout schedule by threshold text
|
|
5060
|
-
* @uiGroup Dashboard Properties
|
|
5061
|
-
*/
|
|
5062
|
-
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5063
|
-
/**
|
|
5064
|
-
* Shown before the participant’s bank account information.
|
|
5065
|
-
* @uiName Bank account field label
|
|
5066
|
-
* @uiGroup Dashboard Properties
|
|
5067
|
-
*/
|
|
5068
|
-
this.dashboard_accountText = "Account";
|
|
5069
|
-
/**
|
|
5070
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5071
|
-
* @uiName Invoice number column title
|
|
5072
|
-
* @uiGroup Dashboard Properties
|
|
5073
|
-
*/
|
|
5074
|
-
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5075
|
-
/**
|
|
5076
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5077
|
-
* @uiName Date column title
|
|
5078
|
-
* @uiGroup Dashboard Properties
|
|
5079
|
-
*/
|
|
5080
|
-
this.dashboard_dateColumnTitle = "Date";
|
|
5081
|
-
/**
|
|
5082
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5083
|
-
* @uiName Earnings column title
|
|
5084
|
-
* @uiGroup Dashboard Properties
|
|
5085
|
-
*/
|
|
5086
|
-
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5087
|
-
/**
|
|
5088
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5089
|
-
* @uiName Indirect tax column title
|
|
5090
|
-
* @uiGroup Dashboard Properties
|
|
5091
|
-
*/
|
|
5092
|
-
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5093
|
-
/**
|
|
5094
|
-
* Displayed under the payout details card.
|
|
5095
|
-
* @uiName Payout from impact text
|
|
5096
|
-
* @uiGroup Dashboard Properties
|
|
5097
|
-
* @uiWidget textArea
|
|
5098
|
-
*/
|
|
5099
|
-
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5100
|
-
/**
|
|
5101
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5102
|
-
* @uiName Earnings after tax column title
|
|
5103
|
-
* @uiGroup Dashboard Properties
|
|
5104
|
-
*/
|
|
5105
|
-
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5106
|
-
/**
|
|
5107
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5108
|
-
* @uiName Payout error message title
|
|
5109
|
-
* @uiGroup Dashboard Properties
|
|
5110
|
-
* @uiWidget textArea
|
|
5111
|
-
*/
|
|
5112
|
-
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5113
|
-
/**
|
|
5114
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5115
|
-
* @uiName Payout error message description
|
|
5116
|
-
* @uiGroup Dashboard Properties
|
|
5117
|
-
* @uiWidget textArea
|
|
5118
|
-
*/
|
|
5119
|
-
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5120
|
-
/**
|
|
5121
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
5122
|
-
* @uiName Payout missing information subtext
|
|
5123
|
-
* @uiGroup Dashboard Properties
|
|
5124
|
-
*/
|
|
5125
|
-
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5126
|
-
/**
|
|
5127
|
-
* @uiName Invoice table description
|
|
5128
|
-
* @uiGroup Dashboard Properties
|
|
5129
|
-
*/
|
|
5130
|
-
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5131
|
-
/**
|
|
5132
|
-
* @uiName Invoice table previous page button label
|
|
5133
|
-
* @uiGroup Dashboard Properties
|
|
5134
|
-
*/
|
|
5135
|
-
this.dashboard_invoicePrevLabel = "Prev";
|
|
5136
|
-
/**
|
|
5137
|
-
* @uiName Invoice table next page button label
|
|
5138
|
-
* @uiGroup Dashboard Properties
|
|
5139
|
-
*/
|
|
5140
|
-
this.dashboard_invoiceMoreLabel = "Next";
|
|
5141
|
-
/**
|
|
5142
|
-
* @uiName Invoice table title
|
|
5143
|
-
* @uiGroup Dashboard Properties
|
|
5144
|
-
*/
|
|
5145
|
-
this.dashboard_invoiceHeader = "Invoices";
|
|
5146
|
-
/**
|
|
5147
|
-
* @uiName Empty invoice table header
|
|
5148
|
-
* @uiGroup Dashboard Properties
|
|
5149
|
-
*/
|
|
5150
|
-
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5151
|
-
/**
|
|
5152
|
-
* @uiName Empty invoice table description
|
|
5153
|
-
* @uiGroup Dashboard Properties
|
|
5154
|
-
*/
|
|
5155
|
-
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5156
|
-
/**
|
|
5157
|
-
* @uiName Replace tax form modal header
|
|
5158
|
-
* @uiGroup Dashboard Properties
|
|
5159
|
-
*/
|
|
5160
|
-
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5161
|
-
/**
|
|
5162
|
-
* @uiName Replace tax form modal body text
|
|
5163
|
-
* @uiGroup Dashboard Properties
|
|
5164
|
-
* @uiWidget textArea
|
|
5165
|
-
*/
|
|
5166
|
-
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.";
|
|
5167
|
-
/**
|
|
5168
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5169
|
-
* @uiName Verification required alert message title
|
|
5170
|
-
* @uiGroup Dashboard Properties
|
|
5171
|
-
* @uiWidget textArea
|
|
5172
|
-
*/
|
|
5173
|
-
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5174
|
-
/**
|
|
5175
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5176
|
-
* @uiName Verification required alert message description
|
|
5177
|
-
* @uiGroup Dashboard Properties
|
|
5178
|
-
* @uiWidget textArea
|
|
5179
|
-
*/
|
|
5180
|
-
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}.";
|
|
5181
|
-
/**
|
|
5182
|
-
* @uiName Verification required internal alert header
|
|
5183
|
-
* @uiGroup Dashboard Properties
|
|
5184
|
-
* @uiWidget textArea
|
|
5185
|
-
*/
|
|
5186
|
-
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5187
|
-
/**
|
|
5188
|
-
* @uiName Verification required internal alert description
|
|
5189
|
-
* @uiGroup Dashboard Properties
|
|
5190
|
-
* @uiWidget textArea
|
|
5191
|
-
*/
|
|
5192
|
-
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}.";
|
|
5193
|
-
/**
|
|
5194
|
-
* @uiName Verification review internal alert header
|
|
5195
|
-
* @uiGroup Dashboard Properties
|
|
5196
|
-
* @uiWidget textArea
|
|
5197
|
-
*/
|
|
5198
|
-
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5199
|
-
/**
|
|
5200
|
-
* @uiName Verification review internal alert description
|
|
5201
|
-
* @uiGroup Dashboard Properties
|
|
5202
|
-
* @uiWidget textArea
|
|
5203
|
-
*/
|
|
5204
|
-
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}.";
|
|
5205
|
-
/**
|
|
5206
|
-
* @uiName Verification failed internal alert header
|
|
5207
|
-
* @uiGroup Dashboard Properties
|
|
5208
|
-
* @uiWidget textArea
|
|
5209
|
-
*/
|
|
5210
|
-
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5211
|
-
/**
|
|
5212
|
-
* @uiName Verification failed internal alert description
|
|
5213
|
-
* @uiGroup Dashboard Properties
|
|
5214
|
-
* @uiWidget textArea
|
|
5215
|
-
*/
|
|
5216
|
-
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}.";
|
|
5217
|
-
/**
|
|
5218
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5219
|
-
* @uiName Verification required alert button text
|
|
5220
|
-
* @uiGroup Dashboard Properties
|
|
5221
|
-
* @uiWidget textArea
|
|
5222
|
-
*/
|
|
5223
|
-
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5224
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5225
|
-
GENERAL PROPS:
|
|
5226
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5227
|
-
/**
|
|
5228
|
-
* @uiName Setup progress
|
|
5229
|
-
* @uiGroup General Form Properties
|
|
5230
|
-
*/
|
|
5231
|
-
this.formStep = "Step {step} of {count}";
|
|
5232
|
-
/**
|
|
5233
|
-
* Part of the alert displayed at the top of the page.
|
|
5234
|
-
* @uiName Form submission error message title
|
|
5235
|
-
* @uiGroup General Form Properties
|
|
5236
|
-
* @uiWidget textArea
|
|
5237
|
-
*/
|
|
5238
|
-
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5239
|
-
/**
|
|
5240
|
-
* Part of the alert displayed at the top of the page.
|
|
5241
|
-
* @uiName Form submission error message description
|
|
5242
|
-
* @uiGroup General Form Properties
|
|
5243
|
-
* @uiWidget textArea
|
|
5244
|
-
*/
|
|
5245
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5246
|
-
/**
|
|
5247
|
-
* Displayed under a field that is missing required information.
|
|
5248
|
-
* @uiName Empty form field error message
|
|
5249
|
-
* @uiGroup General Form Properties
|
|
5250
|
-
*/
|
|
5251
|
-
this.fieldRequiredError = "{fieldName} is required";
|
|
5252
|
-
/**
|
|
5253
|
-
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5254
|
-
* @uiName Invalid character error message
|
|
5255
|
-
* @uiGroup General Form Properties
|
|
5256
|
-
*/
|
|
5257
|
-
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5258
|
-
/**
|
|
5259
|
-
* Displayed under a field when it has an invalid entry.
|
|
5260
|
-
* @uiName Form field error message
|
|
5261
|
-
* @uiGroup General Form Properties
|
|
5262
|
-
*/
|
|
5263
|
-
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5264
|
-
/**
|
|
5265
|
-
* @uiName Continue button label
|
|
5266
|
-
* @uiGroup General Form Properties
|
|
5267
|
-
*/
|
|
5268
|
-
this.continueButton = "Continue";
|
|
5269
|
-
/**
|
|
5270
|
-
* @uiName Back button label
|
|
5271
|
-
* @uiGroup General Form Properties
|
|
5272
|
-
*/
|
|
5273
|
-
this.backButton = "Back";
|
|
5274
|
-
/**
|
|
5275
|
-
* @uiName Cancel button label
|
|
5276
|
-
* @uiGroup General Form Properties
|
|
5277
|
-
*/
|
|
5278
|
-
this.cancelButton = "Cancel";
|
|
5279
|
-
/**
|
|
5280
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5281
|
-
* @uiName Participant is a partner alert title
|
|
5282
|
-
* @uiGroup General Form Properties
|
|
5283
|
-
* @uiWidget textArea
|
|
5284
|
-
*/
|
|
5285
|
-
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5286
|
-
/**
|
|
5287
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5288
|
-
* @uiName Participant is a partner alert description
|
|
5289
|
-
* @uiGroup General Form Properties
|
|
5290
|
-
* @uiWidget textArea
|
|
5291
|
-
*/
|
|
5292
|
-
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.";
|
|
3505
|
+
};
|
|
3506
|
+
function PayoutDetailsCardView(props) {
|
|
3507
|
+
const sheet = createStyleSheet(style$4);
|
|
3508
|
+
const styleString = sheet.toString();
|
|
3509
|
+
const { classes } = sheet;
|
|
3510
|
+
const { states, text } = props;
|
|
3511
|
+
const renderLoadingSkeleton = () => {
|
|
3512
|
+
return (h("div", { class: classes.CardContainer },
|
|
3513
|
+
h("div", { class: classes.StatusContainer },
|
|
3514
|
+
h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
3515
|
+
h("sl-skeleton", { class: classes.SkeletonTwo })),
|
|
3516
|
+
h("sl-skeleton", { class: classes.SkeletonThree }),
|
|
3517
|
+
h("sl-skeleton", { class: classes.SkeletonOne })));
|
|
3518
|
+
};
|
|
3519
|
+
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3520
|
+
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
3521
|
+
const statusText = intl.formatMessage({
|
|
3522
|
+
id: "badgeText",
|
|
3523
|
+
defaultMessage: statusBadgeText,
|
|
3524
|
+
}, {
|
|
3525
|
+
badgeText: status,
|
|
3526
|
+
});
|
|
3527
|
+
return (h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3528
|
+
};
|
|
3529
|
+
const thresholdText = intl.formatMessage({
|
|
3530
|
+
id: "thresholdText",
|
|
3531
|
+
defaultMessage: text.thresholdPayoutText,
|
|
3532
|
+
}, {
|
|
3533
|
+
thresholdBalance: states.thresholdBalance,
|
|
3534
|
+
});
|
|
3535
|
+
return (h("div", { class: classes.Container },
|
|
3536
|
+
h("style", { type: "text/css" }, styleString),
|
|
3537
|
+
states.loading ? (renderLoadingSkeleton()) : (h("div", { class: classes.CardContainer },
|
|
3538
|
+
h("div", { class: classes.StatusContainer },
|
|
3539
|
+
h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
3540
|
+
? states.thresholdBalance
|
|
3541
|
+
? thresholdText
|
|
3542
|
+
: ""
|
|
3543
|
+
: states.nextPayoutDate),
|
|
3544
|
+
states.badgeStatus === "thresholdPayout"
|
|
3545
|
+
? null
|
|
3546
|
+
: renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
|
|
3547
|
+
h("h1", { class: classes.MainCurrency }, states.balance),
|
|
3548
|
+
states.payoutType === "PAYPAL" ? (h("div", { class: classes.PaypalDetailsContainer },
|
|
3549
|
+
h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
|
3550
|
+
h(PayPalIcon, null))) : (h("div", { class: classes.AccountDetailsContainer },
|
|
3551
|
+
h("span", null, states.cardNumberPreview
|
|
3552
|
+
? `${text.accountText} ${states.cardNumberPreview}`
|
|
3553
|
+
: text.payoutMissingInformationText)))))));
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
function usePayoutDetailsCard(props) {
|
|
3557
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3558
|
+
const { data, loading } = $n(USER_QUERY_NAMESPACE);
|
|
3559
|
+
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;
|
|
3560
|
+
function getPayoutDetailedStatusText(paymentDay) {
|
|
3561
|
+
var _a;
|
|
3562
|
+
const currentDay = luxon.DateTime.now().day;
|
|
3563
|
+
if (paymentDay === "1") {
|
|
3564
|
+
return currentDay === 1
|
|
3565
|
+
? luxon.DateTime.now().toFormat("LLL dd, yyyy")
|
|
3566
|
+
: luxon.DateTime.now()
|
|
3567
|
+
.plus({ month: 1 })
|
|
3568
|
+
.startOf("month")
|
|
3569
|
+
.toFormat("LLL dd, yyyy");
|
|
3570
|
+
}
|
|
3571
|
+
else if (paymentDay === "15") {
|
|
3572
|
+
return currentDay <= 15
|
|
3573
|
+
? luxon.DateTime.now()
|
|
3574
|
+
.plus({ day: 15 - currentDay })
|
|
3575
|
+
.toFormat("LLL dd, yyyy")
|
|
3576
|
+
: luxon.DateTime.now()
|
|
3577
|
+
.plus({ month: 1 })
|
|
3578
|
+
.startOf("month")
|
|
3579
|
+
.plus({ day: 14 })
|
|
3580
|
+
.toFormat("LLL dd, yyyy");
|
|
3581
|
+
}
|
|
3582
|
+
else {
|
|
3583
|
+
intl.formatMessage({
|
|
3584
|
+
id: `nextPayoutBalance`,
|
|
3585
|
+
defaultMessage: props.thresholdPayoutText,
|
|
3586
|
+
}, {
|
|
3587
|
+
thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
|
|
3588
|
+
});
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
|
|
3592
|
+
const isPayoutToday = luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
|
|
3593
|
+
return {
|
|
3594
|
+
states: {
|
|
3595
|
+
loading,
|
|
3596
|
+
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}`
|
|
3597
|
+
: undefined,
|
|
3598
|
+
balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
|
|
3599
|
+
badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
|
|
3600
|
+
? "thresholdPayout"
|
|
3601
|
+
: isPayoutToday
|
|
3602
|
+
? "payoutToday"
|
|
3603
|
+
: "nextPayout",
|
|
3604
|
+
payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
|
|
3605
|
+
error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
|
|
3606
|
+
paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
|
|
3607
|
+
cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
|
|
3608
|
+
nextPayoutDate: paymentDay,
|
|
3609
|
+
},
|
|
3610
|
+
text: props.getTextProps(),
|
|
3611
|
+
};
|
|
3612
|
+
}
|
|
3613
|
+
|
|
3614
|
+
const PayoutDetailsCard = class {
|
|
3615
|
+
constructor(hostRef) {
|
|
3616
|
+
registerInstance(this, hostRef);
|
|
5293
3617
|
/**
|
|
5294
|
-
*
|
|
5295
|
-
* @uiName
|
|
5296
|
-
* @uiGroup General Form Properties
|
|
3618
|
+
* Badge text indicating payout status
|
|
3619
|
+
* @uiName Payout badge status text
|
|
5297
3620
|
*/
|
|
5298
|
-
this.
|
|
3621
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5299
3622
|
/**
|
|
5300
|
-
*
|
|
5301
|
-
* @uiName
|
|
5302
|
-
* @uiGroup General Form Properties
|
|
5303
|
-
* @uiWidget textArea
|
|
3623
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
3624
|
+
* @uiName Payout schedule by threshold text
|
|
5304
3625
|
*/
|
|
5305
|
-
this.
|
|
3626
|
+
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5306
3627
|
/**
|
|
5307
|
-
*
|
|
5308
|
-
* @uiName
|
|
5309
|
-
* @uiGroup General Form Properties
|
|
5310
|
-
* @uiWidget textArea
|
|
3628
|
+
* Shown before the participant’s bank account information.
|
|
3629
|
+
* @uiName Bank account field label
|
|
5311
3630
|
*/
|
|
5312
|
-
this.
|
|
3631
|
+
this.accountText = "Account";
|
|
5313
3632
|
/**
|
|
5314
|
-
*
|
|
5315
|
-
* @uiName
|
|
5316
|
-
* @uiGroup General Form Properties
|
|
3633
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
3634
|
+
* @uiName Payout missing information subtext
|
|
5317
3635
|
*/
|
|
5318
|
-
this.
|
|
3636
|
+
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5319
3637
|
/**
|
|
5320
|
-
*
|
|
5321
|
-
* @uiName Suport link text
|
|
5322
|
-
* @uiGroup General Form Properties
|
|
3638
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
5323
3639
|
*/
|
|
5324
|
-
this.
|
|
3640
|
+
this.stateController = "{}";
|
|
5325
3641
|
h$1(this);
|
|
5326
3642
|
}
|
|
5327
3643
|
disconnectedCallback() { }
|
|
5328
|
-
|
|
5329
|
-
getGeneralStepTextProps(prefix) {
|
|
3644
|
+
getTextProps() {
|
|
5330
3645
|
const props = getProps(this);
|
|
5331
3646
|
return {
|
|
5332
|
-
...
|
|
5333
|
-
generalErrorTitle: props.generalErrorTitle,
|
|
5334
|
-
generalErrorDescription: props.generalErrorDescription,
|
|
5335
|
-
fieldRequiredError: props.fieldRequiredError,
|
|
5336
|
-
invalidCharacterError: props.invalidCharacterError,
|
|
5337
|
-
fieldInvalidError: props.fieldInvalidError,
|
|
5338
|
-
continueButton: props.continueButton,
|
|
5339
|
-
backButton: props.backButton,
|
|
5340
|
-
cancelButton: props.cancelButton,
|
|
5341
|
-
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5342
|
-
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5343
|
-
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5344
|
-
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5345
|
-
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5346
|
-
searchForCountryText: props.searchForCountryText,
|
|
5347
|
-
formStep: props.formStep,
|
|
5348
|
-
supportLink: props.supportLink,
|
|
3647
|
+
...props,
|
|
5349
3648
|
};
|
|
5350
3649
|
}
|
|
5351
3650
|
render() {
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
const textProps = getProps(this);
|
|
5357
|
-
return (h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5358
|
-
if (prop === "demoData")
|
|
5359
|
-
return;
|
|
5360
|
-
return (h("div", null, h("b", null, prop, ":"), " ", this[prop], h("hr", null)));
|
|
5361
|
-
})));
|
|
5362
|
-
}
|
|
5363
|
-
switch (props.step) {
|
|
5364
|
-
case "/1":
|
|
5365
|
-
return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5366
|
-
case "/2":
|
|
5367
|
-
return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5368
|
-
case "/3":
|
|
5369
|
-
return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5370
|
-
case "/4":
|
|
5371
|
-
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5372
|
-
case "/dashboard":
|
|
5373
|
-
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5374
|
-
case "/error":
|
|
5375
|
-
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5376
|
-
}
|
|
5377
|
-
return h(LoadingView, null);
|
|
3651
|
+
const props = isDemo()
|
|
3652
|
+
? useDemoPayoutDetailsCard(this)
|
|
3653
|
+
: usePayoutDetailsCard(this);
|
|
3654
|
+
return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
5378
3655
|
}
|
|
5379
3656
|
};
|
|
5380
|
-
function
|
|
5381
|
-
const [step, setStep] = In({
|
|
5382
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5383
|
-
initialValue: "/1",
|
|
5384
|
-
});
|
|
3657
|
+
function useDemoPayoutDetailsCard(props) {
|
|
5385
3658
|
return cjs({
|
|
5386
|
-
|
|
5387
|
-
|
|
3659
|
+
states: {
|
|
3660
|
+
loading: false,
|
|
3661
|
+
error: false,
|
|
3662
|
+
thresholdBalance: "$50",
|
|
3663
|
+
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
3664
|
+
badgeStatus: "nextPayout",
|
|
3665
|
+
payoutType: "BANK_TRANSFER",
|
|
3666
|
+
nextPayoutDate: "March 14, 2024",
|
|
3667
|
+
paypalEmailAddress: "joesmith@example.com",
|
|
3668
|
+
otherCurrencies: false,
|
|
3669
|
+
hasW9Pending: false,
|
|
3670
|
+
hasDatePending: true,
|
|
3671
|
+
cardNumberPreview: "XX2381",
|
|
3672
|
+
balance: "20.00 USD",
|
|
3673
|
+
},
|
|
3674
|
+
text: props.getTextProps(),
|
|
5388
3675
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5389
3676
|
}
|
|
5390
3677
|
|
|
5391
|
-
const style$
|
|
3678
|
+
const style$5 = {
|
|
5392
3679
|
ErrorAlertContainer: {
|
|
5393
3680
|
"&::part(base)": {
|
|
5394
|
-
backgroundColor: "var(--
|
|
5395
|
-
|
|
3681
|
+
backgroundColor: "var(--sqm-danger-color-background)",
|
|
3682
|
+
border: "none",
|
|
5396
3683
|
},
|
|
5397
3684
|
"& sl-icon::part(base)": {
|
|
5398
|
-
color: "var(--
|
|
3685
|
+
color: "var(--sqm-danger-color-text)",
|
|
5399
3686
|
},
|
|
5400
3687
|
},
|
|
5401
3688
|
WarningAlertContainer: {
|
|
5402
3689
|
"&::part(base)": {
|
|
5403
|
-
backgroundColor: "var(--
|
|
5404
|
-
|
|
3690
|
+
backgroundColor: "var(--sqm-warning-color-background)",
|
|
3691
|
+
border: "none",
|
|
5405
3692
|
maxWidth: "600px",
|
|
5406
3693
|
},
|
|
5407
3694
|
"& sl-icon::part(base)": {
|
|
5408
|
-
color: "var(--
|
|
3695
|
+
color: "var(--sqm-warning-color-text)",
|
|
5409
3696
|
},
|
|
5410
3697
|
},
|
|
5411
3698
|
WarningHoldAlertContainer: {
|
|
@@ -5416,7 +3703,7 @@ const style$6 = {
|
|
|
5416
3703
|
backgroundColor: "transparent",
|
|
5417
3704
|
},
|
|
5418
3705
|
"& sl-icon::part(base)": {
|
|
5419
|
-
color: "var(--
|
|
3706
|
+
color: "var(--sqm-warning-color-text)",
|
|
5420
3707
|
},
|
|
5421
3708
|
},
|
|
5422
3709
|
ErrorHoldAlertContainer: {
|
|
@@ -5427,13 +3714,13 @@ const style$6 = {
|
|
|
5427
3714
|
backgroundColor: "transparent",
|
|
5428
3715
|
},
|
|
5429
3716
|
"& sl-icon::part(base)": {
|
|
5430
|
-
color: "var(--
|
|
3717
|
+
color: "var(--sqm-danger-color-icon)",
|
|
5431
3718
|
},
|
|
5432
3719
|
},
|
|
5433
3720
|
ExpiringSoonAlertContainer: {
|
|
5434
3721
|
"&::part(base)": {
|
|
5435
|
-
backgroundColor: "var(--
|
|
5436
|
-
|
|
3722
|
+
backgroundColor: "var(--sqm-warning-color-background)",
|
|
3723
|
+
border: "none",
|
|
5437
3724
|
},
|
|
5438
3725
|
},
|
|
5439
3726
|
BankingInformationContainer: {
|
|
@@ -5441,7 +3728,7 @@ const style$6 = {
|
|
|
5441
3728
|
},
|
|
5442
3729
|
IndirectTaxPreviewContainer: {
|
|
5443
3730
|
marginTop: "var(--sl-spacing-x-large)",
|
|
5444
|
-
borderTop: "1px solid var(--
|
|
3731
|
+
borderTop: "1px solid var(--sqm-border-color)",
|
|
5445
3732
|
},
|
|
5446
3733
|
IndirectTaxPreviewHeaderContainer: {
|
|
5447
3734
|
marginTop: "var(--sl-spacing-large)",
|
|
@@ -5450,7 +3737,7 @@ const style$6 = {
|
|
|
5450
3737
|
display: "flex",
|
|
5451
3738
|
gap: "var(--sl-spacing-x-small)",
|
|
5452
3739
|
"&::part(base)": {
|
|
5453
|
-
color: "var(--
|
|
3740
|
+
color: "var(--sqm-success-color-text)",
|
|
5454
3741
|
},
|
|
5455
3742
|
},
|
|
5456
3743
|
IndirectTaxPreviewDetails: {
|
|
@@ -5464,11 +3751,11 @@ const style$6 = {
|
|
|
5464
3751
|
marginTop: "var(--sl-spacing-medium)",
|
|
5465
3752
|
},
|
|
5466
3753
|
NotRegisteredIndirectTaxText: {
|
|
5467
|
-
color: "var(--
|
|
3754
|
+
color: "var(--sqm-text-subdued)",
|
|
5468
3755
|
},
|
|
5469
3756
|
TaxDocumentsContainer: {
|
|
5470
3757
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
5471
|
-
borderTop: "1px solid var(--
|
|
3758
|
+
borderTop: "1px solid var(--sqm-border-color)",
|
|
5472
3759
|
},
|
|
5473
3760
|
TaxDocumentsSectionHeaderContainer: {
|
|
5474
3761
|
marginTop: "var(--sl-spacing-x-large)",
|
|
@@ -5485,7 +3772,7 @@ const style$6 = {
|
|
|
5485
3772
|
"& p": {
|
|
5486
3773
|
margin: "0",
|
|
5487
3774
|
paddingTop: "2px",
|
|
5488
|
-
color: "var(--
|
|
3775
|
+
color: "var(--sqm-text-subdued)",
|
|
5489
3776
|
},
|
|
5490
3777
|
},
|
|
5491
3778
|
StatusAlert: {
|
|
@@ -5520,7 +3807,7 @@ const style$6 = {
|
|
|
5520
3807
|
},
|
|
5521
3808
|
TaxDocSubtext: {
|
|
5522
3809
|
margin: "0",
|
|
5523
|
-
color: "var(--
|
|
3810
|
+
color: "var(--sqm-text-subdued)",
|
|
5524
3811
|
lineHeight: "var(--sl-spacing-medium)",
|
|
5525
3812
|
fontSize: "var(--sl-font-size-small)",
|
|
5526
3813
|
marginLeft: "1px",
|
|
@@ -5541,13 +3828,13 @@ const style$6 = {
|
|
|
5541
3828
|
gap: "6px",
|
|
5542
3829
|
},
|
|
5543
3830
|
DescriptionText: {
|
|
5544
|
-
color: "var(--
|
|
3831
|
+
color: "var(--sqm-text-subdued)",
|
|
5545
3832
|
fontSize: "var(--sl-font-size-x-small)",
|
|
5546
3833
|
marginBottom: "none",
|
|
5547
3834
|
maxWidth: "492px",
|
|
5548
3835
|
},
|
|
5549
3836
|
PageDescriptionText: {
|
|
5550
|
-
color: "var(--
|
|
3837
|
+
color: "var(--sqm-text-subdued)",
|
|
5551
3838
|
fontSize: "var(--sl-font-size-medium)",
|
|
5552
3839
|
marginTop: "0",
|
|
5553
3840
|
},
|
|
@@ -5579,8 +3866,8 @@ const style$6 = {
|
|
|
5579
3866
|
},
|
|
5580
3867
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5581
3868
|
};
|
|
5582
|
-
const sheet$
|
|
5583
|
-
const styleString$
|
|
3869
|
+
const sheet$4 = createStyleSheet(style$5);
|
|
3870
|
+
const styleString$4 = sheet$4.toString();
|
|
5584
3871
|
const TaxAndCashDashboardView = (props) => {
|
|
5585
3872
|
var _a, _b, _c, _d;
|
|
5586
3873
|
const { states, text, callbacks, slots } = props;
|
|
@@ -5598,7 +3885,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5598
3885
|
buttonText: text.verificationRequiredButtonText,
|
|
5599
3886
|
alertType: "warning",
|
|
5600
3887
|
icon: "exclamation-triangle",
|
|
5601
|
-
class: sheet$
|
|
3888
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5602
3889
|
};
|
|
5603
3890
|
case "VERIFICATION:INTERNAL":
|
|
5604
3891
|
return {
|
|
@@ -5611,7 +3898,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5611
3898
|
}),
|
|
5612
3899
|
alertType: "warning",
|
|
5613
3900
|
icon: "exclamation-triangle",
|
|
5614
|
-
class: sheet$
|
|
3901
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5615
3902
|
};
|
|
5616
3903
|
case "VERIFICATION:REVIEW":
|
|
5617
3904
|
return {
|
|
@@ -5624,7 +3911,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5624
3911
|
}),
|
|
5625
3912
|
alertType: "warning",
|
|
5626
3913
|
icon: "exclamation-triangle",
|
|
5627
|
-
class: sheet$
|
|
3914
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5628
3915
|
};
|
|
5629
3916
|
case "VERIFICATION:FAILED":
|
|
5630
3917
|
return {
|
|
@@ -5637,7 +3924,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5637
3924
|
}),
|
|
5638
3925
|
alertType: "critical",
|
|
5639
3926
|
icon: "exclamation-octagon",
|
|
5640
|
-
class: sheet$
|
|
3927
|
+
class: sheet$4.classes.ErrorHoldAlertContainer,
|
|
5641
3928
|
};
|
|
5642
3929
|
case "HOLD":
|
|
5643
3930
|
return {
|
|
@@ -5651,14 +3938,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5651
3938
|
buttonText: null,
|
|
5652
3939
|
alertType: "warning",
|
|
5653
3940
|
icon: "exclamation-triangle",
|
|
5654
|
-
class: sheet$
|
|
3941
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5655
3942
|
};
|
|
5656
3943
|
default:
|
|
5657
3944
|
return;
|
|
5658
3945
|
}
|
|
5659
3946
|
}
|
|
5660
3947
|
const statusMap = {
|
|
5661
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
3948
|
+
NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5662
3949
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5663
3950
|
h("p", null, intl.formatMessage({
|
|
5664
3951
|
id: `badgeTextAwaitingReview`,
|
|
@@ -5666,7 +3953,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5666
3953
|
}, {
|
|
5667
3954
|
dateSubmitted: states.dateSubmitted,
|
|
5668
3955
|
})))),
|
|
5669
|
-
ACTIVE: (h("div", { class: sheet$
|
|
3956
|
+
ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5670
3957
|
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5671
3958
|
h("p", null, intl.formatMessage({
|
|
5672
3959
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5676,12 +3963,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5676
3963
|
}, {
|
|
5677
3964
|
dateSubmitted: states.dateSubmitted,
|
|
5678
3965
|
})))),
|
|
5679
|
-
INACTIVE: (h("div", { class: sheet$
|
|
3966
|
+
INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5680
3967
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5681
3968
|
h("p", null, text.invalidForm))),
|
|
5682
3969
|
};
|
|
5683
3970
|
const alertMap = {
|
|
5684
|
-
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
3971
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5685
3972
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5686
3973
|
h("strong", null, intl.formatMessage({
|
|
5687
3974
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5731,9 +4018,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5731
4018
|
};
|
|
5732
4019
|
return (h("div", null,
|
|
5733
4020
|
h("div", null,
|
|
5734
|
-
h("style", { type: "text/css" }, styleString$
|
|
4021
|
+
h("style", { type: "text/css" }, styleString$4),
|
|
5735
4022
|
states.loadingError && (h("div", null,
|
|
5736
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
4023
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5737
4024
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5738
4025
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5739
4026
|
h("br", null),
|
|
@@ -5743,7 +4030,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5743
4030
|
}, {
|
|
5744
4031
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5745
4032
|
})))),
|
|
5746
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
4033
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5747
4034
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5748
4035
|
h("strong", null, text.error.generalTitle),
|
|
5749
4036
|
h("br", null),
|
|
@@ -5758,49 +4045,49 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5758
4045
|
h("strong", null, getAlert(states.payoutStatus).header),
|
|
5759
4046
|
h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
5760
4047
|
getAlert(states.payoutStatus).buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
|
|
5761
|
-
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$
|
|
4048
|
+
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5762
4049
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5763
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5764
|
-
h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
4050
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
4051
|
+
h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5765
4052
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5766
4053
|
h("div", null,
|
|
5767
4054
|
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5768
|
-
h("p", { class: sheet$
|
|
5769
|
-
h("div", { class: sheet$
|
|
4055
|
+
h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
4056
|
+
h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5770
4057
|
slots.payoutDetailsCardSlot,
|
|
5771
|
-
!states.loading && (h("p", { class: sheet$
|
|
5772
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
5773
|
-
h("div", { class: sheet$
|
|
5774
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
5775
|
-
h("sl-skeleton", { class: sheet$
|
|
5776
|
-
h("sl-skeleton", { class: sheet$
|
|
5777
|
-
h("h3", { class: sheet$
|
|
5778
|
-
h("p", { class: sheet$
|
|
5779
|
-
h("span", { class: sheet$
|
|
5780
|
-
h("div", { class: sheet$
|
|
4058
|
+
!states.loading && (h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4059
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4060
|
+
h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4061
|
+
h("div", null, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4062
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4063
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
|
|
4064
|
+
h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
4065
|
+
h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
|
|
4066
|
+
h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4067
|
+
h("div", { class: sheet$4.classes.StatusContainer },
|
|
5781
4068
|
h("h3", null, intl.formatMessage({
|
|
5782
4069
|
id: "section-subheader",
|
|
5783
4070
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5784
4071
|
}, {
|
|
5785
4072
|
documentType: states.documentTypeString,
|
|
5786
4073
|
})),
|
|
5787
|
-
h("span", { class: sheet$
|
|
5788
|
-
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
5789
|
-
h("div", { class: sheet$
|
|
5790
|
-
h("sl-skeleton", { class: sheet$
|
|
5791
|
-
h("sl-skeleton", { class: sheet$
|
|
5792
|
-
h("h3", { class: sheet$
|
|
4074
|
+
h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
4075
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
4076
|
+
h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4077
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4078
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null,
|
|
4079
|
+
h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5793
4080
|
text.indirectTaxInfoSectionHeader,
|
|
5794
|
-
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5795
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
5796
|
-
h("div", { class: sheet$
|
|
5797
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet$
|
|
4081
|
+
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
4082
|
+
h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
4083
|
+
h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
4084
|
+
h("span", null, states.notRegistered ? (h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
5798
4085
|
id: "notRegisteredForTax",
|
|
5799
4086
|
defaultMessage: text.notRegisteredForTax,
|
|
5800
4087
|
}, {
|
|
5801
4088
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5802
4089
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
5803
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
4090
|
+
!states.notRegistered && (h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5804
4091
|
h("span", null, intl.formatMessage({
|
|
5805
4092
|
id: `indirectTaxDetails`,
|
|
5806
4093
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5823,7 +4110,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5823
4110
|
}, {
|
|
5824
4111
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5825
4112
|
})))),
|
|
5826
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
4113
|
+
!states.notRegistered && (h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5827
4114
|
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 },
|
|
5828
4115
|
h("sqm-invoice-table-download-column", null),
|
|
5829
4116
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -6254,6 +4541,16 @@ const TaxAndCashDashboard = class {
|
|
|
6254
4541
|
* @uiName Cancel button label
|
|
6255
4542
|
*/
|
|
6256
4543
|
this.cancelButton = "Cancel";
|
|
4544
|
+
/**
|
|
4545
|
+
* @parentState { "parent": "sqm-tax-and-cash", "title": "Dashboard" }
|
|
4546
|
+
* @componentState { "title": "Default", "props": { } }
|
|
4547
|
+
* @componentState { "title": "Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:REQUIRED" } } }
|
|
4548
|
+
* @componentState { "title": "Internal Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:INTERNAL" } } }
|
|
4549
|
+
* @componentState { "title": "Review in progress", "props": { "states": { "payoutStatus": "VERIFICATION:REVIEW" } } }
|
|
4550
|
+
* @componentState { "title": "Verification failed", "props": { "states": { "payoutStatus": "VERIFICATION:FAILED" } } }
|
|
4551
|
+
* @componentState { "title": "Payout hold", "props": { "states": { "payoutStatus": "HOLD" } } }
|
|
4552
|
+
*/
|
|
4553
|
+
this.stateController = "{}";
|
|
6257
4554
|
h$1(this);
|
|
6258
4555
|
}
|
|
6259
4556
|
disconnectedCallback() { }
|
|
@@ -6279,6 +4576,8 @@ const TaxAndCashDashboard = class {
|
|
|
6279
4576
|
}
|
|
6280
4577
|
};
|
|
6281
4578
|
function useDemoTaxAndCashDashboard(props) {
|
|
4579
|
+
const states = parseStates(props.stateController);
|
|
4580
|
+
console.log({ states });
|
|
6282
4581
|
return cjs({
|
|
6283
4582
|
states: {
|
|
6284
4583
|
dateSubmitted: "today",
|
|
@@ -6286,16 +4585,23 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6286
4585
|
documentTypeString: "W9",
|
|
6287
4586
|
status: "ACTIVE",
|
|
6288
4587
|
country: "United States",
|
|
6289
|
-
indirectTaxNumber: 55555555,
|
|
4588
|
+
indirectTaxNumber: "55555555",
|
|
6290
4589
|
indirectTaxType: "Indirect Tax",
|
|
6291
4590
|
noFormNeeded: true,
|
|
6292
4591
|
disabled: false,
|
|
6293
4592
|
loading: false,
|
|
6294
4593
|
showNewFormDialog: false,
|
|
6295
4594
|
hasHold: false,
|
|
6296
|
-
showVerifyIdentity: false,
|
|
6297
4595
|
payoutStatus: "DONE",
|
|
6298
4596
|
veriffLoading: false,
|
|
4597
|
+
canEditPayoutInfo: true,
|
|
4598
|
+
subRegion: "CA",
|
|
4599
|
+
subRegionTaxNumber: undefined,
|
|
4600
|
+
qstNumber: undefined,
|
|
4601
|
+
isBusinessEntity: false,
|
|
4602
|
+
province: undefined,
|
|
4603
|
+
notRegistered: false,
|
|
4604
|
+
loadingError: false,
|
|
6299
4605
|
},
|
|
6300
4606
|
callbacks: {
|
|
6301
4607
|
onClick: () => console.debug("check step"),
|
|
@@ -6305,7 +4611,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6305
4611
|
onVerifyClick: () => console.log("verify"),
|
|
6306
4612
|
},
|
|
6307
4613
|
text: props.getTextProps(),
|
|
6308
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4614
|
+
}, props.demoData || states || {}, { arrayMerge: (_, a) => a });
|
|
6309
4615
|
}
|
|
6310
4616
|
|
|
6311
4617
|
const PHONE_EXTENSIONS = {
|
|
@@ -7279,19 +5585,19 @@ const PHONE_EXTENSIONS = {
|
|
|
7279
5585
|
},
|
|
7280
5586
|
};
|
|
7281
5587
|
|
|
7282
|
-
const style$
|
|
5588
|
+
const style$6 = {
|
|
7283
5589
|
FormWrapper: {},
|
|
7284
5590
|
ErrorInput: {
|
|
7285
5591
|
"&::part(base)": {
|
|
7286
|
-
border: "1px solid var(--
|
|
5592
|
+
border: "1px solid var(--sqm-danger-color-icon)",
|
|
7287
5593
|
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
7288
5594
|
},
|
|
7289
5595
|
"&::part(help-text)": {
|
|
7290
|
-
color: "var(--
|
|
5596
|
+
color: "var(--sqm-danger-color-icon)",
|
|
7291
5597
|
},
|
|
7292
5598
|
},
|
|
7293
5599
|
ErrorText: {
|
|
7294
|
-
color: "var(--
|
|
5600
|
+
color: "var(--sqm-danger-color-icon)",
|
|
7295
5601
|
marginTop: "10px",
|
|
7296
5602
|
},
|
|
7297
5603
|
TextContainer: {
|
|
@@ -7322,9 +5628,6 @@ const style$7 = {
|
|
|
7322
5628
|
justifyContent: "flex-start",
|
|
7323
5629
|
flexDirection: "column",
|
|
7324
5630
|
},
|
|
7325
|
-
DescriptionText: {
|
|
7326
|
-
color: "var(--sl-color-neutral-500)",
|
|
7327
|
-
},
|
|
7328
5631
|
BoldText: {
|
|
7329
5632
|
fontWeight: "bold",
|
|
7330
5633
|
},
|
|
@@ -7335,26 +5638,31 @@ const style$7 = {
|
|
|
7335
5638
|
},
|
|
7336
5639
|
AlertContainer: {
|
|
7337
5640
|
"&::part(base)": {
|
|
7338
|
-
backgroundColor: "var(--
|
|
7339
|
-
|
|
5641
|
+
backgroundColor: "var(--sqm-danger-color-background)",
|
|
5642
|
+
border: "none",
|
|
7340
5643
|
padding: "0 16px",
|
|
5644
|
+
color: "var(--sqm-danger-color-text)",
|
|
5645
|
+
marginBottom: "16px",
|
|
7341
5646
|
},
|
|
7342
5647
|
"& sl-icon::part(base)": {
|
|
7343
|
-
color: "var(--
|
|
5648
|
+
color: "var(--sqm-danger-color-icon)",
|
|
7344
5649
|
},
|
|
7345
5650
|
},
|
|
7346
5651
|
PartnerAlertContainer: {
|
|
7347
5652
|
"&::part(base)": {
|
|
7348
|
-
backgroundColor: "var(--
|
|
5653
|
+
backgroundColor: "var(--sqm-informative-color-background)",
|
|
7349
5654
|
borderTop: "none",
|
|
7350
5655
|
padding: "0 16px",
|
|
5656
|
+
border: "none",
|
|
5657
|
+
color: "var(--sqm-informative-color-text)",
|
|
5658
|
+
marginBottom: "16px",
|
|
7351
5659
|
},
|
|
7352
5660
|
"& sl-icon::part(base)": {
|
|
7353
|
-
color: "var(--
|
|
5661
|
+
color: "var(--sqm-informative-color-icon)",
|
|
7354
5662
|
},
|
|
7355
5663
|
},
|
|
7356
5664
|
PageDescriptionText: {
|
|
7357
|
-
color: "var(--
|
|
5665
|
+
color: "var(--sqm-text-subdued)",
|
|
7358
5666
|
fontSize: "var(--sl-font-size-medium)",
|
|
7359
5667
|
},
|
|
7360
5668
|
PhoneInputsSection: {
|
|
@@ -7377,9 +5685,9 @@ const style$7 = {
|
|
|
7377
5685
|
},
|
|
7378
5686
|
},
|
|
7379
5687
|
};
|
|
7380
|
-
const sheet$
|
|
7381
|
-
const styleString$
|
|
7382
|
-
const vanillaStyle$
|
|
5688
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5689
|
+
const styleString$5 = sheet$5.toString();
|
|
5690
|
+
const vanillaStyle$3 = `
|
|
7383
5691
|
:host{
|
|
7384
5692
|
display: block;
|
|
7385
5693
|
}
|
|
@@ -7388,11 +5696,15 @@ const vanillaStyle$4 = `
|
|
|
7388
5696
|
padding: 0;
|
|
7389
5697
|
box-sizing: border-box;
|
|
7390
5698
|
}
|
|
5699
|
+
a {
|
|
5700
|
+
color: var(--sqm-text);
|
|
5701
|
+
color: inherit !important;
|
|
5702
|
+
text-decoration: underline;
|
|
5703
|
+
}
|
|
7391
5704
|
|
|
7392
5705
|
p {
|
|
7393
5706
|
line-height: 18px;
|
|
7394
|
-
|
|
7395
|
-
font-size: var(--sl-font-size-small);
|
|
5707
|
+
font-size: var(--sl-font-size-small);
|
|
7396
5708
|
}
|
|
7397
5709
|
|
|
7398
5710
|
sl-radio-group::part(base) {
|
|
@@ -7403,11 +5715,157 @@ const vanillaStyle$4 = `
|
|
|
7403
5715
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
7404
5716
|
min-width: 250px;
|
|
7405
5717
|
}
|
|
7406
|
-
|
|
5718
|
+
|
|
5719
|
+
/* Corrected: Target sl-button::part(base) for primary button */
|
|
5720
|
+
sl-button[type="primary"]::part(base){
|
|
5721
|
+
background-color: var(--sqm-primary-button-background);
|
|
5722
|
+
color: var(--sqm-primary-button-color);
|
|
5723
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
5724
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
5725
|
+
}
|
|
5726
|
+
|
|
5727
|
+
sl-button[type="primary"]::part(base):hover{
|
|
5728
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
5729
|
+
}
|
|
5730
|
+
|
|
5731
|
+
sl-button[type="primary"]::part(base):focus{
|
|
5732
|
+
box-shadow: none;
|
|
5733
|
+
}
|
|
5734
|
+
|
|
5735
|
+
/* Corrected: Target sl-button::part(base) for secondary button */
|
|
5736
|
+
sl-button[type="secondary"]::part(base){
|
|
5737
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5738
|
+
color: var(--sqm-secondary-button-color);
|
|
5739
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5740
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5741
|
+
}
|
|
5742
|
+
|
|
5743
|
+
sl-button[type="secondary"]::part(base):hover{
|
|
5744
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
5745
|
+
}
|
|
5746
|
+
|
|
5747
|
+
/* Corrected: Target sl-button::part(base) for tertiary button */
|
|
5748
|
+
sl-button[type="tertiary"]::part(base){
|
|
5749
|
+
color: var(--sqm-text, var(--sl-color-neutral-800));
|
|
5750
|
+
width: max-content;
|
|
5751
|
+
display: flex;
|
|
5752
|
+
margin: auto;
|
|
5753
|
+
}
|
|
5754
|
+
|
|
5755
|
+
*::part(primarybutton-base){
|
|
5756
|
+
background-color: var(--sqm-primary-button-background);
|
|
5757
|
+
color: var(--sqm-primary-button-color);
|
|
5758
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
5759
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
5760
|
+
}
|
|
5761
|
+
|
|
5762
|
+
*::part(primarybutton-base):hover{
|
|
5763
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
5764
|
+
}
|
|
5765
|
+
|
|
5766
|
+
*::part(primarybutton-base):focus{
|
|
5767
|
+
box-shadow: none;
|
|
5768
|
+
}
|
|
5769
|
+
|
|
5770
|
+
*::part(secondarybutton-base){
|
|
5771
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5772
|
+
color: var(--sqm-secondary-button-color);
|
|
5773
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5774
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5775
|
+
}
|
|
5776
|
+
|
|
5777
|
+
*::part(secondarybutton-base):hover{
|
|
5778
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5781
|
+
*::part(tertiarybutton-base){
|
|
5782
|
+
background-color: var(--sqm-tertiary-button-background);
|
|
5783
|
+
color: var(--sqm-tertiary-button-color);
|
|
5784
|
+
border-color: var(--sqm-tertiary-button-color-border);
|
|
5785
|
+
border-radius: var(--sqm-tertiary-button-radius);
|
|
5786
|
+
width: max-content;
|
|
5787
|
+
display: flex;
|
|
5788
|
+
margin: auto;
|
|
5789
|
+
}
|
|
5790
|
+
|
|
5791
|
+
*::part(tertiarybutton-base):hover{
|
|
5792
|
+
background: var(--sqm-tertiary-button-background-hover);
|
|
5793
|
+
}
|
|
5794
|
+
|
|
5795
|
+
sl-input::part(label),
|
|
5796
|
+
sl-select::part(label),
|
|
5797
|
+
sl-textarea::part(label){
|
|
5798
|
+
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
5799
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
5800
|
+
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
5801
|
+
}
|
|
5802
|
+
|
|
5803
|
+
/* Corrected: Target sl-input, sl-select, sl-textarea base elements */
|
|
5804
|
+
sl-input::part(base),
|
|
5805
|
+
sl-dropdown::part(base),
|
|
5806
|
+
sl-textarea::part(base){
|
|
5807
|
+
background-color: var(--sqm-input-background, #fff);
|
|
5808
|
+
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
5809
|
+
color: var(--sqm-input-color, white);
|
|
5810
|
+
border-width: var(--sqm-border-width, 1px);
|
|
5811
|
+
border-style: solid;
|
|
5812
|
+
border-color: var(--sqm-input-border-color, #ccc);
|
|
5813
|
+
}
|
|
5814
|
+
|
|
5815
|
+
|
|
5816
|
+
sl-select::part(menu) {
|
|
5817
|
+
background: var(--sqm-input-background, inherit);
|
|
5818
|
+
color: var(--sqm-input-color, inherit);
|
|
5819
|
+
border:none;
|
|
5820
|
+
}
|
|
5821
|
+
|
|
5822
|
+
sl-select::part(panel) {
|
|
5823
|
+
border-radius: var(--sqm-border-radius-normal);
|
|
5824
|
+
}
|
|
5825
|
+
|
|
5826
|
+
sl-select::part(help-text) {
|
|
5827
|
+
color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
|
|
5828
|
+
}
|
|
5829
|
+
|
|
5830
|
+
sl-input::part(base):focus,
|
|
5831
|
+
sl-select::part(base):focus, /* Corrected part name for sl-select */
|
|
5832
|
+
sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
|
|
5833
|
+
border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
|
|
5834
|
+
}
|
|
5835
|
+
|
|
5836
|
+
sl-input[disabled]::part(label),
|
|
5837
|
+
sl-select[disabled]::part(label),
|
|
5838
|
+
sl-textarea[disabled]::part(label){
|
|
5839
|
+
color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
|
|
5840
|
+
}
|
|
5841
|
+
|
|
5842
|
+
sl-input[disabled]::part(base),
|
|
5843
|
+
sl-select[disabled]::part(base),
|
|
5844
|
+
sl-textarea[disabled]::part(base){
|
|
5845
|
+
background: var(--sqm-input-disabled-background, #f5f5f5);
|
|
5846
|
+
border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
|
|
5847
|
+
}
|
|
5848
|
+
|
|
5849
|
+
|
|
5850
|
+
sl-input::part(input):-webkit-autofill {
|
|
5851
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5852
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5855
|
+
sl-input::part(input):-webkit-autofill:hover {
|
|
5856
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5857
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5858
|
+
}
|
|
5859
|
+
|
|
5860
|
+
sl-input::part(input):-webkit-autofill:focus {
|
|
5861
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5862
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5863
|
+
}
|
|
5864
|
+
`;
|
|
7407
5865
|
const UserInfoFormView = (props) => {
|
|
7408
5866
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
7409
5867
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7410
|
-
const { classes } = sheet$
|
|
5868
|
+
const { classes } = sheet$5;
|
|
7411
5869
|
const bankingCollectionText = intl.formatMessage({
|
|
7412
5870
|
id: "bankingCollectionText",
|
|
7413
5871
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -7430,10 +5888,10 @@ const UserInfoFormView = (props) => {
|
|
|
7430
5888
|
}
|
|
7431
5889
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
7432
5890
|
h("style", { type: "text/css" },
|
|
7433
|
-
styleString$
|
|
7434
|
-
vanillaStyle$
|
|
5891
|
+
styleString$5,
|
|
5892
|
+
vanillaStyle$3),
|
|
7435
5893
|
states.loadingError && (h("div", null,
|
|
7436
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5894
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
7437
5895
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7438
5896
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
7439
5897
|
h("br", null),
|
|
@@ -7444,7 +5902,7 @@ const UserInfoFormView = (props) => {
|
|
|
7444
5902
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7445
5903
|
})),
|
|
7446
5904
|
h("br", null))),
|
|
7447
|
-
states.loading ? (h(
|
|
5905
|
+
states.loading ? (h(LoadingView, null)) : (h("div", null,
|
|
7448
5906
|
h("div", { class: classes.TextContainer },
|
|
7449
5907
|
h("div", null,
|
|
7450
5908
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -7453,7 +5911,7 @@ const UserInfoFormView = (props) => {
|
|
|
7453
5911
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
7454
5912
|
h("h3", null, text.personalInformation),
|
|
7455
5913
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
7456
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
5914
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
|
|
7457
5915
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7458
5916
|
h("strong", null, text.error.generalTitle),
|
|
7459
5917
|
h("br", null),
|
|
@@ -7463,7 +5921,7 @@ const UserInfoFormView = (props) => {
|
|
|
7463
5921
|
}, {
|
|
7464
5922
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7465
5923
|
}))),
|
|
7466
|
-
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
5924
|
+
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
7467
5925
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
7468
5926
|
h("strong", null, text.isPartnerAlertHeader),
|
|
7469
5927
|
h("br", null),
|
|
@@ -7475,7 +5933,7 @@ const UserInfoFormView = (props) => {
|
|
|
7475
5933
|
}))),
|
|
7476
5934
|
h("div", null,
|
|
7477
5935
|
h("div", { class: classes.InputContainer },
|
|
7478
|
-
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) ? {
|
|
5936
|
+
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) ? {
|
|
7479
5937
|
class: classes.ErrorInput,
|
|
7480
5938
|
helpText: formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
7481
5939
|
}
|
|
@@ -7937,6 +6395,13 @@ const TaxForm = class {
|
|
|
7937
6395
|
* @uiName Support link text
|
|
7938
6396
|
*/
|
|
7939
6397
|
this.supportLink = "support team";
|
|
6398
|
+
/**
|
|
6399
|
+
* @uiName States
|
|
6400
|
+
* @parentState { "parent": "sqm-tax-and-cash", "title": "Step 1" }
|
|
6401
|
+
* @componentState { "title": "Errors", "props": { "states": { "loadingError": true, "formState": { "errors": { "email": true, "firstName": true, "lastName": true, "countryCode": true, "currency": true } } } } }
|
|
6402
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
6403
|
+
*/
|
|
6404
|
+
this.stateController = "{}";
|
|
7940
6405
|
h$1(this);
|
|
7941
6406
|
}
|
|
7942
6407
|
disconnectedCallback() { }
|
|
@@ -7957,19 +6422,20 @@ const TaxForm = class {
|
|
|
7957
6422
|
}
|
|
7958
6423
|
render() {
|
|
7959
6424
|
const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
7960
|
-
return (h(
|
|
6425
|
+
return (h(UserInfoFormView, { data: props.data,
|
|
7961
6426
|
// @ts-ignore
|
|
7962
6427
|
states: props.states, callbacks: {
|
|
7963
6428
|
...props.callbacks,
|
|
7964
6429
|
onSubmit: props.onSubmit,
|
|
7965
|
-
}, text: props.text, refs: props.refs }))
|
|
6430
|
+
}, text: props.text, refs: props.refs }));
|
|
7966
6431
|
}
|
|
7967
6432
|
};
|
|
7968
6433
|
function useDemoUserInfoForm(props) {
|
|
7969
6434
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
6435
|
+
// @ts-ignore
|
|
7970
6436
|
return cjs({
|
|
7971
6437
|
setStep,
|
|
7972
|
-
onSubmit: () => {
|
|
6438
|
+
onSubmit: async () => {
|
|
7973
6439
|
setStep("/2");
|
|
7974
6440
|
},
|
|
7975
6441
|
onRadioClick: () => { },
|
|
@@ -8009,7 +6475,7 @@ function useDemoUserInfoForm(props) {
|
|
|
8009
6475
|
},
|
|
8010
6476
|
},
|
|
8011
6477
|
},
|
|
8012
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6478
|
+
}, props.demoData || parseStates(props.stateController) || {}, { arrayMerge: (_, a) => a });
|
|
8013
6479
|
}
|
|
8014
6480
|
|
|
8015
|
-
export { BankingInfoForm as sqm_banking_info_form,
|
|
6481
|
+
export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataColumn as sqm_invoice_table_data_column, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|