@saasquatch/mint-components 1.15.0-99 → 1.16.0-1
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/ErrorView-b2fcf954.js +35 -0
- package/dist/cjs/{GenericTableView-a9845e80.js → GenericTableView-a9f4ba75.js} +8 -8
- package/dist/cjs/{ShadowViewAddon-c06b2910.js → ShadowViewAddon-28865623.js} +1531 -1495
- package/dist/cjs/copy-text-view-c85acaaa.js +96 -0
- package/dist/cjs/{email-registration-view-ace50780.js → email-registration-view-55b378dc.js} +3 -5
- package/dist/cjs/{global-4cd8623e.js → global-e31dc4f5.js} +10494 -10772
- package/dist/cjs/{index-a43a63b4.js → index-a29c60ef.js} +0 -4
- package/dist/cjs/{index.module-4f54e412.js → index.module-ee84433d.js} +191 -191
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-949beaf2.js → luxon-2926d85f.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mixins-4761d472.js → mixins-f7e0377a.js} +6 -6
- package/dist/cjs/{mockRewardData-df37c8a3.js → mockRewardData-7815f10f.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-d516138a.js → re-render-b324deab.js} +4 -4
- package/dist/cjs/sqm-asset-card-view-21ddf04f.js +51 -0
- package/dist/cjs/sqm-asset-card.cjs.entry.js +45 -0
- package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +2519 -712
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-8a2c8763.js} +3 -3
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +788 -1274
- package/dist/cjs/{sqm-close-button-view-5e85ac51.js → sqm-close-button-view-ea3fa23b.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
- package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
- package/dist/cjs/sqm-email-verification.cjs.entry.js +28 -152
- package/dist/cjs/sqm-empty_4.cjs.entry.js +63 -58
- 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-view-5c74607f.js +2074 -0
- package/dist/cjs/sqm-lead-checkbox-field-view-34d94919.js +83 -0
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +81 -0
- package/dist/cjs/sqm-lead-input-field-view-89308aab.js +51 -0
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +88 -0
- package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +10 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-logout-current-user-view-b61c8bdf.js → sqm-logout-current-user-view-11d57c12.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +45 -0
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +8 -31
- package/dist/cjs/{sqm-navigation-sidebar-view-de90ef03.js → sqm-navigation-sidebar-view-17111896.js} +8 -18
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +9 -25
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +70 -97
- 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-07e4343f.js → sqm-portal-container-view-4f15143a.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-5a22b152.js → sqm-portal-email-verification-view-7ebb426a.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-forgot-password-view-0a8d3243.js → sqm-portal-forgot-password-view-78f19ef9.js} +16 -24
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +10 -39
- 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-bb50304c.js → sqm-portal-login-view-761a4d8e.js} +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-4dbfeaeb.js → sqm-portal-profile-view-33164798.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-5a96c2f5.js → sqm-portal-registration-form-view-637a4bf4.js} +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-reset-password-view-25eb2099.js → sqm-portal-reset-password-view-fe602822.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-verify-email-view-1c4e781f.js → sqm-portal-verify-email-view-7b678f34.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-qr-code-view-0c3b2f48.js → sqm-qr-code-view-15dfc0b6.js} +10 -10
- package/dist/cjs/sqm-qr-code.cjs.entry.js +13 -12
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +47 -132
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +178 -0
- 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 +37 -84
- 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 +14117 -15117
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +13 -27
- package/dist/cjs/sqm-text-span-view-0aa82125.js +62 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -19
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +13 -25
- package/dist/cjs/{dom-context-hooks.module-7fa676ae.js → stencil-hooks.module-3a336b0f.js} +18 -18
- package/dist/cjs/{useChildElements-966c9041.js → useChildElements-1b35d945.js} +5 -5
- package/dist/cjs/{useInstantAccessRegistration-08bcb487.js → useInstantAccessRegistration-0537e28e.js} +4 -4
- package/dist/cjs/useLeadFormState-c83d2034.js +72 -0
- package/dist/cjs/{usePayoutStatus-3b34dab1.js → usePayoutStatus-c84a7d98.js} +13 -10
- package/dist/cjs/{usePortalLogin-6aa864ef.js → usePortalLogin-63d896d1.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-75b647fe.js → usePortalRegistrationForm-f25d89e7.js} +6 -6
- package/dist/cjs/{useReferralCodes-11cdf43b.js → useReferralCodes-82e8797b.js} +3 -3
- package/dist/cjs/{useReferralTable-90d4d6e9.js → useReferralTable-7c3f9600.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-bbee6e7b.js → useRegistrationFormState-7b820f0c.js} +6 -6
- package/dist/cjs/{useVerificationEmail-9dd3997a.js → useVerificationEmail-95a82767.js} +6 -6
- package/dist/cjs/{utilities-9a0c5e91.js → utilities-78f5e169.js} +4 -4
- package/dist/cjs/{utils-7cbd60cc.js → utils-6847bc06.js} +0 -5
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +29 -0
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +46 -0
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +107 -0
- package/dist/collection/components/sqm-asset-card/useAssetCard.js +9 -0
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +0 -13
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +8 -15
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +4 -171
- package/dist/collection/components/sqm-big-stat/useBigStat.js +8 -127
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +5 -14
- package/dist/collection/components/sqm-brand/sqm-brand.js +4 -12
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +0 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +11 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +0 -1
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +0 -4
- 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 +48 -145
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +65 -3
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +6 -14
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +3 -62
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- 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 +16 -8
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +11 -50
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +0 -1
- package/dist/collection/components/sqm-hero/Hero.stories.js +0 -11
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +6 -13
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -30
- 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 +0 -80
- package/dist/collection/components/sqm-image/sqm-image.js +0 -1
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -4
- 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 +1 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +1 -2
- 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 +3 -6
- package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +44 -0
- package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +93 -0
- package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +62 -0
- package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +49 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +79 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +234 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +65 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +251 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +123 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +495 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +47 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +251 -0
- package/dist/collection/components/sqm-lead-form/useCheckboxField.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadDropdownField.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +155 -0
- package/dist/collection/components/sqm-lead-form/useLeadFormState.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadInputField.js +10 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +0 -37
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +54 -60
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +36 -202
- 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 +0 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +3 -28
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +0 -1
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +0 -1
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +7 -17
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +5 -85
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +7 -18
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -233
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +1 -9
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +2 -43
- 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 +4 -8
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -2
- 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 +8 -1
- 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 +0 -1
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +13 -21
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -103
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +36 -41
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +2 -102
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +1 -4
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +5 -10
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -2
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +0 -1
- 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 +0 -1
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +0 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +3 -1
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +0 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.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 +0 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -12
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +2 -77
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +0 -1
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +7 -2
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +0 -1
- package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +31 -34
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +10 -81
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -3
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -170
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -6
- 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 +1 -29
- 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 +20 -53
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +7 -62
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -4
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +3 -6
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +3 -6
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +2 -4
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -4
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +10 -3
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +5 -31
- 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 +42 -39
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +7 -50
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +5 -6
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +4 -5
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +9 -58
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +3 -5
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +2 -4
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-route/sqm-route.js +0 -1
- package/dist/collection/components/sqm-router/sqm-router.js +0 -2
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +0 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -3
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +22 -23
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +10 -57
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -170
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +1 -13
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +3 -172
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +9 -21
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +2 -112
- package/dist/collection/components/sqm-stencilbook/Themes.js +33 -325
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +107 -81
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +0 -7
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +2 -16
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -30
- package/dist/collection/components/sqm-task-card/DetailsView.js +2 -8
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +2 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +157 -139
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -147
- package/dist/collection/components/sqm-task-card/useTaskCard.js +0 -10
- package/dist/collection/components/sqm-text/sqm-text.js +48 -101
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +43 -44
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +2 -52
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +1 -8
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +0 -52
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +1 -3
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +2 -12
- 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 +14 -138
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +7 -39
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +8 -45
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +26 -13
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +69 -19
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +76 -21
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +71 -54
- 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 +27 -24
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -26
- 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/PayoutStatusAlert.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +62 -19
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +103 -4
- 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 +27 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +192 -59
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +8 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +122 -108
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +134 -80
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -1
- 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 +54 -167
- 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 +38 -69
- package/dist/collection/components/views/email-registration-view.js +1 -3
- package/dist/collection/global/global.js +12 -27
- package/dist/collection/global/mixins.js +8 -8
- package/dist/collection/global/styles.js +99 -330
- package/dist/collection/global/styles.ts +100 -419
- package/dist/collection/stories/PortalTemplates.stories.js +30 -22
- package/dist/collection/tables/GenericTableView.js +6 -6
- package/dist/collection/utils/utils.js +0 -4
- package/dist/esm/ErrorView-48e2b969.js +33 -0
- package/dist/esm/{GenericTableView-e43d310f.js → GenericTableView-7b9087af.js} +8 -8
- package/dist/esm/{ShadowViewAddon-cf7c03a0.js → ShadowViewAddon-f2176779.js} +1525 -1492
- package/dist/esm/copy-text-view-782137ba.js +94 -0
- package/dist/esm/{email-registration-view-1f587f8b.js → email-registration-view-a7818cf2.js} +3 -5
- package/dist/esm/{global-f97ae778.js → global-be1f9992.js} +8276 -8553
- package/dist/esm/{index-b3a06de8.js → index-91e7729f.js} +0 -4
- package/dist/esm/{index.module-38dad6c9.js → index.module-89a79f66.js} +153 -153
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-bbf75a9d.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mixins-f750863a.js → mixins-83f90fa1.js} +6 -6
- package/dist/esm/{mockRewardData-96a2d26d.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-9c90767d.js → re-render-cc945f38.js} +2 -2
- package/dist/esm/sqm-asset-card-view-fe5db3c0.js +49 -0
- package/dist/esm/sqm-asset-card.entry.js +41 -0
- package/dist/esm/{sqm-banking-info-form_10.entry.js → sqm-banking-info-form_17.entry.js} +2357 -557
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-593d4ac3.js} +3 -3
- package/dist/esm/sqm-big-stat_43.entry.js +696 -1182
- package/dist/esm/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-f9819751.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -5
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-email-verification.entry.js +21 -145
- package/dist/esm/sqm-empty_4.entry.js +60 -55
- 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-view-3491dd80.js +2058 -0
- package/dist/esm/sqm-lead-checkbox-field-view-a8c1c78e.js +81 -0
- package/dist/esm/sqm-lead-checkbox-field.entry.js +77 -0
- package/dist/esm/sqm-lead-input-field-view-4ede5d7f.js +49 -0
- package/dist/esm/sqm-lead-input-field.entry.js +84 -0
- package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +8 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
- package/dist/esm/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +43 -0
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -30
- package/dist/esm/{sqm-navigation-sidebar-view-0a2ec560.js → sqm-navigation-sidebar-view-9d802b78.js} +8 -18
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -22
- package/dist/esm/sqm-pagination_3.entry.js +64 -91
- 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-176e92e3.js → sqm-portal-container-view-1683ae32.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-98fc3374.js → sqm-portal-email-verification-view-35b4353b.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
- package/dist/esm/{sqm-portal-forgot-password-view-0e795cdd.js → sqm-portal-forgot-password-view-3d3182f1.js} +16 -24
- package/dist/esm/sqm-portal-forgot-password.entry.js +7 -36
- 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-7670cd86.js → sqm-portal-login-view-7e49609a.js} +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-25b3250a.js → sqm-portal-profile-view-93003974.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-8bdc3804.js → sqm-portal-registration-form-view-3c1f6000.js} +3 -3
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-54a8651f.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
- package/dist/esm/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-b12cb894.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/{sqm-qr-code-view-97124a66.js → sqm-qr-code-view-f1d0763b.js} +9 -9
- package/dist/esm/sqm-qr-code.entry.js +7 -6
- package/dist/esm/sqm-referral-table_11.entry.js +36 -121
- package/dist/esm/sqm-referred-registration.entry.js +174 -0
- 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 +25 -72
- 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 +14111 -15111
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +10 -24
- package/dist/esm/sqm-text-span-view-ca32495e.js +60 -0
- package/dist/esm/sqm-text-span.entry.js +6 -6
- package/dist/esm/sqm-widget-verification-controller.entry.js +6 -14
- package/dist/esm/sqm-widget-verification.entry.js +10 -22
- package/dist/esm/{dom-context-hooks.module-63370afd.js → stencil-hooks.module-4bc38af4.js} +13 -13
- package/dist/esm/{useChildElements-4e70ac0e.js → useChildElements-7945ae56.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-0f04459e.js → useInstantAccessRegistration-dc4ad9f2.js} +3 -3
- package/dist/esm/useLeadFormState-9016d812.js +68 -0
- package/dist/esm/{usePayoutStatus-7eeec61b.js → usePayoutStatus-f07bcf90.js} +10 -7
- package/dist/esm/{usePortalLogin-d0720c81.js → usePortalLogin-ef647a50.js} +3 -3
- package/dist/esm/{usePortalRegistrationForm-afc0171e.js → usePortalRegistrationForm-4b35a357.js} +3 -3
- package/dist/esm/{useReferralCodes-311e6d72.js → useReferralCodes-8f75921a.js} +2 -2
- package/dist/esm/{useReferralTable-65a01a6a.js → useReferralTable-b3876ed6.js} +5 -5
- package/dist/esm/{useRegistrationFormState-18c2cea7.js → useRegistrationFormState-d6f33135.js} +2 -2
- package/dist/esm/{useVerificationEmail-f9413de9.js → useVerificationEmail-edc318cb.js} +2 -2
- package/dist/esm/{utilities-ad9c2893.js → utilities-5b0ca040.js} +2 -2
- package/dist/esm/{utils-03188de2.js → utils-334c1e34.js} +1 -5
- package/dist/esm-es5/ErrorView-48e2b969.js +1 -0
- package/dist/esm-es5/GenericTableView-7b9087af.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-f2176779.js +1 -0
- package/dist/esm-es5/copy-text-view-782137ba.js +1 -0
- package/dist/esm-es5/email-registration-view-a7818cf2.js +1 -0
- package/dist/esm-es5/{global-f97ae778.js → global-be1f9992.js} +5 -5
- package/dist/esm-es5/{index-b3a06de8.js → index-91e7729f.js} +1 -1
- package/dist/esm-es5/index.module-89a79f66.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-8d51c92b.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mixins-83f90fa1.js +1 -0
- package/dist/esm-es5/{mockRewardData-96a2d26d.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/re-render-cc945f38.js +1 -0
- package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +1 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
- package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-593d4ac3.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-f9819751.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- 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-view-3491dd80.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field-view-a8c1c78e.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field-view-4ede5d7f.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.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-176e92e3.js → sqm-portal-container-view-1683ae32.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-98fc3374.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.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-7e49609a.js +1 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-25b3250a.js → sqm-portal-profile-view-93003974.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-8bdc3804.js → sqm-portal-registration-form-view-3c1f6000.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-54a8651f.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-b12cb894.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code-view-f1d0763b.js +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-referred-registration.entry.js +1 -0
- 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-text-span-view-ca32495e.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/stencil-hooks.module-4bc38af4.js +53 -0
- package/dist/esm-es5/useChildElements-7945ae56.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +1 -0
- package/dist/esm-es5/useLeadFormState-9016d812.js +1 -0
- package/dist/esm-es5/{usePayoutStatus-7eeec61b.js → usePayoutStatus-f07bcf90.js} +2 -2
- package/dist/esm-es5/usePortalLogin-ef647a50.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +1 -0
- package/dist/esm-es5/useReferralCodes-8f75921a.js +1 -0
- package/dist/esm-es5/useReferralTable-b3876ed6.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-d6f33135.js +1 -0
- package/dist/esm-es5/useVerificationEmail-edc318cb.js +1 -0
- package/dist/esm-es5/utilities-5b0ca040.js +1 -0
- package/dist/esm-es5/utils-334c1e34.js +1 -0
- package/dist/mint-components/global/styles.ts +100 -419
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-00df0cac.js +1 -0
- package/dist/mint-components/p-00ed4c2e.entry.js +1 -0
- package/dist/mint-components/p-01dd541f.system.js +1 -0
- package/dist/mint-components/p-04a6e457.entry.js +1 -0
- package/dist/mint-components/{p-f307b716.js → p-05f29f64.js} +1 -1
- package/dist/mint-components/p-0b4cac9f.system.entry.js +1 -0
- package/dist/mint-components/p-0c78815e.system.entry.js +1 -0
- package/dist/mint-components/{p-fa6fba34.system.js → p-0c9debc1.system.js} +2 -2
- package/dist/mint-components/{p-bb12b845.system.js → p-0d182dc1.system.js} +1 -1
- package/dist/mint-components/{p-8dc1cd0f.entry.js → p-0d2d0b6d.entry.js} +1 -1
- package/dist/mint-components/p-0d939b73.system.js +1 -0
- package/dist/mint-components/p-0e864c3c.system.entry.js +1 -0
- package/dist/mint-components/p-0ebab63e.system.js +1 -0
- package/dist/mint-components/{p-e0f9a395.entry.js → p-10d17989.entry.js} +1 -1
- package/dist/mint-components/{p-a6f4fb03.system.js → p-127e66c2.system.js} +1 -1
- package/dist/mint-components/p-12bba567.entry.js +1 -0
- package/dist/mint-components/p-1354b74b.system.entry.js +1 -0
- package/dist/mint-components/{p-3dc34570.system.js → p-13ed8586.system.js} +1 -1
- package/dist/mint-components/p-141bf5c1.system.entry.js +1 -0
- package/dist/mint-components/p-14a65f29.system.js +1 -0
- package/dist/mint-components/p-1513309d.entry.js +1 -0
- package/dist/mint-components/{p-0cba75e6.system.entry.js → p-164a9103.system.entry.js} +1 -1
- package/dist/mint-components/{p-910f56ca.system.entry.js → p-18425f38.system.entry.js} +1 -1
- package/dist/mint-components/{p-fb2976fc.system.entry.js → p-19bc3406.system.entry.js} +1 -1
- package/dist/mint-components/p-19ccb4ce.js +1 -0
- package/dist/mint-components/{p-b9bccc55.entry.js → p-1a6b7d2a.entry.js} +1 -1
- package/dist/mint-components/p-1b3ab15a.system.entry.js +1 -0
- package/dist/mint-components/p-1d704c40.system.js +1 -0
- package/dist/mint-components/p-1fa9ed0d.system.entry.js +1 -0
- package/dist/mint-components/p-21620f81.system.entry.js +1 -0
- package/dist/mint-components/p-229f797b.js +1 -0
- package/dist/mint-components/p-22a4a611.entry.js +273 -0
- package/dist/mint-components/p-24db5c70.js +1 -0
- package/dist/mint-components/{p-00791abc.js → p-266a8b4d.js} +1 -1
- package/dist/mint-components/p-275b4767.entry.js +1 -0
- package/dist/mint-components/{p-0b0f49ad.entry.js → p-284e4ed5.entry.js} +1 -1
- package/dist/mint-components/{p-711bc624.entry.js → p-2ae0e06a.entry.js} +1 -1
- package/dist/mint-components/p-2bbff88f.entry.js +1 -0
- package/dist/mint-components/{p-91014439.system.js → p-2d52e2d7.system.js} +1 -1
- package/dist/mint-components/p-2da21ba4.entry.js +1 -0
- package/dist/mint-components/p-2dca9e1a.system.js +1 -0
- package/dist/mint-components/{p-d5f1df29.entry.js → p-2f101bae.entry.js} +1 -1
- package/dist/mint-components/{p-485e2d9f.system.entry.js → p-301ddcaa.system.entry.js} +1 -1
- package/dist/mint-components/p-31015791.js +1 -0
- package/dist/mint-components/p-33c96e14.entry.js +16 -0
- package/dist/mint-components/{p-a45680fe.js → p-35b475bf.js} +1 -1
- package/dist/mint-components/{p-0d22c0e5.system.entry.js → p-36ffebd8.system.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -0
- package/dist/mint-components/p-380bfde1.entry.js +1 -0
- package/dist/mint-components/p-38e5c429.system.js +1 -0
- package/dist/mint-components/p-38fc919b.entry.js +1 -0
- package/dist/mint-components/p-3a62a7e2.system.js +1 -0
- package/dist/mint-components/p-3b90e01b.system.js +1 -0
- package/dist/mint-components/p-3db34d68.js +1 -0
- package/dist/mint-components/p-3f6e0197.system.entry.js +1 -0
- package/dist/mint-components/{p-862845d7.js → p-3f7b81b8.js} +2 -2
- package/dist/mint-components/p-420554af.system.entry.js +1 -0
- package/dist/mint-components/p-42187319.system.entry.js +1 -0
- package/dist/mint-components/p-43b4bb99.entry.js +1 -0
- package/dist/mint-components/p-4428294b.entry.js +1 -0
- package/dist/mint-components/{p-c3884e55.entry.js → p-44891949.entry.js} +1 -1
- package/dist/mint-components/p-4794641c.system.js +1 -0
- package/dist/mint-components/p-47bd2d7a.entry.js +205 -0
- package/dist/mint-components/p-48135f99.system.js +53 -0
- package/dist/mint-components/p-48c69c2d.entry.js +1 -0
- package/dist/mint-components/p-492b70db.system.js +1 -0
- package/dist/mint-components/p-49932f12.system.js +1 -0
- package/dist/mint-components/{p-4204a6e3.entry.js → p-4b6dc0e5.entry.js} +1 -1
- package/dist/mint-components/{p-fb5be0c5.js → p-4e451f75.js} +1 -1
- package/dist/mint-components/{p-5ed49bf2.js → p-4e526a94.js} +1 -1
- package/dist/mint-components/p-4e5af50c.js +1 -0
- package/dist/mint-components/{p-3d05ebb1.system.entry.js → p-50c902ca.system.entry.js} +1 -1
- package/dist/mint-components/{p-82505f6e.system.js → p-527216de.system.js} +1 -1
- package/dist/mint-components/{p-bb627d95.entry.js → p-53730ffe.entry.js} +3 -3
- package/dist/mint-components/{p-9fb8b33a.system.js → p-5488fdd9.system.js} +1 -1
- package/dist/mint-components/{p-578a27c8.system.js → p-59274a91.system.js} +1 -1
- package/dist/mint-components/{p-08700497.js → p-5bedb58c.js} +1 -1
- package/dist/mint-components/{p-ebb487d0.system.entry.js → p-5c28406d.system.entry.js} +1 -1
- package/dist/mint-components/p-5cb7f9fc.system.entry.js +1 -0
- package/dist/mint-components/p-6055eb4c.system.js +1 -0
- package/dist/mint-components/p-626e9e84.js +1 -0
- package/dist/mint-components/p-6333265f.system.js +1 -0
- package/dist/mint-components/p-635d5ef2.system.js +1 -0
- package/dist/mint-components/{p-750e7b01.js → p-63a75798.js} +1 -1
- package/dist/mint-components/p-6427e963.entry.js +1 -0
- package/dist/mint-components/p-65069b66.js +1248 -0
- package/dist/mint-components/p-653f963f.entry.js +13 -0
- package/dist/mint-components/p-65ba9e94.entry.js +1 -0
- package/dist/mint-components/{p-42b62299.system.entry.js → p-6a8d9def.system.entry.js} +1 -1
- package/dist/mint-components/p-6b7a595f.system.js +1 -0
- package/dist/mint-components/p-6ba44ca9.js +1 -0
- package/dist/mint-components/{p-0e59a91e.js → p-6bb25c02.js} +3 -3
- package/dist/mint-components/p-6cd4f2b1.system.js +1 -0
- package/dist/mint-components/{p-4d19270b.js → p-6d2f5a1d.js} +2 -2
- package/dist/mint-components/{p-7159c51c.system.js → p-6d9e52c7.system.js} +1 -1
- package/dist/mint-components/p-6eaf9c57.entry.js +1 -0
- package/dist/mint-components/p-6f65f9e1.system.entry.js +1 -0
- package/dist/mint-components/p-775f3ded.entry.js +1 -0
- package/dist/mint-components/{p-3285a6b3.system.entry.js → p-776733b5.system.entry.js} +1 -1
- package/dist/mint-components/p-7846937e.entry.js +13 -0
- package/dist/mint-components/{p-3eba9036.js → p-7a9290ba.js} +1 -1
- package/dist/mint-components/p-7ab21e4d.entry.js +1 -0
- package/dist/mint-components/{p-15012f59.system.js → p-7c2b9fe4.system.js} +1 -1
- package/dist/mint-components/{p-eea87fdc.system.entry.js → p-7dabdca6.system.entry.js} +1 -1
- package/dist/mint-components/{p-94f9fbf7.entry.js → p-7f80a9d7.entry.js} +1 -1
- package/dist/mint-components/{p-a148663a.system.js → p-8175e85f.system.js} +1 -1
- package/dist/mint-components/{p-ac2fdad8.system.entry.js → p-8362cb4c.system.entry.js} +1 -1
- package/dist/mint-components/p-837a0fdd.js +1 -0
- package/dist/mint-components/p-85671c3d.system.entry.js +1 -0
- package/dist/mint-components/p-8abfeff8.entry.js +1 -0
- package/dist/mint-components/p-8c0b7881.system.entry.js +1 -0
- package/dist/mint-components/p-8c23d1b8.js +1 -0
- package/dist/mint-components/p-8d9d04b7.system.entry.js +1 -0
- package/dist/mint-components/{p-258f4e5e.system.entry.js → p-90fc6774.system.entry.js} +1 -1
- package/dist/mint-components/p-91521e9d.js +1 -0
- package/dist/mint-components/{p-ddf3c05e.js → p-91959fbe.js} +1 -1
- package/dist/mint-components/{p-68043f30.js → p-91ab3da1.js} +1 -1
- package/dist/mint-components/p-92816d1f.js +1 -0
- package/dist/mint-components/{p-da6fe95f.system.entry.js → p-9386ad84.system.entry.js} +1 -1
- package/dist/mint-components/{p-460155de.js → p-938f64d9.js} +1 -1
- package/dist/mint-components/p-94a876b9.js +1 -0
- package/dist/mint-components/p-95b88eb6.system.js +1 -0
- package/dist/mint-components/{p-c3dce602.system.entry.js → p-96431b4f.system.entry.js} +1 -1
- package/dist/mint-components/p-97d4d651.system.js +1 -0
- package/dist/mint-components/p-98698131.js +1 -0
- package/dist/mint-components/{p-64997b59.system.js → p-99ad7d56.system.js} +1 -1
- package/dist/mint-components/p-9acb5038.js +1 -0
- package/dist/mint-components/{p-002e6205.system.entry.js → p-9b6a0152.system.entry.js} +1 -1
- package/dist/mint-components/{p-b3da317b.system.entry.js → p-9bfd9bed.system.entry.js} +1 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +1 -0
- package/dist/mint-components/{p-6951663b.js → p-9ec99ced.js} +1 -1
- package/dist/mint-components/{p-22c11f0e.entry.js → p-a2fde301.entry.js} +1 -1
- package/dist/mint-components/{p-d399162b.system.js → p-a71b9154.system.js} +1 -1
- package/dist/mint-components/{p-9580aac3.js → p-a9f4ddb1.js} +1 -1
- package/dist/mint-components/p-aad32fb6.system.js +1 -0
- package/dist/mint-components/{p-8e28333b.system.js → p-ae1ea5ac.system.js} +1 -1
- package/dist/mint-components/p-b207beeb.entry.js +1 -0
- package/dist/mint-components/{p-e55f3eb6.system.entry.js → p-b287833c.system.entry.js} +1 -1
- package/dist/mint-components/{p-6578ea31.system.js → p-b75bb6e3.system.js} +1 -1
- package/dist/mint-components/{p-7059ee40.system.entry.js → p-b7d1469d.system.entry.js} +1 -1
- package/dist/mint-components/p-b82e1935.system.entry.js +1 -0
- package/dist/mint-components/{p-6ef73224.js → p-bbcd824a.js} +1 -1
- package/dist/mint-components/{p-f1f20fdf.system.js → p-bdb7d451.system.js} +22 -22
- package/dist/mint-components/p-bfc7cfc0.system.js +1 -0
- package/dist/mint-components/p-c060f770.system.entry.js +1 -0
- package/dist/mint-components/{p-3787a4d6.js → p-c0f19490.js} +1 -1
- package/dist/mint-components/p-c1b074b6.js +394 -0
- package/dist/mint-components/{p-dbe29e53.system.entry.js → p-c2fdd608.system.entry.js} +1 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +1 -0
- package/dist/mint-components/p-c46a0007.entry.js +9 -0
- package/dist/mint-components/p-c9f1dde7.js +1 -0
- package/dist/mint-components/p-cb7bdbe4.entry.js +1 -0
- package/dist/mint-components/p-cbbfac66.entry.js +25 -0
- package/dist/mint-components/p-cd1d497f.system.js +1 -0
- package/dist/mint-components/{p-a392912a.system.js → p-cd569259.system.js} +1 -1
- package/dist/mint-components/p-cd651f81.js +42 -0
- package/dist/mint-components/{p-9aadc253.entry.js → p-d07f3090.entry.js} +1 -1
- package/dist/mint-components/{p-b22b7891.js → p-d6831af5.js} +1 -1
- package/dist/mint-components/{p-e27ff213.entry.js → p-da7708a7.entry.js} +1 -1
- package/dist/mint-components/{p-1c1f4ce7.system.js → p-dbc0e4f8.system.js} +1 -1
- package/dist/mint-components/p-dbcb5359.js +1 -0
- package/dist/mint-components/p-dcc81e90.entry.js +1 -0
- package/dist/mint-components/p-e07bc6c4.system.js +1 -0
- package/dist/mint-components/p-e5a5ae7f.system.entry.js +1 -0
- package/dist/mint-components/{p-b6911812.system.js → p-e5d0375e.system.js} +1 -1
- package/dist/mint-components/p-e6f50ffd.entry.js +1 -0
- package/dist/mint-components/p-e8e48982.js +1 -0
- package/dist/mint-components/{p-5e0af707.entry.js → p-e8ffcc68.entry.js} +2 -2
- package/dist/mint-components/p-ef75f3a9.system.entry.js +1 -0
- package/dist/mint-components/p-eff2e68b.entry.js +144 -0
- package/dist/mint-components/{p-a2533860.system.entry.js → p-f0772618.system.entry.js} +1 -1
- package/dist/mint-components/p-f26aedcd.system.js +1 -0
- package/dist/mint-components/p-f2d8d3d3.system.entry.js +1 -0
- package/dist/mint-components/{p-4271f436.system.entry.js → p-f4a72903.system.entry.js} +1 -1
- package/dist/mint-components/{p-22d20816.system.entry.js → p-f4a8ee29.system.entry.js} +1 -1
- package/dist/mint-components/p-f56bedd5.js +1 -0
- package/dist/mint-components/p-f708da7b.js +1 -0
- package/dist/mint-components/p-f7c99803.system.js +1 -0
- package/dist/mint-components/{p-07dc6d68.js → p-f940190a.js} +1 -1
- package/dist/mint-components/p-f98a4354.js +1 -0
- package/dist/mint-components/{p-7af4fba0.system.entry.js → p-fa37513e.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7ee19dc.entry.js → p-faba3198.entry.js} +1 -1
- package/dist/mint-components/p-ff8b8067.entry.js +33 -0
- package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +7 -0
- package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +8 -0
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +24 -0
- package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +7 -0
- package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +0 -2
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -5
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +1 -47
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +0 -2
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +0 -1
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +0 -2
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +16 -43
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +3 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +1 -4
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +0 -15
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +1 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +0 -1
- package/dist/types/components/sqm-hero/Hero.stories.d.ts +0 -1
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +0 -1
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +1 -6
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +0 -1
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +0 -20
- package/dist/types/components/sqm-image/sqm-image.d.ts +0 -1
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -2
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +0 -3
- package/dist/types/components/sqm-lead-form/LeadCheckboxField.stories.d.ts +28 -0
- package/dist/types/components/sqm-lead-form/LeadForm.stories.d.ts +10 -0
- package/dist/types/components/sqm-lead-form/LeadFormDropdownField.stories.d.ts +10 -0
- package/dist/types/components/sqm-lead-form/LeadInputField.stories.d.ts +8 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field-view.d.ts +15 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field.d.ts +46 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +17 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +49 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +36 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +93 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +15 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +51 -0
- package/dist/types/components/sqm-lead-form/useCheckboxField.d.ts +6 -0
- package/dist/types/components/sqm-lead-form/useLeadDropdownField.d.ts +6 -0
- package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +28 -0
- package/dist/types/components/sqm-lead-form/useLeadFormState.d.ts +19 -0
- package/dist/types/components/sqm-lead-form/useLeadInputField.d.ts +6 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +0 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +0 -6
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +11 -53
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +0 -6
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +0 -1
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +0 -1
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +0 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +0 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +0 -16
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +0 -8
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +0 -57
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -1
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +2 -9
- 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 +0 -2
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +0 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +0 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -5
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +0 -15
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +0 -3
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +0 -19
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +1 -2
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +0 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -1
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +0 -1
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +0 -1
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +0 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +0 -2
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +0 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -20
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +0 -1
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +0 -1
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +2 -5
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +2 -25
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -1
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -43
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -1
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -1
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -7
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +0 -3
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -2
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +437 -457
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +1 -10
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +0 -2
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
- package/dist/types/components/sqm-route/sqm-route.d.ts +0 -1
- package/dist/types/components/sqm-router/sqm-router.d.ts +0 -2
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +0 -1
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +1 -2
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +6 -19
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +0 -43
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +0 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -44
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +0 -3
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +0 -25
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
- package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +0 -1
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +0 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +0 -10
- package/dist/types/components/sqm-task-card/DetailsView.d.ts +0 -6
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +0 -5
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +4 -33
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +0 -9
- package/dist/types/components/sqm-text/sqm-text.d.ts +0 -13
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +2 -4
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -14
- package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +0 -1
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +0 -2
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +0 -14
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +1 -3
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +0 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +2 -5
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +2 -6
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +16 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +38 -9
- 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 +6 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +24 -12
- 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 +0 -5
- package/dist/types/components.d.ts +651 -1221
- 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 +2 -10
- package/dist/types/saasquatch.d.ts +7 -143
- package/dist/types/utils/utils.d.ts +0 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -3
- package/dist/cjs/IndirectTaxDetailsView-282c1fda.js +0 -646
- package/dist/cjs/copy-text-view-97ae8a48.js +0 -127
- package/dist/cjs/data-d4339c2e.js +0 -137
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -352
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +0 -84
- package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +0 -10
- package/dist/cjs/sqm-navigation-sidebar-item-view-ec7a5c53.js +0 -56
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1254
- package/dist/cjs/sqm-text-span-view-7a61ae4c.js +0 -63
- package/dist/cjs/utils-aacb4233.js +0 -105
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +0 -198
- package/dist/collection/components/sqm-text/Text.stories.js +0 -12
- package/dist/collection/insertfont.js +0 -18
- package/dist/collection/utils/parseStates.js +0 -12
- package/dist/esm/IndirectTaxDetailsView-5e60d91f.js +0 -639
- package/dist/esm/copy-text-view-ab2fda20.js +0 -125
- package/dist/esm/data-ee3ae298.js +0 -121
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-code-verification.entry.js +0 -348
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +0 -76
- package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +0 -8
- package/dist/esm/sqm-navigation-sidebar-item-view-797601b0.js +0 -54
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1250
- package/dist/esm/sqm-text-span-view-4c17b8c9.js +0 -61
- package/dist/esm/utils-e1cdc479.js +0 -97
- package/dist/esm-es5/GenericTableView-e43d310f.js +0 -1
- package/dist/esm-es5/IndirectTaxDetailsView-5e60d91f.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-cf7c03a0.js +0 -1
- package/dist/esm-es5/copy-text-view-ab2fda20.js +0 -1
- package/dist/esm-es5/data-ee3ae298.js +0 -1
- package/dist/esm-es5/dom-context-hooks.module-63370afd.js +0 -53
- package/dist/esm-es5/email-registration-view-1f587f8b.js +0 -1
- package/dist/esm-es5/index.module-38dad6c9.js +0 -1
- package/dist/esm-es5/luxon-bbf75a9d.js +0 -1
- package/dist/esm-es5/mixins-f750863a.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/re-render-9c90767d.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-797601b0.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +0 -1
- package/dist/esm-es5/sqm-qr-code-view-97124a66.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +0 -1
- package/dist/esm-es5/useChildElements-4e70ac0e.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-0f04459e.js +0 -1
- package/dist/esm-es5/usePortalLogin-d0720c81.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-afc0171e.js +0 -1
- package/dist/esm-es5/useReferralCodes-311e6d72.js +0 -1
- package/dist/esm-es5/useReferralTable-65a01a6a.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-18c2cea7.js +0 -1
- package/dist/esm-es5/useVerificationEmail-f9413de9.js +0 -1
- package/dist/esm-es5/utilities-ad9c2893.js +0 -1
- package/dist/esm-es5/utils-03188de2.js +0 -1
- package/dist/esm-es5/utils-e1cdc479.js +0 -1
- package/dist/mint-components/p-000c91b1.js +0 -1
- package/dist/mint-components/p-0935f9b7.system.js +0 -1
- package/dist/mint-components/p-0bb21f5b.system.entry.js +0 -1
- package/dist/mint-components/p-0e532b53.entry.js +0 -1
- package/dist/mint-components/p-0ea61502.system.js +0 -1
- package/dist/mint-components/p-100c878b.system.entry.js +0 -1
- package/dist/mint-components/p-11500698.entry.js +0 -25
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-1337f47c.entry.js +0 -1
- package/dist/mint-components/p-1363c4ab.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-14128c84.system.entry.js +0 -1
- package/dist/mint-components/p-14959d73.system.entry.js +0 -1
- package/dist/mint-components/p-15bfd7e2.system.js +0 -1
- package/dist/mint-components/p-1a278658.entry.js +0 -1
- package/dist/mint-components/p-1c727332.entry.js +0 -1
- package/dist/mint-components/p-1cd0e1e9.system.js +0 -1
- package/dist/mint-components/p-1ee5070b.system.entry.js +0 -1
- package/dist/mint-components/p-204861a6.js +0 -1
- package/dist/mint-components/p-209ea185.js +0 -1
- package/dist/mint-components/p-21e3cac4.js +0 -1
- package/dist/mint-components/p-2403c6e1.system.js +0 -1
- package/dist/mint-components/p-240bec23.js +0 -1
- package/dist/mint-components/p-274ea2c4.entry.js +0 -9
- package/dist/mint-components/p-2f2bff39.entry.js +0 -1
- package/dist/mint-components/p-3836d1e2.entry.js +0 -1
- package/dist/mint-components/p-38a03a10.system.js +0 -1
- package/dist/mint-components/p-3cb249c3.js +0 -1
- package/dist/mint-components/p-3d1b91a1.system.entry.js +0 -1
- package/dist/mint-components/p-3d99fa43.entry.js +0 -1
- package/dist/mint-components/p-3ea3f5e3.system.entry.js +0 -1
- package/dist/mint-components/p-40c01a5a.system.js +0 -1
- package/dist/mint-components/p-42da8239.system.js +0 -1
- package/dist/mint-components/p-49b20dae.js +0 -1
- package/dist/mint-components/p-4f5329a2.system.js +0 -53
- package/dist/mint-components/p-51b8979d.js +0 -448
- package/dist/mint-components/p-57970440.js +0 -1233
- package/dist/mint-components/p-587115cb.system.entry.js +0 -1
- package/dist/mint-components/p-59b028db.system.js +0 -1
- package/dist/mint-components/p-5aca73f7.entry.js +0 -13
- package/dist/mint-components/p-5ff2da11.js +0 -1
- package/dist/mint-components/p-63e29387.js +0 -42
- package/dist/mint-components/p-66c14cb2.system.entry.js +0 -1
- package/dist/mint-components/p-672d144e.entry.js +0 -1
- package/dist/mint-components/p-67ad2252.system.js +0 -1
- package/dist/mint-components/p-6906ef5d.system.entry.js +0 -1
- package/dist/mint-components/p-692bacf3.js +0 -1
- package/dist/mint-components/p-6ad674c2.js +0 -103
- package/dist/mint-components/p-6b076bae.system.entry.js +0 -1
- package/dist/mint-components/p-6d290019.js +0 -1
- package/dist/mint-components/p-6e069052.entry.js +0 -1
- package/dist/mint-components/p-71271fbd.system.js +0 -1
- package/dist/mint-components/p-75584f9e.entry.js +0 -11
- package/dist/mint-components/p-77d2244b.system.js +0 -1
- package/dist/mint-components/p-7970e73a.js +0 -1
- package/dist/mint-components/p-797fd8d9.system.js +0 -1
- package/dist/mint-components/p-7b8d29bb.entry.js +0 -1
- package/dist/mint-components/p-7c17e06f.system.entry.js +0 -1
- package/dist/mint-components/p-7e13424d.system.js +0 -1
- package/dist/mint-components/p-88b63a7c.entry.js +0 -93
- package/dist/mint-components/p-8a6494c7.system.js +0 -1
- package/dist/mint-components/p-8caef004.js +0 -1
- package/dist/mint-components/p-8e2bead4.js +0 -1
- package/dist/mint-components/p-901cb538.system.entry.js +0 -1
- package/dist/mint-components/p-9049b387.entry.js +0 -1
- package/dist/mint-components/p-916100a9.js +0 -1
- package/dist/mint-components/p-926f17f9.system.js +0 -1
- package/dist/mint-components/p-9374b5bb.system.entry.js +0 -1
- package/dist/mint-components/p-9e297104.entry.js +0 -1
- package/dist/mint-components/p-9f3e7e48.entry.js +0 -13
- package/dist/mint-components/p-9f82e69d.entry.js +0 -1
- package/dist/mint-components/p-a5c9ce6c.entry.js +0 -1
- package/dist/mint-components/p-abd33116.system.entry.js +0 -1
- package/dist/mint-components/p-b065215a.entry.js +0 -1
- package/dist/mint-components/p-b1a2a83b.entry.js +0 -144
- package/dist/mint-components/p-ba4a5fed.entry.js +0 -258
- package/dist/mint-components/p-bab57520.system.entry.js +0 -1
- package/dist/mint-components/p-bad50dc1.entry.js +0 -1
- package/dist/mint-components/p-be88596c.system.js +0 -1
- package/dist/mint-components/p-c0d48b64.system.entry.js +0 -1
- package/dist/mint-components/p-c4886223.entry.js +0 -1
- package/dist/mint-components/p-c726f778.system.entry.js +0 -1
- package/dist/mint-components/p-c7965639.entry.js +0 -1
- package/dist/mint-components/p-c79bb1c6.entry.js +0 -16
- package/dist/mint-components/p-c7c11325.js +0 -1
- package/dist/mint-components/p-cab1f502.js +0 -1
- package/dist/mint-components/p-d785a297.system.entry.js +0 -1
- package/dist/mint-components/p-d821418e.system.js +0 -1
- package/dist/mint-components/p-d8c5b80a.system.js +0 -1
- package/dist/mint-components/p-da3ffd4e.system.entry.js +0 -1
- package/dist/mint-components/p-e539fed3.entry.js +0 -1
- package/dist/mint-components/p-e57d61af.system.js +0 -1
- package/dist/mint-components/p-eaeddfe2.system.js +0 -1
- package/dist/mint-components/p-ecc5faba.entry.js +0 -33
- package/dist/mint-components/p-f0e0d0b9.system.entry.js +0 -1
- package/dist/mint-components/p-f0ebccea.system.entry.js +0 -1
- package/dist/mint-components/p-f1dc581f.js +0 -1
- package/dist/mint-components/p-f6baa0c9.system.js +0 -1
- package/dist/mint-components/p-f9c7248e.js +0 -1
- package/dist/mint-components/p-fb77f662.entry.js +0 -1
- package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +0 -9
- package/dist/types/components/sqm-text/Text.stories.d.ts +0 -6
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/insertfont.d.ts +0 -1
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
- package/dist/types/utils/parseStates.d.ts +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
- /package/dist/collection/components/tax-and-cash/{data.js → sqm-tax-and-cash/data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{data.d.ts → sqm-tax-and-cash/data.d.ts} +0 -0
package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js}
RENAMED
|
@@ -2,25 +2,145 @@
|
|
|
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-a29c60ef.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
7
|
+
const global = require('./global-e31dc4f5.js');
|
|
8
|
+
const index_module = require('./index.module-ee84433d.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-6847bc06.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
require('./mixins-
|
|
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
|
|
13
|
+
const mixins = require('./mixins-f7e0377a.js');
|
|
14
|
+
const GenericTableView = require('./GenericTableView-a9f4ba75.js');
|
|
15
|
+
const reRender = require('./re-render-b324deab.js');
|
|
16
|
+
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
17
|
+
const luxon = require('./luxon-2926d85f.js');
|
|
18
|
+
const useReferralTable = require('./useReferralTable-7c3f9600.js');
|
|
19
|
+
const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
|
|
20
|
+
const ErrorView = require('./ErrorView-b2fcf954.js');
|
|
21
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-5c74607f.js');
|
|
22
|
+
const extractProps = require('./extractProps-fd93ba62.js');
|
|
22
23
|
const keys = require('./keys-cff24974.js');
|
|
23
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
24
|
+
const usePayoutStatus = require('./usePayoutStatus-c84a7d98.js');
|
|
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;
|
|
24
144
|
|
|
25
145
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
26
146
|
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;
|
|
@@ -564,20 +684,45 @@ const style = {
|
|
|
564
684
|
gap: "8px",
|
|
565
685
|
},
|
|
566
686
|
ErrorText: {
|
|
567
|
-
color: "var(--
|
|
687
|
+
color: "var(--sl-color-danger-500)",
|
|
568
688
|
marginTop: "10px",
|
|
569
689
|
},
|
|
570
690
|
PageDescriptionText: {
|
|
571
|
-
color: "var(--
|
|
691
|
+
color: "var(--sl-color-neutral-500)",
|
|
572
692
|
fontSize: "var(--sl-font-size-medium)",
|
|
573
693
|
},
|
|
574
694
|
DescriptionText: {
|
|
575
|
-
color: "var(--
|
|
695
|
+
color: "var(--sl-color-neutral-500)",
|
|
696
|
+
},
|
|
697
|
+
SecondaryBtn: {
|
|
698
|
+
"&::part(base)": {
|
|
699
|
+
color: "var(--sl-color-gray-800) !important",
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
AlertContainer: {
|
|
703
|
+
"&::part(base)": {
|
|
704
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
705
|
+
borderTop: "none",
|
|
706
|
+
padding: "0 16px",
|
|
707
|
+
},
|
|
708
|
+
"& sl-icon::part(base)": {
|
|
709
|
+
color: "var(--sl-color-danger-500)",
|
|
710
|
+
},
|
|
576
711
|
},
|
|
577
712
|
RadioContainer: {
|
|
578
713
|
display: "flex",
|
|
579
714
|
flexDirection: "column",
|
|
580
715
|
},
|
|
716
|
+
PartnerAlertContainer: {
|
|
717
|
+
"&::part(base)": {
|
|
718
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
719
|
+
borderTop: "none",
|
|
720
|
+
padding: "0 16px",
|
|
721
|
+
},
|
|
722
|
+
"& sl-icon::part(base)": {
|
|
723
|
+
color: "var(--sl-color-blue-500)",
|
|
724
|
+
},
|
|
725
|
+
},
|
|
581
726
|
Checkbox: {
|
|
582
727
|
"&::part(control)": {
|
|
583
728
|
borderRadius: "50% !important",
|
|
@@ -589,8 +734,8 @@ const style = {
|
|
|
589
734
|
InputContainer: {
|
|
590
735
|
padding: "16px",
|
|
591
736
|
margin: "16px 0px 16px 0px",
|
|
592
|
-
borderTop: "
|
|
593
|
-
borderBottom: "
|
|
737
|
+
borderTop: "1px solid var(--sl-color-gray-300)",
|
|
738
|
+
borderBottom: "1px solid var(--sl-color-gray-300)",
|
|
594
739
|
display: "flex",
|
|
595
740
|
flexDirection: "column",
|
|
596
741
|
width: "100%",
|
|
@@ -612,20 +757,37 @@ const style = {
|
|
|
612
757
|
width: "16px",
|
|
613
758
|
height: "16px",
|
|
614
759
|
borderRadius: "50%",
|
|
615
|
-
background: "var(--
|
|
760
|
+
background: "var(--sl-color-gray-200)",
|
|
616
761
|
},
|
|
617
762
|
SmallSkeleton: {
|
|
618
763
|
width: "100px",
|
|
619
764
|
height: "16px",
|
|
620
765
|
borderRadius: "50px",
|
|
621
|
-
background: "var(--
|
|
766
|
+
background: "var(--sl-color-gray-200)",
|
|
622
767
|
},
|
|
623
768
|
LargeSkeleton: {
|
|
624
769
|
width: "100%",
|
|
625
770
|
maxWidth: "320px",
|
|
626
771
|
height: "40px",
|
|
627
772
|
borderRadius: "50px",
|
|
628
|
-
background: "var(--
|
|
773
|
+
background: "var(--sl-color-gray-200)",
|
|
774
|
+
},
|
|
775
|
+
InfoAlert: {
|
|
776
|
+
"&::part(base)": {
|
|
777
|
+
backgroundColor: "transparent",
|
|
778
|
+
borderTop: "none",
|
|
779
|
+
border: "none",
|
|
780
|
+
},
|
|
781
|
+
"&::part(message)": {
|
|
782
|
+
display: "flex",
|
|
783
|
+
alignItems: "center",
|
|
784
|
+
justifyContent: "flex-start",
|
|
785
|
+
padding: "10px",
|
|
786
|
+
height: "max-content",
|
|
787
|
+
},
|
|
788
|
+
"& sl-icon::part(base)": {
|
|
789
|
+
color: "var(--sl-color-yellow-500)",
|
|
790
|
+
},
|
|
629
791
|
},
|
|
630
792
|
InfoWarningIcon: {
|
|
631
793
|
height: "26px",
|
|
@@ -671,16 +833,20 @@ const vanillaStyle = `
|
|
|
671
833
|
font-weight: 600
|
|
672
834
|
}
|
|
673
835
|
|
|
836
|
+
p {
|
|
837
|
+
line-height: 18px;
|
|
838
|
+
color: var(--sl-color-gray-800);
|
|
839
|
+
font-size: var(--sl-font-size-small);
|
|
840
|
+
}
|
|
841
|
+
|
|
674
842
|
/* this class is dynamically applied in controller */
|
|
675
843
|
.error-input::part(base) {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
--sl-input-border-color-hover: var(--sqm-danger-color-border);
|
|
679
|
-
--sl-input-border-color-focus: var(--sqm-danger-color-background);
|
|
844
|
+
border: 1px solid var(--sl-color-danger-500);
|
|
845
|
+
border-radius: var(--sl-input-border-radius-medium);
|
|
680
846
|
}
|
|
681
847
|
|
|
682
848
|
.error-input::part(help-text) {
|
|
683
|
-
color: var(--
|
|
849
|
+
color: var(--sl-color-danger-500) !important;
|
|
684
850
|
}
|
|
685
851
|
|
|
686
852
|
`;
|
|
@@ -729,19 +895,23 @@ const BankingInfoFormView = (props) => {
|
|
|
729
895
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
730
896
|
id: "formStep",
|
|
731
897
|
defaultMessage: text.formStep,
|
|
732
|
-
}, { step: states.step, count:
|
|
898
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
733
899
|
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
734
900
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
735
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
736
|
-
index.h("
|
|
901
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
902
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
903
|
+
index.h("strong", null, text.error.generalTitle),
|
|
904
|
+
index.h("br", null),
|
|
737
905
|
global.intl.formatMessage({
|
|
738
906
|
id: "generalDescription",
|
|
739
907
|
defaultMessage: text.error.generalDescription,
|
|
740
908
|
}, {
|
|
741
909
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
742
910
|
}))),
|
|
743
|
-
states.isPartner && !states.hideSteps && (index.h("
|
|
744
|
-
index.h("
|
|
911
|
+
states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
912
|
+
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
913
|
+
index.h("strong", null, text.isPartnerAlertHeader),
|
|
914
|
+
index.h("br", null),
|
|
745
915
|
global.intl.formatMessage({
|
|
746
916
|
id: "isPartnerAlertDescription",
|
|
747
917
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -782,7 +952,7 @@ const BankingInfoFormView = (props) => {
|
|
|
782
952
|
index.h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
|
|
783
953
|
? { onClick: callbacks.onModalOpen }
|
|
784
954
|
: { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
|
|
785
|
-
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "
|
|
955
|
+
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
786
956
|
};
|
|
787
957
|
|
|
788
958
|
// Hardcoded in Impact backend
|
|
@@ -866,25 +1036,25 @@ function useBankingInfoForm(props) {
|
|
|
866
1036
|
const host = index_module._();
|
|
867
1037
|
const locale = index_module.L();
|
|
868
1038
|
const user = index_module.J();
|
|
869
|
-
const [step, setStep] = index_module.Pn(
|
|
870
|
-
const context = index_module.Fn(
|
|
871
|
-
const countries = index_module.Fn(
|
|
872
|
-
const formRef =
|
|
873
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(
|
|
874
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(
|
|
1039
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
1040
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1041
|
+
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
1042
|
+
const formRef = stencilHooks_module.useRef(null);
|
|
1043
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
1044
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
875
1045
|
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
876
1046
|
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
877
|
-
const [showVerification, setShowVerification] =
|
|
878
|
-
const [currentFormData, setCurrentFormData] =
|
|
879
|
-
const [formState, setFormState] =
|
|
880
|
-
const [currentPaymentOption, setCurrentPaymentOption] =
|
|
881
|
-
const [loading, setLoading] =
|
|
882
|
-
const [errors, setErrors] =
|
|
883
|
-
const [_paymentMethodChecked, _setPaymentMethodChecked] =
|
|
884
|
-
const [paymentScheduleChecked, setPaymentScheduleChecked] =
|
|
885
|
-
const [countrySearch, setCountrySearch] =
|
|
886
|
-
const [filteredCountries, setFilteredCountries] =
|
|
887
|
-
const [showModal, setShowModal] =
|
|
1047
|
+
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
1048
|
+
const [currentFormData, setCurrentFormData] = stencilHooks_module.useState(null);
|
|
1049
|
+
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
1050
|
+
const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
|
|
1051
|
+
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
1052
|
+
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
1053
|
+
const [_paymentMethodChecked, _setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1054
|
+
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1055
|
+
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
1056
|
+
const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
|
|
1057
|
+
const [showModal, setShowModal] = stencilHooks_module.useState(false);
|
|
888
1058
|
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) || "";
|
|
889
1059
|
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);
|
|
890
1060
|
const feeCap = paypalFeeMap[currency] || "";
|
|
@@ -904,7 +1074,7 @@ function useBankingInfoForm(props) {
|
|
|
904
1074
|
const paymentMethodChecked = !hasPayPal
|
|
905
1075
|
? "toBankAccount"
|
|
906
1076
|
: _paymentMethodChecked;
|
|
907
|
-
|
|
1077
|
+
stencilHooks_module.useEffect(() => {
|
|
908
1078
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
909
1079
|
if (!userData)
|
|
910
1080
|
return;
|
|
@@ -948,7 +1118,7 @@ function useBankingInfoForm(props) {
|
|
|
948
1118
|
setPaymentScheduleChecked(initialData.paymentSchedulingType);
|
|
949
1119
|
setFormState(initialData);
|
|
950
1120
|
}, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
|
|
951
|
-
|
|
1121
|
+
stencilHooks_module.useEffect(() => {
|
|
952
1122
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
953
1123
|
return;
|
|
954
1124
|
if (countrySearch.trim() === "") {
|
|
@@ -1423,7 +1593,7 @@ const BankingInfoForm = class {
|
|
|
1423
1593
|
* @uiName Information modal button text
|
|
1424
1594
|
*/
|
|
1425
1595
|
this.modalButtonText = "I understand, update my information";
|
|
1426
|
-
|
|
1596
|
+
stencilHooks_module.h$1(this);
|
|
1427
1597
|
}
|
|
1428
1598
|
disconnectedCallback() { }
|
|
1429
1599
|
getTextProps() {
|
|
@@ -1563,11 +1733,11 @@ function useDemoBankingInfoForm(props) {
|
|
|
1563
1733
|
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;
|
|
1564
1734
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1565
1735
|
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;
|
|
1566
|
-
const setStep = index_module.En(
|
|
1567
|
-
const [paymentMethodChecked, setPaymentMethodChecked] =
|
|
1568
|
-
const [paymentScheduleChecked, setPaymentScheduleChecked] =
|
|
1569
|
-
const [currency, setCurrency] =
|
|
1570
|
-
const [bankCountry, setBankCountry] =
|
|
1736
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1737
|
+
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1738
|
+
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1739
|
+
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
1740
|
+
const [bankCountry, setBankCountry] = stencilHooks_module.useState(defaultCountry);
|
|
1571
1741
|
const currentPaymentOption = (_m = mockPaymentOptions[currency]) === null || _m === void 0 ? void 0 : _m.find((paymentOption) => {
|
|
1572
1742
|
if (paymentOption.countryCode === bankCountry)
|
|
1573
1743
|
return true;
|
|
@@ -1575,7 +1745,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1575
1745
|
});
|
|
1576
1746
|
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) ||
|
|
1577
1747
|
0;
|
|
1578
|
-
|
|
1748
|
+
stencilHooks_module.useEffect(() => {
|
|
1579
1749
|
if (defaultPaymentMethodChecked !== paymentMethodChecked)
|
|
1580
1750
|
setPaymentMethodChecked(defaultPaymentMethodChecked);
|
|
1581
1751
|
if (defaultPaymentScheduleChecked !== paymentScheduleChecked)
|
|
@@ -1659,6 +1829,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1659
1829
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1660
1830
|
}
|
|
1661
1831
|
|
|
1832
|
+
const style$1 = {
|
|
1833
|
+
Wrapper: {
|
|
1834
|
+
display: "flex",
|
|
1835
|
+
flexDirection: "column",
|
|
1836
|
+
gap: "var(--sl-spacing-medium)",
|
|
1837
|
+
maxWidth: "550px",
|
|
1838
|
+
},
|
|
1839
|
+
HeaderContainer: {
|
|
1840
|
+
display: "flex",
|
|
1841
|
+
flexDirection: "column",
|
|
1842
|
+
},
|
|
1843
|
+
InputsContainer: {
|
|
1844
|
+
display: "flex",
|
|
1845
|
+
gap: "var(--sl-spacing-medium)",
|
|
1846
|
+
position: "relative",
|
|
1847
|
+
flexDirection: "column",
|
|
1848
|
+
},
|
|
1849
|
+
CodeInputContainer: {
|
|
1850
|
+
display: "flex",
|
|
1851
|
+
gap: "var(--sl-spacing-medium)",
|
|
1852
|
+
},
|
|
1853
|
+
CodeInput: {
|
|
1854
|
+
maxWidth: "40px",
|
|
1855
|
+
"&::part(input)": {
|
|
1856
|
+
margin: "0",
|
|
1857
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1858
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1859
|
+
},
|
|
1860
|
+
},
|
|
1861
|
+
CodeInputError: {
|
|
1862
|
+
...mixins.ErrorStyles,
|
|
1863
|
+
maxWidth: "40px",
|
|
1864
|
+
"&::part(input)": {
|
|
1865
|
+
margin: "0",
|
|
1866
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1867
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1868
|
+
},
|
|
1869
|
+
},
|
|
1870
|
+
ErrorText: {
|
|
1871
|
+
color: "var(--sl-color-danger-500)",
|
|
1872
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1873
|
+
margin: "0",
|
|
1874
|
+
},
|
|
1875
|
+
ContinueButton: {
|
|
1876
|
+
width: "100%",
|
|
1877
|
+
maxWidth: "100px",
|
|
1878
|
+
},
|
|
1879
|
+
FooterContainer: {
|
|
1880
|
+
display: "flex",
|
|
1881
|
+
flexDirection: "column",
|
|
1882
|
+
},
|
|
1883
|
+
SkeletonOne: {
|
|
1884
|
+
width: "50%",
|
|
1885
|
+
height: "16px",
|
|
1886
|
+
},
|
|
1887
|
+
SkeletonTwo: {
|
|
1888
|
+
width: "30%",
|
|
1889
|
+
height: "34px",
|
|
1890
|
+
},
|
|
1891
|
+
SkeletonThree: {
|
|
1892
|
+
width: "15%",
|
|
1893
|
+
height: "24px",
|
|
1894
|
+
},
|
|
1895
|
+
};
|
|
1896
|
+
const vanillaStyle$1 = `
|
|
1897
|
+
:host {
|
|
1898
|
+
display: block;
|
|
1899
|
+
}
|
|
1900
|
+
:host([hidden]): {
|
|
1901
|
+
display: none;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
`;
|
|
1906
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1907
|
+
const styleString$1 = sheet$1.toString();
|
|
1908
|
+
function WidgetCodeVerificationView(props) {
|
|
1909
|
+
const { states, refs, callbacks, text } = props;
|
|
1910
|
+
const resendCodeText = global.intl.formatMessage({
|
|
1911
|
+
id: "resendCodeText",
|
|
1912
|
+
defaultMessage: text.resendCodeText,
|
|
1913
|
+
}, {
|
|
1914
|
+
resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1915
|
+
e.preventDefault();
|
|
1916
|
+
callbacks.resendEmail();
|
|
1917
|
+
} }, text.resendCodeLabel)),
|
|
1918
|
+
});
|
|
1919
|
+
const codeResentSuccessfully = global.intl.formatMessage({
|
|
1920
|
+
id: "codeResentSuccessfully",
|
|
1921
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1922
|
+
}, {
|
|
1923
|
+
email: states.email,
|
|
1924
|
+
});
|
|
1925
|
+
const inputClass = states.verifyFailed
|
|
1926
|
+
? sheet$1.classes.CodeInputError
|
|
1927
|
+
: sheet$1.classes.CodeInput;
|
|
1928
|
+
return (index.h("div", { part: "sqm-base" },
|
|
1929
|
+
index.h("style", { type: "text/css" },
|
|
1930
|
+
vanillaStyle$1,
|
|
1931
|
+
styleString$1),
|
|
1932
|
+
index.h("div", { class: sheet$1.classes.Wrapper },
|
|
1933
|
+
index.h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1934
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
|
|
1935
|
+
id: `emailHeaderText`,
|
|
1936
|
+
defaultMessage: states.verifyFailed
|
|
1937
|
+
? text.reverifyCodeHeaderText
|
|
1938
|
+
: text.verifyCodeHeaderText,
|
|
1939
|
+
}, { email: states.email }))),
|
|
1940
|
+
states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1941
|
+
index.h("b", null, codeResentSuccessfully))),
|
|
1942
|
+
index.h("div", { class: sheet$1.classes.InputsContainer },
|
|
1943
|
+
index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1944
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1945
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1946
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1947
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1948
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1949
|
+
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
1950
|
+
states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1951
|
+
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)),
|
|
1952
|
+
index.h("div", { class: sheet$1.classes.FooterContainer },
|
|
1953
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|
|
1957
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1958
|
+
$user: UserIdInput!
|
|
1959
|
+
$code: String!
|
|
1960
|
+
) {
|
|
1961
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1962
|
+
verifiedEmail
|
|
1963
|
+
accessKey
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
`;
|
|
1967
|
+
function useWidgetCodeVerification(props) {
|
|
1968
|
+
const host = stencilHooks_module.l();
|
|
1969
|
+
const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
|
|
1970
|
+
const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
|
|
1971
|
+
const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
|
|
1972
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
1973
|
+
const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
|
|
1974
|
+
const [validationError, setValidationError] = stencilHooks_module.useState(false);
|
|
1975
|
+
const [emailError, setEmailError] = stencilHooks_module.useState(false);
|
|
1976
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
1977
|
+
stencilHooks_module.useEffect(() => {
|
|
1978
|
+
if (!codeRef)
|
|
1979
|
+
return;
|
|
1980
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1981
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1982
|
+
codeElements.forEach((element, idx) => {
|
|
1983
|
+
element.addEventListener("focus", (e) => {
|
|
1984
|
+
e.target.select();
|
|
1985
|
+
});
|
|
1986
|
+
element.addEventListener("keydown", (e) => {
|
|
1987
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1988
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1989
|
+
}
|
|
1990
|
+
});
|
|
1991
|
+
element.addEventListener("input", (e) => {
|
|
1992
|
+
const input = e.data;
|
|
1993
|
+
if (!input)
|
|
1994
|
+
return;
|
|
1995
|
+
if (idx === codeElements.length - 1) {
|
|
1996
|
+
e.target.value = input.slice(0, 1);
|
|
1997
|
+
return;
|
|
1998
|
+
}
|
|
1999
|
+
if (input.length > 1) {
|
|
2000
|
+
const rest = input.slice(1);
|
|
2001
|
+
e.target.value = input.slice(0, 1);
|
|
2002
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
2003
|
+
inputType: "insertFromPaste",
|
|
2004
|
+
data: rest,
|
|
2005
|
+
}));
|
|
2006
|
+
}
|
|
2007
|
+
codeElements[idx + 1].focus();
|
|
2008
|
+
});
|
|
2009
|
+
});
|
|
2010
|
+
}, [codeRef]);
|
|
2011
|
+
const reset = () => {
|
|
2012
|
+
setShowCode(false);
|
|
2013
|
+
setValidationError(false);
|
|
2014
|
+
};
|
|
2015
|
+
const resendEmail = async () => {
|
|
2016
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
2017
|
+
if (!initialized)
|
|
2018
|
+
return;
|
|
2019
|
+
const result = await sendEmail();
|
|
2020
|
+
if (!result) {
|
|
2021
|
+
setEmailError(true);
|
|
2022
|
+
return;
|
|
2023
|
+
}
|
|
2024
|
+
if (emailSent)
|
|
2025
|
+
setEmailResent(true);
|
|
2026
|
+
setEmailSent(true);
|
|
2027
|
+
};
|
|
2028
|
+
const submitCode = async () => {
|
|
2029
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
2030
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
2031
|
+
if (codeElements.find((el) => !el.value)) {
|
|
2032
|
+
setValidationError(true);
|
|
2033
|
+
return;
|
|
2034
|
+
}
|
|
2035
|
+
let code = "";
|
|
2036
|
+
codeElements.forEach((element) => {
|
|
2037
|
+
code = `${code}${element.value}`;
|
|
2038
|
+
});
|
|
2039
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
2040
|
+
if (!initialized)
|
|
2041
|
+
return;
|
|
2042
|
+
setValidationError(false);
|
|
2043
|
+
const res = await verifyEmail(code);
|
|
2044
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
2045
|
+
props.onVerification(res.accessKey);
|
|
2046
|
+
reset();
|
|
2047
|
+
}
|
|
2048
|
+
else {
|
|
2049
|
+
setValidationError(true);
|
|
2050
|
+
}
|
|
2051
|
+
};
|
|
2052
|
+
stencilHooks_module.useEffect(() => {
|
|
2053
|
+
// Wait for mutations to be determined from user lookup
|
|
2054
|
+
if (!initialized)
|
|
2055
|
+
return;
|
|
2056
|
+
// email should already exist if user has completed email-verification
|
|
2057
|
+
if (!email)
|
|
2058
|
+
resendEmail();
|
|
2059
|
+
else
|
|
2060
|
+
setEmailSent(true);
|
|
2061
|
+
}, [initialized]);
|
|
2062
|
+
return {
|
|
2063
|
+
refs: {
|
|
2064
|
+
codeWrapperRef: setCodeRef,
|
|
2065
|
+
},
|
|
2066
|
+
states: {
|
|
2067
|
+
email: verificationEmail,
|
|
2068
|
+
emailResent,
|
|
2069
|
+
resendError: sendErrors || verifyErrors,
|
|
2070
|
+
initialiseLoading: !initialized,
|
|
2071
|
+
loading: sendLoading || verifyLoading,
|
|
2072
|
+
verifyFailed: !!validationError,
|
|
2073
|
+
},
|
|
2074
|
+
callbacks: {
|
|
2075
|
+
resendEmail,
|
|
2076
|
+
submitCode,
|
|
2077
|
+
},
|
|
2078
|
+
text: props.getTextProps(),
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
const WidgetCodeVerification = class {
|
|
2083
|
+
constructor(hostRef) {
|
|
2084
|
+
index.registerInstance(this, hostRef);
|
|
2085
|
+
/**
|
|
2086
|
+
* @uiName Verify code widget header text
|
|
2087
|
+
*/
|
|
2088
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2089
|
+
/**
|
|
2090
|
+
* @uiName Reverify code widget header text
|
|
2091
|
+
*/
|
|
2092
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2093
|
+
/**
|
|
2094
|
+
* Text displayed under verify button
|
|
2095
|
+
* @uiName Resend code text
|
|
2096
|
+
*/
|
|
2097
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2098
|
+
/**
|
|
2099
|
+
* The link that appears in the resend code link
|
|
2100
|
+
* @uiName Resend code label
|
|
2101
|
+
*/
|
|
2102
|
+
this.resendCodeLabel = "Resend code";
|
|
2103
|
+
/**
|
|
2104
|
+
* Link text displayed under verify button
|
|
2105
|
+
* @uiName Resend code text
|
|
2106
|
+
*/
|
|
2107
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2108
|
+
/**
|
|
2109
|
+
* Error text displayed under verification input
|
|
2110
|
+
* @uiName Invalid code text
|
|
2111
|
+
*/
|
|
2112
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2113
|
+
/**
|
|
2114
|
+
* @uiName Verify code button text
|
|
2115
|
+
*/
|
|
2116
|
+
this.verifyText = "Verify";
|
|
2117
|
+
/**
|
|
2118
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2119
|
+
* @uiName Network error message
|
|
2120
|
+
*/
|
|
2121
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2122
|
+
stencilHooks_module.h$1(this);
|
|
2123
|
+
}
|
|
2124
|
+
disconnectedCallback() { }
|
|
2125
|
+
getTextProps() {
|
|
2126
|
+
return utils.getProps(this);
|
|
2127
|
+
}
|
|
2128
|
+
render() {
|
|
2129
|
+
const props = index_module.isDemo()
|
|
2130
|
+
? useDemoWidgetCodeVerification(this)
|
|
2131
|
+
: useWidgetCodeVerification(this);
|
|
2132
|
+
return index.h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2133
|
+
}
|
|
2134
|
+
};
|
|
2135
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2136
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
2137
|
+
const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
2138
|
+
return cjs.cjs({
|
|
2139
|
+
states: {
|
|
2140
|
+
loading: false,
|
|
2141
|
+
email: "test@example.com",
|
|
2142
|
+
emailResent,
|
|
2143
|
+
resendError: false,
|
|
2144
|
+
verifyFailed: false,
|
|
2145
|
+
},
|
|
2146
|
+
refs: {
|
|
2147
|
+
codeWrapperRef: () => { },
|
|
2148
|
+
},
|
|
2149
|
+
callbacks: {
|
|
2150
|
+
resendEmail: async () => setEmailResent(true),
|
|
2151
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2152
|
+
},
|
|
2153
|
+
text: props.getTextProps(),
|
|
2154
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2155
|
+
}
|
|
2156
|
+
|
|
1662
2157
|
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
1663
2158
|
mutation createImpactPublisherTaxDocument(
|
|
1664
2159
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1687,24 +2182,24 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
|
1687
2182
|
function useDocusignForm(props) {
|
|
1688
2183
|
var _a, _b, _c;
|
|
1689
2184
|
const user = index_module.J();
|
|
1690
|
-
const context = index_module.Fn(
|
|
1691
|
-
const [step, setStep] = index_module.Pn(
|
|
1692
|
-
const { data
|
|
1693
|
-
const publisher = (_b = (_a = data
|
|
2185
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2186
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2187
|
+
const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2188
|
+
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;
|
|
1694
2189
|
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
1695
2190
|
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
1696
|
-
const [docusignStatus, setDocusignStatus] =
|
|
1697
|
-
const [participantType, setParticipantType] =
|
|
1698
|
-
const [errors, setErrors] =
|
|
1699
|
-
const [loading, setLoading] =
|
|
1700
|
-
const [showExitButton, setShowExitButton] =
|
|
1701
|
-
const [showModal, setShowModal] =
|
|
2191
|
+
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
2192
|
+
const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
|
|
2193
|
+
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
2194
|
+
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
2195
|
+
const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
|
|
2196
|
+
const [showModal, setShowModal] = stencilHooks_module.useState(true);
|
|
1702
2197
|
// Only look at current document if it's valid (same as required type)
|
|
1703
|
-
const existingDocumentType =
|
|
2198
|
+
const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
1704
2199
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
1705
2200
|
const actualDocumentType = existingDocumentType ||
|
|
1706
2201
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
1707
|
-
|
|
2202
|
+
stencilHooks_module.useEffect(() => {
|
|
1708
2203
|
if (!existingDocumentType)
|
|
1709
2204
|
return;
|
|
1710
2205
|
if (existingDocumentType === "W8BEN") {
|
|
@@ -1714,7 +2209,7 @@ function useDocusignForm(props) {
|
|
|
1714
2209
|
setParticipantType("businessEntity");
|
|
1715
2210
|
}
|
|
1716
2211
|
}, [existingDocumentType]);
|
|
1717
|
-
|
|
2212
|
+
stencilHooks_module.useEffect(() => {
|
|
1718
2213
|
// Skip if no publisher info
|
|
1719
2214
|
if (!user || !publisher)
|
|
1720
2215
|
return;
|
|
@@ -1792,7 +2287,7 @@ function useDocusignForm(props) {
|
|
|
1792
2287
|
},
|
|
1793
2288
|
docusignStatus,
|
|
1794
2289
|
documentType: actualDocumentType,
|
|
1795
|
-
documentTypeString:
|
|
2290
|
+
documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
|
|
1796
2291
|
showExitButton,
|
|
1797
2292
|
showModal,
|
|
1798
2293
|
},
|
|
@@ -1820,7 +2315,7 @@ function getDocumentType(p) {
|
|
|
1820
2315
|
return undefined;
|
|
1821
2316
|
}
|
|
1822
2317
|
|
|
1823
|
-
const style$
|
|
2318
|
+
const style$2 = {
|
|
1824
2319
|
DocusignStatusContainer: {
|
|
1825
2320
|
width: "100%",
|
|
1826
2321
|
minHeight: "600px",
|
|
@@ -1832,7 +2327,7 @@ const style$1 = {
|
|
|
1832
2327
|
gap: "10px",
|
|
1833
2328
|
margin: "auto",
|
|
1834
2329
|
textAlign: "center",
|
|
1835
|
-
border: "
|
|
2330
|
+
border: "1px solid var(--sl-color-gray-200)",
|
|
1836
2331
|
justifyContent: "center",
|
|
1837
2332
|
},
|
|
1838
2333
|
MessageContainer: {
|
|
@@ -1847,48 +2342,48 @@ const style$1 = {
|
|
|
1847
2342
|
},
|
|
1848
2343
|
},
|
|
1849
2344
|
};
|
|
1850
|
-
const sheet$
|
|
1851
|
-
const styleString$
|
|
2345
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
2346
|
+
const styleString$2 = sheet$2.toString();
|
|
1852
2347
|
const DocusignExpiredView = (props) => {
|
|
1853
|
-
const { classes } = sheet$
|
|
2348
|
+
const { classes } = sheet$2;
|
|
1854
2349
|
const { text } = props;
|
|
1855
2350
|
return (index.h("div", null,
|
|
1856
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2351
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1857
2352
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1858
2353
|
index.h("sl-icon", { style: {
|
|
1859
2354
|
width: "50px",
|
|
1860
2355
|
height: "50px",
|
|
1861
|
-
color: "var(--
|
|
2356
|
+
color: "var(--sl-color-neutral-500)",
|
|
1862
2357
|
}, name: "clock" }),
|
|
1863
2358
|
index.h("div", { class: classes.MessageContainer },
|
|
1864
2359
|
index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1865
2360
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1866
2361
|
};
|
|
1867
2362
|
const DocusignErrorView = (props) => {
|
|
1868
|
-
const { classes } = sheet$
|
|
2363
|
+
const { classes } = sheet$2;
|
|
1869
2364
|
const { text } = props;
|
|
1870
2365
|
return (index.h("div", null,
|
|
1871
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2366
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1872
2367
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1873
2368
|
index.h("sl-icon", { style: {
|
|
1874
2369
|
width: "50px",
|
|
1875
2370
|
height: "50px",
|
|
1876
|
-
color: "var(--
|
|
2371
|
+
color: "var(--sl-color-gray-500)",
|
|
1877
2372
|
}, name: "exclamation-octagon" }),
|
|
1878
2373
|
index.h("div", { class: classes.MessageContainer },
|
|
1879
2374
|
index.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1880
2375
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1881
2376
|
};
|
|
1882
2377
|
const DocusignLoadingView = () => {
|
|
1883
|
-
const { classes } = sheet$
|
|
2378
|
+
const { classes } = sheet$2;
|
|
1884
2379
|
return (index.h("div", null,
|
|
1885
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2380
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1886
2381
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1887
2382
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1888
2383
|
};
|
|
1889
2384
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1890
|
-
const { classes } = sheet$
|
|
1891
|
-
const [iFrameHeight, setiFrameHeight] =
|
|
2385
|
+
const { classes } = sheet$2;
|
|
2386
|
+
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
1892
2387
|
const allowedDomains = [
|
|
1893
2388
|
"referralsaasquatch.com",
|
|
1894
2389
|
"impacttech.complysandbox.com",
|
|
@@ -1905,7 +2400,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1905
2400
|
callbacks.completeDocument();
|
|
1906
2401
|
}
|
|
1907
2402
|
}, []);
|
|
1908
|
-
|
|
2403
|
+
stencilHooks_module.useEffect(() => {
|
|
1909
2404
|
window.addEventListener("message", callback, false);
|
|
1910
2405
|
return () => {
|
|
1911
2406
|
window.removeEventListener("message", callback, false);
|
|
@@ -1920,12 +2415,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1920
2415
|
return index.h(DocusignExpiredView, { text: text });
|
|
1921
2416
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1922
2417
|
return (index.h("div", { style: { height: iFrameHeight } },
|
|
1923
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
2418
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1924
2419
|
index.h("div", { class: classes.IFrameContainer },
|
|
1925
2420
|
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1926
2421
|
};
|
|
1927
2422
|
|
|
1928
|
-
const style$
|
|
2423
|
+
const style$3 = {
|
|
1929
2424
|
ModalTitleContainer: {
|
|
1930
2425
|
display: "flex",
|
|
1931
2426
|
gap: "var(--sl-spacing-small)",
|
|
@@ -1962,7 +2457,7 @@ const style$2 = {
|
|
|
1962
2457
|
gap: "8px",
|
|
1963
2458
|
},
|
|
1964
2459
|
ErrorText: {
|
|
1965
|
-
color: "var(--
|
|
2460
|
+
color: "var(--sl-color-danger-500)",
|
|
1966
2461
|
marginTop: "10px",
|
|
1967
2462
|
},
|
|
1968
2463
|
DescriptionText: {
|
|
@@ -1971,6 +2466,44 @@ const style$2 = {
|
|
|
1971
2466
|
BoldText: {
|
|
1972
2467
|
fontWeight: "bold",
|
|
1973
2468
|
},
|
|
2469
|
+
SecondaryBtn: {
|
|
2470
|
+
"&::part(base)": {
|
|
2471
|
+
color: "var(--sl-color-gray-800) !important",
|
|
2472
|
+
},
|
|
2473
|
+
"&::part(label)": {
|
|
2474
|
+
padding: "0px",
|
|
2475
|
+
margin: "0px",
|
|
2476
|
+
},
|
|
2477
|
+
},
|
|
2478
|
+
ErrorAlertContainer: {
|
|
2479
|
+
"&::part(base)": {
|
|
2480
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
2481
|
+
borderTop: "none",
|
|
2482
|
+
padding: "0 16px",
|
|
2483
|
+
},
|
|
2484
|
+
"& sl-icon::part(base)": {
|
|
2485
|
+
color: "var(--sl-color-danger-500)",
|
|
2486
|
+
},
|
|
2487
|
+
},
|
|
2488
|
+
InfoAlert: {
|
|
2489
|
+
"&::part(base)": {
|
|
2490
|
+
backgroundColor: "transparent",
|
|
2491
|
+
borderTop: "none",
|
|
2492
|
+
padding: "0px",
|
|
2493
|
+
marginBottom: "16px",
|
|
2494
|
+
border: "none",
|
|
2495
|
+
},
|
|
2496
|
+
"&::part(message)": {
|
|
2497
|
+
display: "flex",
|
|
2498
|
+
alignItems: "center",
|
|
2499
|
+
justifyContent: "flex-start",
|
|
2500
|
+
padding: "10px",
|
|
2501
|
+
height: "max-content",
|
|
2502
|
+
},
|
|
2503
|
+
"& sl-icon::part(base)": {
|
|
2504
|
+
color: "var(--sl-color-sky-500)",
|
|
2505
|
+
},
|
|
2506
|
+
},
|
|
1974
2507
|
Container: {
|
|
1975
2508
|
width: "100%",
|
|
1976
2509
|
display: "flex",
|
|
@@ -1978,6 +2511,16 @@ const style$2 = {
|
|
|
1978
2511
|
flexDirection: "column",
|
|
1979
2512
|
gap: "16px",
|
|
1980
2513
|
},
|
|
2514
|
+
Link: {
|
|
2515
|
+
color: "var(--sl-color-sky-500)",
|
|
2516
|
+
textDecoration: "none",
|
|
2517
|
+
"&:visited": {
|
|
2518
|
+
color: "var(--sl-color-sky-500)",
|
|
2519
|
+
},
|
|
2520
|
+
"&:hover": {
|
|
2521
|
+
textDecoration: "underline",
|
|
2522
|
+
},
|
|
2523
|
+
},
|
|
1981
2524
|
CheckboxWrapper: {
|
|
1982
2525
|
display: "flex",
|
|
1983
2526
|
justifyContent: "flex-start",
|
|
@@ -1991,7 +2534,7 @@ const style$2 = {
|
|
|
1991
2534
|
fontSize: "var(--sl-font-size-small)",
|
|
1992
2535
|
},
|
|
1993
2536
|
PageDescriptionText: {
|
|
1994
|
-
color: "var(--
|
|
2537
|
+
color: "var(--sl-color-neutral-500)",
|
|
1995
2538
|
fontSize: "var(--sl-font-size-medium)",
|
|
1996
2539
|
},
|
|
1997
2540
|
Dialog: {
|
|
@@ -2017,38 +2560,41 @@ const style$2 = {
|
|
|
2017
2560
|
},
|
|
2018
2561
|
DialogButton: { margin: "auto", width: "100%" },
|
|
2019
2562
|
};
|
|
2020
|
-
const sheet$
|
|
2021
|
-
const styleString$
|
|
2022
|
-
const vanillaStyle$
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2563
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2564
|
+
const styleString$3 = sheet$3.toString();
|
|
2565
|
+
const vanillaStyle$2 = `
|
|
2566
|
+
:host{
|
|
2567
|
+
display: block;
|
|
2568
|
+
}
|
|
2569
|
+
* {
|
|
2570
|
+
margin: 0;
|
|
2571
|
+
padding: 0;
|
|
2572
|
+
box-sizing: border-box;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
p {
|
|
2576
|
+
line-height: 18px;
|
|
2577
|
+
color: var(--sl-color-gray-800);
|
|
2578
|
+
font-size: var(--sl-font-size-small);
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
a {
|
|
2582
|
+
cursor: pointer;
|
|
2583
|
+
}
|
|
2038
2584
|
|
|
2039
2585
|
|
|
2040
2586
|
`;
|
|
2041
2587
|
const DocusignFormView = (props) => {
|
|
2042
2588
|
var _a;
|
|
2043
2589
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2044
|
-
const { classes } = sheet$
|
|
2590
|
+
const { classes } = sheet$3;
|
|
2045
2591
|
return (index.h("div", { class: classes.Container },
|
|
2046
2592
|
index.h("style", { type: "text/css" },
|
|
2047
|
-
styleString$
|
|
2048
|
-
vanillaStyle$
|
|
2049
|
-
index.h("sl-dialog", { class: sheet$
|
|
2593
|
+
styleString$3,
|
|
2594
|
+
vanillaStyle$2),
|
|
2595
|
+
index.h("sl-dialog", { class: sheet$3.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
2050
2596
|
index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
2051
|
-
index.h("sl-icon", { name: "info-circle", style: { color: "var(--
|
|
2597
|
+
index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
|
|
2052
2598
|
index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
2053
2599
|
index.h("p", null, global.intl.formatMessage({
|
|
2054
2600
|
id: "modalText",
|
|
@@ -2056,26 +2602,30 @@ const DocusignFormView = (props) => {
|
|
|
2056
2602
|
}, {
|
|
2057
2603
|
br: index.h("br", null),
|
|
2058
2604
|
})),
|
|
2059
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
2605
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$3.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
2060
2606
|
index.h("div", { class: classes.TextContainer },
|
|
2061
2607
|
index.h("div", null,
|
|
2062
2608
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2063
2609
|
id: "formStep",
|
|
2064
2610
|
defaultMessage: text.formStep,
|
|
2065
|
-
}, { step: states.step, count:
|
|
2611
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
2066
2612
|
index.h("h3", null, text.taxForm),
|
|
2067
2613
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2068
2614
|
states.loadingError && (index.h("div", null,
|
|
2069
|
-
index.h("
|
|
2070
|
-
index.h("
|
|
2615
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2616
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2617
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2618
|
+
index.h("br", null),
|
|
2071
2619
|
global.intl.formatMessage({
|
|
2072
2620
|
id: "loadingErrorAlertDescription",
|
|
2073
2621
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2074
2622
|
}, {
|
|
2075
2623
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2076
2624
|
})))),
|
|
2077
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
2078
|
-
index.h("
|
|
2625
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2626
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2627
|
+
index.h("strong", null, text.error.generalTitle),
|
|
2628
|
+
index.h("br", null),
|
|
2079
2629
|
global.intl.formatMessage({
|
|
2080
2630
|
id: "generalDescription",
|
|
2081
2631
|
defaultMessage: text.error.generalDescription,
|
|
@@ -2218,7 +2768,7 @@ const DocusignForm = class {
|
|
|
2218
2768
|
* @uiName Information modal button text
|
|
2219
2769
|
*/
|
|
2220
2770
|
this.modalButtonText = "I understand";
|
|
2221
|
-
|
|
2771
|
+
stencilHooks_module.h$1(this);
|
|
2222
2772
|
}
|
|
2223
2773
|
disconnectedCallback() { }
|
|
2224
2774
|
getTextProps() {
|
|
@@ -2255,11 +2805,11 @@ const DocusignForm = class {
|
|
|
2255
2805
|
get el() { return index.getElement(this); }
|
|
2256
2806
|
};
|
|
2257
2807
|
function useDocusignFormDemo(props) {
|
|
2258
|
-
const setStep = index_module.En(
|
|
2808
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2259
2809
|
return cjs.cjs({
|
|
2260
2810
|
text: props.getTextProps(),
|
|
2261
2811
|
states: {
|
|
2262
|
-
step: "
|
|
2812
|
+
step: "4",
|
|
2263
2813
|
disabled: false,
|
|
2264
2814
|
submitDisabled: false,
|
|
2265
2815
|
loading: false,
|
|
@@ -2295,7 +2845,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2295
2845
|
return (index.h("div", { style: {
|
|
2296
2846
|
width: "100%",
|
|
2297
2847
|
height: "600px",
|
|
2298
|
-
background: "
|
|
2848
|
+
background: "#fafafa",
|
|
2299
2849
|
display: "flex",
|
|
2300
2850
|
justifyContent: "center",
|
|
2301
2851
|
alignItems: "center",
|
|
@@ -2307,7 +2857,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2307
2857
|
} }, 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")))));
|
|
2308
2858
|
};
|
|
2309
2859
|
|
|
2310
|
-
const style$
|
|
2860
|
+
const style$4 = {
|
|
2311
2861
|
FormWrapper: {
|
|
2312
2862
|
display: "flex",
|
|
2313
2863
|
justifyContent: "flex-start",
|
|
@@ -2319,7 +2869,6 @@ const style$3 = {
|
|
|
2319
2869
|
justifyContent: "flex-start",
|
|
2320
2870
|
flexDirection: "column",
|
|
2321
2871
|
gap: "var(--sl-spacing-medium)",
|
|
2322
|
-
marginBottom: "16px",
|
|
2323
2872
|
"& sl-radio::part(base)": {
|
|
2324
2873
|
alignItems: "start",
|
|
2325
2874
|
},
|
|
@@ -2360,76 +2909,86 @@ const style$3 = {
|
|
|
2360
2909
|
marginTop: "10px",
|
|
2361
2910
|
},
|
|
2362
2911
|
DescriptionText: {
|
|
2363
|
-
color: "var(--
|
|
2912
|
+
color: "var(--sl-color-neutral-500)",
|
|
2364
2913
|
},
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2914
|
+
SecondaryBtn: {
|
|
2915
|
+
"&::part(base)": {
|
|
2916
|
+
color: "var(--sl-color-gray-800) !important",
|
|
2917
|
+
},
|
|
2368
2918
|
},
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2919
|
+
AlertContainer: {
|
|
2920
|
+
"&::part(base)": {
|
|
2921
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
2922
|
+
borderTop: "none",
|
|
2923
|
+
padding: "0 16px",
|
|
2924
|
+
},
|
|
2925
|
+
"& sl-icon::part(base)": {
|
|
2926
|
+
color: "var(--sl-color-danger-500)",
|
|
2927
|
+
},
|
|
2373
2928
|
},
|
|
2374
|
-
|
|
2929
|
+
PartnerAlertContainer: {
|
|
2375
2930
|
"&::part(base)": {
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
borderRadius: "var(--sqm-primary-button-radius)",
|
|
2931
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
2932
|
+
borderTop: "none",
|
|
2933
|
+
padding: "0 16px",
|
|
2380
2934
|
},
|
|
2381
|
-
"
|
|
2382
|
-
|
|
2935
|
+
"& sl-icon::part(base)": {
|
|
2936
|
+
color: "var(--sl-color-blue-500)",
|
|
2383
2937
|
},
|
|
2384
2938
|
},
|
|
2385
|
-
|
|
2939
|
+
InfoAlert: {
|
|
2940
|
+
marginTop: "var(--sl-spacing-large)",
|
|
2386
2941
|
"&::part(base)": {
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
width: "max-content",
|
|
2392
|
-
display: "flex",
|
|
2393
|
-
margin: "auto",
|
|
2942
|
+
backgroundColor: "transparent",
|
|
2943
|
+
borderTop: "none",
|
|
2944
|
+
padding: "0px",
|
|
2945
|
+
border: "none",
|
|
2394
2946
|
},
|
|
2395
|
-
"&::part(
|
|
2396
|
-
|
|
2397
|
-
|
|
2947
|
+
"&::part(message)": {
|
|
2948
|
+
alignItems: "center",
|
|
2949
|
+
padding: "var(--sl-spacing-small)",
|
|
2950
|
+
whiteSpace: "nowrap",
|
|
2951
|
+
},
|
|
2952
|
+
"& sl-icon::part(base)": {
|
|
2953
|
+
color: "var(--sl-color-yellow-500)",
|
|
2398
2954
|
},
|
|
2399
2955
|
},
|
|
2956
|
+
InfoWarningIcon: {
|
|
2957
|
+
height: "26px",
|
|
2958
|
+
width: "26px",
|
|
2959
|
+
},
|
|
2960
|
+
PageDescriptionText: {
|
|
2961
|
+
color: "var(--sl-color-neutral-500)",
|
|
2962
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2963
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
2964
|
+
},
|
|
2400
2965
|
};
|
|
2401
|
-
const sheet$
|
|
2402
|
-
const styleString$
|
|
2403
|
-
const vanillaStyle$
|
|
2966
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
2967
|
+
const styleString$4 = sheet$4.toString();
|
|
2968
|
+
const vanillaStyle$3 = `
|
|
2404
2969
|
:host{
|
|
2405
2970
|
display: block;
|
|
2406
2971
|
}
|
|
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
|
-
|
|
2418
2972
|
* {
|
|
2419
2973
|
margin: 0;
|
|
2420
2974
|
padding: 0;
|
|
2421
2975
|
box-sizing: border-box;
|
|
2422
2976
|
}
|
|
2423
2977
|
|
|
2978
|
+
p {
|
|
2979
|
+
line-height: 18px;
|
|
2980
|
+
color: var(--sl-color-gray-800);
|
|
2981
|
+
font-size: var(--sl-font-size-small);
|
|
2982
|
+
}
|
|
2424
2983
|
`;
|
|
2425
2984
|
const IndirectTaxFormView = (props) => {
|
|
2426
2985
|
var _a;
|
|
2427
2986
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2428
|
-
const { classes } = sheet$
|
|
2987
|
+
const { classes } = sheet$4;
|
|
2429
2988
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2430
2989
|
index.h("style", { type: "text/css" },
|
|
2431
|
-
styleString$
|
|
2432
|
-
vanillaStyle$
|
|
2990
|
+
styleString$4,
|
|
2991
|
+
vanillaStyle$3),
|
|
2433
2992
|
index.h("div", { class: classes.TextContainer },
|
|
2434
2993
|
index.h("div", null,
|
|
2435
2994
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2437,29 +2996,35 @@ const IndirectTaxFormView = (props) => {
|
|
|
2437
2996
|
global.intl.formatMessage({
|
|
2438
2997
|
id: "formStep",
|
|
2439
2998
|
defaultMessage: text.formStep,
|
|
2440
|
-
}, { step: states.step, count:
|
|
2999
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
2441
3000
|
index.h("h3", null, text.indirectTax),
|
|
2442
3001
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2443
3002
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2444
3003
|
states.loadingError && (index.h("div", null,
|
|
2445
|
-
index.h("
|
|
2446
|
-
index.h("
|
|
3004
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
3005
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3006
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
3007
|
+
index.h("br", null),
|
|
2447
3008
|
global.intl.formatMessage({
|
|
2448
3009
|
id: "loadingErrorAlertDescription",
|
|
2449
3010
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2450
3011
|
}, {
|
|
2451
3012
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2452
3013
|
})))),
|
|
2453
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
2454
|
-
index.h("
|
|
3014
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
|
|
3015
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3016
|
+
index.h("strong", null, text.error.generalTitle),
|
|
3017
|
+
index.h("br", null),
|
|
2455
3018
|
global.intl.formatMessage({
|
|
2456
3019
|
id: "generalDescription",
|
|
2457
3020
|
defaultMessage: text.error.generalDescription,
|
|
2458
3021
|
}, {
|
|
2459
3022
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2460
3023
|
}))),
|
|
2461
|
-
states.isPartner && (index.h("
|
|
2462
|
-
index.h("
|
|
3024
|
+
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
3025
|
+
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
3026
|
+
index.h("strong", null, text.isPartnerAlertHeader),
|
|
3027
|
+
index.h("br", null),
|
|
2463
3028
|
global.intl.formatMessage({
|
|
2464
3029
|
id: "isPartnerAlertDescription",
|
|
2465
3030
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -2480,15 +3045,17 @@ const IndirectTaxFormView = (props) => {
|
|
|
2480
3045
|
text.otherRegion,
|
|
2481
3046
|
index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2482
3047
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2483
|
-
index.h("
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
3048
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
3049
|
+
index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
3050
|
+
global.intl.formatMessage({
|
|
3051
|
+
id: "cannotChangeInfoAlert",
|
|
3052
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
3053
|
+
}, {
|
|
3054
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3055
|
+
})),
|
|
2489
3056
|
index.h("div", { class: classes.BtnContainer },
|
|
2490
|
-
index.h("sl-button", {
|
|
2491
|
-
index.h("sl-button", { class: classes.
|
|
3057
|
+
index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
3058
|
+
index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2492
3059
|
};
|
|
2493
3060
|
|
|
2494
3061
|
const CONNECT_PARTNER = index_module.dist.gql `
|
|
@@ -2531,30 +3098,30 @@ function useIndirectTaxForm(props) {
|
|
|
2531
3098
|
var _a, _b, _c, _d, _e;
|
|
2532
3099
|
const user = index_module.J();
|
|
2533
3100
|
const locale = index_module.L();
|
|
2534
|
-
const formRef =
|
|
2535
|
-
const context = index_module.Fn(
|
|
2536
|
-
const [step, setStep] = index_module.Pn(
|
|
3101
|
+
const formRef = stencilHooks_module.useRef(null);
|
|
3102
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
3103
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2537
3104
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2538
|
-
const userForm = index_module.Fn(
|
|
2539
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(
|
|
2540
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(
|
|
3105
|
+
const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
|
|
3106
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
3107
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
|
|
2541
3108
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2542
|
-
const _countries =
|
|
2543
|
-
const [loading, setLoading] =
|
|
2544
|
-
const [formState, setFormState] =
|
|
2545
|
-
const [errors, setErrors] =
|
|
2546
|
-
const [countrySearch, setCountrySearch] =
|
|
2547
|
-
const [filteredCountries, setFilteredCountries] =
|
|
2548
|
-
const [option, setOption] =
|
|
3109
|
+
const _countries = stencilHooks_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) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
3110
|
+
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
3111
|
+
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
3112
|
+
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
3113
|
+
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
3114
|
+
const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(_countries || []);
|
|
3115
|
+
const [option, setOption] = stencilHooks_module.useState("notRegistered");
|
|
2549
3116
|
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;
|
|
2550
|
-
|
|
3117
|
+
stencilHooks_module.useEffect(() => {
|
|
2551
3118
|
var _a;
|
|
2552
3119
|
if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
|
|
2553
3120
|
return;
|
|
2554
3121
|
const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
|
|
2555
3122
|
setOption(_option);
|
|
2556
3123
|
}, [publisher, _countries]);
|
|
2557
|
-
|
|
3124
|
+
stencilHooks_module.useEffect(() => {
|
|
2558
3125
|
if (countrySearch.trim() === "") {
|
|
2559
3126
|
setFilteredCountries(_countries || []);
|
|
2560
3127
|
}
|
|
@@ -2562,7 +3129,7 @@ function useIndirectTaxForm(props) {
|
|
|
2562
3129
|
setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
|
|
2563
3130
|
}
|
|
2564
3131
|
}, [countrySearch, _countries]);
|
|
2565
|
-
|
|
3132
|
+
stencilHooks_module.useEffect(() => {
|
|
2566
3133
|
var _a, _b;
|
|
2567
3134
|
const user = userData === null || userData === void 0 ? void 0 : userData.user;
|
|
2568
3135
|
if (!user)
|
|
@@ -2654,7 +3221,7 @@ function useIndirectTaxForm(props) {
|
|
|
2654
3221
|
await refetch();
|
|
2655
3222
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2656
3223
|
.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;
|
|
2657
|
-
const hasValidCurrentDocument =
|
|
3224
|
+
const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
2658
3225
|
// Fire form change event
|
|
2659
3226
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2660
3227
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
@@ -2709,10 +3276,10 @@ function useIndirectTaxForm(props) {
|
|
|
2709
3276
|
})),
|
|
2710
3277
|
},
|
|
2711
3278
|
data: {
|
|
2712
|
-
esRegions:
|
|
3279
|
+
esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
2713
3280
|
countries: filteredCountries,
|
|
2714
3281
|
allCountries: _countries,
|
|
2715
|
-
provinces:
|
|
3282
|
+
provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
|
|
2716
3283
|
},
|
|
2717
3284
|
text: props.getTextProps(),
|
|
2718
3285
|
refs: {
|
|
@@ -2879,7 +3446,7 @@ const IndirectTaxForm = class {
|
|
|
2879
3446
|
* @uiName Page description
|
|
2880
3447
|
*/
|
|
2881
3448
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2882
|
-
|
|
3449
|
+
stencilHooks_module.h$1(this);
|
|
2883
3450
|
}
|
|
2884
3451
|
disconnectedCallback() { }
|
|
2885
3452
|
getTextProps() {
|
|
@@ -2914,7 +3481,7 @@ const IndirectTaxForm = class {
|
|
|
2914
3481
|
const props = index_module.isDemo()
|
|
2915
3482
|
? useDemoIndirectTaxForm(this)
|
|
2916
3483
|
: useIndirectTaxForm(this);
|
|
2917
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(
|
|
3484
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2918
3485
|
hide: props.states.formState.checked !== "otherRegion",
|
|
2919
3486
|
disabled: props.states.disabled || props.states.isPartner,
|
|
2920
3487
|
formState: props.slotProps.formState,
|
|
@@ -2932,9 +3499,9 @@ const IndirectTaxForm = class {
|
|
|
2932
3499
|
}
|
|
2933
3500
|
};
|
|
2934
3501
|
function useDemoIndirectTaxForm(props) {
|
|
2935
|
-
const setStep = index_module.En(
|
|
2936
|
-
const [option, setOption] =
|
|
2937
|
-
const [demoFormState, setDemoFormState] =
|
|
3502
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
3503
|
+
const [option, setOption] = stencilHooks_module.useState(null);
|
|
3504
|
+
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2938
3505
|
return cjs.cjs({
|
|
2939
3506
|
states: {
|
|
2940
3507
|
step: "2",
|
|
@@ -2973,7 +3540,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2973
3540
|
setCountrySearch: (c) => console.log(c),
|
|
2974
3541
|
},
|
|
2975
3542
|
data: {
|
|
2976
|
-
esRegions:
|
|
3543
|
+
esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
2977
3544
|
countries: [
|
|
2978
3545
|
{
|
|
2979
3546
|
countryCode: "CA",
|
|
@@ -2992,7 +3559,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2992
3559
|
displayName: "United States",
|
|
2993
3560
|
},
|
|
2994
3561
|
],
|
|
2995
|
-
provinces:
|
|
3562
|
+
provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
|
|
2996
3563
|
},
|
|
2997
3564
|
text: props.getTextProps(),
|
|
2998
3565
|
refs: {
|
|
@@ -3014,27 +3581,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3014
3581
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3015
3582
|
}
|
|
3016
3583
|
|
|
3017
|
-
const
|
|
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");
|
|
3584
|
+
const debug = stencilHooks_module.browser("sq:useInvoiceTable");
|
|
3038
3585
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
3039
3586
|
const GET_INVOICES = index_module.dist.gql `
|
|
3040
3587
|
query getUserTaxInfo($limit: Int!, $offset: Int!) {
|
|
@@ -3064,7 +3611,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3064
3611
|
var _a;
|
|
3065
3612
|
const user = index_module.J();
|
|
3066
3613
|
const locale = index_module.L();
|
|
3067
|
-
const [content, setContent] =
|
|
3614
|
+
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
3068
3615
|
...state,
|
|
3069
3616
|
...next,
|
|
3070
3617
|
}), {
|
|
@@ -3108,7 +3655,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3108
3655
|
// Set the content to render and finish loading components
|
|
3109
3656
|
setContent({ columns, loading: false, page: states.currentPage });
|
|
3110
3657
|
}
|
|
3111
|
-
|
|
3658
|
+
stencilHooks_module.useEffect(() => {
|
|
3112
3659
|
setContent({ loading: true });
|
|
3113
3660
|
invoicesData && getComponentData(components);
|
|
3114
3661
|
}, [invoicesData, components, tick]);
|
|
@@ -3182,6 +3729,26 @@ async function tryMethod(c, callback) {
|
|
|
3182
3729
|
}
|
|
3183
3730
|
}
|
|
3184
3731
|
|
|
3732
|
+
const mockInvoiceData = (count = 4) => {
|
|
3733
|
+
const data = [...Array(count)].map(() => getMockData());
|
|
3734
|
+
return { data };
|
|
3735
|
+
};
|
|
3736
|
+
const getMockData = () => {
|
|
3737
|
+
const today = luxon.luxon.DateTime.now();
|
|
3738
|
+
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3739
|
+
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3740
|
+
const indirectTax = Math.round(earnings * 0.2);
|
|
3741
|
+
return {
|
|
3742
|
+
downloadUrl: "https://example.com",
|
|
3743
|
+
dateCreated: today.toMillis(),
|
|
3744
|
+
invoiceId,
|
|
3745
|
+
program: "my-program",
|
|
3746
|
+
earnings: `$${earnings}.00`,
|
|
3747
|
+
indirectTax: `$${indirectTax}.00`,
|
|
3748
|
+
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3749
|
+
};
|
|
3750
|
+
};
|
|
3751
|
+
|
|
3185
3752
|
const InvoiceTable = class {
|
|
3186
3753
|
constructor(hostRef) {
|
|
3187
3754
|
index.registerInstance(this, hostRef);
|
|
@@ -3215,7 +3782,7 @@ const InvoiceTable = class {
|
|
|
3215
3782
|
this.emptyStateHeader = "View your invoice details";
|
|
3216
3783
|
/** @uiName Empty invoice table description */
|
|
3217
3784
|
this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
3218
|
-
|
|
3785
|
+
stencilHooks_module.h$1(this);
|
|
3219
3786
|
}
|
|
3220
3787
|
disconnectedCallback() { }
|
|
3221
3788
|
render() {
|
|
@@ -3225,7 +3792,7 @@ const InvoiceTable = class {
|
|
|
3225
3792
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3226
3793
|
: useInvoiceTable(this, empty, loading);
|
|
3227
3794
|
reRender.useRequestRerender([this.perPage]);
|
|
3228
|
-
return (index.h(
|
|
3795
|
+
return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3229
3796
|
}
|
|
3230
3797
|
};
|
|
3231
3798
|
function EmptySlot(props) {
|
|
@@ -3238,7 +3805,7 @@ function LoadingRow() {
|
|
|
3238
3805
|
return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
|
|
3239
3806
|
}
|
|
3240
3807
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
3241
|
-
const [content, setContent] =
|
|
3808
|
+
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
3242
3809
|
...state,
|
|
3243
3810
|
...next,
|
|
3244
3811
|
}), {
|
|
@@ -3248,7 +3815,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3248
3815
|
page: 0,
|
|
3249
3816
|
});
|
|
3250
3817
|
const tick = reRender.useRerenderListener();
|
|
3251
|
-
const mockData =
|
|
3818
|
+
const mockData = stencilHooks_module.useMemo(() => { var _a; return ((_a = props.demoData) === null || _a === void 0 ? void 0 : _a.mockData) || mockInvoiceData(props.perPage); }, [props.perPage]);
|
|
3252
3819
|
const components = useChildElements.useChildElements();
|
|
3253
3820
|
async function getComponentData(components) {
|
|
3254
3821
|
const componentData = mockData.data.slice(0, props.perPage);
|
|
@@ -3291,7 +3858,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3291
3858
|
// Set the content to render and finish loading components
|
|
3292
3859
|
setContent({ columns, loading: false, page: 0 });
|
|
3293
3860
|
}
|
|
3294
|
-
|
|
3861
|
+
stencilHooks_module.useEffect(() => {
|
|
3295
3862
|
setContent({ loading: true });
|
|
3296
3863
|
(mockData === null || mockData === void 0 ? void 0 : mockData.data) && getComponentData(components);
|
|
3297
3864
|
}, [mockData === null || mockData === void 0 ? void 0 : mockData.data, components, tick]);
|
|
@@ -3327,10 +3894,22 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3327
3894
|
return demoProps;
|
|
3328
3895
|
}
|
|
3329
3896
|
|
|
3897
|
+
const InvoiceTableDataCell = class {
|
|
3898
|
+
constructor(hostRef) {
|
|
3899
|
+
index.registerInstance(this, hostRef);
|
|
3900
|
+
this.ignored = true;
|
|
3901
|
+
stencilHooks_module.h$1(this);
|
|
3902
|
+
}
|
|
3903
|
+
disconnectedCallback() { }
|
|
3904
|
+
render() {
|
|
3905
|
+
return this.data;
|
|
3906
|
+
}
|
|
3907
|
+
};
|
|
3908
|
+
|
|
3330
3909
|
const InvoiceTableDataColumn = class {
|
|
3331
3910
|
constructor(hostRef) {
|
|
3332
3911
|
index.registerInstance(this, hostRef);
|
|
3333
|
-
|
|
3912
|
+
stencilHooks_module.h$1(this);
|
|
3334
3913
|
}
|
|
3335
3914
|
disconnectedCallback() { }
|
|
3336
3915
|
async renderCell(data) {
|
|
@@ -3345,10 +3924,27 @@ const InvoiceTableDataColumn = class {
|
|
|
3345
3924
|
}
|
|
3346
3925
|
};
|
|
3347
3926
|
|
|
3927
|
+
const RewardTableDateCell = class {
|
|
3928
|
+
constructor(hostRef) {
|
|
3929
|
+
index.registerInstance(this, hostRef);
|
|
3930
|
+
this.ignored = true;
|
|
3931
|
+
this.locale = "en";
|
|
3932
|
+
stencilHooks_module.h$1(this);
|
|
3933
|
+
}
|
|
3934
|
+
disconnectedCallback() { }
|
|
3935
|
+
render() {
|
|
3936
|
+
var _a, _b;
|
|
3937
|
+
const date = !this.date
|
|
3938
|
+
? "-"
|
|
3939
|
+
: (_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);
|
|
3940
|
+
return date;
|
|
3941
|
+
}
|
|
3942
|
+
};
|
|
3943
|
+
|
|
3348
3944
|
const InvoiceTableDateColumn = class {
|
|
3349
3945
|
constructor(hostRef) {
|
|
3350
3946
|
index.registerInstance(this, hostRef);
|
|
3351
|
-
|
|
3947
|
+
stencilHooks_module.h$1(this);
|
|
3352
3948
|
}
|
|
3353
3949
|
disconnectedCallback() { }
|
|
3354
3950
|
async renderCell(data, options) {
|
|
@@ -3363,10 +3959,25 @@ const InvoiceTableDateColumn = class {
|
|
|
3363
3959
|
}
|
|
3364
3960
|
};
|
|
3365
3961
|
|
|
3962
|
+
const InvoiceTableDownloadCell = class {
|
|
3963
|
+
constructor(hostRef) {
|
|
3964
|
+
index.registerInstance(this, hostRef);
|
|
3965
|
+
this.ignored = true;
|
|
3966
|
+
stencilHooks_module.h$1(this);
|
|
3967
|
+
}
|
|
3968
|
+
disconnectedCallback() { }
|
|
3969
|
+
render() {
|
|
3970
|
+
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3971
|
+
cursor: pointer;
|
|
3972
|
+
}`;
|
|
3973
|
+
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" }))))));
|
|
3974
|
+
}
|
|
3975
|
+
};
|
|
3976
|
+
|
|
3366
3977
|
const InvoiceTableGenericColumn = class {
|
|
3367
3978
|
constructor(hostRef) {
|
|
3368
3979
|
index.registerInstance(this, hostRef);
|
|
3369
|
-
|
|
3980
|
+
stencilHooks_module.h$1(this);
|
|
3370
3981
|
}
|
|
3371
3982
|
disconnectedCallback() { }
|
|
3372
3983
|
async renderCell(data) {
|
|
@@ -3385,17 +3996,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3385
3996
|
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" }),
|
|
3386
3997
|
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" })));
|
|
3387
3998
|
|
|
3388
|
-
const style$
|
|
3999
|
+
const style$5 = {
|
|
3389
4000
|
CardContainer: {
|
|
3390
4001
|
display: "grid",
|
|
3391
4002
|
gridTemplateColumns: "1fr",
|
|
3392
4003
|
gridGap: "var(--sl-spacing-large)",
|
|
3393
|
-
background: "
|
|
4004
|
+
background: "var(--sl-color-neutral-0)",
|
|
3394
4005
|
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
3395
|
-
borderRadius: "
|
|
4006
|
+
borderRadius: "4px",
|
|
3396
4007
|
padding: "var(--sl-spacing-large)",
|
|
3397
4008
|
minHeight: "150px",
|
|
3398
|
-
border: "
|
|
4009
|
+
border: "1px solid var(--sl-color-gray-200)",
|
|
3399
4010
|
maxWidth: "450px",
|
|
3400
4011
|
},
|
|
3401
4012
|
StatusContainer: {
|
|
@@ -3405,7 +4016,7 @@ const style$4 = {
|
|
|
3405
4016
|
},
|
|
3406
4017
|
MainCurrencyLabel: {
|
|
3407
4018
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
3408
|
-
color: "var(--
|
|
4019
|
+
color: "var(--sl-color-gray-500)",
|
|
3409
4020
|
},
|
|
3410
4021
|
MainCurrency: {
|
|
3411
4022
|
margin: 0,
|
|
@@ -3414,12 +4025,12 @@ const style$4 = {
|
|
|
3414
4025
|
},
|
|
3415
4026
|
SubduedRegularText: {
|
|
3416
4027
|
fontSize: "var(--sl-font-size-small)",
|
|
3417
|
-
color: "var(--
|
|
4028
|
+
color: "var(--sl-color-gray-500)",
|
|
3418
4029
|
margin: 0,
|
|
3419
4030
|
width: "auto",
|
|
3420
4031
|
},
|
|
3421
4032
|
PaypalEmail: {
|
|
3422
|
-
borderRight: "
|
|
4033
|
+
borderRight: "1px solid var(--sl-color-gray-200)",
|
|
3423
4034
|
paddingRight: "var(--sl-spacing-small)",
|
|
3424
4035
|
"@media (max-width: 499px)": {
|
|
3425
4036
|
borderRight: "none",
|
|
@@ -3427,7 +4038,7 @@ const style$4 = {
|
|
|
3427
4038
|
},
|
|
3428
4039
|
},
|
|
3429
4040
|
PaypalDetailsContainer: {
|
|
3430
|
-
color: "var(--
|
|
4041
|
+
color: "var(--sl-color-gray-500)",
|
|
3431
4042
|
display: "flex",
|
|
3432
4043
|
gap: "var(--sl-spacing-small)",
|
|
3433
4044
|
justifyContent: "flex-start",
|
|
@@ -3448,7 +4059,7 @@ const style$4 = {
|
|
|
3448
4059
|
},
|
|
3449
4060
|
},
|
|
3450
4061
|
AccountDetailsContainer: {
|
|
3451
|
-
color: "var(--
|
|
4062
|
+
color: "var(--sl-color-gray-500)",
|
|
3452
4063
|
display: "flex",
|
|
3453
4064
|
gap: "var(--sl-spacing-small)",
|
|
3454
4065
|
justifyContent: "flex-start",
|
|
@@ -3461,7 +4072,7 @@ const style$4 = {
|
|
|
3461
4072
|
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
3462
4073
|
paddingTop: "var(--sq-spacing-xx-small)",
|
|
3463
4074
|
"& > :not(:last-child)": {
|
|
3464
|
-
borderRight: "
|
|
4075
|
+
borderRight: "1px solid var(--sl-color-gray-200)",
|
|
3465
4076
|
},
|
|
3466
4077
|
"& > :nth-child(3)": {
|
|
3467
4078
|
border: "none",
|
|
@@ -3478,7 +4089,7 @@ const style$4 = {
|
|
|
3478
4089
|
},
|
|
3479
4090
|
W9Container: {
|
|
3480
4091
|
paddingTop: "var(--sl-spacing-large)",
|
|
3481
|
-
borderTop: "
|
|
4092
|
+
borderTop: "1px solid var(--sl-color-gray-200)",
|
|
3482
4093
|
},
|
|
3483
4094
|
SkeletonOne: {
|
|
3484
4095
|
width: "25%",
|
|
@@ -3492,22 +4103,26 @@ const style$4 = {
|
|
|
3492
4103
|
width: "50%",
|
|
3493
4104
|
height: "34px",
|
|
3494
4105
|
},
|
|
3495
|
-
|
|
4106
|
+
Alert: {
|
|
3496
4107
|
"&::part(base)": {
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
color: "var(--sl-color-white)",
|
|
4108
|
+
backgroundColor: "var(--sl-color-warning-100)",
|
|
4109
|
+
border: "1px solid var(--sl-color-warning-200)",
|
|
4110
|
+
padding: "0 16px",
|
|
3501
4111
|
},
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
color: "var(--sl-color-white)",
|
|
4112
|
+
"& sl-icon": {
|
|
4113
|
+
margin: 0,
|
|
4114
|
+
},
|
|
4115
|
+
"& sl-icon::part(base)": {
|
|
4116
|
+
color: "var(--sl-color-warning-500)",
|
|
4117
|
+
margin: 0,
|
|
3509
4118
|
},
|
|
3510
4119
|
},
|
|
4120
|
+
AlertContent: {
|
|
4121
|
+
display: "flex",
|
|
4122
|
+
alignItems: "flex-start",
|
|
4123
|
+
justifyContent: "flex-start",
|
|
4124
|
+
flexDirection: "column",
|
|
4125
|
+
},
|
|
3511
4126
|
Container: {
|
|
3512
4127
|
display: "flex",
|
|
3513
4128
|
flexDirection: "column",
|
|
@@ -3515,7 +4130,7 @@ const style$4 = {
|
|
|
3515
4130
|
},
|
|
3516
4131
|
};
|
|
3517
4132
|
function PayoutDetailsCardView(props) {
|
|
3518
|
-
const sheet = JSS.createStyleSheet(style$
|
|
4133
|
+
const sheet = JSS.createStyleSheet(style$5);
|
|
3519
4134
|
const styleString = sheet.toString();
|
|
3520
4135
|
const { classes } = sheet;
|
|
3521
4136
|
const { states, text } = props;
|
|
@@ -3529,14 +4144,13 @@ function PayoutDetailsCardView(props) {
|
|
|
3529
4144
|
};
|
|
3530
4145
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3531
4146
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
3532
|
-
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
3533
4147
|
const statusText = global.intl.formatMessage({
|
|
3534
4148
|
id: "badgeText",
|
|
3535
4149
|
defaultMessage: statusBadgeText,
|
|
3536
4150
|
}, {
|
|
3537
4151
|
badgeText: status,
|
|
3538
4152
|
});
|
|
3539
|
-
return (index.h("sl-badge", { pill: true,
|
|
4153
|
+
return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3540
4154
|
};
|
|
3541
4155
|
const thresholdText = global.intl.formatMessage({
|
|
3542
4156
|
id: "thresholdText",
|
|
@@ -3567,8 +4181,8 @@ function PayoutDetailsCardView(props) {
|
|
|
3567
4181
|
|
|
3568
4182
|
function usePayoutDetailsCard(props) {
|
|
3569
4183
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3570
|
-
const { data
|
|
3571
|
-
const publisher = (_b = (_a = data
|
|
4184
|
+
const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
4185
|
+
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;
|
|
3572
4186
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3573
4187
|
var _a;
|
|
3574
4188
|
const currentDay = luxon.luxon.DateTime.now().day;
|
|
@@ -3627,83 +4241,1397 @@ const PayoutDetailsCard = class {
|
|
|
3627
4241
|
constructor(hostRef) {
|
|
3628
4242
|
index.registerInstance(this, hostRef);
|
|
3629
4243
|
/**
|
|
3630
|
-
* Badge text indicating payout status
|
|
3631
|
-
* @uiName Payout badge status text
|
|
4244
|
+
* Badge text indicating payout status
|
|
4245
|
+
* @uiName Payout badge status text
|
|
4246
|
+
*/
|
|
4247
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4248
|
+
/**
|
|
4249
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4250
|
+
* @uiName Payout schedule by threshold text
|
|
4251
|
+
*/
|
|
4252
|
+
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
4253
|
+
/**
|
|
4254
|
+
* Shown before the participant’s bank account information.
|
|
4255
|
+
* @uiName Bank account field label
|
|
4256
|
+
*/
|
|
4257
|
+
this.accountText = "Account";
|
|
4258
|
+
/**
|
|
4259
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
4260
|
+
* @uiName Payout missing information subtext
|
|
4261
|
+
*/
|
|
4262
|
+
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
4263
|
+
stencilHooks_module.h$1(this);
|
|
4264
|
+
}
|
|
4265
|
+
disconnectedCallback() { }
|
|
4266
|
+
getTextProps() {
|
|
4267
|
+
const props = utils.getProps(this);
|
|
4268
|
+
return {
|
|
4269
|
+
...props,
|
|
4270
|
+
};
|
|
4271
|
+
}
|
|
4272
|
+
render() {
|
|
4273
|
+
const props = index_module.isDemo()
|
|
4274
|
+
? useDemoPayoutDetailsCard(this)
|
|
4275
|
+
: usePayoutDetailsCard(this);
|
|
4276
|
+
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
4277
|
+
}
|
|
4278
|
+
};
|
|
4279
|
+
function useDemoPayoutDetailsCard(props) {
|
|
4280
|
+
return cjs.cjs({
|
|
4281
|
+
states: {
|
|
4282
|
+
loading: false,
|
|
4283
|
+
error: false,
|
|
4284
|
+
thresholdBalance: "$50",
|
|
4285
|
+
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
4286
|
+
badgeStatus: "nextPayout",
|
|
4287
|
+
payoutType: "BANK_TRANSFER",
|
|
4288
|
+
nextPayoutDate: "March 14, 2024",
|
|
4289
|
+
paypalEmailAddress: "joesmith@example.com",
|
|
4290
|
+
otherCurrencies: false,
|
|
4291
|
+
hasW9Pending: false,
|
|
4292
|
+
hasDatePending: true,
|
|
4293
|
+
cardNumberPreview: "XX2381",
|
|
4294
|
+
balance: "20.00 USD",
|
|
4295
|
+
},
|
|
4296
|
+
text: props.getTextProps(),
|
|
4297
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4298
|
+
}
|
|
4299
|
+
|
|
4300
|
+
const TableCell = class {
|
|
4301
|
+
constructor(hostRef) {
|
|
4302
|
+
index.registerInstance(this, hostRef);
|
|
4303
|
+
/** @uiName Column span */
|
|
4304
|
+
this.colspan = 1;
|
|
4305
|
+
/** @uiName Padding */
|
|
4306
|
+
this.padding = "15px 10px";
|
|
4307
|
+
}
|
|
4308
|
+
render() {
|
|
4309
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
4310
|
+
}
|
|
4311
|
+
};
|
|
4312
|
+
|
|
4313
|
+
const TableRow = class {
|
|
4314
|
+
constructor(hostRef) {
|
|
4315
|
+
index.registerInstance(this, hostRef);
|
|
4316
|
+
/**
|
|
4317
|
+
* @uiName Border
|
|
4318
|
+
*/
|
|
4319
|
+
this.border = "1px solid #EAEAEA";
|
|
4320
|
+
}
|
|
4321
|
+
render() {
|
|
4322
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
4323
|
+
}
|
|
4324
|
+
};
|
|
4325
|
+
|
|
4326
|
+
function getCurrentStep(user) {
|
|
4327
|
+
var _a, _b;
|
|
4328
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4329
|
+
return "/1";
|
|
4330
|
+
}
|
|
4331
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
4332
|
+
// If they do have a required document, look at current document
|
|
4333
|
+
if (requiredTaxDocumentType && !currentTaxDocument) {
|
|
4334
|
+
// Specific to custom CASH setting,
|
|
4335
|
+
if (payoutsAccount.hold &&
|
|
4336
|
+
payoutsAccount.holdReasons.includes("NO_W9_DOCUMENT"))
|
|
4337
|
+
return "/dashboard";
|
|
4338
|
+
return "/3";
|
|
4339
|
+
}
|
|
4340
|
+
if (!withdrawalSettings && brandedSignup)
|
|
4341
|
+
return "/4";
|
|
4342
|
+
return "/dashboard";
|
|
4343
|
+
}
|
|
4344
|
+
function useTaxAndCash() {
|
|
4345
|
+
var _a, _b, _c, _d, _e;
|
|
4346
|
+
const host = index_module._();
|
|
4347
|
+
const user = index_module.J();
|
|
4348
|
+
const locale = index_module.L();
|
|
4349
|
+
// State for current step of form
|
|
4350
|
+
const [step, setStep] = index_module.In({
|
|
4351
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4352
|
+
initialValue: "/loading",
|
|
4353
|
+
});
|
|
4354
|
+
// State for when to hide steps, or override certain actions
|
|
4355
|
+
const [context, _setContext] = index_module.In({
|
|
4356
|
+
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4357
|
+
initialValue: {},
|
|
4358
|
+
});
|
|
4359
|
+
// State to carry user form information into step 2
|
|
4360
|
+
const [userFormContext, _setUserFormContext] = index_module.In({
|
|
4361
|
+
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4362
|
+
initialValue: {
|
|
4363
|
+
firstName: undefined,
|
|
4364
|
+
lastName: undefined,
|
|
4365
|
+
email: undefined,
|
|
4366
|
+
countryCode: undefined,
|
|
4367
|
+
currency: undefined,
|
|
4368
|
+
},
|
|
4369
|
+
});
|
|
4370
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.In({
|
|
4371
|
+
namespace: CURRENCIES_NAMESPACE,
|
|
4372
|
+
initialValue: [],
|
|
4373
|
+
});
|
|
4374
|
+
const [_countriesContext, _setCountriesContext] = index_module.In({
|
|
4375
|
+
namespace: COUNTRIES_NAMESPACE,
|
|
4376
|
+
initialValue: [],
|
|
4377
|
+
});
|
|
4378
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
|
|
4379
|
+
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4380
|
+
initialValue: [],
|
|
4381
|
+
});
|
|
4382
|
+
const { data, errors } = index_module.Sn({
|
|
4383
|
+
namespace: USER_QUERY_NAMESPACE,
|
|
4384
|
+
query: GET_USER,
|
|
4385
|
+
skip: !user,
|
|
4386
|
+
options: {
|
|
4387
|
+
batch: false,
|
|
4388
|
+
},
|
|
4389
|
+
});
|
|
4390
|
+
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) ||
|
|
4391
|
+
userFormContext.countryCode;
|
|
4392
|
+
index_module.Sn({
|
|
4393
|
+
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4394
|
+
query: GET_COUNTRIES,
|
|
4395
|
+
skip: !user,
|
|
4396
|
+
});
|
|
4397
|
+
const { data: financeNetworkData, refetch } = index_module.Sn({
|
|
4398
|
+
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4399
|
+
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4400
|
+
skip: !user,
|
|
4401
|
+
variables: {
|
|
4402
|
+
filter: getFinanceNetworkFilter(),
|
|
4403
|
+
},
|
|
4404
|
+
});
|
|
4405
|
+
const { data: currenciesData } = index_module.Sn({
|
|
4406
|
+
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4407
|
+
query: GET_CURRENCIES,
|
|
4408
|
+
skip: !user,
|
|
4409
|
+
variables: {
|
|
4410
|
+
locale,
|
|
4411
|
+
},
|
|
4412
|
+
});
|
|
4413
|
+
const supportedCurrencies = stencilHooks_module.useMemo(() => {
|
|
4414
|
+
var _a, _b;
|
|
4415
|
+
// Filter out any currencies not supported by finance network settings
|
|
4416
|
+
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) => {
|
|
4417
|
+
var _a, _b;
|
|
4418
|
+
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);
|
|
4419
|
+
// Currency not in supported list
|
|
4420
|
+
if (!currency)
|
|
4421
|
+
return agg;
|
|
4422
|
+
// Currency already added to list
|
|
4423
|
+
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4424
|
+
return agg;
|
|
4425
|
+
// Currency not supported by selected country
|
|
4426
|
+
if (userFormContext.countryCode &&
|
|
4427
|
+
settings.countryCode !== countryCode)
|
|
4428
|
+
return agg;
|
|
4429
|
+
return [...agg, currency];
|
|
4430
|
+
}, []);
|
|
4431
|
+
return allValidCurrencies;
|
|
4432
|
+
}, [financeNetworkData, countryCode]);
|
|
4433
|
+
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4434
|
+
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4435
|
+
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4436
|
+
// filter out any duplicate countries and null countryCode
|
|
4437
|
+
const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4438
|
+
const _topCountries = ["CA", "GB", "US"];
|
|
4439
|
+
const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
|
|
4440
|
+
.map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
|
|
4441
|
+
.sort(sortByName)
|
|
4442
|
+
.reduce((prev, countryObj) => {
|
|
4443
|
+
if (_topCountries.includes(countryObj.countryCode))
|
|
4444
|
+
return [countryObj, ...prev];
|
|
4445
|
+
return [...prev, countryObj];
|
|
4446
|
+
}, []), [availableCountries]);
|
|
4447
|
+
stencilHooks_module.useEffect(() => {
|
|
4448
|
+
if (sortedCountries)
|
|
4449
|
+
setSortedCountriesContext(sortedCountries);
|
|
4450
|
+
}, [sortedCountries]);
|
|
4451
|
+
stencilHooks_module.useEffect(() => {
|
|
4452
|
+
if (supportedCurrencies)
|
|
4453
|
+
setCurrenciesContext(supportedCurrencies);
|
|
4454
|
+
}, [supportedCurrencies]);
|
|
4455
|
+
stencilHooks_module.useEffect(() => {
|
|
4456
|
+
if (errors) {
|
|
4457
|
+
setStep("/error");
|
|
4458
|
+
return;
|
|
4459
|
+
}
|
|
4460
|
+
if (!host || !user)
|
|
4461
|
+
return;
|
|
4462
|
+
if (data) {
|
|
4463
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4464
|
+
if (!user || step !== "/loading")
|
|
4465
|
+
return;
|
|
4466
|
+
const currentStep = getCurrentStep(user);
|
|
4467
|
+
setStep(currentStep);
|
|
4468
|
+
}
|
|
4469
|
+
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4470
|
+
function getFinanceNetworkFilter() {
|
|
4471
|
+
var _a, _b, _c;
|
|
4472
|
+
if (step === "/1")
|
|
4473
|
+
return {};
|
|
4474
|
+
if (step === "/4")
|
|
4475
|
+
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 };
|
|
4476
|
+
if (countryCode)
|
|
4477
|
+
return {
|
|
4478
|
+
countryCode_eq: countryCode,
|
|
4479
|
+
};
|
|
4480
|
+
return {};
|
|
4481
|
+
}
|
|
4482
|
+
return {
|
|
4483
|
+
step,
|
|
4484
|
+
setStep,
|
|
4485
|
+
context,
|
|
4486
|
+
namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
|
|
4487
|
+
loading: step === "/loading",
|
|
4488
|
+
};
|
|
4489
|
+
}
|
|
4490
|
+
|
|
4491
|
+
const TaxAndCashMonolith = class {
|
|
4492
|
+
constructor(hostRef) {
|
|
4493
|
+
index.registerInstance(this, hostRef);
|
|
4494
|
+
/*---------------------------------------------------------------------------------
|
|
4495
|
+
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4496
|
+
-----------------------------------------------------------------------------------*/
|
|
4497
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4498
|
+
STEP 1 PROPS:
|
|
4499
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4500
|
+
/**
|
|
4501
|
+
* @uiName First name field label
|
|
4502
|
+
* @uiGroup Step 1 Properties
|
|
4503
|
+
*/
|
|
4504
|
+
this.step1_firstName = "First name";
|
|
4505
|
+
/**
|
|
4506
|
+
* @uiName Last name field label
|
|
4507
|
+
* @uiGroup Step 1 Properties
|
|
4508
|
+
*/
|
|
4509
|
+
this.step1_lastName = "Last name";
|
|
4510
|
+
/**
|
|
4511
|
+
* @uiName Email field label
|
|
4512
|
+
* @uiGroup Step 1 Properties
|
|
4513
|
+
*/
|
|
4514
|
+
this.step1_email = "Email";
|
|
4515
|
+
/**
|
|
4516
|
+
* @uiName Country field label
|
|
4517
|
+
* @uiGroup Step 1 Properties
|
|
4518
|
+
*/
|
|
4519
|
+
this.step1_country = "Country";
|
|
4520
|
+
/**
|
|
4521
|
+
* @uiName Phone number field label
|
|
4522
|
+
* @uiGroup Step 1 Properties
|
|
4523
|
+
*/
|
|
4524
|
+
this.step1_phoneNumber = "Phone number";
|
|
4525
|
+
/**
|
|
4526
|
+
* @uiName Address field label
|
|
4527
|
+
* @uiGroup Step 1 Properties
|
|
4528
|
+
*/
|
|
4529
|
+
this.step1_address = "Address";
|
|
4530
|
+
/**
|
|
4531
|
+
* @uiName City field label
|
|
4532
|
+
* @uiGroup Step 1 Properties
|
|
4533
|
+
*/
|
|
4534
|
+
this.step1_city = "City";
|
|
4535
|
+
/**
|
|
4536
|
+
* @uiName State field label for states
|
|
4537
|
+
* @uiGroup Step 1 Properties
|
|
4538
|
+
*/
|
|
4539
|
+
this.step1_state = "State";
|
|
4540
|
+
/**
|
|
4541
|
+
* @uiName State field label for provinces
|
|
4542
|
+
* @uiGroup Step 1 Properties
|
|
4543
|
+
*/
|
|
4544
|
+
this.step1_province = "Province";
|
|
4545
|
+
/**
|
|
4546
|
+
* @uiName State field label for regions
|
|
4547
|
+
* @uiGroup Step 1 Properties
|
|
4548
|
+
*/
|
|
4549
|
+
this.step1_region = "Region";
|
|
4550
|
+
/**
|
|
4551
|
+
* @uiName Postal code field label
|
|
4552
|
+
* @uiGroup Step 1 Properties
|
|
4553
|
+
*/
|
|
4554
|
+
this.step1_postalCode = "Postal code";
|
|
4555
|
+
/**
|
|
4556
|
+
* @uiName Currency field label
|
|
4557
|
+
* @uiGroup Step 1 Properties
|
|
4558
|
+
*/
|
|
4559
|
+
this.step1_currency = "Currency";
|
|
4560
|
+
/**
|
|
4561
|
+
* @uiName Currency field help text
|
|
4562
|
+
* @uiGroup Step 1 Properties
|
|
4563
|
+
*/
|
|
4564
|
+
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4565
|
+
/**
|
|
4566
|
+
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4567
|
+
* @uiName Terms and conditions checkbox
|
|
4568
|
+
* @uiGroup Step 1 Properties
|
|
4569
|
+
*/
|
|
4570
|
+
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4571
|
+
/**
|
|
4572
|
+
* @uiName Step 1 title
|
|
4573
|
+
* @uiGroup Step 1 Properties
|
|
4574
|
+
*/
|
|
4575
|
+
this.step1_personalInformation = "Personal Information";
|
|
4576
|
+
/**
|
|
4577
|
+
* The link text that appears in the terms and conditions checkbox
|
|
4578
|
+
* @uiName Terms and conditions text
|
|
4579
|
+
* @uiGroup Step 1 Properties
|
|
4580
|
+
* @uiWidget textArea
|
|
4581
|
+
*/
|
|
4582
|
+
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4583
|
+
/**
|
|
4584
|
+
* The link that appears in the terms and conditions checkbox
|
|
4585
|
+
* @uiName Terms and conditions link
|
|
4586
|
+
* @uiGroup Step 1 Properties
|
|
4587
|
+
*/
|
|
4588
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4589
|
+
/**
|
|
4590
|
+
* Placeholder text displayed in the currency search dropdown
|
|
4591
|
+
* @uiName Currency field placeholder text
|
|
4592
|
+
* @uiGroup Step 1 Properties
|
|
4593
|
+
*/
|
|
4594
|
+
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4595
|
+
/**
|
|
4596
|
+
|
|
4597
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4598
|
+
STEP 2 PROPS:
|
|
4599
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4600
|
+
/**
|
|
4601
|
+
* @uiName Step 2 title
|
|
4602
|
+
* @uiGroup Step 2 Properties
|
|
4603
|
+
*/
|
|
4604
|
+
this.step2_indirectTax = "Indirect Tax";
|
|
4605
|
+
/**
|
|
4606
|
+
* Displayed under the title of this step.
|
|
4607
|
+
* @uiName Step 2 description
|
|
4608
|
+
* @uiGroup Step 2 Properties
|
|
4609
|
+
* @uiWidget textArea
|
|
4610
|
+
*/
|
|
4611
|
+
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.";
|
|
4612
|
+
/**
|
|
4613
|
+
* Displayed with indirect tax registration options.
|
|
4614
|
+
* @uiName Indirect tax details section title
|
|
4615
|
+
* @uiGroup Step 2 Properties
|
|
4616
|
+
*/
|
|
4617
|
+
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4618
|
+
/**
|
|
4619
|
+
* @uiName Registered for indirect tax option
|
|
4620
|
+
* @uiGroup Step 2 Properties
|
|
4621
|
+
* @uiWidget textArea
|
|
4622
|
+
*
|
|
4623
|
+
*/
|
|
4624
|
+
this.step2_otherRegion = "Registered for indirect tax";
|
|
4625
|
+
/**
|
|
4626
|
+
* Selecting this option will display fields to enter indirect tax details.
|
|
4627
|
+
* @uiName Registered for indirect tax option description
|
|
4628
|
+
* @uiGroup Step 2 Properties
|
|
4629
|
+
*/
|
|
4630
|
+
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4631
|
+
/**
|
|
4632
|
+
* @uiName Not registered for indirect tax option
|
|
4633
|
+
* @uiGroup Step 2 Properties
|
|
4634
|
+
* @uiWidget textArea
|
|
4635
|
+
*/
|
|
4636
|
+
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4637
|
+
/**
|
|
4638
|
+
* Participants based in the US are considered not registered.
|
|
4639
|
+
* @uiName Not registered for indirect tax option description
|
|
4640
|
+
* @uiGroup Step 2 Properties
|
|
4641
|
+
*/
|
|
4642
|
+
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4643
|
+
/**
|
|
4644
|
+
* @uiName Region of indirect tax field label
|
|
4645
|
+
* @uiGroup Step 2 Properties
|
|
4646
|
+
*/
|
|
4647
|
+
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4648
|
+
/**
|
|
4649
|
+
* @uiName Indirect tax number field label
|
|
4650
|
+
* @uiGroup Step 2 Properties
|
|
4651
|
+
*/
|
|
4652
|
+
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4653
|
+
/**
|
|
4654
|
+
* @uiName Province field label
|
|
4655
|
+
* @uiGroup Step 2 Properties
|
|
4656
|
+
*/
|
|
4657
|
+
this.step2_province = "Province";
|
|
4658
|
+
/**
|
|
4659
|
+
* @uiName Missing indirect tax number error message
|
|
4660
|
+
* @uiGroup Step 2 Properties
|
|
4661
|
+
*/
|
|
4662
|
+
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";
|
|
4663
|
+
/**
|
|
4664
|
+
* Displayed to participants registered for QST.
|
|
4665
|
+
* @uiName QST number field label
|
|
4666
|
+
* @uiGroup Step 2 Properties
|
|
4667
|
+
*/
|
|
4668
|
+
this.step2_qstNumber = "QST number";
|
|
4669
|
+
/**
|
|
4670
|
+
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4671
|
+
* @uiName QST tax checkbox
|
|
4672
|
+
* @uiGroup Step 2 Properties
|
|
4673
|
+
*/
|
|
4674
|
+
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4675
|
+
/**
|
|
4676
|
+
* Displayed to participants registered for indirect tax in Spain.
|
|
4677
|
+
* @uiName Spain income tax checkbox
|
|
4678
|
+
* @uiGroup Step 2 Properties
|
|
4679
|
+
* @uiWidget textArea
|
|
4680
|
+
*/
|
|
4681
|
+
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.";
|
|
4682
|
+
/**
|
|
4683
|
+
* Displayed to participants registered in Spain.
|
|
4684
|
+
* @uiName Sub-region of indirect tax field label
|
|
4685
|
+
* @uiGroup Step 2 Properties
|
|
4686
|
+
*/
|
|
4687
|
+
this.step2_subRegion = "Sub-region";
|
|
4688
|
+
/**
|
|
4689
|
+
* @uiName Income tax field label
|
|
4690
|
+
* @uiGroup Step 2 Properties
|
|
4691
|
+
*/
|
|
4692
|
+
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4693
|
+
/**
|
|
4694
|
+
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4695
|
+
* @uiName Submission confirmation alert
|
|
4696
|
+
* @uiGroup Step 2 Properties
|
|
4697
|
+
* @uiWidget textArea
|
|
4698
|
+
*/
|
|
4699
|
+
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.";
|
|
4700
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4701
|
+
STEP 3 PROPS:
|
|
4702
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4703
|
+
/**
|
|
4704
|
+
* @uiName Step 3 title
|
|
4705
|
+
* @uiGroup Step 3 Properties
|
|
4706
|
+
*/
|
|
4707
|
+
this.step3_taxForm = "Tax form";
|
|
4708
|
+
/**
|
|
4709
|
+
* Display the type of tax form that the participant must submit.
|
|
4710
|
+
* @uiName Tax form name
|
|
4711
|
+
* @uiGroup Step 3 Properties
|
|
4712
|
+
*/
|
|
4713
|
+
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4714
|
+
/**
|
|
4715
|
+
* @uiName Participant type field label
|
|
4716
|
+
* @uiGroup Step 3 Properties
|
|
4717
|
+
*/
|
|
4718
|
+
this.step3_participantType = "Participant type";
|
|
4719
|
+
/**
|
|
4720
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4721
|
+
* @uiName Business representative participant type label
|
|
4722
|
+
* @uiGroup Step 3 Properties
|
|
4723
|
+
*/
|
|
4724
|
+
this.step3_businessEntity = "I represent a business";
|
|
4725
|
+
/**
|
|
4726
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4727
|
+
* @uiName Individual participant type label
|
|
4728
|
+
* @uiGroup Step 3 Properties
|
|
4729
|
+
*/
|
|
4730
|
+
this.step3_individualParticipant = "I am an individual participant";
|
|
4731
|
+
/**
|
|
4732
|
+
* Displayed at the top of the page to participants based in the US.
|
|
4733
|
+
* @uiName W-9 tax form description
|
|
4734
|
+
* @uiGroup Step 3 Properties
|
|
4735
|
+
* @uiWidget textArea
|
|
4736
|
+
*/
|
|
4737
|
+
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4738
|
+
/**
|
|
4739
|
+
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4740
|
+
* @uiName W-8 BEN tax form description
|
|
4741
|
+
* @uiGroup Step 3 Properties
|
|
4742
|
+
* @uiWidget textArea
|
|
4743
|
+
*/
|
|
4744
|
+
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4745
|
+
/**
|
|
4746
|
+
* Displayed at the top of the page to participants representing a business.
|
|
4747
|
+
* @uiName W-8 BEN-E tax form description
|
|
4748
|
+
* @uiGroup Step 3 Properties
|
|
4749
|
+
* @uiWidget textArea
|
|
4750
|
+
*/
|
|
4751
|
+
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4752
|
+
/**
|
|
4753
|
+
* This appears inside the Docusign frame.
|
|
4754
|
+
* @uiName Docusign session expired message
|
|
4755
|
+
* @uiGroup Step 3 Properties
|
|
4756
|
+
* @uiWidget textArea
|
|
4757
|
+
*/
|
|
4758
|
+
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.";
|
|
4759
|
+
/**
|
|
4760
|
+
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4761
|
+
* @uiName Docusign timed session message
|
|
4762
|
+
* @uiGroup Step 3 Properties
|
|
4763
|
+
* @uiWidget textArea
|
|
4764
|
+
*/
|
|
4765
|
+
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4766
|
+
/**
|
|
4767
|
+
* This appears inside the Docusign frame.
|
|
4768
|
+
* @uiName Docusign form error message
|
|
4769
|
+
* @uiGroup Step 3 Properties
|
|
4770
|
+
* @uiWidget textArea
|
|
4771
|
+
*/
|
|
4772
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4773
|
+
/**
|
|
4774
|
+
* @uiName Refresh page button label
|
|
4775
|
+
* @uiGroup Step 3 Properties
|
|
4776
|
+
*/
|
|
4777
|
+
this.step3_refreshButton = "Refresh Page";
|
|
4778
|
+
/**
|
|
4779
|
+
* @uiName Exit button text
|
|
4780
|
+
* @uiGroup Step 3 Properties
|
|
4781
|
+
*/
|
|
4782
|
+
this.step3_exitButton = "Exit";
|
|
4783
|
+
/**
|
|
4784
|
+
* @uiName Information modal title
|
|
4785
|
+
* @uiGroup Step 3 Properties
|
|
4786
|
+
*/
|
|
4787
|
+
this.step3_modalTitle = "Important Note";
|
|
4788
|
+
/**
|
|
4789
|
+
* @uiName Information modal description text
|
|
4790
|
+
* @uiGroup Step 3 Properties
|
|
4791
|
+
*/
|
|
4792
|
+
this.step3_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.";
|
|
4793
|
+
/**
|
|
4794
|
+
* @uiName Information modal button text
|
|
4795
|
+
* @uiGroup Step 3 Properties
|
|
4796
|
+
*/
|
|
4797
|
+
this.step3_modalButtonText = "I understand";
|
|
4798
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4799
|
+
STEP 4 PROPS:
|
|
4800
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4801
|
+
/**
|
|
4802
|
+
* @uiName Step 4 title
|
|
4803
|
+
* @uiGroup Step 4 Properties
|
|
4804
|
+
*/
|
|
4805
|
+
this.step4_taxAndPayouts = "Payouts";
|
|
4806
|
+
/**
|
|
4807
|
+
* @uiName Direct to bank payout option
|
|
4808
|
+
* @uiGroup Step 4 Properties
|
|
4809
|
+
*/
|
|
4810
|
+
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4811
|
+
/**
|
|
4812
|
+
* @uiName PayPal payout option
|
|
4813
|
+
* @uiGroup Step 4 Properties
|
|
4814
|
+
*/
|
|
4815
|
+
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4816
|
+
/**
|
|
4817
|
+
* @uiName Threshold balance payment schedule option
|
|
4818
|
+
* @uiGroup Step 4 Properties
|
|
4819
|
+
*/
|
|
4820
|
+
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4821
|
+
/**
|
|
4822
|
+
* @uiName Fixed day payment schedule option
|
|
4823
|
+
* @uiGroup Step 4 Properties
|
|
4824
|
+
*/
|
|
4825
|
+
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4826
|
+
/**
|
|
4827
|
+
* Let the participant choose what day of the month they’ll get paid
|
|
4828
|
+
* @uiName Payment day field label
|
|
4829
|
+
* @uiGroup Step 4 Properties
|
|
4830
|
+
*/
|
|
4831
|
+
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4832
|
+
/**
|
|
4833
|
+
* Participant use this field to select the balance at which they want to be paid
|
|
4834
|
+
* @uiName Payment threshold field label
|
|
4835
|
+
* @uiGroup Step 4 Properties
|
|
4836
|
+
*/
|
|
4837
|
+
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4838
|
+
/**
|
|
4839
|
+
* One of two payment day options
|
|
4840
|
+
* @uiName First of month payday option
|
|
4841
|
+
* @uiGroup Step 4 Properties
|
|
4842
|
+
*/
|
|
4843
|
+
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4844
|
+
/**
|
|
4845
|
+
* One of two payment day options
|
|
4846
|
+
* @uiName Fifteenth of month payday option
|
|
4847
|
+
* @uiGroup Step 4 Properties
|
|
4848
|
+
*/
|
|
4849
|
+
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4850
|
+
/**
|
|
4851
|
+
* @uiName Payment method section header
|
|
4852
|
+
* @uiGroup Step 4 Properties
|
|
4853
|
+
*/
|
|
4854
|
+
this.step4_paymentMethod = "Payment method";
|
|
4855
|
+
/**
|
|
4856
|
+
* @uiName Payment schedule section header
|
|
4857
|
+
* @uiGroup Step 4 Properties
|
|
4858
|
+
*/
|
|
4859
|
+
this.step4_paymentSchedule = "Payment schedule";
|
|
4860
|
+
/**
|
|
4861
|
+
* @uiName Payment method section description
|
|
4862
|
+
* @uiGroup Step 4 Properties
|
|
4863
|
+
*/
|
|
4864
|
+
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4865
|
+
/**
|
|
4866
|
+
* Displayed to participants who choose PayPal as their payout method
|
|
4867
|
+
* @uiName PayPal email field label
|
|
4868
|
+
* @uiGroup Step 4 Properties
|
|
4869
|
+
*/
|
|
4870
|
+
this.step4_payPalInputLabel = "PayPal email";
|
|
4871
|
+
/**
|
|
4872
|
+
* @uiName Bank country field label
|
|
4873
|
+
* @uiGroup Step 4 Properties
|
|
4874
|
+
*/
|
|
4875
|
+
this.step4_bankLocationLabel = "Bank country location";
|
|
4876
|
+
/**
|
|
4877
|
+
* @uiName Beneficiary account field label
|
|
4878
|
+
* @uiGroup Step 4 Properties
|
|
4879
|
+
*/
|
|
4880
|
+
this.step4_beneficiaryAccountNameLabel = "Account holder name";
|
|
4881
|
+
/**
|
|
4882
|
+
* @uiName Beneficiary account field description
|
|
4883
|
+
* @uiGroup Step 4 Properties
|
|
4884
|
+
*/
|
|
4885
|
+
this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
4886
|
+
/**
|
|
4887
|
+
* @uiName Bank account type field label
|
|
4888
|
+
* @uiGroup Step 4 Properties
|
|
4889
|
+
*/
|
|
4890
|
+
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4891
|
+
/**
|
|
4892
|
+
* @uiName Checking account option
|
|
4893
|
+
* @uiGroup Step 4 Properties
|
|
4894
|
+
*/
|
|
4895
|
+
this.step4_checkingSelectItemLabel = "Checking";
|
|
4896
|
+
/**
|
|
4897
|
+
* Label text for the savings account type select item
|
|
4898
|
+
* @uiName Savings account options
|
|
4899
|
+
* @uiGroup Step 4 Properties
|
|
4900
|
+
*/
|
|
4901
|
+
this.step4_savingsSelectItemLabel = "Savings";
|
|
4902
|
+
/**
|
|
4903
|
+
* @uiName Bank account number field label
|
|
4904
|
+
* @uiGroup Step 4 Properties
|
|
4905
|
+
*/
|
|
4906
|
+
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4907
|
+
/**
|
|
4908
|
+
* @uiName IBAN field label
|
|
4909
|
+
* @uiGroup Step 4 Properties
|
|
4910
|
+
*/
|
|
4911
|
+
this.step4_ibanLabel = "IBAN";
|
|
4912
|
+
/**
|
|
4913
|
+
* @uiName SWIFT code field label
|
|
4914
|
+
* @uiGroup Step 4 Properties
|
|
4915
|
+
*/
|
|
4916
|
+
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4917
|
+
/**
|
|
4918
|
+
* @uiName Routing code field label
|
|
4919
|
+
* @uiGroup Step 4 Properties
|
|
4920
|
+
*/
|
|
4921
|
+
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} }";
|
|
4922
|
+
/**
|
|
4923
|
+
* @uiName Bank name field label
|
|
4924
|
+
* @uiGroup Step 4 Properties
|
|
4925
|
+
*/
|
|
4926
|
+
this.step4_bankNameLabel = "Bank name";
|
|
4927
|
+
/**
|
|
4928
|
+
* @uiName Classification entity field label
|
|
4929
|
+
* @uiGroup Step 4 Properties
|
|
4930
|
+
*/
|
|
4931
|
+
this.step4_classificationEntityLabel = "Classification entity";
|
|
4932
|
+
/**
|
|
4933
|
+
* One of three options listed for the classification field
|
|
4934
|
+
* @uiName Business classification option
|
|
4935
|
+
* @uiGroup Step 4 Properties
|
|
4936
|
+
*/
|
|
4937
|
+
this.step4_businessSelectItemLabel = "Business";
|
|
4938
|
+
/**
|
|
4939
|
+
* One of three options listed for the classification field
|
|
4940
|
+
* @uiName Individual classification option
|
|
4941
|
+
* @uiGroup Step 4 Properties
|
|
4942
|
+
*/
|
|
4943
|
+
this.step4_individualSelectItemLabel = "Individual";
|
|
4944
|
+
/**
|
|
4945
|
+
* One of three options listed for the classification field
|
|
4946
|
+
* @uiName Foreign classification option
|
|
4947
|
+
* @uiGroup Step 4 Properties
|
|
4948
|
+
*/
|
|
4949
|
+
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4950
|
+
/**
|
|
4951
|
+
* @uiName Classification CPF field label
|
|
4952
|
+
* @uiGroup Step 4 Properties
|
|
4953
|
+
*/
|
|
4954
|
+
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4955
|
+
/**
|
|
4956
|
+
* @uiName Patronymic name field label
|
|
4957
|
+
* @uiGroup Step 4 Properties
|
|
4958
|
+
*/
|
|
4959
|
+
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4960
|
+
/**
|
|
4961
|
+
* @uiName VO code field label
|
|
4962
|
+
* @uiGroup Step 4 Properties
|
|
4963
|
+
*/
|
|
4964
|
+
this.step4_voCodeLabel = "VO code";
|
|
4965
|
+
/**
|
|
4966
|
+
* @uiName Agency code field label
|
|
4967
|
+
* @uiGroup Step 4 Properties
|
|
4968
|
+
*/
|
|
4969
|
+
this.step4_agencyCodeLabel = "Agency code";
|
|
4970
|
+
/**
|
|
4971
|
+
* @uiName Branch code field label
|
|
4972
|
+
* @uiGroup Step 4 Properties
|
|
4973
|
+
*/
|
|
4974
|
+
this.step4_branchCodeLabel = "Branch code";
|
|
4975
|
+
/**
|
|
4976
|
+
* Label text for the classification input field
|
|
4977
|
+
* @uiName Classification field label
|
|
4978
|
+
* @uiGroup Step 4 Properties
|
|
4979
|
+
*/
|
|
4980
|
+
this.step4_classificationLabel = "Classification";
|
|
4981
|
+
/**
|
|
4982
|
+
* @uiName Taxpayer ID field label
|
|
4983
|
+
* @uiGroup Step 4 Properties
|
|
4984
|
+
*/
|
|
4985
|
+
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4986
|
+
/**
|
|
4987
|
+
* @uiName Bank address field label
|
|
4988
|
+
* @uiGroup Step 4 Properties
|
|
4989
|
+
*/
|
|
4990
|
+
this.step4_bankAddressLabel = "Bank address";
|
|
4991
|
+
/**
|
|
4992
|
+
* @uiName Bank city field label
|
|
4993
|
+
* @uiGroup Step 4 Properties
|
|
4994
|
+
*/
|
|
4995
|
+
this.step4_bankCityLabel = "Bank city";
|
|
4996
|
+
/**
|
|
4997
|
+
* @uiName Bank province/state field label
|
|
4998
|
+
* @uiGroup Step 4 Properties
|
|
4999
|
+
*/
|
|
5000
|
+
this.step4_bankStateLabel = "Bank Province / State";
|
|
5001
|
+
/**
|
|
5002
|
+
* @uiName Bank postal code field label
|
|
5003
|
+
* @uiGroup Step 4 Properties
|
|
5004
|
+
*/
|
|
5005
|
+
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
5006
|
+
/**
|
|
5007
|
+
* Default payment method to the participants’ bank account.
|
|
5008
|
+
* @uiName EFT withdrawal payment method
|
|
5009
|
+
* @uiGroup Step 4 Properties
|
|
5010
|
+
*/
|
|
5011
|
+
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
5012
|
+
/**
|
|
5013
|
+
* @uiName FX Wire Processing fee text
|
|
5014
|
+
* @uiGroup Step 4 Properties
|
|
5015
|
+
*/
|
|
5016
|
+
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
5017
|
+
/**
|
|
5018
|
+
* @uiName Text for verify email dialog
|
|
5019
|
+
* @uiGroup Step 4 Properties
|
|
5020
|
+
*/
|
|
5021
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
5022
|
+
/**
|
|
5023
|
+
* @uiName Verify code widget header text
|
|
5024
|
+
* @uiGroup Step 4 Properties
|
|
5025
|
+
*/
|
|
5026
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
5027
|
+
/**
|
|
5028
|
+
* @uiName Information modal title
|
|
5029
|
+
* @uiGroup Step 4 Properties
|
|
5030
|
+
*/
|
|
5031
|
+
this.step4_modalTitle = "Important Note";
|
|
5032
|
+
/**
|
|
5033
|
+
* @uiName Information modal description text
|
|
5034
|
+
* @uiGroup Step 4 Properties
|
|
5035
|
+
*/
|
|
5036
|
+
this.step4_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.";
|
|
5037
|
+
/**
|
|
5038
|
+
* @uiName Information modal button text
|
|
5039
|
+
* @uiGroup Step 4 Properties
|
|
5040
|
+
*/
|
|
5041
|
+
this.step4_modalButtonText = "I understand, update my information";
|
|
5042
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5043
|
+
DASHBOARD PROPS:
|
|
5044
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5045
|
+
/**
|
|
5046
|
+
* @uiName Active tax form badge label
|
|
5047
|
+
* @uiGroup Dashboard Properties
|
|
5048
|
+
*/
|
|
5049
|
+
this.dashboard_statusTextActive = "Active";
|
|
5050
|
+
/**
|
|
5051
|
+
* @uiName Invalid tax form badge label
|
|
5052
|
+
* @uiGroup Dashboard Properties
|
|
5053
|
+
*/
|
|
5054
|
+
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
5055
|
+
/**
|
|
5056
|
+
* Displayed when the participant submitted their form but it is awaiting review.
|
|
5057
|
+
*
|
|
5058
|
+
* @uiName Not verified tax form badge label
|
|
5059
|
+
* @uiGroup Dashboard Properties
|
|
5060
|
+
*/
|
|
5061
|
+
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
5062
|
+
/**
|
|
5063
|
+
* Displayed when the participant has not submitted their required tax form.
|
|
5064
|
+
*
|
|
5065
|
+
* @uiName Required tax form badge label
|
|
5066
|
+
*/
|
|
5067
|
+
this.dashboard_statusTextRequired = "Required";
|
|
5068
|
+
/**
|
|
5069
|
+
* Additional text displayed next to the tax form's status badge
|
|
5070
|
+
*
|
|
5071
|
+
* @uiName Required tax form description
|
|
5072
|
+
*/
|
|
5073
|
+
this.dashboard_requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
|
|
5074
|
+
/**
|
|
5075
|
+
* Additional text displayed next to the tax form's status badge
|
|
5076
|
+
*
|
|
5077
|
+
* @uiName Active W-9 description
|
|
5078
|
+
* @uiGroup Dashboard Properties
|
|
5079
|
+
*/
|
|
5080
|
+
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
5081
|
+
/**
|
|
5082
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5083
|
+
*
|
|
5084
|
+
* @uiName Active W-8 description
|
|
5085
|
+
* @uiGroup Dashboard Properties
|
|
5086
|
+
*/
|
|
5087
|
+
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
5088
|
+
/**
|
|
5089
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5090
|
+
*
|
|
5091
|
+
* @uiName Tax form in review description
|
|
5092
|
+
* @uiGroup Dashboard Properties
|
|
5093
|
+
*/
|
|
5094
|
+
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
5095
|
+
/**
|
|
5096
|
+
* Part of the alert displayed at the top of the page.
|
|
5097
|
+
*
|
|
5098
|
+
* @uiName Inactive W-9 error message title
|
|
5099
|
+
* @uiGroup Dashboard Properties
|
|
5100
|
+
* @uiWidget textArea
|
|
5101
|
+
*/
|
|
5102
|
+
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
5103
|
+
/**
|
|
5104
|
+
* Part of the alert displayed at the top of the page.
|
|
5105
|
+
*
|
|
5106
|
+
* @uiName Inactive W-8 error message title
|
|
5107
|
+
* @uiGroup Dashboard Properties
|
|
5108
|
+
* @uiWidget textArea
|
|
5109
|
+
*/
|
|
5110
|
+
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
5111
|
+
/**
|
|
5112
|
+
* Part of the alert displayed at the top of the page.
|
|
5113
|
+
*
|
|
5114
|
+
* @uiName Inactive W-9 error message description
|
|
5115
|
+
* @uiGroup Dashboard Properties
|
|
5116
|
+
* @uiWidget textArea
|
|
5117
|
+
*/
|
|
5118
|
+
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
5119
|
+
/**
|
|
5120
|
+
* Part of the alert displayed at the top of the page.
|
|
5121
|
+
*
|
|
5122
|
+
* @uiName Inactive W-8 error message description
|
|
5123
|
+
* @uiGroup Dashboard Properties
|
|
5124
|
+
*/
|
|
5125
|
+
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.";
|
|
5126
|
+
/**
|
|
5127
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5128
|
+
*
|
|
5129
|
+
* @uiName Invalid tax form description
|
|
5130
|
+
* @uiGroup Dashboard Properties
|
|
5131
|
+
* @uiWidget textArea
|
|
5132
|
+
*/
|
|
5133
|
+
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
5134
|
+
/**
|
|
5135
|
+
* @uiName Payout information section header
|
|
5136
|
+
* @uiGroup Dashboard Properties
|
|
5137
|
+
*/
|
|
5138
|
+
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
5139
|
+
/**
|
|
5140
|
+
* @uiName Tax document section header
|
|
5141
|
+
* @uiGroup Dashboard Properties
|
|
5142
|
+
*/
|
|
5143
|
+
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
5144
|
+
/**
|
|
5145
|
+
* Displayed under the tax document section header.
|
|
5146
|
+
*
|
|
5147
|
+
* @uiName Tax documents section description
|
|
5148
|
+
* @uiGroup Dashboard Properties
|
|
5149
|
+
*/
|
|
5150
|
+
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
5151
|
+
/**
|
|
5152
|
+
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
5153
|
+
*
|
|
5154
|
+
* @uiName Tax form not required text
|
|
5155
|
+
* @uiGroup Dashboard Properties
|
|
5156
|
+
* @uiWidget textArea
|
|
5157
|
+
*/
|
|
5158
|
+
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.";
|
|
5159
|
+
/**
|
|
5160
|
+
*
|
|
5161
|
+
* @uiName Indirect tax section header
|
|
5162
|
+
* @uiGroup Dashboard Properties
|
|
5163
|
+
*/
|
|
5164
|
+
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
5165
|
+
/**
|
|
5166
|
+
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
5167
|
+
*
|
|
5168
|
+
* @uiName Canadian province of indirect tax
|
|
5169
|
+
* @uiGroup Dashboard Properties
|
|
5170
|
+
*/
|
|
5171
|
+
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
5172
|
+
/**
|
|
5173
|
+
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5174
|
+
*
|
|
5175
|
+
* @uiName Indirect tax country
|
|
5176
|
+
* @uiGroup Dashboard Properties
|
|
5177
|
+
*/
|
|
5178
|
+
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5179
|
+
/**
|
|
5180
|
+
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5181
|
+
*
|
|
5182
|
+
* @uiName Spanish region of indirect tax
|
|
5183
|
+
* @uiGroup Dashboard Properties
|
|
5184
|
+
*/
|
|
5185
|
+
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5186
|
+
/**
|
|
5187
|
+
* @uiName Indirect tax tooltip
|
|
5188
|
+
* @uiGroup Dashboard Properties
|
|
5189
|
+
* @uiWidget textArea
|
|
5190
|
+
*/
|
|
5191
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5192
|
+
/**
|
|
5193
|
+
* Displayed to participants who have submitted their indirect tax information.
|
|
5194
|
+
*
|
|
5195
|
+
* @uiName Indirect tax details
|
|
5196
|
+
* @uiGroup Dashboard Properties
|
|
5197
|
+
*/
|
|
5198
|
+
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5199
|
+
/**
|
|
5200
|
+
* @uiName Submit new tax form button label
|
|
5201
|
+
* @uiGroup Dashboard Properties
|
|
5202
|
+
*/
|
|
5203
|
+
this.dashboard_newFormButton = "Submit new form";
|
|
5204
|
+
/**
|
|
5205
|
+
* @uiName Edit payment info button label
|
|
5206
|
+
* @uiGroup Dashboard Properties
|
|
5207
|
+
*/
|
|
5208
|
+
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5209
|
+
/**
|
|
5210
|
+
* @uiName Not registered for indirect tax text
|
|
5211
|
+
* @uiGroup Dashboard Properties
|
|
5212
|
+
* @uiWidget textArea
|
|
5213
|
+
*/
|
|
5214
|
+
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.";
|
|
5215
|
+
/**
|
|
5216
|
+
* Displayed to participants registered in Quebec, Canada.
|
|
5217
|
+
* @uiName QST indirect tax details
|
|
5218
|
+
* @uiGroup Dashboard Properties
|
|
5219
|
+
*/
|
|
5220
|
+
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5221
|
+
/**
|
|
5222
|
+
* @uiName Spain sub-region indirect tax number
|
|
5223
|
+
* @uiGroup Dashboard Properties
|
|
5224
|
+
*/
|
|
5225
|
+
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5226
|
+
/**
|
|
5227
|
+
* @uiName Payout status badge
|
|
5228
|
+
* @uiGroup Dashboard Properties
|
|
5229
|
+
*/
|
|
5230
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5231
|
+
/**
|
|
5232
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5233
|
+
* @uiName Payout schedule by threshold text
|
|
5234
|
+
* @uiGroup Dashboard Properties
|
|
5235
|
+
*/
|
|
5236
|
+
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5237
|
+
/**
|
|
5238
|
+
* Shown before the participant’s bank account information.
|
|
5239
|
+
* @uiName Bank account field label
|
|
5240
|
+
* @uiGroup Dashboard Properties
|
|
5241
|
+
*/
|
|
5242
|
+
this.dashboard_accountText = "Account";
|
|
5243
|
+
/**
|
|
5244
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5245
|
+
* @uiName Invoice number column title
|
|
5246
|
+
* @uiGroup Dashboard Properties
|
|
5247
|
+
*/
|
|
5248
|
+
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5249
|
+
/**
|
|
5250
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5251
|
+
* @uiName Date column title
|
|
5252
|
+
* @uiGroup Dashboard Properties
|
|
5253
|
+
*/
|
|
5254
|
+
this.dashboard_dateColumnTitle = "Date";
|
|
5255
|
+
/**
|
|
5256
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5257
|
+
* @uiName Earnings column title
|
|
5258
|
+
* @uiGroup Dashboard Properties
|
|
5259
|
+
*/
|
|
5260
|
+
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5261
|
+
/**
|
|
5262
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5263
|
+
* @uiName Indirect tax column title
|
|
5264
|
+
* @uiGroup Dashboard Properties
|
|
5265
|
+
*/
|
|
5266
|
+
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5267
|
+
/**
|
|
5268
|
+
* Displayed under the payout details card.
|
|
5269
|
+
* @uiName Payout from impact text
|
|
5270
|
+
* @uiGroup Dashboard Properties
|
|
5271
|
+
* @uiWidget textArea
|
|
5272
|
+
*/
|
|
5273
|
+
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5274
|
+
/**
|
|
5275
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5276
|
+
* @uiName Earnings after tax column title
|
|
5277
|
+
* @uiGroup Dashboard Properties
|
|
5278
|
+
*/
|
|
5279
|
+
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5280
|
+
/**
|
|
5281
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5282
|
+
* @uiName Payout error message title
|
|
5283
|
+
* @uiGroup Dashboard Properties
|
|
5284
|
+
* @uiWidget textArea
|
|
5285
|
+
*/
|
|
5286
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5287
|
+
/**
|
|
5288
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5289
|
+
* @uiName Payout error message description
|
|
5290
|
+
* @uiGroup Dashboard Properties
|
|
5291
|
+
* @uiWidget textArea
|
|
5292
|
+
*/
|
|
5293
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5294
|
+
/**
|
|
5295
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
5296
|
+
* @uiName Payout missing information subtext
|
|
5297
|
+
* @uiGroup Dashboard Properties
|
|
5298
|
+
*/
|
|
5299
|
+
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5300
|
+
/**
|
|
5301
|
+
* @uiName Invoice table description
|
|
5302
|
+
* @uiGroup Dashboard Properties
|
|
5303
|
+
*/
|
|
5304
|
+
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5305
|
+
/**
|
|
5306
|
+
* @uiName Invoice table previous page button label
|
|
5307
|
+
* @uiGroup Dashboard Properties
|
|
5308
|
+
*/
|
|
5309
|
+
this.dashboard_invoicePrevLabel = "Prev";
|
|
5310
|
+
/**
|
|
5311
|
+
* @uiName Invoice table next page button label
|
|
5312
|
+
* @uiGroup Dashboard Properties
|
|
5313
|
+
*/
|
|
5314
|
+
this.dashboard_invoiceMoreLabel = "Next";
|
|
5315
|
+
/**
|
|
5316
|
+
* @uiName Invoice table title
|
|
5317
|
+
* @uiGroup Dashboard Properties
|
|
5318
|
+
*/
|
|
5319
|
+
this.dashboard_invoiceHeader = "Invoices";
|
|
5320
|
+
/**
|
|
5321
|
+
* @uiName Empty invoice table header
|
|
5322
|
+
* @uiGroup Dashboard Properties
|
|
5323
|
+
*/
|
|
5324
|
+
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5325
|
+
/**
|
|
5326
|
+
* @uiName Empty invoice table description
|
|
5327
|
+
* @uiGroup Dashboard Properties
|
|
5328
|
+
*/
|
|
5329
|
+
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5330
|
+
/**
|
|
5331
|
+
* @uiName Replace tax form modal header
|
|
5332
|
+
* @uiGroup Dashboard Properties
|
|
5333
|
+
*/
|
|
5334
|
+
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5335
|
+
/**
|
|
5336
|
+
* @uiName Replace tax form modal body text
|
|
5337
|
+
* @uiGroup Dashboard Properties
|
|
5338
|
+
* @uiWidget textArea
|
|
5339
|
+
*/
|
|
5340
|
+
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.";
|
|
5341
|
+
/**
|
|
5342
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5343
|
+
* @uiName Verification required alert message title
|
|
5344
|
+
* @uiGroup Dashboard Properties
|
|
5345
|
+
* @uiWidget textArea
|
|
5346
|
+
*/
|
|
5347
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5348
|
+
/**
|
|
5349
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5350
|
+
* @uiName Verification required alert message description
|
|
5351
|
+
* @uiGroup Dashboard Properties
|
|
5352
|
+
* @uiWidget textArea
|
|
5353
|
+
*/
|
|
5354
|
+
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}.";
|
|
5355
|
+
/**
|
|
5356
|
+
* @uiName Verification required internal alert header
|
|
5357
|
+
* @uiGroup Dashboard Properties
|
|
5358
|
+
* @uiWidget textArea
|
|
5359
|
+
*/
|
|
5360
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5361
|
+
/**
|
|
5362
|
+
* @uiName Verification required internal alert description
|
|
5363
|
+
* @uiGroup Dashboard Properties
|
|
5364
|
+
* @uiWidget textArea
|
|
5365
|
+
*/
|
|
5366
|
+
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}.";
|
|
5367
|
+
/**
|
|
5368
|
+
* @uiName Verification review internal alert header
|
|
5369
|
+
* @uiGroup Dashboard Properties
|
|
5370
|
+
* @uiWidget textArea
|
|
5371
|
+
*/
|
|
5372
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5373
|
+
/**
|
|
5374
|
+
* @uiName Verification review internal alert description
|
|
5375
|
+
* @uiGroup Dashboard Properties
|
|
5376
|
+
* @uiWidget textArea
|
|
5377
|
+
*/
|
|
5378
|
+
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}.";
|
|
5379
|
+
/**
|
|
5380
|
+
* @uiName Verification failed internal alert header
|
|
5381
|
+
* @uiGroup Dashboard Properties
|
|
5382
|
+
* @uiWidget textArea
|
|
5383
|
+
*/
|
|
5384
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5385
|
+
/**
|
|
5386
|
+
* @uiName Verification failed internal alert description
|
|
5387
|
+
* @uiGroup Dashboard Properties
|
|
5388
|
+
* @uiWidget textArea
|
|
5389
|
+
*/
|
|
5390
|
+
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}.";
|
|
5391
|
+
/**
|
|
5392
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5393
|
+
* @uiName Verification required alert button text
|
|
5394
|
+
* @uiGroup Dashboard Properties
|
|
5395
|
+
* @uiWidget textArea
|
|
5396
|
+
*/
|
|
5397
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5398
|
+
/**
|
|
5399
|
+
* @uiName W9 payment threshold alert header
|
|
5400
|
+
* @uiGroup Dashboard Properties
|
|
5401
|
+
* @uiWidget textArea
|
|
5402
|
+
*/
|
|
5403
|
+
this.dashboard_w9RequiredHeader = "Your next payout is on hold";
|
|
5404
|
+
/**
|
|
5405
|
+
* @uiName W9 payment threshold alert description
|
|
5406
|
+
* @uiGroup Dashboard Properties
|
|
5407
|
+
* @uiWidget textArea
|
|
5408
|
+
*/
|
|
5409
|
+
this.dashboard_w9RequiredDescription = "You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
|
|
5410
|
+
/**
|
|
5411
|
+
* @uiName W9 payment threshold alert button text
|
|
5412
|
+
* @uiGroup Dashboard Properties
|
|
5413
|
+
* @uiWidget textArea
|
|
5414
|
+
*/
|
|
5415
|
+
this.dashboard_w9RequiredButtonText = "Submit W9";
|
|
5416
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5417
|
+
GENERAL PROPS:
|
|
5418
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5419
|
+
/**
|
|
5420
|
+
* @uiName Setup progress
|
|
5421
|
+
* @uiGroup General Form Properties
|
|
5422
|
+
*/
|
|
5423
|
+
this.formStep = "Step {step} of {count}";
|
|
5424
|
+
/**
|
|
5425
|
+
* Part of the alert displayed at the top of the page.
|
|
5426
|
+
* @uiName Form submission error message title
|
|
5427
|
+
* @uiGroup General Form Properties
|
|
5428
|
+
* @uiWidget textArea
|
|
5429
|
+
*/
|
|
5430
|
+
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5431
|
+
/**
|
|
5432
|
+
* Part of the alert displayed at the top of the page.
|
|
5433
|
+
* @uiName Form submission error message description
|
|
5434
|
+
* @uiGroup General Form Properties
|
|
5435
|
+
* @uiWidget textArea
|
|
5436
|
+
*/
|
|
5437
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5438
|
+
/**
|
|
5439
|
+
* Displayed under a field that is missing required information.
|
|
5440
|
+
* @uiName Empty form field error message
|
|
5441
|
+
* @uiGroup General Form Properties
|
|
5442
|
+
*/
|
|
5443
|
+
this.fieldRequiredError = "{fieldName} is required";
|
|
5444
|
+
/**
|
|
5445
|
+
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5446
|
+
* @uiName Invalid character error message
|
|
5447
|
+
* @uiGroup General Form Properties
|
|
3632
5448
|
*/
|
|
3633
|
-
this.
|
|
5449
|
+
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
3634
5450
|
/**
|
|
3635
|
-
*
|
|
3636
|
-
* @uiName
|
|
5451
|
+
* Displayed under a field when it has an invalid entry.
|
|
5452
|
+
* @uiName Form field error message
|
|
5453
|
+
* @uiGroup General Form Properties
|
|
3637
5454
|
*/
|
|
3638
|
-
this.
|
|
5455
|
+
this.fieldInvalidError = "{fieldName} is invalid";
|
|
3639
5456
|
/**
|
|
3640
|
-
*
|
|
3641
|
-
* @
|
|
5457
|
+
* @uiName Continue button label
|
|
5458
|
+
* @uiGroup General Form Properties
|
|
3642
5459
|
*/
|
|
3643
|
-
this.
|
|
5460
|
+
this.continueButton = "Continue";
|
|
3644
5461
|
/**
|
|
3645
|
-
*
|
|
3646
|
-
* @
|
|
5462
|
+
* @uiName Back button label
|
|
5463
|
+
* @uiGroup General Form Properties
|
|
3647
5464
|
*/
|
|
3648
|
-
this.
|
|
5465
|
+
this.backButton = "Back";
|
|
5466
|
+
/**
|
|
5467
|
+
* @uiName Cancel button label
|
|
5468
|
+
* @uiGroup General Form Properties
|
|
5469
|
+
*/
|
|
5470
|
+
this.cancelButton = "Cancel";
|
|
5471
|
+
/**
|
|
5472
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5473
|
+
* @uiName Participant is a partner alert title
|
|
5474
|
+
* @uiGroup General Form Properties
|
|
5475
|
+
* @uiWidget textArea
|
|
5476
|
+
*/
|
|
5477
|
+
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5478
|
+
/**
|
|
5479
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5480
|
+
* @uiName Participant is a partner alert description
|
|
5481
|
+
* @uiGroup General Form Properties
|
|
5482
|
+
* @uiWidget textArea
|
|
5483
|
+
*/
|
|
5484
|
+
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.";
|
|
5485
|
+
/**
|
|
5486
|
+
* Placeholder text displayed in the country search dropdown
|
|
5487
|
+
* @uiName Country field placeholder text
|
|
5488
|
+
* @uiGroup General Form Properties
|
|
5489
|
+
*/
|
|
5490
|
+
this.searchForCountryText = "Search for country..";
|
|
5491
|
+
/**
|
|
5492
|
+
* Part of the alert displayed at the top of the page.
|
|
5493
|
+
* @uiName Page load error message title
|
|
5494
|
+
* @uiGroup General Form Properties
|
|
5495
|
+
* @uiWidget textArea
|
|
5496
|
+
*/
|
|
5497
|
+
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
3649
5498
|
/**
|
|
3650
|
-
*
|
|
5499
|
+
* Part of the alert displayed at the top of the page.
|
|
5500
|
+
* @uiName Page load error message description
|
|
5501
|
+
* @uiGroup General Form Properties
|
|
5502
|
+
* @uiWidget textArea
|
|
5503
|
+
*/
|
|
5504
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5505
|
+
/**
|
|
5506
|
+
* Displayed at the top of the page on all set up steps.
|
|
5507
|
+
* @uiName Page description
|
|
5508
|
+
* @uiGroup General Form Properties
|
|
3651
5509
|
*/
|
|
3652
|
-
this.
|
|
3653
|
-
|
|
5510
|
+
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5511
|
+
/**
|
|
5512
|
+
* Link text for contacting support team
|
|
5513
|
+
* @uiName Suport link text
|
|
5514
|
+
* @uiGroup General Form Properties
|
|
5515
|
+
*/
|
|
5516
|
+
this.supportLink = "support team";
|
|
5517
|
+
/**
|
|
5518
|
+
* Link text for Terms and Conditions
|
|
5519
|
+
* @uiName Terms and Conditions text
|
|
5520
|
+
* @uiGroup General Form Properties
|
|
5521
|
+
*/
|
|
5522
|
+
this.termsAndConditions = "Terms and Conditions";
|
|
5523
|
+
stencilHooks_module.h$1(this);
|
|
3654
5524
|
}
|
|
3655
5525
|
disconnectedCallback() { }
|
|
3656
|
-
|
|
5526
|
+
// this field is required prop
|
|
5527
|
+
getGeneralStepTextProps(prefix) {
|
|
3657
5528
|
const props = utils.getProps(this);
|
|
3658
5529
|
return {
|
|
3659
|
-
...props,
|
|
5530
|
+
...extractProps.extractProps(props, prefix),
|
|
5531
|
+
generalErrorTitle: props.generalErrorTitle,
|
|
5532
|
+
generalErrorDescription: props.generalErrorDescription,
|
|
5533
|
+
fieldRequiredError: props.fieldRequiredError,
|
|
5534
|
+
invalidCharacterError: props.invalidCharacterError,
|
|
5535
|
+
fieldInvalidError: props.fieldInvalidError,
|
|
5536
|
+
continueButton: props.continueButton,
|
|
5537
|
+
backButton: props.backButton,
|
|
5538
|
+
cancelButton: props.cancelButton,
|
|
5539
|
+
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5540
|
+
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5541
|
+
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5542
|
+
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5543
|
+
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5544
|
+
searchForCountryText: props.searchForCountryText,
|
|
5545
|
+
formStep: props.formStep,
|
|
5546
|
+
supportLink: props.supportLink,
|
|
3660
5547
|
};
|
|
3661
5548
|
}
|
|
3662
5549
|
render() {
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
5550
|
+
var _a, _b;
|
|
5551
|
+
const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
5552
|
+
// @ts-ignore
|
|
5553
|
+
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
5554
|
+
const textProps = utils.getProps(this);
|
|
5555
|
+
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5556
|
+
if (prop === "demoData")
|
|
5557
|
+
return;
|
|
5558
|
+
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
5559
|
+
})));
|
|
5560
|
+
}
|
|
5561
|
+
switch (props.step) {
|
|
5562
|
+
case "/1":
|
|
5563
|
+
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5564
|
+
case "/2":
|
|
5565
|
+
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5566
|
+
case "/3":
|
|
5567
|
+
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5568
|
+
case "/4":
|
|
5569
|
+
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5570
|
+
case "/dashboard":
|
|
5571
|
+
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5572
|
+
case "/error":
|
|
5573
|
+
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5574
|
+
}
|
|
5575
|
+
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
3667
5576
|
}
|
|
3668
5577
|
};
|
|
3669
|
-
function
|
|
5578
|
+
function useDemoTaxAndCash(props) {
|
|
5579
|
+
const [step, setStep] = index_module.In({
|
|
5580
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5581
|
+
initialValue: "/1",
|
|
5582
|
+
});
|
|
3670
5583
|
return cjs.cjs({
|
|
3671
|
-
|
|
3672
|
-
|
|
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(),
|
|
5584
|
+
step,
|
|
5585
|
+
setStep,
|
|
3687
5586
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3688
5587
|
}
|
|
3689
5588
|
|
|
3690
|
-
const style$
|
|
3691
|
-
|
|
5589
|
+
const style$6 = {
|
|
5590
|
+
ErrorAlertContainer: {
|
|
5591
|
+
"&::part(base)": {
|
|
5592
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
5593
|
+
borderTop: "none",
|
|
5594
|
+
},
|
|
5595
|
+
"& sl-icon::part(base)": {
|
|
5596
|
+
color: "var(--sl-color-danger-500)",
|
|
5597
|
+
},
|
|
5598
|
+
},
|
|
5599
|
+
WarningAlertContainer: {
|
|
3692
5600
|
"&::part(base)": {
|
|
3693
|
-
backgroundColor: "var(--
|
|
3694
|
-
|
|
5601
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5602
|
+
borderTop: "none",
|
|
5603
|
+
maxWidth: "600px",
|
|
5604
|
+
},
|
|
5605
|
+
"& sl-icon::part(base)": {
|
|
5606
|
+
color: "var(--sl-color-warning-500)",
|
|
5607
|
+
},
|
|
5608
|
+
},
|
|
5609
|
+
WarningHoldAlertContainer: {
|
|
5610
|
+
marginLeft: "-20px",
|
|
5611
|
+
"&::part(base)": {
|
|
5612
|
+
maxWidth: "850px",
|
|
5613
|
+
border: "none",
|
|
5614
|
+
backgroundColor: "transparent",
|
|
5615
|
+
},
|
|
5616
|
+
"& sl-icon::part(base)": {
|
|
5617
|
+
color: "var(--sl-color-warning-500)",
|
|
3695
5618
|
},
|
|
3696
5619
|
},
|
|
3697
|
-
|
|
5620
|
+
ErrorHoldAlertContainer: {
|
|
5621
|
+
marginLeft: "-20px",
|
|
3698
5622
|
"&::part(base)": {
|
|
3699
|
-
|
|
3700
|
-
|
|
5623
|
+
maxWidth: "850px",
|
|
5624
|
+
border: "none",
|
|
5625
|
+
backgroundColor: "transparent",
|
|
5626
|
+
},
|
|
5627
|
+
"& sl-icon::part(base)": {
|
|
5628
|
+
color: "var(--sl-color-danger-500)",
|
|
3701
5629
|
},
|
|
3702
5630
|
},
|
|
3703
|
-
|
|
5631
|
+
ExpiringSoonAlertContainer: {
|
|
3704
5632
|
"&::part(base)": {
|
|
3705
|
-
backgroundColor: "var(--
|
|
3706
|
-
|
|
5633
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5634
|
+
borderTop: "none",
|
|
3707
5635
|
},
|
|
3708
5636
|
},
|
|
3709
5637
|
BankingInformationContainer: {
|
|
@@ -3711,7 +5639,7 @@ const style$5 = {
|
|
|
3711
5639
|
},
|
|
3712
5640
|
IndirectTaxPreviewContainer: {
|
|
3713
5641
|
marginTop: "var(--sl-spacing-x-large)",
|
|
3714
|
-
borderTop: "
|
|
5642
|
+
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
3715
5643
|
},
|
|
3716
5644
|
IndirectTaxPreviewHeaderContainer: {
|
|
3717
5645
|
marginTop: "var(--sl-spacing-large)",
|
|
@@ -3720,7 +5648,7 @@ const style$5 = {
|
|
|
3720
5648
|
display: "flex",
|
|
3721
5649
|
gap: "var(--sl-spacing-x-small)",
|
|
3722
5650
|
"&::part(base)": {
|
|
3723
|
-
color: "var(--
|
|
5651
|
+
color: "var(--sl-color-green-500)",
|
|
3724
5652
|
},
|
|
3725
5653
|
},
|
|
3726
5654
|
IndirectTaxPreviewDetails: {
|
|
@@ -3734,11 +5662,11 @@ const style$5 = {
|
|
|
3734
5662
|
marginTop: "var(--sl-spacing-medium)",
|
|
3735
5663
|
},
|
|
3736
5664
|
NotRegisteredIndirectTaxText: {
|
|
3737
|
-
color: "var(--
|
|
5665
|
+
color: "var(--sl-color-gray-500)",
|
|
3738
5666
|
},
|
|
3739
5667
|
TaxDocumentsContainer: {
|
|
3740
5668
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
3741
|
-
borderTop: "1px solid var(--
|
|
5669
|
+
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
3742
5670
|
},
|
|
3743
5671
|
TaxDocumentsSectionHeaderContainer: {
|
|
3744
5672
|
marginTop: "var(--sl-spacing-x-large)",
|
|
@@ -3755,7 +5683,7 @@ const style$5 = {
|
|
|
3755
5683
|
"& p": {
|
|
3756
5684
|
margin: "0",
|
|
3757
5685
|
paddingTop: "2px",
|
|
3758
|
-
color: "var(--
|
|
5686
|
+
color: "var(--sl-color-gray-500)",
|
|
3759
5687
|
},
|
|
3760
5688
|
},
|
|
3761
5689
|
StatusAlert: {
|
|
@@ -3790,7 +5718,7 @@ const style$5 = {
|
|
|
3790
5718
|
},
|
|
3791
5719
|
TaxDocSubtext: {
|
|
3792
5720
|
margin: "0",
|
|
3793
|
-
color: "var(--
|
|
5721
|
+
color: "var(--sl-color-neutral-500)",
|
|
3794
5722
|
lineHeight: "var(--sl-spacing-medium)",
|
|
3795
5723
|
fontSize: "var(--sl-font-size-small)",
|
|
3796
5724
|
marginLeft: "1px",
|
|
@@ -3811,66 +5739,28 @@ const style$5 = {
|
|
|
3811
5739
|
gap: "6px",
|
|
3812
5740
|
},
|
|
3813
5741
|
DescriptionText: {
|
|
3814
|
-
color: "var(--
|
|
5742
|
+
color: "var(--sl-color-gray-500)",
|
|
3815
5743
|
fontSize: "var(--sl-font-size-x-small)",
|
|
3816
5744
|
marginBottom: "none",
|
|
3817
5745
|
maxWidth: "492px",
|
|
3818
5746
|
},
|
|
3819
5747
|
PageDescriptionText: {
|
|
3820
|
-
color: "var(--
|
|
5748
|
+
color: "var(--sl-color-neutral-500)",
|
|
3821
5749
|
fontSize: "var(--sl-font-size-medium)",
|
|
3822
5750
|
marginTop: "0",
|
|
3823
5751
|
},
|
|
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
|
-
},
|
|
3857
5752
|
Dialog: {
|
|
3858
5753
|
"&::part(panel)": {
|
|
3859
5754
|
maxWidth: "420px",
|
|
3860
5755
|
},
|
|
3861
|
-
"&::part(header)": {
|
|
3862
|
-
display: "flex",
|
|
3863
|
-
alignItems: "center",
|
|
3864
|
-
justifyContent: "center",
|
|
3865
|
-
paddingTop: "var(--sl-spacing-large)",
|
|
3866
|
-
},
|
|
3867
5756
|
"&::part(close-button)": {
|
|
3868
5757
|
marginBottom: "var(--sl-spacing-xx-large)",
|
|
3869
5758
|
},
|
|
3870
5759
|
"&::part(title)": {
|
|
3871
|
-
fontSize: "var(--sl-font-size-large)",
|
|
5760
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
3872
5761
|
fontWeight: "600",
|
|
3873
|
-
|
|
5762
|
+
marginTop: "var(--sl-spacing-xxx-large)",
|
|
5763
|
+
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
3874
5764
|
},
|
|
3875
5765
|
"&::part(body)": {
|
|
3876
5766
|
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
@@ -3887,23 +5777,22 @@ const style$5 = {
|
|
|
3887
5777
|
},
|
|
3888
5778
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3889
5779
|
};
|
|
3890
|
-
const
|
|
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();
|
|
5780
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5781
|
+
const styleString$5 = sheet$5.toString();
|
|
3902
5782
|
const TaxAndCashDashboardView = (props) => {
|
|
3903
5783
|
var _a;
|
|
3904
5784
|
const { states, text, callbacks, slots } = props;
|
|
3905
5785
|
function getAlert(status) {
|
|
3906
5786
|
switch (status) {
|
|
5787
|
+
case "OVER_W9_THRESHOLD":
|
|
5788
|
+
return {
|
|
5789
|
+
header: text.w9RequiredHeader,
|
|
5790
|
+
description: text.w9RequiredDescription,
|
|
5791
|
+
button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
5792
|
+
alertType: "info",
|
|
5793
|
+
icon: "info-circle",
|
|
5794
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5795
|
+
};
|
|
3907
5796
|
case "VERIFICATION:REQUIRED":
|
|
3908
5797
|
return {
|
|
3909
5798
|
header: text.verificationRequiredHeader,
|
|
@@ -3915,6 +5804,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3915
5804
|
}),
|
|
3916
5805
|
buttonText: text.verificationRequiredButtonText,
|
|
3917
5806
|
alertType: "warning",
|
|
5807
|
+
icon: "exclamation-triangle",
|
|
5808
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3918
5809
|
};
|
|
3919
5810
|
case "VERIFICATION:INTERNAL":
|
|
3920
5811
|
return {
|
|
@@ -3926,6 +5817,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3926
5817
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3927
5818
|
}),
|
|
3928
5819
|
alertType: "warning",
|
|
5820
|
+
icon: "exclamation-triangle",
|
|
5821
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3929
5822
|
};
|
|
3930
5823
|
case "VERIFICATION:REVIEW":
|
|
3931
5824
|
return {
|
|
@@ -3937,6 +5830,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3937
5830
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3938
5831
|
}),
|
|
3939
5832
|
alertType: "warning",
|
|
5833
|
+
icon: "exclamation-triangle",
|
|
5834
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3940
5835
|
};
|
|
3941
5836
|
case "VERIFICATION:FAILED":
|
|
3942
5837
|
return {
|
|
@@ -3947,7 +5842,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3947
5842
|
}, {
|
|
3948
5843
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3949
5844
|
}),
|
|
3950
|
-
alertType: "
|
|
5845
|
+
alertType: "critical",
|
|
5846
|
+
icon: "exclamation-octagon",
|
|
5847
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
3951
5848
|
};
|
|
3952
5849
|
case "HOLD":
|
|
3953
5850
|
return {
|
|
@@ -3960,22 +5857,24 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3960
5857
|
}),
|
|
3961
5858
|
buttonText: null,
|
|
3962
5859
|
alertType: "warning",
|
|
5860
|
+
icon: "exclamation-triangle",
|
|
5861
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3963
5862
|
};
|
|
3964
5863
|
default:
|
|
3965
5864
|
return;
|
|
3966
5865
|
}
|
|
3967
5866
|
}
|
|
3968
5867
|
const statusMap = {
|
|
3969
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
3970
|
-
index.h("sl-badge", {
|
|
5868
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5869
|
+
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
3971
5870
|
index.h("p", null, global.intl.formatMessage({
|
|
3972
5871
|
id: `badgeTextAwaitingReview`,
|
|
3973
5872
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
3974
5873
|
}, {
|
|
3975
5874
|
dateSubmitted: states.dateSubmitted,
|
|
3976
5875
|
})))),
|
|
3977
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
3978
|
-
index.h("sl-badge", {
|
|
5876
|
+
ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5877
|
+
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
3979
5878
|
index.h("p", null, global.intl.formatMessage({
|
|
3980
5879
|
id: `badgeTextSubmittedOn`,
|
|
3981
5880
|
defaultMessage: states.documentType === "W9"
|
|
@@ -3984,13 +5883,22 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3984
5883
|
}, {
|
|
3985
5884
|
dateSubmitted: states.dateSubmitted,
|
|
3986
5885
|
})))),
|
|
3987
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
3988
|
-
index.h("sl-badge", {
|
|
5886
|
+
INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5887
|
+
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
3989
5888
|
index.h("p", null, text.invalidForm))),
|
|
5889
|
+
undefined: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5890
|
+
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
5891
|
+
index.h("p", null, global.intl.formatMessage({
|
|
5892
|
+
id: `requiredTaxForm`,
|
|
5893
|
+
defaultMessage: text.requiredTaxForm,
|
|
5894
|
+
}, {
|
|
5895
|
+
taxFormType: states.documentType,
|
|
5896
|
+
})))),
|
|
3990
5897
|
};
|
|
3991
5898
|
const alertMap = {
|
|
3992
|
-
INACTIVE: (index.h("
|
|
3993
|
-
index.h("
|
|
5899
|
+
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5900
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5901
|
+
index.h("strong", null, global.intl.formatMessage({
|
|
3994
5902
|
id: `taxAlertHeaderNotActive`,
|
|
3995
5903
|
defaultMessage: states.documentType === "W9"
|
|
3996
5904
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -3998,6 +5906,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3998
5906
|
}, {
|
|
3999
5907
|
documentType: states.documentTypeString,
|
|
4000
5908
|
})),
|
|
5909
|
+
index.h("br", null),
|
|
4001
5910
|
global.intl.formatMessage({
|
|
4002
5911
|
id: `taxAlertMessage`,
|
|
4003
5912
|
defaultMessage: states.documentType === "W9"
|
|
@@ -4035,74 +5944,79 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4035
5944
|
});
|
|
4036
5945
|
}
|
|
4037
5946
|
};
|
|
4038
|
-
const
|
|
5947
|
+
const alertInfo = getAlert(states.payoutStatus);
|
|
4039
5948
|
return (index.h("div", null,
|
|
4040
5949
|
index.h("div", null,
|
|
4041
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
4042
|
-
index.h("
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
5950
|
+
index.h("style", { type: "text/css" }, styleString$5),
|
|
5951
|
+
states.loadingError && (index.h("div", null,
|
|
5952
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5953
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5954
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5955
|
+
index.h("br", null),
|
|
5956
|
+
global.intl.formatMessage({
|
|
5957
|
+
id: "loadingErrorAlertDescription",
|
|
5958
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
5959
|
+
}, {
|
|
5960
|
+
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5961
|
+
})))),
|
|
5962
|
+
((_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 },
|
|
5963
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5964
|
+
index.h("strong", null, text.error.generalTitle),
|
|
5965
|
+
index.h("br", null),
|
|
4053
5966
|
global.intl.formatMessage({
|
|
4054
5967
|
id: "generalDescription",
|
|
4055
5968
|
defaultMessage: text.error.generalDescription,
|
|
4056
5969
|
}, {
|
|
4057
5970
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4058
5971
|
}))),
|
|
4059
|
-
|
|
4060
|
-
index.h("
|
|
4061
|
-
index.h("
|
|
4062
|
-
|
|
4063
|
-
|
|
5972
|
+
alertInfo && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
|
|
5973
|
+
index.h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
|
|
5974
|
+
index.h("strong", null, alertInfo.header),
|
|
5975
|
+
index.h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
5976
|
+
alertInfo.buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
5977
|
+
alertInfo.button ? (alertInfo.button) : (index.h("div", { style: { display: "none" } })))),
|
|
5978
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
4064
5979
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
4065
|
-
index.h("sl-button", { slot: "footer", type: "primary",
|
|
4066
|
-
index.h("sl-button", { slot: "footer", type: "
|
|
5980
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5981
|
+
index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
4067
5982
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
4068
5983
|
index.h("div", null,
|
|
4069
5984
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
4070
|
-
index.h("p", { class: sheet$
|
|
4071
|
-
index.h("div", { class: sheet$
|
|
5985
|
+
index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5986
|
+
index.h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
4072
5987
|
slots.payoutDetailsCardSlot,
|
|
4073
|
-
!states.loading && (index.h("p", { class: sheet$
|
|
4074
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
4075
|
-
index.h("div", { class: sheet$
|
|
4076
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$
|
|
4077
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4078
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4079
|
-
index.h("
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
index.h("sl-skeleton", { class: sheet$
|
|
4093
|
-
index.h("
|
|
4094
|
-
index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5988
|
+
!states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5989
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5990
|
+
!states.noFormNeeded && (index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5991
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5992
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5993
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
5994
|
+
index.h("div", null,
|
|
5995
|
+
index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5996
|
+
index.h("div", { class: sheet$5.classes.StatusContainer },
|
|
5997
|
+
index.h("h3", null, global.intl.formatMessage({
|
|
5998
|
+
id: "section-subheader",
|
|
5999
|
+
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
6000
|
+
}, {
|
|
6001
|
+
documentType: states.documentTypeString,
|
|
6002
|
+
})),
|
|
6003
|
+
index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
6004
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
6005
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
6006
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
6007
|
+
index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
6008
|
+
index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
4095
6009
|
text.indirectTaxInfoSectionHeader,
|
|
4096
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
4097
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$
|
|
4098
|
-
index.h("div", { class: sheet$
|
|
4099
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$
|
|
6010
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
6011
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
6012
|
+
index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
6013
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
4100
6014
|
id: "notRegisteredForTax",
|
|
4101
6015
|
defaultMessage: text.notRegisteredForTax,
|
|
4102
6016
|
}, {
|
|
4103
6017
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4104
6018
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
4105
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
6019
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
4106
6020
|
index.h("span", null, global.intl.formatMessage({
|
|
4107
6021
|
id: `indirectTaxDetails`,
|
|
4108
6022
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -4125,7 +6039,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4125
6039
|
}, {
|
|
4126
6040
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
4127
6041
|
})))),
|
|
4128
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
6042
|
+
!states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
4129
6043
|
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 },
|
|
4130
6044
|
index.h("sqm-invoice-table-download-column", null),
|
|
4131
6045
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -4149,12 +6063,12 @@ function getSubRegionName(regionCode) {
|
|
|
4149
6063
|
return "";
|
|
4150
6064
|
// Impact adds an underscore to some regions
|
|
4151
6065
|
const standardCode = regionCode.replace("_", "");
|
|
4152
|
-
const regions = [...
|
|
6066
|
+
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4153
6067
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
4154
6068
|
}
|
|
4155
6069
|
function getIndirectTaxType(taxInformation) {
|
|
4156
6070
|
var _a;
|
|
4157
|
-
const regions = [...
|
|
6071
|
+
const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
4158
6072
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
4159
6073
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
4160
6074
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -4165,23 +6079,25 @@ function getIndirectTaxType(taxInformation) {
|
|
|
4165
6079
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
4166
6080
|
return "VAT";
|
|
4167
6081
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
4168
|
-
return
|
|
6082
|
+
return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
4169
6083
|
}
|
|
4170
6084
|
return "Indirect Tax";
|
|
4171
6085
|
}
|
|
4172
6086
|
const useTaxAndCashDashboard = (props) => {
|
|
4173
6087
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
4174
|
-
const setStep = index_module.En(
|
|
4175
|
-
const setContext = index_module.En(
|
|
4176
|
-
const [showDialog, setShowDialog] =
|
|
6088
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6089
|
+
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6090
|
+
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
4177
6091
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
4178
6092
|
const locale = index_module.L();
|
|
4179
|
-
|
|
6093
|
+
stencilHooks_module.useEffect(() => {
|
|
4180
6094
|
// Clear override context once on submitted
|
|
4181
6095
|
setContext({});
|
|
6096
|
+
if (window.location.hash)
|
|
6097
|
+
setStep(`/${window.location.hash.replace("#", "")}`);
|
|
4182
6098
|
}, []);
|
|
4183
|
-
const { data
|
|
4184
|
-
const publisher = (_b = (_a = data
|
|
6099
|
+
const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
6100
|
+
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;
|
|
4185
6101
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
4186
6102
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
4187
6103
|
const dateSubmitted = submissionDate
|
|
@@ -4204,9 +6120,9 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4204
6120
|
});
|
|
4205
6121
|
setStep("/3");
|
|
4206
6122
|
};
|
|
4207
|
-
const provinceName = (_d =
|
|
4208
|
-
const payoutStatus = data
|
|
4209
|
-
|
|
6123
|
+
const provinceName = (_d = sqmInvoiceTableView.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;
|
|
6124
|
+
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
6125
|
+
stencilHooks_module.useEffect(() => {
|
|
4210
6126
|
const cb = () => refetch();
|
|
4211
6127
|
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
4212
6128
|
return () => {
|
|
@@ -4218,7 +6134,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
4218
6134
|
dateSubmitted,
|
|
4219
6135
|
documentType,
|
|
4220
6136
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
4221
|
-
documentTypeString:
|
|
6137
|
+
documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
|
|
4222
6138
|
status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
|
|
4223
6139
|
subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
|
|
4224
6140
|
subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
|
|
@@ -4266,6 +6182,18 @@ const TaxAndCashDashboard = class {
|
|
|
4266
6182
|
* @uiName Not verified tax form badge label
|
|
4267
6183
|
*/
|
|
4268
6184
|
this.statusTextNotVerified = "Not Verified";
|
|
6185
|
+
/**
|
|
6186
|
+
* Displayed when the participant has not submitted their required tax form.
|
|
6187
|
+
*
|
|
6188
|
+
* @uiName Required tax form badge label
|
|
6189
|
+
*/
|
|
6190
|
+
this.statusTextRequired = "Required";
|
|
6191
|
+
/**
|
|
6192
|
+
* Additional text displayed next to the tax form's status badge
|
|
6193
|
+
*
|
|
6194
|
+
* @uiName Required tax form description
|
|
6195
|
+
*/
|
|
6196
|
+
this.requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
|
|
4269
6197
|
/**
|
|
4270
6198
|
* Additional text displayed next to the tax form's status badge
|
|
4271
6199
|
*
|
|
@@ -4332,13 +6260,6 @@ const TaxAndCashDashboard = class {
|
|
|
4332
6260
|
* @uiName Tax documents section description
|
|
4333
6261
|
*/
|
|
4334
6262
|
this.taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4335
|
-
/**
|
|
4336
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4337
|
-
*
|
|
4338
|
-
* @uiName Tax form not required text
|
|
4339
|
-
* @uiWidget textArea
|
|
4340
|
-
*/
|
|
4341
|
-
this.noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
|
|
4342
6263
|
/**
|
|
4343
6264
|
*
|
|
4344
6265
|
* @uiName Indirect tax section header
|
|
@@ -4468,6 +6389,18 @@ const TaxAndCashDashboard = class {
|
|
|
4468
6389
|
* @uiName Verification required alert button text
|
|
4469
6390
|
*/
|
|
4470
6391
|
this.verificationRequiredButtonText = "Start Verification";
|
|
6392
|
+
/**
|
|
6393
|
+
* @uiName W9 payment threshold alert header
|
|
6394
|
+
*/
|
|
6395
|
+
this.w9RequiredHeader = "Your next payout is on hold";
|
|
6396
|
+
/**
|
|
6397
|
+
* @uiName W9 payment threshold alert description
|
|
6398
|
+
*/
|
|
6399
|
+
this.w9RequiredDescription = "You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
|
|
6400
|
+
/**
|
|
6401
|
+
* @uiName W9 payment threshold alert button text
|
|
6402
|
+
*/
|
|
6403
|
+
this.w9RequiredButtonText = "Submit W9";
|
|
4471
6404
|
/**
|
|
4472
6405
|
* Part of the alert displayed at the top of the page.
|
|
4473
6406
|
* @uiName Form submission error message title
|
|
@@ -4556,12 +6489,7 @@ const TaxAndCashDashboard = class {
|
|
|
4556
6489
|
* @uiName Cancel button label
|
|
4557
6490
|
*/
|
|
4558
6491
|
this.cancelButton = "Cancel";
|
|
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);
|
|
6492
|
+
stencilHooks_module.h$1(this);
|
|
4565
6493
|
}
|
|
4566
6494
|
disconnectedCallback() { }
|
|
4567
6495
|
getTextProps() {
|
|
@@ -4586,31 +6514,23 @@ const TaxAndCashDashboard = class {
|
|
|
4586
6514
|
}
|
|
4587
6515
|
};
|
|
4588
6516
|
function useDemoTaxAndCashDashboard(props) {
|
|
4589
|
-
// @ts-ignore
|
|
4590
6517
|
return cjs.cjs({
|
|
4591
6518
|
states: {
|
|
4592
6519
|
dateSubmitted: "today",
|
|
4593
6520
|
documentType: "W9",
|
|
4594
6521
|
documentTypeString: "W9",
|
|
6522
|
+
status: "ACTIVE",
|
|
4595
6523
|
country: "United States",
|
|
4596
|
-
indirectTaxNumber:
|
|
6524
|
+
indirectTaxNumber: 55555555,
|
|
4597
6525
|
indirectTaxType: "Indirect Tax",
|
|
4598
|
-
noFormNeeded:
|
|
6526
|
+
noFormNeeded: true,
|
|
4599
6527
|
disabled: false,
|
|
4600
6528
|
loading: false,
|
|
4601
6529
|
showNewFormDialog: false,
|
|
4602
6530
|
hasHold: false,
|
|
4603
|
-
|
|
4604
|
-
subRegionTaxNumber: undefined,
|
|
4605
|
-
qstNumber: undefined,
|
|
4606
|
-
isBusinessEntity: false,
|
|
4607
|
-
province: undefined,
|
|
4608
|
-
notRegistered: true,
|
|
4609
|
-
loadingError: false,
|
|
6531
|
+
showVerifyIdentity: false,
|
|
4610
6532
|
payoutStatus: "DONE",
|
|
4611
6533
|
veriffLoading: false,
|
|
4612
|
-
canEditPayoutInfo: true,
|
|
4613
|
-
status: "ACTIVE",
|
|
4614
6534
|
},
|
|
4615
6535
|
callbacks: {
|
|
4616
6536
|
onClick: () => console.debug("check step"),
|
|
@@ -4620,14 +6540,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4620
6540
|
onVerifyClick: () => console.log("verify"),
|
|
4621
6541
|
},
|
|
4622
6542
|
text: props.getTextProps(),
|
|
4623
|
-
|
|
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 });
|
|
6543
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4631
6544
|
}
|
|
4632
6545
|
|
|
4633
6546
|
const PHONE_EXTENSIONS = {
|
|
@@ -5601,19 +7514,19 @@ const PHONE_EXTENSIONS = {
|
|
|
5601
7514
|
},
|
|
5602
7515
|
};
|
|
5603
7516
|
|
|
5604
|
-
const style$
|
|
7517
|
+
const style$7 = {
|
|
5605
7518
|
FormWrapper: {},
|
|
5606
7519
|
ErrorInput: {
|
|
5607
7520
|
"&::part(base)": {
|
|
5608
|
-
border: "
|
|
7521
|
+
border: "1px solid var(--sl-color-danger-500)",
|
|
5609
7522
|
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
5610
7523
|
},
|
|
5611
7524
|
"&::part(help-text)": {
|
|
5612
|
-
color: "var(--
|
|
7525
|
+
color: "var(--sl-color-danger-500)",
|
|
5613
7526
|
},
|
|
5614
7527
|
},
|
|
5615
7528
|
ErrorText: {
|
|
5616
|
-
color: "var(--
|
|
7529
|
+
color: "var(--sl-color-danger-500)",
|
|
5617
7530
|
marginTop: "10px",
|
|
5618
7531
|
},
|
|
5619
7532
|
TextContainer: {
|
|
@@ -5644,6 +7557,9 @@ const style$6 = {
|
|
|
5644
7557
|
justifyContent: "flex-start",
|
|
5645
7558
|
flexDirection: "column",
|
|
5646
7559
|
},
|
|
7560
|
+
DescriptionText: {
|
|
7561
|
+
color: "var(--sl-color-neutral-500)",
|
|
7562
|
+
},
|
|
5647
7563
|
BoldText: {
|
|
5648
7564
|
fontWeight: "bold",
|
|
5649
7565
|
},
|
|
@@ -5652,8 +7568,28 @@ const style$6 = {
|
|
|
5652
7568
|
borderRadius: "50%",
|
|
5653
7569
|
},
|
|
5654
7570
|
},
|
|
7571
|
+
AlertContainer: {
|
|
7572
|
+
"&::part(base)": {
|
|
7573
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
7574
|
+
borderTop: "none",
|
|
7575
|
+
padding: "0 16px",
|
|
7576
|
+
},
|
|
7577
|
+
"& sl-icon::part(base)": {
|
|
7578
|
+
color: "var(--sl-color-danger-500)",
|
|
7579
|
+
},
|
|
7580
|
+
},
|
|
7581
|
+
PartnerAlertContainer: {
|
|
7582
|
+
"&::part(base)": {
|
|
7583
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
7584
|
+
borderTop: "none",
|
|
7585
|
+
padding: "0 16px",
|
|
7586
|
+
},
|
|
7587
|
+
"& sl-icon::part(base)": {
|
|
7588
|
+
color: "var(--sl-color-blue-500)",
|
|
7589
|
+
},
|
|
7590
|
+
},
|
|
5655
7591
|
PageDescriptionText: {
|
|
5656
|
-
color: "var(--
|
|
7592
|
+
color: "var(--sl-color-neutral-500)",
|
|
5657
7593
|
fontSize: "var(--sl-font-size-medium)",
|
|
5658
7594
|
},
|
|
5659
7595
|
PhoneInputsSection: {
|
|
@@ -5676,8 +7612,8 @@ const style$6 = {
|
|
|
5676
7612
|
},
|
|
5677
7613
|
},
|
|
5678
7614
|
};
|
|
5679
|
-
const sheet$
|
|
5680
|
-
const styleString$
|
|
7615
|
+
const sheet$6 = JSS.createStyleSheet(style$7);
|
|
7616
|
+
const styleString$6 = sheet$6.toString();
|
|
5681
7617
|
const vanillaStyle$4 = `
|
|
5682
7618
|
:host{
|
|
5683
7619
|
display: block;
|
|
@@ -5687,15 +7623,11 @@ const vanillaStyle$4 = `
|
|
|
5687
7623
|
padding: 0;
|
|
5688
7624
|
box-sizing: border-box;
|
|
5689
7625
|
}
|
|
5690
|
-
a {
|
|
5691
|
-
color: var(--sqm-text);
|
|
5692
|
-
color: inherit !important;
|
|
5693
|
-
text-decoration: underline;
|
|
5694
|
-
}
|
|
5695
7626
|
|
|
5696
7627
|
p {
|
|
5697
7628
|
line-height: 18px;
|
|
5698
|
-
|
|
7629
|
+
color: var(--sl-color-gray-800);
|
|
7630
|
+
font-size: var(--sl-font-size-small);
|
|
5699
7631
|
}
|
|
5700
7632
|
|
|
5701
7633
|
sl-radio-group::part(base) {
|
|
@@ -5706,149 +7638,11 @@ const vanillaStyle$4 = `
|
|
|
5706
7638
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
5707
7639
|
min-width: 250px;
|
|
5708
7640
|
}
|
|
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
|
-
`;
|
|
7641
|
+
`;
|
|
5848
7642
|
const UserInfoFormView = (props) => {
|
|
5849
7643
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
5850
|
-
const { states, states: { formState }, callbacks, text, refs, data
|
|
5851
|
-
const { classes } = sheet$
|
|
7644
|
+
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7645
|
+
const { classes } = sheet$6;
|
|
5852
7646
|
const bankingCollectionText = global.intl.formatMessage({
|
|
5853
7647
|
id: "bankingCollectionText",
|
|
5854
7648
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -5856,7 +7650,7 @@ const UserInfoFormView = (props) => {
|
|
|
5856
7650
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
5857
7651
|
});
|
|
5858
7652
|
let regionLabel = undefined;
|
|
5859
|
-
switch (data
|
|
7653
|
+
switch (data.regionLabelEnum) {
|
|
5860
7654
|
case "STATE":
|
|
5861
7655
|
regionLabel = text.state;
|
|
5862
7656
|
break;
|
|
@@ -5871,58 +7665,65 @@ const UserInfoFormView = (props) => {
|
|
|
5871
7665
|
}
|
|
5872
7666
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
5873
7667
|
index.h("style", { type: "text/css" },
|
|
5874
|
-
styleString$
|
|
7668
|
+
styleString$6,
|
|
5875
7669
|
vanillaStyle$4),
|
|
5876
7670
|
states.loadingError && (index.h("div", null,
|
|
5877
|
-
index.h("
|
|
5878
|
-
index.h("
|
|
5879
|
-
index.h("
|
|
7671
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
7672
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7673
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
7674
|
+
index.h("br", null),
|
|
7675
|
+
global.intl.formatMessage({
|
|
5880
7676
|
id: "loadingErrorAlertDescription",
|
|
5881
7677
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
5882
7678
|
}, {
|
|
5883
7679
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5884
|
-
}))
|
|
5885
|
-
|
|
7680
|
+
})),
|
|
7681
|
+
index.h("br", null))),
|
|
7682
|
+
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
5886
7683
|
index.h("div", { class: classes.TextContainer },
|
|
5887
7684
|
index.h("div", null,
|
|
5888
7685
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
5889
7686
|
id: "formStep",
|
|
5890
7687
|
defaultMessage: text.formStep,
|
|
5891
|
-
}, { step: states.step, count:
|
|
7688
|
+
}, { step: states.step, count: FORM_STEPS }))),
|
|
5892
7689
|
index.h("h3", null, text.personalInformation),
|
|
5893
7690
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
5894
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("
|
|
5895
|
-
index.h("
|
|
5896
|
-
index.h("
|
|
7691
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
7692
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7693
|
+
index.h("strong", null, text.error.generalTitle),
|
|
7694
|
+
index.h("br", null),
|
|
7695
|
+
global.intl.formatMessage({
|
|
5897
7696
|
id: "generalDescription",
|
|
5898
7697
|
defaultMessage: text.error.generalDescription,
|
|
5899
7698
|
}, {
|
|
5900
7699
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5901
|
-
})))
|
|
5902
|
-
(states.isPartner || states.isUser) && (index.h("
|
|
5903
|
-
index.h("
|
|
5904
|
-
index.h("
|
|
7700
|
+
}))),
|
|
7701
|
+
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
7702
|
+
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
7703
|
+
index.h("strong", null, text.isPartnerAlertHeader),
|
|
7704
|
+
index.h("br", null),
|
|
7705
|
+
global.intl.formatMessage({
|
|
5905
7706
|
id: "isPartnerAlertDescription",
|
|
5906
7707
|
defaultMessage: text.isPartnerAlertDescription,
|
|
5907
7708
|
}, {
|
|
5908
7709
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5909
|
-
})))
|
|
7710
|
+
}))),
|
|
5910
7711
|
index.h("div", null,
|
|
5911
7712
|
index.h("div", { class: classes.InputContainer },
|
|
5912
|
-
index.h("sl-input", Object.assign({
|
|
7713
|
+
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) ? {
|
|
5913
7714
|
class: classes.ErrorInput,
|
|
5914
|
-
helpText:
|
|
7715
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
5915
7716
|
}
|
|
5916
7717
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
5917
7718
|
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) ? {
|
|
5918
7719
|
class: classes.ErrorInput,
|
|
5919
|
-
helpText:
|
|
7720
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
5920
7721
|
}
|
|
5921
7722
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
5922
7723
|
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 }),
|
|
5923
7724
|
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) ? {
|
|
5924
7725
|
class: classes.ErrorInput,
|
|
5925
|
-
helpText:
|
|
7726
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
5926
7727
|
}
|
|
5927
7728
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
5928
7729
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
@@ -5930,8 +7731,8 @@ const UserInfoFormView = (props) => {
|
|
|
5930
7731
|
e.stopPropagation();
|
|
5931
7732
|
}, "onSl-input": (e) => {
|
|
5932
7733
|
callbacks.setCountrySearch(e.target.value);
|
|
5933
|
-
} }), (_e = data
|
|
5934
|
-
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data
|
|
7734
|
+
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
7735
|
+
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
5935
7736
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
5936
7737
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
5937
7738
|
index.h("p", null, text.phoneNumber),
|
|
@@ -5945,13 +7746,13 @@ const UserInfoFormView = (props) => {
|
|
|
5945
7746
|
e.stopPropagation();
|
|
5946
7747
|
}, "onSl-input": (e) => {
|
|
5947
7748
|
callbacks.setPhoneCountrySearch(e.target.value);
|
|
5948
|
-
} }), (_h = data
|
|
7749
|
+
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
5949
7750
|
_h.map((c) => {
|
|
5950
7751
|
var _a, _b;
|
|
5951
7752
|
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
5952
7753
|
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 :
|
|
5953
7754
|
_b.dial_code));
|
|
5954
|
-
}), (_j = data
|
|
7755
|
+
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
5955
7756
|
_j.map((c) => {
|
|
5956
7757
|
var _a, _b;
|
|
5957
7758
|
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
@@ -5960,42 +7761,42 @@ const UserInfoFormView = (props) => {
|
|
|
5960
7761
|
})),
|
|
5961
7762
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
5962
7763
|
// Naive phone number validation
|
|
5963
|
-
|
|
5964
|
-
|
|
7764
|
+
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
7765
|
+
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
5965
7766
|
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
5966
7767
|
class: classes.ErrorInput,
|
|
5967
|
-
helpText:
|
|
7768
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
5968
7769
|
}
|
|
5969
7770
|
: {}), { required: true })))),
|
|
5970
7771
|
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 }) =>
|
|
5971
7772
|
// Checks for non-ASCII characters
|
|
5972
|
-
!
|
|
5973
|
-
|
|
7773
|
+
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7774
|
+
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
5974
7775
|
class: classes.ErrorInput,
|
|
5975
|
-
helpText:
|
|
7776
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
5976
7777
|
}
|
|
5977
7778
|
: {}), { required: true })),
|
|
5978
7779
|
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 }) =>
|
|
5979
7780
|
// Checks for non-ASCII characters
|
|
5980
|
-
!
|
|
5981
|
-
|
|
7781
|
+
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
7782
|
+
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
5982
7783
|
class: classes.ErrorInput,
|
|
5983
|
-
helpText:
|
|
7784
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
5984
7785
|
}
|
|
5985
7786
|
: {}), { required: true })),
|
|
5986
7787
|
!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) ? {
|
|
5987
7788
|
class: classes.ErrorInput,
|
|
5988
|
-
helpText:
|
|
7789
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
5989
7790
|
}
|
|
5990
|
-
: {}), { required: true }), (_p = data
|
|
7791
|
+
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
5991
7792
|
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) ? {
|
|
5992
7793
|
class: classes.ErrorInput,
|
|
5993
|
-
helpText:
|
|
7794
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
5994
7795
|
}
|
|
5995
7796
|
: {}), { required: true })),
|
|
5996
7797
|
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) ? {
|
|
5997
7798
|
class: classes.ErrorInput,
|
|
5998
|
-
helpText:
|
|
7799
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
5999
7800
|
}
|
|
6000
7801
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
6001
7802
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
@@ -6003,11 +7804,11 @@ const UserInfoFormView = (props) => {
|
|
|
6003
7804
|
e.stopPropagation();
|
|
6004
7805
|
}, "onSl-input": (e) => {
|
|
6005
7806
|
callbacks.setCurrencySearch(e.target.value);
|
|
6006
|
-
} }), (_s = data
|
|
7807
|
+
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6007
7808
|
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
6008
7809
|
c.currencyCode,
|
|
6009
7810
|
" - ",
|
|
6010
|
-
c.displayName))), (_t = data
|
|
7811
|
+
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6011
7812
|
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6012
7813
|
c.currencyCode,
|
|
6013
7814
|
" - ",
|
|
@@ -6016,36 +7817,36 @@ const UserInfoFormView = (props) => {
|
|
|
6016
7817
|
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6017
7818
|
e.target.value = e.target.checked;
|
|
6018
7819
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6019
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText },
|
|
7820
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6020
7821
|
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6021
7822
|
};
|
|
6022
7823
|
|
|
6023
7824
|
function useUserInfoForm(props) {
|
|
6024
7825
|
var _a, _b, _c, _d;
|
|
6025
|
-
const currencyRef =
|
|
6026
|
-
const phoneCountryRef =
|
|
6027
|
-
const formRef =
|
|
6028
|
-
const context = index_module.Fn(
|
|
6029
|
-
const countries = index_module.Fn(
|
|
6030
|
-
const [step, setStep] = index_module.Pn(
|
|
6031
|
-
const [userFormContext, setUserFormContext] = index_module.Pn(
|
|
6032
|
-
const { data
|
|
6033
|
-
const _currencies = index_module.Fn(
|
|
6034
|
-
const currencies =
|
|
6035
|
-
const [countrySearch, setCountrySearch] =
|
|
6036
|
-
const [phoneCountrySearch, setPhoneCountrySearch] =
|
|
6037
|
-
const [filteredCountries, setFilteredCountries] =
|
|
6038
|
-
const [filteredPhoneCountries, setFilteredPhoneCountries] =
|
|
6039
|
-
const [currencySearch, setCurrencySearch] =
|
|
6040
|
-
const [filteredCurrencies, setFilteredCurrencies] =
|
|
6041
|
-
const [formErrors, setErrors] =
|
|
6042
|
-
|
|
7826
|
+
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
7827
|
+
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
7828
|
+
const formRef = stencilHooks_module.useRef(null);
|
|
7829
|
+
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7830
|
+
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
7831
|
+
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
7832
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7833
|
+
const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
7834
|
+
const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
|
|
7835
|
+
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
7836
|
+
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
7837
|
+
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
7838
|
+
const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
|
|
7839
|
+
const [filteredPhoneCountries, setFilteredPhoneCountries] = stencilHooks_module.useState(countries || []);
|
|
7840
|
+
const [currencySearch, setCurrencySearch] = stencilHooks_module.useState("");
|
|
7841
|
+
const [filteredCurrencies, setFilteredCurrencies] = stencilHooks_module.useState(currencies || []);
|
|
7842
|
+
const [formErrors, setErrors] = stencilHooks_module.useState({});
|
|
7843
|
+
stencilHooks_module.useEffect(() => {
|
|
6043
7844
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6044
|
-
const user = data
|
|
7845
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6045
7846
|
if (!user || step !== "/1")
|
|
6046
7847
|
return;
|
|
6047
7848
|
// If form already filled out, skip initialising it
|
|
6048
|
-
if (
|
|
7849
|
+
if (sqmInvoiceTableView.objectIsFull(userFormContext))
|
|
6049
7850
|
return;
|
|
6050
7851
|
// Prefer MI email if it was verified before this
|
|
6051
7852
|
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
@@ -6082,7 +7883,7 @@ function useUserInfoForm(props) {
|
|
|
6082
7883
|
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
6083
7884
|
});
|
|
6084
7885
|
}
|
|
6085
|
-
}, [data
|
|
7886
|
+
}, [data, step, userFormContext]);
|
|
6086
7887
|
const onFormChange = (field, e) => {
|
|
6087
7888
|
var _a, _b;
|
|
6088
7889
|
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
@@ -6097,7 +7898,7 @@ function useUserInfoForm(props) {
|
|
|
6097
7898
|
currencyRef.current.value = "";
|
|
6098
7899
|
}
|
|
6099
7900
|
};
|
|
6100
|
-
|
|
7901
|
+
stencilHooks_module.useEffect(() => {
|
|
6101
7902
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
6102
7903
|
return;
|
|
6103
7904
|
if (countrySearch.trim() === "") {
|
|
@@ -6107,7 +7908,7 @@ function useUserInfoForm(props) {
|
|
|
6107
7908
|
setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
|
|
6108
7909
|
}
|
|
6109
7910
|
}, [countrySearch, countries]);
|
|
6110
|
-
|
|
7911
|
+
stencilHooks_module.useEffect(() => {
|
|
6111
7912
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
6112
7913
|
return;
|
|
6113
7914
|
if (phoneCountrySearch.trim() === "") {
|
|
@@ -6117,7 +7918,7 @@ function useUserInfoForm(props) {
|
|
|
6117
7918
|
setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
|
|
6118
7919
|
}
|
|
6119
7920
|
}, [phoneCountrySearch, countries]);
|
|
6120
|
-
|
|
7921
|
+
stencilHooks_module.useEffect(() => {
|
|
6121
7922
|
if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
|
|
6122
7923
|
return;
|
|
6123
7924
|
if (currencySearch.trim() === "") {
|
|
@@ -6174,7 +7975,7 @@ function useUserInfoForm(props) {
|
|
|
6174
7975
|
}
|
|
6175
7976
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
6176
7977
|
const regionObj = hasStates
|
|
6177
|
-
?
|
|
7978
|
+
? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
6178
7979
|
: {};
|
|
6179
7980
|
return {
|
|
6180
7981
|
setStep: setStep,
|
|
@@ -6207,8 +8008,8 @@ function useUserInfoForm(props) {
|
|
|
6207
8008
|
disabled: loading,
|
|
6208
8009
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
6209
8010
|
loading: loading,
|
|
6210
|
-
isPartner: !!((_b = (_a = data
|
|
6211
|
-
isUser: !!((_d = (_c = data
|
|
8011
|
+
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),
|
|
8012
|
+
isUser: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
|
|
6212
8013
|
formState: {
|
|
6213
8014
|
...userFormContext,
|
|
6214
8015
|
errors: formErrors,
|
|
@@ -6371,7 +8172,7 @@ const TaxForm = class {
|
|
|
6371
8172
|
* @uiName Support link text
|
|
6372
8173
|
*/
|
|
6373
8174
|
this.supportLink = "support team";
|
|
6374
|
-
|
|
8175
|
+
stencilHooks_module.h$1(this);
|
|
6375
8176
|
}
|
|
6376
8177
|
disconnectedCallback() { }
|
|
6377
8178
|
getTextProps() {
|
|
@@ -6391,20 +8192,19 @@ const TaxForm = class {
|
|
|
6391
8192
|
}
|
|
6392
8193
|
render() {
|
|
6393
8194
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
6394
|
-
return (index.h(UserInfoFormView, { data: props.data,
|
|
8195
|
+
return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
|
|
6395
8196
|
// @ts-ignore
|
|
6396
8197
|
states: props.states, callbacks: {
|
|
6397
8198
|
...props.callbacks,
|
|
6398
8199
|
onSubmit: props.onSubmit,
|
|
6399
|
-
}, text: props.text, refs: props.refs }));
|
|
8200
|
+
}, text: props.text, refs: props.refs })));
|
|
6400
8201
|
}
|
|
6401
8202
|
};
|
|
6402
8203
|
function useDemoUserInfoForm(props) {
|
|
6403
|
-
const setStep = index_module.En(
|
|
6404
|
-
// @ts-ignore
|
|
8204
|
+
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6405
8205
|
return cjs.cjs({
|
|
6406
8206
|
setStep,
|
|
6407
|
-
onSubmit:
|
|
8207
|
+
onSubmit: () => {
|
|
6408
8208
|
setStep("/2");
|
|
6409
8209
|
},
|
|
6410
8210
|
onRadioClick: () => { },
|
|
@@ -6448,12 +8248,19 @@ function useDemoUserInfoForm(props) {
|
|
|
6448
8248
|
}
|
|
6449
8249
|
|
|
6450
8250
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
8251
|
+
exports.sqm_code_verification = WidgetCodeVerification;
|
|
6451
8252
|
exports.sqm_docusign_form = DocusignForm;
|
|
6452
8253
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
6453
8254
|
exports.sqm_invoice_table = InvoiceTable;
|
|
8255
|
+
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
6454
8256
|
exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
|
|
8257
|
+
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
6455
8258
|
exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
|
|
8259
|
+
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
6456
8260
|
exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
|
|
6457
8261
|
exports.sqm_payout_details_card = PayoutDetailsCard;
|
|
8262
|
+
exports.sqm_table_cell = TableCell;
|
|
8263
|
+
exports.sqm_table_row = TableRow;
|
|
8264
|
+
exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
6458
8265
|
exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
|
|
6459
8266
|
exports.sqm_user_info_form = TaxForm;
|