@saasquatch/mint-components 1.15.0-62 → 1.15.0-63
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/{IndirectTaxDetailsView-d7d3a220.js → IndirectTaxDetailsView-79703291.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-dbc78438.js → ShadowViewAddon-e0aa9b07.js} +2 -2
- package/dist/cjs/{global-a3a85ff0.js → global-38031ab9.js} +61 -54
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +139 -282
- package/dist/cjs/sqm-big-stat_42.cjs.entry.js +27 -57
- package/dist/cjs/sqm-code-verification.cjs.entry.js +14 -4
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +10 -13
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-form-message.cjs.entry.js +5 -5
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-aec35ba2.js → sqm-portal-email-verification-view-f1671646.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-cff9bfc7.js → sqm-portal-profile-view-5aabad8c.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-qr-code-view-af9f6df7.js → sqm-qr-code-view-0c3b2f48.js} +7 -2
- package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -3
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +20 -28
- package/dist/cjs/sqm-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +4 -5
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +1 -1
- package/dist/cjs/{usePortalLogin-1c022d8d.js → usePortalLogin-6aa864ef.js} +1 -1
- package/dist/cjs/{utils-940abb91.js → utils-62fd5f09.js} +1 -1
- package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
- package/dist/collection/components/sqm-stencilbook/Themes.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +8 -11
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +3 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +4 -33
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +19 -47
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +13 -64
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -6
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +18 -48
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +3 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +86 -82
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +12 -44
- package/dist/collection/global/styles.js +61 -54
- package/dist/collection/global/styles.ts +9 -2
- package/dist/collection/utils/utils.js +4 -0
- package/dist/esm/{IndirectTaxDetailsView-0ae0aeb9.js → IndirectTaxDetailsView-3bf366d5.js} +2 -2
- package/dist/esm/{ShadowViewAddon-51e9ebf7.js → ShadowViewAddon-2984432d.js} +2 -2
- package/dist/esm/{global-e9173b4c.js → global-75f87c77.js} +61 -54
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_10.entry.js +139 -282
- package/dist/esm/sqm-big-stat_42.entry.js +27 -57
- package/dist/esm/sqm-code-verification.entry.js +14 -4
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +10 -13
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-form-message.entry.js +5 -5
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +1 -1
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-a82e199f.js → sqm-portal-email-verification-view-46311e88.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/sqm-portal-google-login.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-caabc8d3.js → sqm-portal-profile-view-f7cb1c88.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/{sqm-qr-code-view-7be282fd.js → sqm-qr-code-view-97124a66.js} +6 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -3
- package/dist/esm/sqm-referral-table_11.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +20 -28
- package/dist/esm/sqm-tabs.entry.js +1 -1
- package/dist/esm/sqm-tax-and-cash.entry.js +4 -5
- package/dist/esm/sqm-widget-verification.entry.js +1 -1
- package/dist/esm/{usePortalLogin-61abe78e.js → usePortalLogin-d0720c81.js} +1 -1
- package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
- package/dist/esm/{utils-985d9996.js → utils-edd7677f.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-0ae0aeb9.js → IndirectTaxDetailsView-3bf366d5.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-51e9ebf7.js → ShadowViewAddon-2984432d.js} +1 -1
- package/dist/esm-es5/{global-e9173b4c.js → global-75f87c77.js} +3 -3
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_42.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-invoice-table-data-cell_5.entry.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.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-a82e199f.js → sqm-portal-email-verification-view-46311e88.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-caabc8d3.js → sqm-portal-profile-view-f7cb1c88.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.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-qr-code-view-97124a66.js +1 -0
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{usePortalLogin-61abe78e.js → usePortalLogin-d0720c81.js} +1 -1
- package/dist/esm-es5/utils-03188de2.js +1 -0
- package/dist/esm-es5/{utils-985d9996.js → utils-edd7677f.js} +1 -1
- package/dist/mint-components/global/styles.ts +9 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-949ca517.system.entry.js → p-002e6205.system.entry.js} +1 -1
- package/dist/mint-components/{p-fe01d78b.system.js → p-03bc8092.system.js} +1 -1
- package/dist/mint-components/{p-d1184054.system.entry.js → p-09faca85.system.entry.js} +1 -1
- package/dist/mint-components/p-0b0f49ad.entry.js +1 -0
- package/dist/mint-components/{p-93c743a4.system.js → p-0b9d56b2.system.js} +1 -1
- package/dist/mint-components/{p-23671c40.entry.js → p-0d178b8a.entry.js} +1 -1
- package/dist/mint-components/{p-3c546860.system.entry.js → p-0d22c0e5.system.entry.js} +1 -1
- package/dist/mint-components/{p-c7861962.entry.js → p-0fca4ae0.entry.js} +1 -1
- package/dist/mint-components/p-15bfd7e2.system.js +1 -0
- package/dist/mint-components/p-16b37afe.system.entry.js +1 -0
- package/dist/mint-components/{p-08a77d1e.system.entry.js → p-1ad8f7f4.system.entry.js} +1 -1
- package/dist/mint-components/p-1cad4160.system.entry.js +1 -0
- package/dist/mint-components/{p-717f926c.system.entry.js → p-207fb692.system.entry.js} +1 -1
- package/dist/mint-components/{p-01551599.system.js → p-21b680c9.system.js} +1 -1
- package/dist/mint-components/{p-b5346a5a.entry.js → p-22c11f0e.entry.js} +1 -1
- package/dist/mint-components/{p-7b635ed8.system.entry.js → p-22d20816.system.entry.js} +1 -1
- package/dist/mint-components/{p-b64f7dcb.system.entry.js → p-258f4e5e.system.entry.js} +1 -1
- package/dist/mint-components/p-29be244d.entry.js +9 -0
- package/dist/mint-components/{p-b11dd241.system.js → p-2ce2d1f0.system.js} +1 -1
- package/dist/mint-components/{p-4ec69d24.js → p-32ed7c0c.js} +1 -1
- package/dist/mint-components/p-32fa454c.entry.js +1 -0
- package/dist/mint-components/{p-2cec44e0.entry.js → p-33d0edc0.entry.js} +2 -2
- package/dist/mint-components/p-40c01a5a.system.js +1 -0
- package/dist/mint-components/{p-35061d76.system.entry.js → p-4271f436.system.entry.js} +1 -1
- package/dist/mint-components/{p-a554c304.js → p-474124e9.js} +1 -1
- package/dist/mint-components/p-4aefb976.system.entry.js +1 -0
- package/dist/mint-components/{p-0c7135bb.entry.js → p-50348f43.entry.js} +1 -1
- package/dist/mint-components/{p-c431aedf.entry.js → p-564ac69e.entry.js} +2 -2
- package/dist/mint-components/p-59f8eb90.entry.js +93 -0
- package/dist/mint-components/{p-e49b253f.entry.js → p-5e0af707.entry.js} +2 -2
- package/dist/mint-components/{p-f7700805.js → p-5ed49bf2.js} +1 -1
- package/dist/mint-components/{p-f5f97cd2.system.js → p-643749bc.system.js} +1 -1
- package/dist/mint-components/p-692bacf3.js +1 -0
- package/dist/mint-components/{p-9ec99ced.js → p-6951663b.js} +1 -1
- package/dist/mint-components/{p-674d9089.system.entry.js → p-6b076bae.system.entry.js} +1 -1
- package/dist/mint-components/p-6f6d5370.entry.js +25 -0
- package/dist/mint-components/{p-8846046e.entry.js → p-6fb9b5ab.entry.js} +1 -1
- package/dist/mint-components/{p-65ed872f.entry.js → p-711bc624.entry.js} +1 -1
- package/dist/mint-components/{p-641bdf0e.system.entry.js → p-7b4eb94e.system.entry.js} +1 -1
- package/dist/mint-components/{p-734dde9b.system.js → p-82505f6e.system.js} +1 -1
- package/dist/mint-components/p-8c69fc5f.system.entry.js +1 -0
- package/dist/mint-components/{p-3a7e5207.entry.js → p-97852163.entry.js} +1 -1
- package/dist/mint-components/{p-b11d89bd.entry.js → p-9aadc253.entry.js} +1 -1
- package/dist/mint-components/p-9d126299.system.entry.js +1 -0
- package/dist/mint-components/{p-b70ef2f5.system.entry.js → p-a2533860.system.entry.js} +1 -1
- package/dist/mint-components/{p-8a9939ef.system.entry.js → p-a67cbe0b.system.entry.js} +1 -1
- package/dist/mint-components/p-a99658e0.entry.js +1 -0
- package/dist/mint-components/{p-bf89cd86.system.js → p-acb26ec0.system.js} +1 -1
- package/dist/mint-components/{p-4aed3645.entry.js → p-b2bf7fcb.entry.js} +1 -1
- package/dist/mint-components/p-b2c04108.system.entry.js +1 -0
- package/dist/mint-components/{p-d9cfd2ad.js → p-b6da4fa0.js} +1 -1
- package/dist/mint-components/{p-f45be408.system.js → p-b7d13172.system.js} +1 -1
- package/dist/mint-components/{p-0de7e5ec.entry.js → p-b9bccc55.entry.js} +1 -1
- package/dist/mint-components/{p-85029918.entry.js → p-bad50dc1.entry.js} +1 -1
- package/dist/mint-components/{p-8aa5f1ee.entry.js → p-bb627d95.entry.js} +2 -2
- package/dist/mint-components/p-bcbac6f3.system.entry.js +1 -0
- package/dist/mint-components/{p-adb13f08.system.entry.js → p-d513848f.system.entry.js} +1 -1
- package/dist/mint-components/{p-e5d72a05.entry.js → p-d5f1df29.entry.js} +1 -1
- package/dist/mint-components/p-d785a297.system.entry.js +1 -0
- package/dist/mint-components/{p-d577a32d.js → p-d87982c1.js} +1 -1
- package/dist/mint-components/{p-0ac9e4d2.entry.js → p-d97c6f67.entry.js} +1 -1
- package/dist/mint-components/{p-c6fc6ce5.js → p-dec5f3fc.js} +1 -1
- package/dist/mint-components/{p-884a1b19.entry.js → p-e539fed3.entry.js} +1 -1
- package/dist/mint-components/{p-dcddb256.system.entry.js → p-e992648a.system.entry.js} +1 -1
- package/dist/mint-components/{p-f8520da2.system.entry.js → p-ebb487d0.system.entry.js} +1 -1
- package/dist/mint-components/{p-a8b53df1.system.entry.js → p-f0e0d0b9.system.entry.js} +1 -1
- package/dist/mint-components/p-f1da802b.entry.js +11 -0
- package/dist/mint-components/{p-a7b66236.system.entry.js → p-f2140374.system.entry.js} +1 -1
- package/dist/mint-components/{p-cd207258.js → p-f2ee69f1.js} +1 -1
- package/dist/mint-components/{p-b35ceac8.system.entry.js → p-f94788ab.system.entry.js} +1 -1
- package/dist/mint-components/{p-3191e4a8.entry.js → p-fe3fe6b6.entry.js} +1 -1
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/cjs/ErrorView-0f564e2a.js +0 -35
- package/dist/esm/ErrorView-b396dcc7.js +0 -33
- package/dist/esm-es5/ErrorView-b396dcc7.js +0 -1
- package/dist/esm-es5/sqm-qr-code-view-7be282fd.js +0 -1
- package/dist/esm-es5/utils-334c1e34.js +0 -1
- package/dist/mint-components/p-0ea0f9e3.system.entry.js +0 -1
- package/dist/mint-components/p-1b99001f.js +0 -1
- package/dist/mint-components/p-2b819683.entry.js +0 -9
- package/dist/mint-components/p-6333265f.system.js +0 -1
- package/dist/mint-components/p-65fec8a8.entry.js +0 -25
- package/dist/mint-components/p-6aaf431f.system.entry.js +0 -1
- package/dist/mint-components/p-6d20d500.system.js +0 -1
- package/dist/mint-components/p-6d2d4f7c.entry.js +0 -1
- package/dist/mint-components/p-73213344.system.entry.js +0 -1
- package/dist/mint-components/p-7f54c9f9.entry.js +0 -11
- package/dist/mint-components/p-84b95bd2.system.js +0 -1
- package/dist/mint-components/p-89854fe2.system.entry.js +0 -1
- package/dist/mint-components/p-a18e9043.system.entry.js +0 -1
- package/dist/mint-components/p-af125497.entry.js +0 -93
- package/dist/mint-components/p-c00c4e19.system.entry.js +0 -1
- package/dist/mint-components/p-c8524b9c.entry.js +0 -1
- package/dist/mint-components/p-d2d15c86.system.entry.js +0 -1
- package/dist/mint-components/p-d6bc1680.js +0 -1
- package/dist/mint-components/p-d9a18e00.system.entry.js +0 -1
- package/dist/mint-components/p-fa89e7d4.entry.js +0 -1
package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js
CHANGED
|
@@ -57,47 +57,6 @@ const style = {
|
|
|
57
57
|
DescriptionText: {
|
|
58
58
|
color: "var(--sqm-text-subdued)",
|
|
59
59
|
},
|
|
60
|
-
AlertContainer: {
|
|
61
|
-
"&::part(base)": {
|
|
62
|
-
backgroundColor: "var(--sqm-danger-color-background)",
|
|
63
|
-
border: "none",
|
|
64
|
-
padding: "0 16px",
|
|
65
|
-
marginBottom: "16px",
|
|
66
|
-
},
|
|
67
|
-
"& sl-icon::part(base)": {
|
|
68
|
-
color: "var(--sqm-danger-color-icon)",
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
PartnerAlertContainer: {
|
|
72
|
-
"&::part(base)": {
|
|
73
|
-
backgroundColor: "var(--sqm-informative-color-background)",
|
|
74
|
-
borderTop: "none",
|
|
75
|
-
padding: "0 16px",
|
|
76
|
-
border: "none",
|
|
77
|
-
color: "var(--sqm-informative-color-text)",
|
|
78
|
-
marginBottom: "16px",
|
|
79
|
-
},
|
|
80
|
-
"& sl-icon::part(base)": {
|
|
81
|
-
color: "var(--sqm-informative-color-icon)",
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
InfoAlert: {
|
|
85
|
-
marginTop: "var(--sl-spacing-large)",
|
|
86
|
-
"&::part(base)": {
|
|
87
|
-
backgroundColor: "transparent",
|
|
88
|
-
borderTop: "none",
|
|
89
|
-
padding: "0px",
|
|
90
|
-
border: "none",
|
|
91
|
-
},
|
|
92
|
-
"&::part(message)": {
|
|
93
|
-
alignItems: "center",
|
|
94
|
-
padding: "var(--sl-spacing-small)",
|
|
95
|
-
whiteSpace: "nowrap",
|
|
96
|
-
},
|
|
97
|
-
"& sl-icon::part(base)": {
|
|
98
|
-
color: "var(--sl-color-yellow-500)",
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
60
|
InfoWarningIcon: {
|
|
102
61
|
height: "26px",
|
|
103
62
|
width: "26px",
|
|
@@ -148,11 +107,9 @@ const vanillaStyle = `
|
|
|
148
107
|
a {
|
|
149
108
|
color: inherit;
|
|
150
109
|
text-decoration: underline;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
a:hover {
|
|
154
110
|
cursor: pointer;
|
|
155
111
|
}
|
|
112
|
+
|
|
156
113
|
* {
|
|
157
114
|
margin: 0;
|
|
158
115
|
padding: 0;
|
|
@@ -180,30 +137,24 @@ export const IndirectTaxFormView = (props) => {
|
|
|
180
137
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
181
138
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
182
139
|
states.loadingError && (h("div", null,
|
|
183
|
-
h("
|
|
184
|
-
h("
|
|
185
|
-
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
186
|
-
h("br", null),
|
|
140
|
+
h("sqm-form-message", { type: "error" },
|
|
141
|
+
h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
187
142
|
intl.formatMessage({
|
|
188
143
|
id: "loadingErrorAlertDescription",
|
|
189
144
|
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
190
145
|
}, {
|
|
191
146
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
192
147
|
})))),
|
|
193
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("
|
|
194
|
-
h("
|
|
195
|
-
h("strong", null, text.error.generalTitle),
|
|
196
|
-
h("br", null),
|
|
148
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
|
|
149
|
+
h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
197
150
|
intl.formatMessage({
|
|
198
151
|
id: "generalDescription",
|
|
199
152
|
defaultMessage: text.error.generalDescription,
|
|
200
153
|
}, {
|
|
201
154
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
202
155
|
}))),
|
|
203
|
-
states.isPartner && (h("
|
|
204
|
-
h("
|
|
205
|
-
h("strong", null, text.isPartnerAlertHeader),
|
|
206
|
-
h("br", null),
|
|
156
|
+
states.isPartner && (h("sqm-form-message", { type: "info" },
|
|
157
|
+
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
207
158
|
intl.formatMessage({
|
|
208
159
|
id: "isPartnerAlertDescription",
|
|
209
160
|
defaultMessage: text.isPartnerAlertDescription,
|
|
@@ -224,14 +175,12 @@ export const IndirectTaxFormView = (props) => {
|
|
|
224
175
|
text.otherRegion,
|
|
225
176
|
h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
226
177
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
227
|
-
h("
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
234
|
-
})),
|
|
178
|
+
h("sqm-form-message", { type: "info" }, intl.formatMessage({
|
|
179
|
+
id: "cannotChangeInfoAlert",
|
|
180
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
181
|
+
}, {
|
|
182
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
183
|
+
})),
|
|
235
184
|
h("div", { class: classes.BtnContainer },
|
|
236
185
|
h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
237
186
|
h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
@@ -139,12 +139,6 @@ const style = {
|
|
|
139
139
|
color: "var(--sqm-informative-color-text)",
|
|
140
140
|
},
|
|
141
141
|
},
|
|
142
|
-
AlertContent: {
|
|
143
|
-
display: "flex",
|
|
144
|
-
alignItems: "flex-start",
|
|
145
|
-
justifyContent: "flex-start",
|
|
146
|
-
flexDirection: "column",
|
|
147
|
-
},
|
|
148
142
|
Container: {
|
|
149
143
|
display: "flex",
|
|
150
144
|
flexDirection: "column",
|
|
@@ -10,33 +10,6 @@ const style = {
|
|
|
10
10
|
margin: "0",
|
|
11
11
|
marginBottom: "var(--sl-spacing-small)",
|
|
12
12
|
},
|
|
13
|
-
ErrorAlertContainer: {
|
|
14
|
-
"&::part(base)": {
|
|
15
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
16
|
-
borderTop: "none",
|
|
17
|
-
},
|
|
18
|
-
"& sl-icon::part(base)": {
|
|
19
|
-
color: "var(--sl-color-danger-500)",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
WarningAlertContainer: {
|
|
23
|
-
"&::part(base)": {
|
|
24
|
-
backgroundColor: "var(--sl-color-yellow-100)",
|
|
25
|
-
borderTop: "none",
|
|
26
|
-
},
|
|
27
|
-
"& sl-icon::part(base)": {
|
|
28
|
-
color: "var(--sl-color-danger-500)",
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
InfoAlertContainer: {
|
|
32
|
-
"&::part(base)": {
|
|
33
|
-
backgroundColor: "var(--sl-color-sky-100)",
|
|
34
|
-
borderTop: "none",
|
|
35
|
-
},
|
|
36
|
-
"& sl-icon::part(base)": {
|
|
37
|
-
color: "var(--sl-color-blue-500)",
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
13
|
Dialog: {
|
|
41
14
|
"&::part(panel)": {
|
|
42
15
|
height: "600px",
|
|
@@ -52,6 +25,13 @@ const style = {
|
|
|
52
25
|
"&::part(footer)": {},
|
|
53
26
|
},
|
|
54
27
|
};
|
|
28
|
+
const vanillaStyle = `
|
|
29
|
+
a {
|
|
30
|
+
color: inherit;
|
|
31
|
+
text-decoration: underline;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
55
35
|
const sheet = createStyleSheet(style);
|
|
56
36
|
const styleString = sheet.toString();
|
|
57
37
|
export function PayoutStatusAlertView(props) {
|
|
@@ -63,8 +43,6 @@ export function PayoutStatusAlertView(props) {
|
|
|
63
43
|
description: text.errorDescription,
|
|
64
44
|
buttonText: null,
|
|
65
45
|
alertType: "critical",
|
|
66
|
-
icon: "exclamation-triangle",
|
|
67
|
-
class: sheet.classes.ErrorAlertContainer,
|
|
68
46
|
};
|
|
69
47
|
switch (status) {
|
|
70
48
|
case "INFORMATION_REQUIRED":
|
|
@@ -73,8 +51,6 @@ export function PayoutStatusAlertView(props) {
|
|
|
73
51
|
description: text.informationRequiredDescription,
|
|
74
52
|
buttonText: text.informationRequiredButtonText,
|
|
75
53
|
alertType: "info",
|
|
76
|
-
icon: "info-circle",
|
|
77
|
-
class: sheet.classes.InfoAlertContainer,
|
|
78
54
|
};
|
|
79
55
|
case "VERIFICATION:REQUIRED":
|
|
80
56
|
return {
|
|
@@ -87,8 +63,6 @@ export function PayoutStatusAlertView(props) {
|
|
|
87
63
|
}),
|
|
88
64
|
buttonText: text.verificationRequiredButtonText,
|
|
89
65
|
alertType: "warning",
|
|
90
|
-
icon: "exclamation-triangle",
|
|
91
|
-
class: sheet.classes.WarningAlertContainer,
|
|
92
66
|
};
|
|
93
67
|
case "VERIFICATION:INTERNAL":
|
|
94
68
|
return {
|
|
@@ -100,8 +74,6 @@ export function PayoutStatusAlertView(props) {
|
|
|
100
74
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
101
75
|
}),
|
|
102
76
|
alertType: "warning",
|
|
103
|
-
icon: "exclamation-triangle",
|
|
104
|
-
class: sheet.classes.WarningAlertContainer,
|
|
105
77
|
};
|
|
106
78
|
case "VERIFICATION:REVIEW":
|
|
107
79
|
return {
|
|
@@ -113,8 +85,6 @@ export function PayoutStatusAlertView(props) {
|
|
|
113
85
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
114
86
|
}),
|
|
115
87
|
alertType: "warning",
|
|
116
|
-
icon: "exclamation-triangle",
|
|
117
|
-
class: sheet.classes.WarningAlertContainer,
|
|
118
88
|
};
|
|
119
89
|
case "VERIFICATION:FAILED":
|
|
120
90
|
return {
|
|
@@ -126,8 +96,6 @@ export function PayoutStatusAlertView(props) {
|
|
|
126
96
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
127
97
|
}),
|
|
128
98
|
alertType: "critical",
|
|
129
|
-
icon: "exclamation-octagon",
|
|
130
|
-
class: sheet.classes.ErrorAlertContainer,
|
|
131
99
|
};
|
|
132
100
|
case "HOLD":
|
|
133
101
|
return {
|
|
@@ -140,8 +108,6 @@ export function PayoutStatusAlertView(props) {
|
|
|
140
108
|
}),
|
|
141
109
|
buttonText: null,
|
|
142
110
|
alertType: "warning",
|
|
143
|
-
icon: "exclamation-triangle",
|
|
144
|
-
class: sheet.classes.WarningAlertContainer,
|
|
145
111
|
};
|
|
146
112
|
default:
|
|
147
113
|
return;
|
|
@@ -150,11 +116,15 @@ export function PayoutStatusAlertView(props) {
|
|
|
150
116
|
function getButton(status) {
|
|
151
117
|
switch (status) {
|
|
152
118
|
case "INFORMATION_REQUIRED":
|
|
153
|
-
return data.type === "SquatchJS2" ? (h("
|
|
119
|
+
return data.type === "SquatchJS2" ? (h("div", { style: { paddingTop: "10px" } },
|
|
120
|
+
h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" }))) : data.type === "SquatchPortal" ? (h("div", { style: { paddingTop: "10px" } },
|
|
121
|
+
h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText))) : (
|
|
154
122
|
// Demo case
|
|
155
|
-
h("
|
|
123
|
+
h("div", { style: { paddingTop: "10px" } },
|
|
124
|
+
h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base" }, text.informationRequiredButtonText)));
|
|
156
125
|
case "VERIFICATION:REQUIRED":
|
|
157
|
-
return (h("
|
|
126
|
+
return (h("div", { style: { paddingTop: "10px" } },
|
|
127
|
+
h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText)));
|
|
158
128
|
default:
|
|
159
129
|
return;
|
|
160
130
|
}
|
|
@@ -168,9 +138,9 @@ export function PayoutStatusAlertView(props) {
|
|
|
168
138
|
}
|
|
169
139
|
return (h("div", { part: "sqm-base" },
|
|
170
140
|
h("style", { type: "text/css" }, styleString),
|
|
171
|
-
h("
|
|
172
|
-
|
|
173
|
-
h("
|
|
174
|
-
h("p", {
|
|
141
|
+
h("style", { type: "text/css" }, vanillaStyle),
|
|
142
|
+
h("sqm-form-message", { type: alertDetails.alertType },
|
|
143
|
+
h("p", { part: "alert-title" }, alertDetails.header),
|
|
144
|
+
h("p", { part: "alert-description" }, alertDetails.description),
|
|
175
145
|
getButton(states.status))));
|
|
176
146
|
}
|
|
@@ -1,30 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { createStyleSheet } from "../../../styling/JSS";
|
|
3
|
-
const styles = {
|
|
4
|
-
Alert: {
|
|
5
|
-
"&::part(base)": {
|
|
6
|
-
backgroundColor: "var(--sl-color-danger-100)",
|
|
7
|
-
border: "var(--sqm-border-thickness, 1px) solid var(--sl-color-danger-200)",
|
|
8
|
-
padding: "0 16px",
|
|
9
|
-
},
|
|
10
|
-
"& sl-icon": {
|
|
11
|
-
margin: 0,
|
|
12
|
-
},
|
|
13
|
-
"& sl-icon::part(base)": {
|
|
14
|
-
color: "var(--sl-color-danger-500)",
|
|
15
|
-
margin: 0,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
2
|
export const ErrorView = (props) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return (h("div", null,
|
|
24
|
-
h("style", null, styleString),
|
|
25
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: classes.Alert },
|
|
26
|
-
h("sl-icon", { slot: "icon", name: "exclamation-octagon", class: "Error" }),
|
|
27
|
-
h("strong", null, props.loadingErrorAlertHeader),
|
|
28
|
-
h("br", null),
|
|
29
|
-
props.loadingErrorAlertDescription)));
|
|
3
|
+
return (h("sqm-form-message", { type: "error" },
|
|
4
|
+
h("p", { part: "alert-title" }, props.loadingErrorAlertHeader),
|
|
5
|
+
h("p", { part: "alert-description" }, props.loadingErrorAlertDescription)));
|
|
30
6
|
};
|
|
@@ -5,7 +5,6 @@ import deepmerge from "deepmerge";
|
|
|
5
5
|
import { parseStates } from "../../../utils/parseStates";
|
|
6
6
|
import { getProps } from "../../../utils/utils";
|
|
7
7
|
import { TAX_CONTEXT_NAMESPACE } from "../data";
|
|
8
|
-
import { ErrorView } from "./ErrorView";
|
|
9
8
|
import { extractProps } from "./extractProps";
|
|
10
9
|
import LoadingView from "./LoadingView";
|
|
11
10
|
import { useTaxAndCash } from "./useTaxAndCash";
|
|
@@ -1075,7 +1074,9 @@ export class TaxAndCashMonolith {
|
|
|
1075
1074
|
case "/dashboard":
|
|
1076
1075
|
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), extractProps(props, "sqm-tax-and-cash-dashboard_"))));
|
|
1077
1076
|
case "/error":
|
|
1078
|
-
return (h(
|
|
1077
|
+
return (h("sqm-form-message", { type: "error" },
|
|
1078
|
+
h("p", { part: "alert-title" }, this.loadingErrorAlertHeader),
|
|
1079
|
+
h("p", { part: "alert-description" }, this.loadingErrorAlertDescription)));
|
|
1079
1080
|
}
|
|
1080
1081
|
};
|
|
1081
1082
|
return getStep() || h(LoadingView, null);
|
|
@@ -1,54 +1,26 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
import { createStyleSheet } from "../../../styling/JSS";
|
|
4
|
+
import { capitalizeFirstLetter } from "../../../utils/utils";
|
|
4
5
|
const style = {
|
|
5
|
-
|
|
6
|
+
DangerBadge: {
|
|
6
7
|
"&::part(base)": {
|
|
7
|
-
backgroundColor: "var(--sqm-danger-color-
|
|
8
|
-
border: "none",
|
|
9
|
-
},
|
|
10
|
-
"& sl-icon::part(base)": {
|
|
8
|
+
backgroundColor: "var(--sqm-danger-color-icon)",
|
|
11
9
|
color: "var(--sqm-danger-color-text)",
|
|
12
10
|
},
|
|
13
11
|
},
|
|
14
|
-
|
|
12
|
+
SuccessBadge: {
|
|
15
13
|
"&::part(base)": {
|
|
16
|
-
backgroundColor: "var(--sqm-
|
|
17
|
-
|
|
18
|
-
maxWidth: "600px",
|
|
19
|
-
},
|
|
20
|
-
"& sl-icon::part(base)": {
|
|
21
|
-
color: "var(--sqm-warning-color-text)",
|
|
14
|
+
backgroundColor: "var(--sqm-success-color-icon)",
|
|
15
|
+
color: "var(--sqm-success-color-text)",
|
|
22
16
|
},
|
|
23
17
|
},
|
|
24
|
-
|
|
25
|
-
marginLeft: "-20px",
|
|
18
|
+
WarningBadge: {
|
|
26
19
|
"&::part(base)": {
|
|
27
|
-
|
|
28
|
-
border: "none",
|
|
29
|
-
backgroundColor: "transparent",
|
|
30
|
-
},
|
|
31
|
-
"& sl-icon::part(base)": {
|
|
20
|
+
backgroundColor: "var(--sqm-warning-color-icon)",
|
|
32
21
|
color: "var(--sqm-warning-color-text)",
|
|
33
22
|
},
|
|
34
23
|
},
|
|
35
|
-
ErrorHoldAlertContainer: {
|
|
36
|
-
marginLeft: "-20px",
|
|
37
|
-
"&::part(base)": {
|
|
38
|
-
maxWidth: "850px",
|
|
39
|
-
border: "none",
|
|
40
|
-
backgroundColor: "transparent",
|
|
41
|
-
},
|
|
42
|
-
"& sl-icon::part(base)": {
|
|
43
|
-
color: "var(--sqm-danger-color-icon)",
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
ExpiringSoonAlertContainer: {
|
|
47
|
-
"&::part(base)": {
|
|
48
|
-
backgroundColor: "var(--sqm-warning-color-background)",
|
|
49
|
-
border: "none",
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
24
|
BankingInformationContainer: {
|
|
53
25
|
maxWidth: "700px",
|
|
54
26
|
},
|
|
@@ -164,18 +136,56 @@ const style = {
|
|
|
164
136
|
fontSize: "var(--sl-font-size-medium)",
|
|
165
137
|
marginTop: "0",
|
|
166
138
|
},
|
|
139
|
+
WarningButton: {
|
|
140
|
+
"&::part(base)": {
|
|
141
|
+
marginTop: "20px",
|
|
142
|
+
borderColor: "var(--sqm-warning-color-border)",
|
|
143
|
+
color: "var(--sqm-warning-color-text)",
|
|
144
|
+
background: "var(--sqm-warning-color-background)",
|
|
145
|
+
"&:hover": {
|
|
146
|
+
background: "var(--sqm-warning-color-icon)",
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
ErrorButton: {
|
|
151
|
+
"&::part(base)": {
|
|
152
|
+
marginTop: "20px",
|
|
153
|
+
borderColor: "var(--sqm-danger-color-border)",
|
|
154
|
+
color: "var(--sqm-danger-color-text)",
|
|
155
|
+
background: "var(--sqm-danger-color-background)",
|
|
156
|
+
"&:hover": {
|
|
157
|
+
background: "var(--sqm-danger-color-icon)",
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
SuccessButton: {
|
|
162
|
+
"&::part(base)": {
|
|
163
|
+
marginTop: "20px",
|
|
164
|
+
borderColor: "var(--sqm-success-color-border)",
|
|
165
|
+
color: "var(--sqm-success-color-text)",
|
|
166
|
+
background: "var(--sqm-success-color-background)",
|
|
167
|
+
"&:hover": {
|
|
168
|
+
background: "var(--sqm-success-color-icon)",
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
167
172
|
Dialog: {
|
|
168
173
|
"&::part(panel)": {
|
|
169
174
|
maxWidth: "420px",
|
|
170
175
|
},
|
|
176
|
+
"&::part(header)": {
|
|
177
|
+
display: "flex",
|
|
178
|
+
alignItems: "center",
|
|
179
|
+
justifyContent: "center",
|
|
180
|
+
paddingTop: "var(--sl-spacing-large)",
|
|
181
|
+
},
|
|
171
182
|
"&::part(close-button)": {
|
|
172
183
|
marginBottom: "var(--sl-spacing-xx-large)",
|
|
173
184
|
},
|
|
174
185
|
"&::part(title)": {
|
|
175
|
-
fontSize: "var(--sl-font-size-
|
|
186
|
+
fontSize: "var(--sl-font-size-large)",
|
|
176
187
|
fontWeight: "600",
|
|
177
|
-
|
|
178
|
-
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
188
|
+
padding: "0px var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
179
189
|
},
|
|
180
190
|
"&::part(body)": {
|
|
181
191
|
padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
@@ -192,10 +202,20 @@ const style = {
|
|
|
192
202
|
},
|
|
193
203
|
DialogButton: { margin: "auto", width: "100%" },
|
|
194
204
|
};
|
|
205
|
+
const vanillaStyle = `
|
|
206
|
+
* {
|
|
207
|
+
font-family: var(--sqm-primary-font);
|
|
208
|
+
}
|
|
209
|
+
a {
|
|
210
|
+
color: inherit;
|
|
211
|
+
text-decoration: underline;
|
|
212
|
+
cursor: pointer;
|
|
213
|
+
}
|
|
214
|
+
`;
|
|
195
215
|
const sheet = createStyleSheet(style);
|
|
196
216
|
const styleString = sheet.toString();
|
|
197
217
|
export const TaxAndCashDashboardView = (props) => {
|
|
198
|
-
var _a
|
|
218
|
+
var _a;
|
|
199
219
|
const { states, text, callbacks, slots } = props;
|
|
200
220
|
function getAlert(status) {
|
|
201
221
|
switch (status) {
|
|
@@ -210,8 +230,6 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
210
230
|
}),
|
|
211
231
|
buttonText: text.verificationRequiredButtonText,
|
|
212
232
|
alertType: "warning",
|
|
213
|
-
icon: "exclamation-triangle",
|
|
214
|
-
class: sheet.classes.WarningHoldAlertContainer,
|
|
215
233
|
};
|
|
216
234
|
case "VERIFICATION:INTERNAL":
|
|
217
235
|
return {
|
|
@@ -223,8 +241,6 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
223
241
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
224
242
|
}),
|
|
225
243
|
alertType: "warning",
|
|
226
|
-
icon: "exclamation-triangle",
|
|
227
|
-
class: sheet.classes.WarningHoldAlertContainer,
|
|
228
244
|
};
|
|
229
245
|
case "VERIFICATION:REVIEW":
|
|
230
246
|
return {
|
|
@@ -236,8 +252,6 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
236
252
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
237
253
|
}),
|
|
238
254
|
alertType: "warning",
|
|
239
|
-
icon: "exclamation-triangle",
|
|
240
|
-
class: sheet.classes.WarningHoldAlertContainer,
|
|
241
255
|
};
|
|
242
256
|
case "VERIFICATION:FAILED":
|
|
243
257
|
return {
|
|
@@ -248,9 +262,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
248
262
|
}, {
|
|
249
263
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
250
264
|
}),
|
|
251
|
-
alertType: "
|
|
252
|
-
icon: "exclamation-octagon",
|
|
253
|
-
class: sheet.classes.ErrorHoldAlertContainer,
|
|
265
|
+
alertType: "error",
|
|
254
266
|
};
|
|
255
267
|
case "HOLD":
|
|
256
268
|
return {
|
|
@@ -263,8 +275,6 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
263
275
|
}),
|
|
264
276
|
buttonText: null,
|
|
265
277
|
alertType: "warning",
|
|
266
|
-
icon: "exclamation-triangle",
|
|
267
|
-
class: sheet.classes.WarningHoldAlertContainer,
|
|
268
278
|
};
|
|
269
279
|
default:
|
|
270
280
|
return;
|
|
@@ -272,7 +282,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
272
282
|
}
|
|
273
283
|
const statusMap = {
|
|
274
284
|
NOT_VERIFIED: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
275
|
-
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
285
|
+
h("sl-badge", { class: sheet.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
|
|
276
286
|
h("p", null, intl.formatMessage({
|
|
277
287
|
id: `badgeTextAwaitingReview`,
|
|
278
288
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
@@ -280,7 +290,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
280
290
|
dateSubmitted: states.dateSubmitted,
|
|
281
291
|
})))),
|
|
282
292
|
ACTIVE: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
283
|
-
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
293
|
+
h("sl-badge", { class: sheet.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
|
|
284
294
|
h("p", null, intl.formatMessage({
|
|
285
295
|
id: `badgeTextSubmittedOn`,
|
|
286
296
|
defaultMessage: states.documentType === "W9"
|
|
@@ -290,13 +300,12 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
290
300
|
dateSubmitted: states.dateSubmitted,
|
|
291
301
|
})))),
|
|
292
302
|
INACTIVE: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
293
|
-
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
303
|
+
h("sl-badge", { class: sheet.classes.DangerBadge, type: "danger", pill: true }, text.statusTextNotActive),
|
|
294
304
|
h("p", null, text.invalidForm))),
|
|
295
305
|
};
|
|
296
306
|
const alertMap = {
|
|
297
|
-
INACTIVE: (h("
|
|
298
|
-
h("
|
|
299
|
-
h("strong", null, intl.formatMessage({
|
|
307
|
+
INACTIVE: (h("sqm-form-message", { type: "error" },
|
|
308
|
+
h("p", { part: "alert-title" }, intl.formatMessage({
|
|
300
309
|
id: `taxAlertHeaderNotActive`,
|
|
301
310
|
defaultMessage: states.documentType === "W9"
|
|
302
311
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -304,7 +313,6 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
304
313
|
}, {
|
|
305
314
|
documentType: states.documentTypeString,
|
|
306
315
|
})),
|
|
307
|
-
h("br", null),
|
|
308
316
|
intl.formatMessage({
|
|
309
317
|
id: `taxAlertMessage`,
|
|
310
318
|
defaultMessage: states.documentType === "W9"
|
|
@@ -342,39 +350,35 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
342
350
|
});
|
|
343
351
|
}
|
|
344
352
|
};
|
|
353
|
+
const alert = getAlert(states.payoutStatus);
|
|
345
354
|
return (h("div", null,
|
|
346
355
|
h("div", null,
|
|
347
356
|
h("style", { type: "text/css" }, styleString),
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
|
|
360
|
-
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
361
|
-
h("strong", null, text.error.generalTitle),
|
|
362
|
-
h("br", null),
|
|
357
|
+
h("style", { type: "text/css" }, vanillaStyle),
|
|
358
|
+
states.loadingError && (h("sqm-form-message", { type: "error" },
|
|
359
|
+
h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
|
|
360
|
+
intl.formatMessage({
|
|
361
|
+
id: "loadingErrorAlertDescription",
|
|
362
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
363
|
+
}, {
|
|
364
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
365
|
+
}))),
|
|
366
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
|
|
367
|
+
h("p", { part: "alert-title" }, text.error.generalTitle),
|
|
363
368
|
intl.formatMessage({
|
|
364
369
|
id: "generalDescription",
|
|
365
370
|
defaultMessage: text.error.generalDescription,
|
|
366
371
|
}, {
|
|
367
372
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
368
373
|
}))),
|
|
369
|
-
|
|
370
|
-
h("
|
|
371
|
-
h("
|
|
372
|
-
h("
|
|
373
|
-
getAlert(states.payoutStatus).buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
|
|
374
|
+
alert && (h("sqm-form-message", { type: alert.alertType },
|
|
375
|
+
h("p", { part: "alert-title" }, alert.header),
|
|
376
|
+
h("p", { part: "alert-description" }, alert.description),
|
|
377
|
+
alert.buttonText && (h("sl-button", { class: sheet.classes[`${capitalizeFirstLetter(alert.alertType)}Button`], loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alert.buttonText)))),
|
|
374
378
|
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
375
379
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
376
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
377
|
-
h("sl-button", { slot: "footer", type: "
|
|
380
|
+
h("sl-button", { slot: "footer", type: "primary", exportparts: "base: primarybutton-base", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
381
|
+
h("sl-button", { slot: "footer", type: "secondary", exportparts: "base: secondarybutton-base", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
378
382
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
379
383
|
h("div", null,
|
|
380
384
|
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
@@ -382,7 +386,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
382
386
|
h("div", { class: sheet.classes.BankingInformationContainer },
|
|
383
387
|
slots.payoutDetailsCardSlot,
|
|
384
388
|
!states.loading && (h("p", { class: sheet.classes.DescriptionText }, text.payoutFromImpact)),
|
|
385
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
389
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
386
390
|
h("div", { class: sheet.classes.TaxDocumentsContainer },
|
|
387
391
|
h("div", null, states.loading ? (h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
|
|
388
392
|
h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
|
|
@@ -398,7 +402,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
398
402
|
documentType: states.documentTypeString,
|
|
399
403
|
})),
|
|
400
404
|
h("span", { class: sheet.classes.StatusAlert }, statusMap[states.status]))),
|
|
401
|
-
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "
|
|
405
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { style: { marginTop: "20px" }, disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "primary", exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
402
406
|
h("div", { class: sheet.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
|
|
403
407
|
h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
|
|
404
408
|
h("sl-skeleton", { class: sheet.classes.SkeletonTwo }))) : (h("div", null,
|