@saasquatch/mint-components 1.12.0-0 → 1.12.0-2
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/{ShadowViewAddon-88821c64.js → ShadowViewAddon-13173901.js} +33 -32
- package/dist/cjs/{global-c3637175.js → global-e4ebdbcc.js} +161 -10
- package/dist/cjs/index-56d1fa5b.js +2227 -0
- package/dist/cjs/{index.module-b8d9d0ba.js → index.module-236d0403.js} +1392 -228
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-05098e19.js → luxon-20eafbd9.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-3c470512.js} +1 -1
- package/dist/cjs/{re-render-5bde3d2e.js → re-render-5de6631a.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +409 -440
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +127 -73
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +38 -34
- package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
- package/dist/cjs/sqm-email-verification.cjs.entry.js +34 -10
- package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-invoice-table-view-ce9a34ac.js → sqm-invoice-table-view-dbba9bb4.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -8
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +8 -7
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-fc865ecf.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-4bc2760b.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-cbab7c80.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -11
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -6
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +62 -61
- package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +46 -24
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +3 -3
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -3
- package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-a5a04d8a.js} +1 -4
- package/dist/cjs/{useChildElements-410d2435.js → useChildElements-23beb180.js} +2 -2
- package/dist/cjs/useEmailVerification-33465f36.js +155 -0
- package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-7c125c00.js} +3 -3
- package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-54d0ba70.js} +14 -13
- package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-e7e820d0.js} +2 -2
- package/dist/cjs/{utilities-f7de6c04.js → utilities-ac5b5f2c.js} +2 -2
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -2
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +16 -3
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +19 -9
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +6 -58
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +10 -7
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +23 -3
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +17 -4
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +59 -7
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +88 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +29 -8
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +56 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -16
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -79
- package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-72e231a5.js} +7 -6
- package/dist/esm/{global-6306a9b8.js → global-adae7650.js} +161 -10
- package/dist/esm/index-0c7b14c5.js +2225 -0
- package/dist/esm/{index.module-6c840c4e.js → index.module-c0eb7dc2.js} +1389 -222
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
- package/dist/esm/{re-render-1bcfd0de.js → re-render-5882a144.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +10 -41
- package/dist/esm/sqm-big-stat_39.entry.js +72 -18
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-code-verification.entry.js +36 -32
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-email-verification.entry.js +33 -9
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
- package/dist/esm/{sqm-invoice-table-view-08c03ba7.js → sqm-invoice-table-view-663674f2.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +4 -3
- package/dist/esm/sqm-logout-current-user.entry.js +3 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-4715e546.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-598eb9a7.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-a0f6ad48.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +6 -5
- package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +5 -4
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +9 -8
- package/dist/esm/sqm-referred-registration.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +9 -8
- package/dist/esm/sqm-scroll.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +44 -22
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/sqm-widget-verification-internal.entry.js +2 -2
- package/dist/esm/sqm-widget-verification.entry.js +2 -2
- package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
- package/dist/esm/{useChildElements-fc84e640.js → useChildElements-fe94b660.js} +2 -2
- package/dist/esm/useEmailVerification-8f2dc2bd.js +152 -0
- package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-670c1b98.js} +3 -3
- package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-52008143.js} +5 -4
- package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-4cfd1a8d.js} +2 -2
- package/dist/esm/{utilities-443732be.js → utilities-98445452.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-72e231a5.js +1 -0
- package/dist/esm-es5/global-adae7650.js +285 -0
- package/dist/esm-es5/index-0c7b14c5.js +1 -0
- package/dist/esm-es5/index.module-c0eb7dc2.js +53 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
- package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-5882a144.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.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-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-08c03ba7.js → sqm-invoice-table-view-663674f2.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-4715e546.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.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-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-598eb9a7.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-a0f6ad48.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.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.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 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-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.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
- package/dist/esm-es5/useChildElements-fe94b660.js +1 -0
- package/dist/esm-es5/useEmailVerification-8f2dc2bd.js +1 -0
- package/dist/esm-es5/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-670c1b98.js} +1 -1
- package/dist/esm-es5/useReferralTable-52008143.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-4cfd1a8d.js +1 -0
- package/dist/esm-es5/{utilities-443732be.js → utilities-98445452.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-0078bc76.system.js +53 -0
- package/dist/mint-components/{p-5becb2ff.system.js → p-00ec17d4.system.js} +1 -1
- package/dist/mint-components/{p-cd44de66.system.js → p-06c561ea.system.js} +1 -1
- package/dist/mint-components/{p-2a414b2e.system.js → p-0979f82e.system.js} +2 -2
- package/dist/mint-components/{p-d83b0cf3.js → p-0db003f7.js} +153 -153
- package/dist/mint-components/{p-0121e044.js → p-0ecb3019.js} +1 -1
- package/dist/mint-components/{p-04ced592.system.entry.js → p-14488d1c.system.entry.js} +1 -1
- package/dist/mint-components/{p-88aac6a9.system.entry.js → p-14beec1b.system.entry.js} +1 -1
- package/dist/mint-components/{p-a85f57bb.entry.js → p-15e01e7a.entry.js} +1 -1
- package/dist/mint-components/{p-2816bf6a.js → p-1602bf01.js} +1 -1
- package/dist/mint-components/p-18399da0.system.entry.js +1 -0
- package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-18cd88c4.system.entry.js} +1 -1
- package/dist/mint-components/{p-fd2c5407.js → p-1b24bb52.js} +1 -1
- package/dist/mint-components/{p-03dbe2ce.entry.js → p-1e40967f.entry.js} +1 -1
- package/dist/mint-components/p-1f02e20b.entry.js +1 -0
- package/dist/mint-components/p-253c87e1.system.entry.js +1 -0
- package/dist/mint-components/p-25a70095.system.entry.js +1 -0
- package/dist/mint-components/p-2632464d.entry.js +1 -0
- package/dist/mint-components/p-286190c4.system.entry.js +1 -0
- package/dist/mint-components/{p-4e373c3d.system.js → p-34a87e67.system.js} +1 -1
- package/dist/mint-components/{p-59818690.system.entry.js → p-34dab223.system.entry.js} +1 -1
- package/dist/mint-components/{p-947fe79b.entry.js → p-3ba349a3.entry.js} +1 -1
- package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-3c46b3de.system.entry.js} +1 -1
- package/dist/mint-components/{p-bc826117.system.entry.js → p-3da2b3cf.system.entry.js} +1 -1
- package/dist/mint-components/p-414b3b6c.system.entry.js +1 -0
- package/dist/mint-components/p-4185f6f5.system.entry.js +1 -0
- package/dist/mint-components/{p-1d27da33.js → p-4209cd94.js} +4 -4
- package/dist/mint-components/{p-43621f12.system.js → p-423821b9.system.js} +1 -1
- package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-45d0b48a.system.entry.js} +1 -1
- package/dist/mint-components/{p-88bf51b7.system.entry.js → p-45d6cde6.system.entry.js} +1 -1
- package/dist/mint-components/{p-f3053c61.js → p-48704504.js} +1 -1
- package/dist/mint-components/{p-5291891c.entry.js → p-4c0b7768.entry.js} +3 -3
- package/dist/mint-components/{p-c763c0b2.js → p-4d060f15.js} +1 -1
- package/dist/mint-components/p-52241ba9.system.js +1 -0
- package/dist/mint-components/p-556753b2.js +42 -0
- package/dist/mint-components/p-55dcb6ff.system.js +1 -0
- package/dist/mint-components/{p-9d34f4f0.entry.js → p-56b37aeb.entry.js} +3 -3
- package/dist/mint-components/{p-1f7d7524.system.entry.js → p-5a2fd8e0.system.entry.js} +1 -1
- package/dist/mint-components/{p-dd0d79bf.entry.js → p-5c602e84.entry.js} +1 -1
- package/dist/mint-components/{p-e0e7635a.js → p-611a30f0.js} +1 -1
- package/dist/mint-components/{p-9e0230c3.entry.js → p-64acc813.entry.js} +1 -1
- package/dist/mint-components/{p-76392386.entry.js → p-657b290b.entry.js} +1 -1
- package/dist/mint-components/{p-04348a9b.js → p-65a449de.js} +1 -1
- package/dist/mint-components/p-65de8fb2.js +1 -0
- package/dist/mint-components/{p-4671e644.entry.js → p-6a70d2d6.entry.js} +1 -1
- package/dist/mint-components/p-6eede6e5.system.entry.js +1 -0
- package/dist/mint-components/p-6fbfd683.js +1 -0
- package/dist/mint-components/{p-9ec008cb.system.entry.js → p-70886c65.system.entry.js} +1 -1
- package/dist/mint-components/{p-c3b37bbf.js → p-7507d72b.js} +1 -1
- package/dist/mint-components/{p-0527d90b.system.entry.js → p-78a831e0.system.entry.js} +1 -1
- package/dist/mint-components/p-78c1bd77.system.js +1 -0
- package/dist/mint-components/{p-fbdf0738.entry.js → p-79097c07.entry.js} +1 -1
- package/dist/mint-components/{p-f0806232.system.entry.js → p-7ab14d4b.system.entry.js} +1 -1
- package/dist/mint-components/p-7c4c727c.system.entry.js +1 -0
- package/dist/mint-components/p-7e5f0292.system.entry.js +1 -0
- package/dist/mint-components/{p-ead27698.system.entry.js → p-816fb64f.system.entry.js} +1 -1
- package/dist/mint-components/p-832eba3a.entry.js +1 -0
- package/dist/mint-components/p-858a87ce.entry.js +1 -0
- package/dist/mint-components/p-89669879.system.js +1 -0
- package/dist/mint-components/p-8b7d2f44.entry.js +1 -0
- package/dist/mint-components/{p-b651706a.js → p-8ccb4267.js} +24 -24
- package/dist/mint-components/{p-a5a9aa07.entry.js → p-8d696fc9.entry.js} +11 -11
- package/dist/mint-components/{p-39af4acd.entry.js → p-8da20810.entry.js} +17 -17
- package/dist/mint-components/p-8defb972.system.entry.js +1 -0
- package/dist/mint-components/{p-251e7567.js → p-9223640e.js} +1 -1
- package/dist/mint-components/{p-6afb4f48.system.entry.js → p-95af445c.system.entry.js} +1 -1
- package/dist/mint-components/{p-721a89c6.entry.js → p-99a09fab.entry.js} +2 -2
- package/dist/mint-components/p-9cdaa099.entry.js +1 -0
- package/dist/mint-components/{p-5fba1a04.system.entry.js → p-a1f0d8ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-a45b03d2.entry.js → p-a2e1af83.entry.js} +1 -1
- package/dist/mint-components/p-a80c8f5c.system.js +1 -0
- package/dist/mint-components/{p-1f9a9b70.system.entry.js → p-a9487844.system.entry.js} +1 -1
- package/dist/mint-components/{p-51d53165.system.entry.js → p-ab7322f0.system.entry.js} +1 -1
- package/dist/mint-components/{p-4eae91a9.system.js → p-ab89b44a.system.js} +1 -1
- package/dist/mint-components/{p-c3babfa4.system.entry.js → p-ac69b460.system.entry.js} +1 -1
- package/dist/mint-components/{p-f56348dc.system.entry.js → p-b14a77e8.system.entry.js} +1 -1
- package/dist/mint-components/p-b28df069.js +1 -0
- package/dist/mint-components/p-b4771476.entry.js +1 -0
- package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-c293f586.system.entry.js} +1 -1
- package/dist/mint-components/p-c9ca8473.system.entry.js +1 -0
- package/dist/mint-components/p-cac64545.system.entry.js +1 -0
- package/dist/mint-components/{p-bee1e573.entry.js → p-cadb8dba.entry.js} +1 -1
- package/dist/mint-components/{p-6c928c7d.entry.js → p-cafebf8a.entry.js} +1 -1
- package/dist/mint-components/{p-370a1a73.system.js → p-cb45d0a8.system.js} +1 -1
- package/dist/mint-components/{p-84b25a46.entry.js → p-cdcd825e.entry.js} +1 -1
- package/dist/mint-components/{p-178d2d2e.entry.js → p-cdd04337.entry.js} +1 -1
- package/dist/mint-components/{p-83c9f37b.system.entry.js → p-d0c4f3bf.system.entry.js} +1 -1
- package/dist/mint-components/{p-94454880.entry.js → p-d2a925d5.entry.js} +1 -1
- package/dist/mint-components/p-d3293ac3.entry.js +11 -0
- package/dist/mint-components/{p-b1e8a802.entry.js → p-d39da925.entry.js} +1 -1
- package/dist/mint-components/p-d4138847.system.entry.js +1 -0
- package/dist/mint-components/p-d70bfe30.entry.js +8 -0
- package/dist/mint-components/p-d7b701a7.entry.js +1 -0
- package/dist/mint-components/{p-36f7caec.system.entry.js → p-d90ef1da.system.entry.js} +1 -1
- package/dist/mint-components/{p-ac51940e.system.js → p-dce3d296.system.js} +1 -1
- package/dist/mint-components/{p-68747d88.js → p-def70672.js} +1 -1
- package/dist/mint-components/p-e05ff098.system.js +1 -0
- package/dist/mint-components/p-e4c3817a.system.entry.js +1 -0
- package/dist/mint-components/{p-ce9e7c98.system.js → p-e5299352.system.js} +1 -1
- package/dist/mint-components/p-e7797040.entry.js +1 -0
- package/dist/mint-components/{p-e93e5740.entry.js → p-e810da97.entry.js} +1 -1
- package/dist/mint-components/p-e82eec3c.entry.js +13 -0
- package/dist/mint-components/p-e8bfd924.system.entry.js +1 -0
- package/dist/mint-components/p-e8fcaaa2.entry.js +13 -0
- package/dist/mint-components/{p-1b861be5.entry.js → p-ee328054.entry.js} +1 -1
- package/dist/mint-components/p-ef49d744.entry.js +1 -0
- package/dist/mint-components/{p-22425c71.system.entry.js → p-f0fba496.system.entry.js} +1 -1
- package/dist/mint-components/{p-4babe350.system.js → p-f338ef55.system.js} +1 -1
- package/dist/mint-components/p-f5f0fc0e.entry.js +1 -0
- package/dist/mint-components/{p-65e2c043.system.js → p-faf019cf.system.js} +1 -1
- package/dist/mint-components/p-fcb224ab.js +25 -0
- package/dist/mint-components/{p-fc422446.system.js → p-fda3d0ca.system.js} +22 -22
- package/dist/mint-components/p-fe8e1071.entry.js +1 -0
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -1
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +7 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +2 -3
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -10
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +4 -1
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +6 -1
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +10 -2
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +24 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -16
- package/dist/types/components.d.ts +82 -52
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/useEmailVerification-30a1c7f6.js +0 -75
- package/dist/esm/useEmailVerification-7135732c.js +0 -72
- package/dist/esm-es5/ShadowViewAddon-65c8679e.js +0 -1
- package/dist/esm-es5/global-6306a9b8.js +0 -285
- package/dist/esm-es5/index.module-6c840c4e.js +0 -1
- package/dist/esm-es5/useChildElements-fc84e640.js +0 -1
- package/dist/esm-es5/useEmailVerification-7135732c.js +0 -1
- package/dist/esm-es5/useReferralTable-f6ffa103.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
- package/dist/mint-components/p-012daf3c.entry.js +0 -1
- package/dist/mint-components/p-0893073b.entry.js +0 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +0 -1
- package/dist/mint-components/p-117b4705.system.js +0 -1
- package/dist/mint-components/p-11d1b212.js +0 -1
- package/dist/mint-components/p-1bd0cda8.system.entry.js +0 -1
- package/dist/mint-components/p-1ee62d9f.system.entry.js +0 -1
- package/dist/mint-components/p-23fdd44e.entry.js +0 -1
- package/dist/mint-components/p-2868f475.entry.js +0 -1
- package/dist/mint-components/p-36e9296e.system.entry.js +0 -1
- package/dist/mint-components/p-3925bcd6.entry.js +0 -13
- package/dist/mint-components/p-39397731.entry.js +0 -1
- package/dist/mint-components/p-64491210.system.entry.js +0 -1
- package/dist/mint-components/p-663303b7.entry.js +0 -8
- package/dist/mint-components/p-66a04cca.system.entry.js +0 -1
- package/dist/mint-components/p-7dd1ff31.system.entry.js +0 -1
- package/dist/mint-components/p-7f5c7bf7.system.entry.js +0 -1
- package/dist/mint-components/p-8a337864.js +0 -7
- package/dist/mint-components/p-8d554a89.system.js +0 -1
- package/dist/mint-components/p-93576222.system.js +0 -1
- package/dist/mint-components/p-99c15c5e.entry.js +0 -1
- package/dist/mint-components/p-a02afa72.system.js +0 -1
- package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +0 -1
- package/dist/mint-components/p-bdd6bb13.js +0 -1
- package/dist/mint-components/p-c8878e79.entry.js +0 -1
- package/dist/mint-components/p-c92a743e.entry.js +0 -1
- package/dist/mint-components/p-c9fb6102.entry.js +0 -1
- package/dist/mint-components/p-ca809fdd.system.js +0 -1
- package/dist/mint-components/p-cb433855.system.entry.js +0 -1
- package/dist/mint-components/p-d35d8c06.entry.js +0 -11
- package/dist/mint-components/p-d468925f.entry.js +0 -1
- package/dist/mint-components/p-def516b8.system.js +0 -1
- package/dist/mint-components/p-e12d3414.system.entry.js +0 -1
- package/dist/mint-components/p-e9ca48fc.system.entry.js +0 -1
- package/dist/mint-components/p-f36e33ff.entry.js +0 -13
- package/dist/mint-components/p-f450654b.system.entry.js +0 -1
- package/dist/mint-components/p-f4cbbe47.entry.js +0 -1
- package/dist/mint-components/p-f531a5c9.system.entry.js +0 -1
- package/dist/mint-components/p-f655a7df.js +0 -1
- package/dist/mint-components/p-fd21ae8f.entry.js +0 -1
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
9
|
-
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
5
|
+
const index$1 = require('./index-b0129cd6.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
|
|
7
|
+
const global = require('./global-e4ebdbcc.js');
|
|
8
|
+
const index_module = require('./index.module-236d0403.js');
|
|
10
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
10
|
require('./mixins-fe9d4112.js');
|
|
12
11
|
const JSS = require('./JSS-8503a151.js');
|
|
13
12
|
const GenericTableView = require('./GenericTableView-80d7642e.js');
|
|
14
|
-
const reRender = require('./re-render-
|
|
15
|
-
const useChildElements = require('./useChildElements-
|
|
16
|
-
const luxon = require('./luxon-
|
|
17
|
-
const
|
|
13
|
+
const reRender = require('./re-render-5de6631a.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-23beb180.js');
|
|
15
|
+
const luxon = require('./luxon-20eafbd9.js');
|
|
16
|
+
const index = require('./index-56d1fa5b.js');
|
|
17
|
+
const useReferralTable = require('./useReferralTable-54d0ba70.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const
|
|
19
|
+
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
20
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-dbba9bb4.js');
|
|
20
21
|
const keys = require('./keys-cff24974.js');
|
|
21
22
|
|
|
22
23
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
@@ -29,7 +30,7 @@ const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
|
29
30
|
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
30
31
|
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
31
32
|
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
32
|
-
const GET_USER =
|
|
33
|
+
const GET_USER = index.dist.gql `
|
|
33
34
|
query getUserTaxInfo {
|
|
34
35
|
user: viewer {
|
|
35
36
|
... on User {
|
|
@@ -90,7 +91,7 @@ const GET_USER = index_module.dist.gql `
|
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
`;
|
|
93
|
-
const GET_COUNTRIES =
|
|
94
|
+
const GET_COUNTRIES = index.dist.gql `
|
|
94
95
|
query getCountries {
|
|
95
96
|
impactPayoutCountries(limit: 1000) {
|
|
96
97
|
data {
|
|
@@ -100,7 +101,7 @@ const GET_COUNTRIES = index_module.dist.gql `
|
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
`;
|
|
103
|
-
const GET_CURRENCIES =
|
|
104
|
+
const GET_CURRENCIES = index.dist.gql `
|
|
104
105
|
query currencies($locale: RSLocale) {
|
|
105
106
|
currencies(limit: 300) {
|
|
106
107
|
data {
|
|
@@ -110,7 +111,7 @@ const GET_CURRENCIES = index_module.dist.gql `
|
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
`;
|
|
113
|
-
const GET_FINANCE_NETWORK_SETTINGS =
|
|
114
|
+
const GET_FINANCE_NETWORK_SETTINGS = index.dist.gql `
|
|
114
115
|
query impactFinanceNetworkSettings(
|
|
115
116
|
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
116
117
|
) {
|
|
@@ -136,7 +137,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
136
137
|
const { errors, ...formState } = props.states.formState;
|
|
137
138
|
return {
|
|
138
139
|
0: {
|
|
139
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
|
|
140
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
|
|
140
141
|
class: "error-input",
|
|
141
142
|
helpText: getValidationErrorMessage({
|
|
142
143
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
|
|
@@ -145,18 +146,18 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
145
146
|
})))),
|
|
146
147
|
},
|
|
147
148
|
1: {
|
|
148
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankAccountType) && {
|
|
149
|
+
input: (index$1.h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankAccountType) && {
|
|
149
150
|
class: "error-input",
|
|
150
151
|
helpText: getValidationErrorMessage({
|
|
151
152
|
type: (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _e === void 0 ? void 0 : _e.bankAccountType) === null || _f === void 0 ? void 0 : _f.type,
|
|
152
153
|
label: props.text.bankAccountTypeLabel,
|
|
153
154
|
}),
|
|
154
155
|
})),
|
|
155
|
-
index.h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
156
|
-
index.h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
156
|
+
index$1.h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
157
|
+
index$1.h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
157
158
|
},
|
|
158
159
|
2: {
|
|
159
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountNumber) && {
|
|
160
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountNumber) && {
|
|
160
161
|
class: "error-input",
|
|
161
162
|
helpText: getValidationErrorMessage({
|
|
162
163
|
type: (_j = (_h = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _h === void 0 ? void 0 : _h.bankAccountNumber) === null || _j === void 0 ? void 0 : _j.type,
|
|
@@ -165,7 +166,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
165
166
|
})))),
|
|
166
167
|
},
|
|
167
168
|
3: {
|
|
168
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.bankAccountNumber) && {
|
|
169
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.bankAccountNumber) && {
|
|
169
170
|
class: "error-input",
|
|
170
171
|
helpText: getValidationErrorMessage({
|
|
171
172
|
type: (_m = (_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.bankAccountNumber) === null || _m === void 0 ? void 0 : _m.type,
|
|
@@ -174,7 +175,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
174
175
|
})))),
|
|
175
176
|
},
|
|
176
177
|
4: {
|
|
177
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_o = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _o === void 0 ? void 0 : _o.swiftCode) && {
|
|
178
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_o = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _o === void 0 ? void 0 : _o.swiftCode) && {
|
|
178
179
|
class: "error-input",
|
|
179
180
|
helpText: getValidationErrorMessage({
|
|
180
181
|
type: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.swiftCode) === null || _q === void 0 ? void 0 : _q.type,
|
|
@@ -183,7 +184,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
183
184
|
})))),
|
|
184
185
|
},
|
|
185
186
|
5: {
|
|
186
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
187
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
187
188
|
id: "routingCodeText",
|
|
188
189
|
defaultMessage: props.text.routingCodeLabel,
|
|
189
190
|
}, {
|
|
@@ -202,7 +203,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
202
203
|
})))),
|
|
203
204
|
},
|
|
204
205
|
6: {
|
|
205
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankName) && {
|
|
206
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankName) && {
|
|
206
207
|
class: "error-input",
|
|
207
208
|
helpText: getValidationErrorMessage({
|
|
208
209
|
type: (_w = (_v = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _v === void 0 ? void 0 : _v.bankName) === null || _w === void 0 ? void 0 : _w.type,
|
|
@@ -212,17 +213,17 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
212
213
|
},
|
|
213
214
|
7: {
|
|
214
215
|
input: [
|
|
215
|
-
index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.beneficiaryClassification) && {
|
|
216
|
+
index$1.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.beneficiaryClassification) && {
|
|
216
217
|
class: "error-input",
|
|
217
218
|
helpText: getValidationErrorMessage({
|
|
218
219
|
type: (_z = (_y = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _y === void 0 ? void 0 : _y.beneficiaryClassification) === null || _z === void 0 ? void 0 : _z.type,
|
|
219
220
|
label: props.text.classificationLabel,
|
|
220
221
|
}),
|
|
221
222
|
})),
|
|
222
|
-
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
223
|
-
index.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
224
|
-
index.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel)),
|
|
225
|
-
index.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
223
|
+
index$1.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
224
|
+
index$1.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
225
|
+
index$1.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel)),
|
|
226
|
+
index$1.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
226
227
|
id: "fxWireText",
|
|
227
228
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
228
229
|
}, {
|
|
@@ -237,18 +238,18 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
237
238
|
],
|
|
238
239
|
},
|
|
239
240
|
8: {
|
|
240
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_3 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _3 === void 0 ? void 0 : _3.beneficiaryClassification) && {
|
|
241
|
+
input: (index$1.h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_3 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _3 === void 0 ? void 0 : _3.beneficiaryClassification) && {
|
|
241
242
|
class: "error-input",
|
|
242
243
|
helpText: getValidationErrorMessage({
|
|
243
244
|
type: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.beneficiaryClassification) === null || _5 === void 0 ? void 0 : _5.type,
|
|
244
245
|
label: props.text.classificationCPFLabel,
|
|
245
246
|
}),
|
|
246
247
|
})),
|
|
247
|
-
index.h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
248
|
-
index.h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
248
|
+
index$1.h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
249
|
+
index$1.h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
249
250
|
},
|
|
250
251
|
9: {
|
|
251
|
-
input: (index.h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.patronymicName) && {
|
|
252
|
+
input: (index$1.h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.patronymicName) && {
|
|
252
253
|
class: "error-input",
|
|
253
254
|
helpText: getValidationErrorMessage({
|
|
254
255
|
type: (_8 = (_7 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _7 === void 0 ? void 0 : _7.patronymicName) === null || _8 === void 0 ? void 0 : _8.type,
|
|
@@ -257,7 +258,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
257
258
|
})))),
|
|
258
259
|
},
|
|
259
260
|
10: {
|
|
260
|
-
input: (index.h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.voCode) && {
|
|
261
|
+
input: (index$1.h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.voCode) && {
|
|
261
262
|
class: "error-input",
|
|
262
263
|
helpText: getValidationErrorMessage({
|
|
263
264
|
type: (_11 = (_10 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _10 === void 0 ? void 0 : _10.voCode) === null || _11 === void 0 ? void 0 : _11.type,
|
|
@@ -266,7 +267,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
266
267
|
})))),
|
|
267
268
|
},
|
|
268
269
|
11: {
|
|
269
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.agencyCode) && {
|
|
270
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.agencyCode) && {
|
|
270
271
|
class: "error-input",
|
|
271
272
|
helpText: getValidationErrorMessage({
|
|
272
273
|
type: (_14 = (_13 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _13 === void 0 ? void 0 : _13.agencyCode) === null || _14 === void 0 ? void 0 : _14.type,
|
|
@@ -276,28 +277,28 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
276
277
|
},
|
|
277
278
|
12: {
|
|
278
279
|
input: [
|
|
279
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_15 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _15 === void 0 ? void 0 : _15.bankAddress) && {
|
|
280
|
+
index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_15 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _15 === void 0 ? void 0 : _15.bankAddress) && {
|
|
280
281
|
class: "error-input",
|
|
281
282
|
helpText: getValidationErrorMessage({
|
|
282
283
|
type: (_17 = (_16 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _16 === void 0 ? void 0 : _16.bankAddress) === null || _17 === void 0 ? void 0 : _17.type,
|
|
283
284
|
label: props.text.bankAddressLabel,
|
|
284
285
|
}),
|
|
285
286
|
}))),
|
|
286
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_18 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _18 === void 0 ? void 0 : _18.bankCity) && {
|
|
287
|
+
index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_18 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _18 === void 0 ? void 0 : _18.bankCity) && {
|
|
287
288
|
class: "error-input",
|
|
288
289
|
helpText: getValidationErrorMessage({
|
|
289
290
|
type: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.bankCity) === null || _20 === void 0 ? void 0 : _20.type,
|
|
290
291
|
label: props.text.bankCityLabel,
|
|
291
292
|
}),
|
|
292
293
|
}))),
|
|
293
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.bankState) && {
|
|
294
|
+
index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.bankState) && {
|
|
294
295
|
class: "error-input",
|
|
295
296
|
helpText: getValidationErrorMessage({
|
|
296
297
|
type: (_23 = (_22 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _22 === void 0 ? void 0 : _22.bankState) === null || _23 === void 0 ? void 0 : _23.type,
|
|
297
298
|
label: props.text.bankStateLabel,
|
|
298
299
|
}),
|
|
299
300
|
}))),
|
|
300
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.bankPostalCode) && {
|
|
301
|
+
index$1.h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.bankPostalCode) && {
|
|
301
302
|
class: "error-input",
|
|
302
303
|
helpText: getValidationErrorMessage({
|
|
303
304
|
type: (_26 = (_25 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _25 === void 0 ? void 0 : _25.bankPostalCode) === null || _26 === void 0 ? void 0 : _26.type,
|
|
@@ -307,7 +308,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
307
308
|
],
|
|
308
309
|
},
|
|
309
310
|
13: {
|
|
310
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.branchCode) && {
|
|
311
|
+
input: (index$1.h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.branchCode) && {
|
|
311
312
|
class: "error-input",
|
|
312
313
|
helpText: getValidationErrorMessage({
|
|
313
314
|
type: (_29 = (_28 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _28 === void 0 ? void 0 : _28.branchCode) === null || _29 === void 0 ? void 0 : _29.type,
|
|
@@ -316,16 +317,16 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
316
317
|
})))),
|
|
317
318
|
},
|
|
318
319
|
14: {
|
|
319
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_30 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _30 === void 0 ? void 0 : _30.beneficiaryClassification) && {
|
|
320
|
+
input: (index$1.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_30 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _30 === void 0 ? void 0 : _30.beneficiaryClassification) && {
|
|
320
321
|
class: "error-input",
|
|
321
322
|
helpText: getValidationErrorMessage({
|
|
322
323
|
type: (_32 = (_31 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _31 === void 0 ? void 0 : _31.beneficiaryClassification) === null || _32 === void 0 ? void 0 : _32.type,
|
|
323
324
|
label: props.text.classificationLabel,
|
|
324
325
|
}),
|
|
325
326
|
})),
|
|
326
|
-
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
327
|
-
index.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
328
|
-
index.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel))),
|
|
327
|
+
index$1.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
328
|
+
index$1.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
329
|
+
index$1.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel))),
|
|
329
330
|
},
|
|
330
331
|
};
|
|
331
332
|
}
|
|
@@ -823,80 +824,80 @@ const BankingInfoFormView = (props) => {
|
|
|
823
824
|
gap: "8px",
|
|
824
825
|
};
|
|
825
826
|
if (checkedValue === undefined) {
|
|
826
|
-
return (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column", gap: "16px" } },
|
|
827
|
-
index.h("div", { class: classes.SmallSkeleton }),
|
|
828
|
-
index.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
829
|
-
index.h("div", { class: classes.CheckboxSkeleton }),
|
|
830
|
-
index.h("div", { class: classes.SmallSkeleton })),
|
|
831
|
-
index.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
832
|
-
index.h("div", { class: classes.CheckboxSkeleton }),
|
|
833
|
-
index.h("div", { class: classes.SmallSkeleton }))));
|
|
827
|
+
return (index$1.h("div", { style: { ...flexBoxStyle, flexDirection: "column", gap: "16px" } },
|
|
828
|
+
index$1.h("div", { class: classes.SmallSkeleton }),
|
|
829
|
+
index$1.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
830
|
+
index$1.h("div", { class: classes.CheckboxSkeleton }),
|
|
831
|
+
index$1.h("div", { class: classes.SmallSkeleton })),
|
|
832
|
+
index$1.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
833
|
+
index$1.h("div", { class: classes.CheckboxSkeleton }),
|
|
834
|
+
index$1.h("div", { class: classes.SmallSkeleton }))));
|
|
834
835
|
}
|
|
835
836
|
if (checkedValue === "toPayPalAccount") {
|
|
836
|
-
return (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column" } },
|
|
837
|
-
index.h("div", { class: classes.SmallSkeleton }),
|
|
838
|
-
index.h("div", { class: classes.LargeSkeleton })));
|
|
837
|
+
return (index$1.h("div", { style: { ...flexBoxStyle, flexDirection: "column" } },
|
|
838
|
+
index$1.h("div", { class: classes.SmallSkeleton }),
|
|
839
|
+
index$1.h("div", { class: classes.LargeSkeleton })));
|
|
839
840
|
}
|
|
840
|
-
const skeletons = inputNumArray.map((_, idx) => (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column" }, key: idx },
|
|
841
|
-
index.h("div", { class: classes.SmallSkeleton }),
|
|
842
|
-
index.h("div", { class: classes.LargeSkeleton }))));
|
|
841
|
+
const skeletons = inputNumArray.map((_, idx) => (index$1.h("div", { style: { ...flexBoxStyle, flexDirection: "column" }, key: idx },
|
|
842
|
+
index$1.h("div", { class: classes.SmallSkeleton }),
|
|
843
|
+
index$1.h("div", { class: classes.LargeSkeleton }))));
|
|
843
844
|
return skeletons;
|
|
844
845
|
};
|
|
845
|
-
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
846
|
-
index.h("style", { type: "text/css" },
|
|
846
|
+
return (index$1.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
847
|
+
index$1.h("style", { type: "text/css" },
|
|
847
848
|
styleString,
|
|
848
849
|
vanillaStyle),
|
|
849
|
-
index.h("div", { class: classes.TextContainer },
|
|
850
|
-
index.h("div", null,
|
|
851
|
-
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
850
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
851
|
+
index$1.h("div", null,
|
|
852
|
+
!states.hideSteps && (index$1.h("p", null, global.intl.formatMessage({
|
|
852
853
|
id: "formStep",
|
|
853
854
|
defaultMessage: text.formStep,
|
|
854
855
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
855
|
-
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
856
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
857
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
858
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
859
|
-
index.h("strong", null, text.error.generalTitle),
|
|
860
|
-
index.h("br", null),
|
|
856
|
+
index$1.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
857
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
858
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
859
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
860
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
861
|
+
index$1.h("br", null),
|
|
861
862
|
text.error.generalDescription)),
|
|
862
|
-
states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
863
|
-
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
864
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
865
|
-
index.h("br", null),
|
|
863
|
+
states.isPartner && !states.hideSteps && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
864
|
+
index$1.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
865
|
+
index$1.h("strong", null, text.isPartnerAlertHeader),
|
|
866
|
+
index$1.h("br", null),
|
|
866
867
|
text.isPartnerAlertDescription)),
|
|
867
|
-
index.h("div", null,
|
|
868
|
-
index.h("h4", null, text.paymentMethod),
|
|
869
|
-
index.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
870
|
-
index.h("div", null,
|
|
871
|
-
index.h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (index.h("div", { class: classes.RadioContainer },
|
|
872
|
-
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
|
|
873
|
-
formState.paymentMethodChecked === "toBankAccount" && (index.h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
|
|
868
|
+
index$1.h("div", null,
|
|
869
|
+
index$1.h("h4", null, text.paymentMethod),
|
|
870
|
+
index$1.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
871
|
+
index$1.h("div", null,
|
|
872
|
+
index$1.h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (index$1.h("div", { class: classes.RadioContainer },
|
|
873
|
+
states.hasPayPal && (index$1.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
|
|
874
|
+
formState.paymentMethodChecked === "toBankAccount" && (index$1.h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
|
|
874
875
|
? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
|
|
875
876
|
: [
|
|
876
877
|
slots.countryInputSlot,
|
|
877
878
|
slots.paymentMethodSlot,
|
|
878
879
|
slots.formInputsSlot,
|
|
879
880
|
])),
|
|
880
|
-
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, global.intl.formatMessage({
|
|
881
|
+
states.hasPayPal && (index$1.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, global.intl.formatMessage({
|
|
881
882
|
id: "paypal-input-label",
|
|
882
883
|
defaultMessage: text.toPayPalAccount,
|
|
883
884
|
}, { feeCap: states.feeCap }))),
|
|
884
|
-
formState.paymentMethodChecked === "toPayPalAccount" && (index.h("div", { class: classes.InputContainer, style: states.hidePayPal ? { display: "none" } : {} }, states.loading
|
|
885
|
+
formState.paymentMethodChecked === "toPayPalAccount" && (index$1.h("div", { class: classes.InputContainer, style: states.hidePayPal ? { display: "none" } : {} }, states.loading
|
|
885
886
|
? getLoadingSkeleton("toPayPalAccount")
|
|
886
887
|
: slots.paypalInputSlot)),
|
|
887
|
-
index.h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
|
|
888
|
-
index.h("h4", null, text.paymentSchedule)),
|
|
889
|
-
index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
|
|
890
|
-
formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (index.h("div", { class: classes.InputContainer, style: states.hideBalanceThreshold ? { display: "none" } : {} }, states.loading
|
|
888
|
+
index$1.h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
|
|
889
|
+
index$1.h("h4", null, text.paymentSchedule)),
|
|
890
|
+
index$1.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
|
|
891
|
+
formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (index$1.h("div", { class: classes.InputContainer, style: states.hideBalanceThreshold ? { display: "none" } : {} }, states.loading
|
|
891
892
|
? getLoadingSkeleton("toPayPalAccount")
|
|
892
893
|
: slots.paymentThresholdSelectSlot)),
|
|
893
|
-
index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
|
|
894
|
-
formState.paymentScheduleChecked === "FIXED_DAY" && (index.h("div", { class: classes.InputContainer, style: states.hideFixedDay ? { display: "none" } : {} }, states.loading
|
|
894
|
+
index$1.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
|
|
895
|
+
formState.paymentScheduleChecked === "FIXED_DAY" && (index$1.h("div", { class: classes.InputContainer, style: states.hideFixedDay ? { display: "none" } : {} }, states.loading
|
|
895
896
|
? getLoadingSkeleton("toPayPalAccount")
|
|
896
897
|
: slots.paymentFixedDaySelectSlot))))),
|
|
897
|
-
index.h("div", { class: classes.BtnContainer },
|
|
898
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
899
|
-
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
898
|
+
index$1.h("div", { class: classes.BtnContainer },
|
|
899
|
+
index$1.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
900
|
+
!states.hideBackButton && (index$1.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
900
901
|
};
|
|
901
902
|
|
|
902
903
|
// Hardcoded in Impact backend
|
|
@@ -930,7 +931,7 @@ function getFormInputs({ bitset, formMap }) {
|
|
|
930
931
|
}, []);
|
|
931
932
|
return inputFields;
|
|
932
933
|
}
|
|
933
|
-
const SAVE_WITHDRAWAL_SETTINGS =
|
|
934
|
+
const SAVE_WITHDRAWAL_SETTINGS = index.dist.gql `
|
|
934
935
|
mutation setImpactPublisherWithdrawalSettings(
|
|
935
936
|
$setImpactPublisherWithdrawalSettingsInput: SetImpactPublisherWithdrawalSettingsInput!
|
|
936
937
|
) {
|
|
@@ -945,7 +946,7 @@ const SAVE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
|
945
946
|
}
|
|
946
947
|
}
|
|
947
948
|
`;
|
|
948
|
-
const UPDATE_WITHDRAWAL_SETTINGS =
|
|
949
|
+
const UPDATE_WITHDRAWAL_SETTINGS = index.dist.gql `
|
|
949
950
|
mutation updateImpactPublisherWithdrawalSettings(
|
|
950
951
|
$updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
|
|
951
952
|
) {
|
|
@@ -1247,7 +1248,7 @@ function useBankingInfoForm(props) {
|
|
|
1247
1248
|
|
|
1248
1249
|
const BankingInfoForm = class {
|
|
1249
1250
|
constructor(hostRef) {
|
|
1250
|
-
index.registerInstance(this, hostRef);
|
|
1251
|
+
index$1.registerInstance(this, hostRef);
|
|
1251
1252
|
this.ignored = true;
|
|
1252
1253
|
/**
|
|
1253
1254
|
* @uiName Setup progress
|
|
@@ -1488,7 +1489,7 @@ const BankingInfoForm = class {
|
|
|
1488
1489
|
* @uiWidget textArea
|
|
1489
1490
|
*/
|
|
1490
1491
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
|
|
1491
|
-
stencilHooks_module.h
|
|
1492
|
+
stencilHooks_module.h(this);
|
|
1492
1493
|
}
|
|
1493
1494
|
disconnectedCallback() { }
|
|
1494
1495
|
getTextProps() {
|
|
@@ -1545,42 +1546,42 @@ const BankingInfoForm = class {
|
|
|
1545
1546
|
},
|
|
1546
1547
|
};
|
|
1547
1548
|
if (props.states.isPartner && props.states.showVerification) {
|
|
1548
|
-
return index.h("sqm-code-verification", null);
|
|
1549
|
+
return index$1.h("sqm-code-verification", null);
|
|
1549
1550
|
}
|
|
1550
|
-
return (index.h(index.Host, null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1551
|
+
return (index$1.h(index$1.Host, null, index$1.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1551
1552
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1552
|
-
countryInputSlot: (index.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1553
|
+
countryInputSlot: (index$1.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1553
1554
|
class: "error-input",
|
|
1554
1555
|
helpText: getValidationErrorMessage({
|
|
1555
1556
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.bankCountry) === null || _c === void 0 ? void 0 : _c.type,
|
|
1556
1557
|
label: props.text.bankLocationLabel,
|
|
1557
1558
|
}),
|
|
1558
|
-
})), index.h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1559
|
+
})), index$1.h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1559
1560
|
// Stop shoelace intercepting key presses
|
|
1560
1561
|
e.stopPropagation();
|
|
1561
1562
|
}, "onSl-input": (e) => {
|
|
1562
1563
|
props.callbacks.setCountrySearch(e.target.value);
|
|
1563
1564
|
} }), (_d = props.states.countries) === null || _d === void 0 ? void 0 :
|
|
1564
1565
|
_d.map((country) => {
|
|
1565
|
-
return (index.h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1566
|
+
return (index$1.h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1566
1567
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1567
|
-
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1568
|
-
paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1569
|
-
paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1568
|
+
_f.map((c) => (index$1.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1569
|
+
paymentMethodSlot: (index$1.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1570
|
+
paymentThresholdSelectSlot: (index$1.h("sl-select", Object.assign({ required: true, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1570
1571
|
class: "error-input",
|
|
1571
1572
|
helpText: getValidationErrorMessage({
|
|
1572
1573
|
type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
|
|
1573
1574
|
label: props.text.paymentThresholdSelectLabel,
|
|
1574
1575
|
}),
|
|
1575
|
-
})), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1576
|
-
paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1576
|
+
})), props.states.thresholds.map((t) => (index$1.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1577
|
+
paymentFixedDaySelectSlot: (index$1.h("sl-select", Object.assign({ required: true, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1577
1578
|
class: "error-input",
|
|
1578
1579
|
helpText: getValidationErrorMessage({
|
|
1579
1580
|
type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
|
|
1580
1581
|
label: props.text.paymentDaySelectLabel,
|
|
1581
1582
|
}),
|
|
1582
|
-
})), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1583
|
-
paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1583
|
+
})), index$1.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index$1.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1584
|
+
paypalInputSlot: (index$1.h("sl-input", Object.assign({ required: true, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1584
1585
|
class: "error-input",
|
|
1585
1586
|
helpText: getValidationErrorMessage({
|
|
1586
1587
|
type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
|
|
@@ -1687,7 +1688,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1687
1688
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1688
1689
|
}
|
|
1689
1690
|
|
|
1690
|
-
const GET_TAX_DOCUMENT =
|
|
1691
|
+
const GET_TAX_DOCUMENT = index.dist.gql `
|
|
1691
1692
|
mutation createImpactPublisherTaxDocument(
|
|
1692
1693
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
1693
1694
|
) {
|
|
@@ -1698,7 +1699,7 @@ const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
|
1698
1699
|
}
|
|
1699
1700
|
}
|
|
1700
1701
|
`;
|
|
1701
|
-
const COMPLETE_TAX_DOCUMENT =
|
|
1702
|
+
const COMPLETE_TAX_DOCUMENT = index.dist.gql `
|
|
1702
1703
|
mutation completeImpactPublisherTaxDocument($vars: UserIdInput!) {
|
|
1703
1704
|
completeImpactPublisherTaxDocument(user: $vars) {
|
|
1704
1705
|
success
|
|
@@ -1874,39 +1875,39 @@ const styleString$1 = sheet$1.toString();
|
|
|
1874
1875
|
const DocusignExpiredView = (props) => {
|
|
1875
1876
|
const { classes } = sheet$1;
|
|
1876
1877
|
const { text } = props;
|
|
1877
|
-
return (index.h("div", null,
|
|
1878
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1879
|
-
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1880
|
-
index.h("sl-icon", { style: {
|
|
1878
|
+
return (index$1.h("div", null,
|
|
1879
|
+
index$1.h("style", { type: "text/css" }, styleString$1),
|
|
1880
|
+
index$1.h("div", { class: classes.DocusignStatusContainer },
|
|
1881
|
+
index$1.h("sl-icon", { style: {
|
|
1881
1882
|
width: "50px",
|
|
1882
1883
|
height: "50px",
|
|
1883
1884
|
color: "var(--sl-color-neutral-500)",
|
|
1884
1885
|
}, name: "clock" }),
|
|
1885
|
-
index.h("div", { class: classes.MessageContainer },
|
|
1886
|
-
index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1887
|
-
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1886
|
+
index$1.h("div", { class: classes.MessageContainer },
|
|
1887
|
+
index$1.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1888
|
+
index$1.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1888
1889
|
};
|
|
1889
1890
|
const DocusignErrorView = (props) => {
|
|
1890
1891
|
const { classes } = sheet$1;
|
|
1891
1892
|
const { text } = props;
|
|
1892
|
-
return (index.h("div", null,
|
|
1893
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1894
|
-
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1895
|
-
index.h("sl-icon", { style: {
|
|
1893
|
+
return (index$1.h("div", null,
|
|
1894
|
+
index$1.h("style", { type: "text/css" }, styleString$1),
|
|
1895
|
+
index$1.h("div", { class: classes.DocusignStatusContainer },
|
|
1896
|
+
index$1.h("sl-icon", { style: {
|
|
1896
1897
|
width: "50px",
|
|
1897
1898
|
height: "50px",
|
|
1898
1899
|
color: "var(--sl-color-gray-500)",
|
|
1899
1900
|
}, name: "exclamation-octagon" }),
|
|
1900
|
-
index.h("div", { class: classes.MessageContainer },
|
|
1901
|
-
index.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1902
|
-
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1901
|
+
index$1.h("div", { class: classes.MessageContainer },
|
|
1902
|
+
index$1.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1903
|
+
index$1.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1903
1904
|
};
|
|
1904
1905
|
const DocusignLoadingView = () => {
|
|
1905
1906
|
const { classes } = sheet$1;
|
|
1906
|
-
return (index.h("div", null,
|
|
1907
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1908
|
-
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1909
|
-
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1907
|
+
return (index$1.h("div", null,
|
|
1908
|
+
index$1.h("style", { type: "text/css" }, styleString$1),
|
|
1909
|
+
index$1.h("div", { class: classes.DocusignStatusContainer },
|
|
1910
|
+
index$1.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1910
1911
|
};
|
|
1911
1912
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1912
1913
|
const { classes } = sheet$1;
|
|
@@ -1935,17 +1936,17 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1935
1936
|
};
|
|
1936
1937
|
}, [iFrameHeight]);
|
|
1937
1938
|
if (states.urlLoading)
|
|
1938
|
-
return index.h(DocusignLoadingView, null);
|
|
1939
|
+
return index$1.h(DocusignLoadingView, null);
|
|
1939
1940
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
1940
|
-
return index.h(DocusignErrorView, { text: text });
|
|
1941
|
+
return index$1.h(DocusignErrorView, { text: text });
|
|
1941
1942
|
}
|
|
1942
1943
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1943
|
-
return index.h(DocusignExpiredView, { text: text });
|
|
1944
|
+
return index$1.h(DocusignExpiredView, { text: text });
|
|
1944
1945
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1945
|
-
return (index.h("div", { style: { height: iFrameHeight } },
|
|
1946
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1947
|
-
index.h("div", { class: classes.IFrameContainer },
|
|
1948
|
-
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1946
|
+
return (index$1.h("div", { style: { height: iFrameHeight } },
|
|
1947
|
+
index$1.h("style", { type: "text/css" }, styleString$1),
|
|
1948
|
+
index$1.h("div", { class: classes.IFrameContainer },
|
|
1949
|
+
index$1.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1949
1950
|
};
|
|
1950
1951
|
|
|
1951
1952
|
const style$2 = {
|
|
@@ -2089,33 +2090,33 @@ const DocusignFormView = (props) => {
|
|
|
2089
2090
|
var _a;
|
|
2090
2091
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2091
2092
|
const { classes } = sheet$2;
|
|
2092
|
-
return (index.h("div", { class: classes.Container },
|
|
2093
|
-
index.h("style", { type: "text/css" },
|
|
2093
|
+
return (index$1.h("div", { class: classes.Container },
|
|
2094
|
+
index$1.h("style", { type: "text/css" },
|
|
2094
2095
|
styleString$2,
|
|
2095
2096
|
vanillaStyle$1),
|
|
2096
|
-
index.h("div", { class: classes.TextContainer },
|
|
2097
|
-
index.h("div", null,
|
|
2098
|
-
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2097
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
2098
|
+
index$1.h("div", null,
|
|
2099
|
+
!states.hideSteps && (index$1.h("p", null, global.intl.formatMessage({
|
|
2099
2100
|
id: "formStep",
|
|
2100
2101
|
defaultMessage: text.formStep,
|
|
2101
2102
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
2102
|
-
index.h("h3", null, text.taxForm),
|
|
2103
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2104
|
-
states.loadingError && (index.h("div", null,
|
|
2105
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2106
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2107
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2108
|
-
index.h("br", null),
|
|
2103
|
+
index$1.h("h3", null, text.taxForm),
|
|
2104
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2105
|
+
states.loadingError && (index$1.h("div", null,
|
|
2106
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2107
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2108
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2109
|
+
index$1.h("br", null),
|
|
2109
2110
|
text.error.loadingErrorAlertDescription))),
|
|
2110
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2111
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2112
|
-
index.h("strong", null, text.error.generalTitle),
|
|
2113
|
-
index.h("br", null),
|
|
2111
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2112
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2113
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
2114
|
+
index$1.h("br", null),
|
|
2114
2115
|
text.error.generalDescription)),
|
|
2115
|
-
index.h("div", null,
|
|
2116
|
-
index.h("div", null,
|
|
2117
|
-
index.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
2118
|
-
index.h("p", null, global.intl.formatMessage({
|
|
2116
|
+
index$1.h("div", null,
|
|
2117
|
+
index$1.h("div", null,
|
|
2118
|
+
index$1.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
2119
|
+
index$1.h("p", null, global.intl.formatMessage({
|
|
2119
2120
|
id: "tax-form-description",
|
|
2120
2121
|
defaultMessage: states.documentType === "W9"
|
|
2121
2122
|
? text.taxFormDescription
|
|
@@ -2123,13 +2124,13 @@ const DocusignFormView = (props) => {
|
|
|
2123
2124
|
? text.taxFormDescriptionIndividualParticipant
|
|
2124
2125
|
: text.taxFormDescriptionBusinessEntity,
|
|
2125
2126
|
}, { documentType: documentTypeString }))),
|
|
2126
|
-
index.h("div", null, slots.docusignIframeSlot),
|
|
2127
|
-
index.h("div", { class: classes.BtnContainer }, states.showExitButton && (index.h("sl-button", { type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onExit }, text.exitButton))))));
|
|
2127
|
+
index$1.h("div", null, slots.docusignIframeSlot),
|
|
2128
|
+
index$1.h("div", { class: classes.BtnContainer }, states.showExitButton && (index$1.h("sl-button", { type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onExit }, text.exitButton))))));
|
|
2128
2129
|
};
|
|
2129
2130
|
|
|
2130
2131
|
const DocusignForm = class {
|
|
2131
2132
|
constructor(hostRef) {
|
|
2132
|
-
index.registerInstance(this, hostRef);
|
|
2133
|
+
index$1.registerInstance(this, hostRef);
|
|
2133
2134
|
this.ignored = true;
|
|
2134
2135
|
/**
|
|
2135
2136
|
* @uiName Setup progress
|
|
@@ -2232,7 +2233,7 @@ const DocusignForm = class {
|
|
|
2232
2233
|
* @uiName Exit button text
|
|
2233
2234
|
*/
|
|
2234
2235
|
this.exitButton = "Exit";
|
|
2235
|
-
stencilHooks_module.h
|
|
2236
|
+
stencilHooks_module.h(this);
|
|
2236
2237
|
}
|
|
2237
2238
|
disconnectedCallback() { }
|
|
2238
2239
|
getTextProps() {
|
|
@@ -2251,7 +2252,7 @@ const DocusignForm = class {
|
|
|
2251
2252
|
render() {
|
|
2252
2253
|
const _isDemo = index_module.isDemo();
|
|
2253
2254
|
const props = _isDemo ? useDocusignFormDemo(this) : useDocusignForm(this);
|
|
2254
|
-
const docusignIframeSlot = (index.h(DocusignIframe, { states: {
|
|
2255
|
+
const docusignIframeSlot = (index$1.h(DocusignIframe, { states: {
|
|
2255
2256
|
status: props.states.docusignStatus,
|
|
2256
2257
|
loading: props.states.loading,
|
|
2257
2258
|
urlLoading: props.states.urlLoading,
|
|
@@ -2260,13 +2261,13 @@ const DocusignForm = class {
|
|
|
2260
2261
|
}, callbacks: {
|
|
2261
2262
|
completeDocument: props.callbacks.completeDocument,
|
|
2262
2263
|
}, text: props.text }));
|
|
2263
|
-
return (index.h(index.Host, null, index.h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
2264
|
+
return (index$1.h(index$1.Host, null, index$1.h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
2264
2265
|
docusignIframeSlot: _isDemo
|
|
2265
2266
|
? DemoDocusignIframe({ callbacks: props.callbacks })
|
|
2266
2267
|
: docusignIframeSlot,
|
|
2267
2268
|
} })));
|
|
2268
2269
|
}
|
|
2269
|
-
get el() { return index.getElement(this); }
|
|
2270
|
+
get el() { return index$1.getElement(this); }
|
|
2270
2271
|
};
|
|
2271
2272
|
function useDocusignFormDemo(props) {
|
|
2272
2273
|
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
@@ -2303,19 +2304,19 @@ function useDocusignFormDemo(props) {
|
|
|
2303
2304
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2304
2305
|
}
|
|
2305
2306
|
const DemoDocusignIframe = ({ callbacks }) => {
|
|
2306
|
-
return (index.h("div", { style: {
|
|
2307
|
+
return (index$1.h("div", { style: {
|
|
2307
2308
|
width: "100%",
|
|
2308
2309
|
height: "600px",
|
|
2309
2310
|
background: "#fafafa",
|
|
2310
2311
|
display: "flex",
|
|
2311
2312
|
justifyContent: "center",
|
|
2312
2313
|
alignItems: "center",
|
|
2313
|
-
} }, index.h("div", { style: {
|
|
2314
|
+
} }, index$1.h("div", { style: {
|
|
2314
2315
|
display: "flex",
|
|
2315
2316
|
flexDirection: "column",
|
|
2316
2317
|
gap: "12px",
|
|
2317
2318
|
alignItems: "center",
|
|
2318
|
-
} }, index.h("span", null, "Placeholder for docusign iframe"), index.h("div", { style: { display: "flex", gap: "8px" } }, index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2319
|
+
} }, index$1.h("span", null, "Placeholder for docusign iframe"), index$1.h("div", { style: { display: "flex", gap: "8px" } }, index$1.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index$1.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2319
2320
|
};
|
|
2320
2321
|
|
|
2321
2322
|
const style$3 = {
|
|
@@ -2448,60 +2449,60 @@ const IndirectTaxFormView = (props) => {
|
|
|
2448
2449
|
var _a;
|
|
2449
2450
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2450
2451
|
const { classes } = sheet$3;
|
|
2451
|
-
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2452
|
-
index.h("style", { type: "text/css" },
|
|
2452
|
+
return (index$1.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2453
|
+
index$1.h("style", { type: "text/css" },
|
|
2453
2454
|
styleString$3,
|
|
2454
2455
|
vanillaStyle$2),
|
|
2455
|
-
index.h("div", { class: classes.TextContainer },
|
|
2456
|
-
index.h("div", null,
|
|
2457
|
-
!states.hideSteps && (index.h("p", null,
|
|
2456
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
2457
|
+
index$1.h("div", null,
|
|
2458
|
+
!states.hideSteps && (index$1.h("p", null,
|
|
2458
2459
|
" ",
|
|
2459
2460
|
global.intl.formatMessage({
|
|
2460
2461
|
id: "formStep",
|
|
2461
2462
|
defaultMessage: text.formStep,
|
|
2462
2463
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
2463
|
-
index.h("h3", null, text.indirectTax),
|
|
2464
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2465
|
-
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2466
|
-
states.loadingError && (index.h("div", null,
|
|
2467
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2468
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2469
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2470
|
-
index.h("br", null),
|
|
2464
|
+
index$1.h("h3", null, text.indirectTax),
|
|
2465
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2466
|
+
index$1.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2467
|
+
states.loadingError && (index$1.h("div", null,
|
|
2468
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2469
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2470
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2471
|
+
index$1.h("br", null),
|
|
2471
2472
|
text.error.loadingErrorAlertDescription))),
|
|
2472
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
|
|
2473
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2474
|
-
index.h("strong", null, text.error.generalTitle),
|
|
2475
|
-
index.h("br", null),
|
|
2473
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
|
|
2474
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2475
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
2476
|
+
index$1.h("br", null),
|
|
2476
2477
|
text.error.generalDescription)),
|
|
2477
|
-
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2478
|
-
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2479
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2480
|
-
index.h("br", null),
|
|
2478
|
+
states.isPartner && (index$1.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2479
|
+
index$1.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2480
|
+
index$1.h("strong", null, text.isPartnerAlertHeader),
|
|
2481
|
+
index$1.h("br", null),
|
|
2481
2482
|
text.isPartnerAlertDescription)),
|
|
2482
|
-
index.h("div", null,
|
|
2483
|
-
index.h("h4", null, text.indirectTaxDetails))),
|
|
2484
|
-
states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", null,
|
|
2485
|
-
index.h("div", { class: classes.RadioContainer },
|
|
2486
|
-
index.h("div", { class: classes.InnerRadioContainer },
|
|
2487
|
-
index.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled || states.isPartner },
|
|
2488
|
-
index.h("div", { class: classes.RadioContent },
|
|
2483
|
+
index$1.h("div", null,
|
|
2484
|
+
index$1.h("h4", null, text.indirectTaxDetails))),
|
|
2485
|
+
states.loading ? (index$1.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index$1.h("div", null,
|
|
2486
|
+
index$1.h("div", { class: classes.RadioContainer },
|
|
2487
|
+
index$1.h("div", { class: classes.InnerRadioContainer },
|
|
2488
|
+
index$1.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled || states.isPartner },
|
|
2489
|
+
index$1.h("div", { class: classes.RadioContent },
|
|
2489
2490
|
text.notRegistered,
|
|
2490
|
-
index.h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))),
|
|
2491
|
-
index.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled || states.isPartner },
|
|
2492
|
-
index.h("div", { class: classes.RadioContent },
|
|
2491
|
+
index$1.h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))),
|
|
2492
|
+
index$1.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled || states.isPartner },
|
|
2493
|
+
index$1.h("div", { class: classes.RadioContent },
|
|
2493
2494
|
text.otherRegion,
|
|
2494
|
-
index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2495
|
+
index$1.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2495
2496
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2496
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2497
|
-
index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2497
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2498
|
+
index$1.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2498
2499
|
text.cannotChangeInfoAlert),
|
|
2499
|
-
index.h("div", { class: classes.BtnContainer },
|
|
2500
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2501
|
-
index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2500
|
+
index$1.h("div", { class: classes.BtnContainer },
|
|
2501
|
+
index$1.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2502
|
+
index$1.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2502
2503
|
};
|
|
2503
2504
|
|
|
2504
|
-
const CONNECT_PARTNER =
|
|
2505
|
+
const CONNECT_PARTNER = index.dist.gql `
|
|
2505
2506
|
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
2506
2507
|
createImpactConnection(impactConnectionInput: $vars) {
|
|
2507
2508
|
success
|
|
@@ -2737,7 +2738,7 @@ function useIndirectTaxForm(props) {
|
|
|
2737
2738
|
|
|
2738
2739
|
const IndirectTaxForm = class {
|
|
2739
2740
|
constructor(hostRef) {
|
|
2740
|
-
index.registerInstance(this, hostRef);
|
|
2741
|
+
index$1.registerInstance(this, hostRef);
|
|
2741
2742
|
/**
|
|
2742
2743
|
* @uiName Setup progress
|
|
2743
2744
|
*/
|
|
@@ -2883,7 +2884,7 @@ const IndirectTaxForm = class {
|
|
|
2883
2884
|
* @uiName Page description
|
|
2884
2885
|
*/
|
|
2885
2886
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2886
|
-
stencilHooks_module.h
|
|
2887
|
+
stencilHooks_module.h(this);
|
|
2887
2888
|
}
|
|
2888
2889
|
disconnectedCallback() { }
|
|
2889
2890
|
getTextProps() {
|
|
@@ -2918,7 +2919,7 @@ const IndirectTaxForm = class {
|
|
|
2918
2919
|
const props = index_module.isDemo()
|
|
2919
2920
|
? useDemoIndirectTaxForm(this)
|
|
2920
2921
|
: useIndirectTaxForm(this);
|
|
2921
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2922
|
+
const registeredInDifferentCountryDetailsSlot = (index$1.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2922
2923
|
hide: props.states.formState.checked !== "otherRegion",
|
|
2923
2924
|
disabled: props.states.disabled || props.states.isPartner,
|
|
2924
2925
|
formState: props.slotProps.formState,
|
|
@@ -2930,7 +2931,7 @@ const IndirectTaxForm = class {
|
|
|
2930
2931
|
provinces: props.data.provinces,
|
|
2931
2932
|
allCountries: props.data.allCountries,
|
|
2932
2933
|
}, text: props.text.slotText }));
|
|
2933
|
-
return (index.h(index.Host, null, index.h(IndirectTaxFormView, { callbacks: props.callbacks, states: props.states, refs: props.refs, text: props.text, slots: {
|
|
2934
|
+
return (index$1.h(index$1.Host, null, index$1.h(IndirectTaxFormView, { callbacks: props.callbacks, states: props.states, refs: props.refs, text: props.text, slots: {
|
|
2934
2935
|
registeredInDifferentCountryDetailsSlot,
|
|
2935
2936
|
} })));
|
|
2936
2937
|
}
|
|
@@ -3020,7 +3021,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3020
3021
|
|
|
3021
3022
|
const debug = stencilHooks_module.browser("sq:useInvoiceTable");
|
|
3022
3023
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
3023
|
-
const GET_INVOICES =
|
|
3024
|
+
const GET_INVOICES = index.dist.gql `
|
|
3024
3025
|
query getUserTaxInfo($limit: Int!, $offset: Int!) {
|
|
3025
3026
|
user: viewer {
|
|
3026
3027
|
... on User {
|
|
@@ -3081,7 +3082,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3081
3082
|
netEarnings: `${invoice.currency}${((_c = (invoice.totalAmount - invoice.totalVatAmount)) === null || _c === void 0 ? void 0 : _c.toFixed(2)) || "0.00"}`,
|
|
3082
3083
|
downloadUrl: invoice.downloadUrl,
|
|
3083
3084
|
};
|
|
3084
|
-
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(invoiceData, { locale }, index.h)));
|
|
3085
|
+
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(invoiceData, { locale }, index$1.h)));
|
|
3085
3086
|
const cells = (await Promise.all(cellPromise));
|
|
3086
3087
|
return cells;
|
|
3087
3088
|
});
|
|
@@ -3150,7 +3151,7 @@ async function tryMethod(c, callback) {
|
|
|
3150
3151
|
// renderLabel did not return a promise, so this method probably doesn't exist
|
|
3151
3152
|
// therefore, we IGNORE the label
|
|
3152
3153
|
debug("label promise failed", e);
|
|
3153
|
-
return index.h("span", null);
|
|
3154
|
+
return index$1.h("span", null);
|
|
3154
3155
|
}
|
|
3155
3156
|
try {
|
|
3156
3157
|
return await labelPromise;
|
|
@@ -3160,8 +3161,8 @@ async function tryMethod(c, callback) {
|
|
|
3160
3161
|
// This should not happen so we fail fast
|
|
3161
3162
|
debug("Error rendering label", e);
|
|
3162
3163
|
const userError = useReferralTable.generateUserError(e);
|
|
3163
|
-
return (index.h("details", null,
|
|
3164
|
-
index.h("summary", null, "Error"),
|
|
3164
|
+
return (index$1.h("details", null,
|
|
3165
|
+
index$1.h("summary", null, "Error"),
|
|
3165
3166
|
userError));
|
|
3166
3167
|
}
|
|
3167
3168
|
}
|
|
@@ -3188,7 +3189,7 @@ const getMockData = () => {
|
|
|
3188
3189
|
|
|
3189
3190
|
const InvoiceTable = class {
|
|
3190
3191
|
constructor(hostRef) {
|
|
3191
|
-
index.registerInstance(this, hostRef);
|
|
3192
|
+
index$1.registerInstance(this, hostRef);
|
|
3192
3193
|
/**
|
|
3193
3194
|
* Number of invoices displayed per page
|
|
3194
3195
|
*
|
|
@@ -3219,27 +3220,27 @@ const InvoiceTable = class {
|
|
|
3219
3220
|
this.emptyStateHeader = "View your invoice details";
|
|
3220
3221
|
/** @uiName Empty invoice table description */
|
|
3221
3222
|
this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
3222
|
-
stencilHooks_module.h
|
|
3223
|
+
stencilHooks_module.h(this);
|
|
3223
3224
|
}
|
|
3224
3225
|
disconnectedCallback() { }
|
|
3225
3226
|
render() {
|
|
3226
|
-
const empty = (index.h(EmptySlot, { emptyStateHeader: this.emptyStateHeader, emptyStateText: this.emptyStateText }));
|
|
3227
|
-
const loading = index.h(LoadingSlot, null);
|
|
3227
|
+
const empty = (index$1.h(EmptySlot, { emptyStateHeader: this.emptyStateHeader, emptyStateText: this.emptyStateText }));
|
|
3228
|
+
const loading = index$1.h(LoadingSlot, null);
|
|
3228
3229
|
const { states, data, callbacks, elements } = index_module.isDemo()
|
|
3229
3230
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3230
3231
|
: useInvoiceTable(this, empty, loading);
|
|
3231
3232
|
reRender.useRequestRerender([this.perPage]);
|
|
3232
|
-
return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3233
|
+
return (index$1.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index$1.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3233
3234
|
}
|
|
3234
3235
|
};
|
|
3235
3236
|
function EmptySlot(props) {
|
|
3236
|
-
return (index.h("slot", { name: "empty" }, index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1710363322/squatch-assets/invoice-table-empty.png", "empty-state-header": props.emptyStateHeader, "empty-state-text": props.emptyStateText })));
|
|
3237
|
+
return (index$1.h("slot", { name: "empty" }, index$1.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1710363322/squatch-assets/invoice-table-empty.png", "empty-state-header": props.emptyStateHeader, "empty-state-text": props.emptyStateText })));
|
|
3237
3238
|
}
|
|
3238
3239
|
function LoadingSlot() {
|
|
3239
|
-
return (index.h("slot", { name: "loading" }, index.h(LoadingRow, null), index.h(LoadingRow, null), index.h(LoadingRow, null), index.h(LoadingRow, null)));
|
|
3240
|
+
return (index$1.h("slot", { name: "loading" }, index$1.h(LoadingRow, null), index$1.h(LoadingRow, null), index$1.h(LoadingRow, null), index$1.h(LoadingRow, null)));
|
|
3240
3241
|
}
|
|
3241
3242
|
function LoadingRow() {
|
|
3242
|
-
return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
|
|
3243
|
+
return (index$1.h("sqm-table-row", null, index$1.h("sqm-table-cell", { colspan: 6 }, index$1.h("sl-skeleton", null))));
|
|
3243
3244
|
}
|
|
3244
3245
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
3245
3246
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
@@ -3333,9 +3334,9 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3333
3334
|
|
|
3334
3335
|
const InvoiceTableDataCell = class {
|
|
3335
3336
|
constructor(hostRef) {
|
|
3336
|
-
index.registerInstance(this, hostRef);
|
|
3337
|
+
index$1.registerInstance(this, hostRef);
|
|
3337
3338
|
this.ignored = true;
|
|
3338
|
-
stencilHooks_module.h
|
|
3339
|
+
stencilHooks_module.h(this);
|
|
3339
3340
|
}
|
|
3340
3341
|
disconnectedCallback() { }
|
|
3341
3342
|
render() {
|
|
@@ -3345,28 +3346,28 @@ const InvoiceTableDataCell = class {
|
|
|
3345
3346
|
|
|
3346
3347
|
const InvoiceTableDataColumn = class {
|
|
3347
3348
|
constructor(hostRef) {
|
|
3348
|
-
index.registerInstance(this, hostRef);
|
|
3349
|
-
stencilHooks_module.h
|
|
3349
|
+
index$1.registerInstance(this, hostRef);
|
|
3350
|
+
stencilHooks_module.h(this);
|
|
3350
3351
|
}
|
|
3351
3352
|
disconnectedCallback() { }
|
|
3352
3353
|
async renderCell(data) {
|
|
3353
|
-
return (index.h("sqm-invoice-table-data-cell", { data: data[this.property] }));
|
|
3354
|
+
return (index$1.h("sqm-invoice-table-data-cell", { data: data[this.property] }));
|
|
3354
3355
|
}
|
|
3355
3356
|
async renderLabel() {
|
|
3356
3357
|
return Promise.resolve(this.columnTitle);
|
|
3357
3358
|
}
|
|
3358
3359
|
render() {
|
|
3359
3360
|
reRender.useRequestRerender([this.columnTitle, this.property]);
|
|
3360
|
-
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3361
|
+
return (index$1.h(index$1.Host, { style: { display: "none" } }, index$1.h("slot", null)));
|
|
3361
3362
|
}
|
|
3362
3363
|
};
|
|
3363
3364
|
|
|
3364
3365
|
const RewardTableDateCell = class {
|
|
3365
3366
|
constructor(hostRef) {
|
|
3366
|
-
index.registerInstance(this, hostRef);
|
|
3367
|
+
index$1.registerInstance(this, hostRef);
|
|
3367
3368
|
this.ignored = true;
|
|
3368
3369
|
this.locale = "en";
|
|
3369
|
-
stencilHooks_module.h
|
|
3370
|
+
stencilHooks_module.h(this);
|
|
3370
3371
|
}
|
|
3371
3372
|
disconnectedCallback() { }
|
|
3372
3373
|
render() {
|
|
@@ -3380,58 +3381,58 @@ const RewardTableDateCell = class {
|
|
|
3380
3381
|
|
|
3381
3382
|
const InvoiceTableDateColumn = class {
|
|
3382
3383
|
constructor(hostRef) {
|
|
3383
|
-
index.registerInstance(this, hostRef);
|
|
3384
|
-
stencilHooks_module.h
|
|
3384
|
+
index$1.registerInstance(this, hostRef);
|
|
3385
|
+
stencilHooks_module.h(this);
|
|
3385
3386
|
}
|
|
3386
3387
|
disconnectedCallback() { }
|
|
3387
3388
|
async renderCell(data, options) {
|
|
3388
|
-
return (index.h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
3389
|
+
return (index$1.h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
3389
3390
|
}
|
|
3390
3391
|
async renderLabel() {
|
|
3391
3392
|
return this.columnTitle;
|
|
3392
3393
|
}
|
|
3393
3394
|
render() {
|
|
3394
3395
|
reRender.useRequestRerender([this.columnTitle]);
|
|
3395
|
-
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3396
|
+
return (index$1.h(index$1.Host, { style: { display: "none" } }, index$1.h("slot", null)));
|
|
3396
3397
|
}
|
|
3397
3398
|
};
|
|
3398
3399
|
|
|
3399
3400
|
const InvoiceTableDownloadCell = class {
|
|
3400
3401
|
constructor(hostRef) {
|
|
3401
|
-
index.registerInstance(this, hostRef);
|
|
3402
|
+
index$1.registerInstance(this, hostRef);
|
|
3402
3403
|
this.ignored = true;
|
|
3403
|
-
stencilHooks_module.h
|
|
3404
|
+
stencilHooks_module.h(this);
|
|
3404
3405
|
}
|
|
3405
3406
|
disconnectedCallback() { }
|
|
3406
3407
|
render() {
|
|
3407
3408
|
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3408
3409
|
cursor: pointer;
|
|
3409
3410
|
}`;
|
|
3410
|
-
return (index.h(index.Host, null, index.h("style", null, vanillaStyle), !!this.downloadUrl && (index.h("a", { href: this.downloadUrl, target: "_blank" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), index.h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "#717179" }))))));
|
|
3411
|
+
return (index$1.h(index$1.Host, null, index$1.h("style", null, vanillaStyle), !!this.downloadUrl && (index$1.h("a", { href: this.downloadUrl, target: "_blank" }, index$1.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index$1.h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), index$1.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" }))))));
|
|
3411
3412
|
}
|
|
3412
3413
|
};
|
|
3413
3414
|
|
|
3414
3415
|
const InvoiceTableGenericColumn = class {
|
|
3415
3416
|
constructor(hostRef) {
|
|
3416
|
-
index.registerInstance(this, hostRef);
|
|
3417
|
-
stencilHooks_module.h
|
|
3417
|
+
index$1.registerInstance(this, hostRef);
|
|
3418
|
+
stencilHooks_module.h(this);
|
|
3418
3419
|
}
|
|
3419
3420
|
disconnectedCallback() { }
|
|
3420
3421
|
async renderCell(data) {
|
|
3421
|
-
return (index.h("sqm-invoice-table-download-cell", { downloadUrl: data.downloadUrl }));
|
|
3422
|
+
return (index$1.h("sqm-invoice-table-download-cell", { downloadUrl: data.downloadUrl }));
|
|
3422
3423
|
}
|
|
3423
3424
|
async renderLabel() {
|
|
3424
|
-
return index.h("span", null);
|
|
3425
|
+
return index$1.h("span", null);
|
|
3425
3426
|
}
|
|
3426
3427
|
render() {
|
|
3427
|
-
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3428
|
+
return (index$1.h(index$1.Host, { style: { display: "none" } }, index$1.h("slot", null)));
|
|
3428
3429
|
}
|
|
3429
3430
|
};
|
|
3430
3431
|
|
|
3431
|
-
const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "20", viewBox: "0 0 17 20", fill: "none" },
|
|
3432
|
-
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.20649 4.55454H12.7877C15.7842 4.55454 16.9137 6.08577 16.7343 8.34231C16.4486 12.0629 14.2228 14.118 11.2728 14.118H9.78446C9.37916 14.118 9.10675 14.3866 9.00044 15.1254L8.36923 19.39C8.32937 19.6653 8.1832 19.8265 7.97058 19.8467H4.46242C4.13021 19.8467 4.01725 19.5915 4.10363 19.0408L6.23643 5.36045C6.32281 4.81646 6.61515 4.55454 7.20649 4.55454Z", fill: "#009EE3" }),
|
|
3433
|
-
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
|
|
3434
|
-
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
|
|
3432
|
+
const PayPalIcon = () => (index$1.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "20", viewBox: "0 0 17 20", fill: "none" },
|
|
3433
|
+
index$1.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.20649 4.55454H12.7877C15.7842 4.55454 16.9137 6.08577 16.7343 8.34231C16.4486 12.0629 14.2228 14.118 11.2728 14.118H9.78446C9.37916 14.118 9.10675 14.3866 9.00044 15.1254L8.36923 19.39C8.32937 19.6653 8.1832 19.8265 7.97058 19.8467H4.46242C4.13021 19.8467 4.01725 19.5915 4.10363 19.0408L6.23643 5.36045C6.32281 4.81646 6.61515 4.55454 7.20649 4.55454Z", fill: "#009EE3" }),
|
|
3434
|
+
index$1.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" }),
|
|
3435
|
+
index$1.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" })));
|
|
3435
3436
|
|
|
3436
3437
|
const style$4 = {
|
|
3437
3438
|
CardContainer: {
|
|
@@ -3572,12 +3573,12 @@ function PayoutDetailsCardView(props) {
|
|
|
3572
3573
|
const { classes } = sheet;
|
|
3573
3574
|
const { states, text } = props;
|
|
3574
3575
|
const renderLoadingSkeleton = () => {
|
|
3575
|
-
return (index.h("div", { class: classes.CardContainer },
|
|
3576
|
-
index.h("div", { class: classes.StatusContainer },
|
|
3577
|
-
index.h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
3578
|
-
index.h("sl-skeleton", { class: classes.SkeletonTwo })),
|
|
3579
|
-
index.h("sl-skeleton", { class: classes.SkeletonThree }),
|
|
3580
|
-
index.h("sl-skeleton", { class: classes.SkeletonOne })));
|
|
3576
|
+
return (index$1.h("div", { class: classes.CardContainer },
|
|
3577
|
+
index$1.h("div", { class: classes.StatusContainer },
|
|
3578
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
3579
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonTwo })),
|
|
3580
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonThree }),
|
|
3581
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonOne })));
|
|
3581
3582
|
};
|
|
3582
3583
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3583
3584
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
@@ -3587,7 +3588,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3587
3588
|
}, {
|
|
3588
3589
|
badgeText: status,
|
|
3589
3590
|
});
|
|
3590
|
-
return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3591
|
+
return (index$1.h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3591
3592
|
};
|
|
3592
3593
|
const thresholdText = global.intl.formatMessage({
|
|
3593
3594
|
id: "thresholdText",
|
|
@@ -3595,16 +3596,16 @@ function PayoutDetailsCardView(props) {
|
|
|
3595
3596
|
}, {
|
|
3596
3597
|
thresholdBalance: states.thresholdBalance,
|
|
3597
3598
|
});
|
|
3598
|
-
return (index.h("div", { class: classes.Container },
|
|
3599
|
-
index.h("style", { type: "text/css" }, styleString),
|
|
3600
|
-
states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3601
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3602
|
-
index.h("div", { class: classes.AlertContent },
|
|
3603
|
-
index.h("b", null, text.error.errorTitleText),
|
|
3599
|
+
return (index$1.h("div", { class: classes.Container },
|
|
3600
|
+
index$1.h("style", { type: "text/css" }, styleString),
|
|
3601
|
+
states.error && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3602
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3603
|
+
index$1.h("div", { class: classes.AlertContent },
|
|
3604
|
+
index$1.h("b", null, text.error.errorTitleText),
|
|
3604
3605
|
text.error.errorDescriptionText))),
|
|
3605
|
-
states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
|
|
3606
|
-
index.h("div", { class: classes.StatusContainer },
|
|
3607
|
-
index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
3606
|
+
states.loading ? (renderLoadingSkeleton()) : (index$1.h("div", { class: classes.CardContainer },
|
|
3607
|
+
index$1.h("div", { class: classes.StatusContainer },
|
|
3608
|
+
index$1.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
3608
3609
|
? states.thresholdBalance
|
|
3609
3610
|
? thresholdText
|
|
3610
3611
|
: ""
|
|
@@ -3612,11 +3613,11 @@ function PayoutDetailsCardView(props) {
|
|
|
3612
3613
|
states.badgeStatus === "thresholdPayout"
|
|
3613
3614
|
? null
|
|
3614
3615
|
: renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
|
|
3615
|
-
index.h("h1", { class: classes.MainCurrency }, states.balance),
|
|
3616
|
-
states.payoutType === "PAYPAL" ? (index.h("div", { class: classes.PaypalDetailsContainer },
|
|
3617
|
-
index.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
|
3618
|
-
index.h(PayPalIcon, null))) : (index.h("div", { class: classes.AccountDetailsContainer },
|
|
3619
|
-
index.h("span", null, states.cardNumberPreview
|
|
3616
|
+
index$1.h("h1", { class: classes.MainCurrency }, states.balance),
|
|
3617
|
+
states.payoutType === "PAYPAL" ? (index$1.h("div", { class: classes.PaypalDetailsContainer },
|
|
3618
|
+
index$1.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
|
3619
|
+
index$1.h(PayPalIcon, null))) : (index$1.h("div", { class: classes.AccountDetailsContainer },
|
|
3620
|
+
index$1.h("span", null, states.cardNumberPreview
|
|
3620
3621
|
? `${text.accountText} ${states.cardNumberPreview}`
|
|
3621
3622
|
: text.payoutMissingInformationText)))))));
|
|
3622
3623
|
}
|
|
@@ -3681,7 +3682,7 @@ function usePayoutDetailsCard(props) {
|
|
|
3681
3682
|
|
|
3682
3683
|
const PayoutDetailsCard = class {
|
|
3683
3684
|
constructor(hostRef) {
|
|
3684
|
-
index.registerInstance(this, hostRef);
|
|
3685
|
+
index$1.registerInstance(this, hostRef);
|
|
3685
3686
|
/**
|
|
3686
3687
|
* Badge text indicating payout status
|
|
3687
3688
|
* @uiName Payout badge status text
|
|
@@ -3712,7 +3713,7 @@ const PayoutDetailsCard = class {
|
|
|
3712
3713
|
* @uiName Payout missing information subtext
|
|
3713
3714
|
*/
|
|
3714
3715
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3715
|
-
stencilHooks_module.h
|
|
3716
|
+
stencilHooks_module.h(this);
|
|
3716
3717
|
}
|
|
3717
3718
|
disconnectedCallback() { }
|
|
3718
3719
|
getTextProps() {
|
|
@@ -3729,7 +3730,7 @@ const PayoutDetailsCard = class {
|
|
|
3729
3730
|
const props = index_module.isDemo()
|
|
3730
3731
|
? useDemoPayoutDetailsCard(this)
|
|
3731
3732
|
: usePayoutDetailsCard(this);
|
|
3732
|
-
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
3733
|
+
return (index$1.h(index$1.Host, null, index$1.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
3733
3734
|
}
|
|
3734
3735
|
};
|
|
3735
3736
|
function useDemoPayoutDetailsCard(props) {
|
|
@@ -3755,27 +3756,27 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
3755
3756
|
|
|
3756
3757
|
const TableCell = class {
|
|
3757
3758
|
constructor(hostRef) {
|
|
3758
|
-
index.registerInstance(this, hostRef);
|
|
3759
|
+
index$1.registerInstance(this, hostRef);
|
|
3759
3760
|
/** @uiName Column span */
|
|
3760
3761
|
this.colspan = 1;
|
|
3761
3762
|
/** @uiName Padding */
|
|
3762
3763
|
this.padding = "15px 10px";
|
|
3763
3764
|
}
|
|
3764
3765
|
render() {
|
|
3765
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
3766
|
+
return (index$1.h(index$1.Host, { style: { display: "contents" } }, index$1.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index$1.h("slot", null))));
|
|
3766
3767
|
}
|
|
3767
3768
|
};
|
|
3768
3769
|
|
|
3769
3770
|
const TableRow = class {
|
|
3770
3771
|
constructor(hostRef) {
|
|
3771
|
-
index.registerInstance(this, hostRef);
|
|
3772
|
+
index$1.registerInstance(this, hostRef);
|
|
3772
3773
|
/**
|
|
3773
3774
|
* @uiName Border
|
|
3774
3775
|
*/
|
|
3775
3776
|
this.border = "1px solid #EAEAEA";
|
|
3776
3777
|
}
|
|
3777
3778
|
render() {
|
|
3778
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
3779
|
+
return (index$1.h(index$1.Host, { style: { display: "contents" } }, index$1.h("tr", { style: { border: this.border } }, index$1.h("slot", null))));
|
|
3779
3780
|
}
|
|
3780
3781
|
};
|
|
3781
3782
|
|
|
@@ -3959,7 +3960,7 @@ function useTaxAndCash() {
|
|
|
3959
3960
|
|
|
3960
3961
|
const TaxAndCashMonolith = class {
|
|
3961
3962
|
constructor(hostRef) {
|
|
3962
|
-
index.registerInstance(this, hostRef);
|
|
3963
|
+
index$1.registerInstance(this, hostRef);
|
|
3963
3964
|
/*---------------------------------------------------------------------------------
|
|
3964
3965
|
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
3965
3966
|
-----------------------------------------------------------------------------------*/
|
|
@@ -4843,7 +4844,7 @@ const TaxAndCashMonolith = class {
|
|
|
4843
4844
|
* @uiGroup General Form Properties
|
|
4844
4845
|
*/
|
|
4845
4846
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
4846
|
-
stencilHooks_module.h
|
|
4847
|
+
stencilHooks_module.h(this);
|
|
4847
4848
|
}
|
|
4848
4849
|
disconnectedCallback() { }
|
|
4849
4850
|
// this field is required prop
|
|
@@ -4874,27 +4875,27 @@ const TaxAndCashMonolith = class {
|
|
|
4874
4875
|
// @ts-ignore
|
|
4875
4876
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
4876
4877
|
const textProps = utils.getProps(this);
|
|
4877
|
-
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
4878
|
+
return (index$1.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
4878
4879
|
if (prop === "demoData")
|
|
4879
4880
|
return;
|
|
4880
|
-
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
4881
|
+
return (index$1.h("div", null, index$1.h("b", null, prop, ":"), " ", this[prop], index$1.h("hr", null)));
|
|
4881
4882
|
})));
|
|
4882
4883
|
}
|
|
4883
4884
|
switch (props.step) {
|
|
4884
4885
|
case "/1":
|
|
4885
|
-
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
4886
|
+
return (index$1.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
4886
4887
|
case "/2":
|
|
4887
|
-
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
4888
|
+
return (index$1.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
4888
4889
|
case "/3":
|
|
4889
|
-
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
4890
|
+
return (index$1.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
4890
4891
|
case "/4":
|
|
4891
|
-
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
4892
|
+
return (index$1.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
4892
4893
|
case "/dashboard":
|
|
4893
|
-
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
4894
|
+
return (index$1.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
4894
4895
|
case "/error":
|
|
4895
|
-
return (index.h(sqmInvoiceTableView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
4896
|
+
return (index$1.h(sqmInvoiceTableView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
4896
4897
|
}
|
|
4897
|
-
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
4898
|
+
return index$1.h(sqmInvoiceTableView.LoadingView, null);
|
|
4898
4899
|
}
|
|
4899
4900
|
};
|
|
4900
4901
|
function useDemoTaxAndCash(props) {
|
|
@@ -5069,17 +5070,17 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5069
5070
|
var _a;
|
|
5070
5071
|
const { states, text, callbacks, slots } = props;
|
|
5071
5072
|
const statusMap = {
|
|
5072
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5073
|
-
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5074
|
-
index.h("p", null, global.intl.formatMessage({
|
|
5073
|
+
NOT_VERIFIED: (index$1.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5074
|
+
index$1.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5075
|
+
index$1.h("p", null, global.intl.formatMessage({
|
|
5075
5076
|
id: `badgeTextAwaitingReview`,
|
|
5076
5077
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
5077
5078
|
}, {
|
|
5078
5079
|
dateSubmitted: states.dateSubmitted,
|
|
5079
5080
|
})))),
|
|
5080
|
-
ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5081
|
-
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5082
|
-
index.h("p", null, global.intl.formatMessage({
|
|
5081
|
+
ACTIVE: (index$1.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5082
|
+
index$1.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5083
|
+
index$1.h("p", null, global.intl.formatMessage({
|
|
5083
5084
|
id: `badgeTextSubmittedOn`,
|
|
5084
5085
|
defaultMessage: states.documentType === "W9"
|
|
5085
5086
|
? text.badgeTextSubmittedOn
|
|
@@ -5087,14 +5088,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5087
5088
|
}, {
|
|
5088
5089
|
dateSubmitted: states.dateSubmitted,
|
|
5089
5090
|
})))),
|
|
5090
|
-
INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5091
|
-
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5092
|
-
index.h("p", null, text.invalidForm))),
|
|
5091
|
+
INACTIVE: (index$1.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5092
|
+
index$1.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5093
|
+
index$1.h("p", null, text.invalidForm))),
|
|
5093
5094
|
};
|
|
5094
5095
|
const alertMap = {
|
|
5095
|
-
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5096
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5097
|
-
index.h("strong", null, global.intl.formatMessage({
|
|
5096
|
+
INACTIVE: (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5097
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5098
|
+
index$1.h("strong", null, global.intl.formatMessage({
|
|
5098
5099
|
id: `taxAlertHeaderNotActive`,
|
|
5099
5100
|
defaultMessage: states.documentType === "W9"
|
|
5100
5101
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -5102,7 +5103,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5102
5103
|
}, {
|
|
5103
5104
|
documentType: states.documentTypeString,
|
|
5104
5105
|
})),
|
|
5105
|
-
index.h("br", null),
|
|
5106
|
+
index$1.h("br", null),
|
|
5106
5107
|
global.intl.formatMessage({
|
|
5107
5108
|
id: `taxAlertMessage`,
|
|
5108
5109
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5140,82 +5141,66 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5140
5141
|
});
|
|
5141
5142
|
}
|
|
5142
5143
|
};
|
|
5143
|
-
return (index.h("div", null,
|
|
5144
|
-
index.h("div", null,
|
|
5145
|
-
index.h("style", { type: "text/css" }, styleString$4),
|
|
5146
|
-
states.loadingError && (index.h("div", null,
|
|
5147
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5148
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5149
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5150
|
-
index.h("br", null),
|
|
5144
|
+
return (index$1.h("div", null,
|
|
5145
|
+
index$1.h("div", null,
|
|
5146
|
+
index$1.h("style", { type: "text/css" }, styleString$4),
|
|
5147
|
+
states.loadingError && (index$1.h("div", null,
|
|
5148
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5149
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5150
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5151
|
+
index$1.h("br", null),
|
|
5151
5152
|
text.error.loadingErrorAlertDescription))),
|
|
5152
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5153
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5154
|
-
index.h("strong", null, text.error.generalTitle),
|
|
5155
|
-
index.h("br", null),
|
|
5153
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5154
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5155
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
5156
|
+
index$1.h("br", null),
|
|
5156
5157
|
text.error.generalDescription)),
|
|
5157
|
-
|
|
5158
|
-
index.h("
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
index.h("br", null),
|
|
5162
|
-
text.verifyIdentityAlertMessage,
|
|
5163
|
-
index.h("br", null),
|
|
5164
|
-
index.h("sl-button", null, text.verifyIdentityButton)))),
|
|
5165
|
-
index.h("sl-dialog", {
|
|
5166
|
-
// AL: todo plugin open dialog
|
|
5167
|
-
label: " verify Identity iframe", class: sheet$4.classes.Dialog, open: states.showIdentityVerificationDialog },
|
|
5168
|
-
index.h("div", { style: {
|
|
5169
|
-
width: "420px",
|
|
5170
|
-
height: "420px",
|
|
5171
|
-
border: "1px dotted black",
|
|
5172
|
-
} })),
|
|
5173
|
-
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5174
|
-
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5175
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5176
|
-
index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5158
|
+
index$1.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5159
|
+
index$1.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5160
|
+
index$1.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5161
|
+
index$1.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5177
5162
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5178
|
-
index.h("div", null,
|
|
5179
|
-
index.h("h3", null, text.bankingInformationSectionHeader),
|
|
5180
|
-
index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5181
|
-
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5163
|
+
index$1.h("div", null,
|
|
5164
|
+
index$1.h("h3", null, text.bankingInformationSectionHeader),
|
|
5165
|
+
index$1.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5166
|
+
index$1.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5182
5167
|
slots.payoutDetailsCardSlot,
|
|
5183
|
-
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5184
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5185
|
-
index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
5186
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5187
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5188
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
5189
|
-
index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5190
|
-
index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
5191
|
-
index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5192
|
-
index.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5193
|
-
index.h("h3", null, global.intl.formatMessage({
|
|
5168
|
+
!states.loading && (index$1.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5169
|
+
states.canEditPayoutInfo && (index$1.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5170
|
+
index$1.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
5171
|
+
index$1.h("div", null, states.loading ? (index$1.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5172
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5173
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index$1.h("div", null, states.noFormNeeded ? (index$1.h("div", null,
|
|
5174
|
+
index$1.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5175
|
+
index$1.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index$1.h("div", null,
|
|
5176
|
+
index$1.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5177
|
+
index$1.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5178
|
+
index$1.h("h3", null, global.intl.formatMessage({
|
|
5194
5179
|
id: "section-subheader",
|
|
5195
5180
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5196
5181
|
}, {
|
|
5197
5182
|
documentType: states.documentTypeString,
|
|
5198
5183
|
})),
|
|
5199
|
-
index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
5200
|
-
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5201
|
-
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5202
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5203
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
5204
|
-
index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5184
|
+
index$1.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
5185
|
+
states.status !== "NOT_VERIFIED" && (index$1.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5186
|
+
index$1.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index$1.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5187
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5188
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index$1.h("div", null,
|
|
5189
|
+
index$1.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5205
5190
|
text.indirectTaxInfoSectionHeader,
|
|
5206
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
5207
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
5208
|
-
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
5209
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, text.notRegisteredForTax)) : (getIndirectTaxRegisteredIn())),
|
|
5210
|
-
!states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5211
|
-
index.h("span", null, global.intl.formatMessage({
|
|
5191
|
+
index$1.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
5192
|
+
index$1.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
5193
|
+
index$1.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
5194
|
+
index$1.h("span", null, states.notRegistered ? (index$1.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, text.notRegisteredForTax)) : (getIndirectTaxRegisteredIn())),
|
|
5195
|
+
!states.notRegistered && (index$1.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5196
|
+
index$1.h("span", null, global.intl.formatMessage({
|
|
5212
5197
|
id: `indirectTaxDetails`,
|
|
5213
5198
|
defaultMessage: text.indirectTaxDetails,
|
|
5214
5199
|
}, {
|
|
5215
5200
|
indirectTaxType: states.indirectTaxType,
|
|
5216
5201
|
indirectTaxNumber: states.indirectTaxNumber,
|
|
5217
5202
|
})),
|
|
5218
|
-
index.h("span", null,
|
|
5203
|
+
index$1.h("span", null,
|
|
5219
5204
|
states.qstNumber &&
|
|
5220
5205
|
global.intl.formatMessage({
|
|
5221
5206
|
id: `qstNumber`,
|
|
@@ -5230,14 +5215,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5230
5215
|
}, {
|
|
5231
5216
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5232
5217
|
})))),
|
|
5233
|
-
!states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5234
|
-
index.h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
|
|
5235
|
-
index.h("sqm-invoice-table-download-column", null),
|
|
5236
|
-
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
5237
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.invoiceColumnTitle, property: "invoiceId" }),
|
|
5238
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.earningsColumnTitle, property: "earnings" }),
|
|
5239
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.indirectTaxColumnTitle, property: "indirectTax" }),
|
|
5240
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
5218
|
+
!states.notRegistered && (index$1.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5219
|
+
index$1.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 },
|
|
5220
|
+
index$1.h("sqm-invoice-table-download-column", null),
|
|
5221
|
+
index$1.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
5222
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.invoiceColumnTitle, property: "invoiceId" }),
|
|
5223
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.earningsColumnTitle, property: "earnings" }),
|
|
5224
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.indirectTaxColumnTitle, property: "indirectTax" }),
|
|
5225
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
5241
5226
|
};
|
|
5242
5227
|
|
|
5243
5228
|
function getCountryName(countryCode, locale) {
|
|
@@ -5343,7 +5328,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5343
5328
|
|
|
5344
5329
|
const TaxAndCashDashboard = class {
|
|
5345
5330
|
constructor(hostRef) {
|
|
5346
|
-
index.registerInstance(this, hostRef);
|
|
5331
|
+
index$1.registerInstance(this, hostRef);
|
|
5347
5332
|
/**
|
|
5348
5333
|
* @uiName Active tax form badge label
|
|
5349
5334
|
*/
|
|
@@ -5403,18 +5388,6 @@ const TaxAndCashDashboard = class {
|
|
|
5403
5388
|
* @uiName Inactive W-8 error message description
|
|
5404
5389
|
*/
|
|
5405
5390
|
this.taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
|
|
5406
|
-
/**
|
|
5407
|
-
* Part of the alert displayed at the top of the page.
|
|
5408
|
-
*
|
|
5409
|
-
* @uiName Verify identity warning message header
|
|
5410
|
-
*/
|
|
5411
|
-
this.verifyIdentityAlertHeader = "Verify your identity";
|
|
5412
|
-
/**
|
|
5413
|
-
* Part of the alert displayed at the top of the page.
|
|
5414
|
-
*
|
|
5415
|
-
* @uiName Verify identity warning message description
|
|
5416
|
-
*/
|
|
5417
|
-
this.verifyIdentityAlertMessage = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
5418
5391
|
/**
|
|
5419
5392
|
* Additional text displayed next to the tax form's status badge.
|
|
5420
5393
|
*
|
|
@@ -5615,11 +5588,7 @@ const TaxAndCashDashboard = class {
|
|
|
5615
5588
|
* @uiName Cancel button label
|
|
5616
5589
|
*/
|
|
5617
5590
|
this.cancelButton = "Cancel";
|
|
5618
|
-
|
|
5619
|
-
* @uiName Verify button label
|
|
5620
|
-
*/
|
|
5621
|
-
this.verifyIdentityButton = "Start Verification";
|
|
5622
|
-
stencilHooks_module.h$1(this);
|
|
5591
|
+
stencilHooks_module.h(this);
|
|
5623
5592
|
}
|
|
5624
5593
|
disconnectedCallback() { }
|
|
5625
5594
|
getTextProps() {
|
|
@@ -5638,8 +5607,8 @@ const TaxAndCashDashboard = class {
|
|
|
5638
5607
|
const props = index_module.isDemo()
|
|
5639
5608
|
? useDemoTaxAndCashDashboard(this)
|
|
5640
5609
|
: useTaxAndCashDashboard(this);
|
|
5641
|
-
return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
5642
|
-
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
5610
|
+
return (index$1.h(index$1.Host, null, index$1.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
5611
|
+
payoutDetailsCardSlot: (index$1.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
5643
5612
|
} })));
|
|
5644
5613
|
}
|
|
5645
5614
|
};
|
|
@@ -6774,7 +6743,7 @@ const UserInfoFormView = (props) => {
|
|
|
6774
6743
|
id: "bankingCollectionText",
|
|
6775
6744
|
defaultMessage: text.allowBankingCollection,
|
|
6776
6745
|
}, {
|
|
6777
|
-
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
6746
|
+
termsAndConditionsLink: (index$1.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
6778
6747
|
});
|
|
6779
6748
|
let regionLabel = undefined;
|
|
6780
6749
|
switch (data.regionLabelEnum) {
|
|
@@ -6790,70 +6759,70 @@ const UserInfoFormView = (props) => {
|
|
|
6790
6759
|
default:
|
|
6791
6760
|
regionLabel = text.state;
|
|
6792
6761
|
}
|
|
6793
|
-
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6794
|
-
index.h("style", { type: "text/css" },
|
|
6762
|
+
return (index$1.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6763
|
+
index$1.h("style", { type: "text/css" },
|
|
6795
6764
|
styleString$5,
|
|
6796
6765
|
vanillaStyle$3),
|
|
6797
|
-
states.loadingError && (index.h("div", null,
|
|
6798
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
6799
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6800
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6801
|
-
index.h("br", null),
|
|
6766
|
+
states.loadingError && (index$1.h("div", null,
|
|
6767
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
6768
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6769
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6770
|
+
index$1.h("br", null),
|
|
6802
6771
|
text.error.loadingErrorAlertDescription),
|
|
6803
|
-
index.h("br", null))),
|
|
6804
|
-
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
6805
|
-
index.h("div", { class: classes.TextContainer },
|
|
6806
|
-
index.h("div", null,
|
|
6807
|
-
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
6772
|
+
index$1.h("br", null))),
|
|
6773
|
+
states.loading ? (index$1.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index$1.h("div", null,
|
|
6774
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
6775
|
+
index$1.h("div", null,
|
|
6776
|
+
!states.hideSteps && (index$1.h("p", null, global.intl.formatMessage({
|
|
6808
6777
|
id: "formStep",
|
|
6809
6778
|
defaultMessage: text.formStep,
|
|
6810
6779
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
6811
|
-
index.h("h3", null, text.personalInformation),
|
|
6812
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6813
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
|
|
6814
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6815
|
-
index.h("strong", null, text.error.generalTitle),
|
|
6816
|
-
index.h("br", null),
|
|
6780
|
+
index$1.h("h3", null, text.personalInformation),
|
|
6781
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6782
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
|
|
6783
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6784
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
6785
|
+
index$1.h("br", null),
|
|
6817
6786
|
text.error.generalDescription)),
|
|
6818
|
-
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
6819
|
-
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6820
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
6821
|
-
index.h("br", null),
|
|
6787
|
+
(states.isPartner || states.isUser) && (index$1.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
6788
|
+
index$1.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6789
|
+
index$1.h("strong", null, text.isPartnerAlertHeader),
|
|
6790
|
+
index$1.h("br", null),
|
|
6822
6791
|
text.isPartnerAlertDescription)),
|
|
6823
|
-
index.h("div", null,
|
|
6824
|
-
index.h("div", { class: classes.InputContainer },
|
|
6825
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
6792
|
+
index$1.h("div", null,
|
|
6793
|
+
index$1.h("div", { class: classes.InputContainer },
|
|
6794
|
+
index$1.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) ? {
|
|
6826
6795
|
class: classes.ErrorInput,
|
|
6827
6796
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
6828
6797
|
}
|
|
6829
6798
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
6830
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
6799
|
+
index$1.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
6831
6800
|
class: classes.ErrorInput,
|
|
6832
6801
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
6833
6802
|
}
|
|
6834
6803
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
6835
|
-
index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
6836
|
-
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
6804
|
+
index$1.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
6805
|
+
index$1.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
6837
6806
|
class: classes.ErrorInput,
|
|
6838
6807
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
6839
6808
|
}
|
|
6840
6809
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
6841
|
-
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6810
|
+
index$1.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6842
6811
|
// Stop shoelace intercepting key presses
|
|
6843
6812
|
e.stopPropagation();
|
|
6844
6813
|
}, "onSl-input": (e) => {
|
|
6845
6814
|
callbacks.setCountrySearch(e.target.value);
|
|
6846
6815
|
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
6847
|
-
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
6848
|
-
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6849
|
-
index.h("div", { class: classes.PhoneInputsSection },
|
|
6850
|
-
index.h("p", null, text.phoneNumber),
|
|
6851
|
-
index.h("div", { class: classes.PhoneInputsContainer },
|
|
6852
|
-
index.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", value: formState.phoneNumberCountryCode, disabled: states.disabled || states.isPartner, ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
|
|
6816
|
+
_e.map((c) => (index$1.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
6817
|
+
_f.map((c) => (index$1.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6818
|
+
index$1.h("div", { class: classes.PhoneInputsSection },
|
|
6819
|
+
index$1.h("p", null, text.phoneNumber),
|
|
6820
|
+
index$1.h("div", { class: classes.PhoneInputsContainer },
|
|
6821
|
+
index$1.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", value: formState.phoneNumberCountryCode, disabled: states.disabled || states.isPartner, ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
|
|
6853
6822
|
class: classes.ErrorInput,
|
|
6854
6823
|
}
|
|
6855
6824
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
|
|
6856
|
-
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6825
|
+
index$1.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6857
6826
|
// Stop shoelace intercepting key presses
|
|
6858
6827
|
e.stopPropagation();
|
|
6859
6828
|
}, "onSl-input": (e) => {
|
|
@@ -6861,17 +6830,17 @@ const UserInfoFormView = (props) => {
|
|
|
6861
6830
|
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
6862
6831
|
_h.map((c) => {
|
|
6863
6832
|
var _a, _b;
|
|
6864
|
-
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
6865
|
-
index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6833
|
+
return (index$1.h("sl-menu-item", { value: c.countryCode },
|
|
6834
|
+
index$1.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6866
6835
|
_b.dial_code));
|
|
6867
6836
|
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
6868
6837
|
_j.map((c) => {
|
|
6869
6838
|
var _a, _b;
|
|
6870
|
-
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
6871
|
-
index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6839
|
+
return (index$1.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
6840
|
+
index$1.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6872
6841
|
_b.dial_code));
|
|
6873
6842
|
})),
|
|
6874
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
|
|
6843
|
+
index$1.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
|
|
6875
6844
|
// Naive phone number validation
|
|
6876
6845
|
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
6877
6846
|
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
@@ -6879,7 +6848,7 @@ const UserInfoFormView = (props) => {
|
|
|
6879
6848
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6880
6849
|
}
|
|
6881
6850
|
: {}), { required: true })))),
|
|
6882
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6851
|
+
index$1.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6883
6852
|
// Checks for non-ASCII characters
|
|
6884
6853
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6885
6854
|
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
@@ -6887,7 +6856,7 @@ const UserInfoFormView = (props) => {
|
|
|
6887
6856
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
6888
6857
|
}
|
|
6889
6858
|
: {}), { required: true })),
|
|
6890
|
-
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
6859
|
+
index$1.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
6891
6860
|
// Checks for non-ASCII characters
|
|
6892
6861
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6893
6862
|
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
@@ -6895,41 +6864,41 @@ const UserInfoFormView = (props) => {
|
|
|
6895
6864
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
6896
6865
|
}
|
|
6897
6866
|
: {}), { required: true })),
|
|
6898
|
-
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
6867
|
+
!states.hideState && (index$1.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
6899
6868
|
class: classes.ErrorInput,
|
|
6900
6869
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
6901
6870
|
}
|
|
6902
|
-
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6903
|
-
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
6871
|
+
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index$1.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6872
|
+
index$1.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
6904
6873
|
class: classes.ErrorInput,
|
|
6905
6874
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6906
6875
|
}
|
|
6907
6876
|
: {}), { required: true })),
|
|
6908
|
-
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
6877
|
+
index$1.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
6909
6878
|
class: classes.ErrorInput,
|
|
6910
6879
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
6911
6880
|
}
|
|
6912
6881
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
6913
|
-
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
6882
|
+
index$1.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
6914
6883
|
// Stop shoelace intercepting key presses
|
|
6915
6884
|
e.stopPropagation();
|
|
6916
6885
|
}, "onSl-input": (e) => {
|
|
6917
6886
|
callbacks.setCurrencySearch(e.target.value);
|
|
6918
6887
|
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6919
|
-
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
6888
|
+
_s.map((c) => (index$1.h("sl-menu-item", { value: c.currencyCode },
|
|
6920
6889
|
c.currencyCode,
|
|
6921
6890
|
" - ",
|
|
6922
6891
|
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6923
|
-
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6892
|
+
_t.map((c) => (index$1.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6924
6893
|
c.currencyCode,
|
|
6925
6894
|
" - ",
|
|
6926
6895
|
c.displayName)))),
|
|
6927
|
-
index.h("div", { class: classes.CheckboxWrapper },
|
|
6928
|
-
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6896
|
+
index$1.h("div", { class: classes.CheckboxWrapper },
|
|
6897
|
+
index$1.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6929
6898
|
e.target.value = e.target.checked;
|
|
6930
6899
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6931
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6932
|
-
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6900
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index$1.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6901
|
+
index$1.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6933
6902
|
};
|
|
6934
6903
|
|
|
6935
6904
|
function useUserInfoForm(props) {
|
|
@@ -7126,7 +7095,7 @@ function useUserInfoForm(props) {
|
|
|
7126
7095
|
|
|
7127
7096
|
const TaxForm = class {
|
|
7128
7097
|
constructor(hostRef) {
|
|
7129
|
-
index.registerInstance(this, hostRef);
|
|
7098
|
+
index$1.registerInstance(this, hostRef);
|
|
7130
7099
|
this.ignored = true;
|
|
7131
7100
|
/**
|
|
7132
7101
|
* @uiName First name field label
|
|
@@ -7274,7 +7243,7 @@ const TaxForm = class {
|
|
|
7274
7243
|
* @uiName Page description
|
|
7275
7244
|
*/
|
|
7276
7245
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
7277
|
-
stencilHooks_module.h
|
|
7246
|
+
stencilHooks_module.h(this);
|
|
7278
7247
|
}
|
|
7279
7248
|
disconnectedCallback() { }
|
|
7280
7249
|
getTextProps() {
|
|
@@ -7294,7 +7263,7 @@ const TaxForm = class {
|
|
|
7294
7263
|
}
|
|
7295
7264
|
render() {
|
|
7296
7265
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
7297
|
-
return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
|
|
7266
|
+
return (index$1.h(index$1.Host, null, index$1.h(UserInfoFormView, { data: props.data,
|
|
7298
7267
|
// @ts-ignore
|
|
7299
7268
|
states: props.states, callbacks: {
|
|
7300
7269
|
...props.callbacks,
|