@saasquatch/mint-components 1.15.0-1 → 1.15.0-100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{GenericTableView-a9f4ba75.js → GenericTableView-a9845e80.js} +8 -8
- package/dist/cjs/IndirectTaxDetailsView-282c1fda.js +646 -0
- package/dist/cjs/{ShadowViewAddon-787391f7.js → ShadowViewAddon-43eb56c9.js} +1489 -1334
- package/dist/cjs/copy-text-view-f3f1d00a.js +122 -0
- 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-e31dc4f5.js → global-4cd8623e.js} +11903 -11625
- 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} +872 -2448
- package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.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} +1196 -300
- 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 +58 -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 +7 -7
- 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-7ebb426a.js → sqm-portal-email-verification-view-5a22b152.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-forgot-password-view-78f19ef9.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-761a4d8e.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-33164798.js → sqm-portal-profile-view-4dbfeaeb.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-637a4bf4.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-fe602822.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-7b678f34.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-15dfc0b6.js → sqm-qr-code-view-0c3b2f48.js} +10 -10
- package/dist/cjs/sqm-qr-code.cjs.entry.js +12 -13
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +133 -46
- 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 +84 -37
- 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 +13711 -12407
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +27 -13
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1254 -0
- package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +25 -13
- package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
- package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
- package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-3b34dab1.js} +13 -10
- package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-6aa864ef.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
- package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
- package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
- package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
- package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
- package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
- package/dist/cjs/utils-aacb4233.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 -8
- 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-card-feed/sqm-card-feed.js +1 -1
- 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 +170 -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 +62 -3
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +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-header-logo/sqm-header-logo.js +1 -0
- 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 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +80 -0
- package/dist/collection/components/sqm-image/sqm-image.js +1 -0
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +4 -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 +60 -54
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +202 -36
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +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-menu/sqm-navigation-menu.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 +85 -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 +2 -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 -0
- 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 +2 -1
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +1 -0
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +1 -0
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +1 -0
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +2 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +12 -4
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +1 -0
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +1 -0
- 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 +81 -10
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +170 -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 +29 -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 -20
- 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 +4 -1
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +3 -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 +50 -7
- 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 +6 -5
- 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 +4 -2
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-route/sqm-route.js +1 -0
- package/dist/collection/components/sqm-router/sqm-router.js +2 -0
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +1 -0
- 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 +57 -10
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +170 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +13 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +172 -3
- 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 +111 -3
- 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 +30 -2
- package/dist/collection/components/sqm-task-card/DetailsView.js +8 -2
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +139 -157
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +147 -4
- package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
- package/dist/collection/components/sqm-text/Text.stories.js +12 -0
- package/dist/collection/components/sqm-text/sqm-text.js +101 -48
- 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 +52 -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-timeline/sqm-timeline.js +3 -1
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +138 -14
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -7
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +45 -8
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +30 -9
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +54 -69
- 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 +58 -75
- 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 +54 -71
- 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 +283 -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 +49 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +167 -54
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/components/views/copy-text-view.js +64 -38
- 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 +8 -8
- package/dist/collection/global/styles.js +330 -99
- package/dist/collection/global/styles.ts +419 -100
- package/dist/collection/insertfont.js +18 -0
- package/dist/collection/stories/PortalTemplates.stories.js +22 -30
- package/dist/collection/tables/GenericTableView.js +6 -6
- package/dist/collection/utils/parseStates.js +12 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-e43d310f.js} +8 -8
- package/dist/esm/IndirectTaxDetailsView-5e60d91f.js +639 -0
- package/dist/esm/{ShadowViewAddon-cf230f50.js → ShadowViewAddon-c1c75c4f.js} +1489 -1333
- package/dist/esm/copy-text-view-9289f141.js +120 -0
- 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-be1f9992.js → global-f97ae778.js} +11899 -11622
- 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} +721 -2290
- package/dist/esm/{sqm-base-registration-form-view-593d4ac3.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} +1108 -214
- 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 +55 -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 +6 -6
- 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-35b4353b.js → sqm-portal-email-verification-view-98fc3374.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
- package/dist/esm/{sqm-portal-forgot-password-view-3d3182f1.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-7e49609a.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-93003974.js → sqm-portal-profile-view-25b3250a.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-3c1f6000.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-54a8651f.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-b12cb894.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-f1d0763b.js → sqm-qr-code-view-97124a66.js} +9 -9
- package/dist/esm/sqm-qr-code.entry.js +6 -7
- package/dist/esm/sqm-referral-table_11.entry.js +122 -35
- 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 +72 -25
- 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 +13703 -12399
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +24 -10
- package/dist/esm/sqm-tax-and-cash.entry.js +1250 -0
- package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
- package/dist/esm/sqm-text-span.entry.js +6 -6
- package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
- package/dist/esm/sqm-widget-verification.entry.js +22 -10
- package/dist/esm/{useChildElements-7945ae56.js → useChildElements-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-e1cdc479.js +97 -0
- package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
- package/dist/esm-es5/IndirectTaxDetailsView-5e60d91f.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-c1c75c4f.js +1 -0
- package/dist/esm-es5/copy-text-view-9289f141.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-be1f9992.js → global-f97ae778.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-593d4ac3.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-35b4353b.js → sqm-portal-email-verification-view-98fc3374.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-93003974.js → sqm-portal-profile-view-25b3250a.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-3c1f6000.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-54a8651f.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-b12cb894.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-e1cdc479.js +1 -0
- package/dist/mint-components/global/styles.ts +419 -100
- 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-f940190a.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-11500698.entry.js +25 -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-14959d73.system.entry.js +1 -0
- package/dist/mint-components/{p-7c2b9fe4.system.js → p-15012f59.system.js} +1 -1
- 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-1c727332.entry.js +1 -0
- 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-a2fde301.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-90fc6774.system.entry.js → p-258f4e5e.system.entry.js} +1 -1
- package/dist/mint-components/p-2ed4f8fe.system.js +1 -0
- package/dist/mint-components/p-2f2bff39.entry.js +1 -0
- package/dist/mint-components/p-3285a6b3.system.entry.js +1 -0
- package/dist/mint-components/{p-c0f19490.js → p-3787a4d6.js} +1 -1
- package/dist/mint-components/p-3836d1e2.entry.js +1 -0
- package/dist/mint-components/p-3cb249c3.js +1 -0
- package/dist/mint-components/{p-50c902ca.system.entry.js → p-3d05ebb1.system.entry.js} +1 -1
- 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-3ea3f5e3.system.entry.js +1 -0
- package/dist/mint-components/{p-7a9290ba.js → p-3eba9036.js} +1 -1
- 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-6d2f5a1d.js → p-4d19270b.js} +2 -2
- package/dist/mint-components/p-4f5329a2.system.js +53 -0
- package/dist/mint-components/{p-59274a91.system.js → p-578a27c8.system.js} +1 -1
- package/dist/mint-components/p-57970440.js +1233 -0
- package/dist/mint-components/p-587115cb.system.entry.js +1 -0
- package/dist/mint-components/p-595aedb6.entry.js +13 -0
- package/dist/mint-components/p-5968c6bd.js +1 -0
- package/dist/mint-components/p-59b028db.system.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-5ff2da11.js +1 -0
- package/dist/mint-components/p-63e29387.js +42 -0
- package/dist/mint-components/{p-99ad7d56.system.js → p-64997b59.system.js} +1 -1
- package/dist/mint-components/{p-b75bb6e3.system.js → p-6578ea31.system.js} +1 -1
- package/dist/mint-components/p-66c14cb2.system.entry.js +1 -0
- 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-91ab3da1.js → p-68043f30.js} +1 -1
- package/dist/mint-components/p-6906ef5d.system.entry.js +1 -0
- 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-69f09f58.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-6d290019.js +1 -0
- package/dist/mint-components/p-6e069052.entry.js +1 -0
- package/dist/mint-components/{p-bbcd824a.js → p-6ef73224.js} +1 -1
- 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-63a75798.js → p-750e7b01.js} +1 -1
- package/dist/mint-components/p-75584f9e.entry.js +11 -0
- package/dist/mint-components/p-77d2244b.system.js +1 -0
- package/dist/mint-components/p-783afc04.entry.js +258 -0
- package/dist/mint-components/p-7970e73a.js +1 -0
- package/dist/mint-components/p-797fd8d9.system.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-843f1ba8.system.entry.js +1 -0
- package/dist/mint-components/{p-3f7b81b8.js → p-862845d7.js} +2 -2
- package/dist/mint-components/p-88b63a7c.entry.js +93 -0
- package/dist/mint-components/p-8a6494c7.system.js +1 -0
- package/dist/mint-components/p-8caef004.js +1 -0
- package/dist/mint-components/{p-0d2d0b6d.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-901cb538.system.entry.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-916100a9.js +1 -0
- package/dist/mint-components/p-926f17f9.system.js +1 -0
- package/dist/mint-components/p-9374b5bb.system.entry.js +1 -0
- package/dist/mint-components/{p-7f80a9d7.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-d07f3090.entry.js → p-9aadc253.entry.js} +1 -1
- package/dist/mint-components/p-9e297104.entry.js +1 -0
- package/dist/mint-components/p-9f3e7e48.entry.js +13 -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-f0772618.system.entry.js → p-a2533860.system.entry.js} +1 -1
- package/dist/mint-components/p-a2d3974f.entry.js +9 -0
- package/dist/mint-components/{p-cd569259.system.js → p-a392912a.system.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-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-b1a2a83b.entry.js +144 -0
- package/dist/mint-components/{p-d6831af5.js → p-b22b7891.js} +1 -1
- package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-b3da317b.system.entry.js} +1 -1
- package/dist/mint-components/p-b51fce78.system.js +1 -0
- package/dist/mint-components/{p-e5d0375e.system.js → p-b6911812.system.js} +1 -1
- package/dist/mint-components/{p-1a6b7d2a.entry.js → p-b9bccc55.entry.js} +1 -1
- package/dist/mint-components/p-bab57520.system.entry.js +1 -0
- package/dist/mint-components/p-bad50dc1.entry.js +1 -0
- package/dist/mint-components/{p-0d182dc1.system.js → p-bb12b845.system.js} +1 -1
- package/dist/mint-components/{p-53730ffe.entry.js → p-bb627d95.entry.js} +3 -3
- package/dist/mint-components/p-be88596c.system.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-c4886223.entry.js +1 -0
- package/dist/mint-components/p-c676ed3b.system.entry.js +1 -0
- package/dist/mint-components/p-c726f778.system.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-cab1f502.js +1 -0
- package/dist/mint-components/{p-a71b9154.system.js → p-d399162b.system.js} +1 -1
- package/dist/mint-components/p-d478c77d.js +448 -0
- package/dist/mint-components/{p-2f101bae.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-da3ffd4e.system.entry.js +1 -0
- package/dist/mint-components/{p-9386ad84.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-91959fbe.js → p-ddf3c05e.js} +1 -1
- package/dist/mint-components/{p-10d17989.entry.js → p-e0f9a395.entry.js} +1 -1
- 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-b287833c.system.entry.js → p-e55f3eb6.system.entry.js} +1 -1
- package/dist/mint-components/p-e57d61af.system.js +1 -0
- package/dist/mint-components/p-eaeddfe2.system.js +1 -0
- package/dist/mint-components/{p-5c28406d.system.entry.js → p-ebb487d0.system.entry.js} +1 -1
- package/dist/mint-components/p-ecc5faba.entry.js +33 -0
- 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-bdb7d451.system.js → p-f1f20fdf.system.js} +22 -22
- package/dist/mint-components/{p-05f29f64.js → p-f307b716.js} +1 -1
- 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-19bc3406.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-card-feed/sqm-card-feed.d.ts +1 -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 +43 -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 +15 -0
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
- 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 -1
- 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 +20 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -0
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +2 -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 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +53 -11
- 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-menu/sqm-navigation-menu.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 +16 -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-change-password/sqm-portal-change-password.d.ts +1 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +1 -0
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -0
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +1 -0
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +2 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +20 -2
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +1 -0
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +1 -0
- 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 +25 -2
- 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 +43 -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 +7 -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 +3 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +2 -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 +10 -1
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +2 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
- package/dist/types/components/sqm-router/sqm-router.d.ts +2 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -0
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +19 -6
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +43 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +44 -1
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +24 -1
- 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 +10 -0
- package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +33 -4
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
- package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
- package/dist/types/components/sqm-text/sqm-text.d.ts +13 -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 +14 -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-timeline/sqm-timeline.d.ts +3 -1
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -2
- package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +7 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +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-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components/views/copy-text-view.d.ts +5 -0
- package/dist/types/components.d.ts +1339 -63
- package/dist/types/global/global.d.ts +2 -2
- package/dist/types/global/mixins.d.ts +12 -12
- package/dist/types/global/styles.d.ts +10 -2
- package/dist/types/insertfont.d.ts +1 -0
- package/dist/types/saasquatch.d.ts +142 -0
- package/dist/types/utils/parseStates.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -2
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/cjs/ErrorView-b2fcf954.js +0 -35
- package/dist/cjs/copy-text-view-c85acaaa.js +0 -96
- 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-16ac73d0.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-0aa82125.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/copy-text-view-782137ba.js +0 -94
- 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-2c726568.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-ca32495e.js +0 -60
- package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
- package/dist/esm-es5/GenericTableView-7b9087af.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-cf230f50.js +0 -1
- package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
- package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
- package/dist/esm-es5/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-2c726568.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +0 -1
- package/dist/esm-es5/sqm-qr-code-view-f1d0763b.js +0 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-ca32495e.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-0c78815e.system.entry.js +0 -1
- package/dist/mint-components/p-0ebab63e.system.js +0 -1
- package/dist/mint-components/p-116baa69.entry.js +0 -258
- 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-1f089c3f.system.entry.js +0 -1
- package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
- package/dist/mint-components/p-21620f81.system.entry.js +0 -1
- package/dist/mint-components/p-229f797b.js +0 -1
- package/dist/mint-components/p-24db5c70.js +0 -1
- package/dist/mint-components/p-275b4767.entry.js +0 -1
- package/dist/mint-components/p-2bbff88f.entry.js +0 -1
- package/dist/mint-components/p-2da21ba4.entry.js +0 -1
- package/dist/mint-components/p-2dca9e1a.system.js +0 -1
- package/dist/mint-components/p-31015791.js +0 -1
- package/dist/mint-components/p-33c96e14.entry.js +0 -16
- package/dist/mint-components/p-37996351.system.js +0 -1
- package/dist/mint-components/p-380bfde1.entry.js +0 -1
- package/dist/mint-components/p-38e5c429.system.js +0 -1
- package/dist/mint-components/p-38fc919b.entry.js +0 -1
- package/dist/mint-components/p-3a62a7e2.system.js +0 -1
- package/dist/mint-components/p-3b90e01b.system.js +0 -1
- package/dist/mint-components/p-3db34d68.js +0 -1
- package/dist/mint-components/p-3f067fd5.js +0 -1
- package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
- package/dist/mint-components/p-420554af.system.entry.js +0 -1
- package/dist/mint-components/p-42187319.system.entry.js +0 -1
- package/dist/mint-components/p-4428294b.entry.js +0 -1
- package/dist/mint-components/p-4794641c.system.js +0 -1
- package/dist/mint-components/p-48135f99.system.js +0 -53
- package/dist/mint-components/p-492b70db.system.js +0 -1
- package/dist/mint-components/p-4e5af50c.js +0 -1
- package/dist/mint-components/p-4e773bb1.system.entry.js +0 -1
- package/dist/mint-components/p-562428ef.system.js +0 -1
- package/dist/mint-components/p-57eef0af.entry.js +0 -205
- package/dist/mint-components/p-5cb7f9fc.system.entry.js +0 -1
- package/dist/mint-components/p-5d7e308c.system.entry.js +0 -1
- package/dist/mint-components/p-6055eb4c.system.js +0 -1
- package/dist/mint-components/p-626e9e84.js +0 -1
- package/dist/mint-components/p-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-65069b66.js +0 -1248
- package/dist/mint-components/p-653f963f.entry.js +0 -13
- package/dist/mint-components/p-65ba9e94.entry.js +0 -1
- package/dist/mint-components/p-693942df.entry.js +0 -144
- package/dist/mint-components/p-6b7a595f.system.js +0 -1
- package/dist/mint-components/p-6cc141b9.js +0 -394
- 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-775f3ded.entry.js +0 -1
- package/dist/mint-components/p-7846937e.entry.js +0 -13
- package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
- package/dist/mint-components/p-837a0fdd.js +0 -1
- package/dist/mint-components/p-85671c3d.system.entry.js +0 -1
- package/dist/mint-components/p-8abfeff8.entry.js +0 -1
- package/dist/mint-components/p-8c23d1b8.js +0 -1
- package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
- package/dist/mint-components/p-91521e9d.js +0 -1
- package/dist/mint-components/p-92816d1f.js +0 -1
- package/dist/mint-components/p-94a876b9.js +0 -1
- package/dist/mint-components/p-97d4d651.system.js +0 -1
- package/dist/mint-components/p-98698131.js +0 -1
- package/dist/mint-components/p-9acb5038.js +0 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
- package/dist/mint-components/p-a7746488.system.js +0 -1
- package/dist/mint-components/p-aad32fb6.system.js +0 -1
- package/dist/mint-components/p-b207beeb.entry.js +0 -1
- package/dist/mint-components/p-b82e1935.system.entry.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-c9f1dde7.js +0 -1
- package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
- package/dist/mint-components/p-cbbfac66.entry.js +0 -25
- package/dist/mint-components/p-cd1d497f.system.js +0 -1
- package/dist/mint-components/p-cd651f81.js +0 -42
- package/dist/mint-components/p-daee25f9.system.entry.js +0 -1
- package/dist/mint-components/p-dbcb5359.js +0 -1
- package/dist/mint-components/p-dcc81e90.entry.js +0 -1
- package/dist/mint-components/p-de8e9981.system.entry.js +0 -1
- package/dist/mint-components/p-e07bc6c4.system.js +0 -1
- package/dist/mint-components/p-e5a5ae7f.system.entry.js +0 -1
- package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
- package/dist/mint-components/p-ef6381d4.entry.js +0 -9
- 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-f56bedd5.js +0 -1
- package/dist/mint-components/p-f708da7b.js +0 -1
- package/dist/mint-components/p-f7c99803.system.js +0 -1
- package/dist/mint-components/p-fe2e2f4a.entry.js +0 -1
- package/dist/mint-components/p-ff8b8067.entry.js +0 -33
- 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-4cd8623e.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-282c1fda.js');
|
|
20
|
+
const utils$1 = require('./utils-aacb4233.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,45 +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
|
-
SecondaryBtn: {
|
|
693
|
-
"&::part(base)": {
|
|
694
|
-
color: "var(--sl-color-gray-800) !important",
|
|
695
|
-
},
|
|
696
|
-
},
|
|
697
|
-
AlertContainer: {
|
|
698
|
-
"&::part(base)": {
|
|
699
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
700
|
-
borderTop: "none",
|
|
701
|
-
padding: "0 16px",
|
|
702
|
-
},
|
|
703
|
-
"& sl-icon::part(base)": {
|
|
704
|
-
color: "var(--sl-color-danger-500)",
|
|
705
|
-
},
|
|
575
|
+
color: "var(--sqm-text-subdued)",
|
|
706
576
|
},
|
|
707
577
|
RadioContainer: {
|
|
708
578
|
display: "flex",
|
|
709
579
|
flexDirection: "column",
|
|
710
580
|
},
|
|
711
|
-
PartnerAlertContainer: {
|
|
712
|
-
"&::part(base)": {
|
|
713
|
-
backgroundColor: "var(--sl-color-sky-100)",
|
|
714
|
-
borderTop: "none",
|
|
715
|
-
padding: "0 16px",
|
|
716
|
-
},
|
|
717
|
-
"& sl-icon::part(base)": {
|
|
718
|
-
color: "var(--sl-color-blue-500)",
|
|
719
|
-
},
|
|
720
|
-
},
|
|
721
581
|
Checkbox: {
|
|
722
582
|
"&::part(control)": {
|
|
723
583
|
borderRadius: "50% !important",
|
|
@@ -729,8 +589,8 @@ const style = {
|
|
|
729
589
|
InputContainer: {
|
|
730
590
|
padding: "16px",
|
|
731
591
|
margin: "16px 0px 16px 0px",
|
|
732
|
-
borderTop: "1px solid var(--
|
|
733
|
-
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)",
|
|
734
594
|
display: "flex",
|
|
735
595
|
flexDirection: "column",
|
|
736
596
|
width: "100%",
|
|
@@ -752,42 +612,47 @@ const style = {
|
|
|
752
612
|
width: "16px",
|
|
753
613
|
height: "16px",
|
|
754
614
|
borderRadius: "50%",
|
|
755
|
-
background: "var(--
|
|
615
|
+
background: "var(--sqm-skeleton-background)",
|
|
756
616
|
},
|
|
757
617
|
SmallSkeleton: {
|
|
758
618
|
width: "100px",
|
|
759
619
|
height: "16px",
|
|
760
620
|
borderRadius: "50px",
|
|
761
|
-
background: "var(--
|
|
621
|
+
background: "var(--sqm-skeleton-background)",
|
|
762
622
|
},
|
|
763
623
|
LargeSkeleton: {
|
|
764
624
|
width: "100%",
|
|
765
625
|
maxWidth: "320px",
|
|
766
626
|
height: "40px",
|
|
767
627
|
borderRadius: "50px",
|
|
768
|
-
background: "var(--
|
|
628
|
+
background: "var(--sqm-skeleton-background)",
|
|
769
629
|
},
|
|
770
|
-
|
|
771
|
-
"
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
630
|
+
InfoWarningIcon: {
|
|
631
|
+
height: "26px",
|
|
632
|
+
width: "26px",
|
|
633
|
+
},
|
|
634
|
+
Dialog: {
|
|
635
|
+
"&::part(panel)": {
|
|
636
|
+
maxWidth: "420px",
|
|
775
637
|
},
|
|
776
|
-
"&::part(
|
|
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)",
|
|
645
|
+
},
|
|
646
|
+
"&::part(footer)": {
|
|
777
647
|
display: "flex",
|
|
648
|
+
flexDirection: "column",
|
|
649
|
+
gap: "var(--sl-spacing-small)",
|
|
650
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
778
651
|
alignItems: "center",
|
|
779
|
-
|
|
780
|
-
padding: "10px",
|
|
781
|
-
height: "max-content",
|
|
782
|
-
},
|
|
783
|
-
"& sl-icon::part(base)": {
|
|
784
|
-
color: "var(--sl-color-yellow-500)",
|
|
652
|
+
flex: "1",
|
|
785
653
|
},
|
|
786
654
|
},
|
|
787
|
-
|
|
788
|
-
height: "26px",
|
|
789
|
-
width: "26px",
|
|
790
|
-
},
|
|
655
|
+
DialogButton: { margin: "auto", width: "100%" },
|
|
791
656
|
};
|
|
792
657
|
const sheet = JSS.createStyleSheet(style);
|
|
793
658
|
const styleString = sheet.toString();
|
|
@@ -806,20 +671,16 @@ const vanillaStyle = `
|
|
|
806
671
|
font-weight: 600
|
|
807
672
|
}
|
|
808
673
|
|
|
809
|
-
p {
|
|
810
|
-
line-height: 18px;
|
|
811
|
-
color: var(--sl-color-gray-800);
|
|
812
|
-
font-size: var(--sl-font-size-small);
|
|
813
|
-
}
|
|
814
|
-
|
|
815
674
|
/* this class is dynamically applied in controller */
|
|
816
675
|
.error-input::part(base) {
|
|
817
|
-
border:
|
|
818
|
-
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);
|
|
819
680
|
}
|
|
820
681
|
|
|
821
682
|
.error-input::part(help-text) {
|
|
822
|
-
color: var(--
|
|
683
|
+
color: var(--sqm-danger-color-text);
|
|
823
684
|
}
|
|
824
685
|
|
|
825
686
|
`;
|
|
@@ -857,28 +718,30 @@ const BankingInfoFormView = (props) => {
|
|
|
857
718
|
index.h("style", { type: "text/css" },
|
|
858
719
|
styleString,
|
|
859
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)),
|
|
860
727
|
index.h("div", { class: classes.TextContainer },
|
|
861
728
|
index.h("div", null,
|
|
862
729
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
863
730
|
id: "formStep",
|
|
864
731
|
defaultMessage: text.formStep,
|
|
865
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
732
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
866
733
|
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
867
734
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
868
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
869
|
-
index.h("
|
|
870
|
-
index.h("strong", null, text.error.generalTitle),
|
|
871
|
-
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),
|
|
872
737
|
global.intl.formatMessage({
|
|
873
738
|
id: "generalDescription",
|
|
874
739
|
defaultMessage: text.error.generalDescription,
|
|
875
740
|
}, {
|
|
876
741
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
877
742
|
}))),
|
|
878
|
-
states.isPartner && !states.hideSteps && (index.h("
|
|
879
|
-
index.h("
|
|
880
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
881
|
-
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),
|
|
882
745
|
global.intl.formatMessage({
|
|
883
746
|
id: "isPartnerAlertDescription",
|
|
884
747
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -916,8 +779,10 @@ const BankingInfoFormView = (props) => {
|
|
|
916
779
|
? getLoadingSkeleton("toPayPalAccount")
|
|
917
780
|
: slots.paymentFixedDaySelectSlot))))),
|
|
918
781
|
index.h("div", { class: classes.BtnContainer },
|
|
919
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading
|
|
920
|
-
|
|
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))))));
|
|
921
786
|
};
|
|
922
787
|
|
|
923
788
|
// Hardcoded in Impact backend
|
|
@@ -1001,24 +866,25 @@ function useBankingInfoForm(props) {
|
|
|
1001
866
|
const host = index_module._();
|
|
1002
867
|
const locale = index_module.L();
|
|
1003
868
|
const user = index_module.J();
|
|
1004
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
1005
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1006
|
-
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
1007
|
-
const formRef =
|
|
1008
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
1009
|
-
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);
|
|
1010
875
|
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
1011
876
|
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
1012
|
-
const [showVerification, setShowVerification] =
|
|
1013
|
-
const [currentFormData, setCurrentFormData] =
|
|
1014
|
-
const [formState, setFormState] =
|
|
1015
|
-
const [currentPaymentOption, setCurrentPaymentOption] =
|
|
1016
|
-
const [loading, setLoading] =
|
|
1017
|
-
const [errors, setErrors] =
|
|
1018
|
-
const [_paymentMethodChecked, _setPaymentMethodChecked] =
|
|
1019
|
-
const [paymentScheduleChecked, setPaymentScheduleChecked] =
|
|
1020
|
-
const [countrySearch, setCountrySearch] =
|
|
1021
|
-
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);
|
|
1022
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) || "";
|
|
1023
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);
|
|
1024
890
|
const feeCap = paypalFeeMap[currency] || "";
|
|
@@ -1038,7 +904,7 @@ function useBankingInfoForm(props) {
|
|
|
1038
904
|
const paymentMethodChecked = !hasPayPal
|
|
1039
905
|
? "toBankAccount"
|
|
1040
906
|
: _paymentMethodChecked;
|
|
1041
|
-
|
|
907
|
+
domContextHooks_module.useEffect(() => {
|
|
1042
908
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1043
909
|
if (!userData)
|
|
1044
910
|
return;
|
|
@@ -1082,7 +948,7 @@ function useBankingInfoForm(props) {
|
|
|
1082
948
|
setPaymentScheduleChecked(initialData.paymentSchedulingType);
|
|
1083
949
|
setFormState(initialData);
|
|
1084
950
|
}, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
|
|
1085
|
-
|
|
951
|
+
domContextHooks_module.useEffect(() => {
|
|
1086
952
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
1087
953
|
return;
|
|
1088
954
|
if (countrySearch.trim() === "") {
|
|
@@ -1190,10 +1056,12 @@ function useBankingInfoForm(props) {
|
|
|
1190
1056
|
});
|
|
1191
1057
|
setErrors({ inputErrors: validationErrors });
|
|
1192
1058
|
if (Object.keys(validationErrors).length) {
|
|
1059
|
+
setShowModal(false);
|
|
1193
1060
|
return;
|
|
1194
1061
|
}
|
|
1195
1062
|
let token = undefined;
|
|
1196
1063
|
if (isPartner) {
|
|
1064
|
+
setShowModal(false);
|
|
1197
1065
|
setShowVerification(true);
|
|
1198
1066
|
token = await new Promise((res) => {
|
|
1199
1067
|
const cb = (e) => {
|
|
@@ -1206,6 +1074,7 @@ function useBankingInfoForm(props) {
|
|
|
1206
1074
|
setShowVerification(false);
|
|
1207
1075
|
}
|
|
1208
1076
|
await runMutation(formData, token);
|
|
1077
|
+
setShowModal(false);
|
|
1209
1078
|
};
|
|
1210
1079
|
const onVerification = async (token) => {
|
|
1211
1080
|
host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
|
|
@@ -1239,6 +1108,8 @@ function useBankingInfoForm(props) {
|
|
|
1239
1108
|
setCountrySearch,
|
|
1240
1109
|
onVerification,
|
|
1241
1110
|
onVerificationHide: () => onVerification(null),
|
|
1111
|
+
onModalClose: () => setShowModal(false),
|
|
1112
|
+
onModalOpen: () => setShowModal(true),
|
|
1242
1113
|
},
|
|
1243
1114
|
states: {
|
|
1244
1115
|
showVerification,
|
|
@@ -1272,6 +1143,7 @@ function useBankingInfoForm(props) {
|
|
|
1272
1143
|
bankCountry: formState.bankCountry,
|
|
1273
1144
|
countrySearch,
|
|
1274
1145
|
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1146
|
+
showModal,
|
|
1275
1147
|
},
|
|
1276
1148
|
refs: {
|
|
1277
1149
|
formRef,
|
|
@@ -1356,7 +1228,11 @@ const BankingInfoForm = class {
|
|
|
1356
1228
|
/**
|
|
1357
1229
|
* @uiName Beneficiary account field label
|
|
1358
1230
|
*/
|
|
1359
|
-
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.";
|
|
1360
1236
|
/**
|
|
1361
1237
|
* @uiName Bank account type field label
|
|
1362
1238
|
*/
|
|
@@ -1535,7 +1411,19 @@ const BankingInfoForm = class {
|
|
|
1535
1411
|
* @uiWidget textArea
|
|
1536
1412
|
*/
|
|
1537
1413
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
|
|
1538
|
-
|
|
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);
|
|
1539
1427
|
}
|
|
1540
1428
|
disconnectedCallback() { }
|
|
1541
1429
|
getTextProps() {
|
|
@@ -1675,11 +1563,11 @@ function useDemoBankingInfoForm(props) {
|
|
|
1675
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;
|
|
1676
1564
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1677
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;
|
|
1678
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1679
|
-
const [paymentMethodChecked, setPaymentMethodChecked] =
|
|
1680
|
-
const [paymentScheduleChecked, setPaymentScheduleChecked] =
|
|
1681
|
-
const [currency, setCurrency] =
|
|
1682
|
-
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);
|
|
1683
1571
|
const currentPaymentOption = (_m = mockPaymentOptions[currency]) === null || _m === void 0 ? void 0 : _m.find((paymentOption) => {
|
|
1684
1572
|
if (paymentOption.countryCode === bankCountry)
|
|
1685
1573
|
return true;
|
|
@@ -1687,7 +1575,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1687
1575
|
});
|
|
1688
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) ||
|
|
1689
1577
|
0;
|
|
1690
|
-
|
|
1578
|
+
domContextHooks_module.useEffect(() => {
|
|
1691
1579
|
if (defaultPaymentMethodChecked !== paymentMethodChecked)
|
|
1692
1580
|
setPaymentMethodChecked(defaultPaymentMethodChecked);
|
|
1693
1581
|
if (defaultPaymentScheduleChecked !== paymentScheduleChecked)
|
|
@@ -1748,6 +1636,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1748
1636
|
currency,
|
|
1749
1637
|
setCurrency,
|
|
1750
1638
|
hasPayPal: true,
|
|
1639
|
+
showModal: false,
|
|
1751
1640
|
},
|
|
1752
1641
|
callbacks: {
|
|
1753
1642
|
onVerificationHide: () => { },
|
|
@@ -1760,6 +1649,8 @@ function useDemoBankingInfoForm(props) {
|
|
|
1760
1649
|
setCountrySearch: () => { },
|
|
1761
1650
|
onBack: async () => setStep("/dashboard"),
|
|
1762
1651
|
onVerification: () => { },
|
|
1652
|
+
onModalOpen: () => { },
|
|
1653
|
+
onModalClose: () => { },
|
|
1763
1654
|
},
|
|
1764
1655
|
text: props.getTextProps(),
|
|
1765
1656
|
refs: {
|
|
@@ -1768,331 +1659,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1768
1659
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1769
1660
|
}
|
|
1770
1661
|
|
|
1771
|
-
const style$1 = {
|
|
1772
|
-
Wrapper: {
|
|
1773
|
-
display: "flex",
|
|
1774
|
-
flexDirection: "column",
|
|
1775
|
-
gap: "var(--sl-spacing-medium)",
|
|
1776
|
-
maxWidth: "550px",
|
|
1777
|
-
},
|
|
1778
|
-
HeaderContainer: {
|
|
1779
|
-
display: "flex",
|
|
1780
|
-
flexDirection: "column",
|
|
1781
|
-
},
|
|
1782
|
-
InputsContainer: {
|
|
1783
|
-
display: "flex",
|
|
1784
|
-
gap: "var(--sl-spacing-medium)",
|
|
1785
|
-
position: "relative",
|
|
1786
|
-
flexDirection: "column",
|
|
1787
|
-
},
|
|
1788
|
-
CodeInputContainer: {
|
|
1789
|
-
display: "flex",
|
|
1790
|
-
gap: "var(--sl-spacing-medium)",
|
|
1791
|
-
},
|
|
1792
|
-
CodeInput: {
|
|
1793
|
-
maxWidth: "40px",
|
|
1794
|
-
"&::part(input)": {
|
|
1795
|
-
margin: "0",
|
|
1796
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1797
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1798
|
-
},
|
|
1799
|
-
},
|
|
1800
|
-
CodeInputError: {
|
|
1801
|
-
...mixins.ErrorStyles,
|
|
1802
|
-
maxWidth: "40px",
|
|
1803
|
-
"&::part(input)": {
|
|
1804
|
-
margin: "0",
|
|
1805
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1806
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1807
|
-
},
|
|
1808
|
-
},
|
|
1809
|
-
ErrorText: {
|
|
1810
|
-
color: "var(--sl-color-danger-500)",
|
|
1811
|
-
fontSize: "var(--sl-font-size-small)",
|
|
1812
|
-
margin: "0",
|
|
1813
|
-
},
|
|
1814
|
-
ContinueButton: {
|
|
1815
|
-
width: "100%",
|
|
1816
|
-
maxWidth: "100px",
|
|
1817
|
-
},
|
|
1818
|
-
FooterContainer: {
|
|
1819
|
-
display: "flex",
|
|
1820
|
-
flexDirection: "column",
|
|
1821
|
-
},
|
|
1822
|
-
SkeletonOne: {
|
|
1823
|
-
width: "50%",
|
|
1824
|
-
height: "16px",
|
|
1825
|
-
},
|
|
1826
|
-
SkeletonTwo: {
|
|
1827
|
-
width: "30%",
|
|
1828
|
-
height: "34px",
|
|
1829
|
-
},
|
|
1830
|
-
SkeletonThree: {
|
|
1831
|
-
width: "15%",
|
|
1832
|
-
height: "24px",
|
|
1833
|
-
},
|
|
1834
|
-
};
|
|
1835
|
-
const vanillaStyle$1 = `
|
|
1836
|
-
:host {
|
|
1837
|
-
display: block;
|
|
1838
|
-
}
|
|
1839
|
-
:host([hidden]): {
|
|
1840
|
-
display: none;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
`;
|
|
1845
|
-
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1846
|
-
const styleString$1 = sheet$1.toString();
|
|
1847
|
-
function WidgetCodeVerificationView(props) {
|
|
1848
|
-
const { states, refs, callbacks, text } = props;
|
|
1849
|
-
const resendCodeText = global.intl.formatMessage({
|
|
1850
|
-
id: "resendCodeText",
|
|
1851
|
-
defaultMessage: text.resendCodeText,
|
|
1852
|
-
}, {
|
|
1853
|
-
resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1854
|
-
e.preventDefault();
|
|
1855
|
-
callbacks.resendEmail();
|
|
1856
|
-
} }, text.resendCodeLabel)),
|
|
1857
|
-
});
|
|
1858
|
-
const codeResentSuccessfully = global.intl.formatMessage({
|
|
1859
|
-
id: "codeResentSuccessfully",
|
|
1860
|
-
defaultMessage: text.codeResentSuccessfullyText,
|
|
1861
|
-
}, {
|
|
1862
|
-
email: states.email,
|
|
1863
|
-
});
|
|
1864
|
-
const inputClass = states.verifyFailed
|
|
1865
|
-
? sheet$1.classes.CodeInputError
|
|
1866
|
-
: sheet$1.classes.CodeInput;
|
|
1867
|
-
return (index.h("div", { part: "sqm-base" },
|
|
1868
|
-
index.h("style", { type: "text/css" },
|
|
1869
|
-
vanillaStyle$1,
|
|
1870
|
-
styleString$1),
|
|
1871
|
-
index.h("div", { class: sheet$1.classes.Wrapper },
|
|
1872
|
-
index.h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1873
|
-
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
|
|
1874
|
-
id: `emailHeaderText`,
|
|
1875
|
-
defaultMessage: states.verifyFailed
|
|
1876
|
-
? text.reverifyCodeHeaderText
|
|
1877
|
-
: text.verifyCodeHeaderText,
|
|
1878
|
-
}, { email: states.email }))),
|
|
1879
|
-
states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1880
|
-
index.h("b", null, codeResentSuccessfully))),
|
|
1881
|
-
index.h("div", { class: sheet$1.classes.InputsContainer },
|
|
1882
|
-
index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1883
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1884
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1885
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1886
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1887
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1888
|
-
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
1889
|
-
states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1890
|
-
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)),
|
|
1891
|
-
index.h("div", { class: sheet$1.classes.FooterContainer },
|
|
1892
|
-
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|
|
1896
|
-
mutation submitImpactPublisherEmail2FACode(
|
|
1897
|
-
$user: UserIdInput!
|
|
1898
|
-
$code: String!
|
|
1899
|
-
) {
|
|
1900
|
-
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1901
|
-
verifiedEmail
|
|
1902
|
-
accessKey
|
|
1903
|
-
}
|
|
1904
|
-
}
|
|
1905
|
-
`;
|
|
1906
|
-
function useWidgetCodeVerification(props) {
|
|
1907
|
-
const host = stencilHooks_module.l();
|
|
1908
|
-
const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
|
|
1909
|
-
const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
|
|
1910
|
-
const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
|
|
1911
|
-
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
1912
|
-
const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
|
|
1913
|
-
const [validationError, setValidationError] = stencilHooks_module.useState(false);
|
|
1914
|
-
const [emailError, setEmailError] = stencilHooks_module.useState(false);
|
|
1915
|
-
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
1916
|
-
stencilHooks_module.useEffect(() => {
|
|
1917
|
-
if (!codeRef)
|
|
1918
|
-
return;
|
|
1919
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1920
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1921
|
-
codeElements.forEach((element, idx) => {
|
|
1922
|
-
element.addEventListener("focus", (e) => {
|
|
1923
|
-
e.target.select();
|
|
1924
|
-
});
|
|
1925
|
-
element.addEventListener("keydown", (e) => {
|
|
1926
|
-
if (e.key === "Backspace" && e.target.value === "") {
|
|
1927
|
-
codeElements[Math.max(0, idx - 1)].focus();
|
|
1928
|
-
}
|
|
1929
|
-
});
|
|
1930
|
-
element.addEventListener("input", (e) => {
|
|
1931
|
-
const input = e.data;
|
|
1932
|
-
if (!input)
|
|
1933
|
-
return;
|
|
1934
|
-
if (idx === codeElements.length - 1) {
|
|
1935
|
-
e.target.value = input.slice(0, 1);
|
|
1936
|
-
return;
|
|
1937
|
-
}
|
|
1938
|
-
if (input.length > 1) {
|
|
1939
|
-
const rest = input.slice(1);
|
|
1940
|
-
e.target.value = input.slice(0, 1);
|
|
1941
|
-
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1942
|
-
inputType: "insertFromPaste",
|
|
1943
|
-
data: rest,
|
|
1944
|
-
}));
|
|
1945
|
-
}
|
|
1946
|
-
codeElements[idx + 1].focus();
|
|
1947
|
-
});
|
|
1948
|
-
});
|
|
1949
|
-
}, [codeRef]);
|
|
1950
|
-
const reset = () => {
|
|
1951
|
-
setShowCode(false);
|
|
1952
|
-
setValidationError(false);
|
|
1953
|
-
};
|
|
1954
|
-
const resendEmail = async () => {
|
|
1955
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
1956
|
-
if (!initialized)
|
|
1957
|
-
return;
|
|
1958
|
-
const result = await sendEmail();
|
|
1959
|
-
if (!result) {
|
|
1960
|
-
setEmailError(true);
|
|
1961
|
-
return;
|
|
1962
|
-
}
|
|
1963
|
-
if (emailSent)
|
|
1964
|
-
setEmailResent(true);
|
|
1965
|
-
setEmailSent(true);
|
|
1966
|
-
};
|
|
1967
|
-
const submitCode = async () => {
|
|
1968
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1969
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1970
|
-
if (codeElements.find((el) => !el.value)) {
|
|
1971
|
-
setValidationError(true);
|
|
1972
|
-
return;
|
|
1973
|
-
}
|
|
1974
|
-
let code = "";
|
|
1975
|
-
codeElements.forEach((element) => {
|
|
1976
|
-
code = `${code}${element.value}`;
|
|
1977
|
-
});
|
|
1978
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
1979
|
-
if (!initialized)
|
|
1980
|
-
return;
|
|
1981
|
-
setValidationError(false);
|
|
1982
|
-
const res = await verifyEmail(code);
|
|
1983
|
-
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1984
|
-
props.onVerification(res.accessKey);
|
|
1985
|
-
reset();
|
|
1986
|
-
}
|
|
1987
|
-
else {
|
|
1988
|
-
setValidationError(true);
|
|
1989
|
-
}
|
|
1990
|
-
};
|
|
1991
|
-
stencilHooks_module.useEffect(() => {
|
|
1992
|
-
// Wait for mutations to be determined from user lookup
|
|
1993
|
-
if (!initialized)
|
|
1994
|
-
return;
|
|
1995
|
-
// email should already exist if user has completed email-verification
|
|
1996
|
-
if (!email)
|
|
1997
|
-
resendEmail();
|
|
1998
|
-
else
|
|
1999
|
-
setEmailSent(true);
|
|
2000
|
-
}, [initialized]);
|
|
2001
|
-
return {
|
|
2002
|
-
refs: {
|
|
2003
|
-
codeWrapperRef: setCodeRef,
|
|
2004
|
-
},
|
|
2005
|
-
states: {
|
|
2006
|
-
email: verificationEmail,
|
|
2007
|
-
emailResent,
|
|
2008
|
-
resendError: sendErrors || verifyErrors,
|
|
2009
|
-
initialiseLoading: !initialized,
|
|
2010
|
-
loading: sendLoading || verifyLoading,
|
|
2011
|
-
verifyFailed: !!validationError,
|
|
2012
|
-
},
|
|
2013
|
-
callbacks: {
|
|
2014
|
-
resendEmail,
|
|
2015
|
-
submitCode,
|
|
2016
|
-
},
|
|
2017
|
-
text: props.getTextProps(),
|
|
2018
|
-
};
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
|
-
const WidgetCodeVerification = class {
|
|
2022
|
-
constructor(hostRef) {
|
|
2023
|
-
index.registerInstance(this, hostRef);
|
|
2024
|
-
/**
|
|
2025
|
-
* @uiName Verify code widget header text
|
|
2026
|
-
*/
|
|
2027
|
-
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2028
|
-
/**
|
|
2029
|
-
* @uiName Reverify code widget header text
|
|
2030
|
-
*/
|
|
2031
|
-
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2032
|
-
/**
|
|
2033
|
-
* Text displayed under verify button
|
|
2034
|
-
* @uiName Resend code text
|
|
2035
|
-
*/
|
|
2036
|
-
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2037
|
-
/**
|
|
2038
|
-
* The link that appears in the resend code link
|
|
2039
|
-
* @uiName Resend code label
|
|
2040
|
-
*/
|
|
2041
|
-
this.resendCodeLabel = "Resend code";
|
|
2042
|
-
/**
|
|
2043
|
-
* Link text displayed under verify button
|
|
2044
|
-
* @uiName Resend code text
|
|
2045
|
-
*/
|
|
2046
|
-
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2047
|
-
/**
|
|
2048
|
-
* Error text displayed under verification input
|
|
2049
|
-
* @uiName Invalid code text
|
|
2050
|
-
*/
|
|
2051
|
-
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2052
|
-
/**
|
|
2053
|
-
* @uiName Verify code button text
|
|
2054
|
-
*/
|
|
2055
|
-
this.verifyText = "Verify";
|
|
2056
|
-
/**
|
|
2057
|
-
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2058
|
-
* @uiName Network error message
|
|
2059
|
-
*/
|
|
2060
|
-
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2061
|
-
stencilHooks_module.h$1(this);
|
|
2062
|
-
}
|
|
2063
|
-
disconnectedCallback() { }
|
|
2064
|
-
getTextProps() {
|
|
2065
|
-
return utils.getProps(this);
|
|
2066
|
-
}
|
|
2067
|
-
render() {
|
|
2068
|
-
const props = index_module.isDemo()
|
|
2069
|
-
? useDemoWidgetCodeVerification(this)
|
|
2070
|
-
: useWidgetCodeVerification(this);
|
|
2071
|
-
return index.h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2072
|
-
}
|
|
2073
|
-
};
|
|
2074
|
-
function useDemoWidgetCodeVerification(props) {
|
|
2075
|
-
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
2076
|
-
const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
2077
|
-
return cjs.cjs({
|
|
2078
|
-
states: {
|
|
2079
|
-
loading: false,
|
|
2080
|
-
email: "test@example.com",
|
|
2081
|
-
emailResent,
|
|
2082
|
-
resendError: false,
|
|
2083
|
-
verifyFailed: false,
|
|
2084
|
-
},
|
|
2085
|
-
refs: {
|
|
2086
|
-
codeWrapperRef: () => { },
|
|
2087
|
-
},
|
|
2088
|
-
callbacks: {
|
|
2089
|
-
resendEmail: async () => setEmailResent(true),
|
|
2090
|
-
submitCode: async () => setVerifiedContext(true),
|
|
2091
|
-
},
|
|
2092
|
-
text: props.getTextProps(),
|
|
2093
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
1662
|
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
2097
1663
|
mutation createImpactPublisherTaxDocument(
|
|
2098
1664
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -2121,23 +1687,24 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
|
2121
1687
|
function useDocusignForm(props) {
|
|
2122
1688
|
var _a, _b, _c;
|
|
2123
1689
|
const user = index_module.J();
|
|
2124
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2125
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2126
|
-
const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2127
|
-
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;
|
|
2128
1694
|
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
2129
1695
|
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
2130
|
-
const [docusignStatus, setDocusignStatus] =
|
|
2131
|
-
const [participantType, setParticipantType] =
|
|
2132
|
-
const [errors, setErrors] =
|
|
2133
|
-
const [loading, setLoading] =
|
|
2134
|
-
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);
|
|
2135
1702
|
// Only look at current document if it's valid (same as required type)
|
|
2136
|
-
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)
|
|
2137
1704
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
2138
1705
|
const actualDocumentType = existingDocumentType ||
|
|
2139
1706
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
2140
|
-
|
|
1707
|
+
domContextHooks_module.useEffect(() => {
|
|
2141
1708
|
if (!existingDocumentType)
|
|
2142
1709
|
return;
|
|
2143
1710
|
if (existingDocumentType === "W8BEN") {
|
|
@@ -2147,7 +1714,7 @@ function useDocusignForm(props) {
|
|
|
2147
1714
|
setParticipantType("businessEntity");
|
|
2148
1715
|
}
|
|
2149
1716
|
}, [existingDocumentType]);
|
|
2150
|
-
|
|
1717
|
+
domContextHooks_module.useEffect(() => {
|
|
2151
1718
|
// Skip if no publisher info
|
|
2152
1719
|
if (!user || !publisher)
|
|
2153
1720
|
return;
|
|
@@ -2225,8 +1792,9 @@ function useDocusignForm(props) {
|
|
|
2225
1792
|
},
|
|
2226
1793
|
docusignStatus,
|
|
2227
1794
|
documentType: actualDocumentType,
|
|
2228
|
-
documentTypeString:
|
|
1795
|
+
documentTypeString: utils$1.taxTypeToName(actualDocumentType),
|
|
2229
1796
|
showExitButton,
|
|
1797
|
+
showModal,
|
|
2230
1798
|
},
|
|
2231
1799
|
data: {
|
|
2232
1800
|
taxForm: actualDocumentType,
|
|
@@ -2237,6 +1805,8 @@ function useDocusignForm(props) {
|
|
|
2237
1805
|
completeDocument,
|
|
2238
1806
|
onExit: progressStep,
|
|
2239
1807
|
setParticipantType,
|
|
1808
|
+
onModalClose: () => setShowModal(false),
|
|
1809
|
+
onModalOpen: () => setShowModal(true),
|
|
2240
1810
|
},
|
|
2241
1811
|
text: props.getTextProps(),
|
|
2242
1812
|
};
|
|
@@ -2250,7 +1820,7 @@ function getDocumentType(p) {
|
|
|
2250
1820
|
return undefined;
|
|
2251
1821
|
}
|
|
2252
1822
|
|
|
2253
|
-
const style$
|
|
1823
|
+
const style$1 = {
|
|
2254
1824
|
DocusignStatusContainer: {
|
|
2255
1825
|
width: "100%",
|
|
2256
1826
|
minHeight: "600px",
|
|
@@ -2262,7 +1832,7 @@ const style$2 = {
|
|
|
2262
1832
|
gap: "10px",
|
|
2263
1833
|
margin: "auto",
|
|
2264
1834
|
textAlign: "center",
|
|
2265
|
-
border: "1px solid var(--
|
|
1835
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
2266
1836
|
justifyContent: "center",
|
|
2267
1837
|
},
|
|
2268
1838
|
MessageContainer: {
|
|
@@ -2277,48 +1847,48 @@ const style$2 = {
|
|
|
2277
1847
|
},
|
|
2278
1848
|
},
|
|
2279
1849
|
};
|
|
2280
|
-
const sheet$
|
|
2281
|
-
const styleString$
|
|
1850
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1851
|
+
const styleString$1 = sheet$1.toString();
|
|
2282
1852
|
const DocusignExpiredView = (props) => {
|
|
2283
|
-
const { classes } = sheet$
|
|
1853
|
+
const { classes } = sheet$1;
|
|
2284
1854
|
const { text } = props;
|
|
2285
1855
|
return (index.h("div", null,
|
|
2286
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1856
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2287
1857
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2288
1858
|
index.h("sl-icon", { style: {
|
|
2289
1859
|
width: "50px",
|
|
2290
1860
|
height: "50px",
|
|
2291
|
-
color: "var(--
|
|
1861
|
+
color: "var(--sqm-text)",
|
|
2292
1862
|
}, name: "clock" }),
|
|
2293
1863
|
index.h("div", { class: classes.MessageContainer },
|
|
2294
1864
|
index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
2295
1865
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2296
1866
|
};
|
|
2297
1867
|
const DocusignErrorView = (props) => {
|
|
2298
|
-
const { classes } = sheet$
|
|
1868
|
+
const { classes } = sheet$1;
|
|
2299
1869
|
const { text } = props;
|
|
2300
1870
|
return (index.h("div", null,
|
|
2301
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1871
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2302
1872
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2303
1873
|
index.h("sl-icon", { style: {
|
|
2304
1874
|
width: "50px",
|
|
2305
1875
|
height: "50px",
|
|
2306
|
-
color: "var(--
|
|
1876
|
+
color: "var(--sqm-text)",
|
|
2307
1877
|
}, name: "exclamation-octagon" }),
|
|
2308
1878
|
index.h("div", { class: classes.MessageContainer },
|
|
2309
1879
|
index.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
2310
1880
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2311
1881
|
};
|
|
2312
1882
|
const DocusignLoadingView = () => {
|
|
2313
|
-
const { classes } = sheet$
|
|
1883
|
+
const { classes } = sheet$1;
|
|
2314
1884
|
return (index.h("div", null,
|
|
2315
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1885
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2316
1886
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2317
1887
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
2318
1888
|
};
|
|
2319
1889
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
2320
|
-
const { classes } = sheet$
|
|
2321
|
-
const [iFrameHeight, setiFrameHeight] =
|
|
1890
|
+
const { classes } = sheet$1;
|
|
1891
|
+
const [iFrameHeight, setiFrameHeight] = domContextHooks_module.useState("100%");
|
|
2322
1892
|
const allowedDomains = [
|
|
2323
1893
|
"referralsaasquatch.com",
|
|
2324
1894
|
"impacttech.complysandbox.com",
|
|
@@ -2335,7 +1905,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2335
1905
|
callbacks.completeDocument();
|
|
2336
1906
|
}
|
|
2337
1907
|
}, []);
|
|
2338
|
-
|
|
1908
|
+
domContextHooks_module.useEffect(() => {
|
|
2339
1909
|
window.addEventListener("message", callback, false);
|
|
2340
1910
|
return () => {
|
|
2341
1911
|
window.removeEventListener("message", callback, false);
|
|
@@ -2350,12 +1920,17 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2350
1920
|
return index.h(DocusignExpiredView, { text: text });
|
|
2351
1921
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
2352
1922
|
return (index.h("div", { style: { height: iFrameHeight } },
|
|
2353
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1923
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2354
1924
|
index.h("div", { class: classes.IFrameContainer },
|
|
2355
1925
|
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
2356
1926
|
};
|
|
2357
1927
|
|
|
2358
|
-
const style$
|
|
1928
|
+
const style$2 = {
|
|
1929
|
+
ModalTitleContainer: {
|
|
1930
|
+
display: "flex",
|
|
1931
|
+
gap: "var(--sl-spacing-small)",
|
|
1932
|
+
alignItems: "center",
|
|
1933
|
+
},
|
|
2359
1934
|
FormWrapper: {
|
|
2360
1935
|
display: "flex",
|
|
2361
1936
|
justifyContent: "flex-start",
|
|
@@ -2387,7 +1962,7 @@ const style$3 = {
|
|
|
2387
1962
|
gap: "8px",
|
|
2388
1963
|
},
|
|
2389
1964
|
ErrorText: {
|
|
2390
|
-
color: "var(--
|
|
1965
|
+
color: "var(--sqm-danger-color-icon)",
|
|
2391
1966
|
marginTop: "10px",
|
|
2392
1967
|
},
|
|
2393
1968
|
DescriptionText: {
|
|
@@ -2396,44 +1971,6 @@ const style$3 = {
|
|
|
2396
1971
|
BoldText: {
|
|
2397
1972
|
fontWeight: "bold",
|
|
2398
1973
|
},
|
|
2399
|
-
SecondaryBtn: {
|
|
2400
|
-
"&::part(base)": {
|
|
2401
|
-
color: "var(--sl-color-gray-800) !important",
|
|
2402
|
-
},
|
|
2403
|
-
"&::part(label)": {
|
|
2404
|
-
padding: "0px",
|
|
2405
|
-
margin: "0px",
|
|
2406
|
-
},
|
|
2407
|
-
},
|
|
2408
|
-
ErrorAlertContainer: {
|
|
2409
|
-
"&::part(base)": {
|
|
2410
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
2411
|
-
borderTop: "none",
|
|
2412
|
-
padding: "0 16px",
|
|
2413
|
-
},
|
|
2414
|
-
"& sl-icon::part(base)": {
|
|
2415
|
-
color: "var(--sl-color-danger-500)",
|
|
2416
|
-
},
|
|
2417
|
-
},
|
|
2418
|
-
InfoAlert: {
|
|
2419
|
-
"&::part(base)": {
|
|
2420
|
-
backgroundColor: "transparent",
|
|
2421
|
-
borderTop: "none",
|
|
2422
|
-
padding: "0px",
|
|
2423
|
-
marginBottom: "16px",
|
|
2424
|
-
border: "none",
|
|
2425
|
-
},
|
|
2426
|
-
"&::part(message)": {
|
|
2427
|
-
display: "flex",
|
|
2428
|
-
alignItems: "center",
|
|
2429
|
-
justifyContent: "flex-start",
|
|
2430
|
-
padding: "10px",
|
|
2431
|
-
height: "max-content",
|
|
2432
|
-
},
|
|
2433
|
-
"& sl-icon::part(base)": {
|
|
2434
|
-
color: "var(--sl-color-sky-500)",
|
|
2435
|
-
},
|
|
2436
|
-
},
|
|
2437
1974
|
Container: {
|
|
2438
1975
|
width: "100%",
|
|
2439
1976
|
display: "flex",
|
|
@@ -2441,16 +1978,6 @@ const style$3 = {
|
|
|
2441
1978
|
flexDirection: "column",
|
|
2442
1979
|
gap: "16px",
|
|
2443
1980
|
},
|
|
2444
|
-
Link: {
|
|
2445
|
-
color: "var(--sl-color-sky-500)",
|
|
2446
|
-
textDecoration: "none",
|
|
2447
|
-
"&:visited": {
|
|
2448
|
-
color: "var(--sl-color-sky-500)",
|
|
2449
|
-
},
|
|
2450
|
-
"&:hover": {
|
|
2451
|
-
textDecoration: "underline",
|
|
2452
|
-
},
|
|
2453
|
-
},
|
|
2454
1981
|
CheckboxWrapper: {
|
|
2455
1982
|
display: "flex",
|
|
2456
1983
|
justifyContent: "flex-start",
|
|
@@ -2464,65 +1991,91 @@ const style$3 = {
|
|
|
2464
1991
|
fontSize: "var(--sl-font-size-small)",
|
|
2465
1992
|
},
|
|
2466
1993
|
PageDescriptionText: {
|
|
2467
|
-
color: "var(--
|
|
1994
|
+
color: "var(--sqm-text-subdued)",
|
|
2468
1995
|
fontSize: "var(--sl-font-size-medium)",
|
|
2469
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%" },
|
|
2470
2019
|
};
|
|
2471
|
-
const sheet$
|
|
2472
|
-
const styleString$
|
|
2473
|
-
const vanillaStyle$
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
* {
|
|
2478
|
-
margin: 0;
|
|
2479
|
-
padding: 0;
|
|
2480
|
-
box-sizing: border-box;
|
|
2481
|
-
}
|
|
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
|
+
}
|
|
2482
2026
|
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2027
|
+
* {
|
|
2028
|
+
margin: 0;
|
|
2029
|
+
padding: 0;
|
|
2030
|
+
box-sizing: border-box;
|
|
2031
|
+
}
|
|
2488
2032
|
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2033
|
+
a {
|
|
2034
|
+
color: inherit;
|
|
2035
|
+
text-decoration: underline;
|
|
2036
|
+
cursor: pointer;
|
|
2037
|
+
}
|
|
2492
2038
|
|
|
2493
2039
|
|
|
2494
2040
|
`;
|
|
2495
2041
|
const DocusignFormView = (props) => {
|
|
2496
2042
|
var _a;
|
|
2497
2043
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2498
|
-
const { classes } = sheet$
|
|
2044
|
+
const { classes } = sheet$2;
|
|
2499
2045
|
return (index.h("div", { class: classes.Container },
|
|
2500
2046
|
index.h("style", { type: "text/css" },
|
|
2501
|
-
styleString$
|
|
2502
|
-
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)),
|
|
2503
2060
|
index.h("div", { class: classes.TextContainer },
|
|
2504
2061
|
index.h("div", null,
|
|
2505
2062
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2506
2063
|
id: "formStep",
|
|
2507
2064
|
defaultMessage: text.formStep,
|
|
2508
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2065
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
2509
2066
|
index.h("h3", null, text.taxForm),
|
|
2510
2067
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2511
2068
|
states.loadingError && (index.h("div", null,
|
|
2512
|
-
index.h("
|
|
2513
|
-
index.h("
|
|
2514
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2515
|
-
index.h("br", null),
|
|
2069
|
+
index.h("sqm-form-message", { type: "error" },
|
|
2070
|
+
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
2516
2071
|
global.intl.formatMessage({
|
|
2517
2072
|
id: "loadingErrorAlertDescription",
|
|
2518
2073
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2519
2074
|
}, {
|
|
2520
2075
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2521
2076
|
})))),
|
|
2522
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
2523
|
-
index.h("
|
|
2524
|
-
index.h("strong", null, text.error.generalTitle),
|
|
2525
|
-
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),
|
|
2526
2079
|
global.intl.formatMessage({
|
|
2527
2080
|
id: "generalDescription",
|
|
2528
2081
|
defaultMessage: text.error.generalDescription,
|
|
@@ -2653,7 +2206,19 @@ const DocusignForm = class {
|
|
|
2653
2206
|
* @uiName Exit button text
|
|
2654
2207
|
*/
|
|
2655
2208
|
this.exitButton = "Exit";
|
|
2656
|
-
|
|
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);
|
|
2657
2222
|
}
|
|
2658
2223
|
disconnectedCallback() { }
|
|
2659
2224
|
getTextProps() {
|
|
@@ -2690,11 +2255,11 @@ const DocusignForm = class {
|
|
|
2690
2255
|
get el() { return index.getElement(this); }
|
|
2691
2256
|
};
|
|
2692
2257
|
function useDocusignFormDemo(props) {
|
|
2693
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2258
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
2694
2259
|
return cjs.cjs({
|
|
2695
2260
|
text: props.getTextProps(),
|
|
2696
2261
|
states: {
|
|
2697
|
-
step: "
|
|
2262
|
+
step: "3",
|
|
2698
2263
|
disabled: false,
|
|
2699
2264
|
submitDisabled: false,
|
|
2700
2265
|
loading: false,
|
|
@@ -2707,6 +2272,7 @@ function useDocusignFormDemo(props) {
|
|
|
2707
2272
|
errors: {},
|
|
2708
2273
|
},
|
|
2709
2274
|
documentType: "W9",
|
|
2275
|
+
showModal: false,
|
|
2710
2276
|
},
|
|
2711
2277
|
data: {
|
|
2712
2278
|
taxForm: "W9",
|
|
@@ -2717,6 +2283,8 @@ function useDocusignFormDemo(props) {
|
|
|
2717
2283
|
demo: {
|
|
2718
2284
|
onSubmit: () => setStep("/4"),
|
|
2719
2285
|
onBack: () => setStep("/3"),
|
|
2286
|
+
onModalOpen: () => { },
|
|
2287
|
+
onModalClose: () => { },
|
|
2720
2288
|
},
|
|
2721
2289
|
setParticipantType: (p) => console.log({ p }),
|
|
2722
2290
|
setDocusignStatus: (status) => console.log(status),
|
|
@@ -2727,7 +2295,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2727
2295
|
return (index.h("div", { style: {
|
|
2728
2296
|
width: "100%",
|
|
2729
2297
|
height: "600px",
|
|
2730
|
-
background: "
|
|
2298
|
+
background: "inherit",
|
|
2731
2299
|
display: "flex",
|
|
2732
2300
|
justifyContent: "center",
|
|
2733
2301
|
alignItems: "center",
|
|
@@ -2739,7 +2307,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2739
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")))));
|
|
2740
2308
|
};
|
|
2741
2309
|
|
|
2742
|
-
const style$
|
|
2310
|
+
const style$3 = {
|
|
2743
2311
|
FormWrapper: {
|
|
2744
2312
|
display: "flex",
|
|
2745
2313
|
justifyContent: "flex-start",
|
|
@@ -2751,6 +2319,7 @@ const style$4 = {
|
|
|
2751
2319
|
justifyContent: "flex-start",
|
|
2752
2320
|
flexDirection: "column",
|
|
2753
2321
|
gap: "var(--sl-spacing-medium)",
|
|
2322
|
+
marginBottom: "16px",
|
|
2754
2323
|
"& sl-radio::part(base)": {
|
|
2755
2324
|
alignItems: "start",
|
|
2756
2325
|
},
|
|
@@ -2791,86 +2360,76 @@ const style$4 = {
|
|
|
2791
2360
|
marginTop: "10px",
|
|
2792
2361
|
},
|
|
2793
2362
|
DescriptionText: {
|
|
2794
|
-
color: "var(--
|
|
2363
|
+
color: "var(--sqm-text-subdued)",
|
|
2795
2364
|
},
|
|
2796
|
-
|
|
2797
|
-
"
|
|
2798
|
-
|
|
2799
|
-
},
|
|
2365
|
+
InfoWarningIcon: {
|
|
2366
|
+
height: "26px",
|
|
2367
|
+
width: "26px",
|
|
2800
2368
|
},
|
|
2801
|
-
|
|
2802
|
-
"
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
padding: "0 16px",
|
|
2806
|
-
},
|
|
2807
|
-
"& sl-icon::part(base)": {
|
|
2808
|
-
color: "var(--sl-color-danger-500)",
|
|
2809
|
-
},
|
|
2369
|
+
PageDescriptionText: {
|
|
2370
|
+
color: "var(--sqm-text-subdued)",
|
|
2371
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2372
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
2810
2373
|
},
|
|
2811
|
-
|
|
2374
|
+
PrimaryButton: {
|
|
2812
2375
|
"&::part(base)": {
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
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)",
|
|
2816
2380
|
},
|
|
2817
|
-
"
|
|
2818
|
-
|
|
2381
|
+
"&::part(base):hover": {
|
|
2382
|
+
background: "var(--sqm-primary-button-background-hover)",
|
|
2819
2383
|
},
|
|
2820
2384
|
},
|
|
2821
|
-
|
|
2822
|
-
marginTop: "var(--sl-spacing-large)",
|
|
2385
|
+
SecondaryButton: {
|
|
2823
2386
|
"&::part(base)": {
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
padding: "var(--sl-spacing-small)",
|
|
2832
|
-
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",
|
|
2833
2394
|
},
|
|
2834
|
-
"
|
|
2835
|
-
color: "var(--
|
|
2395
|
+
"&::part(base):hover": {
|
|
2396
|
+
color: "var(--sqm-text)",
|
|
2397
|
+
background: "var(--sqm-secondary-button-background-hover)",
|
|
2836
2398
|
},
|
|
2837
2399
|
},
|
|
2838
|
-
InfoWarningIcon: {
|
|
2839
|
-
height: "26px",
|
|
2840
|
-
width: "26px",
|
|
2841
|
-
},
|
|
2842
|
-
PageDescriptionText: {
|
|
2843
|
-
color: "var(--sl-color-neutral-500)",
|
|
2844
|
-
fontSize: "var(--sl-font-size-medium)",
|
|
2845
|
-
marginBottom: "var(--sl-spacing-small)",
|
|
2846
|
-
},
|
|
2847
2400
|
};
|
|
2848
|
-
const sheet$
|
|
2849
|
-
const styleString$
|
|
2850
|
-
const vanillaStyle$
|
|
2401
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2402
|
+
const styleString$3 = sheet$3.toString();
|
|
2403
|
+
const vanillaStyle$2 = `
|
|
2851
2404
|
:host{
|
|
2852
2405
|
display: block;
|
|
2853
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
|
+
|
|
2854
2418
|
* {
|
|
2855
2419
|
margin: 0;
|
|
2856
2420
|
padding: 0;
|
|
2857
2421
|
box-sizing: border-box;
|
|
2858
2422
|
}
|
|
2859
2423
|
|
|
2860
|
-
p {
|
|
2861
|
-
line-height: 18px;
|
|
2862
|
-
color: var(--sl-color-gray-800);
|
|
2863
|
-
font-size: var(--sl-font-size-small);
|
|
2864
|
-
}
|
|
2865
2424
|
`;
|
|
2866
2425
|
const IndirectTaxFormView = (props) => {
|
|
2867
2426
|
var _a;
|
|
2868
2427
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2869
|
-
const { classes } = sheet$
|
|
2428
|
+
const { classes } = sheet$3;
|
|
2870
2429
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2871
2430
|
index.h("style", { type: "text/css" },
|
|
2872
|
-
styleString$
|
|
2873
|
-
vanillaStyle$
|
|
2431
|
+
styleString$3,
|
|
2432
|
+
vanillaStyle$2),
|
|
2874
2433
|
index.h("div", { class: classes.TextContainer },
|
|
2875
2434
|
index.h("div", null,
|
|
2876
2435
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2878,35 +2437,29 @@ const IndirectTaxFormView = (props) => {
|
|
|
2878
2437
|
global.intl.formatMessage({
|
|
2879
2438
|
id: "formStep",
|
|
2880
2439
|
defaultMessage: text.formStep,
|
|
2881
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2440
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
2882
2441
|
index.h("h3", null, text.indirectTax),
|
|
2883
2442
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2884
2443
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2885
2444
|
states.loadingError && (index.h("div", null,
|
|
2886
|
-
index.h("
|
|
2887
|
-
index.h("
|
|
2888
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2889
|
-
index.h("br", null),
|
|
2445
|
+
index.h("sqm-form-message", { type: "error" },
|
|
2446
|
+
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
2890
2447
|
global.intl.formatMessage({
|
|
2891
2448
|
id: "loadingErrorAlertDescription",
|
|
2892
2449
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2893
2450
|
}, {
|
|
2894
2451
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2895
2452
|
})))),
|
|
2896
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
2897
|
-
index.h("
|
|
2898
|
-
index.h("strong", null, text.error.generalTitle),
|
|
2899
|
-
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),
|
|
2900
2455
|
global.intl.formatMessage({
|
|
2901
2456
|
id: "generalDescription",
|
|
2902
2457
|
defaultMessage: text.error.generalDescription,
|
|
2903
2458
|
}, {
|
|
2904
2459
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2905
2460
|
}))),
|
|
2906
|
-
states.isPartner && (index.h("
|
|
2907
|
-
index.h("
|
|
2908
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2909
|
-
index.h("br", null),
|
|
2461
|
+
states.isPartner && (index.h("sqm-form-message", { type: "info" },
|
|
2462
|
+
index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
2910
2463
|
global.intl.formatMessage({
|
|
2911
2464
|
id: "isPartnerAlertDescription",
|
|
2912
2465
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -2927,17 +2480,15 @@ const IndirectTaxFormView = (props) => {
|
|
|
2927
2480
|
text.otherRegion,
|
|
2928
2481
|
index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2929
2482
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2930
|
-
index.h("
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2937
|
-
})),
|
|
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
|
+
})),
|
|
2938
2489
|
index.h("div", { class: classes.BtnContainer },
|
|
2939
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2940
|
-
index.h("sl-button", { class: classes.
|
|
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))))));
|
|
2941
2492
|
};
|
|
2942
2493
|
|
|
2943
2494
|
const CONNECT_PARTNER = index_module.dist.gql `
|
|
@@ -2980,30 +2531,30 @@ function useIndirectTaxForm(props) {
|
|
|
2980
2531
|
var _a, _b, _c, _d, _e;
|
|
2981
2532
|
const user = index_module.J();
|
|
2982
2533
|
const locale = index_module.L();
|
|
2983
|
-
const formRef =
|
|
2984
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2985
|
-
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);
|
|
2986
2537
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2987
|
-
const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
|
|
2988
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2989
|
-
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);
|
|
2990
2541
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2991
|
-
const _countries =
|
|
2992
|
-
const [loading, setLoading] =
|
|
2993
|
-
const [formState, setFormState] =
|
|
2994
|
-
const [errors, setErrors] =
|
|
2995
|
-
const [countrySearch, setCountrySearch] =
|
|
2996
|
-
const [filteredCountries, setFilteredCountries] =
|
|
2997
|
-
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");
|
|
2998
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;
|
|
2999
|
-
|
|
2550
|
+
domContextHooks_module.useEffect(() => {
|
|
3000
2551
|
var _a;
|
|
3001
2552
|
if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
|
|
3002
2553
|
return;
|
|
3003
2554
|
const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
|
|
3004
2555
|
setOption(_option);
|
|
3005
2556
|
}, [publisher, _countries]);
|
|
3006
|
-
|
|
2557
|
+
domContextHooks_module.useEffect(() => {
|
|
3007
2558
|
if (countrySearch.trim() === "") {
|
|
3008
2559
|
setFilteredCountries(_countries || []);
|
|
3009
2560
|
}
|
|
@@ -3011,7 +2562,7 @@ function useIndirectTaxForm(props) {
|
|
|
3011
2562
|
setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
|
|
3012
2563
|
}
|
|
3013
2564
|
}, [countrySearch, _countries]);
|
|
3014
|
-
|
|
2565
|
+
domContextHooks_module.useEffect(() => {
|
|
3015
2566
|
var _a, _b;
|
|
3016
2567
|
const user = userData === null || userData === void 0 ? void 0 : userData.user;
|
|
3017
2568
|
if (!user)
|
|
@@ -3103,7 +2654,7 @@ function useIndirectTaxForm(props) {
|
|
|
3103
2654
|
await refetch();
|
|
3104
2655
|
const resultPublisher = (_e = (_d = (_c = result
|
|
3105
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;
|
|
3106
|
-
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);
|
|
3107
2658
|
// Fire form change event
|
|
3108
2659
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
3109
2660
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
@@ -3158,10 +2709,10 @@ function useIndirectTaxForm(props) {
|
|
|
3158
2709
|
})),
|
|
3159
2710
|
},
|
|
3160
2711
|
data: {
|
|
3161
|
-
esRegions:
|
|
2712
|
+
esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3162
2713
|
countries: filteredCountries,
|
|
3163
2714
|
allCountries: _countries,
|
|
3164
|
-
provinces:
|
|
2715
|
+
provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
|
|
3165
2716
|
},
|
|
3166
2717
|
text: props.getTextProps(),
|
|
3167
2718
|
refs: {
|
|
@@ -3328,7 +2879,7 @@ const IndirectTaxForm = class {
|
|
|
3328
2879
|
* @uiName Page description
|
|
3329
2880
|
*/
|
|
3330
2881
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
3331
|
-
|
|
2882
|
+
domContextHooks_module.h$1(this);
|
|
3332
2883
|
}
|
|
3333
2884
|
disconnectedCallback() { }
|
|
3334
2885
|
getTextProps() {
|
|
@@ -3363,7 +2914,7 @@ const IndirectTaxForm = class {
|
|
|
3363
2914
|
const props = index_module.isDemo()
|
|
3364
2915
|
? useDemoIndirectTaxForm(this)
|
|
3365
2916
|
: useIndirectTaxForm(this);
|
|
3366
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(
|
|
2917
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
|
|
3367
2918
|
hide: props.states.formState.checked !== "otherRegion",
|
|
3368
2919
|
disabled: props.states.disabled || props.states.isPartner,
|
|
3369
2920
|
formState: props.slotProps.formState,
|
|
@@ -3381,9 +2932,9 @@ const IndirectTaxForm = class {
|
|
|
3381
2932
|
}
|
|
3382
2933
|
};
|
|
3383
2934
|
function useDemoIndirectTaxForm(props) {
|
|
3384
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
3385
|
-
const [option, setOption] =
|
|
3386
|
-
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({});
|
|
3387
2938
|
return cjs.cjs({
|
|
3388
2939
|
states: {
|
|
3389
2940
|
step: "2",
|
|
@@ -3422,7 +2973,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3422
2973
|
setCountrySearch: (c) => console.log(c),
|
|
3423
2974
|
},
|
|
3424
2975
|
data: {
|
|
3425
|
-
esRegions:
|
|
2976
|
+
esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3426
2977
|
countries: [
|
|
3427
2978
|
{
|
|
3428
2979
|
countryCode: "CA",
|
|
@@ -3441,7 +2992,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3441
2992
|
displayName: "United States",
|
|
3442
2993
|
},
|
|
3443
2994
|
],
|
|
3444
|
-
provinces:
|
|
2995
|
+
provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
|
|
3445
2996
|
},
|
|
3446
2997
|
text: props.getTextProps(),
|
|
3447
2998
|
refs: {
|
|
@@ -3463,7 +3014,27 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3463
3014
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3464
3015
|
}
|
|
3465
3016
|
|
|
3466
|
-
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");
|
|
3467
3038
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
3468
3039
|
const GET_INVOICES = index_module.dist.gql `
|
|
3469
3040
|
query getUserTaxInfo($limit: Int!, $offset: Int!) {
|
|
@@ -3493,7 +3064,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3493
3064
|
var _a;
|
|
3494
3065
|
const user = index_module.J();
|
|
3495
3066
|
const locale = index_module.L();
|
|
3496
|
-
const [content, setContent] =
|
|
3067
|
+
const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
|
|
3497
3068
|
...state,
|
|
3498
3069
|
...next,
|
|
3499
3070
|
}), {
|
|
@@ -3537,7 +3108,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3537
3108
|
// Set the content to render and finish loading components
|
|
3538
3109
|
setContent({ columns, loading: false, page: states.currentPage });
|
|
3539
3110
|
}
|
|
3540
|
-
|
|
3111
|
+
domContextHooks_module.useEffect(() => {
|
|
3541
3112
|
setContent({ loading: true });
|
|
3542
3113
|
invoicesData && getComponentData(components);
|
|
3543
3114
|
}, [invoicesData, components, tick]);
|
|
@@ -3611,26 +3182,6 @@ async function tryMethod(c, callback) {
|
|
|
3611
3182
|
}
|
|
3612
3183
|
}
|
|
3613
3184
|
|
|
3614
|
-
const mockInvoiceData = (count = 4) => {
|
|
3615
|
-
const data = [...Array(count)].map(() => getMockData());
|
|
3616
|
-
return { data };
|
|
3617
|
-
};
|
|
3618
|
-
const getMockData = () => {
|
|
3619
|
-
const today = luxon.luxon.DateTime.now();
|
|
3620
|
-
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3621
|
-
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3622
|
-
const indirectTax = Math.round(earnings * 0.2);
|
|
3623
|
-
return {
|
|
3624
|
-
downloadUrl: "https://example.com",
|
|
3625
|
-
dateCreated: today.toMillis(),
|
|
3626
|
-
invoiceId,
|
|
3627
|
-
program: "my-program",
|
|
3628
|
-
earnings: `$${earnings}.00`,
|
|
3629
|
-
indirectTax: `$${indirectTax}.00`,
|
|
3630
|
-
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3631
|
-
};
|
|
3632
|
-
};
|
|
3633
|
-
|
|
3634
3185
|
const InvoiceTable = class {
|
|
3635
3186
|
constructor(hostRef) {
|
|
3636
3187
|
index.registerInstance(this, hostRef);
|
|
@@ -3664,7 +3215,7 @@ const InvoiceTable = class {
|
|
|
3664
3215
|
this.emptyStateHeader = "View your invoice details";
|
|
3665
3216
|
/** @uiName Empty invoice table description */
|
|
3666
3217
|
this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
3667
|
-
|
|
3218
|
+
domContextHooks_module.h$1(this);
|
|
3668
3219
|
}
|
|
3669
3220
|
disconnectedCallback() { }
|
|
3670
3221
|
render() {
|
|
@@ -3674,7 +3225,7 @@ const InvoiceTable = class {
|
|
|
3674
3225
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3675
3226
|
: useInvoiceTable(this, empty, loading);
|
|
3676
3227
|
reRender.useRequestRerender([this.perPage]);
|
|
3677
|
-
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 })));
|
|
3678
3229
|
}
|
|
3679
3230
|
};
|
|
3680
3231
|
function EmptySlot(props) {
|
|
@@ -3687,7 +3238,7 @@ function LoadingRow() {
|
|
|
3687
3238
|
return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
|
|
3688
3239
|
}
|
|
3689
3240
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
3690
|
-
const [content, setContent] =
|
|
3241
|
+
const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
|
|
3691
3242
|
...state,
|
|
3692
3243
|
...next,
|
|
3693
3244
|
}), {
|
|
@@ -3697,7 +3248,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3697
3248
|
page: 0,
|
|
3698
3249
|
});
|
|
3699
3250
|
const tick = reRender.useRerenderListener();
|
|
3700
|
-
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]);
|
|
3701
3252
|
const components = useChildElements.useChildElements();
|
|
3702
3253
|
async function getComponentData(components) {
|
|
3703
3254
|
const componentData = mockData.data.slice(0, props.perPage);
|
|
@@ -3740,7 +3291,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3740
3291
|
// Set the content to render and finish loading components
|
|
3741
3292
|
setContent({ columns, loading: false, page: 0 });
|
|
3742
3293
|
}
|
|
3743
|
-
|
|
3294
|
+
domContextHooks_module.useEffect(() => {
|
|
3744
3295
|
setContent({ loading: true });
|
|
3745
3296
|
(mockData === null || mockData === void 0 ? void 0 : mockData.data) && getComponentData(components);
|
|
3746
3297
|
}, [mockData === null || mockData === void 0 ? void 0 : mockData.data, components, tick]);
|
|
@@ -3776,22 +3327,10 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3776
3327
|
return demoProps;
|
|
3777
3328
|
}
|
|
3778
3329
|
|
|
3779
|
-
const InvoiceTableDataCell = class {
|
|
3780
|
-
constructor(hostRef) {
|
|
3781
|
-
index.registerInstance(this, hostRef);
|
|
3782
|
-
this.ignored = true;
|
|
3783
|
-
stencilHooks_module.h$1(this);
|
|
3784
|
-
}
|
|
3785
|
-
disconnectedCallback() { }
|
|
3786
|
-
render() {
|
|
3787
|
-
return this.data;
|
|
3788
|
-
}
|
|
3789
|
-
};
|
|
3790
|
-
|
|
3791
3330
|
const InvoiceTableDataColumn = class {
|
|
3792
3331
|
constructor(hostRef) {
|
|
3793
3332
|
index.registerInstance(this, hostRef);
|
|
3794
|
-
|
|
3333
|
+
domContextHooks_module.h$1(this);
|
|
3795
3334
|
}
|
|
3796
3335
|
disconnectedCallback() { }
|
|
3797
3336
|
async renderCell(data) {
|
|
@@ -3806,27 +3345,10 @@ const InvoiceTableDataColumn = class {
|
|
|
3806
3345
|
}
|
|
3807
3346
|
};
|
|
3808
3347
|
|
|
3809
|
-
const RewardTableDateCell = class {
|
|
3810
|
-
constructor(hostRef) {
|
|
3811
|
-
index.registerInstance(this, hostRef);
|
|
3812
|
-
this.ignored = true;
|
|
3813
|
-
this.locale = "en";
|
|
3814
|
-
stencilHooks_module.h$1(this);
|
|
3815
|
-
}
|
|
3816
|
-
disconnectedCallback() { }
|
|
3817
|
-
render() {
|
|
3818
|
-
var _a, _b;
|
|
3819
|
-
const date = !this.date
|
|
3820
|
-
? "-"
|
|
3821
|
-
: (_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);
|
|
3822
|
-
return date;
|
|
3823
|
-
}
|
|
3824
|
-
};
|
|
3825
|
-
|
|
3826
3348
|
const InvoiceTableDateColumn = class {
|
|
3827
3349
|
constructor(hostRef) {
|
|
3828
3350
|
index.registerInstance(this, hostRef);
|
|
3829
|
-
|
|
3351
|
+
domContextHooks_module.h$1(this);
|
|
3830
3352
|
}
|
|
3831
3353
|
disconnectedCallback() { }
|
|
3832
3354
|
async renderCell(data, options) {
|
|
@@ -3841,25 +3363,10 @@ const InvoiceTableDateColumn = class {
|
|
|
3841
3363
|
}
|
|
3842
3364
|
};
|
|
3843
3365
|
|
|
3844
|
-
const InvoiceTableDownloadCell = class {
|
|
3845
|
-
constructor(hostRef) {
|
|
3846
|
-
index.registerInstance(this, hostRef);
|
|
3847
|
-
this.ignored = true;
|
|
3848
|
-
stencilHooks_module.h$1(this);
|
|
3849
|
-
}
|
|
3850
|
-
disconnectedCallback() { }
|
|
3851
|
-
render() {
|
|
3852
|
-
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3853
|
-
cursor: pointer;
|
|
3854
|
-
}`;
|
|
3855
|
-
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" }))))));
|
|
3856
|
-
}
|
|
3857
|
-
};
|
|
3858
|
-
|
|
3859
3366
|
const InvoiceTableGenericColumn = class {
|
|
3860
3367
|
constructor(hostRef) {
|
|
3861
3368
|
index.registerInstance(this, hostRef);
|
|
3862
|
-
|
|
3369
|
+
domContextHooks_module.h$1(this);
|
|
3863
3370
|
}
|
|
3864
3371
|
disconnectedCallback() { }
|
|
3865
3372
|
async renderCell(data) {
|
|
@@ -3878,17 +3385,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3878
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" }),
|
|
3879
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" })));
|
|
3880
3387
|
|
|
3881
|
-
const style$
|
|
3388
|
+
const style$4 = {
|
|
3882
3389
|
CardContainer: {
|
|
3883
3390
|
display: "grid",
|
|
3884
3391
|
gridTemplateColumns: "1fr",
|
|
3885
3392
|
gridGap: "var(--sl-spacing-large)",
|
|
3886
|
-
background: "
|
|
3393
|
+
background: "inherit",
|
|
3887
3394
|
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
3888
|
-
borderRadius: "
|
|
3395
|
+
borderRadius: "var(--sqm-border-radius-normal)",
|
|
3889
3396
|
padding: "var(--sl-spacing-large)",
|
|
3890
3397
|
minHeight: "150px",
|
|
3891
|
-
border: "1px solid var(--
|
|
3398
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3892
3399
|
maxWidth: "450px",
|
|
3893
3400
|
},
|
|
3894
3401
|
StatusContainer: {
|
|
@@ -3898,7 +3405,7 @@ const style$5 = {
|
|
|
3898
3405
|
},
|
|
3899
3406
|
MainCurrencyLabel: {
|
|
3900
3407
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
3901
|
-
color: "var(--
|
|
3408
|
+
color: "var(--sqm-text-subdued)",
|
|
3902
3409
|
},
|
|
3903
3410
|
MainCurrency: {
|
|
3904
3411
|
margin: 0,
|
|
@@ -3907,12 +3414,12 @@ const style$5 = {
|
|
|
3907
3414
|
},
|
|
3908
3415
|
SubduedRegularText: {
|
|
3909
3416
|
fontSize: "var(--sl-font-size-small)",
|
|
3910
|
-
color: "var(--
|
|
3417
|
+
color: "var(--sqm-text-subdued)",
|
|
3911
3418
|
margin: 0,
|
|
3912
3419
|
width: "auto",
|
|
3913
3420
|
},
|
|
3914
3421
|
PaypalEmail: {
|
|
3915
|
-
borderRight: "1px solid var(--
|
|
3422
|
+
borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3916
3423
|
paddingRight: "var(--sl-spacing-small)",
|
|
3917
3424
|
"@media (max-width: 499px)": {
|
|
3918
3425
|
borderRight: "none",
|
|
@@ -3920,7 +3427,7 @@ const style$5 = {
|
|
|
3920
3427
|
},
|
|
3921
3428
|
},
|
|
3922
3429
|
PaypalDetailsContainer: {
|
|
3923
|
-
color: "var(--
|
|
3430
|
+
color: "var(--sqm-text-subdued)",
|
|
3924
3431
|
display: "flex",
|
|
3925
3432
|
gap: "var(--sl-spacing-small)",
|
|
3926
3433
|
justifyContent: "flex-start",
|
|
@@ -3941,7 +3448,7 @@ const style$5 = {
|
|
|
3941
3448
|
},
|
|
3942
3449
|
},
|
|
3943
3450
|
AccountDetailsContainer: {
|
|
3944
|
-
color: "var(--
|
|
3451
|
+
color: "var(--sqm-text-subdued)",
|
|
3945
3452
|
display: "flex",
|
|
3946
3453
|
gap: "var(--sl-spacing-small)",
|
|
3947
3454
|
justifyContent: "flex-start",
|
|
@@ -3954,7 +3461,7 @@ const style$5 = {
|
|
|
3954
3461
|
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
3955
3462
|
paddingTop: "var(--sq-spacing-xx-small)",
|
|
3956
3463
|
"& > :not(:last-child)": {
|
|
3957
|
-
borderRight: "1px solid var(--
|
|
3464
|
+
borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3958
3465
|
},
|
|
3959
3466
|
"& > :nth-child(3)": {
|
|
3960
3467
|
border: "none",
|
|
@@ -3971,7 +3478,7 @@ const style$5 = {
|
|
|
3971
3478
|
},
|
|
3972
3479
|
W9Container: {
|
|
3973
3480
|
paddingTop: "var(--sl-spacing-large)",
|
|
3974
|
-
borderTop: "1px solid var(--
|
|
3481
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
3975
3482
|
},
|
|
3976
3483
|
SkeletonOne: {
|
|
3977
3484
|
width: "25%",
|
|
@@ -3985,25 +3492,21 @@ const style$5 = {
|
|
|
3985
3492
|
width: "50%",
|
|
3986
3493
|
height: "34px",
|
|
3987
3494
|
},
|
|
3988
|
-
|
|
3495
|
+
SuccessBadge: {
|
|
3989
3496
|
"&::part(base)": {
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
"& sl-icon": {
|
|
3995
|
-
margin: 0,
|
|
3996
|
-
},
|
|
3997
|
-
"& sl-icon::part(base)": {
|
|
3998
|
-
color: "var(--sl-color-warning-500)",
|
|
3999
|
-
margin: 0,
|
|
3497
|
+
textAlign: "center",
|
|
3498
|
+
whiteSpace: "pre-line",
|
|
3499
|
+
background: "var(--sqm-success-color-icon)",
|
|
3500
|
+
color: "var(--sl-color-white)",
|
|
4000
3501
|
},
|
|
4001
3502
|
},
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
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
|
+
},
|
|
4007
3510
|
},
|
|
4008
3511
|
Container: {
|
|
4009
3512
|
display: "flex",
|
|
@@ -4012,7 +3515,7 @@ const style$5 = {
|
|
|
4012
3515
|
},
|
|
4013
3516
|
};
|
|
4014
3517
|
function PayoutDetailsCardView(props) {
|
|
4015
|
-
const sheet = JSS.createStyleSheet(style$
|
|
3518
|
+
const sheet = JSS.createStyleSheet(style$4);
|
|
4016
3519
|
const styleString = sheet.toString();
|
|
4017
3520
|
const { classes } = sheet;
|
|
4018
3521
|
const { states, text } = props;
|
|
@@ -4026,13 +3529,14 @@ function PayoutDetailsCardView(props) {
|
|
|
4026
3529
|
};
|
|
4027
3530
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
4028
3531
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
3532
|
+
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
4029
3533
|
const statusText = global.intl.formatMessage({
|
|
4030
3534
|
id: "badgeText",
|
|
4031
3535
|
defaultMessage: statusBadgeText,
|
|
4032
3536
|
}, {
|
|
4033
3537
|
badgeText: status,
|
|
4034
3538
|
});
|
|
4035
|
-
return (index.h("sl-badge", { pill: true,
|
|
3539
|
+
return (index.h("sl-badge", { pill: true, class: badgeClass }, statusText));
|
|
4036
3540
|
};
|
|
4037
3541
|
const thresholdText = global.intl.formatMessage({
|
|
4038
3542
|
id: "thresholdText",
|
|
@@ -4061,1383 +3565,145 @@ function PayoutDetailsCardView(props) {
|
|
|
4061
3565
|
: text.payoutMissingInformationText)))))));
|
|
4062
3566
|
}
|
|
4063
3567
|
|
|
4064
|
-
function usePayoutDetailsCard(props) {
|
|
4065
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
4066
|
-
const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
4067
|
-
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;
|
|
4068
|
-
function getPayoutDetailedStatusText(paymentDay) {
|
|
4069
|
-
var _a;
|
|
4070
|
-
const currentDay = luxon.luxon.DateTime.now().day;
|
|
4071
|
-
if (paymentDay === "1") {
|
|
4072
|
-
return currentDay === 1
|
|
4073
|
-
? luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy")
|
|
4074
|
-
: luxon.luxon.DateTime.now()
|
|
4075
|
-
.plus({ month: 1 })
|
|
4076
|
-
.startOf("month")
|
|
4077
|
-
.toFormat("LLL dd, yyyy");
|
|
4078
|
-
}
|
|
4079
|
-
else if (paymentDay === "15") {
|
|
4080
|
-
return currentDay <= 15
|
|
4081
|
-
? luxon.luxon.DateTime.now()
|
|
4082
|
-
.plus({ day: 15 - currentDay })
|
|
4083
|
-
.toFormat("LLL dd, yyyy")
|
|
4084
|
-
: luxon.luxon.DateTime.now()
|
|
4085
|
-
.plus({ month: 1 })
|
|
4086
|
-
.startOf("month")
|
|
4087
|
-
.plus({ day: 14 })
|
|
4088
|
-
.toFormat("LLL dd, yyyy");
|
|
4089
|
-
}
|
|
4090
|
-
else {
|
|
4091
|
-
global.intl.formatMessage({
|
|
4092
|
-
id: `nextPayoutBalance`,
|
|
4093
|
-
defaultMessage: props.thresholdPayoutText,
|
|
4094
|
-
}, {
|
|
4095
|
-
thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
|
|
4096
|
-
});
|
|
4097
|
-
}
|
|
4098
|
-
}
|
|
4099
|
-
const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
|
|
4100
|
-
const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
|
|
4101
|
-
return {
|
|
4102
|
-
states: {
|
|
4103
|
-
loading,
|
|
4104
|
-
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}`
|
|
4105
|
-
: undefined,
|
|
4106
|
-
balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
|
|
4107
|
-
badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
|
|
4108
|
-
? "thresholdPayout"
|
|
4109
|
-
: isPayoutToday
|
|
4110
|
-
? "payoutToday"
|
|
4111
|
-
: "nextPayout",
|
|
4112
|
-
payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
|
|
4113
|
-
error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
|
|
4114
|
-
paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
|
|
4115
|
-
cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
|
|
4116
|
-
nextPayoutDate: paymentDay,
|
|
4117
|
-
},
|
|
4118
|
-
text: props.getTextProps(),
|
|
4119
|
-
};
|
|
4120
|
-
}
|
|
4121
|
-
|
|
4122
|
-
const PayoutDetailsCard = class {
|
|
4123
|
-
constructor(hostRef) {
|
|
4124
|
-
index.registerInstance(this, hostRef);
|
|
4125
|
-
/**
|
|
4126
|
-
* Badge text indicating payout status
|
|
4127
|
-
* @uiName Payout badge status text
|
|
4128
|
-
*/
|
|
4129
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4130
|
-
/**
|
|
4131
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4132
|
-
* @uiName Payout schedule by threshold text
|
|
4133
|
-
*/
|
|
4134
|
-
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
4135
|
-
/**
|
|
4136
|
-
* Shown before the participant’s bank account information.
|
|
4137
|
-
* @uiName Bank account field label
|
|
4138
|
-
*/
|
|
4139
|
-
this.accountText = "Account";
|
|
4140
|
-
/**
|
|
4141
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
4142
|
-
* @uiName Payout missing information subtext
|
|
4143
|
-
*/
|
|
4144
|
-
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
4145
|
-
stencilHooks_module.h$1(this);
|
|
4146
|
-
}
|
|
4147
|
-
disconnectedCallback() { }
|
|
4148
|
-
getTextProps() {
|
|
4149
|
-
const props = utils.getProps(this);
|
|
4150
|
-
return {
|
|
4151
|
-
...props,
|
|
4152
|
-
};
|
|
4153
|
-
}
|
|
4154
|
-
render() {
|
|
4155
|
-
const props = index_module.isDemo()
|
|
4156
|
-
? useDemoPayoutDetailsCard(this)
|
|
4157
|
-
: usePayoutDetailsCard(this);
|
|
4158
|
-
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
4159
|
-
}
|
|
4160
|
-
};
|
|
4161
|
-
function useDemoPayoutDetailsCard(props) {
|
|
4162
|
-
return cjs.cjs({
|
|
4163
|
-
states: {
|
|
4164
|
-
loading: false,
|
|
4165
|
-
error: false,
|
|
4166
|
-
thresholdBalance: "$50",
|
|
4167
|
-
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
4168
|
-
badgeStatus: "nextPayout",
|
|
4169
|
-
payoutType: "BANK_TRANSFER",
|
|
4170
|
-
nextPayoutDate: "March 14, 2024",
|
|
4171
|
-
paypalEmailAddress: "joesmith@example.com",
|
|
4172
|
-
otherCurrencies: false,
|
|
4173
|
-
hasW9Pending: false,
|
|
4174
|
-
hasDatePending: true,
|
|
4175
|
-
cardNumberPreview: "XX2381",
|
|
4176
|
-
balance: "20.00 USD",
|
|
4177
|
-
},
|
|
4178
|
-
text: props.getTextProps(),
|
|
4179
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4180
|
-
}
|
|
4181
|
-
|
|
4182
|
-
const TableCell = class {
|
|
4183
|
-
constructor(hostRef) {
|
|
4184
|
-
index.registerInstance(this, hostRef);
|
|
4185
|
-
/** @uiName Column span */
|
|
4186
|
-
this.colspan = 1;
|
|
4187
|
-
/** @uiName Padding */
|
|
4188
|
-
this.padding = "15px 10px";
|
|
4189
|
-
}
|
|
4190
|
-
render() {
|
|
4191
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
4192
|
-
}
|
|
4193
|
-
};
|
|
4194
|
-
|
|
4195
|
-
const TableRow = class {
|
|
4196
|
-
constructor(hostRef) {
|
|
4197
|
-
index.registerInstance(this, hostRef);
|
|
4198
|
-
/**
|
|
4199
|
-
* @uiName Border
|
|
4200
|
-
*/
|
|
4201
|
-
this.border = "1px solid #EAEAEA";
|
|
4202
|
-
}
|
|
4203
|
-
render() {
|
|
4204
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
4205
|
-
}
|
|
4206
|
-
};
|
|
4207
|
-
|
|
4208
|
-
function getCurrentStep(user) {
|
|
4209
|
-
var _a, _b;
|
|
4210
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4211
|
-
return "/1";
|
|
4212
|
-
}
|
|
4213
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
4214
|
-
// If they do have a required document, look at current document
|
|
4215
|
-
if (requiredTaxDocumentType && !currentTaxDocument)
|
|
4216
|
-
return "/3";
|
|
4217
|
-
if (!withdrawalSettings && brandedSignup)
|
|
4218
|
-
return "/4";
|
|
4219
|
-
return "/dashboard";
|
|
4220
|
-
}
|
|
4221
|
-
function useTaxAndCash() {
|
|
4222
|
-
var _a, _b, _c, _d, _e;
|
|
4223
|
-
const host = index_module._();
|
|
4224
|
-
const user = index_module.J();
|
|
4225
|
-
const locale = index_module.L();
|
|
4226
|
-
// State for current step of form
|
|
4227
|
-
const [step, setStep] = index_module.In({
|
|
4228
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4229
|
-
initialValue: "/loading",
|
|
4230
|
-
});
|
|
4231
|
-
// State for when to hide steps, or override certain actions
|
|
4232
|
-
const [context, _setContext] = index_module.In({
|
|
4233
|
-
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4234
|
-
initialValue: {},
|
|
4235
|
-
});
|
|
4236
|
-
// State to carry user form information into step 2
|
|
4237
|
-
const [userFormContext, _setUserFormContext] = index_module.In({
|
|
4238
|
-
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4239
|
-
initialValue: {
|
|
4240
|
-
firstName: undefined,
|
|
4241
|
-
lastName: undefined,
|
|
4242
|
-
email: undefined,
|
|
4243
|
-
countryCode: undefined,
|
|
4244
|
-
currency: undefined,
|
|
4245
|
-
},
|
|
4246
|
-
});
|
|
4247
|
-
const [_currenciesContext, setCurrenciesContext] = index_module.In({
|
|
4248
|
-
namespace: CURRENCIES_NAMESPACE,
|
|
4249
|
-
initialValue: [],
|
|
4250
|
-
});
|
|
4251
|
-
const [_countriesContext, _setCountriesContext] = index_module.In({
|
|
4252
|
-
namespace: COUNTRIES_NAMESPACE,
|
|
4253
|
-
initialValue: [],
|
|
4254
|
-
});
|
|
4255
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
|
|
4256
|
-
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4257
|
-
initialValue: [],
|
|
4258
|
-
});
|
|
4259
|
-
const { data, errors } = index_module.Sn({
|
|
4260
|
-
namespace: USER_QUERY_NAMESPACE,
|
|
4261
|
-
query: GET_USER,
|
|
4262
|
-
skip: !user,
|
|
4263
|
-
options: {
|
|
4264
|
-
batch: false,
|
|
4265
|
-
},
|
|
4266
|
-
});
|
|
4267
|
-
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) ||
|
|
4268
|
-
userFormContext.countryCode;
|
|
4269
|
-
index_module.Sn({
|
|
4270
|
-
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4271
|
-
query: GET_COUNTRIES,
|
|
4272
|
-
skip: !user,
|
|
4273
|
-
});
|
|
4274
|
-
const { data: financeNetworkData, refetch } = index_module.Sn({
|
|
4275
|
-
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4276
|
-
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4277
|
-
skip: !user,
|
|
4278
|
-
variables: {
|
|
4279
|
-
filter: getFinanceNetworkFilter(),
|
|
4280
|
-
},
|
|
4281
|
-
});
|
|
4282
|
-
const { data: currenciesData } = index_module.Sn({
|
|
4283
|
-
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4284
|
-
query: GET_CURRENCIES,
|
|
4285
|
-
skip: !user,
|
|
4286
|
-
variables: {
|
|
4287
|
-
locale,
|
|
4288
|
-
},
|
|
4289
|
-
});
|
|
4290
|
-
const supportedCurrencies = stencilHooks_module.useMemo(() => {
|
|
4291
|
-
var _a, _b;
|
|
4292
|
-
// Filter out any currencies not supported by finance network settings
|
|
4293
|
-
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) => {
|
|
4294
|
-
var _a, _b;
|
|
4295
|
-
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);
|
|
4296
|
-
// Currency not in supported list
|
|
4297
|
-
if (!currency)
|
|
4298
|
-
return agg;
|
|
4299
|
-
// Currency already added to list
|
|
4300
|
-
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4301
|
-
return agg;
|
|
4302
|
-
// Currency not supported by selected country
|
|
4303
|
-
if (userFormContext.countryCode &&
|
|
4304
|
-
settings.countryCode !== countryCode)
|
|
4305
|
-
return agg;
|
|
4306
|
-
return [...agg, currency];
|
|
4307
|
-
}, []);
|
|
4308
|
-
return allValidCurrencies;
|
|
4309
|
-
}, [financeNetworkData, countryCode]);
|
|
4310
|
-
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4311
|
-
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4312
|
-
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4313
|
-
// filter out any duplicate countries and null countryCode
|
|
4314
|
-
const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4315
|
-
const _topCountries = ["CA", "GB", "US"];
|
|
4316
|
-
const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
|
|
4317
|
-
.map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
|
|
4318
|
-
.sort(sortByName)
|
|
4319
|
-
.reduce((prev, countryObj) => {
|
|
4320
|
-
if (_topCountries.includes(countryObj.countryCode))
|
|
4321
|
-
return [countryObj, ...prev];
|
|
4322
|
-
return [...prev, countryObj];
|
|
4323
|
-
}, []), [availableCountries]);
|
|
4324
|
-
stencilHooks_module.useEffect(() => {
|
|
4325
|
-
if (sortedCountries)
|
|
4326
|
-
setSortedCountriesContext(sortedCountries);
|
|
4327
|
-
}, [sortedCountries]);
|
|
4328
|
-
stencilHooks_module.useEffect(() => {
|
|
4329
|
-
if (supportedCurrencies)
|
|
4330
|
-
setCurrenciesContext(supportedCurrencies);
|
|
4331
|
-
}, [supportedCurrencies]);
|
|
4332
|
-
stencilHooks_module.useEffect(() => {
|
|
4333
|
-
if (errors) {
|
|
4334
|
-
setStep("/error");
|
|
4335
|
-
return;
|
|
4336
|
-
}
|
|
4337
|
-
if (!host || !user)
|
|
4338
|
-
return;
|
|
4339
|
-
if (data) {
|
|
4340
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4341
|
-
if (!user || step !== "/loading")
|
|
4342
|
-
return;
|
|
4343
|
-
const currentStep = getCurrentStep(user);
|
|
4344
|
-
setStep(currentStep);
|
|
4345
|
-
}
|
|
4346
|
-
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4347
|
-
function getFinanceNetworkFilter() {
|
|
4348
|
-
var _a, _b, _c;
|
|
4349
|
-
if (step === "/1")
|
|
4350
|
-
return {};
|
|
4351
|
-
if (step === "/4")
|
|
4352
|
-
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 };
|
|
4353
|
-
if (countryCode)
|
|
4354
|
-
return {
|
|
4355
|
-
countryCode_eq: countryCode,
|
|
4356
|
-
};
|
|
4357
|
-
return {};
|
|
4358
|
-
}
|
|
4359
|
-
return {
|
|
4360
|
-
step,
|
|
4361
|
-
setStep,
|
|
4362
|
-
context,
|
|
4363
|
-
namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
|
|
4364
|
-
loading: step === "/loading",
|
|
4365
|
-
};
|
|
4366
|
-
}
|
|
4367
|
-
|
|
4368
|
-
const TaxAndCashMonolith = class {
|
|
4369
|
-
constructor(hostRef) {
|
|
4370
|
-
index.registerInstance(this, hostRef);
|
|
4371
|
-
/*---------------------------------------------------------------------------------
|
|
4372
|
-
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4373
|
-
-----------------------------------------------------------------------------------*/
|
|
4374
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4375
|
-
STEP 1 PROPS:
|
|
4376
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4377
|
-
/**
|
|
4378
|
-
* @uiName First name field label
|
|
4379
|
-
* @uiGroup Step 1 Properties
|
|
4380
|
-
*/
|
|
4381
|
-
this.step1_firstName = "First name";
|
|
4382
|
-
/**
|
|
4383
|
-
* @uiName Last name field label
|
|
4384
|
-
* @uiGroup Step 1 Properties
|
|
4385
|
-
*/
|
|
4386
|
-
this.step1_lastName = "Last name";
|
|
4387
|
-
/**
|
|
4388
|
-
* @uiName Email field label
|
|
4389
|
-
* @uiGroup Step 1 Properties
|
|
4390
|
-
*/
|
|
4391
|
-
this.step1_email = "Email";
|
|
4392
|
-
/**
|
|
4393
|
-
* @uiName Country field label
|
|
4394
|
-
* @uiGroup Step 1 Properties
|
|
4395
|
-
*/
|
|
4396
|
-
this.step1_country = "Country";
|
|
4397
|
-
/**
|
|
4398
|
-
* @uiName Phone number field label
|
|
4399
|
-
* @uiGroup Step 1 Properties
|
|
4400
|
-
*/
|
|
4401
|
-
this.step1_phoneNumber = "Phone number";
|
|
4402
|
-
/**
|
|
4403
|
-
* @uiName Address field label
|
|
4404
|
-
* @uiGroup Step 1 Properties
|
|
4405
|
-
*/
|
|
4406
|
-
this.step1_address = "Address";
|
|
4407
|
-
/**
|
|
4408
|
-
* @uiName City field label
|
|
4409
|
-
* @uiGroup Step 1 Properties
|
|
4410
|
-
*/
|
|
4411
|
-
this.step1_city = "City";
|
|
4412
|
-
/**
|
|
4413
|
-
* @uiName State field label for states
|
|
4414
|
-
* @uiGroup Step 1 Properties
|
|
4415
|
-
*/
|
|
4416
|
-
this.step1_state = "State";
|
|
4417
|
-
/**
|
|
4418
|
-
* @uiName State field label for provinces
|
|
4419
|
-
* @uiGroup Step 1 Properties
|
|
4420
|
-
*/
|
|
4421
|
-
this.step1_province = "Province";
|
|
4422
|
-
/**
|
|
4423
|
-
* @uiName State field label for regions
|
|
4424
|
-
* @uiGroup Step 1 Properties
|
|
4425
|
-
*/
|
|
4426
|
-
this.step1_region = "Region";
|
|
4427
|
-
/**
|
|
4428
|
-
* @uiName Postal code field label
|
|
4429
|
-
* @uiGroup Step 1 Properties
|
|
4430
|
-
*/
|
|
4431
|
-
this.step1_postalCode = "Postal code";
|
|
4432
|
-
/**
|
|
4433
|
-
* @uiName Currency field label
|
|
4434
|
-
* @uiGroup Step 1 Properties
|
|
4435
|
-
*/
|
|
4436
|
-
this.step1_currency = "Currency";
|
|
4437
|
-
/**
|
|
4438
|
-
* @uiName Currency field help text
|
|
4439
|
-
* @uiGroup Step 1 Properties
|
|
4440
|
-
*/
|
|
4441
|
-
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4442
|
-
/**
|
|
4443
|
-
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4444
|
-
* @uiName Terms and conditions checkbox
|
|
4445
|
-
* @uiGroup Step 1 Properties
|
|
4446
|
-
*/
|
|
4447
|
-
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4448
|
-
/**
|
|
4449
|
-
* @uiName Step 1 title
|
|
4450
|
-
* @uiGroup Step 1 Properties
|
|
4451
|
-
*/
|
|
4452
|
-
this.step1_personalInformation = "Personal Information";
|
|
4453
|
-
/**
|
|
4454
|
-
* The link text that appears in the terms and conditions checkbox
|
|
4455
|
-
* @uiName Terms and conditions text
|
|
4456
|
-
* @uiGroup Step 1 Properties
|
|
4457
|
-
* @uiWidget textArea
|
|
4458
|
-
*/
|
|
4459
|
-
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4460
|
-
/**
|
|
4461
|
-
* The link that appears in the terms and conditions checkbox
|
|
4462
|
-
* @uiName Terms and conditions link
|
|
4463
|
-
* @uiGroup Step 1 Properties
|
|
4464
|
-
*/
|
|
4465
|
-
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4466
|
-
/**
|
|
4467
|
-
* Placeholder text displayed in the currency search dropdown
|
|
4468
|
-
* @uiName Currency field placeholder text
|
|
4469
|
-
* @uiGroup Step 1 Properties
|
|
4470
|
-
*/
|
|
4471
|
-
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4472
|
-
/**
|
|
4473
|
-
|
|
4474
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4475
|
-
STEP 2 PROPS:
|
|
4476
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4477
|
-
/**
|
|
4478
|
-
* @uiName Step 2 title
|
|
4479
|
-
* @uiGroup Step 2 Properties
|
|
4480
|
-
*/
|
|
4481
|
-
this.step2_indirectTax = "Indirect Tax";
|
|
4482
|
-
/**
|
|
4483
|
-
* Displayed under the title of this step.
|
|
4484
|
-
* @uiName Step 2 description
|
|
4485
|
-
* @uiGroup Step 2 Properties
|
|
4486
|
-
* @uiWidget textArea
|
|
4487
|
-
*/
|
|
4488
|
-
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.";
|
|
4489
|
-
/**
|
|
4490
|
-
* Displayed with indirect tax registration options.
|
|
4491
|
-
* @uiName Indirect tax details section title
|
|
4492
|
-
* @uiGroup Step 2 Properties
|
|
4493
|
-
*/
|
|
4494
|
-
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4495
|
-
/**
|
|
4496
|
-
* @uiName Registered for indirect tax option
|
|
4497
|
-
* @uiGroup Step 2 Properties
|
|
4498
|
-
* @uiWidget textArea
|
|
4499
|
-
*
|
|
4500
|
-
*/
|
|
4501
|
-
this.step2_otherRegion = "Registered for indirect tax";
|
|
4502
|
-
/**
|
|
4503
|
-
* Selecting this option will display fields to enter indirect tax details.
|
|
4504
|
-
* @uiName Registered for indirect tax option description
|
|
4505
|
-
* @uiGroup Step 2 Properties
|
|
4506
|
-
*/
|
|
4507
|
-
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4508
|
-
/**
|
|
4509
|
-
* @uiName Not registered for indirect tax option
|
|
4510
|
-
* @uiGroup Step 2 Properties
|
|
4511
|
-
* @uiWidget textArea
|
|
4512
|
-
*/
|
|
4513
|
-
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4514
|
-
/**
|
|
4515
|
-
* Participants based in the US are considered not registered.
|
|
4516
|
-
* @uiName Not registered for indirect tax option description
|
|
4517
|
-
* @uiGroup Step 2 Properties
|
|
4518
|
-
*/
|
|
4519
|
-
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4520
|
-
/**
|
|
4521
|
-
* @uiName Region of indirect tax field label
|
|
4522
|
-
* @uiGroup Step 2 Properties
|
|
4523
|
-
*/
|
|
4524
|
-
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4525
|
-
/**
|
|
4526
|
-
* @uiName Indirect tax number field label
|
|
4527
|
-
* @uiGroup Step 2 Properties
|
|
4528
|
-
*/
|
|
4529
|
-
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4530
|
-
/**
|
|
4531
|
-
* @uiName Province field label
|
|
4532
|
-
* @uiGroup Step 2 Properties
|
|
4533
|
-
*/
|
|
4534
|
-
this.step2_province = "Province";
|
|
4535
|
-
/**
|
|
4536
|
-
* @uiName Missing indirect tax number error message
|
|
4537
|
-
* @uiGroup Step 2 Properties
|
|
4538
|
-
*/
|
|
4539
|
-
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";
|
|
4540
|
-
/**
|
|
4541
|
-
* Displayed to participants registered for QST.
|
|
4542
|
-
* @uiName QST number field label
|
|
4543
|
-
* @uiGroup Step 2 Properties
|
|
4544
|
-
*/
|
|
4545
|
-
this.step2_qstNumber = "QST number";
|
|
4546
|
-
/**
|
|
4547
|
-
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4548
|
-
* @uiName QST tax checkbox
|
|
4549
|
-
* @uiGroup Step 2 Properties
|
|
4550
|
-
*/
|
|
4551
|
-
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4552
|
-
/**
|
|
4553
|
-
* Displayed to participants registered for indirect tax in Spain.
|
|
4554
|
-
* @uiName Spain income tax checkbox
|
|
4555
|
-
* @uiGroup Step 2 Properties
|
|
4556
|
-
* @uiWidget textArea
|
|
4557
|
-
*/
|
|
4558
|
-
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.";
|
|
4559
|
-
/**
|
|
4560
|
-
* Displayed to participants registered in Spain.
|
|
4561
|
-
* @uiName Sub-region of indirect tax field label
|
|
4562
|
-
* @uiGroup Step 2 Properties
|
|
4563
|
-
*/
|
|
4564
|
-
this.step2_subRegion = "Sub-region";
|
|
4565
|
-
/**
|
|
4566
|
-
* @uiName Income tax field label
|
|
4567
|
-
* @uiGroup Step 2 Properties
|
|
4568
|
-
*/
|
|
4569
|
-
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4570
|
-
/**
|
|
4571
|
-
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4572
|
-
* @uiName Submission confirmation alert
|
|
4573
|
-
* @uiGroup Step 2 Properties
|
|
4574
|
-
* @uiWidget textArea
|
|
4575
|
-
*/
|
|
4576
|
-
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.";
|
|
4577
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4578
|
-
STEP 3 PROPS:
|
|
4579
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4580
|
-
/**
|
|
4581
|
-
* @uiName Step 3 title
|
|
4582
|
-
* @uiGroup Step 3 Properties
|
|
4583
|
-
*/
|
|
4584
|
-
this.step3_taxForm = "Tax form";
|
|
4585
|
-
/**
|
|
4586
|
-
* Display the type of tax form that the participant must submit.
|
|
4587
|
-
* @uiName Tax form name
|
|
4588
|
-
* @uiGroup Step 3 Properties
|
|
4589
|
-
*/
|
|
4590
|
-
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4591
|
-
/**
|
|
4592
|
-
* @uiName Participant type field label
|
|
4593
|
-
* @uiGroup Step 3 Properties
|
|
4594
|
-
*/
|
|
4595
|
-
this.step3_participantType = "Participant type";
|
|
4596
|
-
/**
|
|
4597
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4598
|
-
* @uiName Business representative participant type label
|
|
4599
|
-
* @uiGroup Step 3 Properties
|
|
4600
|
-
*/
|
|
4601
|
-
this.step3_businessEntity = "I represent a business";
|
|
4602
|
-
/**
|
|
4603
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4604
|
-
* @uiName Individual participant type label
|
|
4605
|
-
* @uiGroup Step 3 Properties
|
|
4606
|
-
*/
|
|
4607
|
-
this.step3_individualParticipant = "I am an individual participant";
|
|
4608
|
-
/**
|
|
4609
|
-
* Displayed at the top of the page to participants based in the US.
|
|
4610
|
-
* @uiName W-9 tax form description
|
|
4611
|
-
* @uiGroup Step 3 Properties
|
|
4612
|
-
* @uiWidget textArea
|
|
4613
|
-
*/
|
|
4614
|
-
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4615
|
-
/**
|
|
4616
|
-
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4617
|
-
* @uiName W-8 BEN tax form description
|
|
4618
|
-
* @uiGroup Step 3 Properties
|
|
4619
|
-
* @uiWidget textArea
|
|
4620
|
-
*/
|
|
4621
|
-
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4622
|
-
/**
|
|
4623
|
-
* Displayed at the top of the page to participants representing a business.
|
|
4624
|
-
* @uiName W-8 BEN-E tax form description
|
|
4625
|
-
* @uiGroup Step 3 Properties
|
|
4626
|
-
* @uiWidget textArea
|
|
4627
|
-
*/
|
|
4628
|
-
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4629
|
-
/**
|
|
4630
|
-
* This appears inside the Docusign frame.
|
|
4631
|
-
* @uiName Docusign session expired message
|
|
4632
|
-
* @uiGroup Step 3 Properties
|
|
4633
|
-
* @uiWidget textArea
|
|
4634
|
-
*/
|
|
4635
|
-
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.";
|
|
4636
|
-
/**
|
|
4637
|
-
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4638
|
-
* @uiName Docusign timed session message
|
|
4639
|
-
* @uiGroup Step 3 Properties
|
|
4640
|
-
* @uiWidget textArea
|
|
4641
|
-
*/
|
|
4642
|
-
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4643
|
-
/**
|
|
4644
|
-
* This appears inside the Docusign frame.
|
|
4645
|
-
* @uiName Docusign form error message
|
|
4646
|
-
* @uiGroup Step 3 Properties
|
|
4647
|
-
* @uiWidget textArea
|
|
4648
|
-
*/
|
|
4649
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4650
|
-
/**
|
|
4651
|
-
* @uiName Refresh page button label
|
|
4652
|
-
* @uiGroup Step 3 Properties
|
|
4653
|
-
*/
|
|
4654
|
-
this.step3_refreshButton = "Refresh Page";
|
|
4655
|
-
/**
|
|
4656
|
-
* @uiName Exit button text
|
|
4657
|
-
* @uiGroup Step 3 Properties
|
|
4658
|
-
*/
|
|
4659
|
-
this.step3_exitButton = "Exit";
|
|
4660
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4661
|
-
STEP 4 PROPS:
|
|
4662
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4663
|
-
/**
|
|
4664
|
-
* @uiName Step 4 title
|
|
4665
|
-
* @uiGroup Step 4 Properties
|
|
4666
|
-
*/
|
|
4667
|
-
this.step4_taxAndPayouts = "Payouts";
|
|
4668
|
-
/**
|
|
4669
|
-
* @uiName Direct to bank payout option
|
|
4670
|
-
* @uiGroup Step 4 Properties
|
|
4671
|
-
*/
|
|
4672
|
-
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4673
|
-
/**
|
|
4674
|
-
* @uiName PayPal payout option
|
|
4675
|
-
* @uiGroup Step 4 Properties
|
|
4676
|
-
*/
|
|
4677
|
-
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4678
|
-
/**
|
|
4679
|
-
* @uiName Threshold balance payment schedule option
|
|
4680
|
-
* @uiGroup Step 4 Properties
|
|
4681
|
-
*/
|
|
4682
|
-
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4683
|
-
/**
|
|
4684
|
-
* @uiName Fixed day payment schedule option
|
|
4685
|
-
* @uiGroup Step 4 Properties
|
|
4686
|
-
*/
|
|
4687
|
-
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4688
|
-
/**
|
|
4689
|
-
* Let the participant choose what day of the month they’ll get paid
|
|
4690
|
-
* @uiName Payment day field label
|
|
4691
|
-
* @uiGroup Step 4 Properties
|
|
4692
|
-
*/
|
|
4693
|
-
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4694
|
-
/**
|
|
4695
|
-
* Participant use this field to select the balance at which they want to be paid
|
|
4696
|
-
* @uiName Payment threshold field label
|
|
4697
|
-
* @uiGroup Step 4 Properties
|
|
4698
|
-
*/
|
|
4699
|
-
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4700
|
-
/**
|
|
4701
|
-
* One of two payment day options
|
|
4702
|
-
* @uiName First of month payday option
|
|
4703
|
-
* @uiGroup Step 4 Properties
|
|
4704
|
-
*/
|
|
4705
|
-
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4706
|
-
/**
|
|
4707
|
-
* One of two payment day options
|
|
4708
|
-
* @uiName Fifteenth of month payday option
|
|
4709
|
-
* @uiGroup Step 4 Properties
|
|
4710
|
-
*/
|
|
4711
|
-
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4712
|
-
/**
|
|
4713
|
-
* @uiName Payment method section header
|
|
4714
|
-
* @uiGroup Step 4 Properties
|
|
4715
|
-
*/
|
|
4716
|
-
this.step4_paymentMethod = "Payment method";
|
|
4717
|
-
/**
|
|
4718
|
-
* @uiName Payment schedule section header
|
|
4719
|
-
* @uiGroup Step 4 Properties
|
|
4720
|
-
*/
|
|
4721
|
-
this.step4_paymentSchedule = "Payment schedule";
|
|
4722
|
-
/**
|
|
4723
|
-
* @uiName Payment method section description
|
|
4724
|
-
* @uiGroup Step 4 Properties
|
|
4725
|
-
*/
|
|
4726
|
-
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4727
|
-
/**
|
|
4728
|
-
* Displayed to participants who choose PayPal as their payout method
|
|
4729
|
-
* @uiName PayPal email field label
|
|
4730
|
-
* @uiGroup Step 4 Properties
|
|
4731
|
-
*/
|
|
4732
|
-
this.step4_payPalInputLabel = "PayPal email";
|
|
4733
|
-
/**
|
|
4734
|
-
* @uiName Bank country field label
|
|
4735
|
-
* @uiGroup Step 4 Properties
|
|
4736
|
-
*/
|
|
4737
|
-
this.step4_bankLocationLabel = "Bank country location";
|
|
4738
|
-
/**
|
|
4739
|
-
* @uiName Beneficiary account field label
|
|
4740
|
-
* @uiGroup Step 4 Properties
|
|
4741
|
-
*/
|
|
4742
|
-
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4743
|
-
/**
|
|
4744
|
-
* @uiName Bank account type field label
|
|
4745
|
-
* @uiGroup Step 4 Properties
|
|
4746
|
-
*/
|
|
4747
|
-
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4748
|
-
/**
|
|
4749
|
-
* @uiName Checking account option
|
|
4750
|
-
* @uiGroup Step 4 Properties
|
|
4751
|
-
*/
|
|
4752
|
-
this.step4_checkingSelectItemLabel = "Checking";
|
|
4753
|
-
/**
|
|
4754
|
-
* Label text for the savings account type select item
|
|
4755
|
-
* @uiName Savings account options
|
|
4756
|
-
* @uiGroup Step 4 Properties
|
|
4757
|
-
*/
|
|
4758
|
-
this.step4_savingsSelectItemLabel = "Savings";
|
|
4759
|
-
/**
|
|
4760
|
-
* @uiName Bank account number field label
|
|
4761
|
-
* @uiGroup Step 4 Properties
|
|
4762
|
-
*/
|
|
4763
|
-
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4764
|
-
/**
|
|
4765
|
-
* @uiName IBAN field label
|
|
4766
|
-
* @uiGroup Step 4 Properties
|
|
4767
|
-
*/
|
|
4768
|
-
this.step4_ibanLabel = "IBAN";
|
|
4769
|
-
/**
|
|
4770
|
-
* @uiName SWIFT code field label
|
|
4771
|
-
* @uiGroup Step 4 Properties
|
|
4772
|
-
*/
|
|
4773
|
-
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4774
|
-
/**
|
|
4775
|
-
* @uiName Routing code field label
|
|
4776
|
-
* @uiGroup Step 4 Properties
|
|
4777
|
-
*/
|
|
4778
|
-
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} }";
|
|
4779
|
-
/**
|
|
4780
|
-
* @uiName Bank name field label
|
|
4781
|
-
* @uiGroup Step 4 Properties
|
|
4782
|
-
*/
|
|
4783
|
-
this.step4_bankNameLabel = "Bank name";
|
|
4784
|
-
/**
|
|
4785
|
-
* @uiName Classification entity field label
|
|
4786
|
-
* @uiGroup Step 4 Properties
|
|
4787
|
-
*/
|
|
4788
|
-
this.step4_classificationEntityLabel = "Classification entity";
|
|
4789
|
-
/**
|
|
4790
|
-
* One of three options listed for the classification field
|
|
4791
|
-
* @uiName Business classification option
|
|
4792
|
-
* @uiGroup Step 4 Properties
|
|
4793
|
-
*/
|
|
4794
|
-
this.step4_businessSelectItemLabel = "Business";
|
|
4795
|
-
/**
|
|
4796
|
-
* One of three options listed for the classification field
|
|
4797
|
-
* @uiName Individual classification option
|
|
4798
|
-
* @uiGroup Step 4 Properties
|
|
4799
|
-
*/
|
|
4800
|
-
this.step4_individualSelectItemLabel = "Individual";
|
|
4801
|
-
/**
|
|
4802
|
-
* One of three options listed for the classification field
|
|
4803
|
-
* @uiName Foreign classification option
|
|
4804
|
-
* @uiGroup Step 4 Properties
|
|
4805
|
-
*/
|
|
4806
|
-
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4807
|
-
/**
|
|
4808
|
-
* @uiName Classification CPF field label
|
|
4809
|
-
* @uiGroup Step 4 Properties
|
|
4810
|
-
*/
|
|
4811
|
-
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4812
|
-
/**
|
|
4813
|
-
* @uiName Patronymic name field label
|
|
4814
|
-
* @uiGroup Step 4 Properties
|
|
4815
|
-
*/
|
|
4816
|
-
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4817
|
-
/**
|
|
4818
|
-
* @uiName VO code field label
|
|
4819
|
-
* @uiGroup Step 4 Properties
|
|
4820
|
-
*/
|
|
4821
|
-
this.step4_voCodeLabel = "VO code";
|
|
4822
|
-
/**
|
|
4823
|
-
* @uiName Agency code field label
|
|
4824
|
-
* @uiGroup Step 4 Properties
|
|
4825
|
-
*/
|
|
4826
|
-
this.step4_agencyCodeLabel = "Agency code";
|
|
4827
|
-
/**
|
|
4828
|
-
* @uiName Branch code field label
|
|
4829
|
-
* @uiGroup Step 4 Properties
|
|
4830
|
-
*/
|
|
4831
|
-
this.step4_branchCodeLabel = "Branch code";
|
|
4832
|
-
/**
|
|
4833
|
-
* Label text for the classification input field
|
|
4834
|
-
* @uiName Classification field label
|
|
4835
|
-
* @uiGroup Step 4 Properties
|
|
4836
|
-
*/
|
|
4837
|
-
this.step4_classificationLabel = "Classification";
|
|
4838
|
-
/**
|
|
4839
|
-
* @uiName Taxpayer ID field label
|
|
4840
|
-
* @uiGroup Step 4 Properties
|
|
4841
|
-
*/
|
|
4842
|
-
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4843
|
-
/**
|
|
4844
|
-
* @uiName Bank address field label
|
|
4845
|
-
* @uiGroup Step 4 Properties
|
|
4846
|
-
*/
|
|
4847
|
-
this.step4_bankAddressLabel = "Bank address";
|
|
4848
|
-
/**
|
|
4849
|
-
* @uiName Bank city field label
|
|
4850
|
-
* @uiGroup Step 4 Properties
|
|
4851
|
-
*/
|
|
4852
|
-
this.step4_bankCityLabel = "Bank city";
|
|
4853
|
-
/**
|
|
4854
|
-
* @uiName Bank province/state field label
|
|
4855
|
-
* @uiGroup Step 4 Properties
|
|
4856
|
-
*/
|
|
4857
|
-
this.step4_bankStateLabel = "Bank Province / State";
|
|
4858
|
-
/**
|
|
4859
|
-
* @uiName Bank postal code field label
|
|
4860
|
-
* @uiGroup Step 4 Properties
|
|
4861
|
-
*/
|
|
4862
|
-
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
4863
|
-
/**
|
|
4864
|
-
* Default payment method to the participants’ bank account.
|
|
4865
|
-
* @uiName EFT withdrawal payment method
|
|
4866
|
-
* @uiGroup Step 4 Properties
|
|
4867
|
-
*/
|
|
4868
|
-
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
4869
|
-
/**
|
|
4870
|
-
* @uiName FX Wire Processing fee text
|
|
4871
|
-
* @uiGroup Step 4 Properties
|
|
4872
|
-
*/
|
|
4873
|
-
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4874
|
-
/**
|
|
4875
|
-
* @uiName Text for verify email dialog
|
|
4876
|
-
* @uiGroup Step 4 Properties
|
|
4877
|
-
*/
|
|
4878
|
-
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4879
|
-
/**
|
|
4880
|
-
* @uiName Verify code widget header text
|
|
4881
|
-
* @uiGroup Step 4 Properties
|
|
4882
|
-
*/
|
|
4883
|
-
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4884
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4885
|
-
DASHBOARD PROPS:
|
|
4886
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4887
|
-
/**
|
|
4888
|
-
* @uiName Active tax form badge label
|
|
4889
|
-
* @uiGroup Dashboard Properties
|
|
4890
|
-
*/
|
|
4891
|
-
this.dashboard_statusTextActive = "Active";
|
|
4892
|
-
/**
|
|
4893
|
-
* @uiName Invalid tax form badge label
|
|
4894
|
-
* @uiGroup Dashboard Properties
|
|
4895
|
-
*/
|
|
4896
|
-
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
4897
|
-
/**
|
|
4898
|
-
* Displayed when the participant submitted their form but it is awaiting review.
|
|
4899
|
-
*
|
|
4900
|
-
* @uiName Not verified tax form badge label
|
|
4901
|
-
* @uiGroup Dashboard Properties
|
|
4902
|
-
*/
|
|
4903
|
-
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
4904
|
-
/**
|
|
4905
|
-
* Additional text displayed next to the tax form's status badge
|
|
4906
|
-
*
|
|
4907
|
-
* @uiName Active W-9 description
|
|
4908
|
-
* @uiGroup Dashboard Properties
|
|
4909
|
-
*/
|
|
4910
|
-
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
4911
|
-
/**
|
|
4912
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4913
|
-
*
|
|
4914
|
-
* @uiName Active W-8 description
|
|
4915
|
-
* @uiGroup Dashboard Properties
|
|
4916
|
-
*/
|
|
4917
|
-
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
4918
|
-
/**
|
|
4919
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4920
|
-
*
|
|
4921
|
-
* @uiName Tax form in review description
|
|
4922
|
-
* @uiGroup Dashboard Properties
|
|
4923
|
-
*/
|
|
4924
|
-
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
4925
|
-
/**
|
|
4926
|
-
* Part of the alert displayed at the top of the page.
|
|
4927
|
-
*
|
|
4928
|
-
* @uiName Inactive W-9 error message title
|
|
4929
|
-
* @uiGroup Dashboard Properties
|
|
4930
|
-
* @uiWidget textArea
|
|
4931
|
-
*/
|
|
4932
|
-
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
4933
|
-
/**
|
|
4934
|
-
* Part of the alert displayed at the top of the page.
|
|
4935
|
-
*
|
|
4936
|
-
* @uiName Inactive W-8 error message title
|
|
4937
|
-
* @uiGroup Dashboard Properties
|
|
4938
|
-
* @uiWidget textArea
|
|
4939
|
-
*/
|
|
4940
|
-
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
4941
|
-
/**
|
|
4942
|
-
* Part of the alert displayed at the top of the page.
|
|
4943
|
-
*
|
|
4944
|
-
* @uiName Inactive W-9 error message description
|
|
4945
|
-
* @uiGroup Dashboard Properties
|
|
4946
|
-
* @uiWidget textArea
|
|
4947
|
-
*/
|
|
4948
|
-
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
4949
|
-
/**
|
|
4950
|
-
* Part of the alert displayed at the top of the page.
|
|
4951
|
-
*
|
|
4952
|
-
* @uiName Inactive W-8 error message description
|
|
4953
|
-
* @uiGroup Dashboard Properties
|
|
4954
|
-
*/
|
|
4955
|
-
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.";
|
|
4956
|
-
/**
|
|
4957
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4958
|
-
*
|
|
4959
|
-
* @uiName Invalid tax form description
|
|
4960
|
-
* @uiGroup Dashboard Properties
|
|
4961
|
-
* @uiWidget textArea
|
|
4962
|
-
*/
|
|
4963
|
-
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
4964
|
-
/**
|
|
4965
|
-
* @uiName Payout information section header
|
|
4966
|
-
* @uiGroup Dashboard Properties
|
|
4967
|
-
*/
|
|
4968
|
-
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
4969
|
-
/**
|
|
4970
|
-
* @uiName Tax document section header
|
|
4971
|
-
* @uiGroup Dashboard Properties
|
|
4972
|
-
*/
|
|
4973
|
-
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
4974
|
-
/**
|
|
4975
|
-
* Displayed under the tax document section header.
|
|
4976
|
-
*
|
|
4977
|
-
* @uiName Tax documents section description
|
|
4978
|
-
* @uiGroup Dashboard Properties
|
|
4979
|
-
*/
|
|
4980
|
-
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4981
|
-
/**
|
|
4982
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4983
|
-
*
|
|
4984
|
-
* @uiName Tax form not required text
|
|
4985
|
-
* @uiGroup Dashboard Properties
|
|
4986
|
-
* @uiWidget textArea
|
|
4987
|
-
*/
|
|
4988
|
-
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.";
|
|
4989
|
-
/**
|
|
4990
|
-
*
|
|
4991
|
-
* @uiName Indirect tax section header
|
|
4992
|
-
* @uiGroup Dashboard Properties
|
|
4993
|
-
*/
|
|
4994
|
-
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
4995
|
-
/**
|
|
4996
|
-
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
4997
|
-
*
|
|
4998
|
-
* @uiName Canadian province of indirect tax
|
|
4999
|
-
* @uiGroup Dashboard Properties
|
|
5000
|
-
*/
|
|
5001
|
-
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
5002
|
-
/**
|
|
5003
|
-
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5004
|
-
*
|
|
5005
|
-
* @uiName Indirect tax country
|
|
5006
|
-
* @uiGroup Dashboard Properties
|
|
5007
|
-
*/
|
|
5008
|
-
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5009
|
-
/**
|
|
5010
|
-
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5011
|
-
*
|
|
5012
|
-
* @uiName Spanish region of indirect tax
|
|
5013
|
-
* @uiGroup Dashboard Properties
|
|
5014
|
-
*/
|
|
5015
|
-
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5016
|
-
/**
|
|
5017
|
-
* @uiName Indirect tax tooltip
|
|
5018
|
-
* @uiGroup Dashboard Properties
|
|
5019
|
-
* @uiWidget textArea
|
|
5020
|
-
*/
|
|
5021
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5022
|
-
/**
|
|
5023
|
-
* Displayed to participants who have submitted their indirect tax information.
|
|
5024
|
-
*
|
|
5025
|
-
* @uiName Indirect tax details
|
|
5026
|
-
* @uiGroup Dashboard Properties
|
|
5027
|
-
*/
|
|
5028
|
-
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5029
|
-
/**
|
|
5030
|
-
* @uiName Submit new tax form button label
|
|
5031
|
-
* @uiGroup Dashboard Properties
|
|
5032
|
-
*/
|
|
5033
|
-
this.dashboard_newFormButton = "Submit new form";
|
|
5034
|
-
/**
|
|
5035
|
-
* @uiName Edit payment info button label
|
|
5036
|
-
* @uiGroup Dashboard Properties
|
|
5037
|
-
*/
|
|
5038
|
-
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5039
|
-
/**
|
|
5040
|
-
* @uiName Not registered for indirect tax text
|
|
5041
|
-
* @uiGroup Dashboard Properties
|
|
5042
|
-
* @uiWidget textArea
|
|
5043
|
-
*/
|
|
5044
|
-
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.";
|
|
5045
|
-
/**
|
|
5046
|
-
* Displayed to participants registered in Quebec, Canada.
|
|
5047
|
-
* @uiName QST indirect tax details
|
|
5048
|
-
* @uiGroup Dashboard Properties
|
|
5049
|
-
*/
|
|
5050
|
-
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5051
|
-
/**
|
|
5052
|
-
* @uiName Spain sub-region indirect tax number
|
|
5053
|
-
* @uiGroup Dashboard Properties
|
|
5054
|
-
*/
|
|
5055
|
-
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5056
|
-
/**
|
|
5057
|
-
* @uiName Payout status badge
|
|
5058
|
-
* @uiGroup Dashboard Properties
|
|
5059
|
-
*/
|
|
5060
|
-
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5061
|
-
/**
|
|
5062
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5063
|
-
* @uiName Payout schedule by threshold text
|
|
5064
|
-
* @uiGroup Dashboard Properties
|
|
5065
|
-
*/
|
|
5066
|
-
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5067
|
-
/**
|
|
5068
|
-
* Shown before the participant’s bank account information.
|
|
5069
|
-
* @uiName Bank account field label
|
|
5070
|
-
* @uiGroup Dashboard Properties
|
|
5071
|
-
*/
|
|
5072
|
-
this.dashboard_accountText = "Account";
|
|
5073
|
-
/**
|
|
5074
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5075
|
-
* @uiName Invoice number column title
|
|
5076
|
-
* @uiGroup Dashboard Properties
|
|
5077
|
-
*/
|
|
5078
|
-
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5079
|
-
/**
|
|
5080
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5081
|
-
* @uiName Date column title
|
|
5082
|
-
* @uiGroup Dashboard Properties
|
|
5083
|
-
*/
|
|
5084
|
-
this.dashboard_dateColumnTitle = "Date";
|
|
5085
|
-
/**
|
|
5086
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5087
|
-
* @uiName Earnings column title
|
|
5088
|
-
* @uiGroup Dashboard Properties
|
|
5089
|
-
*/
|
|
5090
|
-
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5091
|
-
/**
|
|
5092
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5093
|
-
* @uiName Indirect tax column title
|
|
5094
|
-
* @uiGroup Dashboard Properties
|
|
5095
|
-
*/
|
|
5096
|
-
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5097
|
-
/**
|
|
5098
|
-
* Displayed under the payout details card.
|
|
5099
|
-
* @uiName Payout from impact text
|
|
5100
|
-
* @uiGroup Dashboard Properties
|
|
5101
|
-
* @uiWidget textArea
|
|
5102
|
-
*/
|
|
5103
|
-
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5104
|
-
/**
|
|
5105
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5106
|
-
* @uiName Earnings after tax column title
|
|
5107
|
-
* @uiGroup Dashboard Properties
|
|
5108
|
-
*/
|
|
5109
|
-
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5110
|
-
/**
|
|
5111
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5112
|
-
* @uiName Payout error message title
|
|
5113
|
-
* @uiGroup Dashboard Properties
|
|
5114
|
-
* @uiWidget textArea
|
|
5115
|
-
*/
|
|
5116
|
-
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5117
|
-
/**
|
|
5118
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5119
|
-
* @uiName Payout error message description
|
|
5120
|
-
* @uiGroup Dashboard Properties
|
|
5121
|
-
* @uiWidget textArea
|
|
5122
|
-
*/
|
|
5123
|
-
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5124
|
-
/**
|
|
5125
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
5126
|
-
* @uiName Payout missing information subtext
|
|
5127
|
-
* @uiGroup Dashboard Properties
|
|
5128
|
-
*/
|
|
5129
|
-
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5130
|
-
/**
|
|
5131
|
-
* @uiName Invoice table description
|
|
5132
|
-
* @uiGroup Dashboard Properties
|
|
5133
|
-
*/
|
|
5134
|
-
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5135
|
-
/**
|
|
5136
|
-
* @uiName Invoice table previous page button label
|
|
5137
|
-
* @uiGroup Dashboard Properties
|
|
5138
|
-
*/
|
|
5139
|
-
this.dashboard_invoicePrevLabel = "Prev";
|
|
5140
|
-
/**
|
|
5141
|
-
* @uiName Invoice table next page button label
|
|
5142
|
-
* @uiGroup Dashboard Properties
|
|
5143
|
-
*/
|
|
5144
|
-
this.dashboard_invoiceMoreLabel = "Next";
|
|
5145
|
-
/**
|
|
5146
|
-
* @uiName Invoice table title
|
|
5147
|
-
* @uiGroup Dashboard Properties
|
|
5148
|
-
*/
|
|
5149
|
-
this.dashboard_invoiceHeader = "Invoices";
|
|
5150
|
-
/**
|
|
5151
|
-
* @uiName Empty invoice table header
|
|
5152
|
-
* @uiGroup Dashboard Properties
|
|
5153
|
-
*/
|
|
5154
|
-
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5155
|
-
/**
|
|
5156
|
-
* @uiName Empty invoice table description
|
|
5157
|
-
* @uiGroup Dashboard Properties
|
|
5158
|
-
*/
|
|
5159
|
-
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5160
|
-
/**
|
|
5161
|
-
* @uiName Replace tax form modal header
|
|
5162
|
-
* @uiGroup Dashboard Properties
|
|
5163
|
-
*/
|
|
5164
|
-
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5165
|
-
/**
|
|
5166
|
-
* @uiName Replace tax form modal body text
|
|
5167
|
-
* @uiGroup Dashboard Properties
|
|
5168
|
-
* @uiWidget textArea
|
|
5169
|
-
*/
|
|
5170
|
-
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.";
|
|
5171
|
-
/**
|
|
5172
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5173
|
-
* @uiName Verification required alert message title
|
|
5174
|
-
* @uiGroup Dashboard Properties
|
|
5175
|
-
* @uiWidget textArea
|
|
5176
|
-
*/
|
|
5177
|
-
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5178
|
-
/**
|
|
5179
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5180
|
-
* @uiName Verification required alert message description
|
|
5181
|
-
* @uiGroup Dashboard Properties
|
|
5182
|
-
* @uiWidget textArea
|
|
5183
|
-
*/
|
|
5184
|
-
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}.";
|
|
5185
|
-
/**
|
|
5186
|
-
* @uiName Verification required internal alert header
|
|
5187
|
-
* @uiGroup Dashboard Properties
|
|
5188
|
-
* @uiWidget textArea
|
|
5189
|
-
*/
|
|
5190
|
-
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5191
|
-
/**
|
|
5192
|
-
* @uiName Verification required internal alert description
|
|
5193
|
-
* @uiGroup Dashboard Properties
|
|
5194
|
-
* @uiWidget textArea
|
|
5195
|
-
*/
|
|
5196
|
-
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}.";
|
|
5197
|
-
/**
|
|
5198
|
-
* @uiName Verification review internal alert header
|
|
5199
|
-
* @uiGroup Dashboard Properties
|
|
5200
|
-
* @uiWidget textArea
|
|
5201
|
-
*/
|
|
5202
|
-
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5203
|
-
/**
|
|
5204
|
-
* @uiName Verification review internal alert description
|
|
5205
|
-
* @uiGroup Dashboard Properties
|
|
5206
|
-
* @uiWidget textArea
|
|
5207
|
-
*/
|
|
5208
|
-
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}.";
|
|
5209
|
-
/**
|
|
5210
|
-
* @uiName Verification failed internal alert header
|
|
5211
|
-
* @uiGroup Dashboard Properties
|
|
5212
|
-
* @uiWidget textArea
|
|
5213
|
-
*/
|
|
5214
|
-
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5215
|
-
/**
|
|
5216
|
-
* @uiName Verification failed internal alert description
|
|
5217
|
-
* @uiGroup Dashboard Properties
|
|
5218
|
-
* @uiWidget textArea
|
|
5219
|
-
*/
|
|
5220
|
-
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}.";
|
|
5221
|
-
/**
|
|
5222
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5223
|
-
* @uiName Verification required alert button text
|
|
5224
|
-
* @uiGroup Dashboard Properties
|
|
5225
|
-
* @uiWidget textArea
|
|
5226
|
-
*/
|
|
5227
|
-
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5228
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5229
|
-
GENERAL PROPS:
|
|
5230
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5231
|
-
/**
|
|
5232
|
-
* @uiName Setup progress
|
|
5233
|
-
* @uiGroup General Form Properties
|
|
5234
|
-
*/
|
|
5235
|
-
this.formStep = "Step {step} of {count}";
|
|
5236
|
-
/**
|
|
5237
|
-
* Part of the alert displayed at the top of the page.
|
|
5238
|
-
* @uiName Form submission error message title
|
|
5239
|
-
* @uiGroup General Form Properties
|
|
5240
|
-
* @uiWidget textArea
|
|
5241
|
-
*/
|
|
5242
|
-
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5243
|
-
/**
|
|
5244
|
-
* Part of the alert displayed at the top of the page.
|
|
5245
|
-
* @uiName Form submission error message description
|
|
5246
|
-
* @uiGroup General Form Properties
|
|
5247
|
-
* @uiWidget textArea
|
|
5248
|
-
*/
|
|
5249
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5250
|
-
/**
|
|
5251
|
-
* Displayed under a field that is missing required information.
|
|
5252
|
-
* @uiName Empty form field error message
|
|
5253
|
-
* @uiGroup General Form Properties
|
|
5254
|
-
*/
|
|
5255
|
-
this.fieldRequiredError = "{fieldName} is required";
|
|
5256
|
-
/**
|
|
5257
|
-
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5258
|
-
* @uiName Invalid character error message
|
|
5259
|
-
* @uiGroup General Form Properties
|
|
5260
|
-
*/
|
|
5261
|
-
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5262
|
-
/**
|
|
5263
|
-
* Displayed under a field when it has an invalid entry.
|
|
5264
|
-
* @uiName Form field error message
|
|
5265
|
-
* @uiGroup General Form Properties
|
|
5266
|
-
*/
|
|
5267
|
-
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5268
|
-
/**
|
|
5269
|
-
* @uiName Continue button label
|
|
5270
|
-
* @uiGroup General Form Properties
|
|
5271
|
-
*/
|
|
5272
|
-
this.continueButton = "Continue";
|
|
5273
|
-
/**
|
|
5274
|
-
* @uiName Back button label
|
|
5275
|
-
* @uiGroup General Form Properties
|
|
5276
|
-
*/
|
|
5277
|
-
this.backButton = "Back";
|
|
5278
|
-
/**
|
|
5279
|
-
* @uiName Cancel button label
|
|
5280
|
-
* @uiGroup General Form Properties
|
|
5281
|
-
*/
|
|
5282
|
-
this.cancelButton = "Cancel";
|
|
5283
|
-
/**
|
|
5284
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5285
|
-
* @uiName Participant is a partner alert title
|
|
5286
|
-
* @uiGroup General Form Properties
|
|
5287
|
-
* @uiWidget textArea
|
|
5288
|
-
*/
|
|
5289
|
-
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5290
|
-
/**
|
|
5291
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5292
|
-
* @uiName Participant is a partner alert description
|
|
5293
|
-
* @uiGroup General Form Properties
|
|
5294
|
-
* @uiWidget textArea
|
|
5295
|
-
*/
|
|
5296
|
-
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.";
|
|
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);
|
|
5297
3629
|
/**
|
|
5298
|
-
*
|
|
5299
|
-
* @uiName
|
|
5300
|
-
* @uiGroup General Form Properties
|
|
3630
|
+
* Badge text indicating payout status
|
|
3631
|
+
* @uiName Payout badge status text
|
|
5301
3632
|
*/
|
|
5302
|
-
this.
|
|
3633
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5303
3634
|
/**
|
|
5304
|
-
*
|
|
5305
|
-
* @uiName
|
|
5306
|
-
* @uiGroup General Form Properties
|
|
5307
|
-
* @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
|
|
5308
3637
|
*/
|
|
5309
|
-
this.
|
|
3638
|
+
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5310
3639
|
/**
|
|
5311
|
-
*
|
|
5312
|
-
* @uiName
|
|
5313
|
-
* @uiGroup General Form Properties
|
|
5314
|
-
* @uiWidget textArea
|
|
3640
|
+
* Shown before the participant’s bank account information.
|
|
3641
|
+
* @uiName Bank account field label
|
|
5315
3642
|
*/
|
|
5316
|
-
this.
|
|
3643
|
+
this.accountText = "Account";
|
|
5317
3644
|
/**
|
|
5318
|
-
*
|
|
5319
|
-
* @uiName
|
|
5320
|
-
* @uiGroup General Form Properties
|
|
3645
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
3646
|
+
* @uiName Payout missing information subtext
|
|
5321
3647
|
*/
|
|
5322
|
-
this.
|
|
3648
|
+
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5323
3649
|
/**
|
|
5324
|
-
*
|
|
5325
|
-
* @uiName Suport link text
|
|
5326
|
-
* @uiGroup General Form Properties
|
|
3650
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
5327
3651
|
*/
|
|
5328
|
-
this.
|
|
5329
|
-
|
|
3652
|
+
this.stateController = "{}";
|
|
3653
|
+
domContextHooks_module.h$1(this);
|
|
5330
3654
|
}
|
|
5331
3655
|
disconnectedCallback() { }
|
|
5332
|
-
|
|
5333
|
-
getGeneralStepTextProps(prefix) {
|
|
3656
|
+
getTextProps() {
|
|
5334
3657
|
const props = utils.getProps(this);
|
|
5335
3658
|
return {
|
|
5336
|
-
...
|
|
5337
|
-
generalErrorTitle: props.generalErrorTitle,
|
|
5338
|
-
generalErrorDescription: props.generalErrorDescription,
|
|
5339
|
-
fieldRequiredError: props.fieldRequiredError,
|
|
5340
|
-
invalidCharacterError: props.invalidCharacterError,
|
|
5341
|
-
fieldInvalidError: props.fieldInvalidError,
|
|
5342
|
-
continueButton: props.continueButton,
|
|
5343
|
-
backButton: props.backButton,
|
|
5344
|
-
cancelButton: props.cancelButton,
|
|
5345
|
-
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5346
|
-
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5347
|
-
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5348
|
-
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5349
|
-
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5350
|
-
searchForCountryText: props.searchForCountryText,
|
|
5351
|
-
formStep: props.formStep,
|
|
5352
|
-
supportLink: props.supportLink,
|
|
3659
|
+
...props,
|
|
5353
3660
|
};
|
|
5354
3661
|
}
|
|
5355
3662
|
render() {
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
const textProps = utils.getProps(this);
|
|
5361
|
-
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5362
|
-
if (prop === "demoData")
|
|
5363
|
-
return;
|
|
5364
|
-
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
5365
|
-
})));
|
|
5366
|
-
}
|
|
5367
|
-
switch (props.step) {
|
|
5368
|
-
case "/1":
|
|
5369
|
-
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5370
|
-
case "/2":
|
|
5371
|
-
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5372
|
-
case "/3":
|
|
5373
|
-
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5374
|
-
case "/4":
|
|
5375
|
-
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5376
|
-
case "/dashboard":
|
|
5377
|
-
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5378
|
-
case "/error":
|
|
5379
|
-
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5380
|
-
}
|
|
5381
|
-
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 })));
|
|
5382
3667
|
}
|
|
5383
3668
|
};
|
|
5384
|
-
function
|
|
5385
|
-
const [step, setStep] = index_module.In({
|
|
5386
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5387
|
-
initialValue: "/1",
|
|
5388
|
-
});
|
|
3669
|
+
function useDemoPayoutDetailsCard(props) {
|
|
5389
3670
|
return cjs.cjs({
|
|
5390
|
-
|
|
5391
|
-
|
|
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(),
|
|
5392
3687
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5393
3688
|
}
|
|
5394
3689
|
|
|
5395
|
-
const style$
|
|
5396
|
-
|
|
5397
|
-
"&::part(base)": {
|
|
5398
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
5399
|
-
borderTop: "none",
|
|
5400
|
-
},
|
|
5401
|
-
"& sl-icon::part(base)": {
|
|
5402
|
-
color: "var(--sl-color-danger-500)",
|
|
5403
|
-
},
|
|
5404
|
-
},
|
|
5405
|
-
WarningAlertContainer: {
|
|
5406
|
-
"&::part(base)": {
|
|
5407
|
-
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5408
|
-
borderTop: "none",
|
|
5409
|
-
maxWidth: "600px",
|
|
5410
|
-
},
|
|
5411
|
-
"& sl-icon::part(base)": {
|
|
5412
|
-
color: "var(--sl-color-warning-500)",
|
|
5413
|
-
},
|
|
5414
|
-
},
|
|
5415
|
-
WarningHoldAlertContainer: {
|
|
5416
|
-
marginLeft: "-20px",
|
|
3690
|
+
const style$5 = {
|
|
3691
|
+
DangerBadge: {
|
|
5417
3692
|
"&::part(base)": {
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
backgroundColor: "transparent",
|
|
5421
|
-
},
|
|
5422
|
-
"& sl-icon::part(base)": {
|
|
5423
|
-
color: "var(--sl-color-warning-500)",
|
|
3693
|
+
backgroundColor: "var(--sqm-danger-color-icon)",
|
|
3694
|
+
color: "var(--sl-color-white)",
|
|
5424
3695
|
},
|
|
5425
3696
|
},
|
|
5426
|
-
|
|
5427
|
-
marginLeft: "-20px",
|
|
3697
|
+
SuccessBadge: {
|
|
5428
3698
|
"&::part(base)": {
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
backgroundColor: "transparent",
|
|
5432
|
-
},
|
|
5433
|
-
"& sl-icon::part(base)": {
|
|
5434
|
-
color: "var(--sl-color-danger-500)",
|
|
3699
|
+
backgroundColor: "var(--sqm-success-color-icon)",
|
|
3700
|
+
color: "var(--sl-color-white)",
|
|
5435
3701
|
},
|
|
5436
3702
|
},
|
|
5437
|
-
|
|
3703
|
+
WarningBadge: {
|
|
5438
3704
|
"&::part(base)": {
|
|
5439
|
-
backgroundColor: "var(--
|
|
5440
|
-
|
|
3705
|
+
backgroundColor: "var(--sqm-warning-color-icon)",
|
|
3706
|
+
color: "var(--sl-color-white)",
|
|
5441
3707
|
},
|
|
5442
3708
|
},
|
|
5443
3709
|
BankingInformationContainer: {
|
|
@@ -5445,7 +3711,7 @@ const style$6 = {
|
|
|
5445
3711
|
},
|
|
5446
3712
|
IndirectTaxPreviewContainer: {
|
|
5447
3713
|
marginTop: "var(--sl-spacing-x-large)",
|
|
5448
|
-
borderTop: "1px solid var(--
|
|
3714
|
+
borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
|
|
5449
3715
|
},
|
|
5450
3716
|
IndirectTaxPreviewHeaderContainer: {
|
|
5451
3717
|
marginTop: "var(--sl-spacing-large)",
|
|
@@ -5454,7 +3720,7 @@ const style$6 = {
|
|
|
5454
3720
|
display: "flex",
|
|
5455
3721
|
gap: "var(--sl-spacing-x-small)",
|
|
5456
3722
|
"&::part(base)": {
|
|
5457
|
-
color: "var(--
|
|
3723
|
+
color: "var(--sqm-success-color-text)",
|
|
5458
3724
|
},
|
|
5459
3725
|
},
|
|
5460
3726
|
IndirectTaxPreviewDetails: {
|
|
@@ -5468,11 +3734,11 @@ const style$6 = {
|
|
|
5468
3734
|
marginTop: "var(--sl-spacing-medium)",
|
|
5469
3735
|
},
|
|
5470
3736
|
NotRegisteredIndirectTaxText: {
|
|
5471
|
-
color: "var(--
|
|
3737
|
+
color: "var(--sqm-text-subdued)",
|
|
5472
3738
|
},
|
|
5473
3739
|
TaxDocumentsContainer: {
|
|
5474
3740
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
5475
|
-
borderTop: "1px solid var(--
|
|
3741
|
+
borderTop: "1px solid var(--sqm-border-color)",
|
|
5476
3742
|
},
|
|
5477
3743
|
TaxDocumentsSectionHeaderContainer: {
|
|
5478
3744
|
marginTop: "var(--sl-spacing-x-large)",
|
|
@@ -5489,7 +3755,7 @@ const style$6 = {
|
|
|
5489
3755
|
"& p": {
|
|
5490
3756
|
margin: "0",
|
|
5491
3757
|
paddingTop: "2px",
|
|
5492
|
-
color: "var(--
|
|
3758
|
+
color: "var(--sqm-text-subdued)",
|
|
5493
3759
|
},
|
|
5494
3760
|
},
|
|
5495
3761
|
StatusAlert: {
|
|
@@ -5524,7 +3790,7 @@ const style$6 = {
|
|
|
5524
3790
|
},
|
|
5525
3791
|
TaxDocSubtext: {
|
|
5526
3792
|
margin: "0",
|
|
5527
|
-
color: "var(--
|
|
3793
|
+
color: "var(--sqm-text-subdued)",
|
|
5528
3794
|
lineHeight: "var(--sl-spacing-medium)",
|
|
5529
3795
|
fontSize: "var(--sl-font-size-small)",
|
|
5530
3796
|
marginLeft: "1px",
|
|
@@ -5545,28 +3811,66 @@ const style$6 = {
|
|
|
5545
3811
|
gap: "6px",
|
|
5546
3812
|
},
|
|
5547
3813
|
DescriptionText: {
|
|
5548
|
-
color: "var(--
|
|
3814
|
+
color: "var(--sqm-text-subdued)",
|
|
5549
3815
|
fontSize: "var(--sl-font-size-x-small)",
|
|
5550
3816
|
marginBottom: "none",
|
|
5551
3817
|
maxWidth: "492px",
|
|
5552
3818
|
},
|
|
5553
3819
|
PageDescriptionText: {
|
|
5554
|
-
color: "var(--
|
|
3820
|
+
color: "var(--sqm-text-subdued)",
|
|
5555
3821
|
fontSize: "var(--sl-font-size-medium)",
|
|
5556
3822
|
marginTop: "0",
|
|
5557
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
|
+
},
|
|
5558
3857
|
Dialog: {
|
|
5559
3858
|
"&::part(panel)": {
|
|
5560
3859
|
maxWidth: "420px",
|
|
5561
3860
|
},
|
|
3861
|
+
"&::part(header)": {
|
|
3862
|
+
display: "flex",
|
|
3863
|
+
alignItems: "center",
|
|
3864
|
+
justifyContent: "center",
|
|
3865
|
+
paddingTop: "var(--sl-spacing-large)",
|
|
3866
|
+
},
|
|
5562
3867
|
"&::part(close-button)": {
|
|
5563
3868
|
marginBottom: "var(--sl-spacing-xx-large)",
|
|
5564
3869
|
},
|
|
5565
3870
|
"&::part(title)": {
|
|
5566
|
-
fontSize: "var(--sl-font-size-
|
|
3871
|
+
fontSize: "var(--sl-font-size-large)",
|
|
5567
3872
|
fontWeight: "600",
|
|
5568
|
-
|
|
5569
|
-
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)",
|
|
5570
3874
|
},
|
|
5571
3875
|
"&::part(body)": {
|
|
5572
3876
|
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
@@ -5583,10 +3887,20 @@ const style$6 = {
|
|
|
5583
3887
|
},
|
|
5584
3888
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5585
3889
|
};
|
|
5586
|
-
const
|
|
5587
|
-
|
|
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();
|
|
5588
3902
|
const TaxAndCashDashboardView = (props) => {
|
|
5589
|
-
var _a
|
|
3903
|
+
var _a;
|
|
5590
3904
|
const { states, text, callbacks, slots } = props;
|
|
5591
3905
|
function getAlert(status) {
|
|
5592
3906
|
switch (status) {
|
|
@@ -5601,8 +3915,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5601
3915
|
}),
|
|
5602
3916
|
buttonText: text.verificationRequiredButtonText,
|
|
5603
3917
|
alertType: "warning",
|
|
5604
|
-
icon: "exclamation-triangle",
|
|
5605
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5606
3918
|
};
|
|
5607
3919
|
case "VERIFICATION:INTERNAL":
|
|
5608
3920
|
return {
|
|
@@ -5614,8 +3926,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5614
3926
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5615
3927
|
}),
|
|
5616
3928
|
alertType: "warning",
|
|
5617
|
-
icon: "exclamation-triangle",
|
|
5618
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5619
3929
|
};
|
|
5620
3930
|
case "VERIFICATION:REVIEW":
|
|
5621
3931
|
return {
|
|
@@ -5627,8 +3937,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5627
3937
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5628
3938
|
}),
|
|
5629
3939
|
alertType: "warning",
|
|
5630
|
-
icon: "exclamation-triangle",
|
|
5631
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5632
3940
|
};
|
|
5633
3941
|
case "VERIFICATION:FAILED":
|
|
5634
3942
|
return {
|
|
@@ -5639,9 +3947,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5639
3947
|
}, {
|
|
5640
3948
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5641
3949
|
}),
|
|
5642
|
-
alertType: "
|
|
5643
|
-
icon: "exclamation-octagon",
|
|
5644
|
-
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
3950
|
+
alertType: "error",
|
|
5645
3951
|
};
|
|
5646
3952
|
case "HOLD":
|
|
5647
3953
|
return {
|
|
@@ -5654,24 +3960,22 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5654
3960
|
}),
|
|
5655
3961
|
buttonText: null,
|
|
5656
3962
|
alertType: "warning",
|
|
5657
|
-
icon: "exclamation-triangle",
|
|
5658
|
-
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5659
3963
|
};
|
|
5660
3964
|
default:
|
|
5661
3965
|
return;
|
|
5662
3966
|
}
|
|
5663
3967
|
}
|
|
5664
3968
|
const statusMap = {
|
|
5665
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
5666
|
-
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),
|
|
5667
3971
|
index.h("p", null, global.intl.formatMessage({
|
|
5668
3972
|
id: `badgeTextAwaitingReview`,
|
|
5669
3973
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
5670
3974
|
}, {
|
|
5671
3975
|
dateSubmitted: states.dateSubmitted,
|
|
5672
3976
|
})))),
|
|
5673
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
5674
|
-
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),
|
|
5675
3979
|
index.h("p", null, global.intl.formatMessage({
|
|
5676
3980
|
id: `badgeTextSubmittedOn`,
|
|
5677
3981
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5680,14 +3984,13 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5680
3984
|
}, {
|
|
5681
3985
|
dateSubmitted: states.dateSubmitted,
|
|
5682
3986
|
})))),
|
|
5683
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
5684
|
-
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),
|
|
5685
3989
|
index.h("p", null, text.invalidForm))),
|
|
5686
3990
|
};
|
|
5687
3991
|
const alertMap = {
|
|
5688
|
-
INACTIVE: (index.h("
|
|
5689
|
-
index.h("
|
|
5690
|
-
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({
|
|
5691
3994
|
id: `taxAlertHeaderNotActive`,
|
|
5692
3995
|
defaultMessage: states.documentType === "W9"
|
|
5693
3996
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -5695,7 +3998,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5695
3998
|
}, {
|
|
5696
3999
|
documentType: states.documentTypeString,
|
|
5697
4000
|
})),
|
|
5698
|
-
index.h("br", null),
|
|
5699
4001
|
global.intl.formatMessage({
|
|
5700
4002
|
id: `taxAlertMessage`,
|
|
5701
4003
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5733,78 +4035,74 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5733
4035
|
});
|
|
5734
4036
|
}
|
|
5735
4037
|
};
|
|
4038
|
+
const alert = getAlert(states.payoutStatus);
|
|
5736
4039
|
return (index.h("div", null,
|
|
5737
4040
|
index.h("div", null,
|
|
5738
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
((_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 },
|
|
5751
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5752
|
-
index.h("strong", null, text.error.generalTitle),
|
|
5753
|
-
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),
|
|
5754
4053
|
global.intl.formatMessage({
|
|
5755
4054
|
id: "generalDescription",
|
|
5756
4055
|
defaultMessage: text.error.generalDescription,
|
|
5757
4056
|
}, {
|
|
5758
4057
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5759
4058
|
}))),
|
|
5760
|
-
|
|
5761
|
-
index.h("
|
|
5762
|
-
index.h("
|
|
5763
|
-
index.h("
|
|
5764
|
-
|
|
5765
|
-
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 },
|
|
5766
4064
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5767
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5768
|
-
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)),
|
|
5769
4067
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5770
4068
|
index.h("div", null,
|
|
5771
4069
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5772
|
-
index.h("p", { class: sheet$
|
|
5773
|
-
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 },
|
|
5774
4072
|
slots.payoutDetailsCardSlot,
|
|
5775
|
-
!states.loading && (index.h("p", { class: sheet$
|
|
5776
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
5777
|
-
index.h("div", { class: sheet$
|
|
5778
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$
|
|
5779
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5780
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5781
|
-
index.h("h3", { class: sheet$
|
|
5782
|
-
index.h("p", { class: sheet$
|
|
5783
|
-
index.h("span", { class: sheet$
|
|
5784
|
-
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 },
|
|
5785
4083
|
index.h("h3", null, global.intl.formatMessage({
|
|
5786
4084
|
id: "section-subheader",
|
|
5787
4085
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5788
4086
|
}, {
|
|
5789
4087
|
documentType: states.documentTypeString,
|
|
5790
4088
|
})),
|
|
5791
|
-
index.h("span", { class: sheet$
|
|
5792
|
-
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "
|
|
5793
|
-
index.h("div", { class: sheet$
|
|
5794
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5795
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5796
|
-
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 },
|
|
5797
4095
|
text.indirectTaxInfoSectionHeader,
|
|
5798
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5799
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$
|
|
5800
|
-
index.h("div", { class: sheet$
|
|
5801
|
-
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({
|
|
5802
4100
|
id: "notRegisteredForTax",
|
|
5803
4101
|
defaultMessage: text.notRegisteredForTax,
|
|
5804
4102
|
}, {
|
|
5805
4103
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5806
4104
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
5807
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
4105
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5808
4106
|
index.h("span", null, global.intl.formatMessage({
|
|
5809
4107
|
id: `indirectTaxDetails`,
|
|
5810
4108
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5827,7 +4125,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5827
4125
|
}, {
|
|
5828
4126
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5829
4127
|
})))),
|
|
5830
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
4128
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5831
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 },
|
|
5832
4130
|
index.h("sqm-invoice-table-download-column", null),
|
|
5833
4131
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -5851,12 +4149,12 @@ function getSubRegionName(regionCode) {
|
|
|
5851
4149
|
return "";
|
|
5852
4150
|
// Impact adds an underscore to some regions
|
|
5853
4151
|
const standardCode = regionCode.replace("_", "");
|
|
5854
|
-
const regions = [...
|
|
4152
|
+
const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5855
4153
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
5856
4154
|
}
|
|
5857
4155
|
function getIndirectTaxType(taxInformation) {
|
|
5858
4156
|
var _a;
|
|
5859
|
-
const regions = [...
|
|
4157
|
+
const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5860
4158
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
5861
4159
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
5862
4160
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -5867,23 +4165,23 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5867
4165
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
5868
4166
|
return "VAT";
|
|
5869
4167
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
5870
|
-
return
|
|
4168
|
+
return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
5871
4169
|
}
|
|
5872
4170
|
return "Indirect Tax";
|
|
5873
4171
|
}
|
|
5874
4172
|
const useTaxAndCashDashboard = (props) => {
|
|
5875
4173
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5876
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
5877
|
-
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5878
|
-
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);
|
|
5879
4177
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
5880
4178
|
const locale = index_module.L();
|
|
5881
|
-
|
|
4179
|
+
domContextHooks_module.useEffect(() => {
|
|
5882
4180
|
// Clear override context once on submitted
|
|
5883
4181
|
setContext({});
|
|
5884
4182
|
}, []);
|
|
5885
|
-
const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
5886
|
-
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;
|
|
5887
4185
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5888
4186
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
5889
4187
|
const dateSubmitted = submissionDate
|
|
@@ -5906,9 +4204,9 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5906
4204
|
});
|
|
5907
4205
|
setStep("/3");
|
|
5908
4206
|
};
|
|
5909
|
-
const provinceName = (_d =
|
|
5910
|
-
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
5911
|
-
|
|
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(() => {
|
|
5912
4210
|
const cb = () => refetch();
|
|
5913
4211
|
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5914
4212
|
return () => {
|
|
@@ -5920,7 +4218,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5920
4218
|
dateSubmitted,
|
|
5921
4219
|
documentType,
|
|
5922
4220
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
5923
|
-
documentTypeString:
|
|
4221
|
+
documentTypeString: utils$1.taxTypeToName(documentType),
|
|
5924
4222
|
status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
|
|
5925
4223
|
subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
|
|
5926
4224
|
subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
|
|
@@ -6258,7 +4556,12 @@ const TaxAndCashDashboard = class {
|
|
|
6258
4556
|
* @uiName Cancel button label
|
|
6259
4557
|
*/
|
|
6260
4558
|
this.cancelButton = "Cancel";
|
|
6261
|
-
|
|
4559
|
+
/**
|
|
4560
|
+
* @undocumented
|
|
4561
|
+
* @componentState { "title": "Payouts on hold", "props": { "payoutStatus": "HOLD" }, "uiGroup": "Dashboard Properties" }
|
|
4562
|
+
*/
|
|
4563
|
+
this.stateController = "{}";
|
|
4564
|
+
domContextHooks_module.h$1(this);
|
|
6262
4565
|
}
|
|
6263
4566
|
disconnectedCallback() { }
|
|
6264
4567
|
getTextProps() {
|
|
@@ -6283,23 +4586,31 @@ const TaxAndCashDashboard = class {
|
|
|
6283
4586
|
}
|
|
6284
4587
|
};
|
|
6285
4588
|
function useDemoTaxAndCashDashboard(props) {
|
|
4589
|
+
// @ts-ignore
|
|
6286
4590
|
return cjs.cjs({
|
|
6287
4591
|
states: {
|
|
6288
4592
|
dateSubmitted: "today",
|
|
6289
4593
|
documentType: "W9",
|
|
6290
4594
|
documentTypeString: "W9",
|
|
6291
|
-
status: "ACTIVE",
|
|
6292
4595
|
country: "United States",
|
|
6293
|
-
indirectTaxNumber: 55555555,
|
|
4596
|
+
indirectTaxNumber: "55555555",
|
|
6294
4597
|
indirectTaxType: "Indirect Tax",
|
|
6295
|
-
noFormNeeded:
|
|
4598
|
+
noFormNeeded: false,
|
|
6296
4599
|
disabled: false,
|
|
6297
4600
|
loading: false,
|
|
6298
4601
|
showNewFormDialog: false,
|
|
6299
4602
|
hasHold: false,
|
|
6300
|
-
|
|
4603
|
+
subRegion: "CA",
|
|
4604
|
+
subRegionTaxNumber: undefined,
|
|
4605
|
+
qstNumber: undefined,
|
|
4606
|
+
isBusinessEntity: false,
|
|
4607
|
+
province: undefined,
|
|
4608
|
+
notRegistered: true,
|
|
4609
|
+
loadingError: false,
|
|
6301
4610
|
payoutStatus: "DONE",
|
|
6302
4611
|
veriffLoading: false,
|
|
4612
|
+
canEditPayoutInfo: true,
|
|
4613
|
+
status: "ACTIVE",
|
|
6303
4614
|
},
|
|
6304
4615
|
callbacks: {
|
|
6305
4616
|
onClick: () => console.debug("check step"),
|
|
@@ -6309,7 +4620,14 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6309
4620
|
onVerifyClick: () => console.log("verify"),
|
|
6310
4621
|
},
|
|
6311
4622
|
text: props.getTextProps(),
|
|
6312
|
-
|
|
4623
|
+
slots: {
|
|
4624
|
+
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
|
|
4625
|
+
states: {
|
|
4626
|
+
badgeStatus: "nextPayout",
|
|
4627
|
+
},
|
|
4628
|
+
} })),
|
|
4629
|
+
},
|
|
4630
|
+
}, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
|
|
6313
4631
|
}
|
|
6314
4632
|
|
|
6315
4633
|
const PHONE_EXTENSIONS = {
|
|
@@ -7283,19 +5601,19 @@ const PHONE_EXTENSIONS = {
|
|
|
7283
5601
|
},
|
|
7284
5602
|
};
|
|
7285
5603
|
|
|
7286
|
-
const style$
|
|
5604
|
+
const style$6 = {
|
|
7287
5605
|
FormWrapper: {},
|
|
7288
5606
|
ErrorInput: {
|
|
7289
5607
|
"&::part(base)": {
|
|
7290
|
-
border: "1px solid var(--
|
|
5608
|
+
border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-icon)",
|
|
7291
5609
|
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
7292
5610
|
},
|
|
7293
5611
|
"&::part(help-text)": {
|
|
7294
|
-
color: "var(--
|
|
5612
|
+
color: "var(--sqm-danger-color-icon)",
|
|
7295
5613
|
},
|
|
7296
5614
|
},
|
|
7297
5615
|
ErrorText: {
|
|
7298
|
-
color: "var(--
|
|
5616
|
+
color: "var(--sqm-danger-color-icon)",
|
|
7299
5617
|
marginTop: "10px",
|
|
7300
5618
|
},
|
|
7301
5619
|
TextContainer: {
|
|
@@ -7326,9 +5644,6 @@ const style$7 = {
|
|
|
7326
5644
|
justifyContent: "flex-start",
|
|
7327
5645
|
flexDirection: "column",
|
|
7328
5646
|
},
|
|
7329
|
-
DescriptionText: {
|
|
7330
|
-
color: "var(--sl-color-neutral-500)",
|
|
7331
|
-
},
|
|
7332
5647
|
BoldText: {
|
|
7333
5648
|
fontWeight: "bold",
|
|
7334
5649
|
},
|
|
@@ -7337,28 +5652,8 @@ const style$7 = {
|
|
|
7337
5652
|
borderRadius: "50%",
|
|
7338
5653
|
},
|
|
7339
5654
|
},
|
|
7340
|
-
AlertContainer: {
|
|
7341
|
-
"&::part(base)": {
|
|
7342
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
7343
|
-
borderTop: "none",
|
|
7344
|
-
padding: "0 16px",
|
|
7345
|
-
},
|
|
7346
|
-
"& sl-icon::part(base)": {
|
|
7347
|
-
color: "var(--sl-color-danger-500)",
|
|
7348
|
-
},
|
|
7349
|
-
},
|
|
7350
|
-
PartnerAlertContainer: {
|
|
7351
|
-
"&::part(base)": {
|
|
7352
|
-
backgroundColor: "var(--sl-color-sky-100)",
|
|
7353
|
-
borderTop: "none",
|
|
7354
|
-
padding: "0 16px",
|
|
7355
|
-
},
|
|
7356
|
-
"& sl-icon::part(base)": {
|
|
7357
|
-
color: "var(--sl-color-blue-500)",
|
|
7358
|
-
},
|
|
7359
|
-
},
|
|
7360
5655
|
PageDescriptionText: {
|
|
7361
|
-
color: "var(--
|
|
5656
|
+
color: "var(--sqm-text-subdued)",
|
|
7362
5657
|
fontSize: "var(--sl-font-size-medium)",
|
|
7363
5658
|
},
|
|
7364
5659
|
PhoneInputsSection: {
|
|
@@ -7381,8 +5676,8 @@ const style$7 = {
|
|
|
7381
5676
|
},
|
|
7382
5677
|
},
|
|
7383
5678
|
};
|
|
7384
|
-
const sheet$
|
|
7385
|
-
const styleString$
|
|
5679
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5680
|
+
const styleString$5 = sheet$5.toString();
|
|
7386
5681
|
const vanillaStyle$4 = `
|
|
7387
5682
|
:host{
|
|
7388
5683
|
display: block;
|
|
@@ -7392,11 +5687,15 @@ const vanillaStyle$4 = `
|
|
|
7392
5687
|
padding: 0;
|
|
7393
5688
|
box-sizing: border-box;
|
|
7394
5689
|
}
|
|
5690
|
+
a {
|
|
5691
|
+
color: var(--sqm-text);
|
|
5692
|
+
color: inherit !important;
|
|
5693
|
+
text-decoration: underline;
|
|
5694
|
+
}
|
|
7395
5695
|
|
|
7396
5696
|
p {
|
|
7397
5697
|
line-height: 18px;
|
|
7398
|
-
|
|
7399
|
-
font-size: var(--sl-font-size-small);
|
|
5698
|
+
font-size: var(--sl-font-size-small);
|
|
7400
5699
|
}
|
|
7401
5700
|
|
|
7402
5701
|
sl-radio-group::part(base) {
|
|
@@ -7407,11 +5706,149 @@ const vanillaStyle$4 = `
|
|
|
7407
5706
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
7408
5707
|
min-width: 250px;
|
|
7409
5708
|
}
|
|
7410
|
-
|
|
5709
|
+
|
|
5710
|
+
sl-button[type="primary"]::part(base){
|
|
5711
|
+
background-color: var(--sqm-primary-button-background);
|
|
5712
|
+
color: var(--sqm-primary-button-color);
|
|
5713
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
5714
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
5715
|
+
}
|
|
5716
|
+
|
|
5717
|
+
sl-button[type="primary"]::part(base):hover{
|
|
5718
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
5719
|
+
}
|
|
5720
|
+
|
|
5721
|
+
sl-button[type="primary"]::part(base):focus{
|
|
5722
|
+
box-shadow: none;
|
|
5723
|
+
}
|
|
5724
|
+
|
|
5725
|
+
sl-button[type="secondary"]::part(base){
|
|
5726
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5727
|
+
color: var(--sqm-secondary-button-color);
|
|
5728
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5729
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5730
|
+
}
|
|
5731
|
+
|
|
5732
|
+
sl-button[type="secondary"]::part(base):hover{
|
|
5733
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
5734
|
+
}
|
|
5735
|
+
|
|
5736
|
+
|
|
5737
|
+
|
|
5738
|
+
*::part(primarybutton-base){
|
|
5739
|
+
background-color: var(--sqm-primary-button-background);
|
|
5740
|
+
color: var(--sqm-primary-button-color);
|
|
5741
|
+
border-color: var(--sqm-primary-button-color-border);
|
|
5742
|
+
border-radius: var(--sqm-primary-button-radius);
|
|
5743
|
+
}
|
|
5744
|
+
|
|
5745
|
+
*::part(primarybutton-base):hover{
|
|
5746
|
+
background-color: var(--sqm-primary-button-background-hover);
|
|
5747
|
+
}
|
|
5748
|
+
|
|
5749
|
+
*::part(primarybutton-base):focus{
|
|
5750
|
+
box-shadow: none;
|
|
5751
|
+
}
|
|
5752
|
+
|
|
5753
|
+
*::part(secondarybutton-base){
|
|
5754
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5755
|
+
color: var(--sqm-secondary-button-color);
|
|
5756
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5757
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5758
|
+
}
|
|
5759
|
+
|
|
5760
|
+
*::part(secondarybutton-base):hover{
|
|
5761
|
+
background-color: var(--sqm-secondary-button-background-hover);
|
|
5762
|
+
}
|
|
5763
|
+
|
|
5764
|
+
*::part(secondarybutton-base){
|
|
5765
|
+
background-color: var(--sqm-secondary-button-background);
|
|
5766
|
+
color: var(--sqm-secondary-button-color);
|
|
5767
|
+
border-color: var(--sqm-secondary-button-color-border);
|
|
5768
|
+
border-radius: var(--sqm-secondary-button-radius);
|
|
5769
|
+
width: max-content;
|
|
5770
|
+
display: flex;
|
|
5771
|
+
margin: auto;
|
|
5772
|
+
}
|
|
5773
|
+
|
|
5774
|
+
*::part(secondarybutton-base):hover{
|
|
5775
|
+
background: var(--sqm-secondary-button-background-hover);
|
|
5776
|
+
}
|
|
5777
|
+
|
|
5778
|
+
sl-input::part(label),
|
|
5779
|
+
sl-select::part(label),
|
|
5780
|
+
sl-textarea::part(label){
|
|
5781
|
+
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
5782
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
5783
|
+
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
5784
|
+
}
|
|
5785
|
+
|
|
5786
|
+
/* Corrected: Target sl-input, sl-select, sl-textarea base elements */
|
|
5787
|
+
sl-input::part(base),
|
|
5788
|
+
sl-dropdown::part(base),
|
|
5789
|
+
sl-textarea::part(base){
|
|
5790
|
+
background-color: var(--sqm-input-background, #fff);
|
|
5791
|
+
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
5792
|
+
color: var(--sqm-input-color, white);
|
|
5793
|
+
border-width: var(--sqm-border-thickness, 1px);
|
|
5794
|
+
border-style: solid;
|
|
5795
|
+
border-color: var(--sqm-input-border-color, #ccc);
|
|
5796
|
+
}
|
|
5797
|
+
|
|
5798
|
+
|
|
5799
|
+
sl-select::part(menu) {
|
|
5800
|
+
background: var(--sqm-input-background, inherit);
|
|
5801
|
+
color: var(--sqm-input-color, inherit);
|
|
5802
|
+
border:none;
|
|
5803
|
+
}
|
|
5804
|
+
|
|
5805
|
+
sl-select::part(panel) {
|
|
5806
|
+
border-radius: var(--sqm-border-radius-normal);
|
|
5807
|
+
}
|
|
5808
|
+
|
|
5809
|
+
sl-select::part(help-text) {
|
|
5810
|
+
color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
|
|
5811
|
+
}
|
|
5812
|
+
|
|
5813
|
+
sl-input::part(base):focus,
|
|
5814
|
+
sl-select::part(base):focus, /* Corrected part name for sl-select */
|
|
5815
|
+
sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
|
|
5816
|
+
border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
|
|
5817
|
+
}
|
|
5818
|
+
|
|
5819
|
+
sl-input[disabled]::part(label),
|
|
5820
|
+
sl-select[disabled]::part(label),
|
|
5821
|
+
sl-textarea[disabled]::part(label){
|
|
5822
|
+
color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
|
|
5823
|
+
}
|
|
5824
|
+
|
|
5825
|
+
sl-input[disabled]::part(base),
|
|
5826
|
+
sl-select[disabled]::part(base),
|
|
5827
|
+
sl-textarea[disabled]::part(base){
|
|
5828
|
+
background: var(--sqm-input-disabled-background, #f5f5f5);
|
|
5829
|
+
border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
|
|
5830
|
+
}
|
|
5831
|
+
|
|
5832
|
+
|
|
5833
|
+
sl-input::part(input):-webkit-autofill {
|
|
5834
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5835
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5836
|
+
}
|
|
5837
|
+
|
|
5838
|
+
sl-input::part(input):-webkit-autofill:hover {
|
|
5839
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5840
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5841
|
+
}
|
|
5842
|
+
|
|
5843
|
+
sl-input::part(input):-webkit-autofill:focus {
|
|
5844
|
+
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5845
|
+
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5846
|
+
}
|
|
5847
|
+
`;
|
|
7411
5848
|
const UserInfoFormView = (props) => {
|
|
7412
5849
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
7413
|
-
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7414
|
-
const { classes } = sheet$
|
|
5850
|
+
const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
|
|
5851
|
+
const { classes } = sheet$5;
|
|
7415
5852
|
const bankingCollectionText = global.intl.formatMessage({
|
|
7416
5853
|
id: "bankingCollectionText",
|
|
7417
5854
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -7419,7 +5856,7 @@ const UserInfoFormView = (props) => {
|
|
|
7419
5856
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
7420
5857
|
});
|
|
7421
5858
|
let regionLabel = undefined;
|
|
7422
|
-
switch (data.regionLabelEnum) {
|
|
5859
|
+
switch (data$1.regionLabelEnum) {
|
|
7423
5860
|
case "STATE":
|
|
7424
5861
|
regionLabel = text.state;
|
|
7425
5862
|
break;
|
|
@@ -7434,65 +5871,58 @@ const UserInfoFormView = (props) => {
|
|
|
7434
5871
|
}
|
|
7435
5872
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
7436
5873
|
index.h("style", { type: "text/css" },
|
|
7437
|
-
styleString$
|
|
5874
|
+
styleString$5,
|
|
7438
5875
|
vanillaStyle$4),
|
|
7439
5876
|
states.loadingError && (index.h("div", null,
|
|
7440
|
-
index.h("
|
|
7441
|
-
index.h("
|
|
7442
|
-
index.h("
|
|
7443
|
-
index.h("br", null),
|
|
7444
|
-
global.intl.formatMessage({
|
|
5877
|
+
index.h("sqm-form-message", { type: "error" },
|
|
5878
|
+
index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
5879
|
+
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
7445
5880
|
id: "loadingErrorAlertDescription",
|
|
7446
5881
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
7447
5882
|
}, {
|
|
7448
5883
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7449
|
-
})),
|
|
7450
|
-
|
|
7451
|
-
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
5884
|
+
}))))),
|
|
5885
|
+
states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
|
|
7452
5886
|
index.h("div", { class: classes.TextContainer },
|
|
7453
5887
|
index.h("div", null,
|
|
7454
5888
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
7455
5889
|
id: "formStep",
|
|
7456
5890
|
defaultMessage: text.formStep,
|
|
7457
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
5891
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
7458
5892
|
index.h("h3", null, text.personalInformation),
|
|
7459
5893
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
7460
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
7461
|
-
index.h("
|
|
7462
|
-
index.h("
|
|
7463
|
-
index.h("br", null),
|
|
7464
|
-
global.intl.formatMessage({
|
|
5894
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
|
|
5895
|
+
index.h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
5896
|
+
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
7465
5897
|
id: "generalDescription",
|
|
7466
5898
|
defaultMessage: text.error.generalDescription,
|
|
7467
5899
|
}, {
|
|
7468
5900
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7469
|
-
}))),
|
|
7470
|
-
(states.isPartner || states.isUser) && (index.h("
|
|
7471
|
-
index.h("
|
|
7472
|
-
index.h("
|
|
7473
|
-
index.h("br", null),
|
|
7474
|
-
global.intl.formatMessage({
|
|
5901
|
+
})))),
|
|
5902
|
+
(states.isPartner || states.isUser) && (index.h("sqm-form-message", { type: "info" },
|
|
5903
|
+
index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
5904
|
+
index.h("p", { part: "alert-description" }, global.intl.formatMessage({
|
|
7475
5905
|
id: "isPartnerAlertDescription",
|
|
7476
5906
|
defaultMessage: text.isPartnerAlertDescription,
|
|
7477
5907
|
}, {
|
|
7478
5908
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7479
|
-
}))),
|
|
5909
|
+
})))),
|
|
7480
5910
|
index.h("div", null,
|
|
7481
5911
|
index.h("div", { class: classes.InputContainer },
|
|
7482
|
-
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) ? {
|
|
5912
|
+
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) ? {
|
|
7483
5913
|
class: classes.ErrorInput,
|
|
7484
|
-
helpText:
|
|
5914
|
+
helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
7485
5915
|
}
|
|
7486
5916
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
7487
5917
|
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) ? {
|
|
7488
5918
|
class: classes.ErrorInput,
|
|
7489
|
-
helpText:
|
|
5919
|
+
helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
7490
5920
|
}
|
|
7491
5921
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
7492
5922
|
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 }),
|
|
7493
5923
|
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) ? {
|
|
7494
5924
|
class: classes.ErrorInput,
|
|
7495
|
-
helpText:
|
|
5925
|
+
helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
7496
5926
|
}
|
|
7497
5927
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
7498
5928
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
@@ -7500,8 +5930,8 @@ const UserInfoFormView = (props) => {
|
|
|
7500
5930
|
e.stopPropagation();
|
|
7501
5931
|
}, "onSl-input": (e) => {
|
|
7502
5932
|
callbacks.setCountrySearch(e.target.value);
|
|
7503
|
-
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
7504
|
-
_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 :
|
|
5933
|
+
} }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
|
|
5934
|
+
_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 :
|
|
7505
5935
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
7506
5936
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
7507
5937
|
index.h("p", null, text.phoneNumber),
|
|
@@ -7515,13 +5945,13 @@ const UserInfoFormView = (props) => {
|
|
|
7515
5945
|
e.stopPropagation();
|
|
7516
5946
|
}, "onSl-input": (e) => {
|
|
7517
5947
|
callbacks.setPhoneCountrySearch(e.target.value);
|
|
7518
|
-
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
5948
|
+
} }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
7519
5949
|
_h.map((c) => {
|
|
7520
5950
|
var _a, _b;
|
|
7521
5951
|
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
7522
5952
|
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 :
|
|
7523
5953
|
_b.dial_code));
|
|
7524
|
-
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
5954
|
+
}), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
|
|
7525
5955
|
_j.map((c) => {
|
|
7526
5956
|
var _a, _b;
|
|
7527
5957
|
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
@@ -7530,42 +5960,42 @@ const UserInfoFormView = (props) => {
|
|
|
7530
5960
|
})),
|
|
7531
5961
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
7532
5962
|
// Naive phone number validation
|
|
7533
|
-
|
|
7534
|
-
|
|
5963
|
+
utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
5964
|
+
utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
7535
5965
|
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
7536
5966
|
class: classes.ErrorInput,
|
|
7537
|
-
helpText:
|
|
5967
|
+
helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
7538
5968
|
}
|
|
7539
5969
|
: {}), { required: true })))),
|
|
7540
5970
|
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 }) =>
|
|
7541
5971
|
// Checks for non-ASCII characters
|
|
7542
|
-
!
|
|
7543
|
-
|
|
5972
|
+
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
5973
|
+
utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
7544
5974
|
class: classes.ErrorInput,
|
|
7545
|
-
helpText:
|
|
5975
|
+
helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
|
|
7546
5976
|
}
|
|
7547
5977
|
: {}), { required: true })),
|
|
7548
5978
|
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 }) =>
|
|
7549
5979
|
// Checks for non-ASCII characters
|
|
7550
|
-
!
|
|
7551
|
-
|
|
5980
|
+
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
5981
|
+
utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
7552
5982
|
class: classes.ErrorInput,
|
|
7553
|
-
helpText:
|
|
5983
|
+
helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
|
|
7554
5984
|
}
|
|
7555
5985
|
: {}), { required: true })),
|
|
7556
5986
|
!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) ? {
|
|
7557
5987
|
class: classes.ErrorInput,
|
|
7558
|
-
helpText:
|
|
5988
|
+
helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
|
|
7559
5989
|
}
|
|
7560
|
-
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
5990
|
+
: {}), { 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))))),
|
|
7561
5991
|
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) ? {
|
|
7562
5992
|
class: classes.ErrorInput,
|
|
7563
|
-
helpText:
|
|
5993
|
+
helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
7564
5994
|
}
|
|
7565
5995
|
: {}), { required: true })),
|
|
7566
5996
|
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) ? {
|
|
7567
5997
|
class: classes.ErrorInput,
|
|
7568
|
-
helpText:
|
|
5998
|
+
helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
|
|
7569
5999
|
}
|
|
7570
6000
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
7571
6001
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
@@ -7573,11 +6003,11 @@ const UserInfoFormView = (props) => {
|
|
|
7573
6003
|
e.stopPropagation();
|
|
7574
6004
|
}, "onSl-input": (e) => {
|
|
7575
6005
|
callbacks.setCurrencySearch(e.target.value);
|
|
7576
|
-
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6006
|
+
} }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
|
|
7577
6007
|
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
7578
6008
|
c.currencyCode,
|
|
7579
6009
|
" - ",
|
|
7580
|
-
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6010
|
+
c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
7581
6011
|
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
7582
6012
|
c.currencyCode,
|
|
7583
6013
|
" - ",
|
|
@@ -7586,36 +6016,36 @@ const UserInfoFormView = (props) => {
|
|
|
7586
6016
|
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
7587
6017
|
e.target.value = e.target.checked;
|
|
7588
6018
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
7589
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText },
|
|
6019
|
+
((_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))))),
|
|
7590
6020
|
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
7591
6021
|
};
|
|
7592
6022
|
|
|
7593
6023
|
function useUserInfoForm(props) {
|
|
7594
6024
|
var _a, _b, _c, _d;
|
|
7595
|
-
const currencyRef =
|
|
7596
|
-
const phoneCountryRef =
|
|
7597
|
-
const formRef =
|
|
7598
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7599
|
-
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
7600
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
7601
|
-
const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7602
|
-
const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
7603
|
-
const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
|
|
7604
|
-
const currencies =
|
|
7605
|
-
const [countrySearch, setCountrySearch] =
|
|
7606
|
-
const [phoneCountrySearch, setPhoneCountrySearch] =
|
|
7607
|
-
const [filteredCountries, setFilteredCountries] =
|
|
7608
|
-
const [filteredPhoneCountries, setFilteredPhoneCountries] =
|
|
7609
|
-
const [currencySearch, setCurrencySearch] =
|
|
7610
|
-
const [filteredCurrencies, setFilteredCurrencies] =
|
|
7611
|
-
const [formErrors, setErrors] =
|
|
7612
|
-
|
|
6025
|
+
const currencyRef = domContextHooks_module.useRef(undefined);
|
|
6026
|
+
const phoneCountryRef = domContextHooks_module.useRef(undefined);
|
|
6027
|
+
const formRef = domContextHooks_module.useRef(null);
|
|
6028
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
6029
|
+
const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
|
|
6030
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
6031
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
6032
|
+
const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
6033
|
+
const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
|
|
6034
|
+
const currencies = domContextHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6035
|
+
const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
|
|
6036
|
+
const [phoneCountrySearch, setPhoneCountrySearch] = domContextHooks_module.useState("");
|
|
6037
|
+
const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(countries || []);
|
|
6038
|
+
const [filteredPhoneCountries, setFilteredPhoneCountries] = domContextHooks_module.useState(countries || []);
|
|
6039
|
+
const [currencySearch, setCurrencySearch] = domContextHooks_module.useState("");
|
|
6040
|
+
const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(currencies || []);
|
|
6041
|
+
const [formErrors, setErrors] = domContextHooks_module.useState({});
|
|
6042
|
+
domContextHooks_module.useEffect(() => {
|
|
7613
6043
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7614
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6044
|
+
const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
|
|
7615
6045
|
if (!user || step !== "/1")
|
|
7616
6046
|
return;
|
|
7617
6047
|
// If form already filled out, skip initialising it
|
|
7618
|
-
if (
|
|
6048
|
+
if (utils$1.objectIsFull(userFormContext))
|
|
7619
6049
|
return;
|
|
7620
6050
|
// Prefer MI email if it was verified before this
|
|
7621
6051
|
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
@@ -7652,7 +6082,7 @@ function useUserInfoForm(props) {
|
|
|
7652
6082
|
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
7653
6083
|
});
|
|
7654
6084
|
}
|
|
7655
|
-
}, [data, step, userFormContext]);
|
|
6085
|
+
}, [data$1, step, userFormContext]);
|
|
7656
6086
|
const onFormChange = (field, e) => {
|
|
7657
6087
|
var _a, _b;
|
|
7658
6088
|
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
@@ -7667,7 +6097,7 @@ function useUserInfoForm(props) {
|
|
|
7667
6097
|
currencyRef.current.value = "";
|
|
7668
6098
|
}
|
|
7669
6099
|
};
|
|
7670
|
-
|
|
6100
|
+
domContextHooks_module.useEffect(() => {
|
|
7671
6101
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
7672
6102
|
return;
|
|
7673
6103
|
if (countrySearch.trim() === "") {
|
|
@@ -7677,7 +6107,7 @@ function useUserInfoForm(props) {
|
|
|
7677
6107
|
setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
|
|
7678
6108
|
}
|
|
7679
6109
|
}, [countrySearch, countries]);
|
|
7680
|
-
|
|
6110
|
+
domContextHooks_module.useEffect(() => {
|
|
7681
6111
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
7682
6112
|
return;
|
|
7683
6113
|
if (phoneCountrySearch.trim() === "") {
|
|
@@ -7687,7 +6117,7 @@ function useUserInfoForm(props) {
|
|
|
7687
6117
|
setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
|
|
7688
6118
|
}
|
|
7689
6119
|
}, [phoneCountrySearch, countries]);
|
|
7690
|
-
|
|
6120
|
+
domContextHooks_module.useEffect(() => {
|
|
7691
6121
|
if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
|
|
7692
6122
|
return;
|
|
7693
6123
|
if (currencySearch.trim() === "") {
|
|
@@ -7744,7 +6174,7 @@ function useUserInfoForm(props) {
|
|
|
7744
6174
|
}
|
|
7745
6175
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
7746
6176
|
const regionObj = hasStates
|
|
7747
|
-
?
|
|
6177
|
+
? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
7748
6178
|
: {};
|
|
7749
6179
|
return {
|
|
7750
6180
|
setStep: setStep,
|
|
@@ -7777,8 +6207,8 @@ function useUserInfoForm(props) {
|
|
|
7777
6207
|
disabled: loading,
|
|
7778
6208
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
7779
6209
|
loading: loading,
|
|
7780
|
-
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),
|
|
7781
|
-
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),
|
|
6210
|
+
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),
|
|
6211
|
+
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),
|
|
7782
6212
|
formState: {
|
|
7783
6213
|
...userFormContext,
|
|
7784
6214
|
errors: formErrors,
|
|
@@ -7941,7 +6371,7 @@ const TaxForm = class {
|
|
|
7941
6371
|
* @uiName Support link text
|
|
7942
6372
|
*/
|
|
7943
6373
|
this.supportLink = "support team";
|
|
7944
|
-
|
|
6374
|
+
domContextHooks_module.h$1(this);
|
|
7945
6375
|
}
|
|
7946
6376
|
disconnectedCallback() { }
|
|
7947
6377
|
getTextProps() {
|
|
@@ -7961,19 +6391,20 @@ const TaxForm = class {
|
|
|
7961
6391
|
}
|
|
7962
6392
|
render() {
|
|
7963
6393
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
7964
|
-
return (index.h(
|
|
6394
|
+
return (index.h(UserInfoFormView, { data: props.data,
|
|
7965
6395
|
// @ts-ignore
|
|
7966
6396
|
states: props.states, callbacks: {
|
|
7967
6397
|
...props.callbacks,
|
|
7968
6398
|
onSubmit: props.onSubmit,
|
|
7969
|
-
}, text: props.text, refs: props.refs }))
|
|
6399
|
+
}, text: props.text, refs: props.refs }));
|
|
7970
6400
|
}
|
|
7971
6401
|
};
|
|
7972
6402
|
function useDemoUserInfoForm(props) {
|
|
7973
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6403
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
6404
|
+
// @ts-ignore
|
|
7974
6405
|
return cjs.cjs({
|
|
7975
6406
|
setStep,
|
|
7976
|
-
onSubmit: () => {
|
|
6407
|
+
onSubmit: async () => {
|
|
7977
6408
|
setStep("/2");
|
|
7978
6409
|
},
|
|
7979
6410
|
onRadioClick: () => { },
|
|
@@ -8017,19 +6448,12 @@ function useDemoUserInfoForm(props) {
|
|
|
8017
6448
|
}
|
|
8018
6449
|
|
|
8019
6450
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
8020
|
-
exports.sqm_code_verification = WidgetCodeVerification;
|
|
8021
6451
|
exports.sqm_docusign_form = DocusignForm;
|
|
8022
6452
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
8023
6453
|
exports.sqm_invoice_table = InvoiceTable;
|
|
8024
|
-
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
8025
6454
|
exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
|
|
8026
|
-
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
8027
6455
|
exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
|
|
8028
|
-
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
8029
6456
|
exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
|
|
8030
6457
|
exports.sqm_payout_details_card = PayoutDetailsCard;
|
|
8031
|
-
exports.sqm_table_cell = TableCell;
|
|
8032
|
-
exports.sqm_table_row = TableRow;
|
|
8033
|
-
exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
8034
6458
|
exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
|
|
8035
6459
|
exports.sqm_user_info_form = TaxForm;
|