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