@saasquatch/mint-components 1.15.0-99 → 1.16.0-0
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} +2504 -706
- 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 +783 -1273
- 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 +36 -83
- 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 +7 -56
- 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 +76 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +27 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +180 -77
- 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 +111 -98
- 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 +1 -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} +2342 -551
- 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 +691 -1181
- 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 +24 -71
- 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-00658daa.entry.js +205 -0
- 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-08090b99.entry.js +144 -0
- 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-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-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-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-4465b8e0.system.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-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-775f3ded.entry.js +1 -0
- 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-8e478d2c.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-b94ffed3.entry.js +273 -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-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-e2f1dd8e.entry.js +9 -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-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-fc7a2647.system.entry.js +1 -0
- package/dist/mint-components/p-fe7af690.system.entry.js +1 -0
- 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 +3 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +12 -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 +34 -11
- 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 +633 -1223
- 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-3285a6b3.system.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
|
@@ -1,22 +1,142 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as Host, g as getElement } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn } from './index.module-
|
|
1
|
+
import { h, r as registerInstance, c as Host, g as getElement } from './index-91e7729f.js';
|
|
2
|
+
import { m as useRef, k as useState, f as useEffect, n as h$1, l, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-be1f9992.js';
|
|
4
|
+
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn, M as Mn, I as In, S as Sn } from './index.module-89a79f66.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
|
-
import { g as getProps,
|
|
7
|
+
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import './mixins-
|
|
10
|
-
import { G as GenericTableView } from './GenericTableView-
|
|
11
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
13
|
-
import { l as luxon } from './luxon-
|
|
14
|
-
import { g as generateUserError } from './useReferralTable-
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
9
|
+
import { E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
10
|
+
import { G as GenericTableView } from './GenericTableView-7b9087af.js';
|
|
11
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-cc945f38.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-7945ae56.js';
|
|
13
|
+
import { l as luxon } from './luxon-8d51c92b.js';
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-b3876ed6.js';
|
|
15
|
+
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
16
|
+
import { E as ErrorView } from './ErrorView-48e2b969.js';
|
|
17
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-3491dd80.js';
|
|
18
|
+
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
19
|
+
import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
|
|
20
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-f07bcf90.js';
|
|
21
|
+
import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
|
|
22
|
+
|
|
23
|
+
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
24
|
+
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
25
|
+
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
26
|
+
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
27
|
+
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
28
|
+
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
29
|
+
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
30
|
+
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
31
|
+
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
32
|
+
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
33
|
+
const GET_USER = dist.gql `
|
|
34
|
+
query getUserTaxInfo {
|
|
35
|
+
user: viewer {
|
|
36
|
+
... on User {
|
|
37
|
+
id
|
|
38
|
+
firstName
|
|
39
|
+
lastName
|
|
40
|
+
email
|
|
41
|
+
countryCode
|
|
42
|
+
customFields
|
|
43
|
+
managedIdentity {
|
|
44
|
+
uid
|
|
45
|
+
email
|
|
46
|
+
emailVerified
|
|
47
|
+
}
|
|
48
|
+
impactConnection {
|
|
49
|
+
connected
|
|
50
|
+
user {
|
|
51
|
+
firstName
|
|
52
|
+
lastName
|
|
53
|
+
}
|
|
54
|
+
publisher {
|
|
55
|
+
id
|
|
56
|
+
brandedSignup
|
|
57
|
+
countryCode
|
|
58
|
+
currency
|
|
59
|
+
billingAddress
|
|
60
|
+
billingCity
|
|
61
|
+
billingState
|
|
62
|
+
billingCountryCode
|
|
63
|
+
billingPostalCode
|
|
64
|
+
phoneNumberCountryCode
|
|
65
|
+
phoneNumber
|
|
66
|
+
taxInformation {
|
|
67
|
+
indirectTaxId
|
|
68
|
+
indirectTaxCountryCode
|
|
69
|
+
indirectTaxRegion
|
|
70
|
+
additionalTaxId
|
|
71
|
+
withholdingTaxId
|
|
72
|
+
withholdingTaxCountryCode
|
|
73
|
+
}
|
|
74
|
+
requiredTaxDocumentType
|
|
75
|
+
currentTaxDocument {
|
|
76
|
+
status
|
|
77
|
+
type
|
|
78
|
+
dateCreated
|
|
79
|
+
}
|
|
80
|
+
withdrawalSettings {
|
|
81
|
+
paymentMethod
|
|
82
|
+
paypalEmailAddress
|
|
83
|
+
bankCountry
|
|
84
|
+
bankAccountNumber
|
|
85
|
+
paymentSchedulingType
|
|
86
|
+
paymentThreshold
|
|
87
|
+
paymentDay
|
|
88
|
+
}
|
|
89
|
+
payoutsAccount {
|
|
90
|
+
hold
|
|
91
|
+
holdReasons
|
|
92
|
+
balance
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`;
|
|
100
|
+
const GET_COUNTRIES = dist.gql `
|
|
101
|
+
query getCountries {
|
|
102
|
+
impactPayoutCountries(limit: 1000) {
|
|
103
|
+
data {
|
|
104
|
+
countryCode
|
|
105
|
+
displayName
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
`;
|
|
110
|
+
const GET_CURRENCIES = dist.gql `
|
|
111
|
+
query currencies($locale: RSLocale) {
|
|
112
|
+
currencies(limit: 300) {
|
|
113
|
+
data {
|
|
114
|
+
displayName(locale: $locale)
|
|
115
|
+
currencyCode
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
120
|
+
const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
|
|
121
|
+
query impactFinanceNetworkSettings(
|
|
122
|
+
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
123
|
+
) {
|
|
124
|
+
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
125
|
+
data {
|
|
126
|
+
countryCode
|
|
127
|
+
currency
|
|
128
|
+
defaultFinancePaymentMethodId
|
|
129
|
+
thresholdOptions
|
|
130
|
+
withdrawalSettingId
|
|
131
|
+
internationalEftFee
|
|
132
|
+
foreignFxFee
|
|
133
|
+
defaultFxFee
|
|
134
|
+
}
|
|
135
|
+
totalCount
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
`;
|
|
139
|
+
const FORM_STEPS = 4;
|
|
20
140
|
|
|
21
141
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
22
142
|
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;
|
|
@@ -560,20 +680,45 @@ const style = {
|
|
|
560
680
|
gap: "8px",
|
|
561
681
|
},
|
|
562
682
|
ErrorText: {
|
|
563
|
-
color: "var(--
|
|
683
|
+
color: "var(--sl-color-danger-500)",
|
|
564
684
|
marginTop: "10px",
|
|
565
685
|
},
|
|
566
686
|
PageDescriptionText: {
|
|
567
|
-
color: "var(--
|
|
687
|
+
color: "var(--sl-color-neutral-500)",
|
|
568
688
|
fontSize: "var(--sl-font-size-medium)",
|
|
569
689
|
},
|
|
570
690
|
DescriptionText: {
|
|
571
|
-
color: "var(--
|
|
691
|
+
color: "var(--sl-color-neutral-500)",
|
|
692
|
+
},
|
|
693
|
+
SecondaryBtn: {
|
|
694
|
+
"&::part(base)": {
|
|
695
|
+
color: "var(--sl-color-gray-800) !important",
|
|
696
|
+
},
|
|
697
|
+
},
|
|
698
|
+
AlertContainer: {
|
|
699
|
+
"&::part(base)": {
|
|
700
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
701
|
+
borderTop: "none",
|
|
702
|
+
padding: "0 16px",
|
|
703
|
+
},
|
|
704
|
+
"& sl-icon::part(base)": {
|
|
705
|
+
color: "var(--sl-color-danger-500)",
|
|
706
|
+
},
|
|
572
707
|
},
|
|
573
708
|
RadioContainer: {
|
|
574
709
|
display: "flex",
|
|
575
710
|
flexDirection: "column",
|
|
576
711
|
},
|
|
712
|
+
PartnerAlertContainer: {
|
|
713
|
+
"&::part(base)": {
|
|
714
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
715
|
+
borderTop: "none",
|
|
716
|
+
padding: "0 16px",
|
|
717
|
+
},
|
|
718
|
+
"& sl-icon::part(base)": {
|
|
719
|
+
color: "var(--sl-color-blue-500)",
|
|
720
|
+
},
|
|
721
|
+
},
|
|
577
722
|
Checkbox: {
|
|
578
723
|
"&::part(control)": {
|
|
579
724
|
borderRadius: "50% !important",
|
|
@@ -585,8 +730,8 @@ const style = {
|
|
|
585
730
|
InputContainer: {
|
|
586
731
|
padding: "16px",
|
|
587
732
|
margin: "16px 0px 16px 0px",
|
|
588
|
-
borderTop: "
|
|
589
|
-
borderBottom: "
|
|
733
|
+
borderTop: "1px solid var(--sl-color-gray-300)",
|
|
734
|
+
borderBottom: "1px solid var(--sl-color-gray-300)",
|
|
590
735
|
display: "flex",
|
|
591
736
|
flexDirection: "column",
|
|
592
737
|
width: "100%",
|
|
@@ -608,20 +753,37 @@ const style = {
|
|
|
608
753
|
width: "16px",
|
|
609
754
|
height: "16px",
|
|
610
755
|
borderRadius: "50%",
|
|
611
|
-
background: "var(--
|
|
756
|
+
background: "var(--sl-color-gray-200)",
|
|
612
757
|
},
|
|
613
758
|
SmallSkeleton: {
|
|
614
759
|
width: "100px",
|
|
615
760
|
height: "16px",
|
|
616
761
|
borderRadius: "50px",
|
|
617
|
-
background: "var(--
|
|
762
|
+
background: "var(--sl-color-gray-200)",
|
|
618
763
|
},
|
|
619
764
|
LargeSkeleton: {
|
|
620
765
|
width: "100%",
|
|
621
766
|
maxWidth: "320px",
|
|
622
767
|
height: "40px",
|
|
623
768
|
borderRadius: "50px",
|
|
624
|
-
background: "var(--
|
|
769
|
+
background: "var(--sl-color-gray-200)",
|
|
770
|
+
},
|
|
771
|
+
InfoAlert: {
|
|
772
|
+
"&::part(base)": {
|
|
773
|
+
backgroundColor: "transparent",
|
|
774
|
+
borderTop: "none",
|
|
775
|
+
border: "none",
|
|
776
|
+
},
|
|
777
|
+
"&::part(message)": {
|
|
778
|
+
display: "flex",
|
|
779
|
+
alignItems: "center",
|
|
780
|
+
justifyContent: "flex-start",
|
|
781
|
+
padding: "10px",
|
|
782
|
+
height: "max-content",
|
|
783
|
+
},
|
|
784
|
+
"& sl-icon::part(base)": {
|
|
785
|
+
color: "var(--sl-color-yellow-500)",
|
|
786
|
+
},
|
|
625
787
|
},
|
|
626
788
|
InfoWarningIcon: {
|
|
627
789
|
height: "26px",
|
|
@@ -667,16 +829,20 @@ const vanillaStyle = `
|
|
|
667
829
|
font-weight: 600
|
|
668
830
|
}
|
|
669
831
|
|
|
832
|
+
p {
|
|
833
|
+
line-height: 18px;
|
|
834
|
+
color: var(--sl-color-gray-800);
|
|
835
|
+
font-size: var(--sl-font-size-small);
|
|
836
|
+
}
|
|
837
|
+
|
|
670
838
|
/* this class is dynamically applied in controller */
|
|
671
839
|
.error-input::part(base) {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
--sl-input-border-color-hover: var(--sqm-danger-color-border);
|
|
675
|
-
--sl-input-border-color-focus: var(--sqm-danger-color-background);
|
|
840
|
+
border: 1px solid var(--sl-color-danger-500);
|
|
841
|
+
border-radius: var(--sl-input-border-radius-medium);
|
|
676
842
|
}
|
|
677
843
|
|
|
678
844
|
.error-input::part(help-text) {
|
|
679
|
-
color: var(--
|
|
845
|
+
color: var(--sl-color-danger-500) !important;
|
|
680
846
|
}
|
|
681
847
|
|
|
682
848
|
`;
|
|
@@ -728,16 +894,20 @@ const BankingInfoFormView = (props) => {
|
|
|
728
894
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
729
895
|
h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
730
896
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
731
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
732
|
-
h("
|
|
897
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
898
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
899
|
+
h("strong", null, text.error.generalTitle),
|
|
900
|
+
h("br", null),
|
|
733
901
|
intl.formatMessage({
|
|
734
902
|
id: "generalDescription",
|
|
735
903
|
defaultMessage: text.error.generalDescription,
|
|
736
904
|
}, {
|
|
737
905
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
738
906
|
}))),
|
|
739
|
-
states.isPartner && !states.hideSteps && (h("
|
|
740
|
-
h("
|
|
907
|
+
states.isPartner && !states.hideSteps && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
908
|
+
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
909
|
+
h("strong", null, text.isPartnerAlertHeader),
|
|
910
|
+
h("br", null),
|
|
741
911
|
intl.formatMessage({
|
|
742
912
|
id: "isPartnerAlertDescription",
|
|
743
913
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -778,7 +948,7 @@ const BankingInfoFormView = (props) => {
|
|
|
778
948
|
h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
|
|
779
949
|
? { onClick: callbacks.onModalOpen }
|
|
780
950
|
: { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
|
|
781
|
-
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", type: "
|
|
951
|
+
!states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
782
952
|
};
|
|
783
953
|
|
|
784
954
|
// Hardcoded in Impact backend
|
|
@@ -1655,6 +1825,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1655
1825
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1656
1826
|
}
|
|
1657
1827
|
|
|
1828
|
+
const style$1 = {
|
|
1829
|
+
Wrapper: {
|
|
1830
|
+
display: "flex",
|
|
1831
|
+
flexDirection: "column",
|
|
1832
|
+
gap: "var(--sl-spacing-medium)",
|
|
1833
|
+
maxWidth: "550px",
|
|
1834
|
+
},
|
|
1835
|
+
HeaderContainer: {
|
|
1836
|
+
display: "flex",
|
|
1837
|
+
flexDirection: "column",
|
|
1838
|
+
},
|
|
1839
|
+
InputsContainer: {
|
|
1840
|
+
display: "flex",
|
|
1841
|
+
gap: "var(--sl-spacing-medium)",
|
|
1842
|
+
position: "relative",
|
|
1843
|
+
flexDirection: "column",
|
|
1844
|
+
},
|
|
1845
|
+
CodeInputContainer: {
|
|
1846
|
+
display: "flex",
|
|
1847
|
+
gap: "var(--sl-spacing-medium)",
|
|
1848
|
+
},
|
|
1849
|
+
CodeInput: {
|
|
1850
|
+
maxWidth: "40px",
|
|
1851
|
+
"&::part(input)": {
|
|
1852
|
+
margin: "0",
|
|
1853
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1854
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1855
|
+
},
|
|
1856
|
+
},
|
|
1857
|
+
CodeInputError: {
|
|
1858
|
+
...ErrorStyles,
|
|
1859
|
+
maxWidth: "40px",
|
|
1860
|
+
"&::part(input)": {
|
|
1861
|
+
margin: "0",
|
|
1862
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1863
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1864
|
+
},
|
|
1865
|
+
},
|
|
1866
|
+
ErrorText: {
|
|
1867
|
+
color: "var(--sl-color-danger-500)",
|
|
1868
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1869
|
+
margin: "0",
|
|
1870
|
+
},
|
|
1871
|
+
ContinueButton: {
|
|
1872
|
+
width: "100%",
|
|
1873
|
+
maxWidth: "100px",
|
|
1874
|
+
},
|
|
1875
|
+
FooterContainer: {
|
|
1876
|
+
display: "flex",
|
|
1877
|
+
flexDirection: "column",
|
|
1878
|
+
},
|
|
1879
|
+
SkeletonOne: {
|
|
1880
|
+
width: "50%",
|
|
1881
|
+
height: "16px",
|
|
1882
|
+
},
|
|
1883
|
+
SkeletonTwo: {
|
|
1884
|
+
width: "30%",
|
|
1885
|
+
height: "34px",
|
|
1886
|
+
},
|
|
1887
|
+
SkeletonThree: {
|
|
1888
|
+
width: "15%",
|
|
1889
|
+
height: "24px",
|
|
1890
|
+
},
|
|
1891
|
+
};
|
|
1892
|
+
const vanillaStyle$1 = `
|
|
1893
|
+
:host {
|
|
1894
|
+
display: block;
|
|
1895
|
+
}
|
|
1896
|
+
:host([hidden]): {
|
|
1897
|
+
display: none;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
`;
|
|
1902
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1903
|
+
const styleString$1 = sheet$1.toString();
|
|
1904
|
+
function WidgetCodeVerificationView(props) {
|
|
1905
|
+
const { states, refs, callbacks, text } = props;
|
|
1906
|
+
const resendCodeText = intl.formatMessage({
|
|
1907
|
+
id: "resendCodeText",
|
|
1908
|
+
defaultMessage: text.resendCodeText,
|
|
1909
|
+
}, {
|
|
1910
|
+
resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1911
|
+
e.preventDefault();
|
|
1912
|
+
callbacks.resendEmail();
|
|
1913
|
+
} }, text.resendCodeLabel)),
|
|
1914
|
+
});
|
|
1915
|
+
const codeResentSuccessfully = intl.formatMessage({
|
|
1916
|
+
id: "codeResentSuccessfully",
|
|
1917
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1918
|
+
}, {
|
|
1919
|
+
email: states.email,
|
|
1920
|
+
});
|
|
1921
|
+
const inputClass = states.verifyFailed
|
|
1922
|
+
? sheet$1.classes.CodeInputError
|
|
1923
|
+
: sheet$1.classes.CodeInput;
|
|
1924
|
+
return (h("div", { part: "sqm-base" },
|
|
1925
|
+
h("style", { type: "text/css" },
|
|
1926
|
+
vanillaStyle$1,
|
|
1927
|
+
styleString$1),
|
|
1928
|
+
h("div", { class: sheet$1.classes.Wrapper },
|
|
1929
|
+
h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1930
|
+
h(TextSpanView, { type: "p" }, intl.formatMessage({
|
|
1931
|
+
id: `emailHeaderText`,
|
|
1932
|
+
defaultMessage: states.verifyFailed
|
|
1933
|
+
? text.reverifyCodeHeaderText
|
|
1934
|
+
: text.verifyCodeHeaderText,
|
|
1935
|
+
}, { email: states.email }))),
|
|
1936
|
+
states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1937
|
+
h("b", null, codeResentSuccessfully))),
|
|
1938
|
+
h("div", { class: sheet$1.classes.InputsContainer },
|
|
1939
|
+
h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1940
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1941
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1942
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1943
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1944
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1945
|
+
h("sl-input", { class: inputClass, name: "code" })),
|
|
1946
|
+
states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1947
|
+
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)),
|
|
1948
|
+
h("div", { class: sheet$1.classes.FooterContainer },
|
|
1949
|
+
h(TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
const VerifyEmailWithCodeMutation = dist.gql `
|
|
1953
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1954
|
+
$user: UserIdInput!
|
|
1955
|
+
$code: String!
|
|
1956
|
+
) {
|
|
1957
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1958
|
+
verifiedEmail
|
|
1959
|
+
accessKey
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
`;
|
|
1963
|
+
function useWidgetCodeVerification(props) {
|
|
1964
|
+
const host = l();
|
|
1965
|
+
const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
|
|
1966
|
+
const email = Fn(VERIFICATION_EMAIL_NAMESPACE);
|
|
1967
|
+
const [emailSent, setEmailSent] = useState(false);
|
|
1968
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
1969
|
+
const [codeRef, setCodeRef] = useState(null);
|
|
1970
|
+
const [validationError, setValidationError] = useState(false);
|
|
1971
|
+
const [emailError, setEmailError] = useState(false);
|
|
1972
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
1973
|
+
useEffect(() => {
|
|
1974
|
+
if (!codeRef)
|
|
1975
|
+
return;
|
|
1976
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1977
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1978
|
+
codeElements.forEach((element, idx) => {
|
|
1979
|
+
element.addEventListener("focus", (e) => {
|
|
1980
|
+
e.target.select();
|
|
1981
|
+
});
|
|
1982
|
+
element.addEventListener("keydown", (e) => {
|
|
1983
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1984
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1985
|
+
}
|
|
1986
|
+
});
|
|
1987
|
+
element.addEventListener("input", (e) => {
|
|
1988
|
+
const input = e.data;
|
|
1989
|
+
if (!input)
|
|
1990
|
+
return;
|
|
1991
|
+
if (idx === codeElements.length - 1) {
|
|
1992
|
+
e.target.value = input.slice(0, 1);
|
|
1993
|
+
return;
|
|
1994
|
+
}
|
|
1995
|
+
if (input.length > 1) {
|
|
1996
|
+
const rest = input.slice(1);
|
|
1997
|
+
e.target.value = input.slice(0, 1);
|
|
1998
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1999
|
+
inputType: "insertFromPaste",
|
|
2000
|
+
data: rest,
|
|
2001
|
+
}));
|
|
2002
|
+
}
|
|
2003
|
+
codeElements[idx + 1].focus();
|
|
2004
|
+
});
|
|
2005
|
+
});
|
|
2006
|
+
}, [codeRef]);
|
|
2007
|
+
const reset = () => {
|
|
2008
|
+
setShowCode(false);
|
|
2009
|
+
setValidationError(false);
|
|
2010
|
+
};
|
|
2011
|
+
const resendEmail = async () => {
|
|
2012
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
2013
|
+
if (!initialized)
|
|
2014
|
+
return;
|
|
2015
|
+
const result = await sendEmail();
|
|
2016
|
+
if (!result) {
|
|
2017
|
+
setEmailError(true);
|
|
2018
|
+
return;
|
|
2019
|
+
}
|
|
2020
|
+
if (emailSent)
|
|
2021
|
+
setEmailResent(true);
|
|
2022
|
+
setEmailSent(true);
|
|
2023
|
+
};
|
|
2024
|
+
const submitCode = async () => {
|
|
2025
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
2026
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
2027
|
+
if (codeElements.find((el) => !el.value)) {
|
|
2028
|
+
setValidationError(true);
|
|
2029
|
+
return;
|
|
2030
|
+
}
|
|
2031
|
+
let code = "";
|
|
2032
|
+
codeElements.forEach((element) => {
|
|
2033
|
+
code = `${code}${element.value}`;
|
|
2034
|
+
});
|
|
2035
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
2036
|
+
if (!initialized)
|
|
2037
|
+
return;
|
|
2038
|
+
setValidationError(false);
|
|
2039
|
+
const res = await verifyEmail(code);
|
|
2040
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
2041
|
+
props.onVerification(res.accessKey);
|
|
2042
|
+
reset();
|
|
2043
|
+
}
|
|
2044
|
+
else {
|
|
2045
|
+
setValidationError(true);
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
useEffect(() => {
|
|
2049
|
+
// Wait for mutations to be determined from user lookup
|
|
2050
|
+
if (!initialized)
|
|
2051
|
+
return;
|
|
2052
|
+
// email should already exist if user has completed email-verification
|
|
2053
|
+
if (!email)
|
|
2054
|
+
resendEmail();
|
|
2055
|
+
else
|
|
2056
|
+
setEmailSent(true);
|
|
2057
|
+
}, [initialized]);
|
|
2058
|
+
return {
|
|
2059
|
+
refs: {
|
|
2060
|
+
codeWrapperRef: setCodeRef,
|
|
2061
|
+
},
|
|
2062
|
+
states: {
|
|
2063
|
+
email: verificationEmail,
|
|
2064
|
+
emailResent,
|
|
2065
|
+
resendError: sendErrors || verifyErrors,
|
|
2066
|
+
initialiseLoading: !initialized,
|
|
2067
|
+
loading: sendLoading || verifyLoading,
|
|
2068
|
+
verifyFailed: !!validationError,
|
|
2069
|
+
},
|
|
2070
|
+
callbacks: {
|
|
2071
|
+
resendEmail,
|
|
2072
|
+
submitCode,
|
|
2073
|
+
},
|
|
2074
|
+
text: props.getTextProps(),
|
|
2075
|
+
};
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
const WidgetCodeVerification = class {
|
|
2079
|
+
constructor(hostRef) {
|
|
2080
|
+
registerInstance(this, hostRef);
|
|
2081
|
+
/**
|
|
2082
|
+
* @uiName Verify code widget header text
|
|
2083
|
+
*/
|
|
2084
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2085
|
+
/**
|
|
2086
|
+
* @uiName Reverify code widget header text
|
|
2087
|
+
*/
|
|
2088
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2089
|
+
/**
|
|
2090
|
+
* Text displayed under verify button
|
|
2091
|
+
* @uiName Resend code text
|
|
2092
|
+
*/
|
|
2093
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2094
|
+
/**
|
|
2095
|
+
* The link that appears in the resend code link
|
|
2096
|
+
* @uiName Resend code label
|
|
2097
|
+
*/
|
|
2098
|
+
this.resendCodeLabel = "Resend code";
|
|
2099
|
+
/**
|
|
2100
|
+
* Link text displayed under verify button
|
|
2101
|
+
* @uiName Resend code text
|
|
2102
|
+
*/
|
|
2103
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2104
|
+
/**
|
|
2105
|
+
* Error text displayed under verification input
|
|
2106
|
+
* @uiName Invalid code text
|
|
2107
|
+
*/
|
|
2108
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2109
|
+
/**
|
|
2110
|
+
* @uiName Verify code button text
|
|
2111
|
+
*/
|
|
2112
|
+
this.verifyText = "Verify";
|
|
2113
|
+
/**
|
|
2114
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2115
|
+
* @uiName Network error message
|
|
2116
|
+
*/
|
|
2117
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2118
|
+
h$1(this);
|
|
2119
|
+
}
|
|
2120
|
+
disconnectedCallback() { }
|
|
2121
|
+
getTextProps() {
|
|
2122
|
+
return getProps(this);
|
|
2123
|
+
}
|
|
2124
|
+
render() {
|
|
2125
|
+
const props = isDemo()
|
|
2126
|
+
? useDemoWidgetCodeVerification(this)
|
|
2127
|
+
: useWidgetCodeVerification(this);
|
|
2128
|
+
return h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2129
|
+
}
|
|
2130
|
+
};
|
|
2131
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2132
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
2133
|
+
const setVerifiedContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
2134
|
+
return cjs({
|
|
2135
|
+
states: {
|
|
2136
|
+
loading: false,
|
|
2137
|
+
email: "test@example.com",
|
|
2138
|
+
emailResent,
|
|
2139
|
+
resendError: false,
|
|
2140
|
+
verifyFailed: false,
|
|
2141
|
+
},
|
|
2142
|
+
refs: {
|
|
2143
|
+
codeWrapperRef: () => { },
|
|
2144
|
+
},
|
|
2145
|
+
callbacks: {
|
|
2146
|
+
resendEmail: async () => setEmailResent(true),
|
|
2147
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2148
|
+
},
|
|
2149
|
+
text: props.getTextProps(),
|
|
2150
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2151
|
+
}
|
|
2152
|
+
|
|
1658
2153
|
const GET_TAX_DOCUMENT = dist.gql `
|
|
1659
2154
|
mutation createImpactPublisherTaxDocument(
|
|
1660
2155
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1816,7 +2311,7 @@ function getDocumentType(p) {
|
|
|
1816
2311
|
return undefined;
|
|
1817
2312
|
}
|
|
1818
2313
|
|
|
1819
|
-
const style$
|
|
2314
|
+
const style$2 = {
|
|
1820
2315
|
DocusignStatusContainer: {
|
|
1821
2316
|
width: "100%",
|
|
1822
2317
|
minHeight: "600px",
|
|
@@ -1828,7 +2323,7 @@ const style$1 = {
|
|
|
1828
2323
|
gap: "10px",
|
|
1829
2324
|
margin: "auto",
|
|
1830
2325
|
textAlign: "center",
|
|
1831
|
-
border: "
|
|
2326
|
+
border: "1px solid var(--sl-color-gray-200)",
|
|
1832
2327
|
justifyContent: "center",
|
|
1833
2328
|
},
|
|
1834
2329
|
MessageContainer: {
|
|
@@ -1843,47 +2338,47 @@ const style$1 = {
|
|
|
1843
2338
|
},
|
|
1844
2339
|
},
|
|
1845
2340
|
};
|
|
1846
|
-
const sheet$
|
|
1847
|
-
const styleString$
|
|
2341
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2342
|
+
const styleString$2 = sheet$2.toString();
|
|
1848
2343
|
const DocusignExpiredView = (props) => {
|
|
1849
|
-
const { classes } = sheet$
|
|
2344
|
+
const { classes } = sheet$2;
|
|
1850
2345
|
const { text } = props;
|
|
1851
2346
|
return (h("div", null,
|
|
1852
|
-
h("style", { type: "text/css" }, styleString$
|
|
2347
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1853
2348
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1854
2349
|
h("sl-icon", { style: {
|
|
1855
2350
|
width: "50px",
|
|
1856
2351
|
height: "50px",
|
|
1857
|
-
color: "var(--
|
|
2352
|
+
color: "var(--sl-color-neutral-500)",
|
|
1858
2353
|
}, name: "clock" }),
|
|
1859
2354
|
h("div", { class: classes.MessageContainer },
|
|
1860
2355
|
h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1861
2356
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1862
2357
|
};
|
|
1863
2358
|
const DocusignErrorView = (props) => {
|
|
1864
|
-
const { classes } = sheet$
|
|
2359
|
+
const { classes } = sheet$2;
|
|
1865
2360
|
const { text } = props;
|
|
1866
2361
|
return (h("div", null,
|
|
1867
|
-
h("style", { type: "text/css" }, styleString$
|
|
2362
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1868
2363
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1869
2364
|
h("sl-icon", { style: {
|
|
1870
2365
|
width: "50px",
|
|
1871
2366
|
height: "50px",
|
|
1872
|
-
color: "var(--
|
|
2367
|
+
color: "var(--sl-color-gray-500)",
|
|
1873
2368
|
}, name: "exclamation-octagon" }),
|
|
1874
2369
|
h("div", { class: classes.MessageContainer },
|
|
1875
2370
|
h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1876
2371
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1877
2372
|
};
|
|
1878
2373
|
const DocusignLoadingView = () => {
|
|
1879
|
-
const { classes } = sheet$
|
|
2374
|
+
const { classes } = sheet$2;
|
|
1880
2375
|
return (h("div", null,
|
|
1881
|
-
h("style", { type: "text/css" }, styleString$
|
|
2376
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1882
2377
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1883
2378
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1884
2379
|
};
|
|
1885
2380
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1886
|
-
const { classes } = sheet$
|
|
2381
|
+
const { classes } = sheet$2;
|
|
1887
2382
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
1888
2383
|
const allowedDomains = [
|
|
1889
2384
|
"referralsaasquatch.com",
|
|
@@ -1916,12 +2411,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1916
2411
|
return h(DocusignExpiredView, { text: text });
|
|
1917
2412
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1918
2413
|
return (h("div", { style: { height: iFrameHeight } },
|
|
1919
|
-
h("style", { type: "text/css" }, styleString$
|
|
2414
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1920
2415
|
h("div", { class: classes.IFrameContainer },
|
|
1921
2416
|
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1922
2417
|
};
|
|
1923
2418
|
|
|
1924
|
-
const style$
|
|
2419
|
+
const style$3 = {
|
|
1925
2420
|
ModalTitleContainer: {
|
|
1926
2421
|
display: "flex",
|
|
1927
2422
|
gap: "var(--sl-spacing-small)",
|
|
@@ -1958,7 +2453,7 @@ const style$2 = {
|
|
|
1958
2453
|
gap: "8px",
|
|
1959
2454
|
},
|
|
1960
2455
|
ErrorText: {
|
|
1961
|
-
color: "var(--
|
|
2456
|
+
color: "var(--sl-color-danger-500)",
|
|
1962
2457
|
marginTop: "10px",
|
|
1963
2458
|
},
|
|
1964
2459
|
DescriptionText: {
|
|
@@ -1967,6 +2462,44 @@ const style$2 = {
|
|
|
1967
2462
|
BoldText: {
|
|
1968
2463
|
fontWeight: "bold",
|
|
1969
2464
|
},
|
|
2465
|
+
SecondaryBtn: {
|
|
2466
|
+
"&::part(base)": {
|
|
2467
|
+
color: "var(--sl-color-gray-800) !important",
|
|
2468
|
+
},
|
|
2469
|
+
"&::part(label)": {
|
|
2470
|
+
padding: "0px",
|
|
2471
|
+
margin: "0px",
|
|
2472
|
+
},
|
|
2473
|
+
},
|
|
2474
|
+
ErrorAlertContainer: {
|
|
2475
|
+
"&::part(base)": {
|
|
2476
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
2477
|
+
borderTop: "none",
|
|
2478
|
+
padding: "0 16px",
|
|
2479
|
+
},
|
|
2480
|
+
"& sl-icon::part(base)": {
|
|
2481
|
+
color: "var(--sl-color-danger-500)",
|
|
2482
|
+
},
|
|
2483
|
+
},
|
|
2484
|
+
InfoAlert: {
|
|
2485
|
+
"&::part(base)": {
|
|
2486
|
+
backgroundColor: "transparent",
|
|
2487
|
+
borderTop: "none",
|
|
2488
|
+
padding: "0px",
|
|
2489
|
+
marginBottom: "16px",
|
|
2490
|
+
border: "none",
|
|
2491
|
+
},
|
|
2492
|
+
"&::part(message)": {
|
|
2493
|
+
display: "flex",
|
|
2494
|
+
alignItems: "center",
|
|
2495
|
+
justifyContent: "flex-start",
|
|
2496
|
+
padding: "10px",
|
|
2497
|
+
height: "max-content",
|
|
2498
|
+
},
|
|
2499
|
+
"& sl-icon::part(base)": {
|
|
2500
|
+
color: "var(--sl-color-sky-500)",
|
|
2501
|
+
},
|
|
2502
|
+
},
|
|
1970
2503
|
Container: {
|
|
1971
2504
|
width: "100%",
|
|
1972
2505
|
display: "flex",
|
|
@@ -1974,6 +2507,16 @@ const style$2 = {
|
|
|
1974
2507
|
flexDirection: "column",
|
|
1975
2508
|
gap: "16px",
|
|
1976
2509
|
},
|
|
2510
|
+
Link: {
|
|
2511
|
+
color: "var(--sl-color-sky-500)",
|
|
2512
|
+
textDecoration: "none",
|
|
2513
|
+
"&:visited": {
|
|
2514
|
+
color: "var(--sl-color-sky-500)",
|
|
2515
|
+
},
|
|
2516
|
+
"&:hover": {
|
|
2517
|
+
textDecoration: "underline",
|
|
2518
|
+
},
|
|
2519
|
+
},
|
|
1977
2520
|
CheckboxWrapper: {
|
|
1978
2521
|
display: "flex",
|
|
1979
2522
|
justifyContent: "flex-start",
|
|
@@ -1987,7 +2530,7 @@ const style$2 = {
|
|
|
1987
2530
|
fontSize: "var(--sl-font-size-small)",
|
|
1988
2531
|
},
|
|
1989
2532
|
PageDescriptionText: {
|
|
1990
|
-
color: "var(--
|
|
2533
|
+
color: "var(--sl-color-neutral-500)",
|
|
1991
2534
|
fontSize: "var(--sl-font-size-medium)",
|
|
1992
2535
|
},
|
|
1993
2536
|
Dialog: {
|
|
@@ -2013,38 +2556,41 @@ const style$2 = {
|
|
|
2013
2556
|
},
|
|
2014
2557
|
DialogButton: { margin: "auto", width: "100%" },
|
|
2015
2558
|
};
|
|
2016
|
-
const sheet$
|
|
2017
|
-
const styleString$
|
|
2018
|
-
const vanillaStyle$
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2559
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2560
|
+
const styleString$3 = sheet$3.toString();
|
|
2561
|
+
const vanillaStyle$2 = `
|
|
2562
|
+
:host{
|
|
2563
|
+
display: block;
|
|
2564
|
+
}
|
|
2565
|
+
* {
|
|
2566
|
+
margin: 0;
|
|
2567
|
+
padding: 0;
|
|
2568
|
+
box-sizing: border-box;
|
|
2569
|
+
}
|
|
2022
2570
|
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2571
|
+
p {
|
|
2572
|
+
line-height: 18px;
|
|
2573
|
+
color: var(--sl-color-gray-800);
|
|
2574
|
+
font-size: var(--sl-font-size-small);
|
|
2575
|
+
}
|
|
2028
2576
|
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
cursor: pointer;
|
|
2033
|
-
}
|
|
2577
|
+
a {
|
|
2578
|
+
cursor: pointer;
|
|
2579
|
+
}
|
|
2034
2580
|
|
|
2035
2581
|
|
|
2036
2582
|
`;
|
|
2037
2583
|
const DocusignFormView = (props) => {
|
|
2038
2584
|
var _a;
|
|
2039
2585
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2040
|
-
const { classes } = sheet$
|
|
2586
|
+
const { classes } = sheet$3;
|
|
2041
2587
|
return (h("div", { class: classes.Container },
|
|
2042
2588
|
h("style", { type: "text/css" },
|
|
2043
|
-
styleString$
|
|
2044
|
-
vanillaStyle$
|
|
2045
|
-
h("sl-dialog", { class: sheet$
|
|
2589
|
+
styleString$3,
|
|
2590
|
+
vanillaStyle$2),
|
|
2591
|
+
h("sl-dialog", { class: sheet$3.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
|
|
2046
2592
|
h("div", { class: classes.ModalTitleContainer, slot: "label" },
|
|
2047
|
-
h("sl-icon", { name: "info-circle", style: { color: "var(--
|
|
2593
|
+
h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
|
|
2048
2594
|
h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
|
|
2049
2595
|
h("p", null, intl.formatMessage({
|
|
2050
2596
|
id: "modalText",
|
|
@@ -2052,7 +2598,7 @@ const DocusignFormView = (props) => {
|
|
|
2052
2598
|
}, {
|
|
2053
2599
|
br: h("br", null),
|
|
2054
2600
|
})),
|
|
2055
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
2601
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$3.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
|
|
2056
2602
|
h("div", { class: classes.TextContainer },
|
|
2057
2603
|
h("div", null,
|
|
2058
2604
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2062,16 +2608,20 @@ const DocusignFormView = (props) => {
|
|
|
2062
2608
|
h("h3", null, text.taxForm),
|
|
2063
2609
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2064
2610
|
states.loadingError && (h("div", null,
|
|
2065
|
-
h("
|
|
2066
|
-
h("
|
|
2611
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2612
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2613
|
+
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2614
|
+
h("br", null),
|
|
2067
2615
|
intl.formatMessage({
|
|
2068
2616
|
id: "loadingErrorAlertDescription",
|
|
2069
2617
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2070
2618
|
}, {
|
|
2071
2619
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2072
2620
|
})))),
|
|
2073
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
2074
|
-
h("
|
|
2621
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2622
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2623
|
+
h("strong", null, text.error.generalTitle),
|
|
2624
|
+
h("br", null),
|
|
2075
2625
|
intl.formatMessage({
|
|
2076
2626
|
id: "generalDescription",
|
|
2077
2627
|
defaultMessage: text.error.generalDescription,
|
|
@@ -2255,7 +2805,7 @@ function useDocusignFormDemo(props) {
|
|
|
2255
2805
|
return cjs({
|
|
2256
2806
|
text: props.getTextProps(),
|
|
2257
2807
|
states: {
|
|
2258
|
-
step: "
|
|
2808
|
+
step: "4",
|
|
2259
2809
|
disabled: false,
|
|
2260
2810
|
submitDisabled: false,
|
|
2261
2811
|
loading: false,
|
|
@@ -2291,7 +2841,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2291
2841
|
return (h("div", { style: {
|
|
2292
2842
|
width: "100%",
|
|
2293
2843
|
height: "600px",
|
|
2294
|
-
background: "
|
|
2844
|
+
background: "#fafafa",
|
|
2295
2845
|
display: "flex",
|
|
2296
2846
|
justifyContent: "center",
|
|
2297
2847
|
alignItems: "center",
|
|
@@ -2303,7 +2853,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2303
2853
|
} }, h("span", null, "Placeholder for docusign iframe"), h("div", { style: { display: "flex", gap: "8px" } }, h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2304
2854
|
};
|
|
2305
2855
|
|
|
2306
|
-
const style$
|
|
2856
|
+
const style$4 = {
|
|
2307
2857
|
FormWrapper: {
|
|
2308
2858
|
display: "flex",
|
|
2309
2859
|
justifyContent: "flex-start",
|
|
@@ -2315,7 +2865,6 @@ const style$3 = {
|
|
|
2315
2865
|
justifyContent: "flex-start",
|
|
2316
2866
|
flexDirection: "column",
|
|
2317
2867
|
gap: "var(--sl-spacing-medium)",
|
|
2318
|
-
marginBottom: "16px",
|
|
2319
2868
|
"& sl-radio::part(base)": {
|
|
2320
2869
|
alignItems: "start",
|
|
2321
2870
|
},
|
|
@@ -2356,76 +2905,86 @@ const style$3 = {
|
|
|
2356
2905
|
marginTop: "10px",
|
|
2357
2906
|
},
|
|
2358
2907
|
DescriptionText: {
|
|
2359
|
-
color: "var(--
|
|
2908
|
+
color: "var(--sl-color-neutral-500)",
|
|
2360
2909
|
},
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2910
|
+
SecondaryBtn: {
|
|
2911
|
+
"&::part(base)": {
|
|
2912
|
+
color: "var(--sl-color-gray-800) !important",
|
|
2913
|
+
},
|
|
2364
2914
|
},
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2915
|
+
AlertContainer: {
|
|
2916
|
+
"&::part(base)": {
|
|
2917
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
2918
|
+
borderTop: "none",
|
|
2919
|
+
padding: "0 16px",
|
|
2920
|
+
},
|
|
2921
|
+
"& sl-icon::part(base)": {
|
|
2922
|
+
color: "var(--sl-color-danger-500)",
|
|
2923
|
+
},
|
|
2369
2924
|
},
|
|
2370
|
-
|
|
2925
|
+
PartnerAlertContainer: {
|
|
2371
2926
|
"&::part(base)": {
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
borderRadius: "var(--sqm-primary-button-radius)",
|
|
2927
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
2928
|
+
borderTop: "none",
|
|
2929
|
+
padding: "0 16px",
|
|
2376
2930
|
},
|
|
2377
|
-
"
|
|
2378
|
-
|
|
2931
|
+
"& sl-icon::part(base)": {
|
|
2932
|
+
color: "var(--sl-color-blue-500)",
|
|
2379
2933
|
},
|
|
2380
2934
|
},
|
|
2381
|
-
|
|
2935
|
+
InfoAlert: {
|
|
2936
|
+
marginTop: "var(--sl-spacing-large)",
|
|
2382
2937
|
"&::part(base)": {
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2938
|
+
backgroundColor: "transparent",
|
|
2939
|
+
borderTop: "none",
|
|
2940
|
+
padding: "0px",
|
|
2941
|
+
border: "none",
|
|
2942
|
+
},
|
|
2943
|
+
"&::part(message)": {
|
|
2944
|
+
alignItems: "center",
|
|
2945
|
+
padding: "var(--sl-spacing-small)",
|
|
2946
|
+
whiteSpace: "nowrap",
|
|
2390
2947
|
},
|
|
2391
|
-
"
|
|
2392
|
-
color: "var(--
|
|
2393
|
-
background: "var(--sqm-secondary-button-background-hover)",
|
|
2948
|
+
"& sl-icon::part(base)": {
|
|
2949
|
+
color: "var(--sl-color-yellow-500)",
|
|
2394
2950
|
},
|
|
2395
2951
|
},
|
|
2952
|
+
InfoWarningIcon: {
|
|
2953
|
+
height: "26px",
|
|
2954
|
+
width: "26px",
|
|
2955
|
+
},
|
|
2956
|
+
PageDescriptionText: {
|
|
2957
|
+
color: "var(--sl-color-neutral-500)",
|
|
2958
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2959
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
2960
|
+
},
|
|
2396
2961
|
};
|
|
2397
|
-
const sheet$
|
|
2398
|
-
const styleString$
|
|
2399
|
-
const vanillaStyle$
|
|
2962
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
2963
|
+
const styleString$4 = sheet$4.toString();
|
|
2964
|
+
const vanillaStyle$3 = `
|
|
2400
2965
|
:host{
|
|
2401
2966
|
display: block;
|
|
2402
2967
|
}
|
|
2403
|
-
|
|
2404
|
-
hr {
|
|
2405
|
-
border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
a {
|
|
2409
|
-
color: inherit;
|
|
2410
|
-
text-decoration: underline;
|
|
2411
|
-
cursor: pointer;
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
2968
|
* {
|
|
2415
2969
|
margin: 0;
|
|
2416
2970
|
padding: 0;
|
|
2417
2971
|
box-sizing: border-box;
|
|
2418
2972
|
}
|
|
2419
2973
|
|
|
2974
|
+
p {
|
|
2975
|
+
line-height: 18px;
|
|
2976
|
+
color: var(--sl-color-gray-800);
|
|
2977
|
+
font-size: var(--sl-font-size-small);
|
|
2978
|
+
}
|
|
2420
2979
|
`;
|
|
2421
2980
|
const IndirectTaxFormView = (props) => {
|
|
2422
2981
|
var _a;
|
|
2423
2982
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2424
|
-
const { classes } = sheet$
|
|
2983
|
+
const { classes } = sheet$4;
|
|
2425
2984
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2426
2985
|
h("style", { type: "text/css" },
|
|
2427
|
-
styleString$
|
|
2428
|
-
vanillaStyle$
|
|
2986
|
+
styleString$4,
|
|
2987
|
+
vanillaStyle$3),
|
|
2429
2988
|
h("div", { class: classes.TextContainer },
|
|
2430
2989
|
h("div", null,
|
|
2431
2990
|
!states.hideSteps && (h("p", null,
|
|
@@ -2438,24 +2997,30 @@ const IndirectTaxFormView = (props) => {
|
|
|
2438
2997
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2439
2998
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2440
2999
|
states.loadingError && (h("div", null,
|
|
2441
|
-
h("
|
|
2442
|
-
h("
|
|
3000
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
3001
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3002
|
+
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
3003
|
+
h("br", null),
|
|
2443
3004
|
intl.formatMessage({
|
|
2444
3005
|
id: "loadingErrorAlertDescription",
|
|
2445
3006
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2446
3007
|
}, {
|
|
2447
3008
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2448
3009
|
})))),
|
|
2449
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
2450
|
-
h("
|
|
3010
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
|
|
3011
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
3012
|
+
h("strong", null, text.error.generalTitle),
|
|
3013
|
+
h("br", null),
|
|
2451
3014
|
intl.formatMessage({
|
|
2452
3015
|
id: "generalDescription",
|
|
2453
3016
|
defaultMessage: text.error.generalDescription,
|
|
2454
3017
|
}, {
|
|
2455
3018
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2456
3019
|
}))),
|
|
2457
|
-
states.isPartner && (h("
|
|
2458
|
-
h("
|
|
3020
|
+
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
3021
|
+
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
3022
|
+
h("strong", null, text.isPartnerAlertHeader),
|
|
3023
|
+
h("br", null),
|
|
2459
3024
|
intl.formatMessage({
|
|
2460
3025
|
id: "isPartnerAlertDescription",
|
|
2461
3026
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -2476,15 +3041,17 @@ const IndirectTaxFormView = (props) => {
|
|
|
2476
3041
|
text.otherRegion,
|
|
2477
3042
|
h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2478
3043
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2479
|
-
h("
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
3044
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
3045
|
+
h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
3046
|
+
intl.formatMessage({
|
|
3047
|
+
id: "cannotChangeInfoAlert",
|
|
3048
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
3049
|
+
}, {
|
|
3050
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3051
|
+
})),
|
|
2485
3052
|
h("div", { class: classes.BtnContainer },
|
|
2486
|
-
h("sl-button", {
|
|
2487
|
-
h("sl-button", { class: classes.
|
|
3053
|
+
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
3054
|
+
h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2488
3055
|
};
|
|
2489
3056
|
|
|
2490
3057
|
const CONNECT_PARTNER = dist.gql `
|
|
@@ -2929,7 +3496,7 @@ const IndirectTaxForm = class {
|
|
|
2929
3496
|
};
|
|
2930
3497
|
function useDemoIndirectTaxForm(props) {
|
|
2931
3498
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
2932
|
-
const [option, setOption] = useState(
|
|
3499
|
+
const [option, setOption] = useState(null);
|
|
2933
3500
|
const [demoFormState, setDemoFormState] = useState({});
|
|
2934
3501
|
return cjs({
|
|
2935
3502
|
states: {
|
|
@@ -3010,26 +3577,6 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3010
3577
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3011
3578
|
}
|
|
3012
3579
|
|
|
3013
|
-
const mockInvoiceData = (count = 4) => {
|
|
3014
|
-
const data = [...Array(count)].map(() => getMockData());
|
|
3015
|
-
return { data };
|
|
3016
|
-
};
|
|
3017
|
-
const getMockData = () => {
|
|
3018
|
-
const today = luxon.DateTime.now();
|
|
3019
|
-
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3020
|
-
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3021
|
-
const indirectTax = Math.round(earnings * 0.2);
|
|
3022
|
-
return {
|
|
3023
|
-
downloadUrl: "https://example.com",
|
|
3024
|
-
dateCreated: today.toMillis(),
|
|
3025
|
-
invoiceId,
|
|
3026
|
-
program: "my-program",
|
|
3027
|
-
earnings: `$${earnings}.00`,
|
|
3028
|
-
indirectTax: `$${indirectTax}.00`,
|
|
3029
|
-
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3030
|
-
};
|
|
3031
|
-
};
|
|
3032
|
-
|
|
3033
3580
|
const debug = browser("sq:useInvoiceTable");
|
|
3034
3581
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
3035
3582
|
const GET_INVOICES = dist.gql `
|
|
@@ -3178,6 +3725,26 @@ async function tryMethod(c, callback) {
|
|
|
3178
3725
|
}
|
|
3179
3726
|
}
|
|
3180
3727
|
|
|
3728
|
+
const mockInvoiceData = (count = 4) => {
|
|
3729
|
+
const data = [...Array(count)].map(() => getMockData());
|
|
3730
|
+
return { data };
|
|
3731
|
+
};
|
|
3732
|
+
const getMockData = () => {
|
|
3733
|
+
const today = luxon.DateTime.now();
|
|
3734
|
+
const invoiceId = Math.random().toString(36).slice(2, 12);
|
|
3735
|
+
const earnings = Math.floor(Math.random() * 100) + 1;
|
|
3736
|
+
const indirectTax = Math.round(earnings * 0.2);
|
|
3737
|
+
return {
|
|
3738
|
+
downloadUrl: "https://example.com",
|
|
3739
|
+
dateCreated: today.toMillis(),
|
|
3740
|
+
invoiceId,
|
|
3741
|
+
program: "my-program",
|
|
3742
|
+
earnings: `$${earnings}.00`,
|
|
3743
|
+
indirectTax: `$${indirectTax}.00`,
|
|
3744
|
+
netEarnings: `$${earnings - indirectTax}.00`,
|
|
3745
|
+
};
|
|
3746
|
+
};
|
|
3747
|
+
|
|
3181
3748
|
const InvoiceTable = class {
|
|
3182
3749
|
constructor(hostRef) {
|
|
3183
3750
|
registerInstance(this, hostRef);
|
|
@@ -3323,6 +3890,18 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3323
3890
|
return demoProps;
|
|
3324
3891
|
}
|
|
3325
3892
|
|
|
3893
|
+
const InvoiceTableDataCell = class {
|
|
3894
|
+
constructor(hostRef) {
|
|
3895
|
+
registerInstance(this, hostRef);
|
|
3896
|
+
this.ignored = true;
|
|
3897
|
+
h$1(this);
|
|
3898
|
+
}
|
|
3899
|
+
disconnectedCallback() { }
|
|
3900
|
+
render() {
|
|
3901
|
+
return this.data;
|
|
3902
|
+
}
|
|
3903
|
+
};
|
|
3904
|
+
|
|
3326
3905
|
const InvoiceTableDataColumn = class {
|
|
3327
3906
|
constructor(hostRef) {
|
|
3328
3907
|
registerInstance(this, hostRef);
|
|
@@ -3341,6 +3920,23 @@ const InvoiceTableDataColumn = class {
|
|
|
3341
3920
|
}
|
|
3342
3921
|
};
|
|
3343
3922
|
|
|
3923
|
+
const RewardTableDateCell = class {
|
|
3924
|
+
constructor(hostRef) {
|
|
3925
|
+
registerInstance(this, hostRef);
|
|
3926
|
+
this.ignored = true;
|
|
3927
|
+
this.locale = "en";
|
|
3928
|
+
h$1(this);
|
|
3929
|
+
}
|
|
3930
|
+
disconnectedCallback() { }
|
|
3931
|
+
render() {
|
|
3932
|
+
var _a, _b;
|
|
3933
|
+
const date = !this.date
|
|
3934
|
+
? "-"
|
|
3935
|
+
: (_b = (_a = luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.DateTime.DATE_MED);
|
|
3936
|
+
return date;
|
|
3937
|
+
}
|
|
3938
|
+
};
|
|
3939
|
+
|
|
3344
3940
|
const InvoiceTableDateColumn = class {
|
|
3345
3941
|
constructor(hostRef) {
|
|
3346
3942
|
registerInstance(this, hostRef);
|
|
@@ -3359,6 +3955,21 @@ const InvoiceTableDateColumn = class {
|
|
|
3359
3955
|
}
|
|
3360
3956
|
};
|
|
3361
3957
|
|
|
3958
|
+
const InvoiceTableDownloadCell = class {
|
|
3959
|
+
constructor(hostRef) {
|
|
3960
|
+
registerInstance(this, hostRef);
|
|
3961
|
+
this.ignored = true;
|
|
3962
|
+
h$1(this);
|
|
3963
|
+
}
|
|
3964
|
+
disconnectedCallback() { }
|
|
3965
|
+
render() {
|
|
3966
|
+
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3967
|
+
cursor: pointer;
|
|
3968
|
+
}`;
|
|
3969
|
+
return (h(Host, null, h("style", null, vanillaStyle), !!this.downloadUrl && (h("a", { href: this.downloadUrl, target: "_blank" }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "#717179" }))))));
|
|
3970
|
+
}
|
|
3971
|
+
};
|
|
3972
|
+
|
|
3362
3973
|
const InvoiceTableGenericColumn = class {
|
|
3363
3974
|
constructor(hostRef) {
|
|
3364
3975
|
registerInstance(this, hostRef);
|
|
@@ -3381,17 +3992,17 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3381
3992
|
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" }),
|
|
3382
3993
|
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" })));
|
|
3383
3994
|
|
|
3384
|
-
const style$
|
|
3995
|
+
const style$5 = {
|
|
3385
3996
|
CardContainer: {
|
|
3386
3997
|
display: "grid",
|
|
3387
3998
|
gridTemplateColumns: "1fr",
|
|
3388
3999
|
gridGap: "var(--sl-spacing-large)",
|
|
3389
|
-
background: "
|
|
4000
|
+
background: "var(--sl-color-neutral-0)",
|
|
3390
4001
|
boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
|
|
3391
|
-
borderRadius: "
|
|
4002
|
+
borderRadius: "4px",
|
|
3392
4003
|
padding: "var(--sl-spacing-large)",
|
|
3393
4004
|
minHeight: "150px",
|
|
3394
|
-
border: "
|
|
4005
|
+
border: "1px solid var(--sl-color-gray-200)",
|
|
3395
4006
|
maxWidth: "450px",
|
|
3396
4007
|
},
|
|
3397
4008
|
StatusContainer: {
|
|
@@ -3401,7 +4012,7 @@ const style$4 = {
|
|
|
3401
4012
|
},
|
|
3402
4013
|
MainCurrencyLabel: {
|
|
3403
4014
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
3404
|
-
color: "var(--
|
|
4015
|
+
color: "var(--sl-color-gray-500)",
|
|
3405
4016
|
},
|
|
3406
4017
|
MainCurrency: {
|
|
3407
4018
|
margin: 0,
|
|
@@ -3410,12 +4021,12 @@ const style$4 = {
|
|
|
3410
4021
|
},
|
|
3411
4022
|
SubduedRegularText: {
|
|
3412
4023
|
fontSize: "var(--sl-font-size-small)",
|
|
3413
|
-
color: "var(--
|
|
4024
|
+
color: "var(--sl-color-gray-500)",
|
|
3414
4025
|
margin: 0,
|
|
3415
4026
|
width: "auto",
|
|
3416
4027
|
},
|
|
3417
4028
|
PaypalEmail: {
|
|
3418
|
-
borderRight: "
|
|
4029
|
+
borderRight: "1px solid var(--sl-color-gray-200)",
|
|
3419
4030
|
paddingRight: "var(--sl-spacing-small)",
|
|
3420
4031
|
"@media (max-width: 499px)": {
|
|
3421
4032
|
borderRight: "none",
|
|
@@ -3423,7 +4034,7 @@ const style$4 = {
|
|
|
3423
4034
|
},
|
|
3424
4035
|
},
|
|
3425
4036
|
PaypalDetailsContainer: {
|
|
3426
|
-
color: "var(--
|
|
4037
|
+
color: "var(--sl-color-gray-500)",
|
|
3427
4038
|
display: "flex",
|
|
3428
4039
|
gap: "var(--sl-spacing-small)",
|
|
3429
4040
|
justifyContent: "flex-start",
|
|
@@ -3444,7 +4055,7 @@ const style$4 = {
|
|
|
3444
4055
|
},
|
|
3445
4056
|
},
|
|
3446
4057
|
AccountDetailsContainer: {
|
|
3447
|
-
color: "var(--
|
|
4058
|
+
color: "var(--sl-color-gray-500)",
|
|
3448
4059
|
display: "flex",
|
|
3449
4060
|
gap: "var(--sl-spacing-small)",
|
|
3450
4061
|
justifyContent: "flex-start",
|
|
@@ -3457,7 +4068,7 @@ const style$4 = {
|
|
|
3457
4068
|
gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
|
|
3458
4069
|
paddingTop: "var(--sq-spacing-xx-small)",
|
|
3459
4070
|
"& > :not(:last-child)": {
|
|
3460
|
-
borderRight: "
|
|
4071
|
+
borderRight: "1px solid var(--sl-color-gray-200)",
|
|
3461
4072
|
},
|
|
3462
4073
|
"& > :nth-child(3)": {
|
|
3463
4074
|
border: "none",
|
|
@@ -3474,7 +4085,7 @@ const style$4 = {
|
|
|
3474
4085
|
},
|
|
3475
4086
|
W9Container: {
|
|
3476
4087
|
paddingTop: "var(--sl-spacing-large)",
|
|
3477
|
-
borderTop: "
|
|
4088
|
+
borderTop: "1px solid var(--sl-color-gray-200)",
|
|
3478
4089
|
},
|
|
3479
4090
|
SkeletonOne: {
|
|
3480
4091
|
width: "25%",
|
|
@@ -3488,22 +4099,26 @@ const style$4 = {
|
|
|
3488
4099
|
width: "50%",
|
|
3489
4100
|
height: "34px",
|
|
3490
4101
|
},
|
|
3491
|
-
|
|
4102
|
+
Alert: {
|
|
3492
4103
|
"&::part(base)": {
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
color: "var(--sl-color-white)",
|
|
4104
|
+
backgroundColor: "var(--sl-color-warning-100)",
|
|
4105
|
+
border: "1px solid var(--sl-color-warning-200)",
|
|
4106
|
+
padding: "0 16px",
|
|
3497
4107
|
},
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
color: "var(--sl-color-white)",
|
|
4108
|
+
"& sl-icon": {
|
|
4109
|
+
margin: 0,
|
|
4110
|
+
},
|
|
4111
|
+
"& sl-icon::part(base)": {
|
|
4112
|
+
color: "var(--sl-color-warning-500)",
|
|
4113
|
+
margin: 0,
|
|
3505
4114
|
},
|
|
3506
4115
|
},
|
|
4116
|
+
AlertContent: {
|
|
4117
|
+
display: "flex",
|
|
4118
|
+
alignItems: "flex-start",
|
|
4119
|
+
justifyContent: "flex-start",
|
|
4120
|
+
flexDirection: "column",
|
|
4121
|
+
},
|
|
3507
4122
|
Container: {
|
|
3508
4123
|
display: "flex",
|
|
3509
4124
|
flexDirection: "column",
|
|
@@ -3511,7 +4126,7 @@ const style$4 = {
|
|
|
3511
4126
|
},
|
|
3512
4127
|
};
|
|
3513
4128
|
function PayoutDetailsCardView(props) {
|
|
3514
|
-
const sheet = createStyleSheet(style$
|
|
4129
|
+
const sheet = createStyleSheet(style$5);
|
|
3515
4130
|
const styleString = sheet.toString();
|
|
3516
4131
|
const { classes } = sheet;
|
|
3517
4132
|
const { states, text } = props;
|
|
@@ -3525,14 +4140,13 @@ function PayoutDetailsCardView(props) {
|
|
|
3525
4140
|
};
|
|
3526
4141
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3527
4142
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
3528
|
-
const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
|
|
3529
4143
|
const statusText = intl.formatMessage({
|
|
3530
4144
|
id: "badgeText",
|
|
3531
4145
|
defaultMessage: statusBadgeText,
|
|
3532
4146
|
}, {
|
|
3533
4147
|
badgeText: status,
|
|
3534
4148
|
});
|
|
3535
|
-
return (h("sl-badge", { pill: true,
|
|
4149
|
+
return (h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3536
4150
|
};
|
|
3537
4151
|
const thresholdText = intl.formatMessage({
|
|
3538
4152
|
id: "thresholdText",
|
|
@@ -3623,83 +4237,1391 @@ const PayoutDetailsCard = class {
|
|
|
3623
4237
|
constructor(hostRef) {
|
|
3624
4238
|
registerInstance(this, hostRef);
|
|
3625
4239
|
/**
|
|
3626
|
-
* Badge text indicating payout status
|
|
3627
|
-
* @uiName Payout badge status text
|
|
4240
|
+
* Badge text indicating payout status
|
|
4241
|
+
* @uiName Payout badge status text
|
|
4242
|
+
*/
|
|
4243
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4244
|
+
/**
|
|
4245
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4246
|
+
* @uiName Payout schedule by threshold text
|
|
4247
|
+
*/
|
|
4248
|
+
this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
4249
|
+
/**
|
|
4250
|
+
* Shown before the participant’s bank account information.
|
|
4251
|
+
* @uiName Bank account field label
|
|
4252
|
+
*/
|
|
4253
|
+
this.accountText = "Account";
|
|
4254
|
+
/**
|
|
4255
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
4256
|
+
* @uiName Payout missing information subtext
|
|
4257
|
+
*/
|
|
4258
|
+
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
4259
|
+
h$1(this);
|
|
4260
|
+
}
|
|
4261
|
+
disconnectedCallback() { }
|
|
4262
|
+
getTextProps() {
|
|
4263
|
+
const props = getProps(this);
|
|
4264
|
+
return {
|
|
4265
|
+
...props,
|
|
4266
|
+
};
|
|
4267
|
+
}
|
|
4268
|
+
render() {
|
|
4269
|
+
const props = isDemo()
|
|
4270
|
+
? useDemoPayoutDetailsCard(this)
|
|
4271
|
+
: usePayoutDetailsCard(this);
|
|
4272
|
+
return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
4273
|
+
}
|
|
4274
|
+
};
|
|
4275
|
+
function useDemoPayoutDetailsCard(props) {
|
|
4276
|
+
return cjs({
|
|
4277
|
+
states: {
|
|
4278
|
+
loading: false,
|
|
4279
|
+
error: false,
|
|
4280
|
+
thresholdBalance: "$50",
|
|
4281
|
+
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
4282
|
+
badgeStatus: "nextPayout",
|
|
4283
|
+
payoutType: "BANK_TRANSFER",
|
|
4284
|
+
nextPayoutDate: "March 14, 2024",
|
|
4285
|
+
paypalEmailAddress: "joesmith@example.com",
|
|
4286
|
+
otherCurrencies: false,
|
|
4287
|
+
hasW9Pending: false,
|
|
4288
|
+
hasDatePending: true,
|
|
4289
|
+
cardNumberPreview: "XX2381",
|
|
4290
|
+
balance: "20.00 USD",
|
|
4291
|
+
},
|
|
4292
|
+
text: props.getTextProps(),
|
|
4293
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
const TableCell = class {
|
|
4297
|
+
constructor(hostRef) {
|
|
4298
|
+
registerInstance(this, hostRef);
|
|
4299
|
+
/** @uiName Column span */
|
|
4300
|
+
this.colspan = 1;
|
|
4301
|
+
/** @uiName Padding */
|
|
4302
|
+
this.padding = "15px 10px";
|
|
4303
|
+
}
|
|
4304
|
+
render() {
|
|
4305
|
+
return (h(Host, { style: { display: "contents" } }, h("td", { colSpan: this.colspan, style: { padding: this.padding } }, h("slot", null))));
|
|
4306
|
+
}
|
|
4307
|
+
};
|
|
4308
|
+
|
|
4309
|
+
const TableRow = class {
|
|
4310
|
+
constructor(hostRef) {
|
|
4311
|
+
registerInstance(this, hostRef);
|
|
4312
|
+
/**
|
|
4313
|
+
* @uiName Border
|
|
4314
|
+
*/
|
|
4315
|
+
this.border = "1px solid #EAEAEA";
|
|
4316
|
+
}
|
|
4317
|
+
render() {
|
|
4318
|
+
return (h(Host, { style: { display: "contents" } }, h("tr", { style: { border: this.border } }, h("slot", null))));
|
|
4319
|
+
}
|
|
4320
|
+
};
|
|
4321
|
+
|
|
4322
|
+
function getCurrentStep(user) {
|
|
4323
|
+
var _a, _b;
|
|
4324
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4325
|
+
return "/1";
|
|
4326
|
+
}
|
|
4327
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
4328
|
+
// If they do have a required document, look at current document
|
|
4329
|
+
if (requiredTaxDocumentType && !currentTaxDocument) {
|
|
4330
|
+
// Specific to custom CASH setting,
|
|
4331
|
+
if (payoutsAccount.hold &&
|
|
4332
|
+
payoutsAccount.holdReasons.includes("NO_W9_DOCUMENT"))
|
|
4333
|
+
return "/dashboard";
|
|
4334
|
+
return "/3";
|
|
4335
|
+
}
|
|
4336
|
+
if (!withdrawalSettings && brandedSignup)
|
|
4337
|
+
return "/4";
|
|
4338
|
+
return "/dashboard";
|
|
4339
|
+
}
|
|
4340
|
+
function useTaxAndCash() {
|
|
4341
|
+
var _a, _b, _c, _d, _e;
|
|
4342
|
+
const host = _();
|
|
4343
|
+
const user = J();
|
|
4344
|
+
const locale = L();
|
|
4345
|
+
// State for current step of form
|
|
4346
|
+
const [step, setStep] = In({
|
|
4347
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4348
|
+
initialValue: "/loading",
|
|
4349
|
+
});
|
|
4350
|
+
// State for when to hide steps, or override certain actions
|
|
4351
|
+
const [context, _setContext] = In({
|
|
4352
|
+
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4353
|
+
initialValue: {},
|
|
4354
|
+
});
|
|
4355
|
+
// State to carry user form information into step 2
|
|
4356
|
+
const [userFormContext, _setUserFormContext] = In({
|
|
4357
|
+
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4358
|
+
initialValue: {
|
|
4359
|
+
firstName: undefined,
|
|
4360
|
+
lastName: undefined,
|
|
4361
|
+
email: undefined,
|
|
4362
|
+
countryCode: undefined,
|
|
4363
|
+
currency: undefined,
|
|
4364
|
+
},
|
|
4365
|
+
});
|
|
4366
|
+
const [_currenciesContext, setCurrenciesContext] = In({
|
|
4367
|
+
namespace: CURRENCIES_NAMESPACE,
|
|
4368
|
+
initialValue: [],
|
|
4369
|
+
});
|
|
4370
|
+
const [_countriesContext, _setCountriesContext] = In({
|
|
4371
|
+
namespace: COUNTRIES_NAMESPACE,
|
|
4372
|
+
initialValue: [],
|
|
4373
|
+
});
|
|
4374
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = In({
|
|
4375
|
+
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4376
|
+
initialValue: [],
|
|
4377
|
+
});
|
|
4378
|
+
const { data, errors } = Sn({
|
|
4379
|
+
namespace: USER_QUERY_NAMESPACE,
|
|
4380
|
+
query: GET_USER,
|
|
4381
|
+
skip: !user,
|
|
4382
|
+
options: {
|
|
4383
|
+
batch: false,
|
|
4384
|
+
},
|
|
4385
|
+
});
|
|
4386
|
+
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) ||
|
|
4387
|
+
userFormContext.countryCode;
|
|
4388
|
+
Sn({
|
|
4389
|
+
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4390
|
+
query: GET_COUNTRIES,
|
|
4391
|
+
skip: !user,
|
|
4392
|
+
});
|
|
4393
|
+
const { data: financeNetworkData, refetch } = Sn({
|
|
4394
|
+
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4395
|
+
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4396
|
+
skip: !user,
|
|
4397
|
+
variables: {
|
|
4398
|
+
filter: getFinanceNetworkFilter(),
|
|
4399
|
+
},
|
|
4400
|
+
});
|
|
4401
|
+
const { data: currenciesData } = Sn({
|
|
4402
|
+
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4403
|
+
query: GET_CURRENCIES,
|
|
4404
|
+
skip: !user,
|
|
4405
|
+
variables: {
|
|
4406
|
+
locale,
|
|
4407
|
+
},
|
|
4408
|
+
});
|
|
4409
|
+
const supportedCurrencies = useMemo(() => {
|
|
4410
|
+
var _a, _b;
|
|
4411
|
+
// Filter out any currencies not supported by finance network settings
|
|
4412
|
+
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) => {
|
|
4413
|
+
var _a, _b;
|
|
4414
|
+
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);
|
|
4415
|
+
// Currency not in supported list
|
|
4416
|
+
if (!currency)
|
|
4417
|
+
return agg;
|
|
4418
|
+
// Currency already added to list
|
|
4419
|
+
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4420
|
+
return agg;
|
|
4421
|
+
// Currency not supported by selected country
|
|
4422
|
+
if (userFormContext.countryCode &&
|
|
4423
|
+
settings.countryCode !== countryCode)
|
|
4424
|
+
return agg;
|
|
4425
|
+
return [...agg, currency];
|
|
4426
|
+
}, []);
|
|
4427
|
+
return allValidCurrencies;
|
|
4428
|
+
}, [financeNetworkData, countryCode]);
|
|
4429
|
+
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4430
|
+
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4431
|
+
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4432
|
+
// filter out any duplicate countries and null countryCode
|
|
4433
|
+
const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4434
|
+
const _topCountries = ["CA", "GB", "US"];
|
|
4435
|
+
const sortedCountries = useMemo(() => Array.from(availableCountries)
|
|
4436
|
+
.map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
|
|
4437
|
+
.sort(sortByName)
|
|
4438
|
+
.reduce((prev, countryObj) => {
|
|
4439
|
+
if (_topCountries.includes(countryObj.countryCode))
|
|
4440
|
+
return [countryObj, ...prev];
|
|
4441
|
+
return [...prev, countryObj];
|
|
4442
|
+
}, []), [availableCountries]);
|
|
4443
|
+
useEffect(() => {
|
|
4444
|
+
if (sortedCountries)
|
|
4445
|
+
setSortedCountriesContext(sortedCountries);
|
|
4446
|
+
}, [sortedCountries]);
|
|
4447
|
+
useEffect(() => {
|
|
4448
|
+
if (supportedCurrencies)
|
|
4449
|
+
setCurrenciesContext(supportedCurrencies);
|
|
4450
|
+
}, [supportedCurrencies]);
|
|
4451
|
+
useEffect(() => {
|
|
4452
|
+
if (errors) {
|
|
4453
|
+
setStep("/error");
|
|
4454
|
+
return;
|
|
4455
|
+
}
|
|
4456
|
+
if (!host || !user)
|
|
4457
|
+
return;
|
|
4458
|
+
if (data) {
|
|
4459
|
+
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4460
|
+
if (!user || step !== "/loading")
|
|
4461
|
+
return;
|
|
4462
|
+
const currentStep = getCurrentStep(user);
|
|
4463
|
+
setStep(currentStep);
|
|
4464
|
+
}
|
|
4465
|
+
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4466
|
+
function getFinanceNetworkFilter() {
|
|
4467
|
+
var _a, _b, _c;
|
|
4468
|
+
if (step === "/1")
|
|
4469
|
+
return {};
|
|
4470
|
+
if (step === "/4")
|
|
4471
|
+
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 };
|
|
4472
|
+
if (countryCode)
|
|
4473
|
+
return {
|
|
4474
|
+
countryCode_eq: countryCode,
|
|
4475
|
+
};
|
|
4476
|
+
return {};
|
|
4477
|
+
}
|
|
4478
|
+
return {
|
|
4479
|
+
step,
|
|
4480
|
+
setStep,
|
|
4481
|
+
context,
|
|
4482
|
+
namespace: Mn(TAX_CONTEXT_NAMESPACE),
|
|
4483
|
+
loading: step === "/loading",
|
|
4484
|
+
};
|
|
4485
|
+
}
|
|
4486
|
+
|
|
4487
|
+
const TaxAndCashMonolith = class {
|
|
4488
|
+
constructor(hostRef) {
|
|
4489
|
+
registerInstance(this, hostRef);
|
|
4490
|
+
/*---------------------------------------------------------------------------------
|
|
4491
|
+
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4492
|
+
-----------------------------------------------------------------------------------*/
|
|
4493
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4494
|
+
STEP 1 PROPS:
|
|
4495
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4496
|
+
/**
|
|
4497
|
+
* @uiName First name field label
|
|
4498
|
+
* @uiGroup Step 1 Properties
|
|
4499
|
+
*/
|
|
4500
|
+
this.step1_firstName = "First name";
|
|
4501
|
+
/**
|
|
4502
|
+
* @uiName Last name field label
|
|
4503
|
+
* @uiGroup Step 1 Properties
|
|
4504
|
+
*/
|
|
4505
|
+
this.step1_lastName = "Last name";
|
|
4506
|
+
/**
|
|
4507
|
+
* @uiName Email field label
|
|
4508
|
+
* @uiGroup Step 1 Properties
|
|
4509
|
+
*/
|
|
4510
|
+
this.step1_email = "Email";
|
|
4511
|
+
/**
|
|
4512
|
+
* @uiName Country field label
|
|
4513
|
+
* @uiGroup Step 1 Properties
|
|
4514
|
+
*/
|
|
4515
|
+
this.step1_country = "Country";
|
|
4516
|
+
/**
|
|
4517
|
+
* @uiName Phone number field label
|
|
4518
|
+
* @uiGroup Step 1 Properties
|
|
4519
|
+
*/
|
|
4520
|
+
this.step1_phoneNumber = "Phone number";
|
|
4521
|
+
/**
|
|
4522
|
+
* @uiName Address field label
|
|
4523
|
+
* @uiGroup Step 1 Properties
|
|
4524
|
+
*/
|
|
4525
|
+
this.step1_address = "Address";
|
|
4526
|
+
/**
|
|
4527
|
+
* @uiName City field label
|
|
4528
|
+
* @uiGroup Step 1 Properties
|
|
4529
|
+
*/
|
|
4530
|
+
this.step1_city = "City";
|
|
4531
|
+
/**
|
|
4532
|
+
* @uiName State field label for states
|
|
4533
|
+
* @uiGroup Step 1 Properties
|
|
4534
|
+
*/
|
|
4535
|
+
this.step1_state = "State";
|
|
4536
|
+
/**
|
|
4537
|
+
* @uiName State field label for provinces
|
|
4538
|
+
* @uiGroup Step 1 Properties
|
|
4539
|
+
*/
|
|
4540
|
+
this.step1_province = "Province";
|
|
4541
|
+
/**
|
|
4542
|
+
* @uiName State field label for regions
|
|
4543
|
+
* @uiGroup Step 1 Properties
|
|
4544
|
+
*/
|
|
4545
|
+
this.step1_region = "Region";
|
|
4546
|
+
/**
|
|
4547
|
+
* @uiName Postal code field label
|
|
4548
|
+
* @uiGroup Step 1 Properties
|
|
4549
|
+
*/
|
|
4550
|
+
this.step1_postalCode = "Postal code";
|
|
4551
|
+
/**
|
|
4552
|
+
* @uiName Currency field label
|
|
4553
|
+
* @uiGroup Step 1 Properties
|
|
4554
|
+
*/
|
|
4555
|
+
this.step1_currency = "Currency";
|
|
4556
|
+
/**
|
|
4557
|
+
* @uiName Currency field help text
|
|
4558
|
+
* @uiGroup Step 1 Properties
|
|
4559
|
+
*/
|
|
4560
|
+
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4561
|
+
/**
|
|
4562
|
+
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4563
|
+
* @uiName Terms and conditions checkbox
|
|
4564
|
+
* @uiGroup Step 1 Properties
|
|
4565
|
+
*/
|
|
4566
|
+
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4567
|
+
/**
|
|
4568
|
+
* @uiName Step 1 title
|
|
4569
|
+
* @uiGroup Step 1 Properties
|
|
4570
|
+
*/
|
|
4571
|
+
this.step1_personalInformation = "Personal Information";
|
|
4572
|
+
/**
|
|
4573
|
+
* The link text that appears in the terms and conditions checkbox
|
|
4574
|
+
* @uiName Terms and conditions text
|
|
4575
|
+
* @uiGroup Step 1 Properties
|
|
4576
|
+
* @uiWidget textArea
|
|
4577
|
+
*/
|
|
4578
|
+
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4579
|
+
/**
|
|
4580
|
+
* The link that appears in the terms and conditions checkbox
|
|
4581
|
+
* @uiName Terms and conditions link
|
|
4582
|
+
* @uiGroup Step 1 Properties
|
|
4583
|
+
*/
|
|
4584
|
+
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4585
|
+
/**
|
|
4586
|
+
* Placeholder text displayed in the currency search dropdown
|
|
4587
|
+
* @uiName Currency field placeholder text
|
|
4588
|
+
* @uiGroup Step 1 Properties
|
|
4589
|
+
*/
|
|
4590
|
+
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4591
|
+
/**
|
|
4592
|
+
|
|
4593
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4594
|
+
STEP 2 PROPS:
|
|
4595
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4596
|
+
/**
|
|
4597
|
+
* @uiName Step 2 title
|
|
4598
|
+
* @uiGroup Step 2 Properties
|
|
4599
|
+
*/
|
|
4600
|
+
this.step2_indirectTax = "Indirect Tax";
|
|
4601
|
+
/**
|
|
4602
|
+
* Displayed under the title of this step.
|
|
4603
|
+
* @uiName Step 2 description
|
|
4604
|
+
* @uiGroup Step 2 Properties
|
|
4605
|
+
* @uiWidget textArea
|
|
4606
|
+
*/
|
|
4607
|
+
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.";
|
|
4608
|
+
/**
|
|
4609
|
+
* Displayed with indirect tax registration options.
|
|
4610
|
+
* @uiName Indirect tax details section title
|
|
4611
|
+
* @uiGroup Step 2 Properties
|
|
4612
|
+
*/
|
|
4613
|
+
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4614
|
+
/**
|
|
4615
|
+
* @uiName Registered for indirect tax option
|
|
4616
|
+
* @uiGroup Step 2 Properties
|
|
4617
|
+
* @uiWidget textArea
|
|
4618
|
+
*
|
|
4619
|
+
*/
|
|
4620
|
+
this.step2_otherRegion = "Registered for indirect tax";
|
|
4621
|
+
/**
|
|
4622
|
+
* Selecting this option will display fields to enter indirect tax details.
|
|
4623
|
+
* @uiName Registered for indirect tax option description
|
|
4624
|
+
* @uiGroup Step 2 Properties
|
|
4625
|
+
*/
|
|
4626
|
+
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4627
|
+
/**
|
|
4628
|
+
* @uiName Not registered for indirect tax option
|
|
4629
|
+
* @uiGroup Step 2 Properties
|
|
4630
|
+
* @uiWidget textArea
|
|
4631
|
+
*/
|
|
4632
|
+
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4633
|
+
/**
|
|
4634
|
+
* Participants based in the US are considered not registered.
|
|
4635
|
+
* @uiName Not registered for indirect tax option description
|
|
4636
|
+
* @uiGroup Step 2 Properties
|
|
4637
|
+
*/
|
|
4638
|
+
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4639
|
+
/**
|
|
4640
|
+
* @uiName Region of indirect tax field label
|
|
4641
|
+
* @uiGroup Step 2 Properties
|
|
4642
|
+
*/
|
|
4643
|
+
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4644
|
+
/**
|
|
4645
|
+
* @uiName Indirect tax number field label
|
|
4646
|
+
* @uiGroup Step 2 Properties
|
|
4647
|
+
*/
|
|
4648
|
+
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4649
|
+
/**
|
|
4650
|
+
* @uiName Province field label
|
|
4651
|
+
* @uiGroup Step 2 Properties
|
|
4652
|
+
*/
|
|
4653
|
+
this.step2_province = "Province";
|
|
4654
|
+
/**
|
|
4655
|
+
* @uiName Missing indirect tax number error message
|
|
4656
|
+
* @uiGroup Step 2 Properties
|
|
4657
|
+
*/
|
|
4658
|
+
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";
|
|
4659
|
+
/**
|
|
4660
|
+
* Displayed to participants registered for QST.
|
|
4661
|
+
* @uiName QST number field label
|
|
4662
|
+
* @uiGroup Step 2 Properties
|
|
4663
|
+
*/
|
|
4664
|
+
this.step2_qstNumber = "QST number";
|
|
4665
|
+
/**
|
|
4666
|
+
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4667
|
+
* @uiName QST tax checkbox
|
|
4668
|
+
* @uiGroup Step 2 Properties
|
|
4669
|
+
*/
|
|
4670
|
+
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4671
|
+
/**
|
|
4672
|
+
* Displayed to participants registered for indirect tax in Spain.
|
|
4673
|
+
* @uiName Spain income tax checkbox
|
|
4674
|
+
* @uiGroup Step 2 Properties
|
|
4675
|
+
* @uiWidget textArea
|
|
4676
|
+
*/
|
|
4677
|
+
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.";
|
|
4678
|
+
/**
|
|
4679
|
+
* Displayed to participants registered in Spain.
|
|
4680
|
+
* @uiName Sub-region of indirect tax field label
|
|
4681
|
+
* @uiGroup Step 2 Properties
|
|
4682
|
+
*/
|
|
4683
|
+
this.step2_subRegion = "Sub-region";
|
|
4684
|
+
/**
|
|
4685
|
+
* @uiName Income tax field label
|
|
4686
|
+
* @uiGroup Step 2 Properties
|
|
4687
|
+
*/
|
|
4688
|
+
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4689
|
+
/**
|
|
4690
|
+
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4691
|
+
* @uiName Submission confirmation alert
|
|
4692
|
+
* @uiGroup Step 2 Properties
|
|
4693
|
+
* @uiWidget textArea
|
|
4694
|
+
*/
|
|
4695
|
+
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.";
|
|
4696
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4697
|
+
STEP 3 PROPS:
|
|
4698
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4699
|
+
/**
|
|
4700
|
+
* @uiName Step 3 title
|
|
4701
|
+
* @uiGroup Step 3 Properties
|
|
4702
|
+
*/
|
|
4703
|
+
this.step3_taxForm = "Tax form";
|
|
4704
|
+
/**
|
|
4705
|
+
* Display the type of tax form that the participant must submit.
|
|
4706
|
+
* @uiName Tax form name
|
|
4707
|
+
* @uiGroup Step 3 Properties
|
|
4708
|
+
*/
|
|
4709
|
+
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4710
|
+
/**
|
|
4711
|
+
* @uiName Participant type field label
|
|
4712
|
+
* @uiGroup Step 3 Properties
|
|
4713
|
+
*/
|
|
4714
|
+
this.step3_participantType = "Participant type";
|
|
4715
|
+
/**
|
|
4716
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4717
|
+
* @uiName Business representative participant type label
|
|
4718
|
+
* @uiGroup Step 3 Properties
|
|
4719
|
+
*/
|
|
4720
|
+
this.step3_businessEntity = "I represent a business";
|
|
4721
|
+
/**
|
|
4722
|
+
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4723
|
+
* @uiName Individual participant type label
|
|
4724
|
+
* @uiGroup Step 3 Properties
|
|
4725
|
+
*/
|
|
4726
|
+
this.step3_individualParticipant = "I am an individual participant";
|
|
4727
|
+
/**
|
|
4728
|
+
* Displayed at the top of the page to participants based in the US.
|
|
4729
|
+
* @uiName W-9 tax form description
|
|
4730
|
+
* @uiGroup Step 3 Properties
|
|
4731
|
+
* @uiWidget textArea
|
|
4732
|
+
*/
|
|
4733
|
+
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4734
|
+
/**
|
|
4735
|
+
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4736
|
+
* @uiName W-8 BEN tax form description
|
|
4737
|
+
* @uiGroup Step 3 Properties
|
|
4738
|
+
* @uiWidget textArea
|
|
4739
|
+
*/
|
|
4740
|
+
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4741
|
+
/**
|
|
4742
|
+
* Displayed at the top of the page to participants representing a business.
|
|
4743
|
+
* @uiName W-8 BEN-E tax form description
|
|
4744
|
+
* @uiGroup Step 3 Properties
|
|
4745
|
+
* @uiWidget textArea
|
|
4746
|
+
*/
|
|
4747
|
+
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4748
|
+
/**
|
|
4749
|
+
* This appears inside the Docusign frame.
|
|
4750
|
+
* @uiName Docusign session expired message
|
|
4751
|
+
* @uiGroup Step 3 Properties
|
|
4752
|
+
* @uiWidget textArea
|
|
4753
|
+
*/
|
|
4754
|
+
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.";
|
|
4755
|
+
/**
|
|
4756
|
+
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4757
|
+
* @uiName Docusign timed session message
|
|
4758
|
+
* @uiGroup Step 3 Properties
|
|
4759
|
+
* @uiWidget textArea
|
|
4760
|
+
*/
|
|
4761
|
+
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4762
|
+
/**
|
|
4763
|
+
* This appears inside the Docusign frame.
|
|
4764
|
+
* @uiName Docusign form error message
|
|
4765
|
+
* @uiGroup Step 3 Properties
|
|
4766
|
+
* @uiWidget textArea
|
|
4767
|
+
*/
|
|
4768
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4769
|
+
/**
|
|
4770
|
+
* @uiName Refresh page button label
|
|
4771
|
+
* @uiGroup Step 3 Properties
|
|
4772
|
+
*/
|
|
4773
|
+
this.step3_refreshButton = "Refresh Page";
|
|
4774
|
+
/**
|
|
4775
|
+
* @uiName Exit button text
|
|
4776
|
+
* @uiGroup Step 3 Properties
|
|
4777
|
+
*/
|
|
4778
|
+
this.step3_exitButton = "Exit";
|
|
4779
|
+
/**
|
|
4780
|
+
* @uiName Information modal title
|
|
4781
|
+
* @uiGroup Step 3 Properties
|
|
4782
|
+
*/
|
|
4783
|
+
this.step3_modalTitle = "Important Note";
|
|
4784
|
+
/**
|
|
4785
|
+
* @uiName Information modal description text
|
|
4786
|
+
* @uiGroup Step 3 Properties
|
|
4787
|
+
*/
|
|
4788
|
+
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.";
|
|
4789
|
+
/**
|
|
4790
|
+
* @uiName Information modal button text
|
|
4791
|
+
* @uiGroup Step 3 Properties
|
|
4792
|
+
*/
|
|
4793
|
+
this.step3_modalButtonText = "I understand";
|
|
4794
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4795
|
+
STEP 4 PROPS:
|
|
4796
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4797
|
+
/**
|
|
4798
|
+
* @uiName Step 4 title
|
|
4799
|
+
* @uiGroup Step 4 Properties
|
|
4800
|
+
*/
|
|
4801
|
+
this.step4_taxAndPayouts = "Payouts";
|
|
4802
|
+
/**
|
|
4803
|
+
* @uiName Direct to bank payout option
|
|
4804
|
+
* @uiGroup Step 4 Properties
|
|
4805
|
+
*/
|
|
4806
|
+
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4807
|
+
/**
|
|
4808
|
+
* @uiName PayPal payout option
|
|
4809
|
+
* @uiGroup Step 4 Properties
|
|
4810
|
+
*/
|
|
4811
|
+
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4812
|
+
/**
|
|
4813
|
+
* @uiName Threshold balance payment schedule option
|
|
4814
|
+
* @uiGroup Step 4 Properties
|
|
4815
|
+
*/
|
|
4816
|
+
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4817
|
+
/**
|
|
4818
|
+
* @uiName Fixed day payment schedule option
|
|
4819
|
+
* @uiGroup Step 4 Properties
|
|
4820
|
+
*/
|
|
4821
|
+
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4822
|
+
/**
|
|
4823
|
+
* Let the participant choose what day of the month they’ll get paid
|
|
4824
|
+
* @uiName Payment day field label
|
|
4825
|
+
* @uiGroup Step 4 Properties
|
|
4826
|
+
*/
|
|
4827
|
+
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4828
|
+
/**
|
|
4829
|
+
* Participant use this field to select the balance at which they want to be paid
|
|
4830
|
+
* @uiName Payment threshold field label
|
|
4831
|
+
* @uiGroup Step 4 Properties
|
|
4832
|
+
*/
|
|
4833
|
+
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4834
|
+
/**
|
|
4835
|
+
* One of two payment day options
|
|
4836
|
+
* @uiName First of month payday option
|
|
4837
|
+
* @uiGroup Step 4 Properties
|
|
4838
|
+
*/
|
|
4839
|
+
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4840
|
+
/**
|
|
4841
|
+
* One of two payment day options
|
|
4842
|
+
* @uiName Fifteenth of month payday option
|
|
4843
|
+
* @uiGroup Step 4 Properties
|
|
4844
|
+
*/
|
|
4845
|
+
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4846
|
+
/**
|
|
4847
|
+
* @uiName Payment method section header
|
|
4848
|
+
* @uiGroup Step 4 Properties
|
|
4849
|
+
*/
|
|
4850
|
+
this.step4_paymentMethod = "Payment method";
|
|
4851
|
+
/**
|
|
4852
|
+
* @uiName Payment schedule section header
|
|
4853
|
+
* @uiGroup Step 4 Properties
|
|
4854
|
+
*/
|
|
4855
|
+
this.step4_paymentSchedule = "Payment schedule";
|
|
4856
|
+
/**
|
|
4857
|
+
* @uiName Payment method section description
|
|
4858
|
+
* @uiGroup Step 4 Properties
|
|
4859
|
+
*/
|
|
4860
|
+
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4861
|
+
/**
|
|
4862
|
+
* Displayed to participants who choose PayPal as their payout method
|
|
4863
|
+
* @uiName PayPal email field label
|
|
4864
|
+
* @uiGroup Step 4 Properties
|
|
4865
|
+
*/
|
|
4866
|
+
this.step4_payPalInputLabel = "PayPal email";
|
|
4867
|
+
/**
|
|
4868
|
+
* @uiName Bank country field label
|
|
4869
|
+
* @uiGroup Step 4 Properties
|
|
4870
|
+
*/
|
|
4871
|
+
this.step4_bankLocationLabel = "Bank country location";
|
|
4872
|
+
/**
|
|
4873
|
+
* @uiName Beneficiary account field label
|
|
4874
|
+
* @uiGroup Step 4 Properties
|
|
4875
|
+
*/
|
|
4876
|
+
this.step4_beneficiaryAccountNameLabel = "Account holder name";
|
|
4877
|
+
/**
|
|
4878
|
+
* @uiName Beneficiary account field description
|
|
4879
|
+
* @uiGroup Step 4 Properties
|
|
4880
|
+
*/
|
|
4881
|
+
this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
|
|
4882
|
+
/**
|
|
4883
|
+
* @uiName Bank account type field label
|
|
4884
|
+
* @uiGroup Step 4 Properties
|
|
4885
|
+
*/
|
|
4886
|
+
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4887
|
+
/**
|
|
4888
|
+
* @uiName Checking account option
|
|
4889
|
+
* @uiGroup Step 4 Properties
|
|
4890
|
+
*/
|
|
4891
|
+
this.step4_checkingSelectItemLabel = "Checking";
|
|
4892
|
+
/**
|
|
4893
|
+
* Label text for the savings account type select item
|
|
4894
|
+
* @uiName Savings account options
|
|
4895
|
+
* @uiGroup Step 4 Properties
|
|
4896
|
+
*/
|
|
4897
|
+
this.step4_savingsSelectItemLabel = "Savings";
|
|
4898
|
+
/**
|
|
4899
|
+
* @uiName Bank account number field label
|
|
4900
|
+
* @uiGroup Step 4 Properties
|
|
4901
|
+
*/
|
|
4902
|
+
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4903
|
+
/**
|
|
4904
|
+
* @uiName IBAN field label
|
|
4905
|
+
* @uiGroup Step 4 Properties
|
|
4906
|
+
*/
|
|
4907
|
+
this.step4_ibanLabel = "IBAN";
|
|
4908
|
+
/**
|
|
4909
|
+
* @uiName SWIFT code field label
|
|
4910
|
+
* @uiGroup Step 4 Properties
|
|
4911
|
+
*/
|
|
4912
|
+
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4913
|
+
/**
|
|
4914
|
+
* @uiName Routing code field label
|
|
4915
|
+
* @uiGroup Step 4 Properties
|
|
4916
|
+
*/
|
|
4917
|
+
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} }";
|
|
4918
|
+
/**
|
|
4919
|
+
* @uiName Bank name field label
|
|
4920
|
+
* @uiGroup Step 4 Properties
|
|
4921
|
+
*/
|
|
4922
|
+
this.step4_bankNameLabel = "Bank name";
|
|
4923
|
+
/**
|
|
4924
|
+
* @uiName Classification entity field label
|
|
4925
|
+
* @uiGroup Step 4 Properties
|
|
4926
|
+
*/
|
|
4927
|
+
this.step4_classificationEntityLabel = "Classification entity";
|
|
4928
|
+
/**
|
|
4929
|
+
* One of three options listed for the classification field
|
|
4930
|
+
* @uiName Business classification option
|
|
4931
|
+
* @uiGroup Step 4 Properties
|
|
4932
|
+
*/
|
|
4933
|
+
this.step4_businessSelectItemLabel = "Business";
|
|
4934
|
+
/**
|
|
4935
|
+
* One of three options listed for the classification field
|
|
4936
|
+
* @uiName Individual classification option
|
|
4937
|
+
* @uiGroup Step 4 Properties
|
|
4938
|
+
*/
|
|
4939
|
+
this.step4_individualSelectItemLabel = "Individual";
|
|
4940
|
+
/**
|
|
4941
|
+
* One of three options listed for the classification field
|
|
4942
|
+
* @uiName Foreign classification option
|
|
4943
|
+
* @uiGroup Step 4 Properties
|
|
4944
|
+
*/
|
|
4945
|
+
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4946
|
+
/**
|
|
4947
|
+
* @uiName Classification CPF field label
|
|
4948
|
+
* @uiGroup Step 4 Properties
|
|
4949
|
+
*/
|
|
4950
|
+
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4951
|
+
/**
|
|
4952
|
+
* @uiName Patronymic name field label
|
|
4953
|
+
* @uiGroup Step 4 Properties
|
|
4954
|
+
*/
|
|
4955
|
+
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4956
|
+
/**
|
|
4957
|
+
* @uiName VO code field label
|
|
4958
|
+
* @uiGroup Step 4 Properties
|
|
4959
|
+
*/
|
|
4960
|
+
this.step4_voCodeLabel = "VO code";
|
|
4961
|
+
/**
|
|
4962
|
+
* @uiName Agency code field label
|
|
4963
|
+
* @uiGroup Step 4 Properties
|
|
4964
|
+
*/
|
|
4965
|
+
this.step4_agencyCodeLabel = "Agency code";
|
|
4966
|
+
/**
|
|
4967
|
+
* @uiName Branch code field label
|
|
4968
|
+
* @uiGroup Step 4 Properties
|
|
4969
|
+
*/
|
|
4970
|
+
this.step4_branchCodeLabel = "Branch code";
|
|
4971
|
+
/**
|
|
4972
|
+
* Label text for the classification input field
|
|
4973
|
+
* @uiName Classification field label
|
|
4974
|
+
* @uiGroup Step 4 Properties
|
|
4975
|
+
*/
|
|
4976
|
+
this.step4_classificationLabel = "Classification";
|
|
4977
|
+
/**
|
|
4978
|
+
* @uiName Taxpayer ID field label
|
|
4979
|
+
* @uiGroup Step 4 Properties
|
|
4980
|
+
*/
|
|
4981
|
+
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4982
|
+
/**
|
|
4983
|
+
* @uiName Bank address field label
|
|
4984
|
+
* @uiGroup Step 4 Properties
|
|
4985
|
+
*/
|
|
4986
|
+
this.step4_bankAddressLabel = "Bank address";
|
|
4987
|
+
/**
|
|
4988
|
+
* @uiName Bank city field label
|
|
4989
|
+
* @uiGroup Step 4 Properties
|
|
4990
|
+
*/
|
|
4991
|
+
this.step4_bankCityLabel = "Bank city";
|
|
4992
|
+
/**
|
|
4993
|
+
* @uiName Bank province/state field label
|
|
4994
|
+
* @uiGroup Step 4 Properties
|
|
4995
|
+
*/
|
|
4996
|
+
this.step4_bankStateLabel = "Bank Province / State";
|
|
4997
|
+
/**
|
|
4998
|
+
* @uiName Bank postal code field label
|
|
4999
|
+
* @uiGroup Step 4 Properties
|
|
5000
|
+
*/
|
|
5001
|
+
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
5002
|
+
/**
|
|
5003
|
+
* Default payment method to the participants’ bank account.
|
|
5004
|
+
* @uiName EFT withdrawal payment method
|
|
5005
|
+
* @uiGroup Step 4 Properties
|
|
5006
|
+
*/
|
|
5007
|
+
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
5008
|
+
/**
|
|
5009
|
+
* @uiName FX Wire Processing fee text
|
|
5010
|
+
* @uiGroup Step 4 Properties
|
|
5011
|
+
*/
|
|
5012
|
+
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
5013
|
+
/**
|
|
5014
|
+
* @uiName Text for verify email dialog
|
|
5015
|
+
* @uiGroup Step 4 Properties
|
|
5016
|
+
*/
|
|
5017
|
+
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
5018
|
+
/**
|
|
5019
|
+
* @uiName Verify code widget header text
|
|
5020
|
+
* @uiGroup Step 4 Properties
|
|
5021
|
+
*/
|
|
5022
|
+
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
5023
|
+
/**
|
|
5024
|
+
* @uiName Information modal title
|
|
5025
|
+
* @uiGroup Step 4 Properties
|
|
5026
|
+
*/
|
|
5027
|
+
this.step4_modalTitle = "Important Note";
|
|
5028
|
+
/**
|
|
5029
|
+
* @uiName Information modal description text
|
|
5030
|
+
* @uiGroup Step 4 Properties
|
|
5031
|
+
*/
|
|
5032
|
+
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.";
|
|
5033
|
+
/**
|
|
5034
|
+
* @uiName Information modal button text
|
|
5035
|
+
* @uiGroup Step 4 Properties
|
|
5036
|
+
*/
|
|
5037
|
+
this.step4_modalButtonText = "I understand, update my information";
|
|
5038
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5039
|
+
DASHBOARD PROPS:
|
|
5040
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5041
|
+
/**
|
|
5042
|
+
* @uiName Active tax form badge label
|
|
5043
|
+
* @uiGroup Dashboard Properties
|
|
5044
|
+
*/
|
|
5045
|
+
this.dashboard_statusTextActive = "Active";
|
|
5046
|
+
/**
|
|
5047
|
+
* @uiName Invalid tax form badge label
|
|
5048
|
+
* @uiGroup Dashboard Properties
|
|
5049
|
+
*/
|
|
5050
|
+
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
5051
|
+
/**
|
|
5052
|
+
* Displayed when the participant submitted their form but it is awaiting review.
|
|
5053
|
+
*
|
|
5054
|
+
* @uiName Not verified tax form badge label
|
|
5055
|
+
* @uiGroup Dashboard Properties
|
|
5056
|
+
*/
|
|
5057
|
+
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
5058
|
+
/**
|
|
5059
|
+
* Displayed when the participant has not submitted their required tax form.
|
|
5060
|
+
*
|
|
5061
|
+
* @uiName Required tax form badge label
|
|
5062
|
+
*/
|
|
5063
|
+
this.dashboard_statusTextRequired = "Required";
|
|
5064
|
+
/**
|
|
5065
|
+
* Additional text displayed next to the tax form's status badge
|
|
5066
|
+
*
|
|
5067
|
+
* @uiName Required tax form description
|
|
5068
|
+
*/
|
|
5069
|
+
this.dashboard_requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
|
|
5070
|
+
/**
|
|
5071
|
+
* Additional text displayed next to the tax form's status badge
|
|
5072
|
+
*
|
|
5073
|
+
* @uiName Active W-9 description
|
|
5074
|
+
* @uiGroup Dashboard Properties
|
|
5075
|
+
*/
|
|
5076
|
+
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
5077
|
+
/**
|
|
5078
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5079
|
+
*
|
|
5080
|
+
* @uiName Active W-8 description
|
|
5081
|
+
* @uiGroup Dashboard Properties
|
|
5082
|
+
*/
|
|
5083
|
+
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
5084
|
+
/**
|
|
5085
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5086
|
+
*
|
|
5087
|
+
* @uiName Tax form in review description
|
|
5088
|
+
* @uiGroup Dashboard Properties
|
|
5089
|
+
*/
|
|
5090
|
+
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
5091
|
+
/**
|
|
5092
|
+
* Part of the alert displayed at the top of the page.
|
|
5093
|
+
*
|
|
5094
|
+
* @uiName Inactive W-9 error message title
|
|
5095
|
+
* @uiGroup Dashboard Properties
|
|
5096
|
+
* @uiWidget textArea
|
|
5097
|
+
*/
|
|
5098
|
+
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
5099
|
+
/**
|
|
5100
|
+
* Part of the alert displayed at the top of the page.
|
|
5101
|
+
*
|
|
5102
|
+
* @uiName Inactive W-8 error message title
|
|
5103
|
+
* @uiGroup Dashboard Properties
|
|
5104
|
+
* @uiWidget textArea
|
|
5105
|
+
*/
|
|
5106
|
+
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
5107
|
+
/**
|
|
5108
|
+
* Part of the alert displayed at the top of the page.
|
|
5109
|
+
*
|
|
5110
|
+
* @uiName Inactive W-9 error message description
|
|
5111
|
+
* @uiGroup Dashboard Properties
|
|
5112
|
+
* @uiWidget textArea
|
|
5113
|
+
*/
|
|
5114
|
+
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
5115
|
+
/**
|
|
5116
|
+
* Part of the alert displayed at the top of the page.
|
|
5117
|
+
*
|
|
5118
|
+
* @uiName Inactive W-8 error message description
|
|
5119
|
+
* @uiGroup Dashboard Properties
|
|
5120
|
+
*/
|
|
5121
|
+
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.";
|
|
5122
|
+
/**
|
|
5123
|
+
* Additional text displayed next to the tax form's status badge.
|
|
5124
|
+
*
|
|
5125
|
+
* @uiName Invalid tax form description
|
|
5126
|
+
* @uiGroup Dashboard Properties
|
|
5127
|
+
* @uiWidget textArea
|
|
5128
|
+
*/
|
|
5129
|
+
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
5130
|
+
/**
|
|
5131
|
+
* @uiName Payout information section header
|
|
5132
|
+
* @uiGroup Dashboard Properties
|
|
5133
|
+
*/
|
|
5134
|
+
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
5135
|
+
/**
|
|
5136
|
+
* @uiName Tax document section header
|
|
5137
|
+
* @uiGroup Dashboard Properties
|
|
5138
|
+
*/
|
|
5139
|
+
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
5140
|
+
/**
|
|
5141
|
+
* Displayed under the tax document section header.
|
|
5142
|
+
*
|
|
5143
|
+
* @uiName Tax documents section description
|
|
5144
|
+
* @uiGroup Dashboard Properties
|
|
5145
|
+
*/
|
|
5146
|
+
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
5147
|
+
/**
|
|
5148
|
+
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
5149
|
+
*
|
|
5150
|
+
* @uiName Tax form not required text
|
|
5151
|
+
* @uiGroup Dashboard Properties
|
|
5152
|
+
* @uiWidget textArea
|
|
5153
|
+
*/
|
|
5154
|
+
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.";
|
|
5155
|
+
/**
|
|
5156
|
+
*
|
|
5157
|
+
* @uiName Indirect tax section header
|
|
5158
|
+
* @uiGroup Dashboard Properties
|
|
5159
|
+
*/
|
|
5160
|
+
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
5161
|
+
/**
|
|
5162
|
+
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
5163
|
+
*
|
|
5164
|
+
* @uiName Canadian province of indirect tax
|
|
5165
|
+
* @uiGroup Dashboard Properties
|
|
5166
|
+
*/
|
|
5167
|
+
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
5168
|
+
/**
|
|
5169
|
+
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
5170
|
+
*
|
|
5171
|
+
* @uiName Indirect tax country
|
|
5172
|
+
* @uiGroup Dashboard Properties
|
|
5173
|
+
*/
|
|
5174
|
+
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
5175
|
+
/**
|
|
5176
|
+
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
5177
|
+
*
|
|
5178
|
+
* @uiName Spanish region of indirect tax
|
|
5179
|
+
* @uiGroup Dashboard Properties
|
|
5180
|
+
*/
|
|
5181
|
+
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5182
|
+
/**
|
|
5183
|
+
* @uiName Indirect tax tooltip
|
|
5184
|
+
* @uiGroup Dashboard Properties
|
|
5185
|
+
* @uiWidget textArea
|
|
5186
|
+
*/
|
|
5187
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5188
|
+
/**
|
|
5189
|
+
* Displayed to participants who have submitted their indirect tax information.
|
|
5190
|
+
*
|
|
5191
|
+
* @uiName Indirect tax details
|
|
5192
|
+
* @uiGroup Dashboard Properties
|
|
5193
|
+
*/
|
|
5194
|
+
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5195
|
+
/**
|
|
5196
|
+
* @uiName Submit new tax form button label
|
|
5197
|
+
* @uiGroup Dashboard Properties
|
|
5198
|
+
*/
|
|
5199
|
+
this.dashboard_newFormButton = "Submit new form";
|
|
5200
|
+
/**
|
|
5201
|
+
* @uiName Edit payment info button label
|
|
5202
|
+
* @uiGroup Dashboard Properties
|
|
5203
|
+
*/
|
|
5204
|
+
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5205
|
+
/**
|
|
5206
|
+
* @uiName Not registered for indirect tax text
|
|
5207
|
+
* @uiGroup Dashboard Properties
|
|
5208
|
+
* @uiWidget textArea
|
|
5209
|
+
*/
|
|
5210
|
+
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.";
|
|
5211
|
+
/**
|
|
5212
|
+
* Displayed to participants registered in Quebec, Canada.
|
|
5213
|
+
* @uiName QST indirect tax details
|
|
5214
|
+
* @uiGroup Dashboard Properties
|
|
5215
|
+
*/
|
|
5216
|
+
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5217
|
+
/**
|
|
5218
|
+
* @uiName Spain sub-region indirect tax number
|
|
5219
|
+
* @uiGroup Dashboard Properties
|
|
5220
|
+
*/
|
|
5221
|
+
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5222
|
+
/**
|
|
5223
|
+
* @uiName Payout status badge
|
|
5224
|
+
* @uiGroup Dashboard Properties
|
|
5225
|
+
*/
|
|
5226
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5227
|
+
/**
|
|
5228
|
+
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5229
|
+
* @uiName Payout schedule by threshold text
|
|
5230
|
+
* @uiGroup Dashboard Properties
|
|
5231
|
+
*/
|
|
5232
|
+
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5233
|
+
/**
|
|
5234
|
+
* Shown before the participant’s bank account information.
|
|
5235
|
+
* @uiName Bank account field label
|
|
5236
|
+
* @uiGroup Dashboard Properties
|
|
5237
|
+
*/
|
|
5238
|
+
this.dashboard_accountText = "Account";
|
|
5239
|
+
/**
|
|
5240
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5241
|
+
* @uiName Invoice number column title
|
|
5242
|
+
* @uiGroup Dashboard Properties
|
|
5243
|
+
*/
|
|
5244
|
+
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5245
|
+
/**
|
|
5246
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5247
|
+
* @uiName Date column title
|
|
5248
|
+
* @uiGroup Dashboard Properties
|
|
5249
|
+
*/
|
|
5250
|
+
this.dashboard_dateColumnTitle = "Date";
|
|
5251
|
+
/**
|
|
5252
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5253
|
+
* @uiName Earnings column title
|
|
5254
|
+
* @uiGroup Dashboard Properties
|
|
5255
|
+
*/
|
|
5256
|
+
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5257
|
+
/**
|
|
5258
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5259
|
+
* @uiName Indirect tax column title
|
|
5260
|
+
* @uiGroup Dashboard Properties
|
|
5261
|
+
*/
|
|
5262
|
+
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5263
|
+
/**
|
|
5264
|
+
* Displayed under the payout details card.
|
|
5265
|
+
* @uiName Payout from impact text
|
|
5266
|
+
* @uiGroup Dashboard Properties
|
|
5267
|
+
* @uiWidget textArea
|
|
5268
|
+
*/
|
|
5269
|
+
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5270
|
+
/**
|
|
5271
|
+
* Part of the Invoice table displayed at the bottom of the page.
|
|
5272
|
+
* @uiName Earnings after tax column title
|
|
5273
|
+
* @uiGroup Dashboard Properties
|
|
5274
|
+
*/
|
|
5275
|
+
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5276
|
+
/**
|
|
5277
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5278
|
+
* @uiName Payout error message title
|
|
5279
|
+
* @uiGroup Dashboard Properties
|
|
5280
|
+
* @uiWidget textArea
|
|
5281
|
+
*/
|
|
5282
|
+
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5283
|
+
/**
|
|
5284
|
+
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5285
|
+
* @uiName Payout error message description
|
|
5286
|
+
* @uiGroup Dashboard Properties
|
|
5287
|
+
* @uiWidget textArea
|
|
5288
|
+
*/
|
|
5289
|
+
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5290
|
+
/**
|
|
5291
|
+
* Text displayed for existing publishers that do not have saved banking information.
|
|
5292
|
+
* @uiName Payout missing information subtext
|
|
5293
|
+
* @uiGroup Dashboard Properties
|
|
5294
|
+
*/
|
|
5295
|
+
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5296
|
+
/**
|
|
5297
|
+
* @uiName Invoice table description
|
|
5298
|
+
* @uiGroup Dashboard Properties
|
|
5299
|
+
*/
|
|
5300
|
+
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5301
|
+
/**
|
|
5302
|
+
* @uiName Invoice table previous page button label
|
|
5303
|
+
* @uiGroup Dashboard Properties
|
|
5304
|
+
*/
|
|
5305
|
+
this.dashboard_invoicePrevLabel = "Prev";
|
|
5306
|
+
/**
|
|
5307
|
+
* @uiName Invoice table next page button label
|
|
5308
|
+
* @uiGroup Dashboard Properties
|
|
5309
|
+
*/
|
|
5310
|
+
this.dashboard_invoiceMoreLabel = "Next";
|
|
5311
|
+
/**
|
|
5312
|
+
* @uiName Invoice table title
|
|
5313
|
+
* @uiGroup Dashboard Properties
|
|
5314
|
+
*/
|
|
5315
|
+
this.dashboard_invoiceHeader = "Invoices";
|
|
5316
|
+
/**
|
|
5317
|
+
* @uiName Empty invoice table header
|
|
5318
|
+
* @uiGroup Dashboard Properties
|
|
5319
|
+
*/
|
|
5320
|
+
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5321
|
+
/**
|
|
5322
|
+
* @uiName Empty invoice table description
|
|
5323
|
+
* @uiGroup Dashboard Properties
|
|
5324
|
+
*/
|
|
5325
|
+
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5326
|
+
/**
|
|
5327
|
+
* @uiName Replace tax form modal header
|
|
5328
|
+
* @uiGroup Dashboard Properties
|
|
5329
|
+
*/
|
|
5330
|
+
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5331
|
+
/**
|
|
5332
|
+
* @uiName Replace tax form modal body text
|
|
5333
|
+
* @uiGroup Dashboard Properties
|
|
5334
|
+
* @uiWidget textArea
|
|
5335
|
+
*/
|
|
5336
|
+
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.";
|
|
5337
|
+
/**
|
|
5338
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5339
|
+
* @uiName Verification required alert message title
|
|
5340
|
+
* @uiGroup Dashboard Properties
|
|
5341
|
+
* @uiWidget textArea
|
|
5342
|
+
*/
|
|
5343
|
+
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5344
|
+
/**
|
|
5345
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5346
|
+
* @uiName Verification required alert message description
|
|
5347
|
+
* @uiGroup Dashboard Properties
|
|
5348
|
+
* @uiWidget textArea
|
|
5349
|
+
*/
|
|
5350
|
+
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}.";
|
|
5351
|
+
/**
|
|
5352
|
+
* @uiName Verification required internal alert header
|
|
5353
|
+
* @uiGroup Dashboard Properties
|
|
5354
|
+
* @uiWidget textArea
|
|
5355
|
+
*/
|
|
5356
|
+
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5357
|
+
/**
|
|
5358
|
+
* @uiName Verification required internal alert description
|
|
5359
|
+
* @uiGroup Dashboard Properties
|
|
5360
|
+
* @uiWidget textArea
|
|
5361
|
+
*/
|
|
5362
|
+
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}.";
|
|
5363
|
+
/**
|
|
5364
|
+
* @uiName Verification review internal alert header
|
|
5365
|
+
* @uiGroup Dashboard Properties
|
|
5366
|
+
* @uiWidget textArea
|
|
5367
|
+
*/
|
|
5368
|
+
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5369
|
+
/**
|
|
5370
|
+
* @uiName Verification review internal alert description
|
|
5371
|
+
* @uiGroup Dashboard Properties
|
|
5372
|
+
* @uiWidget textArea
|
|
5373
|
+
*/
|
|
5374
|
+
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}.";
|
|
5375
|
+
/**
|
|
5376
|
+
* @uiName Verification failed internal alert header
|
|
5377
|
+
* @uiGroup Dashboard Properties
|
|
5378
|
+
* @uiWidget textArea
|
|
5379
|
+
*/
|
|
5380
|
+
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5381
|
+
/**
|
|
5382
|
+
* @uiName Verification failed internal alert description
|
|
5383
|
+
* @uiGroup Dashboard Properties
|
|
5384
|
+
* @uiWidget textArea
|
|
5385
|
+
*/
|
|
5386
|
+
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}.";
|
|
5387
|
+
/**
|
|
5388
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5389
|
+
* @uiName Verification required alert button text
|
|
5390
|
+
* @uiGroup Dashboard Properties
|
|
5391
|
+
* @uiWidget textArea
|
|
5392
|
+
*/
|
|
5393
|
+
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5394
|
+
/**
|
|
5395
|
+
* @uiName W9 payment threshold alert header
|
|
5396
|
+
* @uiGroup Dashboard Properties
|
|
5397
|
+
* @uiWidget textArea
|
|
5398
|
+
*/
|
|
5399
|
+
this.dashboard_w9RequiredHeader = "Your next payout is on hold";
|
|
5400
|
+
/**
|
|
5401
|
+
* @uiName W9 payment threshold alert description
|
|
5402
|
+
* @uiGroup Dashboard Properties
|
|
5403
|
+
* @uiWidget textArea
|
|
5404
|
+
*/
|
|
5405
|
+
this.dashboard_w9RequiredDescription = "To remove the hold, you need to submit a W9 tax form as outlines in our Terms and Conditions. Please click 'Submit W9' to start the process.";
|
|
5406
|
+
/**
|
|
5407
|
+
* @uiName W9 payment threshold alert button text
|
|
5408
|
+
* @uiGroup Dashboard Properties
|
|
5409
|
+
* @uiWidget textArea
|
|
5410
|
+
*/
|
|
5411
|
+
this.dashboard_w9RequiredButtonText = "Submit W9";
|
|
5412
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5413
|
+
GENERAL PROPS:
|
|
5414
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5415
|
+
/**
|
|
5416
|
+
* @uiName Setup progress
|
|
5417
|
+
* @uiGroup General Form Properties
|
|
5418
|
+
*/
|
|
5419
|
+
this.formStep = "Step {step} of {count}";
|
|
5420
|
+
/**
|
|
5421
|
+
* Part of the alert displayed at the top of the page.
|
|
5422
|
+
* @uiName Form submission error message title
|
|
5423
|
+
* @uiGroup General Form Properties
|
|
5424
|
+
* @uiWidget textArea
|
|
5425
|
+
*/
|
|
5426
|
+
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5427
|
+
/**
|
|
5428
|
+
* Part of the alert displayed at the top of the page.
|
|
5429
|
+
* @uiName Form submission error message description
|
|
5430
|
+
* @uiGroup General Form Properties
|
|
5431
|
+
* @uiWidget textArea
|
|
5432
|
+
*/
|
|
5433
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5434
|
+
/**
|
|
5435
|
+
* Displayed under a field that is missing required information.
|
|
5436
|
+
* @uiName Empty form field error message
|
|
5437
|
+
* @uiGroup General Form Properties
|
|
5438
|
+
*/
|
|
5439
|
+
this.fieldRequiredError = "{fieldName} is required";
|
|
5440
|
+
/**
|
|
5441
|
+
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5442
|
+
* @uiName Invalid character error message
|
|
5443
|
+
* @uiGroup General Form Properties
|
|
3628
5444
|
*/
|
|
3629
|
-
this.
|
|
5445
|
+
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
3630
5446
|
/**
|
|
3631
|
-
*
|
|
3632
|
-
* @uiName
|
|
5447
|
+
* Displayed under a field when it has an invalid entry.
|
|
5448
|
+
* @uiName Form field error message
|
|
5449
|
+
* @uiGroup General Form Properties
|
|
3633
5450
|
*/
|
|
3634
|
-
this.
|
|
5451
|
+
this.fieldInvalidError = "{fieldName} is invalid";
|
|
3635
5452
|
/**
|
|
3636
|
-
*
|
|
3637
|
-
* @
|
|
5453
|
+
* @uiName Continue button label
|
|
5454
|
+
* @uiGroup General Form Properties
|
|
3638
5455
|
*/
|
|
3639
|
-
this.
|
|
5456
|
+
this.continueButton = "Continue";
|
|
3640
5457
|
/**
|
|
3641
|
-
*
|
|
3642
|
-
* @
|
|
5458
|
+
* @uiName Back button label
|
|
5459
|
+
* @uiGroup General Form Properties
|
|
3643
5460
|
*/
|
|
3644
|
-
this.
|
|
5461
|
+
this.backButton = "Back";
|
|
5462
|
+
/**
|
|
5463
|
+
* @uiName Cancel button label
|
|
5464
|
+
* @uiGroup General Form Properties
|
|
5465
|
+
*/
|
|
5466
|
+
this.cancelButton = "Cancel";
|
|
5467
|
+
/**
|
|
5468
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5469
|
+
* @uiName Participant is a partner alert title
|
|
5470
|
+
* @uiGroup General Form Properties
|
|
5471
|
+
* @uiWidget textArea
|
|
5472
|
+
*/
|
|
5473
|
+
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5474
|
+
/**
|
|
5475
|
+
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5476
|
+
* @uiName Participant is a partner alert description
|
|
5477
|
+
* @uiGroup General Form Properties
|
|
5478
|
+
* @uiWidget textArea
|
|
5479
|
+
*/
|
|
5480
|
+
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.";
|
|
5481
|
+
/**
|
|
5482
|
+
* Placeholder text displayed in the country search dropdown
|
|
5483
|
+
* @uiName Country field placeholder text
|
|
5484
|
+
* @uiGroup General Form Properties
|
|
5485
|
+
*/
|
|
5486
|
+
this.searchForCountryText = "Search for country..";
|
|
5487
|
+
/**
|
|
5488
|
+
* Part of the alert displayed at the top of the page.
|
|
5489
|
+
* @uiName Page load error message title
|
|
5490
|
+
* @uiGroup General Form Properties
|
|
5491
|
+
* @uiWidget textArea
|
|
5492
|
+
*/
|
|
5493
|
+
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
5494
|
+
/**
|
|
5495
|
+
* Part of the alert displayed at the top of the page.
|
|
5496
|
+
* @uiName Page load error message description
|
|
5497
|
+
* @uiGroup General Form Properties
|
|
5498
|
+
* @uiWidget textArea
|
|
5499
|
+
*/
|
|
5500
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5501
|
+
/**
|
|
5502
|
+
* Displayed at the top of the page on all set up steps.
|
|
5503
|
+
* @uiName Page description
|
|
5504
|
+
* @uiGroup General Form Properties
|
|
5505
|
+
*/
|
|
5506
|
+
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
3645
5507
|
/**
|
|
3646
|
-
*
|
|
5508
|
+
* Link text for contacting support team
|
|
5509
|
+
* @uiName Suport link text
|
|
5510
|
+
* @uiGroup General Form Properties
|
|
3647
5511
|
*/
|
|
3648
|
-
this.
|
|
5512
|
+
this.supportLink = "support team";
|
|
3649
5513
|
h$1(this);
|
|
3650
5514
|
}
|
|
3651
5515
|
disconnectedCallback() { }
|
|
3652
|
-
|
|
5516
|
+
// this field is required prop
|
|
5517
|
+
getGeneralStepTextProps(prefix) {
|
|
3653
5518
|
const props = getProps(this);
|
|
3654
5519
|
return {
|
|
3655
|
-
...props,
|
|
5520
|
+
...extractProps(props, prefix),
|
|
5521
|
+
generalErrorTitle: props.generalErrorTitle,
|
|
5522
|
+
generalErrorDescription: props.generalErrorDescription,
|
|
5523
|
+
fieldRequiredError: props.fieldRequiredError,
|
|
5524
|
+
invalidCharacterError: props.invalidCharacterError,
|
|
5525
|
+
fieldInvalidError: props.fieldInvalidError,
|
|
5526
|
+
continueButton: props.continueButton,
|
|
5527
|
+
backButton: props.backButton,
|
|
5528
|
+
cancelButton: props.cancelButton,
|
|
5529
|
+
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5530
|
+
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5531
|
+
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5532
|
+
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5533
|
+
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5534
|
+
searchForCountryText: props.searchForCountryText,
|
|
5535
|
+
formStep: props.formStep,
|
|
5536
|
+
supportLink: props.supportLink,
|
|
3656
5537
|
};
|
|
3657
5538
|
}
|
|
3658
5539
|
render() {
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
5540
|
+
var _a, _b;
|
|
5541
|
+
const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
5542
|
+
// @ts-ignore
|
|
5543
|
+
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
5544
|
+
const textProps = getProps(this);
|
|
5545
|
+
return (h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5546
|
+
if (prop === "demoData")
|
|
5547
|
+
return;
|
|
5548
|
+
return (h("div", null, h("b", null, prop, ":"), " ", this[prop], h("hr", null)));
|
|
5549
|
+
})));
|
|
5550
|
+
}
|
|
5551
|
+
switch (props.step) {
|
|
5552
|
+
case "/1":
|
|
5553
|
+
return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5554
|
+
case "/2":
|
|
5555
|
+
return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5556
|
+
case "/3":
|
|
5557
|
+
return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5558
|
+
case "/4":
|
|
5559
|
+
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5560
|
+
case "/dashboard":
|
|
5561
|
+
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5562
|
+
case "/error":
|
|
5563
|
+
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5564
|
+
}
|
|
5565
|
+
return h(LoadingView, null);
|
|
3663
5566
|
}
|
|
3664
5567
|
};
|
|
3665
|
-
function
|
|
5568
|
+
function useDemoTaxAndCash(props) {
|
|
5569
|
+
const [step, setStep] = In({
|
|
5570
|
+
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5571
|
+
initialValue: "/1",
|
|
5572
|
+
});
|
|
3666
5573
|
return cjs({
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
error: false,
|
|
3670
|
-
thresholdBalance: "$50",
|
|
3671
|
-
mainCurrency: { currencyText: "USD", amountText: "100.00" },
|
|
3672
|
-
badgeStatus: "nextPayout",
|
|
3673
|
-
payoutType: "BANK_TRANSFER",
|
|
3674
|
-
nextPayoutDate: "March 14, 2024",
|
|
3675
|
-
paypalEmailAddress: "joesmith@example.com",
|
|
3676
|
-
otherCurrencies: false,
|
|
3677
|
-
hasW9Pending: false,
|
|
3678
|
-
hasDatePending: true,
|
|
3679
|
-
cardNumberPreview: "XX2381",
|
|
3680
|
-
balance: "20.00 USD",
|
|
3681
|
-
},
|
|
3682
|
-
text: props.getTextProps(),
|
|
5574
|
+
step,
|
|
5575
|
+
setStep,
|
|
3683
5576
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
3684
5577
|
}
|
|
3685
5578
|
|
|
3686
|
-
const style$
|
|
3687
|
-
|
|
5579
|
+
const style$6 = {
|
|
5580
|
+
ErrorAlertContainer: {
|
|
5581
|
+
"&::part(base)": {
|
|
5582
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
5583
|
+
borderTop: "none",
|
|
5584
|
+
},
|
|
5585
|
+
"& sl-icon::part(base)": {
|
|
5586
|
+
color: "var(--sl-color-danger-500)",
|
|
5587
|
+
},
|
|
5588
|
+
},
|
|
5589
|
+
WarningAlertContainer: {
|
|
5590
|
+
"&::part(base)": {
|
|
5591
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5592
|
+
borderTop: "none",
|
|
5593
|
+
maxWidth: "600px",
|
|
5594
|
+
},
|
|
5595
|
+
"& sl-icon::part(base)": {
|
|
5596
|
+
color: "var(--sl-color-warning-500)",
|
|
5597
|
+
},
|
|
5598
|
+
},
|
|
5599
|
+
WarningHoldAlertContainer: {
|
|
5600
|
+
marginLeft: "-20px",
|
|
3688
5601
|
"&::part(base)": {
|
|
3689
|
-
|
|
3690
|
-
|
|
5602
|
+
maxWidth: "850px",
|
|
5603
|
+
border: "none",
|
|
5604
|
+
backgroundColor: "transparent",
|
|
5605
|
+
},
|
|
5606
|
+
"& sl-icon::part(base)": {
|
|
5607
|
+
color: "var(--sl-color-warning-500)",
|
|
3691
5608
|
},
|
|
3692
5609
|
},
|
|
3693
|
-
|
|
5610
|
+
ErrorHoldAlertContainer: {
|
|
5611
|
+
marginLeft: "-20px",
|
|
3694
5612
|
"&::part(base)": {
|
|
3695
|
-
|
|
3696
|
-
|
|
5613
|
+
maxWidth: "850px",
|
|
5614
|
+
border: "none",
|
|
5615
|
+
backgroundColor: "transparent",
|
|
5616
|
+
},
|
|
5617
|
+
"& sl-icon::part(base)": {
|
|
5618
|
+
color: "var(--sl-color-danger-500)",
|
|
3697
5619
|
},
|
|
3698
5620
|
},
|
|
3699
|
-
|
|
5621
|
+
ExpiringSoonAlertContainer: {
|
|
3700
5622
|
"&::part(base)": {
|
|
3701
|
-
backgroundColor: "var(--
|
|
3702
|
-
|
|
5623
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5624
|
+
borderTop: "none",
|
|
3703
5625
|
},
|
|
3704
5626
|
},
|
|
3705
5627
|
BankingInformationContainer: {
|
|
@@ -3707,7 +5629,7 @@ const style$5 = {
|
|
|
3707
5629
|
},
|
|
3708
5630
|
IndirectTaxPreviewContainer: {
|
|
3709
5631
|
marginTop: "var(--sl-spacing-x-large)",
|
|
3710
|
-
borderTop: "
|
|
5632
|
+
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
3711
5633
|
},
|
|
3712
5634
|
IndirectTaxPreviewHeaderContainer: {
|
|
3713
5635
|
marginTop: "var(--sl-spacing-large)",
|
|
@@ -3716,7 +5638,7 @@ const style$5 = {
|
|
|
3716
5638
|
display: "flex",
|
|
3717
5639
|
gap: "var(--sl-spacing-x-small)",
|
|
3718
5640
|
"&::part(base)": {
|
|
3719
|
-
color: "var(--
|
|
5641
|
+
color: "var(--sl-color-green-500)",
|
|
3720
5642
|
},
|
|
3721
5643
|
},
|
|
3722
5644
|
IndirectTaxPreviewDetails: {
|
|
@@ -3730,11 +5652,11 @@ const style$5 = {
|
|
|
3730
5652
|
marginTop: "var(--sl-spacing-medium)",
|
|
3731
5653
|
},
|
|
3732
5654
|
NotRegisteredIndirectTaxText: {
|
|
3733
|
-
color: "var(--
|
|
5655
|
+
color: "var(--sl-color-gray-500)",
|
|
3734
5656
|
},
|
|
3735
5657
|
TaxDocumentsContainer: {
|
|
3736
5658
|
marginTop: "var(--sl-spacing-xx-large)",
|
|
3737
|
-
borderTop: "1px solid var(--
|
|
5659
|
+
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
3738
5660
|
},
|
|
3739
5661
|
TaxDocumentsSectionHeaderContainer: {
|
|
3740
5662
|
marginTop: "var(--sl-spacing-x-large)",
|
|
@@ -3751,7 +5673,7 @@ const style$5 = {
|
|
|
3751
5673
|
"& p": {
|
|
3752
5674
|
margin: "0",
|
|
3753
5675
|
paddingTop: "2px",
|
|
3754
|
-
color: "var(--
|
|
5676
|
+
color: "var(--sl-color-gray-500)",
|
|
3755
5677
|
},
|
|
3756
5678
|
},
|
|
3757
5679
|
StatusAlert: {
|
|
@@ -3786,7 +5708,7 @@ const style$5 = {
|
|
|
3786
5708
|
},
|
|
3787
5709
|
TaxDocSubtext: {
|
|
3788
5710
|
margin: "0",
|
|
3789
|
-
color: "var(--
|
|
5711
|
+
color: "var(--sl-color-neutral-500)",
|
|
3790
5712
|
lineHeight: "var(--sl-spacing-medium)",
|
|
3791
5713
|
fontSize: "var(--sl-font-size-small)",
|
|
3792
5714
|
marginLeft: "1px",
|
|
@@ -3807,66 +5729,28 @@ const style$5 = {
|
|
|
3807
5729
|
gap: "6px",
|
|
3808
5730
|
},
|
|
3809
5731
|
DescriptionText: {
|
|
3810
|
-
color: "var(--
|
|
5732
|
+
color: "var(--sl-color-gray-500)",
|
|
3811
5733
|
fontSize: "var(--sl-font-size-x-small)",
|
|
3812
5734
|
marginBottom: "none",
|
|
3813
5735
|
maxWidth: "492px",
|
|
3814
5736
|
},
|
|
3815
5737
|
PageDescriptionText: {
|
|
3816
|
-
color: "var(--
|
|
5738
|
+
color: "var(--sl-color-neutral-500)",
|
|
3817
5739
|
fontSize: "var(--sl-font-size-medium)",
|
|
3818
5740
|
marginTop: "0",
|
|
3819
5741
|
},
|
|
3820
|
-
WarningButton: {
|
|
3821
|
-
"&::part(base)": {
|
|
3822
|
-
marginTop: "20px",
|
|
3823
|
-
borderColor: "var(--sqm-warning-color-border)",
|
|
3824
|
-
color: "var(--sqm-warning-color-text)",
|
|
3825
|
-
background: "var(--sqm-warning-color-background)",
|
|
3826
|
-
"&:hover": {
|
|
3827
|
-
background: "var(--sqm-warning-color-icon)",
|
|
3828
|
-
},
|
|
3829
|
-
},
|
|
3830
|
-
},
|
|
3831
|
-
ErrorButton: {
|
|
3832
|
-
"&::part(base)": {
|
|
3833
|
-
marginTop: "20px",
|
|
3834
|
-
borderColor: "var(--sqm-danger-color-border)",
|
|
3835
|
-
color: "var(--sqm-danger-color-text)",
|
|
3836
|
-
background: "var(--sqm-danger-color-background)",
|
|
3837
|
-
"&:hover": {
|
|
3838
|
-
background: "var(--sqm-danger-color-icon)",
|
|
3839
|
-
},
|
|
3840
|
-
},
|
|
3841
|
-
},
|
|
3842
|
-
SuccessButton: {
|
|
3843
|
-
"&::part(base)": {
|
|
3844
|
-
marginTop: "20px",
|
|
3845
|
-
borderColor: "var(--sqm-success-color-border)",
|
|
3846
|
-
color: "var(--sqm-success-color-text)",
|
|
3847
|
-
background: "var(--sqm-success-color-background)",
|
|
3848
|
-
"&:hover": {
|
|
3849
|
-
background: "var(--sqm-success-color-icon)",
|
|
3850
|
-
},
|
|
3851
|
-
},
|
|
3852
|
-
},
|
|
3853
5742
|
Dialog: {
|
|
3854
5743
|
"&::part(panel)": {
|
|
3855
5744
|
maxWidth: "420px",
|
|
3856
5745
|
},
|
|
3857
|
-
"&::part(header)": {
|
|
3858
|
-
display: "flex",
|
|
3859
|
-
alignItems: "center",
|
|
3860
|
-
justifyContent: "center",
|
|
3861
|
-
paddingTop: "var(--sl-spacing-large)",
|
|
3862
|
-
},
|
|
3863
5746
|
"&::part(close-button)": {
|
|
3864
5747
|
marginBottom: "var(--sl-spacing-xx-large)",
|
|
3865
5748
|
},
|
|
3866
5749
|
"&::part(title)": {
|
|
3867
|
-
fontSize: "var(--sl-font-size-large)",
|
|
5750
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
3868
5751
|
fontWeight: "600",
|
|
3869
|
-
|
|
5752
|
+
marginTop: "var(--sl-spacing-xxx-large)",
|
|
5753
|
+
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
3870
5754
|
},
|
|
3871
5755
|
"&::part(body)": {
|
|
3872
5756
|
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
@@ -3883,23 +5767,22 @@ const style$5 = {
|
|
|
3883
5767
|
},
|
|
3884
5768
|
DialogButton: { margin: "auto", width: "100%" },
|
|
3885
5769
|
};
|
|
3886
|
-
const
|
|
3887
|
-
|
|
3888
|
-
font-family: var(--sqm-primary-font);
|
|
3889
|
-
}
|
|
3890
|
-
a {
|
|
3891
|
-
color: inherit;
|
|
3892
|
-
text-decoration: underline;
|
|
3893
|
-
cursor: pointer;
|
|
3894
|
-
}
|
|
3895
|
-
`;
|
|
3896
|
-
const sheet$4 = createStyleSheet(style$5);
|
|
3897
|
-
const styleString$4 = sheet$4.toString();
|
|
5770
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5771
|
+
const styleString$5 = sheet$5.toString();
|
|
3898
5772
|
const TaxAndCashDashboardView = (props) => {
|
|
3899
5773
|
var _a;
|
|
3900
5774
|
const { states, text, callbacks, slots } = props;
|
|
3901
5775
|
function getAlert(status) {
|
|
3902
5776
|
switch (status) {
|
|
5777
|
+
case "OVER_W9_THRESHOLD":
|
|
5778
|
+
return {
|
|
5779
|
+
header: text.w9RequiredHeader,
|
|
5780
|
+
description: text.w9RequiredDescription,
|
|
5781
|
+
button: (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
|
|
5782
|
+
alertType: "info",
|
|
5783
|
+
icon: "info-circle",
|
|
5784
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5785
|
+
};
|
|
3903
5786
|
case "VERIFICATION:REQUIRED":
|
|
3904
5787
|
return {
|
|
3905
5788
|
header: text.verificationRequiredHeader,
|
|
@@ -3911,6 +5794,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3911
5794
|
}),
|
|
3912
5795
|
buttonText: text.verificationRequiredButtonText,
|
|
3913
5796
|
alertType: "warning",
|
|
5797
|
+
icon: "exclamation-triangle",
|
|
5798
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3914
5799
|
};
|
|
3915
5800
|
case "VERIFICATION:INTERNAL":
|
|
3916
5801
|
return {
|
|
@@ -3922,6 +5807,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3922
5807
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3923
5808
|
}),
|
|
3924
5809
|
alertType: "warning",
|
|
5810
|
+
icon: "exclamation-triangle",
|
|
5811
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3925
5812
|
};
|
|
3926
5813
|
case "VERIFICATION:REVIEW":
|
|
3927
5814
|
return {
|
|
@@ -3933,6 +5820,8 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3933
5820
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3934
5821
|
}),
|
|
3935
5822
|
alertType: "warning",
|
|
5823
|
+
icon: "exclamation-triangle",
|
|
5824
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3936
5825
|
};
|
|
3937
5826
|
case "VERIFICATION:FAILED":
|
|
3938
5827
|
return {
|
|
@@ -3943,7 +5832,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3943
5832
|
}, {
|
|
3944
5833
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
3945
5834
|
}),
|
|
3946
|
-
alertType: "
|
|
5835
|
+
alertType: "critical",
|
|
5836
|
+
icon: "exclamation-octagon",
|
|
5837
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
3947
5838
|
};
|
|
3948
5839
|
case "HOLD":
|
|
3949
5840
|
return {
|
|
@@ -3956,22 +5847,24 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3956
5847
|
}),
|
|
3957
5848
|
buttonText: null,
|
|
3958
5849
|
alertType: "warning",
|
|
5850
|
+
icon: "exclamation-triangle",
|
|
5851
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
3959
5852
|
};
|
|
3960
5853
|
default:
|
|
3961
5854
|
return;
|
|
3962
5855
|
}
|
|
3963
5856
|
}
|
|
3964
5857
|
const statusMap = {
|
|
3965
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
3966
|
-
h("sl-badge", {
|
|
5858
|
+
NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5859
|
+
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
3967
5860
|
h("p", null, intl.formatMessage({
|
|
3968
5861
|
id: `badgeTextAwaitingReview`,
|
|
3969
5862
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
3970
5863
|
}, {
|
|
3971
5864
|
dateSubmitted: states.dateSubmitted,
|
|
3972
5865
|
})))),
|
|
3973
|
-
ACTIVE: (h("div", { class: sheet$
|
|
3974
|
-
h("sl-badge", {
|
|
5866
|
+
ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5867
|
+
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
3975
5868
|
h("p", null, intl.formatMessage({
|
|
3976
5869
|
id: `badgeTextSubmittedOn`,
|
|
3977
5870
|
defaultMessage: states.documentType === "W9"
|
|
@@ -3980,13 +5873,22 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3980
5873
|
}, {
|
|
3981
5874
|
dateSubmitted: states.dateSubmitted,
|
|
3982
5875
|
})))),
|
|
3983
|
-
INACTIVE: (h("div", { class: sheet$
|
|
3984
|
-
h("sl-badge", {
|
|
5876
|
+
INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5877
|
+
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
3985
5878
|
h("p", null, text.invalidForm))),
|
|
5879
|
+
undefined: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5880
|
+
h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
|
|
5881
|
+
h("p", null, intl.formatMessage({
|
|
5882
|
+
id: `requiredTaxForm`,
|
|
5883
|
+
defaultMessage: text.requiredTaxForm,
|
|
5884
|
+
}, {
|
|
5885
|
+
taxFormType: states.documentType,
|
|
5886
|
+
})))),
|
|
3986
5887
|
};
|
|
3987
5888
|
const alertMap = {
|
|
3988
|
-
INACTIVE: (h("
|
|
3989
|
-
h("
|
|
5889
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5890
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5891
|
+
h("strong", null, intl.formatMessage({
|
|
3990
5892
|
id: `taxAlertHeaderNotActive`,
|
|
3991
5893
|
defaultMessage: states.documentType === "W9"
|
|
3992
5894
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -3994,6 +5896,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
3994
5896
|
}, {
|
|
3995
5897
|
documentType: states.documentTypeString,
|
|
3996
5898
|
})),
|
|
5899
|
+
h("br", null),
|
|
3997
5900
|
intl.formatMessage({
|
|
3998
5901
|
id: `taxAlertMessage`,
|
|
3999
5902
|
defaultMessage: states.documentType === "W9"
|
|
@@ -4031,74 +5934,78 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4031
5934
|
});
|
|
4032
5935
|
}
|
|
4033
5936
|
};
|
|
4034
|
-
const
|
|
5937
|
+
const alertInfo = getAlert(states.payoutStatus);
|
|
4035
5938
|
return (h("div", null,
|
|
4036
5939
|
h("div", null,
|
|
4037
|
-
h("style", { type: "text/css" }, styleString$
|
|
4038
|
-
h("
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
5940
|
+
h("style", { type: "text/css" }, styleString$5),
|
|
5941
|
+
states.loadingError && (h("div", null,
|
|
5942
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5943
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5944
|
+
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5945
|
+
h("br", null),
|
|
5946
|
+
intl.formatMessage({
|
|
5947
|
+
id: "loadingErrorAlertDescription",
|
|
5948
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
5949
|
+
}, {
|
|
5950
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5951
|
+
})))),
|
|
5952
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5953
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5954
|
+
h("strong", null, text.error.generalTitle),
|
|
5955
|
+
h("br", null),
|
|
4049
5956
|
intl.formatMessage({
|
|
4050
5957
|
id: "generalDescription",
|
|
4051
5958
|
defaultMessage: text.error.generalDescription,
|
|
4052
5959
|
}, {
|
|
4053
5960
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4054
5961
|
}))),
|
|
4055
|
-
|
|
4056
|
-
h("
|
|
4057
|
-
h("
|
|
4058
|
-
|
|
4059
|
-
|
|
5962
|
+
alertInfo && (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 },
|
|
5963
|
+
h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
|
|
5964
|
+
h("strong", null, alertInfo.header),
|
|
5965
|
+
h("p", { style: { margin: "0" } }, alertInfo.description),
|
|
5966
|
+
alertInfo.buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
|
|
5967
|
+
alertInfo.button ? (alertInfo.button) : (h("div", { style: { display: "none" } })))),
|
|
5968
|
+
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
4060
5969
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
4061
|
-
h("sl-button", { slot: "footer", type: "primary",
|
|
4062
|
-
h("sl-button", { slot: "footer", type: "
|
|
5970
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5971
|
+
h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
4063
5972
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
4064
5973
|
h("div", null,
|
|
4065
5974
|
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
4066
|
-
h("p", { class: sheet$
|
|
4067
|
-
h("div", { class: sheet$
|
|
5975
|
+
h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5976
|
+
h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
4068
5977
|
slots.payoutDetailsCardSlot,
|
|
4069
|
-
!states.loading && (h("p", { class: sheet$
|
|
4070
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
4071
|
-
h("div", { class: sheet$
|
|
4072
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
4073
|
-
h("sl-skeleton", { class: sheet$
|
|
4074
|
-
h("sl-skeleton", { class: sheet$
|
|
4075
|
-
h("
|
|
4076
|
-
|
|
4077
|
-
h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4078
|
-
h("div", { class: sheet$4.classes.StatusContainer },
|
|
5978
|
+
!states.loading && (h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5979
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5980
|
+
h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5981
|
+
h("div", null, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5982
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5983
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null, !states.noFormNeeded && (h("div", null,
|
|
5984
|
+
h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5985
|
+
h("div", { class: sheet$5.classes.StatusContainer },
|
|
4079
5986
|
h("h3", null, intl.formatMessage({
|
|
4080
5987
|
id: "section-subheader",
|
|
4081
5988
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
4082
5989
|
}, {
|
|
4083
5990
|
documentType: states.documentTypeString,
|
|
4084
5991
|
})),
|
|
4085
|
-
h("span", { class: sheet$
|
|
4086
|
-
states.status !== "NOT_VERIFIED" && (h("sl-button", {
|
|
4087
|
-
h("div", { class: sheet$
|
|
4088
|
-
h("sl-skeleton", { class: sheet$
|
|
4089
|
-
h("sl-skeleton", { class: sheet$
|
|
4090
|
-
h("h3", { class: sheet$
|
|
5992
|
+
h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
5993
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5994
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5995
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5996
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null,
|
|
5997
|
+
h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
4091
5998
|
text.indirectTaxInfoSectionHeader,
|
|
4092
|
-
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
4093
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
4094
|
-
h("div", { class: sheet$
|
|
4095
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet$
|
|
5999
|
+
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
6000
|
+
h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
6001
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
6002
|
+
h("span", null, states.notRegistered ? (h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
4096
6003
|
id: "notRegisteredForTax",
|
|
4097
6004
|
defaultMessage: text.notRegisteredForTax,
|
|
4098
6005
|
}, {
|
|
4099
6006
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
4100
6007
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
4101
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
6008
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
4102
6009
|
h("span", null, intl.formatMessage({
|
|
4103
6010
|
id: `indirectTaxDetails`,
|
|
4104
6011
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -4121,7 +6028,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4121
6028
|
}, {
|
|
4122
6029
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
4123
6030
|
})))),
|
|
4124
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
6031
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
4125
6032
|
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 },
|
|
4126
6033
|
h("sqm-invoice-table-download-column", null),
|
|
4127
6034
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -4262,6 +6169,18 @@ const TaxAndCashDashboard = class {
|
|
|
4262
6169
|
* @uiName Not verified tax form badge label
|
|
4263
6170
|
*/
|
|
4264
6171
|
this.statusTextNotVerified = "Not Verified";
|
|
6172
|
+
/**
|
|
6173
|
+
* Displayed when the participant has not submitted their required tax form.
|
|
6174
|
+
*
|
|
6175
|
+
* @uiName Required tax form badge label
|
|
6176
|
+
*/
|
|
6177
|
+
this.statusTextRequired = "Required";
|
|
6178
|
+
/**
|
|
6179
|
+
* Additional text displayed next to the tax form's status badge
|
|
6180
|
+
*
|
|
6181
|
+
* @uiName Required tax form description
|
|
6182
|
+
*/
|
|
6183
|
+
this.requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
|
|
4265
6184
|
/**
|
|
4266
6185
|
* Additional text displayed next to the tax form's status badge
|
|
4267
6186
|
*
|
|
@@ -4328,13 +6247,6 @@ const TaxAndCashDashboard = class {
|
|
|
4328
6247
|
* @uiName Tax documents section description
|
|
4329
6248
|
*/
|
|
4330
6249
|
this.taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4331
|
-
/**
|
|
4332
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4333
|
-
*
|
|
4334
|
-
* @uiName Tax form not required text
|
|
4335
|
-
* @uiWidget textArea
|
|
4336
|
-
*/
|
|
4337
|
-
this.noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
|
|
4338
6250
|
/**
|
|
4339
6251
|
*
|
|
4340
6252
|
* @uiName Indirect tax section header
|
|
@@ -4464,6 +6376,18 @@ const TaxAndCashDashboard = class {
|
|
|
4464
6376
|
* @uiName Verification required alert button text
|
|
4465
6377
|
*/
|
|
4466
6378
|
this.verificationRequiredButtonText = "Start Verification";
|
|
6379
|
+
/**
|
|
6380
|
+
* @uiName W9 payment threshold alert header
|
|
6381
|
+
*/
|
|
6382
|
+
this.w9RequiredHeader = "Your next payout is on hold";
|
|
6383
|
+
/**
|
|
6384
|
+
* @uiName W9 payment threshold alert description
|
|
6385
|
+
*/
|
|
6386
|
+
this.w9RequiredDescription = "To remove the hold, you need to submit a W9 tax form as outlines in our Terms and Conditions. Please click 'Submit W9' to start the process.";
|
|
6387
|
+
/**
|
|
6388
|
+
* @uiName W9 payment threshold alert button text
|
|
6389
|
+
*/
|
|
6390
|
+
this.w9RequiredButtonText = "Submit W9";
|
|
4467
6391
|
/**
|
|
4468
6392
|
* Part of the alert displayed at the top of the page.
|
|
4469
6393
|
* @uiName Form submission error message title
|
|
@@ -4552,11 +6476,6 @@ const TaxAndCashDashboard = class {
|
|
|
4552
6476
|
* @uiName Cancel button label
|
|
4553
6477
|
*/
|
|
4554
6478
|
this.cancelButton = "Cancel";
|
|
4555
|
-
/**
|
|
4556
|
-
* @undocumented
|
|
4557
|
-
* @componentState { "title": "Payouts on hold", "props": { "payoutStatus": "HOLD" }, "uiGroup": "Dashboard Properties" }
|
|
4558
|
-
*/
|
|
4559
|
-
this.stateController = "{}";
|
|
4560
6479
|
h$1(this);
|
|
4561
6480
|
}
|
|
4562
6481
|
disconnectedCallback() { }
|
|
@@ -4582,31 +6501,23 @@ const TaxAndCashDashboard = class {
|
|
|
4582
6501
|
}
|
|
4583
6502
|
};
|
|
4584
6503
|
function useDemoTaxAndCashDashboard(props) {
|
|
4585
|
-
// @ts-ignore
|
|
4586
6504
|
return cjs({
|
|
4587
6505
|
states: {
|
|
4588
6506
|
dateSubmitted: "today",
|
|
4589
6507
|
documentType: "W9",
|
|
4590
6508
|
documentTypeString: "W9",
|
|
6509
|
+
status: "ACTIVE",
|
|
4591
6510
|
country: "United States",
|
|
4592
|
-
indirectTaxNumber:
|
|
6511
|
+
indirectTaxNumber: 55555555,
|
|
4593
6512
|
indirectTaxType: "Indirect Tax",
|
|
4594
|
-
noFormNeeded:
|
|
6513
|
+
noFormNeeded: true,
|
|
4595
6514
|
disabled: false,
|
|
4596
6515
|
loading: false,
|
|
4597
6516
|
showNewFormDialog: false,
|
|
4598
6517
|
hasHold: false,
|
|
4599
|
-
|
|
4600
|
-
subRegionTaxNumber: undefined,
|
|
4601
|
-
qstNumber: undefined,
|
|
4602
|
-
isBusinessEntity: false,
|
|
4603
|
-
province: undefined,
|
|
4604
|
-
notRegistered: true,
|
|
4605
|
-
loadingError: false,
|
|
6518
|
+
showVerifyIdentity: false,
|
|
4606
6519
|
payoutStatus: "DONE",
|
|
4607
6520
|
veriffLoading: false,
|
|
4608
|
-
canEditPayoutInfo: true,
|
|
4609
|
-
status: "ACTIVE",
|
|
4610
6521
|
},
|
|
4611
6522
|
callbacks: {
|
|
4612
6523
|
onClick: () => console.debug("check step"),
|
|
@@ -4616,14 +6527,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
4616
6527
|
onVerifyClick: () => console.log("verify"),
|
|
4617
6528
|
},
|
|
4618
6529
|
text: props.getTextProps(),
|
|
4619
|
-
|
|
4620
|
-
payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
|
|
4621
|
-
states: {
|
|
4622
|
-
badgeStatus: "nextPayout",
|
|
4623
|
-
},
|
|
4624
|
-
} })),
|
|
4625
|
-
},
|
|
4626
|
-
}, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
|
|
6530
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4627
6531
|
}
|
|
4628
6532
|
|
|
4629
6533
|
const PHONE_EXTENSIONS = {
|
|
@@ -5597,19 +7501,19 @@ const PHONE_EXTENSIONS = {
|
|
|
5597
7501
|
},
|
|
5598
7502
|
};
|
|
5599
7503
|
|
|
5600
|
-
const style$
|
|
7504
|
+
const style$7 = {
|
|
5601
7505
|
FormWrapper: {},
|
|
5602
7506
|
ErrorInput: {
|
|
5603
7507
|
"&::part(base)": {
|
|
5604
|
-
border: "
|
|
7508
|
+
border: "1px solid var(--sl-color-danger-500)",
|
|
5605
7509
|
borderRadius: "var(--sl-input-border-radius-medium)",
|
|
5606
7510
|
},
|
|
5607
7511
|
"&::part(help-text)": {
|
|
5608
|
-
color: "var(--
|
|
7512
|
+
color: "var(--sl-color-danger-500)",
|
|
5609
7513
|
},
|
|
5610
7514
|
},
|
|
5611
7515
|
ErrorText: {
|
|
5612
|
-
color: "var(--
|
|
7516
|
+
color: "var(--sl-color-danger-500)",
|
|
5613
7517
|
marginTop: "10px",
|
|
5614
7518
|
},
|
|
5615
7519
|
TextContainer: {
|
|
@@ -5640,6 +7544,9 @@ const style$6 = {
|
|
|
5640
7544
|
justifyContent: "flex-start",
|
|
5641
7545
|
flexDirection: "column",
|
|
5642
7546
|
},
|
|
7547
|
+
DescriptionText: {
|
|
7548
|
+
color: "var(--sl-color-neutral-500)",
|
|
7549
|
+
},
|
|
5643
7550
|
BoldText: {
|
|
5644
7551
|
fontWeight: "bold",
|
|
5645
7552
|
},
|
|
@@ -5648,8 +7555,28 @@ const style$6 = {
|
|
|
5648
7555
|
borderRadius: "50%",
|
|
5649
7556
|
},
|
|
5650
7557
|
},
|
|
7558
|
+
AlertContainer: {
|
|
7559
|
+
"&::part(base)": {
|
|
7560
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
7561
|
+
borderTop: "none",
|
|
7562
|
+
padding: "0 16px",
|
|
7563
|
+
},
|
|
7564
|
+
"& sl-icon::part(base)": {
|
|
7565
|
+
color: "var(--sl-color-danger-500)",
|
|
7566
|
+
},
|
|
7567
|
+
},
|
|
7568
|
+
PartnerAlertContainer: {
|
|
7569
|
+
"&::part(base)": {
|
|
7570
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
7571
|
+
borderTop: "none",
|
|
7572
|
+
padding: "0 16px",
|
|
7573
|
+
},
|
|
7574
|
+
"& sl-icon::part(base)": {
|
|
7575
|
+
color: "var(--sl-color-blue-500)",
|
|
7576
|
+
},
|
|
7577
|
+
},
|
|
5651
7578
|
PageDescriptionText: {
|
|
5652
|
-
color: "var(--
|
|
7579
|
+
color: "var(--sl-color-neutral-500)",
|
|
5653
7580
|
fontSize: "var(--sl-font-size-medium)",
|
|
5654
7581
|
},
|
|
5655
7582
|
PhoneInputsSection: {
|
|
@@ -5672,8 +7599,8 @@ const style$6 = {
|
|
|
5672
7599
|
},
|
|
5673
7600
|
},
|
|
5674
7601
|
};
|
|
5675
|
-
const sheet$
|
|
5676
|
-
const styleString$
|
|
7602
|
+
const sheet$6 = createStyleSheet(style$7);
|
|
7603
|
+
const styleString$6 = sheet$6.toString();
|
|
5677
7604
|
const vanillaStyle$4 = `
|
|
5678
7605
|
:host{
|
|
5679
7606
|
display: block;
|
|
@@ -5683,15 +7610,11 @@ const vanillaStyle$4 = `
|
|
|
5683
7610
|
padding: 0;
|
|
5684
7611
|
box-sizing: border-box;
|
|
5685
7612
|
}
|
|
5686
|
-
a {
|
|
5687
|
-
color: var(--sqm-text);
|
|
5688
|
-
color: inherit !important;
|
|
5689
|
-
text-decoration: underline;
|
|
5690
|
-
}
|
|
5691
7613
|
|
|
5692
7614
|
p {
|
|
5693
7615
|
line-height: 18px;
|
|
5694
|
-
|
|
7616
|
+
color: var(--sl-color-gray-800);
|
|
7617
|
+
font-size: var(--sl-font-size-small);
|
|
5695
7618
|
}
|
|
5696
7619
|
|
|
5697
7620
|
sl-radio-group::part(base) {
|
|
@@ -5702,149 +7625,11 @@ const vanillaStyle$4 = `
|
|
|
5702
7625
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
5703
7626
|
min-width: 250px;
|
|
5704
7627
|
}
|
|
5705
|
-
|
|
5706
|
-
sl-button[type="primary"]::part(base){
|
|
5707
|
-
background-color: var(--sqm-primary-button-background);
|
|
5708
|
-
color: var(--sqm-primary-button-color);
|
|
5709
|
-
border-color: var(--sqm-primary-button-color-border);
|
|
5710
|
-
border-radius: var(--sqm-primary-button-radius);
|
|
5711
|
-
}
|
|
5712
|
-
|
|
5713
|
-
sl-button[type="primary"]::part(base):hover{
|
|
5714
|
-
background-color: var(--sqm-primary-button-background-hover);
|
|
5715
|
-
}
|
|
5716
|
-
|
|
5717
|
-
sl-button[type="primary"]::part(base):focus{
|
|
5718
|
-
box-shadow: none;
|
|
5719
|
-
}
|
|
5720
|
-
|
|
5721
|
-
sl-button[type="secondary"]::part(base){
|
|
5722
|
-
background-color: var(--sqm-secondary-button-background);
|
|
5723
|
-
color: var(--sqm-secondary-button-color);
|
|
5724
|
-
border-color: var(--sqm-secondary-button-color-border);
|
|
5725
|
-
border-radius: var(--sqm-secondary-button-radius);
|
|
5726
|
-
}
|
|
5727
|
-
|
|
5728
|
-
sl-button[type="secondary"]::part(base):hover{
|
|
5729
|
-
background-color: var(--sqm-secondary-button-background-hover);
|
|
5730
|
-
}
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
*::part(primarybutton-base){
|
|
5735
|
-
background-color: var(--sqm-primary-button-background);
|
|
5736
|
-
color: var(--sqm-primary-button-color);
|
|
5737
|
-
border-color: var(--sqm-primary-button-color-border);
|
|
5738
|
-
border-radius: var(--sqm-primary-button-radius);
|
|
5739
|
-
}
|
|
5740
|
-
|
|
5741
|
-
*::part(primarybutton-base):hover{
|
|
5742
|
-
background-color: var(--sqm-primary-button-background-hover);
|
|
5743
|
-
}
|
|
5744
|
-
|
|
5745
|
-
*::part(primarybutton-base):focus{
|
|
5746
|
-
box-shadow: none;
|
|
5747
|
-
}
|
|
5748
|
-
|
|
5749
|
-
*::part(secondarybutton-base){
|
|
5750
|
-
background-color: var(--sqm-secondary-button-background);
|
|
5751
|
-
color: var(--sqm-secondary-button-color);
|
|
5752
|
-
border-color: var(--sqm-secondary-button-color-border);
|
|
5753
|
-
border-radius: var(--sqm-secondary-button-radius);
|
|
5754
|
-
}
|
|
5755
|
-
|
|
5756
|
-
*::part(secondarybutton-base):hover{
|
|
5757
|
-
background-color: var(--sqm-secondary-button-background-hover);
|
|
5758
|
-
}
|
|
5759
|
-
|
|
5760
|
-
*::part(secondarybutton-base){
|
|
5761
|
-
background-color: var(--sqm-secondary-button-background);
|
|
5762
|
-
color: var(--sqm-secondary-button-color);
|
|
5763
|
-
border-color: var(--sqm-secondary-button-color-border);
|
|
5764
|
-
border-radius: var(--sqm-secondary-button-radius);
|
|
5765
|
-
width: max-content;
|
|
5766
|
-
display: flex;
|
|
5767
|
-
margin: auto;
|
|
5768
|
-
}
|
|
5769
|
-
|
|
5770
|
-
*::part(secondarybutton-base):hover{
|
|
5771
|
-
background: var(--sqm-secondary-button-background-hover);
|
|
5772
|
-
}
|
|
5773
|
-
|
|
5774
|
-
sl-input::part(label),
|
|
5775
|
-
sl-select::part(label),
|
|
5776
|
-
sl-textarea::part(label){
|
|
5777
|
-
font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
|
|
5778
|
-
font-weight: var(--sl-font-weight-semibold);
|
|
5779
|
-
color: var(--sqm-input-label-color, var(--sqm-text), black);
|
|
5780
|
-
}
|
|
5781
|
-
|
|
5782
|
-
/* Corrected: Target sl-input, sl-select, sl-textarea base elements */
|
|
5783
|
-
sl-input::part(base),
|
|
5784
|
-
sl-dropdown::part(base),
|
|
5785
|
-
sl-textarea::part(base){
|
|
5786
|
-
background-color: var(--sqm-input-background, #fff);
|
|
5787
|
-
border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
|
|
5788
|
-
color: var(--sqm-input-color, white);
|
|
5789
|
-
border-width: var(--sqm-border-thickness, 1px);
|
|
5790
|
-
border-style: solid;
|
|
5791
|
-
border-color: var(--sqm-input-border-color, #ccc);
|
|
5792
|
-
}
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
sl-select::part(menu) {
|
|
5796
|
-
background: var(--sqm-input-background, inherit);
|
|
5797
|
-
color: var(--sqm-input-color, inherit);
|
|
5798
|
-
border:none;
|
|
5799
|
-
}
|
|
5800
|
-
|
|
5801
|
-
sl-select::part(panel) {
|
|
5802
|
-
border-radius: var(--sqm-border-radius-normal);
|
|
5803
|
-
}
|
|
5804
|
-
|
|
5805
|
-
sl-select::part(help-text) {
|
|
5806
|
-
color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
|
|
5807
|
-
}
|
|
5808
|
-
|
|
5809
|
-
sl-input::part(base):focus,
|
|
5810
|
-
sl-select::part(base):focus, /* Corrected part name for sl-select */
|
|
5811
|
-
sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
|
|
5812
|
-
border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
|
|
5813
|
-
}
|
|
5814
|
-
|
|
5815
|
-
sl-input[disabled]::part(label),
|
|
5816
|
-
sl-select[disabled]::part(label),
|
|
5817
|
-
sl-textarea[disabled]::part(label){
|
|
5818
|
-
color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
|
|
5819
|
-
}
|
|
5820
|
-
|
|
5821
|
-
sl-input[disabled]::part(base),
|
|
5822
|
-
sl-select[disabled]::part(base),
|
|
5823
|
-
sl-textarea[disabled]::part(base){
|
|
5824
|
-
background: var(--sqm-input-disabled-background, #f5f5f5);
|
|
5825
|
-
border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
|
|
5826
|
-
}
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
sl-input::part(input):-webkit-autofill {
|
|
5830
|
-
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5831
|
-
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5832
|
-
}
|
|
5833
|
-
|
|
5834
|
-
sl-input::part(input):-webkit-autofill:hover {
|
|
5835
|
-
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5836
|
-
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5837
|
-
}
|
|
5838
|
-
|
|
5839
|
-
sl-input::part(input):-webkit-autofill:focus {
|
|
5840
|
-
box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
|
|
5841
|
-
-webkit-text-fill-color: var(--sqm-input-color, white) !important;
|
|
5842
|
-
}
|
|
5843
|
-
`;
|
|
7628
|
+
`;
|
|
5844
7629
|
const UserInfoFormView = (props) => {
|
|
5845
7630
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
5846
7631
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
5847
|
-
const { classes } = sheet$
|
|
7632
|
+
const { classes } = sheet$6;
|
|
5848
7633
|
const bankingCollectionText = intl.formatMessage({
|
|
5849
7634
|
id: "bankingCollectionText",
|
|
5850
7635
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -5867,18 +7652,21 @@ const UserInfoFormView = (props) => {
|
|
|
5867
7652
|
}
|
|
5868
7653
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
5869
7654
|
h("style", { type: "text/css" },
|
|
5870
|
-
styleString$
|
|
7655
|
+
styleString$6,
|
|
5871
7656
|
vanillaStyle$4),
|
|
5872
7657
|
states.loadingError && (h("div", null,
|
|
5873
|
-
h("
|
|
5874
|
-
h("
|
|
5875
|
-
h("
|
|
7658
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
7659
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7660
|
+
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
7661
|
+
h("br", null),
|
|
7662
|
+
intl.formatMessage({
|
|
5876
7663
|
id: "loadingErrorAlertDescription",
|
|
5877
7664
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
5878
7665
|
}, {
|
|
5879
7666
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5880
|
-
}))
|
|
5881
|
-
|
|
7667
|
+
})),
|
|
7668
|
+
h("br", null))),
|
|
7669
|
+
states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
|
|
5882
7670
|
h("div", { class: classes.TextContainer },
|
|
5883
7671
|
h("div", null,
|
|
5884
7672
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -5887,25 +7675,29 @@ const UserInfoFormView = (props) => {
|
|
|
5887
7675
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
5888
7676
|
h("h3", null, text.personalInformation),
|
|
5889
7677
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
5890
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
5891
|
-
h("
|
|
5892
|
-
h("
|
|
7678
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
7679
|
+
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7680
|
+
h("strong", null, text.error.generalTitle),
|
|
7681
|
+
h("br", null),
|
|
7682
|
+
intl.formatMessage({
|
|
5893
7683
|
id: "generalDescription",
|
|
5894
7684
|
defaultMessage: text.error.generalDescription,
|
|
5895
7685
|
}, {
|
|
5896
7686
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5897
|
-
})))
|
|
5898
|
-
(states.isPartner || states.isUser) && (h("
|
|
5899
|
-
h("
|
|
5900
|
-
h("
|
|
7687
|
+
}))),
|
|
7688
|
+
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
7689
|
+
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
7690
|
+
h("strong", null, text.isPartnerAlertHeader),
|
|
7691
|
+
h("br", null),
|
|
7692
|
+
intl.formatMessage({
|
|
5901
7693
|
id: "isPartnerAlertDescription",
|
|
5902
7694
|
defaultMessage: text.isPartnerAlertDescription,
|
|
5903
7695
|
}, {
|
|
5904
7696
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5905
|
-
})))
|
|
7697
|
+
}))),
|
|
5906
7698
|
h("div", null,
|
|
5907
7699
|
h("div", { class: classes.InputContainer },
|
|
5908
|
-
h("sl-input", Object.assign({
|
|
7700
|
+
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) ? {
|
|
5909
7701
|
class: classes.ErrorInput,
|
|
5910
7702
|
helpText: formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
5911
7703
|
}
|
|
@@ -6387,20 +8179,19 @@ const TaxForm = class {
|
|
|
6387
8179
|
}
|
|
6388
8180
|
render() {
|
|
6389
8181
|
const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
6390
|
-
return (h(UserInfoFormView, { data: props.data,
|
|
8182
|
+
return (h(Host, null, h(UserInfoFormView, { data: props.data,
|
|
6391
8183
|
// @ts-ignore
|
|
6392
8184
|
states: props.states, callbacks: {
|
|
6393
8185
|
...props.callbacks,
|
|
6394
8186
|
onSubmit: props.onSubmit,
|
|
6395
|
-
}, text: props.text, refs: props.refs }));
|
|
8187
|
+
}, text: props.text, refs: props.refs })));
|
|
6396
8188
|
}
|
|
6397
8189
|
};
|
|
6398
8190
|
function useDemoUserInfoForm(props) {
|
|
6399
8191
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
6400
|
-
// @ts-ignore
|
|
6401
8192
|
return cjs({
|
|
6402
8193
|
setStep,
|
|
6403
|
-
onSubmit:
|
|
8194
|
+
onSubmit: () => {
|
|
6404
8195
|
setStep("/2");
|
|
6405
8196
|
},
|
|
6406
8197
|
onRadioClick: () => { },
|
|
@@ -6443,4 +8234,4 @@ function useDemoUserInfoForm(props) {
|
|
|
6443
8234
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6444
8235
|
}
|
|
6445
8236
|
|
|
6446
|
-
export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataColumn as sqm_invoice_table_data_column, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|
|
8237
|
+
export { BankingInfoForm as sqm_banking_info_form, WidgetCodeVerification as sqm_code_verification, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|