@saasquatch/mint-components 1.15.0-8 → 1.15.0-80
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-b3b7bb6e.js +646 -0
- package/dist/cjs/{ShadowViewAddon-afc40c22.js → ShadowViewAddon-9bf35bfe.js} +1570 -1398
- package/dist/cjs/{copy-text-view-9d4259f4.js → copy-text-view-e5223a96.js} +19 -8
- 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-124aec2c.js → global-16279e95.js} +12152 -11932
- 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} +871 -2415
- 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_43.cjs.entry.js} +1141 -301
- 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 +57 -63
- 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-ec7a5c53.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 +97 -70
- 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-f5ce25cc.js → sqm-portal-email-verification-view-e2590f1b.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-forgot-password-view-b986086e.js → sqm-portal-forgot-password-view-0a8d3243.js} +24 -16
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +39 -10
- 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-07d13061.js → sqm-portal-profile-view-5310d41a.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 +3 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +13753 -12462
- 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 +1255 -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 +24 -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-d5821f8d.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 +169 -1
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +60 -3
- 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 +4 -4
- package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +13 -6
- package/dist/collection/components/sqm-hero/sqm-hero.js +30 -5
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +2 -2
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +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/Leaderboard.stories.js +37 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +10 -4
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +202 -61
- 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 +4 -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-step/sqm-program-explainer-step-view.js +5 -3
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +4 -4
- 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 +34 -31
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +80 -11
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +169 -1
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
- package/dist/collection/components/sqm-referral-table/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 +31 -5
- 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 +39 -42
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +44 -3
- 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-share-button/ShareButton.stories.js +3 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +56 -10
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +6 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +10 -5
- 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 +81 -99
- 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 +18 -20
- 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/Text.stories.js +12 -0
- package/dist/collection/components/sqm-text/sqm-text.js +100 -49
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- 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 -5
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -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 +54 -58
- 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 +55 -62
- 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 -92
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +19 -4
- 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 +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +166 -52
- 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 +17 -6
- 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 +307 -134
- package/dist/collection/global/styles.ts +396 -135
- 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-451cf5e2.js +639 -0
- package/dist/esm/{ShadowViewAddon-bdedf635.js → ShadowViewAddon-3c2957fe.js} +1569 -1396
- package/dist/esm/{copy-text-view-ca98ab38.js → copy-text-view-8d1713d7.js} +19 -8
- package/dist/esm/data-ee3ae298.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-6dc825bc.js → global-2f3b2adb.js} +11849 -11630
- package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
- package/dist/esm/{index.module-89a79f66.js → index.module-38dad6c9.js} +153 -153
- 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-9c90767d.js} +2 -2
- package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +720 -2257
- 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_43.entry.js} +1053 -215
- 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 +54 -60
- 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-797601b0.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 +91 -64
- 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-d96d6c43.js → sqm-portal-email-verification-view-e68275d7.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
- package/dist/esm/{sqm-portal-forgot-password-view-50444a7c.js → sqm-portal-forgot-password-view-0e795cdd.js} +24 -16
- package/dist/esm/sqm-portal-forgot-password.entry.js +36 -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-4ce1c7c3.js → sqm-portal-profile-view-fe781f47.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 +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +13578 -12287
- 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 +1251 -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 +21 -10
- package/dist/esm/{useChildElements-7945ae56.js → useChildElements-4e70ac0e.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-0f04459e.js} +3 -3
- package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-7eeec61b.js} +10 -7
- package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-d0720c81.js} +3 -3
- package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-afc0171e.js} +3 -3
- package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-311e6d72.js} +2 -2
- package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-65a01a6a.js} +5 -5
- package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-18c2cea7.js} +2 -2
- package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-f9413de9.js} +2 -2
- package/dist/esm/{utilities-5b0ca040.js → utilities-ad9c2893.js} +2 -2
- package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
- package/dist/esm/utils-c416c7e4.js +97 -0
- package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
- package/dist/esm-es5/IndirectTaxDetailsView-451cf5e2.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-3c2957fe.js +1 -0
- package/dist/esm-es5/copy-text-view-8d1713d7.js +1 -0
- package/dist/esm-es5/data-ee3ae298.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-6dc825bc.js → global-2f3b2adb.js} +5 -5
- package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
- package/dist/esm-es5/index.module-38dad6c9.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-9c90767d.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_43.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-797601b0.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-d96d6c43.js → sqm-portal-email-verification-view-e68275d7.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-4ce1c7c3.js → sqm-portal-profile-view-fe781f47.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-4e70ac0e.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-0f04459e.js +1 -0
- package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-7eeec61b.js} +2 -2
- package/dist/esm-es5/usePortalLogin-d0720c81.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-afc0171e.js +1 -0
- package/dist/esm-es5/useReferralCodes-311e6d72.js +1 -0
- package/dist/esm-es5/useReferralTable-65a01a6a.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-18c2cea7.js +1 -0
- package/dist/esm-es5/useVerificationEmail-f9413de9.js +1 -0
- package/dist/esm-es5/utilities-ad9c2893.js +1 -0
- package/dist/esm-es5/utils-03188de2.js +1 -0
- package/dist/esm-es5/utils-c416c7e4.js +1 -0
- package/dist/mint-components/global/styles.ts +396 -135
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-000c91b1.js +1 -0
- package/dist/mint-components/{p-9b6a0152.system.entry.js → p-002e6205.system.entry.js} +1 -1
- package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
- package/dist/mint-components/{p-e145e4f8.js → p-07dc6d68.js} +1 -1
- package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
- package/dist/mint-components/p-0935f9b7.system.js +1 -0
- package/dist/mint-components/{p-284e4ed5.entry.js → p-0b0f49ad.entry.js} +1 -1
- package/dist/mint-components/p-0bb21f5b.system.entry.js +1 -0
- package/dist/mint-components/{p-164a9103.system.entry.js → p-0cba75e6.system.entry.js} +1 -1
- package/dist/mint-components/{p-36ffebd8.system.entry.js → p-0d22c0e5.system.entry.js} +1 -1
- package/dist/mint-components/p-0e532b53.entry.js +1 -0
- package/dist/mint-components/{p-480e08e9.js → p-0e59a91e.js} +2 -2
- package/dist/mint-components/p-0ea61502.system.js +1 -0
- package/dist/mint-components/p-100c878b.system.entry.js +1 -0
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/p-1337f47c.entry.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-7c2b9fe4.system.js → p-15012f59.system.js} +1 -1
- package/dist/mint-components/p-153a122d.system.js +1 -0
- package/dist/mint-components/p-15bfd7e2.system.js +1 -0
- package/dist/mint-components/p-1a278658.entry.js +1 -0
- package/dist/mint-components/{p-dbc0e4f8.system.js → p-1c1f4ce7.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-209ea185.js +1 -0
- package/dist/mint-components/p-21fab6ef.system.js +1 -0
- package/dist/mint-components/{p-3af1ec4c.entry.js → p-22c11f0e.entry.js} +1 -1
- package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-22d20816.system.entry.js} +1 -1
- package/dist/mint-components/p-2403c6e1.system.js +1 -0
- package/dist/mint-components/p-240bec23.js +1 -0
- package/dist/mint-components/{p-4b6f2eca.system.entry.js → p-258f4e5e.system.entry.js} +1 -1
- package/dist/mint-components/p-2a8e2f28.system.js +1 -0
- package/dist/mint-components/p-2c310c7d.entry.js +1 -0
- package/dist/mint-components/p-3055141d.entry.js +11 -0
- package/dist/mint-components/p-33703509.system.entry.js +1 -0
- package/dist/mint-components/p-35a2332d.js +448 -0
- package/dist/mint-components/p-36b1414b.system.js +1 -0
- package/dist/mint-components/{p-c0f19490.js → p-3787a4d6.js} +1 -1
- package/dist/mint-components/p-3cb249c3.js +1 -0
- package/dist/mint-components/p-3d1b91a1.system.entry.js +1 -0
- package/dist/mint-components/p-3d99fa43.entry.js +1 -0
- package/dist/mint-components/{p-13ed8586.system.js → p-3dc34570.system.js} +1 -1
- package/dist/mint-components/{p-20245645.js → p-3eba9036.js} +1 -1
- package/dist/mint-components/p-404daf1c.entry.js +144 -0
- package/dist/mint-components/p-40c01a5a.system.js +1 -0
- package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
- package/dist/mint-components/{p-f4a72903.system.entry.js → p-4271f436.system.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-42da8239.system.js +1 -0
- package/dist/mint-components/{p-726a9924.js → p-460155de.js} +1 -1
- package/dist/mint-components/{p-301ddcaa.system.entry.js → p-485e2d9f.system.entry.js} +1 -1
- package/dist/mint-components/p-49b20dae.js +1 -0
- package/dist/mint-components/p-49e92a7c.js +1233 -0
- package/dist/mint-components/{p-6d2f5a1d.js → p-4d19270b.js} +2 -2
- package/dist/mint-components/p-4d741ccd.js +1 -0
- package/dist/mint-components/p-4eee6c40.entry.js +93 -0
- package/dist/mint-components/p-4f5329a2.system.js +53 -0
- package/dist/mint-components/{p-cf8677ea.js → p-577a4c97.js} +1 -1
- package/dist/mint-components/{p-59274a91.system.js → p-578a27c8.system.js} +1 -1
- package/dist/mint-components/p-5800e049.entry.js +1 -0
- package/dist/mint-components/p-587115cb.system.entry.js +1 -0
- package/dist/mint-components/p-59b028db.system.js +1 -0
- package/dist/mint-components/p-5ccee28f.system.entry.js +1 -0
- package/dist/mint-components/{p-e8ffcc68.entry.js → p-5e0af707.entry.js} +2 -2
- package/dist/mint-components/{p-4e526a94.js → p-5ed49bf2.js} +1 -1
- package/dist/mint-components/p-5fca2bd3.system.entry.js +1 -0
- package/dist/mint-components/p-5ff2da11.js +1 -0
- package/dist/mint-components/p-621575fa.system.entry.js +1 -0
- package/dist/mint-components/p-63e29387.js +42 -0
- package/dist/mint-components/{p-ad985d37.system.entry.js → p-64457acd.system.entry.js} +1 -1
- package/dist/mint-components/{p-71d7c2a0.system.js → p-64997b59.system.js} +1 -1
- package/dist/mint-components/p-64d7775b.entry.js +9 -0
- package/dist/mint-components/{p-b5fb3826.system.js → p-6578ea31.system.js} +1 -1
- package/dist/mint-components/p-672d144e.entry.js +1 -0
- 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-69d64372.system.entry.js +1 -0
- package/dist/mint-components/p-6ad674c2.js +103 -0
- package/dist/mint-components/p-6b076bae.system.entry.js +1 -0
- package/dist/mint-components/p-6e069052.entry.js +1 -0
- package/dist/mint-components/{p-b7d1469d.system.entry.js → p-7059ee40.system.entry.js} +1 -1
- package/dist/mint-components/{p-2ae0e06a.entry.js → p-711bc624.entry.js} +1 -1
- 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-7752408c.js +1 -0
- package/dist/mint-components/p-7970e73a.js +1 -0
- package/dist/mint-components/{p-fa37513e.system.entry.js → p-7af4fba0.system.entry.js} +1 -1
- package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
- package/dist/mint-components/{p-527216de.system.js → p-82505f6e.system.js} +1 -1
- package/dist/mint-components/{p-95ae4ab9.system.js → p-82560b78.system.js} +1 -1
- package/dist/mint-components/{p-3f7b81b8.js → p-862845d7.js} +2 -2
- package/dist/mint-components/p-8a6494c7.system.js +1 -0
- package/dist/mint-components/p-8bcdb9a4.entry.js +13 -0
- package/dist/mint-components/p-8caef004.js +1 -0
- package/dist/mint-components/{p-aaff68dc.entry.js → p-8dc1cd0f.entry.js} +1 -1
- package/dist/mint-components/{p-8413ade9.system.js → p-8e28333b.system.js} +1 -1
- package/dist/mint-components/p-8e2bead4.js +1 -0
- package/dist/mint-components/p-9049b387.entry.js +1 -0
- package/dist/mint-components/{p-2d52e2d7.system.js → p-91014439.system.js} +1 -1
- package/dist/mint-components/{p-18425f38.system.entry.js → p-910f56ca.system.entry.js} +1 -1
- package/dist/mint-components/p-9374b5bb.system.entry.js +1 -0
- package/dist/mint-components/{p-ccf8c9aa.entry.js → p-94f9fbf7.entry.js} +1 -1
- package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
- package/dist/mint-components/{p-87c21535.entry.js → p-9aadc253.entry.js} +1 -1
- package/dist/mint-components/{p-619c2aa3.entry.js → p-9c2d515d.entry.js} +2 -2
- package/dist/mint-components/p-9e00773c.entry.js +258 -0
- package/dist/mint-components/p-9e297104.entry.js +1 -0
- package/dist/mint-components/p-9f82e69d.entry.js +1 -0
- package/dist/mint-components/{p-5488fdd9.system.js → p-9fb8b33a.system.js} +1 -1
- package/dist/mint-components/{p-8175e85f.system.js → p-a148663a.system.js} +1 -1
- package/dist/mint-components/{p-ac9f4085.system.entry.js → p-a2533860.system.entry.js} +1 -1
- package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
- package/dist/mint-components/p-a5c9ce6c.entry.js +1 -0
- package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
- package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
- package/dist/mint-components/p-abd33116.system.entry.js +1 -0
- package/dist/mint-components/{p-abefb7cc.js → p-ac11e10a.js} +1 -1
- package/dist/mint-components/{p-8362cb4c.system.entry.js → p-ac2fdad8.system.entry.js} +1 -1
- package/dist/mint-components/p-b065215a.entry.js +1 -0
- package/dist/mint-components/{p-d6831af5.js → p-b22b7891.js} +1 -1
- package/dist/mint-components/{p-a37541ae.system.entry.js → p-b3112c88.system.entry.js} +1 -1
- package/dist/mint-components/{p-345fd28e.system.entry.js → p-b3da317b.system.entry.js} +1 -1
- package/dist/mint-components/{p-571e1427.system.js → p-b6911812.system.js} +1 -1
- package/dist/mint-components/p-b710c7e0.js +1 -0
- package/dist/mint-components/p-b86f944c.entry.js +25 -0
- package/dist/mint-components/p-b8fed018.system.js +1 -0
- package/dist/mint-components/{p-1a6b7d2a.entry.js → p-b9bccc55.entry.js} +1 -1
- package/dist/mint-components/p-ba16858e.system.entry.js +1 -0
- package/dist/mint-components/p-bad50dc1.entry.js +1 -0
- package/dist/mint-components/{p-a81b507f.entry.js → p-bb627d95.entry.js} +2 -2
- package/dist/mint-components/{p-44a82cf3.system.js → p-bcb48c32.system.js} +22 -22
- package/dist/mint-components/p-bd288a80.system.js +1 -0
- package/dist/mint-components/p-be88596c.system.js +1 -0
- package/dist/mint-components/p-bfc16195.system.entry.js +1 -0
- package/dist/mint-components/{p-44891949.entry.js → p-c3884e55.entry.js} +1 -1
- package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
- package/dist/mint-components/p-c3fe8514.system.entry.js +1 -0
- package/dist/mint-components/p-c4886223.entry.js +1 -0
- package/dist/mint-components/p-c7965639.entry.js +1 -0
- package/dist/mint-components/p-c79bb1c6.entry.js +16 -0
- package/dist/mint-components/p-c7c11325.js +1 -0
- package/dist/mint-components/p-c9252c59.system.entry.js +1 -0
- package/dist/mint-components/p-cab1f502.js +1 -0
- package/dist/mint-components/{p-a71b9154.system.js → p-d399162b.system.js} +1 -1
- package/dist/mint-components/{p-0559d880.entry.js → p-d5f1df29.entry.js} +1 -1
- package/dist/mint-components/p-d785a297.system.entry.js +1 -0
- package/dist/mint-components/p-d821418e.system.js +1 -0
- package/dist/mint-components/p-d8c5b80a.system.js +1 -0
- package/dist/mint-components/{p-d3e5704c.entry.js → p-da34d4f7.entry.js} +1 -1
- package/dist/mint-components/p-da3ffd4e.system.entry.js +1 -0
- package/dist/mint-components/{p-605c2904.system.entry.js → p-da6fe95f.system.entry.js} +1 -1
- package/dist/mint-components/{p-c2fdd608.system.entry.js → p-dbe29e53.system.entry.js} +1 -1
- package/dist/mint-components/{p-69ac09d4.js → p-ddf3c05e.js} +1 -1
- package/dist/mint-components/p-e1a5f64a.entry.js +1 -0
- package/dist/mint-components/{p-da7708a7.entry.js → p-e27ff213.entry.js} +1 -1
- package/dist/mint-components/p-e539fed3.entry.js +1 -0
- package/dist/mint-components/p-e57d61af.system.js +1 -0
- package/dist/mint-components/{p-9209a016.system.entry.js → p-e8dc94cc.system.entry.js} +1 -1
- package/dist/mint-components/p-eaeddfe2.system.js +1 -0
- package/dist/mint-components/{p-e21a1cb8.system.entry.js → p-ebb487d0.system.entry.js} +1 -1
- package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
- package/dist/mint-components/p-f0e0d0b9.system.entry.js +1 -0
- package/dist/mint-components/p-f0ebccea.system.entry.js +1 -0
- package/dist/mint-components/p-f1dc581f.js +1 -0
- package/dist/mint-components/{p-05f29f64.js → p-f307b716.js} +1 -1
- package/dist/mint-components/p-f6665d99.system.entry.js +1 -0
- package/dist/mint-components/p-f6762bb5.entry.js +13 -0
- package/dist/mint-components/p-f6baa0c9.system.js +1 -0
- package/dist/mint-components/p-f9c7248e.js +1 -0
- package/dist/mint-components/{p-cc7af682.system.js → p-fa6fba34.system.js} +2 -2
- package/dist/mint-components/{p-2b462e4f.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
- package/dist/mint-components/{p-4e451f75.js → p-fb5be0c5.js} +1 -1
- package/dist/mint-components/p-fb77f662.entry.js +1 -0
- package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +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 +42 -0
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +13 -0
- package/dist/types/components/sqm-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 +6 -2
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
- package/dist/types/components/sqm-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/Leaderboard.stories.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +53 -17
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
- 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/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-step/sqm-program-explainer-step-view.d.ts +1 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -1
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +24 -3
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +42 -0
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
- package/dist/types/components/sqm-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 +7 -0
- 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-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/sqm-share-link.d.ts +5 -3
- 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/Text.stories.d.ts +6 -0
- package/dist/types/components/sqm-text/sqm-text.d.ts +12 -0
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
- package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -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 +46 -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-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 +1090 -100
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- 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/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -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-f369b0a6.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-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-1bd8afaa.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-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-bdedf635.js +0 -1
- package/dist/esm-es5/copy-text-view-ca98ab38.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-1bd8afaa.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-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-09a77c82.system.entry.js +0 -1
- package/dist/mint-components/p-11519322.system.js +0 -1
- package/dist/mint-components/p-11542862.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-19ccb4ce.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-208d8d75.system.entry.js +0 -1
- package/dist/mint-components/p-217514ac.system.js +0 -1
- package/dist/mint-components/p-2195c312.entry.js +0 -13
- 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-2c07df76.entry.js +0 -144
- 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-338bcfd6.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-3a49811c.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-469ad274.js +0 -394
- package/dist/mint-components/p-48135f99.system.js +0 -53
- package/dist/mint-components/p-484196f8.entry.js +0 -9
- package/dist/mint-components/p-49206a9c.entry.js +0 -1
- package/dist/mint-components/p-49deb225.entry.js +0 -1
- package/dist/mint-components/p-4dbe2d08.entry.js +0 -25
- package/dist/mint-components/p-4e5af50c.js +0 -1
- package/dist/mint-components/p-55c16fb9.system.js +0 -1
- package/dist/mint-components/p-5dbe8b0a.system.js +0 -1
- package/dist/mint-components/p-6055eb4c.system.js +0 -1
- package/dist/mint-components/p-6333265f.system.js +0 -1
- package/dist/mint-components/p-635d5ef2.system.js +0 -1
- package/dist/mint-components/p-6427e963.entry.js +0 -1
- package/dist/mint-components/p-642909e6.system.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-6eaf9c57.entry.js +0 -1
- package/dist/mint-components/p-6f34c2c2.entry.js +0 -13
- package/dist/mint-components/p-734695a0.entry.js +0 -205
- package/dist/mint-components/p-775f3ded.entry.js +0 -1
- package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
- package/dist/mint-components/p-7cbec088.system.entry.js +0 -1
- package/dist/mint-components/p-7e3a84bc.js +0 -1
- 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-837dbf90.system.entry.js +0 -1
- package/dist/mint-components/p-893d7ab4.js +0 -1
- 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-8d9d04b7.system.entry.js +0 -1
- package/dist/mint-components/p-90421929.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-93fed35b.system.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-9acb5038.js +0 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
- package/dist/mint-components/p-9fe143f5.js +0 -1
- package/dist/mint-components/p-b889ec31.entry.js +0 -258
- package/dist/mint-components/p-bd2a2546.system.js +0 -1
- package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
- package/dist/mint-components/p-c060f770.system.entry.js +0 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
- package/dist/mint-components/p-c39db551.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-cd63a965.system.entry.js +0 -1
- package/dist/mint-components/p-cd651f81.js +0 -42
- package/dist/mint-components/p-dcc81e90.entry.js +0 -1
- package/dist/mint-components/p-df89186f.system.js +0 -1
- package/dist/mint-components/p-e01fe915.js +0 -1248
- package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
- package/dist/mint-components/p-eab1c9f3.js +0 -1
- package/dist/mint-components/p-ed11966d.system.js +0 -1
- package/dist/mint-components/p-eda5e82c.entry.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-f2d8d3d3.system.entry.js +0 -1
- package/dist/mint-components/p-f708da7b.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-16279e95.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-b3b7bb6e.js');
|
|
20
|
+
const utils$1 = require('./utils-d5821f8d.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",
|
|
641
|
+
},
|
|
642
|
+
"&::part(body)": {
|
|
643
|
+
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
644
|
+
fontSize: "var(--sl-font-size-small)",
|
|
770
645
|
},
|
|
771
|
-
"&::part(
|
|
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,
|
|
@@ -905,8 +779,10 @@ const BankingInfoFormView = (props) => {
|
|
|
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
|
},
|
|
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%" },
|
|
2450
2019
|
};
|
|
2451
|
-
const sheet$
|
|
2452
|
-
const styleString$
|
|
2453
|
-
const vanillaStyle$
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
* {
|
|
2458
|
-
margin: 0;
|
|
2459
|
-
padding: 0;
|
|
2460
|
-
box-sizing: border-box;
|
|
2461
|
-
}
|
|
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
|
},
|
|
@@ -2765,61 +2360,61 @@ const style$4 = {
|
|
|
2765
2360
|
marginTop: "10px",
|
|
2766
2361
|
},
|
|
2767
2362
|
DescriptionText: {
|
|
2768
|
-
color: "var(--
|
|
2363
|
+
color: "var(--sqm-text-subdued)",
|
|
2769
2364
|
},
|
|
2770
|
-
|
|
2771
|
-
"
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
"
|
|
2777
|
-
|
|
2778
|
-
},
|
|
2365
|
+
InfoWarningIcon: {
|
|
2366
|
+
height: "26px",
|
|
2367
|
+
width: "26px",
|
|
2368
|
+
},
|
|
2369
|
+
PageDescriptionText: {
|
|
2370
|
+
color: "var(--sqm-text-subdued)",
|
|
2371
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2372
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
2779
2373
|
},
|
|
2780
|
-
|
|
2374
|
+
PrimaryButton: {
|
|
2781
2375
|
"&::part(base)": {
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2376
|
+
background: "var(--sqm-primary-button-background)",
|
|
2377
|
+
color: "var(--sqm-primary-button-color)",
|
|
2378
|
+
borderColor: "var(--sqm-primary-button-color-border)",
|
|
2379
|
+
borderRadius: "var(--sqm-primary-button-radius)",
|
|
2785
2380
|
},
|
|
2786
|
-
"
|
|
2787
|
-
|
|
2381
|
+
"&::part(base):hover": {
|
|
2382
|
+
background: "var(--sqm-primary-button-background-hover)",
|
|
2788
2383
|
},
|
|
2789
2384
|
},
|
|
2790
|
-
|
|
2791
|
-
marginTop: "var(--sl-spacing-large)",
|
|
2385
|
+
SecondaryButton: {
|
|
2792
2386
|
"&::part(base)": {
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
padding: "var(--sl-spacing-small)",
|
|
2801
|
-
whiteSpace: "nowrap",
|
|
2387
|
+
background: "var(--sqm-secondary-button-background)",
|
|
2388
|
+
color: "var(--sqm-secondary-button-color)",
|
|
2389
|
+
borderColor: "var(--sqm-secondary-button-color-border)",
|
|
2390
|
+
borderRadius: "var(--sqm-secondary-button-radius)",
|
|
2391
|
+
width: "max-content",
|
|
2392
|
+
display: "flex",
|
|
2393
|
+
margin: "auto",
|
|
2802
2394
|
},
|
|
2803
|
-
"
|
|
2804
|
-
color: "var(--
|
|
2395
|
+
"&::part(base):hover": {
|
|
2396
|
+
color: "var(--sqm-text)",
|
|
2397
|
+
background: "var(--sqm-secondary-button-background-hover)",
|
|
2805
2398
|
},
|
|
2806
2399
|
},
|
|
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
2400
|
};
|
|
2817
|
-
const sheet$
|
|
2818
|
-
const styleString$
|
|
2819
|
-
const vanillaStyle$
|
|
2401
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2402
|
+
const styleString$3 = sheet$3.toString();
|
|
2403
|
+
const vanillaStyle$2 = `
|
|
2820
2404
|
:host{
|
|
2821
2405
|
display: block;
|
|
2822
2406
|
}
|
|
2407
|
+
|
|
2408
|
+
hr {
|
|
2409
|
+
border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
a {
|
|
2413
|
+
color: inherit;
|
|
2414
|
+
text-decoration: underline;
|
|
2415
|
+
cursor: pointer;
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2823
2418
|
* {
|
|
2824
2419
|
margin: 0;
|
|
2825
2420
|
padding: 0;
|
|
@@ -2830,11 +2425,11 @@ const vanillaStyle$3 = `
|
|
|
2830
2425
|
const IndirectTaxFormView = (props) => {
|
|
2831
2426
|
var _a;
|
|
2832
2427
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2833
|
-
const { classes } = sheet$
|
|
2428
|
+
const { classes } = sheet$3;
|
|
2834
2429
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2835
2430
|
index.h("style", { type: "text/css" },
|
|
2836
|
-
styleString$
|
|
2837
|
-
vanillaStyle$
|
|
2431
|
+
styleString$3,
|
|
2432
|
+
vanillaStyle$2),
|
|
2838
2433
|
index.h("div", { class: classes.TextContainer },
|
|
2839
2434
|
index.h("div", null,
|
|
2840
2435
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2842,35 +2437,29 @@ const IndirectTaxFormView = (props) => {
|
|
|
2842
2437
|
global.intl.formatMessage({
|
|
2843
2438
|
id: "formStep",
|
|
2844
2439
|
defaultMessage: text.formStep,
|
|
2845
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2440
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
2846
2441
|
index.h("h3", null, text.indirectTax),
|
|
2847
2442
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2848
2443
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2849
2444
|
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),
|
|
2445
|
+
index.h("sqm-form-message", { type: "error" },
|
|
2446
|
+
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
2854
2447
|
global.intl.formatMessage({
|
|
2855
2448
|
id: "loadingErrorAlertDescription",
|
|
2856
2449
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2857
2450
|
}, {
|
|
2858
2451
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2859
2452
|
})))),
|
|
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),
|
|
2453
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
|
|
2454
|
+
index.h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
2864
2455
|
global.intl.formatMessage({
|
|
2865
2456
|
id: "generalDescription",
|
|
2866
2457
|
defaultMessage: text.error.generalDescription,
|
|
2867
2458
|
}, {
|
|
2868
2459
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2869
2460
|
}))),
|
|
2870
|
-
states.isPartner && (index.h("
|
|
2871
|
-
index.h("
|
|
2872
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2873
|
-
index.h("br", null),
|
|
2461
|
+
states.isPartner && (index.h("sqm-form-message", { type: "info" },
|
|
2462
|
+
index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
2874
2463
|
global.intl.formatMessage({
|
|
2875
2464
|
id: "isPartnerAlertDescription",
|
|
2876
2465
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -2891,17 +2480,15 @@ const IndirectTaxFormView = (props) => {
|
|
|
2891
2480
|
text.otherRegion,
|
|
2892
2481
|
index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2893
2482
|
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
|
-
})),
|
|
2483
|
+
index.h("sqm-form-message", { type: "info" }, global.intl.formatMessage({
|
|
2484
|
+
id: "cannotChangeInfoAlert",
|
|
2485
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
2486
|
+
}, {
|
|
2487
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2488
|
+
})),
|
|
2902
2489
|
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))))));
|
|
2490
|
+
index.h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2491
|
+
index.h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2905
2492
|
};
|
|
2906
2493
|
|
|
2907
2494
|
const CONNECT_PARTNER = index_module.dist.gql `
|
|
@@ -2944,30 +2531,30 @@ function useIndirectTaxForm(props) {
|
|
|
2944
2531
|
var _a, _b, _c, _d, _e;
|
|
2945
2532
|
const user = index_module.J();
|
|
2946
2533
|
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);
|
|
2534
|
+
const formRef = domContextHooks_module.useRef(null);
|
|
2535
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
2536
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
2950
2537
|
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);
|
|
2538
|
+
const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
2539
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
2540
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
|
|
2954
2541
|
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] =
|
|
2542
|
+
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]);
|
|
2543
|
+
const [loading, setLoading] = domContextHooks_module.useState(false);
|
|
2544
|
+
const [formState, setFormState] = domContextHooks_module.useState({});
|
|
2545
|
+
const [errors, setErrors] = domContextHooks_module.useState({});
|
|
2546
|
+
const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
|
|
2547
|
+
const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(_countries || []);
|
|
2548
|
+
const [option, setOption] = domContextHooks_module.useState("notRegistered");
|
|
2962
2549
|
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
|
-
|
|
2550
|
+
domContextHooks_module.useEffect(() => {
|
|
2964
2551
|
var _a;
|
|
2965
2552
|
if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
|
|
2966
2553
|
return;
|
|
2967
2554
|
const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
|
|
2968
2555
|
setOption(_option);
|
|
2969
2556
|
}, [publisher, _countries]);
|
|
2970
|
-
|
|
2557
|
+
domContextHooks_module.useEffect(() => {
|
|
2971
2558
|
if (countrySearch.trim() === "") {
|
|
2972
2559
|
setFilteredCountries(_countries || []);
|
|
2973
2560
|
}
|
|
@@ -2975,7 +2562,7 @@ function useIndirectTaxForm(props) {
|
|
|
2975
2562
|
setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
|
|
2976
2563
|
}
|
|
2977
2564
|
}, [countrySearch, _countries]);
|
|
2978
|
-
|
|
2565
|
+
domContextHooks_module.useEffect(() => {
|
|
2979
2566
|
var _a, _b;
|
|
2980
2567
|
const user = userData === null || userData === void 0 ? void 0 : userData.user;
|
|
2981
2568
|
if (!user)
|
|
@@ -3067,7 +2654,7 @@ function useIndirectTaxForm(props) {
|
|
|
3067
2654
|
await refetch();
|
|
3068
2655
|
const resultPublisher = (_e = (_d = (_c = result
|
|
3069
2656
|
.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 =
|
|
2657
|
+
const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3071
2658
|
// Fire form change event
|
|
3072
2659
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
3073
2660
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
@@ -3122,10 +2709,10 @@ function useIndirectTaxForm(props) {
|
|
|
3122
2709
|
})),
|
|
3123
2710
|
},
|
|
3124
2711
|
data: {
|
|
3125
|
-
esRegions:
|
|
2712
|
+
esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3126
2713
|
countries: filteredCountries,
|
|
3127
2714
|
allCountries: _countries,
|
|
3128
|
-
provinces:
|
|
2715
|
+
provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
|
|
3129
2716
|
},
|
|
3130
2717
|
text: props.getTextProps(),
|
|
3131
2718
|
refs: {
|
|
@@ -3292,7 +2879,7 @@ const IndirectTaxForm = class {
|
|
|
3292
2879
|
* @uiName Page description
|
|
3293
2880
|
*/
|
|
3294
2881
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
3295
|
-
|
|
2882
|
+
domContextHooks_module.h$1(this);
|
|
3296
2883
|
}
|
|
3297
2884
|
disconnectedCallback() { }
|
|
3298
2885
|
getTextProps() {
|
|
@@ -3327,7 +2914,7 @@ const IndirectTaxForm = class {
|
|
|
3327
2914
|
const props = index_module.isDemo()
|
|
3328
2915
|
? useDemoIndirectTaxForm(this)
|
|
3329
2916
|
: useIndirectTaxForm(this);
|
|
3330
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(
|
|
2917
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
|
|
3331
2918
|
hide: props.states.formState.checked !== "otherRegion",
|
|
3332
2919
|
disabled: props.states.disabled || props.states.isPartner,
|
|
3333
2920
|
formState: props.slotProps.formState,
|
|
@@ -3345,9 +2932,9 @@ const IndirectTaxForm = class {
|
|
|
3345
2932
|
}
|
|
3346
2933
|
};
|
|
3347
2934
|
function useDemoIndirectTaxForm(props) {
|
|
3348
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
3349
|
-
const [option, setOption] =
|
|
3350
|
-
const [demoFormState, setDemoFormState] =
|
|
2935
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
2936
|
+
const [option, setOption] = domContextHooks_module.useState("otherRegion");
|
|
2937
|
+
const [demoFormState, setDemoFormState] = domContextHooks_module.useState({});
|
|
3351
2938
|
return cjs.cjs({
|
|
3352
2939
|
states: {
|
|
3353
2940
|
step: "2",
|
|
@@ -3386,7 +2973,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3386
2973
|
setCountrySearch: (c) => console.log(c),
|
|
3387
2974
|
},
|
|
3388
2975
|
data: {
|
|
3389
|
-
esRegions:
|
|
2976
|
+
esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3390
2977
|
countries: [
|
|
3391
2978
|
{
|
|
3392
2979
|
countryCode: "CA",
|
|
@@ -3405,7 +2992,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3405
2992
|
displayName: "United States",
|
|
3406
2993
|
},
|
|
3407
2994
|
],
|
|
3408
|
-
provinces:
|
|
2995
|
+
provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
|
|
3409
2996
|
},
|
|
3410
2997
|
text: props.getTextProps(),
|
|
3411
2998
|
refs: {
|
|
@@ -3427,7 +3014,27 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3427
3014
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3428
3015
|
}
|
|
3429
3016
|
|
|
3430
|
-
const
|
|
3017
|
+
const mockInvoiceData = (count = 4) => {
|
|
3018
|
+
const data = [...Array(count)].map(() => getMockData());
|
|
3019
|
+
return { data };
|
|
3020
|
+
};
|
|
3021
|
+
const getMockData = () => {
|
|
3022
|
+
const today = luxon.luxon.DateTime.now();
|
|
3023
|
+
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3024
|
+
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3025
|
+
const indirectTax = Math.round(earnings * 0.2);
|
|
3026
|
+
return {
|
|
3027
|
+
downloadUrl: "https://example.com",
|
|
3028
|
+
dateCreated: today.toMillis(),
|
|
3029
|
+
invoiceId,
|
|
3030
|
+
program: "my-program",
|
|
3031
|
+
earnings: `$${earnings}.00`,
|
|
3032
|
+
indirectTax: `$${indirectTax}.00`,
|
|
3033
|
+
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3034
|
+
};
|
|
3035
|
+
};
|
|
3036
|
+
|
|
3037
|
+
const debug = domContextHooks_module.browser("sq:useInvoiceTable");
|
|
3431
3038
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
3432
3039
|
const GET_INVOICES = index_module.dist.gql `
|
|
3433
3040
|
query getUserTaxInfo($limit: Int!, $offset: Int!) {
|
|
@@ -3457,7 +3064,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3457
3064
|
var _a;
|
|
3458
3065
|
const user = index_module.J();
|
|
3459
3066
|
const locale = index_module.L();
|
|
3460
|
-
const [content, setContent] =
|
|
3067
|
+
const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
|
|
3461
3068
|
...state,
|
|
3462
3069
|
...next,
|
|
3463
3070
|
}), {
|
|
@@ -3501,7 +3108,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3501
3108
|
// Set the content to render and finish loading components
|
|
3502
3109
|
setContent({ columns, loading: false, page: states.currentPage });
|
|
3503
3110
|
}
|
|
3504
|
-
|
|
3111
|
+
domContextHooks_module.useEffect(() => {
|
|
3505
3112
|
setContent({ loading: true });
|
|
3506
3113
|
invoicesData && getComponentData(components);
|
|
3507
3114
|
}, [invoicesData, components, tick]);
|
|
@@ -3575,26 +3182,6 @@ async function tryMethod(c, callback) {
|
|
|
3575
3182
|
}
|
|
3576
3183
|
}
|
|
3577
3184
|
|
|
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
3185
|
const InvoiceTable = class {
|
|
3599
3186
|
constructor(hostRef) {
|
|
3600
3187
|
index.registerInstance(this, hostRef);
|
|
@@ -3628,7 +3215,7 @@ const InvoiceTable = class {
|
|
|
3628
3215
|
this.emptyStateHeader = "View your invoice details";
|
|
3629
3216
|
/** @uiName Empty invoice table description */
|
|
3630
3217
|
this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
3631
|
-
|
|
3218
|
+
domContextHooks_module.h$1(this);
|
|
3632
3219
|
}
|
|
3633
3220
|
disconnectedCallback() { }
|
|
3634
3221
|
render() {
|
|
@@ -3638,7 +3225,7 @@ const InvoiceTable = class {
|
|
|
3638
3225
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3639
3226
|
: useInvoiceTable(this, empty, loading);
|
|
3640
3227
|
reRender.useRequestRerender([this.perPage]);
|
|
3641
|
-
return (index.h(
|
|
3228
|
+
return (index.h(IndirectTaxDetailsView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3642
3229
|
}
|
|
3643
3230
|
};
|
|
3644
3231
|
function EmptySlot(props) {
|
|
@@ -3651,7 +3238,7 @@ function LoadingRow() {
|
|
|
3651
3238
|
return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
|
|
3652
3239
|
}
|
|
3653
3240
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
3654
|
-
const [content, setContent] =
|
|
3241
|
+
const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
|
|
3655
3242
|
...state,
|
|
3656
3243
|
...next,
|
|
3657
3244
|
}), {
|
|
@@ -3661,7 +3248,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3661
3248
|
page: 0,
|
|
3662
3249
|
});
|
|
3663
3250
|
const tick = reRender.useRerenderListener();
|
|
3664
|
-
const mockData =
|
|
3251
|
+
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
3252
|
const components = useChildElements.useChildElements();
|
|
3666
3253
|
async function getComponentData(components) {
|
|
3667
3254
|
const componentData = mockData.data.slice(0, props.perPage);
|
|
@@ -3704,7 +3291,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3704
3291
|
// Set the content to render and finish loading components
|
|
3705
3292
|
setContent({ columns, loading: false, page: 0 });
|
|
3706
3293
|
}
|
|
3707
|
-
|
|
3294
|
+
domContextHooks_module.useEffect(() => {
|
|
3708
3295
|
setContent({ loading: true });
|
|
3709
3296
|
(mockData === null || mockData === void 0 ? void 0 : mockData.data) && getComponentData(components);
|
|
3710
3297
|
}, [mockData === null || mockData === void 0 ? void 0 : mockData.data, components, tick]);
|
|
@@ -3740,22 +3327,10 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3740
3327
|
return demoProps;
|
|
3741
3328
|
}
|
|
3742
3329
|
|
|
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
3330
|
const InvoiceTableDataColumn = class {
|
|
3756
3331
|
constructor(hostRef) {
|
|
3757
3332
|
index.registerInstance(this, hostRef);
|
|
3758
|
-
|
|
3333
|
+
domContextHooks_module.h$1(this);
|
|
3759
3334
|
}
|
|
3760
3335
|
disconnectedCallback() { }
|
|
3761
3336
|
async renderCell(data) {
|
|
@@ -3770,27 +3345,10 @@ const InvoiceTableDataColumn = class {
|
|
|
3770
3345
|
}
|
|
3771
3346
|
};
|
|
3772
3347
|
|
|
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
3348
|
const InvoiceTableDateColumn = class {
|
|
3791
3349
|
constructor(hostRef) {
|
|
3792
3350
|
index.registerInstance(this, hostRef);
|
|
3793
|
-
|
|
3351
|
+
domContextHooks_module.h$1(this);
|
|
3794
3352
|
}
|
|
3795
3353
|
disconnectedCallback() { }
|
|
3796
3354
|
async renderCell(data, options) {
|
|
@@ -3805,25 +3363,10 @@ const InvoiceTableDateColumn = class {
|
|
|
3805
3363
|
}
|
|
3806
3364
|
};
|
|
3807
3365
|
|
|
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
3366
|
const InvoiceTableGenericColumn = class {
|
|
3824
3367
|
constructor(hostRef) {
|
|
3825
3368
|
index.registerInstance(this, hostRef);
|
|
3826
|
-
|
|
3369
|
+
domContextHooks_module.h$1(this);
|
|
3827
3370
|
}
|
|
3828
3371
|
disconnectedCallback() { }
|
|
3829
3372
|
async renderCell(data) {
|
|
@@ -3842,17 +3385,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3842
3385
|
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
3386
|
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
3387
|
|
|
3845
|
-
const style$
|
|
3388
|
+
const style$4 = {
|
|
3846
3389
|
CardContainer: {
|
|
3847
3390
|
display: "grid",
|
|
3848
3391
|
gridTemplateColumns: "1fr",
|
|
3849
3392
|
gridGap: "var(--sl-spacing-large)",
|
|
3850
|
-
background: "
|
|
3393
|
+
background: "inherit",
|
|
3851
3394
|
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
3852
|
-
borderRadius: "
|
|
3395
|
+
borderRadius: "var(--sqm-border-radius-normal)",
|
|
3853
3396
|
padding: "var(--sl-spacing-large)",
|
|
3854
3397
|
minHeight: "150px",
|
|
3855
|
-
border: "1px solid var(--
|
|
3398
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3856
3399
|
maxWidth: "450px",
|
|
3857
3400
|
},
|
|
3858
3401
|
StatusContainer: {
|
|
@@ -3862,7 +3405,7 @@ const style$5 = {
|
|
|
3862
3405
|
},
|
|
3863
3406
|
MainCurrencyLabel: {
|
|
3864
3407
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
3865
|
-
color: "var(--
|
|
3408
|
+
color: "var(--sqm-text-subdued)",
|
|
3866
3409
|
},
|
|
3867
3410
|
MainCurrency: {
|
|
3868
3411
|
margin: 0,
|
|
@@ -3871,12 +3414,12 @@ const style$5 = {
|
|
|
3871
3414
|
},
|
|
3872
3415
|
SubduedRegularText: {
|
|
3873
3416
|
fontSize: "var(--sl-font-size-small)",
|
|
3874
|
-
color: "var(--
|
|
3417
|
+
color: "var(--sqm-text-subdued)",
|
|
3875
3418
|
margin: 0,
|
|
3876
3419
|
width: "auto",
|
|
3877
3420
|
},
|
|
3878
3421
|
PaypalEmail: {
|
|
3879
|
-
borderRight: "1px solid var(--
|
|
3422
|
+
borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3880
3423
|
paddingRight: "var(--sl-spacing-small)",
|
|
3881
3424
|
"@media (max-width: 499px)": {
|
|
3882
3425
|
borderRight: "none",
|
|
@@ -3884,7 +3427,7 @@ const style$5 = {
|
|
|
3884
3427
|
},
|
|
3885
3428
|
},
|
|
3886
3429
|
PaypalDetailsContainer: {
|
|
3887
|
-
color: "var(--
|
|
3430
|
+
color: "var(--sqm-text-subdued)",
|
|
3888
3431
|
display: "flex",
|
|
3889
3432
|
gap: "var(--sl-spacing-small)",
|
|
3890
3433
|
justifyContent: "flex-start",
|
|
@@ -3905,7 +3448,7 @@ const style$5 = {
|
|
|
3905
3448
|
},
|
|
3906
3449
|
},
|
|
3907
3450
|
AccountDetailsContainer: {
|
|
3908
|
-
color: "var(--
|
|
3451
|
+
color: "var(--sqm-text-subdued)",
|
|
3909
3452
|
display: "flex",
|
|
3910
3453
|
gap: "var(--sl-spacing-small)",
|
|
3911
3454
|
justifyContent: "flex-start",
|
|
@@ -3918,7 +3461,7 @@ const style$5 = {
|
|
|
3918
3461
|
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
3919
3462
|
paddingTop: "var(--sq-spacing-xx-small)",
|
|
3920
3463
|
"& > :not(:last-child)": {
|
|
3921
|
-
borderRight: "1px solid var(--
|
|
3464
|
+
borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3922
3465
|
},
|
|
3923
3466
|
"& > :nth-child(3)": {
|
|
3924
3467
|
border: "none",
|
|
@@ -3935,7 +3478,7 @@ const style$5 = {
|
|
|
3935
3478
|
},
|
|
3936
3479
|
W9Container: {
|
|
3937
3480
|
paddingTop: "var(--sl-spacing-large)",
|
|
3938
|
-
borderTop: "1px solid var(--
|
|
3481
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3939
3482
|
},
|
|
3940
3483
|
SkeletonOne: {
|
|
3941
3484
|
width: "25%",
|
|
@@ -3949,25 +3492,21 @@ const style$5 = {
|
|
|
3949
3492
|
width: "50%",
|
|
3950
3493
|
height: "34px",
|
|
3951
3494
|
},
|
|
3952
|
-
|
|
3495
|
+
SuccessBadge: {
|
|
3953
3496
|
"&::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,
|
|
3497
|
+
textAlign: "center",
|
|
3498
|
+
whiteSpace: "pre-line",
|
|
3499
|
+
background: "var(--sqm-success-color-icon)",
|
|
3500
|
+
color: "var(--sl-color-white)",
|
|
3964
3501
|
},
|
|
3965
3502
|
},
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3503
|
+
PrimaryBadge: {
|
|
3504
|
+
"&::part(base)": {
|
|
3505
|
+
textAlign: "center",
|
|
3506
|
+
whiteSpace: "pre-line",
|
|
3507
|
+
background: "var(--sqm-informative-color-icon)",
|
|
3508
|
+
color: "var(--sl-color-white)",
|
|
3509
|
+
},
|
|
3971
3510
|
},
|
|
3972
3511
|
Container: {
|
|
3973
3512
|
display: "flex",
|
|
@@ -3976,7 +3515,7 @@ const style$5 = {
|
|
|
3976
3515
|
},
|
|
3977
3516
|
};
|
|
3978
3517
|
function PayoutDetailsCardView(props) {
|
|
3979
|
-
const sheet = JSS.createStyleSheet(style$
|
|
3518
|
+
const sheet = JSS.createStyleSheet(style$4);
|
|
3980
3519
|
const styleString = sheet.toString();
|
|
3981
3520
|
const { classes } = sheet;
|
|
3982
3521
|
const { states, text } = props;
|
|
@@ -3990,13 +3529,14 @@ function PayoutDetailsCardView(props) {
|
|
|
3990
3529
|
};
|
|
3991
3530
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3992
3531
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
3532
|
+
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
3993
3533
|
const statusText = global.intl.formatMessage({
|
|
3994
3534
|
id: "badgeText",
|
|
3995
3535
|
defaultMessage: statusBadgeText,
|
|
3996
3536
|
}, {
|
|
3997
3537
|
badgeText: status,
|
|
3998
3538
|
});
|
|
3999
|
-
return (index.h("sl-badge", { pill: true,
|
|
3539
|
+
return (index.h("sl-badge", { pill: true, class: badgeClass }, statusText));
|
|
4000
3540
|
};
|
|
4001
3541
|
const thresholdText = global.intl.formatMessage({
|
|
4002
3542
|
id: "thresholdText",
|
|
@@ -4021,1387 +3561,149 @@ function PayoutDetailsCardView(props) {
|
|
|
4021
3561
|
index.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
|
4022
3562
|
index.h(PayPalIcon, null))) : (index.h("div", { class: classes.AccountDetailsContainer },
|
|
4023
3563
|
index.h("span", null, states.cardNumberPreview
|
|
4024
|
-
? `${text.accountText} ${states.cardNumberPreview}`
|
|
4025
|
-
: 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.";
|
|
3564
|
+
? `${text.accountText} ${states.cardNumberPreview}`
|
|
3565
|
+
: text.payoutMissingInformationText)))))));
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
function usePayoutDetailsCard(props) {
|
|
3569
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3570
|
+
const { data: data$1, loading } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
3571
|
+
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;
|
|
3572
|
+
function getPayoutDetailedStatusText(paymentDay) {
|
|
3573
|
+
var _a;
|
|
3574
|
+
const currentDay = luxon.luxon.DateTime.now().day;
|
|
3575
|
+
if (paymentDay === "1") {
|
|
3576
|
+
return currentDay === 1
|
|
3577
|
+
? luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy")
|
|
3578
|
+
: luxon.luxon.DateTime.now()
|
|
3579
|
+
.plus({ month: 1 })
|
|
3580
|
+
.startOf("month")
|
|
3581
|
+
.toFormat("LLL dd, yyyy");
|
|
3582
|
+
}
|
|
3583
|
+
else if (paymentDay === "15") {
|
|
3584
|
+
return currentDay <= 15
|
|
3585
|
+
? luxon.luxon.DateTime.now()
|
|
3586
|
+
.plus({ day: 15 - currentDay })
|
|
3587
|
+
.toFormat("LLL dd, yyyy")
|
|
3588
|
+
: luxon.luxon.DateTime.now()
|
|
3589
|
+
.plus({ month: 1 })
|
|
3590
|
+
.startOf("month")
|
|
3591
|
+
.plus({ day: 14 })
|
|
3592
|
+
.toFormat("LLL dd, yyyy");
|
|
3593
|
+
}
|
|
3594
|
+
else {
|
|
3595
|
+
global.intl.formatMessage({
|
|
3596
|
+
id: `nextPayoutBalance`,
|
|
3597
|
+
defaultMessage: props.thresholdPayoutText,
|
|
3598
|
+
}, {
|
|
3599
|
+
thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
|
|
3600
|
+
});
|
|
3601
|
+
}
|
|
3602
|
+
}
|
|
3603
|
+
const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
|
|
3604
|
+
const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
|
|
3605
|
+
return {
|
|
3606
|
+
states: {
|
|
3607
|
+
loading,
|
|
3608
|
+
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}`
|
|
3609
|
+
: undefined,
|
|
3610
|
+
balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
|
|
3611
|
+
badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
|
|
3612
|
+
? "thresholdPayout"
|
|
3613
|
+
: isPayoutToday
|
|
3614
|
+
? "payoutToday"
|
|
3615
|
+
: "nextPayout",
|
|
3616
|
+
payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
|
|
3617
|
+
error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
|
|
3618
|
+
paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
|
|
3619
|
+
cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
|
|
3620
|
+
nextPayoutDate: paymentDay,
|
|
3621
|
+
},
|
|
3622
|
+
text: props.getTextProps(),
|
|
3623
|
+
};
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3626
|
+
const PayoutDetailsCard = class {
|
|
3627
|
+
constructor(hostRef) {
|
|
3628
|
+
index.registerInstance(this, hostRef);
|
|
5261
3629
|
/**
|
|
5262
|
-
*
|
|
5263
|
-
* @uiName
|
|
5264
|
-
* @uiGroup General Form Properties
|
|
3630
|
+
* Badge text indicating payout status
|
|
3631
|
+
* @uiName Payout badge status text
|
|
5265
3632
|
*/
|
|
5266
|
-
this.
|
|
3633
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5267
3634
|
/**
|
|
5268
|
-
*
|
|
5269
|
-
* @uiName
|
|
5270
|
-
* @uiGroup General Form Properties
|
|
5271
|
-
* @uiWidget textArea
|
|
3635
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
3636
|
+
* @uiName Payout schedule by threshold text
|
|
5272
3637
|
*/
|
|
5273
|
-
this.
|
|
3638
|
+
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5274
3639
|
/**
|
|
5275
|
-
*
|
|
5276
|
-
* @uiName
|
|
5277
|
-
* @uiGroup General Form Properties
|
|
5278
|
-
* @uiWidget textArea
|
|
3640
|
+
* Shown before the participant’s bank account information.
|
|
3641
|
+
* @uiName Bank account field label
|
|
5279
3642
|
*/
|
|
5280
|
-
this.
|
|
3643
|
+
this.accountText = "Account";
|
|
5281
3644
|
/**
|
|
5282
|
-
*
|
|
5283
|
-
* @uiName
|
|
5284
|
-
* @uiGroup General Form Properties
|
|
3645
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
3646
|
+
* @uiName Payout missing information subtext
|
|
5285
3647
|
*/
|
|
5286
|
-
this.
|
|
3648
|
+
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5287
3649
|
/**
|
|
5288
|
-
*
|
|
5289
|
-
* @uiName Suport link text
|
|
5290
|
-
* @uiGroup General Form Properties
|
|
3650
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
5291
3651
|
*/
|
|
5292
|
-
this.
|
|
5293
|
-
|
|
3652
|
+
this.stateController = "{}";
|
|
3653
|
+
domContextHooks_module.h$1(this);
|
|
5294
3654
|
}
|
|
5295
3655
|
disconnectedCallback() { }
|
|
5296
|
-
|
|
5297
|
-
getGeneralStepTextProps(prefix) {
|
|
3656
|
+
getTextProps() {
|
|
5298
3657
|
const props = utils.getProps(this);
|
|
5299
3658
|
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,
|
|
3659
|
+
...props,
|
|
5317
3660
|
};
|
|
5318
3661
|
}
|
|
5319
3662
|
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);
|
|
3663
|
+
const props = index_module.isDemo()
|
|
3664
|
+
? useDemoPayoutDetailsCard(this)
|
|
3665
|
+
: usePayoutDetailsCard(this);
|
|
3666
|
+
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
5346
3667
|
}
|
|
5347
3668
|
};
|
|
5348
|
-
function
|
|
5349
|
-
const [step, setStep] = index_module.In({
|
|
5350
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5351
|
-
initialValue: "/1",
|
|
5352
|
-
});
|
|
3669
|
+
function useDemoPayoutDetailsCard(props) {
|
|
5353
3670
|
return cjs.cjs({
|
|
5354
|
-
|
|
5355
|
-
|
|
3671
|
+
states: {
|
|
3672
|
+
loading: false,
|
|
3673
|
+
error: false,
|
|
3674
|
+
thresholdBalance: "$50",
|
|
3675
|
+
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
3676
|
+
badgeStatus: "nextPayout",
|
|
3677
|
+
payoutType: "BANK_TRANSFER",
|
|
3678
|
+
nextPayoutDate: "March 14, 2024",
|
|
3679
|
+
paypalEmailAddress: "joesmith@example.com",
|
|
3680
|
+
otherCurrencies: false,
|
|
3681
|
+
hasW9Pending: false,
|
|
3682
|
+
hasDatePending: true,
|
|
3683
|
+
cardNumberPreview: "XX2381",
|
|
3684
|
+
balance: "20.00 USD",
|
|
3685
|
+
},
|
|
3686
|
+
text: props.getTextProps(),
|
|
5356
3687
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5357
3688
|
}
|
|
5358
3689
|
|
|
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",
|
|
3690
|
+
const style$5 = {
|
|
3691
|
+
DangerBadge: {
|
|
5381
3692
|
"&::part(base)": {
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
backgroundColor: "transparent",
|
|
5385
|
-
},
|
|
5386
|
-
"& sl-icon::part(base)": {
|
|
5387
|
-
color: "var(--sl-color-warning-500)",
|
|
3693
|
+
backgroundColor: "var(--sqm-danger-color-icon)",
|
|
3694
|
+
color: "var(--sl-color-white)",
|
|
5388
3695
|
},
|
|
5389
3696
|
},
|
|
5390
|
-
|
|
5391
|
-
marginLeft: "-20px",
|
|
3697
|
+
SuccessBadge: {
|
|
5392
3698
|
"&::part(base)": {
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
backgroundColor: "transparent",
|
|
5396
|
-
},
|
|
5397
|
-
"& sl-icon::part(base)": {
|
|
5398
|
-
color: "var(--sl-color-danger-500)",
|
|
3699
|
+
backgroundColor: "var(--sqm-success-color-icon)",
|
|
3700
|
+
color: "var(--sl-color-white)",
|
|
5399
3701
|
},
|
|
5400
3702
|
},
|
|
5401
|
-
|
|
3703
|
+
WarningBadge: {
|
|
5402
3704
|
"&::part(base)": {
|
|
5403
|
-
backgroundColor: "var(--
|
|
5404
|
-
|
|
3705
|
+
backgroundColor: "var(--sqm-warning-color-icon)",
|
|
3706
|
+
color: "var(--sl-color-white)",
|
|
5405
3707
|
},
|
|
5406
3708
|
},
|
|
5407
3709
|
BankingInformationContainer: {
|
|
@@ -5409,7 +3711,7 @@ const style$6 = {
|
|
|
5409
3711
|
},
|
|
5410
3712
|
IndirectTaxPreviewContainer: {
|
|
5411
3713
|
marginTop: "var(--sl-spacing-x-large)",
|
|
5412
|
-
borderTop: "1px solid var(--
|
|
3714
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
5413
3715
|
},
|
|
5414
3716
|
IndirectTaxPreviewHeaderContainer: {
|
|
5415
3717
|
marginTop: "var(--sl-spacing-large)",
|
|
@@ -5418,7 +3720,7 @@ const style$6 = {
|
|
|
5418
3720
|
display: "flex",
|
|
5419
3721
|
gap: "var(--sl-spacing-x-small)",
|
|
5420
3722
|
"&::part(base)": {
|
|
5421
|
-
color: "var(--
|
|
3723
|
+
color: "var(--sqm-success-color-text)",
|
|
5422
3724
|
},
|
|
5423
3725
|
},
|
|
5424
3726
|
IndirectTaxPreviewDetails: {
|
|
@@ -5432,11 +3734,11 @@ const style$6 = {
|
|
|
5432
3734
|
marginTop: "var(--sl-spacing-medium)",
|
|
5433
3735
|
},
|
|
5434
3736
|
NotRegisteredIndirectTaxText: {
|
|
5435
|
-
color: "var(--
|
|
3737
|
+
color: "var(--sqm-text-subdued)",
|
|
5436
3738
|
},
|
|
5437
3739
|
TaxDocumentsContainer: {
|
|
5438
3740
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
5439
|
-
borderTop: "1px solid var(--
|
|
3741
|
+
borderTop: "1px solid var(--sqm-border-color)",
|
|
5440
3742
|
},
|
|
5441
3743
|
TaxDocumentsSectionHeaderContainer: {
|
|
5442
3744
|
marginTop: "var(--sl-spacing-x-large)",
|
|
@@ -5453,7 +3755,7 @@ const style$6 = {
|
|
|
5453
3755
|
"& p": {
|
|
5454
3756
|
margin: "0",
|
|
5455
3757
|
paddingTop: "2px",
|
|
5456
|
-
color: "var(--
|
|
3758
|
+
color: "var(--sqm-text-subdued)",
|
|
5457
3759
|
},
|
|
5458
3760
|
},
|
|
5459
3761
|
StatusAlert: {
|
|
@@ -5488,7 +3790,7 @@ const style$6 = {
|
|
|
5488
3790
|
},
|
|
5489
3791
|
TaxDocSubtext: {
|
|
5490
3792
|
margin: "0",
|
|
5491
|
-
color: "var(--
|
|
3793
|
+
color: "var(--sqm-text-subdued)",
|
|
5492
3794
|
lineHeight: "var(--sl-spacing-medium)",
|
|
5493
3795
|
fontSize: "var(--sl-font-size-small)",
|
|
5494
3796
|
marginLeft: "1px",
|
|
@@ -5509,28 +3811,66 @@ const style$6 = {
|
|
|
5509
3811
|
gap: "6px",
|
|
5510
3812
|
},
|
|
5511
3813
|
DescriptionText: {
|
|
5512
|
-
color: "var(--
|
|
3814
|
+
color: "var(--sqm-text-subdued)",
|
|
5513
3815
|
fontSize: "var(--sl-font-size-x-small)",
|
|
5514
3816
|
marginBottom: "none",
|
|
5515
3817
|
maxWidth: "492px",
|
|
5516
3818
|
},
|
|
5517
3819
|
PageDescriptionText: {
|
|
5518
|
-
color: "var(--
|
|
3820
|
+
color: "var(--sqm-text-subdued)",
|
|
5519
3821
|
fontSize: "var(--sl-font-size-medium)",
|
|
5520
3822
|
marginTop: "0",
|
|
5521
3823
|
},
|
|
3824
|
+
WarningButton: {
|
|
3825
|
+
"&::part(base)": {
|
|
3826
|
+
marginTop: "20px",
|
|
3827
|
+
borderColor: "var(--sqm-warning-color-border)",
|
|
3828
|
+
color: "var(--sqm-warning-color-text)",
|
|
3829
|
+
background: "var(--sqm-warning-color-background)",
|
|
3830
|
+
"&:hover": {
|
|
3831
|
+
background: "var(--sqm-warning-color-icon)",
|
|
3832
|
+
},
|
|
3833
|
+
},
|
|
3834
|
+
},
|
|
3835
|
+
ErrorButton: {
|
|
3836
|
+
"&::part(base)": {
|
|
3837
|
+
marginTop: "20px",
|
|
3838
|
+
borderColor: "var(--sqm-danger-color-border)",
|
|
3839
|
+
color: "var(--sqm-danger-color-text)",
|
|
3840
|
+
background: "var(--sqm-danger-color-background)",
|
|
3841
|
+
"&:hover": {
|
|
3842
|
+
background: "var(--sqm-danger-color-icon)",
|
|
3843
|
+
},
|
|
3844
|
+
},
|
|
3845
|
+
},
|
|
3846
|
+
SuccessButton: {
|
|
3847
|
+
"&::part(base)": {
|
|
3848
|
+
marginTop: "20px",
|
|
3849
|
+
borderColor: "var(--sqm-success-color-border)",
|
|
3850
|
+
color: "var(--sqm-success-color-text)",
|
|
3851
|
+
background: "var(--sqm-success-color-background)",
|
|
3852
|
+
"&:hover": {
|
|
3853
|
+
background: "var(--sqm-success-color-icon)",
|
|
3854
|
+
},
|
|
3855
|
+
},
|
|
3856
|
+
},
|
|
5522
3857
|
Dialog: {
|
|
5523
3858
|
"&::part(panel)": {
|
|
5524
3859
|
maxWidth: "420px",
|
|
5525
3860
|
},
|
|
3861
|
+
"&::part(header)": {
|
|
3862
|
+
display: "flex",
|
|
3863
|
+
alignItems: "center",
|
|
3864
|
+
justifyContent: "center",
|
|
3865
|
+
paddingTop: "var(--sl-spacing-large)",
|
|
3866
|
+
},
|
|
5526
3867
|
"&::part(close-button)": {
|
|
5527
3868
|
marginBottom: "var(--sl-spacing-xx-large)",
|
|
5528
3869
|
},
|
|
5529
3870
|
"&::part(title)": {
|
|
5530
|
-
fontSize: "var(--sl-font-size-
|
|
3871
|
+
fontSize: "var(--sl-font-size-large)",
|
|
5531
3872
|
fontWeight: "600",
|
|
5532
|
-
|
|
5533
|
-
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
3873
|
+
padding: "0px var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
5534
3874
|
},
|
|
5535
3875
|
"&::part(body)": {
|
|
5536
3876
|
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
@@ -5547,10 +3887,20 @@ const style$6 = {
|
|
|
5547
3887
|
},
|
|
5548
3888
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5549
3889
|
};
|
|
5550
|
-
const
|
|
5551
|
-
|
|
3890
|
+
const vanillaStyle$3 = `
|
|
3891
|
+
* {
|
|
3892
|
+
font-family: var(--sqm-primary-font);
|
|
3893
|
+
}
|
|
3894
|
+
a {
|
|
3895
|
+
color: inherit;
|
|
3896
|
+
text-decoration: underline;
|
|
3897
|
+
cursor: pointer;
|
|
3898
|
+
}
|
|
3899
|
+
`;
|
|
3900
|
+
const sheet$4 = JSS.createStyleSheet(style$5);
|
|
3901
|
+
const styleString$4 = sheet$4.toString();
|
|
5552
3902
|
const TaxAndCashDashboardView = (props) => {
|
|
5553
|
-
var _a
|
|
3903
|
+
var _a;
|
|
5554
3904
|
const { states, text, callbacks, slots } = props;
|
|
5555
3905
|
function getAlert(status) {
|
|
5556
3906
|
switch (status) {
|
|
@@ -5565,8 +3915,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5565
3915
|
}),
|
|
5566
3916
|
buttonText: text.verificationRequiredButtonText,
|
|
5567
3917
|
alertType: "warning",
|
|
5568
|
-
icon: "exclamation-triangle",
|
|
5569
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5570
3918
|
};
|
|
5571
3919
|
case "VERIFICATION:INTERNAL":
|
|
5572
3920
|
return {
|
|
@@ -5578,8 +3926,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5578
3926
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5579
3927
|
}),
|
|
5580
3928
|
alertType: "warning",
|
|
5581
|
-
icon: "exclamation-triangle",
|
|
5582
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5583
3929
|
};
|
|
5584
3930
|
case "VERIFICATION:REVIEW":
|
|
5585
3931
|
return {
|
|
@@ -5591,8 +3937,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5591
3937
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5592
3938
|
}),
|
|
5593
3939
|
alertType: "warning",
|
|
5594
|
-
icon: "exclamation-triangle",
|
|
5595
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5596
3940
|
};
|
|
5597
3941
|
case "VERIFICATION:FAILED":
|
|
5598
3942
|
return {
|
|
@@ -5603,9 +3947,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5603
3947
|
}, {
|
|
5604
3948
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5605
3949
|
}),
|
|
5606
|
-
alertType: "
|
|
5607
|
-
icon: "exclamation-octagon",
|
|
5608
|
-
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
3950
|
+
alertType: "error",
|
|
5609
3951
|
};
|
|
5610
3952
|
case "HOLD":
|
|
5611
3953
|
return {
|
|
@@ -5618,24 +3960,22 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5618
3960
|
}),
|
|
5619
3961
|
buttonText: null,
|
|
5620
3962
|
alertType: "warning",
|
|
5621
|
-
icon: "exclamation-triangle",
|
|
5622
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5623
3963
|
};
|
|
5624
3964
|
default:
|
|
5625
3965
|
return;
|
|
5626
3966
|
}
|
|
5627
3967
|
}
|
|
5628
3968
|
const statusMap = {
|
|
5629
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
5630
|
-
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
3969
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
3970
|
+
index.h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5631
3971
|
index.h("p", null, global.intl.formatMessage({
|
|
5632
3972
|
id: `badgeTextAwaitingReview`,
|
|
5633
3973
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
5634
3974
|
}, {
|
|
5635
3975
|
dateSubmitted: states.dateSubmitted,
|
|
5636
3976
|
})))),
|
|
5637
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
5638
|
-
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
3977
|
+
ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
3978
|
+
index.h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
|
|
5639
3979
|
index.h("p", null, global.intl.formatMessage({
|
|
5640
3980
|
id: `badgeTextSubmittedOn`,
|
|
5641
3981
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5644,14 +3984,13 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5644
3984
|
}, {
|
|
5645
3985
|
dateSubmitted: states.dateSubmitted,
|
|
5646
3986
|
})))),
|
|
5647
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
5648
|
-
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
3987
|
+
INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
3988
|
+
index.h("sl-badge", { class: sheet$4.classes.DangerBadge, type: "danger", pill: true }, text.statusTextNotActive),
|
|
5649
3989
|
index.h("p", null, text.invalidForm))),
|
|
5650
3990
|
};
|
|
5651
3991
|
const alertMap = {
|
|
5652
|
-
INACTIVE: (index.h("
|
|
5653
|
-
index.h("
|
|
5654
|
-
index.h("strong", null, global.intl.formatMessage({
|
|
3992
|
+
INACTIVE: (index.h("sqm-form-message", { type: "error" },
|
|
3993
|
+
index.h("p", { part: "alert-title" }, global.intl.formatMessage({
|
|
5655
3994
|
id: `taxAlertHeaderNotActive`,
|
|
5656
3995
|
defaultMessage: states.documentType === "W9"
|
|
5657
3996
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -5659,7 +3998,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5659
3998
|
}, {
|
|
5660
3999
|
documentType: states.documentTypeString,
|
|
5661
4000
|
})),
|
|
5662
|
-
index.h("br", null),
|
|
5663
4001
|
global.intl.formatMessage({
|
|
5664
4002
|
id: `taxAlertMessage`,
|
|
5665
4003
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5697,78 +4035,74 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5697
4035
|
});
|
|
5698
4036
|
}
|
|
5699
4037
|
};
|
|
4038
|
+
const alert = getAlert(states.payoutStatus);
|
|
5700
4039
|
return (index.h("div", null,
|
|
5701
4040
|
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),
|
|
4041
|
+
index.h("style", { type: "text/css" }, styleString$4),
|
|
4042
|
+
index.h("style", { type: "text/css" }, vanillaStyle$3),
|
|
4043
|
+
states.loadingError && (index.h("sqm-form-message", { type: "error" },
|
|
4044
|
+
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
4045
|
+
global.intl.formatMessage({
|
|
4046
|
+
id: "loadingErrorAlertDescription",
|
|
4047
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
4048
|
+
}, {
|
|
4049
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4050
|
+
}))),
|
|
4051
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
|
|
4052
|
+
index.h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
5718
4053
|
global.intl.formatMessage({
|
|
5719
4054
|
id: "generalDescription",
|
|
5720
4055
|
defaultMessage: text.error.generalDescription,
|
|
5721
4056
|
}, {
|
|
5722
4057
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5723
4058
|
}))),
|
|
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 },
|
|
4059
|
+
alert && (index.h("sqm-form-message", { type: alert.alertType },
|
|
4060
|
+
index.h("p", { part: "alert-title" }, alert.header),
|
|
4061
|
+
index.h("p", { part: "alert-description" }, alert.description),
|
|
4062
|
+
alert.buttonText && (index.h("sl-button", { class: sheet$4.classes[`${utils.capitalizeFirstLetter(alert.alertType)}Button`], loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alert.buttonText)))),
|
|
4063
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5730
4064
|
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: "
|
|
4065
|
+
index.h("sl-button", { slot: "footer", type: "primary", exportparts: "base: primarybutton-base", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
4066
|
+
index.h("sl-button", { slot: "footer", type: "secondary", exportparts: "base: secondarybutton-base", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5733
4067
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5734
4068
|
index.h("div", null,
|
|
5735
4069
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5736
|
-
index.h("p", { class: sheet$
|
|
5737
|
-
index.h("div", { class: sheet$
|
|
4070
|
+
index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
4071
|
+
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5738
4072
|
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$
|
|
4073
|
+
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4074
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4075
|
+
index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4076
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4077
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4078
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
4079
|
+
index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
4080
|
+
index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
4081
|
+
index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4082
|
+
index.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5749
4083
|
index.h("h3", null, global.intl.formatMessage({
|
|
5750
4084
|
id: "section-subheader",
|
|
5751
4085
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5752
4086
|
}, {
|
|
5753
4087
|
documentType: states.documentTypeString,
|
|
5754
4088
|
})),
|
|
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$
|
|
4089
|
+
index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
4090
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { style: { marginTop: "20px" }, disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "primary", exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
4091
|
+
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4092
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4093
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
4094
|
+
index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5761
4095
|
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$
|
|
4096
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
4097
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
4098
|
+
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
4099
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
5766
4100
|
id: "notRegisteredForTax",
|
|
5767
4101
|
defaultMessage: text.notRegisteredForTax,
|
|
5768
4102
|
}, {
|
|
5769
4103
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5770
4104
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
5771
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
4105
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5772
4106
|
index.h("span", null, global.intl.formatMessage({
|
|
5773
4107
|
id: `indirectTaxDetails`,
|
|
5774
4108
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5791,7 +4125,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5791
4125
|
}, {
|
|
5792
4126
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5793
4127
|
})))),
|
|
5794
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
4128
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5795
4129
|
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
4130
|
index.h("sqm-invoice-table-download-column", null),
|
|
5797
4131
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -5815,12 +4149,12 @@ function getSubRegionName(regionCode) {
|
|
|
5815
4149
|
return "";
|
|
5816
4150
|
// Impact adds an underscore to some regions
|
|
5817
4151
|
const standardCode = regionCode.replace("_", "");
|
|
5818
|
-
const regions = [...
|
|
4152
|
+
const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5819
4153
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
5820
4154
|
}
|
|
5821
4155
|
function getIndirectTaxType(taxInformation) {
|
|
5822
4156
|
var _a;
|
|
5823
|
-
const regions = [...
|
|
4157
|
+
const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5824
4158
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
5825
4159
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
5826
4160
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -5831,23 +4165,23 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5831
4165
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
5832
4166
|
return "VAT";
|
|
5833
4167
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
5834
|
-
return
|
|
4168
|
+
return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
5835
4169
|
}
|
|
5836
4170
|
return "Indirect Tax";
|
|
5837
4171
|
}
|
|
5838
4172
|
const useTaxAndCashDashboard = (props) => {
|
|
5839
4173
|
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] =
|
|
4174
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
4175
|
+
const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
4176
|
+
const [showDialog, setShowDialog] = domContextHooks_module.useState(false);
|
|
5843
4177
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
5844
4178
|
const locale = index_module.L();
|
|
5845
|
-
|
|
4179
|
+
domContextHooks_module.useEffect(() => {
|
|
5846
4180
|
// Clear override context once on submitted
|
|
5847
4181
|
setContext({});
|
|
5848
4182
|
}, []);
|
|
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;
|
|
4183
|
+
const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
4184
|
+
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
4185
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5852
4186
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
5853
4187
|
const dateSubmitted = submissionDate
|
|
@@ -5870,9 +4204,9 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5870
4204
|
});
|
|
5871
4205
|
setStep("/3");
|
|
5872
4206
|
};
|
|
5873
|
-
const provinceName = (_d =
|
|
5874
|
-
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
5875
|
-
|
|
4207
|
+
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;
|
|
4208
|
+
const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
|
|
4209
|
+
domContextHooks_module.useEffect(() => {
|
|
5876
4210
|
const cb = () => refetch();
|
|
5877
4211
|
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5878
4212
|
return () => {
|
|
@@ -5884,7 +4218,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5884
4218
|
dateSubmitted,
|
|
5885
4219
|
documentType,
|
|
5886
4220
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
5887
|
-
documentTypeString:
|
|
4221
|
+
documentTypeString: utils$1.taxTypeToName(documentType),
|
|
5888
4222
|
status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
|
|
5889
4223
|
subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
|
|
5890
4224
|
subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
|
|
@@ -6222,7 +4556,7 @@ const TaxAndCashDashboard = class {
|
|
|
6222
4556
|
* @uiName Cancel button label
|
|
6223
4557
|
*/
|
|
6224
4558
|
this.cancelButton = "Cancel";
|
|
6225
|
-
|
|
4559
|
+
domContextHooks_module.h$1(this);
|
|
6226
4560
|
}
|
|
6227
4561
|
disconnectedCallback() { }
|
|
6228
4562
|
getTextProps() {
|
|
@@ -6247,23 +4581,31 @@ const TaxAndCashDashboard = class {
|
|
|
6247
4581
|
}
|
|
6248
4582
|
};
|
|
6249
4583
|
function useDemoTaxAndCashDashboard(props) {
|
|
4584
|
+
// const states = parseStates(props.stateController);
|
|
6250
4585
|
return cjs.cjs({
|
|
6251
4586
|
states: {
|
|
6252
4587
|
dateSubmitted: "today",
|
|
6253
4588
|
documentType: "W9",
|
|
6254
4589
|
documentTypeString: "W9",
|
|
6255
|
-
status: "ACTIVE",
|
|
6256
4590
|
country: "United States",
|
|
6257
|
-
indirectTaxNumber: 55555555,
|
|
4591
|
+
indirectTaxNumber: "55555555",
|
|
6258
4592
|
indirectTaxType: "Indirect Tax",
|
|
6259
|
-
noFormNeeded:
|
|
4593
|
+
noFormNeeded: false,
|
|
6260
4594
|
disabled: false,
|
|
6261
4595
|
loading: false,
|
|
6262
4596
|
showNewFormDialog: false,
|
|
6263
4597
|
hasHold: false,
|
|
6264
|
-
|
|
4598
|
+
subRegion: "CA",
|
|
4599
|
+
subRegionTaxNumber: undefined,
|
|
4600
|
+
qstNumber: undefined,
|
|
4601
|
+
isBusinessEntity: false,
|
|
4602
|
+
province: undefined,
|
|
4603
|
+
notRegistered: true,
|
|
4604
|
+
loadingError: false,
|
|
6265
4605
|
payoutStatus: "DONE",
|
|
6266
4606
|
veriffLoading: false,
|
|
4607
|
+
canEditPayoutInfo: true,
|
|
4608
|
+
status: "ACTIVE",
|
|
6267
4609
|
},
|
|
6268
4610
|
callbacks: {
|
|
6269
4611
|
onClick: () => console.debug("check step"),
|
|
@@ -6273,6 +4615,13 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6273
4615
|
onVerifyClick: () => console.log("verify"),
|
|
6274
4616
|
},
|
|
6275
4617
|
text: props.getTextProps(),
|
|
4618
|
+
slots: {
|
|
4619
|
+
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
|
|
4620
|
+
states: {
|
|
4621
|
+
badgeStatus: "nextPayout",
|
|
4622
|
+
},
|
|
4623
|
+
} })),
|
|
4624
|
+
},
|
|
6276
4625
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6277
4626
|
}
|
|
6278
4627
|
|
|
@@ -7247,19 +5596,19 @@ const PHONE_EXTENSIONS = {
|
|
|
7247
5596
|
},
|
|
7248
5597
|
};
|
|
7249
5598
|
|
|
7250
|
-
const style$
|
|
5599
|
+
const style$6 = {
|
|
7251
5600
|
FormWrapper: {},
|
|
7252
5601
|
ErrorInput: {
|
|
7253
5602
|
"&::part(base)": {
|
|
7254
|
-
border: "1px solid var(--
|
|
5603
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-icon)",
|
|
7255
5604
|
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
7256
5605
|
},
|
|
7257
5606
|
"&::part(help-text)": {
|
|
7258
|
-
color: "var(--
|
|
5607
|
+
color: "var(--sqm-danger-color-icon)",
|
|
7259
5608
|
},
|
|
7260
5609
|
},
|
|
7261
5610
|
ErrorText: {
|
|
7262
|
-
color: "var(--
|
|
5611
|
+
color: "var(--sqm-danger-color-icon)",
|
|
7263
5612
|
marginTop: "10px",
|
|
7264
5613
|
},
|
|
7265
5614
|
TextContainer: {
|
|
@@ -7290,9 +5639,6 @@ const style$7 = {
|
|
|
7290
5639
|
justifyContent: "flex-start",
|
|
7291
5640
|
flexDirection: "column",
|
|
7292
5641
|
},
|
|
7293
|
-
DescriptionText: {
|
|
7294
|
-
color: "var(--sl-color-neutral-500)",
|
|
7295
|
-
},
|
|
7296
5642
|
BoldText: {
|
|
7297
5643
|
fontWeight: "bold",
|
|
7298
5644
|
},
|
|
@@ -7301,28 +5647,8 @@ const style$7 = {
|
|
|
7301
5647
|
borderRadius: "50%",
|
|
7302
5648
|
},
|
|
7303
5649
|
},
|
|
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
5650
|
PageDescriptionText: {
|
|
7325
|
-
color: "var(--
|
|
5651
|
+
color: "var(--sqm-text-subdued)",
|
|
7326
5652
|
fontSize: "var(--sl-font-size-medium)",
|
|
7327
5653
|
},
|
|
7328
5654
|
PhoneInputsSection: {
|
|
@@ -7345,8 +5671,8 @@ const style$7 = {
|
|
|
7345
5671
|
},
|
|
7346
5672
|
},
|
|
7347
5673
|
};
|
|
7348
|
-
const sheet$
|
|
7349
|
-
const styleString$
|
|
5674
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5675
|
+
const styleString$5 = sheet$5.toString();
|
|
7350
5676
|
const vanillaStyle$4 = `
|
|
7351
5677
|
:host{
|
|
7352
5678
|
display: block;
|
|
@@ -7356,6 +5682,11 @@ const vanillaStyle$4 = `
|
|
|
7356
5682
|
padding: 0;
|
|
7357
5683
|
box-sizing: border-box;
|
|
7358
5684
|
}
|
|
5685
|
+
a {
|
|
5686
|
+
color: var(--sqm-text);
|
|
5687
|
+
color: inherit !important;
|
|
5688
|
+
text-decoration: underline;
|
|
5689
|
+
}
|
|
7359
5690
|
|
|
7360
5691
|
p {
|
|
7361
5692
|
line-height: 18px;
|
|
@@ -7370,11 +5701,149 @@ const vanillaStyle$4 = `
|
|
|
7370
5701
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
7371
5702
|
min-width: 250px;
|
|
7372
5703
|
}
|
|
7373
|
-
|
|
5704
|
+
|
|
5705
|
+
sl-button[type="primary"]::part(base){
|
|
5706
|
+
background-color: var(--sqm-primary-button-background);
|
|
5707
|
+
color: var(--sqm-primary-button-color);
|
|
5708
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
5709
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
5710
|
+
}
|
|
5711
|
+
|
|
5712
|
+
sl-button[type="primary"]::part(base):hover{
|
|
5713
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
5714
|
+
}
|
|
5715
|
+
|
|
5716
|
+
sl-button[type="primary"]::part(base):focus{
|
|
5717
|
+
box-shadow: none;
|
|
5718
|
+
}
|
|
5719
|
+
|
|
5720
|
+
sl-button[type="secondary"]::part(base){
|
|
5721
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5722
|
+
color: var(--sqm-secondary-button-color);
|
|
5723
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5724
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5725
|
+
}
|
|
5726
|
+
|
|
5727
|
+
sl-button[type="secondary"]::part(base):hover{
|
|
5728
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
5729
|
+
}
|
|
5730
|
+
|
|
5731
|
+
|
|
5732
|
+
|
|
5733
|
+
*::part(primarybutton-base){
|
|
5734
|
+
background-color: var(--sqm-primary-button-background);
|
|
5735
|
+
color: var(--sqm-primary-button-color);
|
|
5736
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
5737
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
5738
|
+
}
|
|
5739
|
+
|
|
5740
|
+
*::part(primarybutton-base):hover{
|
|
5741
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
5742
|
+
}
|
|
5743
|
+
|
|
5744
|
+
*::part(primarybutton-base):focus{
|
|
5745
|
+
box-shadow: none;
|
|
5746
|
+
}
|
|
5747
|
+
|
|
5748
|
+
*::part(secondarybutton-base){
|
|
5749
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5750
|
+
color: var(--sqm-secondary-button-color);
|
|
5751
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5752
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5753
|
+
}
|
|
5754
|
+
|
|
5755
|
+
*::part(secondarybutton-base):hover{
|
|
5756
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
5757
|
+
}
|
|
5758
|
+
|
|
5759
|
+
*::part(secondarybutton-base){
|
|
5760
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5761
|
+
color: var(--sqm-secondary-button-color);
|
|
5762
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5763
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5764
|
+
width: max-content;
|
|
5765
|
+
display: flex;
|
|
5766
|
+
margin: auto;
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5769
|
+
*::part(secondarybutton-base):hover{
|
|
5770
|
+
background: var(--sqm-secondary-button-background-hover);
|
|
5771
|
+
}
|
|
5772
|
+
|
|
5773
|
+
sl-input::part(label),
|
|
5774
|
+
sl-select::part(label),
|
|
5775
|
+
sl-textarea::part(label){
|
|
5776
|
+
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
5777
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
5778
|
+
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5781
|
+
/* Corrected: Target sl-input, sl-select, sl-textarea base elements */
|
|
5782
|
+
sl-input::part(base),
|
|
5783
|
+
sl-dropdown::part(base),
|
|
5784
|
+
sl-textarea::part(base){
|
|
5785
|
+
background-color: var(--sqm-input-background, #fff);
|
|
5786
|
+
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
5787
|
+
color: var(--sqm-input-color, white);
|
|
5788
|
+
border-width: var(--sqm-border-thickness, 1px);
|
|
5789
|
+
border-style: solid;
|
|
5790
|
+
border-color: var(--sqm-input-border-color, #ccc);
|
|
5791
|
+
}
|
|
5792
|
+
|
|
5793
|
+
|
|
5794
|
+
sl-select::part(menu) {
|
|
5795
|
+
background: var(--sqm-input-background, inherit);
|
|
5796
|
+
color: var(--sqm-input-color, inherit);
|
|
5797
|
+
border:none;
|
|
5798
|
+
}
|
|
5799
|
+
|
|
5800
|
+
sl-select::part(panel) {
|
|
5801
|
+
border-radius: var(--sqm-border-radius-normal);
|
|
5802
|
+
}
|
|
5803
|
+
|
|
5804
|
+
sl-select::part(help-text) {
|
|
5805
|
+
color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
|
|
5806
|
+
}
|
|
5807
|
+
|
|
5808
|
+
sl-input::part(base):focus,
|
|
5809
|
+
sl-select::part(base):focus, /* Corrected part name for sl-select */
|
|
5810
|
+
sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
|
|
5811
|
+
border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
|
|
5812
|
+
}
|
|
5813
|
+
|
|
5814
|
+
sl-input[disabled]::part(label),
|
|
5815
|
+
sl-select[disabled]::part(label),
|
|
5816
|
+
sl-textarea[disabled]::part(label){
|
|
5817
|
+
color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
|
|
5818
|
+
}
|
|
5819
|
+
|
|
5820
|
+
sl-input[disabled]::part(base),
|
|
5821
|
+
sl-select[disabled]::part(base),
|
|
5822
|
+
sl-textarea[disabled]::part(base){
|
|
5823
|
+
background: var(--sqm-input-disabled-background, #f5f5f5);
|
|
5824
|
+
border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
|
|
5825
|
+
}
|
|
5826
|
+
|
|
5827
|
+
|
|
5828
|
+
sl-input::part(input):-webkit-autofill {
|
|
5829
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5830
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5831
|
+
}
|
|
5832
|
+
|
|
5833
|
+
sl-input::part(input):-webkit-autofill:hover {
|
|
5834
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5835
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5836
|
+
}
|
|
5837
|
+
|
|
5838
|
+
sl-input::part(input):-webkit-autofill:focus {
|
|
5839
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5840
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5841
|
+
}
|
|
5842
|
+
`;
|
|
7374
5843
|
const UserInfoFormView = (props) => {
|
|
7375
5844
|
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$
|
|
5845
|
+
const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
|
|
5846
|
+
const { classes } = sheet$5;
|
|
7378
5847
|
const bankingCollectionText = global.intl.formatMessage({
|
|
7379
5848
|
id: "bankingCollectionText",
|
|
7380
5849
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -7382,7 +5851,7 @@ const UserInfoFormView = (props) => {
|
|
|
7382
5851
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
7383
5852
|
});
|
|
7384
5853
|
let regionLabel = undefined;
|
|
7385
|
-
switch (data.regionLabelEnum) {
|
|
5854
|
+
switch (data$1.regionLabelEnum) {
|
|
7386
5855
|
case "STATE":
|
|
7387
5856
|
regionLabel = text.state;
|
|
7388
5857
|
break;
|
|
@@ -7397,65 +5866,58 @@ const UserInfoFormView = (props) => {
|
|
|
7397
5866
|
}
|
|
7398
5867
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
7399
5868
|
index.h("style", { type: "text/css" },
|
|
7400
|
-
styleString$
|
|
5869
|
+
styleString$5,
|
|
7401
5870
|
vanillaStyle$4),
|
|
7402
5871
|
states.loadingError && (index.h("div", null,
|
|
7403
|
-
index.h("
|
|
7404
|
-
index.h("
|
|
7405
|
-
index.h("
|
|
7406
|
-
index.h("br", null),
|
|
7407
|
-
global.intl.formatMessage({
|
|
5872
|
+
index.h("sqm-form-message", { type: "error" },
|
|
5873
|
+
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
5874
|
+
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
7408
5875
|
id: "loadingErrorAlertDescription",
|
|
7409
5876
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
7410
5877
|
}, {
|
|
7411
5878
|
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,
|
|
5879
|
+
}))))),
|
|
5880
|
+
states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
|
|
7415
5881
|
index.h("div", { class: classes.TextContainer },
|
|
7416
5882
|
index.h("div", null,
|
|
7417
5883
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
7418
5884
|
id: "formStep",
|
|
7419
5885
|
defaultMessage: text.formStep,
|
|
7420
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
5886
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
7421
5887
|
index.h("h3", null, text.personalInformation),
|
|
7422
5888
|
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({
|
|
5889
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
|
|
5890
|
+
index.h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
5891
|
+
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
7428
5892
|
id: "generalDescription",
|
|
7429
5893
|
defaultMessage: text.error.generalDescription,
|
|
7430
5894
|
}, {
|
|
7431
5895
|
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({
|
|
5896
|
+
})))),
|
|
5897
|
+
(states.isPartner || states.isUser) && (index.h("sqm-form-message", { type: "info" },
|
|
5898
|
+
index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
5899
|
+
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
7438
5900
|
id: "isPartnerAlertDescription",
|
|
7439
5901
|
defaultMessage: text.isPartnerAlertDescription,
|
|
7440
5902
|
}, {
|
|
7441
5903
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7442
|
-
}))),
|
|
5904
|
+
})))),
|
|
7443
5905
|
index.h("div", null,
|
|
7444
5906
|
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) ? {
|
|
5907
|
+
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
5908
|
class: classes.ErrorInput,
|
|
7447
|
-
helpText:
|
|
5909
|
+
helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
7448
5910
|
}
|
|
7449
5911
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
7450
5912
|
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
5913
|
class: classes.ErrorInput,
|
|
7452
|
-
helpText:
|
|
5914
|
+
helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
7453
5915
|
}
|
|
7454
5916
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
7455
5917
|
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
5918
|
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
5919
|
class: classes.ErrorInput,
|
|
7458
|
-
helpText:
|
|
5920
|
+
helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
7459
5921
|
}
|
|
7460
5922
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
7461
5923
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
@@ -7463,8 +5925,8 @@ const UserInfoFormView = (props) => {
|
|
|
7463
5925
|
e.stopPropagation();
|
|
7464
5926
|
}, "onSl-input": (e) => {
|
|
7465
5927
|
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 :
|
|
5928
|
+
} }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
|
|
5929
|
+
_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
5930
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
7469
5931
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
7470
5932
|
index.h("p", null, text.phoneNumber),
|
|
@@ -7478,13 +5940,13 @@ const UserInfoFormView = (props) => {
|
|
|
7478
5940
|
e.stopPropagation();
|
|
7479
5941
|
}, "onSl-input": (e) => {
|
|
7480
5942
|
callbacks.setPhoneCountrySearch(e.target.value);
|
|
7481
|
-
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
5943
|
+
} }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
7482
5944
|
_h.map((c) => {
|
|
7483
5945
|
var _a, _b;
|
|
7484
5946
|
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
7485
5947
|
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
5948
|
_b.dial_code));
|
|
7487
|
-
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
5949
|
+
}), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
|
|
7488
5950
|
_j.map((c) => {
|
|
7489
5951
|
var _a, _b;
|
|
7490
5952
|
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
@@ -7493,42 +5955,42 @@ const UserInfoFormView = (props) => {
|
|
|
7493
5955
|
})),
|
|
7494
5956
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
7495
5957
|
// Naive phone number validation
|
|
7496
|
-
|
|
7497
|
-
|
|
5958
|
+
utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
5959
|
+
utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
7498
5960
|
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
7499
5961
|
class: classes.ErrorInput,
|
|
7500
|
-
helpText:
|
|
5962
|
+
helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
7501
5963
|
}
|
|
7502
5964
|
: {}), { required: true })))),
|
|
7503
5965
|
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
5966
|
// Checks for non-ASCII characters
|
|
7505
|
-
!
|
|
7506
|
-
|
|
5967
|
+
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
5968
|
+
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
5969
|
class: classes.ErrorInput,
|
|
7508
|
-
helpText:
|
|
5970
|
+
helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
|
|
7509
5971
|
}
|
|
7510
5972
|
: {}), { required: true })),
|
|
7511
5973
|
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
5974
|
// Checks for non-ASCII characters
|
|
7513
|
-
!
|
|
7514
|
-
|
|
5975
|
+
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
5976
|
+
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
5977
|
class: classes.ErrorInput,
|
|
7516
|
-
helpText:
|
|
5978
|
+
helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
|
|
7517
5979
|
}
|
|
7518
5980
|
: {}), { required: true })),
|
|
7519
5981
|
!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
5982
|
class: classes.ErrorInput,
|
|
7521
|
-
helpText:
|
|
5983
|
+
helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
|
|
7522
5984
|
}
|
|
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))))),
|
|
5985
|
+
: {}), { 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
5986
|
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
5987
|
class: classes.ErrorInput,
|
|
7526
|
-
helpText:
|
|
5988
|
+
helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
7527
5989
|
}
|
|
7528
5990
|
: {}), { required: true })),
|
|
7529
5991
|
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
5992
|
class: classes.ErrorInput,
|
|
7531
|
-
helpText:
|
|
5993
|
+
helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
|
|
7532
5994
|
}
|
|
7533
5995
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
7534
5996
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
@@ -7536,11 +5998,11 @@ const UserInfoFormView = (props) => {
|
|
|
7536
5998
|
e.stopPropagation();
|
|
7537
5999
|
}, "onSl-input": (e) => {
|
|
7538
6000
|
callbacks.setCurrencySearch(e.target.value);
|
|
7539
|
-
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6001
|
+
} }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
|
|
7540
6002
|
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
7541
6003
|
c.currencyCode,
|
|
7542
6004
|
" - ",
|
|
7543
|
-
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6005
|
+
c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
7544
6006
|
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
7545
6007
|
c.currencyCode,
|
|
7546
6008
|
" - ",
|
|
@@ -7549,36 +6011,36 @@ const UserInfoFormView = (props) => {
|
|
|
7549
6011
|
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
7550
6012
|
e.target.value = e.target.checked;
|
|
7551
6013
|
}, 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 },
|
|
6014
|
+
((_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
6015
|
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
7554
6016
|
};
|
|
7555
6017
|
|
|
7556
6018
|
function useUserInfoForm(props) {
|
|
7557
6019
|
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
|
-
|
|
6020
|
+
const currencyRef = domContextHooks_module.useRef(undefined);
|
|
6021
|
+
const phoneCountryRef = domContextHooks_module.useRef(undefined);
|
|
6022
|
+
const formRef = domContextHooks_module.useRef(null);
|
|
6023
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
6024
|
+
const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
|
|
6025
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
6026
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
6027
|
+
const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
6028
|
+
const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
|
|
6029
|
+
const currencies = domContextHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6030
|
+
const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
|
|
6031
|
+
const [phoneCountrySearch, setPhoneCountrySearch] = domContextHooks_module.useState("");
|
|
6032
|
+
const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(countries || []);
|
|
6033
|
+
const [filteredPhoneCountries, setFilteredPhoneCountries] = domContextHooks_module.useState(countries || []);
|
|
6034
|
+
const [currencySearch, setCurrencySearch] = domContextHooks_module.useState("");
|
|
6035
|
+
const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(currencies || []);
|
|
6036
|
+
const [formErrors, setErrors] = domContextHooks_module.useState({});
|
|
6037
|
+
domContextHooks_module.useEffect(() => {
|
|
7576
6038
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7577
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6039
|
+
const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
|
|
7578
6040
|
if (!user || step !== "/1")
|
|
7579
6041
|
return;
|
|
7580
6042
|
// If form already filled out, skip initialising it
|
|
7581
|
-
if (
|
|
6043
|
+
if (utils$1.objectIsFull(userFormContext))
|
|
7582
6044
|
return;
|
|
7583
6045
|
// Prefer MI email if it was verified before this
|
|
7584
6046
|
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
@@ -7615,7 +6077,7 @@ function useUserInfoForm(props) {
|
|
|
7615
6077
|
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
7616
6078
|
});
|
|
7617
6079
|
}
|
|
7618
|
-
}, [data, step, userFormContext]);
|
|
6080
|
+
}, [data$1, step, userFormContext]);
|
|
7619
6081
|
const onFormChange = (field, e) => {
|
|
7620
6082
|
var _a, _b;
|
|
7621
6083
|
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
@@ -7630,7 +6092,7 @@ function useUserInfoForm(props) {
|
|
|
7630
6092
|
currencyRef.current.value = "";
|
|
7631
6093
|
}
|
|
7632
6094
|
};
|
|
7633
|
-
|
|
6095
|
+
domContextHooks_module.useEffect(() => {
|
|
7634
6096
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
7635
6097
|
return;
|
|
7636
6098
|
if (countrySearch.trim() === "") {
|
|
@@ -7640,7 +6102,7 @@ function useUserInfoForm(props) {
|
|
|
7640
6102
|
setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
|
|
7641
6103
|
}
|
|
7642
6104
|
}, [countrySearch, countries]);
|
|
7643
|
-
|
|
6105
|
+
domContextHooks_module.useEffect(() => {
|
|
7644
6106
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
7645
6107
|
return;
|
|
7646
6108
|
if (phoneCountrySearch.trim() === "") {
|
|
@@ -7650,7 +6112,7 @@ function useUserInfoForm(props) {
|
|
|
7650
6112
|
setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
|
|
7651
6113
|
}
|
|
7652
6114
|
}, [phoneCountrySearch, countries]);
|
|
7653
|
-
|
|
6115
|
+
domContextHooks_module.useEffect(() => {
|
|
7654
6116
|
if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
|
|
7655
6117
|
return;
|
|
7656
6118
|
if (currencySearch.trim() === "") {
|
|
@@ -7707,7 +6169,7 @@ function useUserInfoForm(props) {
|
|
|
7707
6169
|
}
|
|
7708
6170
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
7709
6171
|
const regionObj = hasStates
|
|
7710
|
-
?
|
|
6172
|
+
? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
7711
6173
|
: {};
|
|
7712
6174
|
return {
|
|
7713
6175
|
setStep: setStep,
|
|
@@ -7740,8 +6202,8 @@ function useUserInfoForm(props) {
|
|
|
7740
6202
|
disabled: loading,
|
|
7741
6203
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
7742
6204
|
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),
|
|
6205
|
+
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),
|
|
6206
|
+
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
6207
|
formState: {
|
|
7746
6208
|
...userFormContext,
|
|
7747
6209
|
errors: formErrors,
|
|
@@ -7904,7 +6366,7 @@ const TaxForm = class {
|
|
|
7904
6366
|
* @uiName Support link text
|
|
7905
6367
|
*/
|
|
7906
6368
|
this.supportLink = "support team";
|
|
7907
|
-
|
|
6369
|
+
domContextHooks_module.h$1(this);
|
|
7908
6370
|
}
|
|
7909
6371
|
disconnectedCallback() { }
|
|
7910
6372
|
getTextProps() {
|
|
@@ -7924,19 +6386,20 @@ const TaxForm = class {
|
|
|
7924
6386
|
}
|
|
7925
6387
|
render() {
|
|
7926
6388
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
7927
|
-
return (index.h(
|
|
6389
|
+
return (index.h(UserInfoFormView, { data: props.data,
|
|
7928
6390
|
// @ts-ignore
|
|
7929
6391
|
states: props.states, callbacks: {
|
|
7930
6392
|
...props.callbacks,
|
|
7931
6393
|
onSubmit: props.onSubmit,
|
|
7932
|
-
}, text: props.text, refs: props.refs }))
|
|
6394
|
+
}, text: props.text, refs: props.refs }));
|
|
7933
6395
|
}
|
|
7934
6396
|
};
|
|
7935
6397
|
function useDemoUserInfoForm(props) {
|
|
7936
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6398
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
6399
|
+
// @ts-ignore
|
|
7937
6400
|
return cjs.cjs({
|
|
7938
6401
|
setStep,
|
|
7939
|
-
onSubmit: () => {
|
|
6402
|
+
onSubmit: async () => {
|
|
7940
6403
|
setStep("/2");
|
|
7941
6404
|
},
|
|
7942
6405
|
onRadioClick: () => { },
|
|
@@ -7980,19 +6443,12 @@ function useDemoUserInfoForm(props) {
|
|
|
7980
6443
|
}
|
|
7981
6444
|
|
|
7982
6445
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
7983
|
-
exports.sqm_code_verification = WidgetCodeVerification;
|
|
7984
6446
|
exports.sqm_docusign_form = DocusignForm;
|
|
7985
6447
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
7986
6448
|
exports.sqm_invoice_table = InvoiceTable;
|
|
7987
|
-
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
7988
6449
|
exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
|
|
7989
|
-
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
7990
6450
|
exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
|
|
7991
|
-
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
7992
6451
|
exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
|
|
7993
6452
|
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
6453
|
exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
|
|
7998
6454
|
exports.sqm_user_info_form = TaxForm;
|