@saasquatch/mint-components 2.0.3 → 2.0.4-10
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-659a139c.js → IndirectTaxDetailsView-d39b895d.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-fbc33c53.js → ShadowViewAddon-7066fae7.js} +25 -27
- package/dist/cjs/{data-16106637.js → data-44260010.js} +29 -2
- package/dist/cjs/{global-e862bfd4.js → global-94f36ad7.js} +55 -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 +355 -102
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +232 -22
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +7 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-form-message.cjs.entry.js → sqm-form-message_2.cjs.entry.js} +50 -0
- package/dist/cjs/sqm-header-logo.cjs.entry.js +15 -2
- package/dist/cjs/{sqm-lead-checkbox-field-view-dca40eb4.js → sqm-lead-checkbox-field-view-c0123bfa.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-lead-input-field-view-2006001f.js → sqm-lead-input-field-view-6983eaa1.js} +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +3 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-1745d9a2.js → sqm-portal-email-verification-view-d968178a.js} +4 -6
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-5c5e29b1.js → sqm-portal-profile-view-f74b8d6c.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-qr-code-view-4ccf89da.js → sqm-qr-code-view-a2889aee.js} +1 -5
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- 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 +108 -54
- package/dist/cjs/{useLeadFormState-91999606.js → useLeadFormState-f8b33c07.js} +1 -1
- package/dist/cjs/{utils-4eb18a29.js → utils-5ecfecd9.js} +18 -30
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +5 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +30 -0
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +85 -5
- package/dist/collection/components/sqm-invoice-table/InvoiceTable.stories.js +5 -5
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +1 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +5 -7
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +2 -2
- package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js +1 -0
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +3 -5
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +3 -3
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -5
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +1 -1
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +5 -5
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +8 -8
- package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +5 -5
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
- package/dist/collection/components/sqm-skeleton/Skeleton.stories.js +16 -0
- package/dist/collection/components/sqm-skeleton/sqm-skeleton.js +90 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +12 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +5 -5
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +6 -3
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +10 -5
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +11 -5
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +46 -40
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +5 -5
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +13 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +98 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +361 -8
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +29 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/LoadingView.js +17 -29
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +311 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +101 -16
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +310 -10
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +7 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +22 -13
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +100 -9
- package/dist/collection/global/styles.js +55 -54
- package/dist/collection/global/styles.ts +6 -1
- package/dist/collection/tables/TableSlots.js +6 -6
- package/dist/esm/{IndirectTaxDetailsView-8dec05e4.js → IndirectTaxDetailsView-a7dd6e4c.js} +2 -2
- package/dist/esm/{ShadowViewAddon-7a242b65.js → ShadowViewAddon-fe2896cb.js} +25 -27
- package/dist/esm/{data-acdb790f.js → data-68816061.js} +29 -2
- package/dist/esm/{global-58a69018.js → global-536c422d.js} +55 -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 +355 -102
- package/dist/esm/sqm-big-stat_47.entry.js +232 -22
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +7 -4
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-form-message.entry.js → sqm-form-message_2.entry.js} +50 -1
- package/dist/esm/sqm-header-logo.entry.js +15 -2
- package/dist/esm/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-5c387852.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
- package/dist/esm/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-fa2488c9.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-5fb1a99e.js → sqm-portal-email-verification-view-8bbe5fcf.js} +4 -6
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-9848caf1.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/{sqm-qr-code-view-ea505213.js → sqm-qr-code-view-804b8bb6.js} +1 -5
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- 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 +108 -54
- package/dist/esm/{useLeadFormState-8d4b2620.js → useLeadFormState-5a6188da.js} +1 -1
- package/dist/esm/{utils-2695a43e.js → utils-fafc712f.js} +18 -30
- package/dist/esm-es5/{IndirectTaxDetailsView-8dec05e4.js → IndirectTaxDetailsView-a7dd6e4c.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-7a242b65.js → ShadowViewAddon-fe2896cb.js} +1 -1
- package/dist/esm-es5/{data-acdb790f.js → data-68816061.js} +2 -2
- package/dist/esm-es5/{global-58a69018.js → global-536c422d.js} +1 -1
- 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_47.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.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_2.entry.js +1 -0
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-81541e40.js → sqm-lead-checkbox-field-view-5c387852.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-d543d939.js → sqm-lead-input-field-view-fa2488c9.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-email-verification-view-8bbe5fcf.js +1 -0
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-e3aef106.js → sqm-portal-profile-view-9848caf1.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-qr-code-view-ea505213.js → sqm-qr-code-view-804b8bb6.js} +1 -1
- 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/{useLeadFormState-8d4b2620.js → useLeadFormState-5a6188da.js} +1 -1
- package/dist/esm-es5/utils-fafc712f.js +1 -0
- package/dist/mint-components/global/styles.ts +6 -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-c6e8086f.system.entry.js → p-000dc98f.system.entry.js} +1 -1
- package/dist/mint-components/{p-988f236f.js → p-005ee5bf.js} +1 -1
- package/dist/mint-components/{p-0c024cf0.system.entry.js → p-05e8620f.system.entry.js} +1 -1
- package/dist/mint-components/p-0d3803a2.js +1 -0
- package/dist/mint-components/p-10aea972.system.js +1 -0
- package/dist/mint-components/{p-13c6673e.system.js → p-19e407bd.system.js} +1 -1
- package/dist/mint-components/{p-4cc72a4e.system.js → p-1e156272.system.js} +1 -1
- package/dist/mint-components/{p-a470e203.entry.js → p-2192a6d7.entry.js} +2 -2
- package/dist/mint-components/p-28973c9b.entry.js +144 -0
- package/dist/mint-components/{p-6076dbaf.entry.js → p-30f37386.entry.js} +2 -2
- package/dist/mint-components/{p-1215518e.system.js → p-33fff374.system.js} +1 -1
- package/dist/mint-components/p-397a5adf.system.entry.js +1 -0
- package/dist/mint-components/p-3ad8e1af.system.js +1 -0
- package/dist/mint-components/{p-1aa9136c.js → p-4130caec.js} +1 -1
- package/dist/mint-components/p-438a0c91.system.entry.js +1 -0
- package/dist/mint-components/{p-5fbe6356.system.js → p-48bc3283.system.js} +1 -1
- package/dist/mint-components/{p-36a1fa33.system.entry.js → p-4b595fc3.system.entry.js} +1 -1
- package/dist/mint-components/{p-9d46f87f.system.entry.js → p-4e3303a8.system.entry.js} +1 -1
- package/dist/mint-components/p-566d837b.system.js +1 -0
- package/dist/mint-components/p-59332a30.entry.js +1 -0
- package/dist/mint-components/p-5d39d345.system.entry.js +1 -0
- package/dist/mint-components/{p-d7635535.system.js → p-648f881e.system.js} +1 -1
- package/dist/mint-components/{p-43ad51bc.entry.js → p-66effbef.entry.js} +1 -1
- package/dist/mint-components/p-69bd9de3.entry.js +106 -0
- package/dist/mint-components/{p-bf044217.js → p-78968e5f.js} +1 -1
- package/dist/mint-components/p-7c9520b7.system.js +1 -0
- package/dist/mint-components/p-7e550c3b.system.entry.js +1 -0
- package/dist/mint-components/{p-ad3ebf4d.entry.js → p-80196216.entry.js} +1 -1
- package/dist/mint-components/{p-58c79873.entry.js → p-8a24b9a9.entry.js} +1 -1
- package/dist/mint-components/p-8af550b9.system.entry.js +1 -0
- package/dist/mint-components/{p-deecffd0.system.entry.js → p-8f6b3391.system.entry.js} +1 -1
- package/dist/mint-components/{p-011c0990.system.entry.js → p-902b919d.system.entry.js} +1 -1
- package/dist/mint-components/p-92b5c376.js +157 -0
- package/dist/mint-components/p-a115c57a.system.entry.js +1 -0
- package/dist/mint-components/p-a2dbc9ad.system.js +6 -0
- package/dist/mint-components/{p-f5256738.system.entry.js → p-a45124c1.system.entry.js} +1 -1
- package/dist/mint-components/p-a6198c55.entry.js +273 -0
- package/dist/mint-components/{p-1b79b186.entry.js → p-a65610e3.entry.js} +1 -1
- package/dist/mint-components/{p-f7e49c12.entry.js → p-a7157ef3.entry.js} +2 -2
- package/dist/mint-components/{p-4965dae4.system.js → p-a71edffc.system.js} +1 -1
- package/dist/mint-components/p-a92c692b.js +448 -0
- package/dist/mint-components/p-ab4c0642.js +1 -0
- package/dist/mint-components/{p-8618e8f6.system.js → p-af02f28c.system.js} +1 -1
- package/dist/mint-components/p-af758193.entry.js +1 -0
- package/dist/mint-components/{p-12e6cea7.entry.js → p-b8878552.entry.js} +2 -2
- package/dist/mint-components/p-bdb6194c.entry.js +1 -0
- package/dist/mint-components/p-c37744c7.entry.js +1 -0
- package/dist/mint-components/{p-1d8c5935.js → p-ceb79149.js} +1 -1
- package/dist/mint-components/{p-2ea3eea9.system.entry.js → p-d07a46c6.system.entry.js} +1 -1
- package/dist/mint-components/{p-027c0b10.js → p-d6d31505.js} +32 -32
- package/dist/mint-components/{p-fcf8bdbc.system.entry.js → p-d8d818d9.system.entry.js} +1 -1
- package/dist/mint-components/p-dcdd959e.entry.js +9 -0
- package/dist/mint-components/p-e0c7640f.js +1 -0
- package/dist/mint-components/{p-e19f0908.entry.js → p-e712a01d.entry.js} +2 -2
- package/dist/mint-components/p-ede77156.system.entry.js +1 -0
- package/dist/mint-components/{p-f3613921.system.entry.js → p-f380bcd9.system.entry.js} +1 -1
- package/dist/mint-components/{p-088f082f.js → p-f6305644.js} +1 -1
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +1 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +6 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +17 -2
- package/dist/types/components/sqm-skeleton/Skeleton.stories.d.ts +8 -0
- package/dist/types/components/sqm-skeleton/sqm-skeleton.d.ts +14 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +24 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +16 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +57 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +48 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +48 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
- package/dist/types/components.d.ts +376 -43
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/saasquatch.d.ts +4 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- 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/esm-es5/sqm-form-message.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-email-verification-view-5fb1a99e.js +0 -1
- package/dist/esm-es5/utils-2695a43e.js +0 -1
- package/dist/mint-components/p-012d31bc.entry.js +0 -99
- package/dist/mint-components/p-0d71303d.js +0 -1
- package/dist/mint-components/p-2ea6e2fa.entry.js +0 -273
- package/dist/mint-components/p-303b84d7.system.entry.js +0 -1
- package/dist/mint-components/p-325c5476.js +0 -1
- package/dist/mint-components/p-469a6450.system.js +0 -6
- package/dist/mint-components/p-478ad7c8.system.entry.js +0 -1
- package/dist/mint-components/p-6976099f.entry.js +0 -9
- package/dist/mint-components/p-752ede25.system.entry.js +0 -1
- package/dist/mint-components/p-78dda262.system.js +0 -1
- package/dist/mint-components/p-829cb9ed.system.entry.js +0 -1
- package/dist/mint-components/p-8d9fa981.system.js +0 -1
- package/dist/mint-components/p-947bacd1.system.js +0 -1
- package/dist/mint-components/p-97747228.system.entry.js +0 -1
- package/dist/mint-components/p-a7ee19dc.entry.js +0 -1
- package/dist/mint-components/p-a974c549.js +0 -1
- package/dist/mint-components/p-ac9138fd.entry.js +0 -1
- package/dist/mint-components/p-d88d8ffe.entry.js +0 -1
- package/dist/mint-components/p-dc5bca55.entry.js +0 -1
- package/dist/mint-components/p-e1e7d01c.js +0 -157
- package/dist/mint-components/p-e8bda98a.system.entry.js +0 -1
- package/dist/mint-components/p-ee3a7577.entry.js +0 -144
- package/dist/mint-components/p-eea87fdc.system.entry.js +0 -1
- package/dist/mint-components/p-f5820d03.system.js +0 -1
- package/dist/mint-components/p-ffc3cd7c.js +0 -448
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { h, Component, State, Prop } from "@stencil/core";
|
|
2
|
+
export class Skeleton {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.ignored = true;
|
|
5
|
+
/**
|
|
6
|
+
* @uiName Height (in pixels or %)
|
|
7
|
+
*/
|
|
8
|
+
this.height = "100%";
|
|
9
|
+
/**
|
|
10
|
+
* @uiName Width (in pixels or %)
|
|
11
|
+
*/
|
|
12
|
+
this.width = "100%";
|
|
13
|
+
this.vanillaStyle = `
|
|
14
|
+
sl-skeleton::part(indicator) {
|
|
15
|
+
--sheen-color: var(--sqm-skeleton-animation-background);
|
|
16
|
+
--color: var(--sqm-skeleton-background);
|
|
17
|
+
border-radius: var(--sqm-border-radius-normal);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
sl-skeleton::part(base) {
|
|
21
|
+
height:${this.height};
|
|
22
|
+
width:${this.width};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host{
|
|
26
|
+
display: block;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([hidden]) {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
disconnectedCallback() { }
|
|
35
|
+
render() {
|
|
36
|
+
console.log("This is the height", this.height);
|
|
37
|
+
return (h("div", null,
|
|
38
|
+
h("style", { type: "text/css" }, this.vanillaStyle),
|
|
39
|
+
h("sl-skeleton", null)));
|
|
40
|
+
}
|
|
41
|
+
static get is() { return "sqm-skeleton"; }
|
|
42
|
+
static get encapsulation() { return "shadow"; }
|
|
43
|
+
static get properties() { return {
|
|
44
|
+
"height": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"mutable": false,
|
|
47
|
+
"complexType": {
|
|
48
|
+
"original": "string",
|
|
49
|
+
"resolved": "string",
|
|
50
|
+
"references": {}
|
|
51
|
+
},
|
|
52
|
+
"required": false,
|
|
53
|
+
"optional": true,
|
|
54
|
+
"docs": {
|
|
55
|
+
"tags": [{
|
|
56
|
+
"text": "Height (in pixels or %)",
|
|
57
|
+
"name": "uiName"
|
|
58
|
+
}],
|
|
59
|
+
"text": ""
|
|
60
|
+
},
|
|
61
|
+
"attribute": "height",
|
|
62
|
+
"reflect": false,
|
|
63
|
+
"defaultValue": "\"100%\""
|
|
64
|
+
},
|
|
65
|
+
"width": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "string",
|
|
70
|
+
"resolved": "string",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": true,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [{
|
|
77
|
+
"text": "Width (in pixels or %)",
|
|
78
|
+
"name": "uiName"
|
|
79
|
+
}],
|
|
80
|
+
"text": ""
|
|
81
|
+
},
|
|
82
|
+
"attribute": "width",
|
|
83
|
+
"reflect": false,
|
|
84
|
+
"defaultValue": "\"100%\""
|
|
85
|
+
}
|
|
86
|
+
}; }
|
|
87
|
+
static get states() { return {
|
|
88
|
+
"ignored": {}
|
|
89
|
+
}; }
|
|
90
|
+
}
|
|
@@ -22,6 +22,10 @@ export const Netflix = {
|
|
|
22
22
|
borderThickness: 1,
|
|
23
23
|
},
|
|
24
24
|
color: {
|
|
25
|
+
loadingSkeleton: {
|
|
26
|
+
background: "#272727",
|
|
27
|
+
animationBackground: "#E50914",
|
|
28
|
+
},
|
|
25
29
|
textColorShades: {
|
|
26
30
|
mainText: "white",
|
|
27
31
|
subduedText: "#B3B3B3",
|
|
@@ -113,6 +117,10 @@ export const Amazon = {
|
|
|
113
117
|
},
|
|
114
118
|
color: {
|
|
115
119
|
backgroundColor: "#ffffff",
|
|
120
|
+
loadingSkeleton: {
|
|
121
|
+
background: "hsl(240 4.8% 95.9%)",
|
|
122
|
+
animationBackground: "#FF9900",
|
|
123
|
+
},
|
|
116
124
|
textColorShades: {
|
|
117
125
|
mainText: "#2f2f2f",
|
|
118
126
|
subduedText: "#565959",
|
|
@@ -201,6 +209,10 @@ export const Spotify = {
|
|
|
201
209
|
borderThickness: 1,
|
|
202
210
|
},
|
|
203
211
|
color: {
|
|
212
|
+
loadingSkeleton: {
|
|
213
|
+
background: "#282928",
|
|
214
|
+
animationBackground: "#1ed760",
|
|
215
|
+
},
|
|
204
216
|
textColorShades: {
|
|
205
217
|
mainText: "white",
|
|
206
218
|
subduedText: "white",
|
|
@@ -100,6 +100,7 @@ import * as LeadForm from "../sqm-lead-form/LeadForm.stories";
|
|
|
100
100
|
import * as LeadInputField from "../sqm-lead-form/LeadInputField.stories";
|
|
101
101
|
import * as LeadFormDropdownField from "../sqm-lead-form/LeadFormDropdownField.stories";
|
|
102
102
|
import * as LeadCheckboxField from "../sqm-lead-form/LeadCheckboxField.stories";
|
|
103
|
+
import * as Skeleton from "../sqm-skeleton/Skeleton.stories";
|
|
103
104
|
import { ShadowViewAddon } from "../../ShadowViewAddon";
|
|
104
105
|
import { CucumberAddon } from "./CucumberAddon";
|
|
105
106
|
import { HookStoryAddon } from "./HookStoryAddon";
|
|
@@ -204,6 +205,7 @@ const stories = [
|
|
|
204
205
|
LeadInputField,
|
|
205
206
|
LeadFormDropdownField,
|
|
206
207
|
LeadCheckboxField,
|
|
208
|
+
Skeleton,
|
|
207
209
|
];
|
|
208
210
|
/**
|
|
209
211
|
* For internal documentation
|
|
@@ -217,11 +217,11 @@ export function TaskCardView(props) {
|
|
|
217
217
|
? "main complete"
|
|
218
218
|
: "main" },
|
|
219
219
|
h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
220
|
-
h("div", { class: sheet.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("
|
|
220
|
+
h("div", { class: sheet.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sqm-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
221
221
|
showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled : checkmark_circle)),
|
|
222
222
|
h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
223
223
|
h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
224
|
-
states.loading ? (h("
|
|
224
|
+
states.loading ? (h("sqm-skeleton", { style: { width: "42%", margin: "var(--sl-spacing-medium) 0" } })) : (h("div", { class: "title", part: "sqm-title", style: {
|
|
225
225
|
marginBottom: !content.description
|
|
226
226
|
? content.steps
|
|
227
227
|
? "var(--sl-spacing-x-large)"
|
|
@@ -231,9 +231,9 @@ export function TaskCardView(props) {
|
|
|
231
231
|
: "",
|
|
232
232
|
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
233
233
|
} }, content.cardTitle)),
|
|
234
|
-
states.loading ? (h("
|
|
235
|
-
content.showProgressBar && states.loading ? (h("
|
|
236
|
-
h("div", { class: sheet.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("
|
|
234
|
+
states.loading ? (h("sqm-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
|
|
235
|
+
content.showProgressBar && states.loading ? (h("sqm-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.75" : "1", complete: taskComplete, expired: taskUnavailable })))),
|
|
236
|
+
h("div", { class: sheet.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sqm-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
237
237
|
h("span", { class: "text" },
|
|
238
238
|
content.repeatable && (h("div", null,
|
|
239
239
|
h("span", { class: repetitions > 0
|
|
@@ -189,9 +189,12 @@ export function WidgetEmailVerificationView(props) {
|
|
|
189
189
|
const { states, callbacks, text } = props;
|
|
190
190
|
const renderLoadingSkeleton = () => {
|
|
191
191
|
return (h("div", { class: sheet.classes.Wrapper },
|
|
192
|
-
h("
|
|
193
|
-
h("
|
|
194
|
-
h("
|
|
192
|
+
h("sqm-skeleton", { height: "16px", width: "50%" }),
|
|
193
|
+
h("sqm-skeleton", { height: "16px", width: "50%" }),
|
|
194
|
+
h("sqm-skeleton", { height: "16px", width: "50%" }),
|
|
195
|
+
h("sqm-skeleton", { height: "34px", width: "30%" }),
|
|
196
|
+
h("sqm-skeleton", { height: "24px", width: "15%" }),
|
|
197
|
+
h("sl-button", { submit: true, class: sheet.classes.ContinueButton, loading: true, exportparts: "base: primarybutton-base", type: "primary" }, text.sendCodeText)));
|
|
195
198
|
};
|
|
196
199
|
return (h("div", { part: "sqm-base" },
|
|
197
200
|
h("style", { type: "text/css" },
|
|
@@ -125,10 +125,6 @@ export function useBankingInfoForm(props) {
|
|
|
125
125
|
const paymentMethodChecked = !hasPayPal
|
|
126
126
|
? "toBankAccount"
|
|
127
127
|
: _paymentMethodChecked;
|
|
128
|
-
useEffect(() => {
|
|
129
|
-
// reset redirect hash
|
|
130
|
-
window.location.hash = "";
|
|
131
|
-
}, []);
|
|
132
128
|
useEffect(() => {
|
|
133
129
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
134
130
|
if (!userData)
|
|
@@ -300,6 +296,7 @@ export function useBankingInfoForm(props) {
|
|
|
300
296
|
}
|
|
301
297
|
await runMutation(formData, token);
|
|
302
298
|
setShowModal(false);
|
|
299
|
+
window.location.hash = "";
|
|
303
300
|
};
|
|
304
301
|
const onVerification = async (token) => {
|
|
305
302
|
host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
|
|
@@ -329,7 +326,15 @@ export function useBankingInfoForm(props) {
|
|
|
329
326
|
setBankCountry: updateBankCountry,
|
|
330
327
|
setPaymentMethodChecked,
|
|
331
328
|
setPaymentScheduleChecked,
|
|
332
|
-
onBack: () =>
|
|
329
|
+
onBack: () => {
|
|
330
|
+
// return to dashboard
|
|
331
|
+
if (window.location.hash) {
|
|
332
|
+
window.location.hash = "";
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
setStep("/dashboard");
|
|
336
|
+
}
|
|
337
|
+
},
|
|
333
338
|
setCountrySearch,
|
|
334
339
|
onVerification,
|
|
335
340
|
onVerificationHide: () => onVerification(null),
|
|
@@ -115,11 +115,17 @@ export function useDocusignForm(props) {
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
const progressStep = () => {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
// return to dashboard
|
|
119
|
+
if (window.location.hash) {
|
|
120
|
+
window.location.hash = "";
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
setStep(context.overrideNextStep ||
|
|
124
|
+
!!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
|
|
125
|
+
!(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
|
|
126
|
+
? "/dashboard"
|
|
127
|
+
: "/4");
|
|
128
|
+
}
|
|
123
129
|
};
|
|
124
130
|
const allLoading = userLoading || documentLoading || loading;
|
|
125
131
|
return {
|
package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js
CHANGED
|
@@ -157,7 +157,7 @@ export const IndirectTaxFormView = (props) => {
|
|
|
157
157
|
}, {
|
|
158
158
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
159
159
|
}))),
|
|
160
|
-
states.isPartner && (h("sqm-form-message", { type: "info" },
|
|
160
|
+
states.isPartner && (h("sqm-form-message", { loading: states.loading, type: "info" },
|
|
161
161
|
h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
|
|
162
162
|
intl.formatMessage({
|
|
163
163
|
id: "isPartnerAlertDescription",
|
|
@@ -6,7 +6,7 @@ import { COUNTRIES_QUERY_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAME
|
|
|
6
6
|
import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
|
|
7
7
|
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
8
8
|
import { getCountryObj, validTaxDocument } from "../utils";
|
|
9
|
-
const CONNECT_PARTNER = gql `
|
|
9
|
+
export const CONNECT_PARTNER = gql `
|
|
10
10
|
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
11
11
|
createImpactConnection(impactConnectionInput: $vars) {
|
|
12
12
|
success
|
|
@@ -111,8 +111,51 @@ export function useIndirectTaxForm(props) {
|
|
|
111
111
|
console.error("Could not detect select change");
|
|
112
112
|
setFormState((p) => ({ ...p, [field]: value }));
|
|
113
113
|
};
|
|
114
|
-
|
|
114
|
+
async function connectPartner(formData) {
|
|
115
115
|
var _a, _b, _c, _d, _e;
|
|
116
|
+
const vars = {
|
|
117
|
+
user: {
|
|
118
|
+
id: user.id,
|
|
119
|
+
accountId: user.accountId,
|
|
120
|
+
},
|
|
121
|
+
firstName: userForm.firstName,
|
|
122
|
+
lastName: userForm.lastName,
|
|
123
|
+
countryCode: userForm.countryCode,
|
|
124
|
+
currency: userForm.currency,
|
|
125
|
+
address: userForm.address,
|
|
126
|
+
city: userForm.city,
|
|
127
|
+
state: userForm.state,
|
|
128
|
+
postalCode: userForm.postalCode,
|
|
129
|
+
phoneNumber: userForm.phoneNumber,
|
|
130
|
+
phoneNumberCountryCode: userForm.phoneNumberCountryCode,
|
|
131
|
+
indirectTaxCountryCode: formData.selectedRegion,
|
|
132
|
+
indirectTaxRegion: formData.province || formData.subRegion,
|
|
133
|
+
indirectTaxId: formData.indirectTaxNumber,
|
|
134
|
+
additionalTaxId: formData.qstNumber,
|
|
135
|
+
withholdingTaxId: formData.subRegionTaxNumber,
|
|
136
|
+
};
|
|
137
|
+
const result = await connectImpactPartner({
|
|
138
|
+
vars,
|
|
139
|
+
});
|
|
140
|
+
if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message))
|
|
141
|
+
throw new Error();
|
|
142
|
+
if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
|
|
143
|
+
// Output backend errors to console for now
|
|
144
|
+
console.error("Failed to create Impact connection: ", result.createImpactConnection.validationErrors);
|
|
145
|
+
throw new Error();
|
|
146
|
+
}
|
|
147
|
+
await refetch();
|
|
148
|
+
const resultPublisher = (_e = (_d = (_c = result
|
|
149
|
+
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
150
|
+
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
151
|
+
// Fire form change event
|
|
152
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
153
|
+
return {
|
|
154
|
+
resultPublisher,
|
|
155
|
+
hasValidCurrentDocument,
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
const onSubmit = async (event) => {
|
|
116
159
|
if (!option) {
|
|
117
160
|
setErrors({ taxDetails: true });
|
|
118
161
|
return;
|
|
@@ -138,44 +181,7 @@ export function useIndirectTaxForm(props) {
|
|
|
138
181
|
}
|
|
139
182
|
setLoading(true);
|
|
140
183
|
try {
|
|
141
|
-
const
|
|
142
|
-
user: {
|
|
143
|
-
id: user.id,
|
|
144
|
-
accountId: user.accountId,
|
|
145
|
-
},
|
|
146
|
-
firstName: userForm.firstName,
|
|
147
|
-
lastName: userForm.lastName,
|
|
148
|
-
countryCode: userForm.countryCode,
|
|
149
|
-
currency: userForm.currency,
|
|
150
|
-
address: userForm.address,
|
|
151
|
-
city: userForm.city,
|
|
152
|
-
state: userForm.state,
|
|
153
|
-
postalCode: userForm.postalCode,
|
|
154
|
-
phoneNumber: userForm.phoneNumber,
|
|
155
|
-
phoneNumberCountryCode: userForm.phoneNumberCountryCode,
|
|
156
|
-
indirectTaxCountryCode: formData.selectedRegion,
|
|
157
|
-
indirectTaxRegion: formData.province || formData.subRegion,
|
|
158
|
-
indirectTaxId: formData.indirectTaxNumber,
|
|
159
|
-
additionalTaxId: formData.qstNumber,
|
|
160
|
-
withholdingTaxId: formData.subRegionTaxNumber,
|
|
161
|
-
};
|
|
162
|
-
const result = await connectImpactPartner({
|
|
163
|
-
vars,
|
|
164
|
-
});
|
|
165
|
-
if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message))
|
|
166
|
-
throw new Error();
|
|
167
|
-
if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
|
|
168
|
-
// Output backend errors to console for now
|
|
169
|
-
console.error("Failed to create Impact connection: ", result.createImpactConnection
|
|
170
|
-
.validationErrors);
|
|
171
|
-
throw new Error();
|
|
172
|
-
}
|
|
173
|
-
await refetch();
|
|
174
|
-
const resultPublisher = (_e = (_d = (_c = result
|
|
175
|
-
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
176
|
-
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
177
|
-
// Fire form change event
|
|
178
|
-
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
184
|
+
const { resultPublisher, hasValidCurrentDocument } = await connectPartner(formData);
|
|
179
185
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
180
186
|
!hasValidCurrentDocument) {
|
|
181
187
|
// Go to docusign form
|
|
@@ -138,11 +138,11 @@ export function PayoutDetailsCardView(props) {
|
|
|
138
138
|
const { states, text } = props;
|
|
139
139
|
const renderLoadingSkeleton = () => {
|
|
140
140
|
return (h("div", { class: classes.CardContainer },
|
|
141
|
-
h("div", { class: classes.StatusContainer },
|
|
142
|
-
h("
|
|
143
|
-
h("
|
|
144
|
-
h("
|
|
145
|
-
h("
|
|
141
|
+
h("div", { class: classes.StatusContainer, style: { display: "block" } },
|
|
142
|
+
h("sqm-skeleton", { style: { marginBottom: "var(--sl-spacing-medium)" }, width: "25%", height: "16px" }),
|
|
143
|
+
h("sqm-skeleton", { width: "25%", height: "24px" })),
|
|
144
|
+
h("sqm-skeleton", { width: "50%", height: "34px" }),
|
|
145
|
+
h("sqm-skeleton", { width: "25%", height: "16px" })));
|
|
146
146
|
};
|
|
147
147
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
148
148
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js
CHANGED
|
@@ -17,3 +17,16 @@ export const W9ThresholdReached = () => (h("sqm-payout-status-alert", { demoData
|
|
|
17
17
|
export const Hold = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "HOLD" } } }));
|
|
18
18
|
export const Loading = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, loading: true } } }));
|
|
19
19
|
export const Error = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, error: true } } }));
|
|
20
|
+
export const NewPayeeReview = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "NEW_PAYEE_REVIEW" } } }));
|
|
21
|
+
export const PaymentHoldOnChange = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "PAYMENT_HOLD_ON_CHANGE" } } }));
|
|
22
|
+
export const BeneficiaryNameInvalid = () => (h("sqm-payout-status-alert", { demoData: {
|
|
23
|
+
states: { ...defaultProps, status: "BENEFICIARY_NAME_INVALID" },
|
|
24
|
+
} }));
|
|
25
|
+
export const BeneficiaryNameMismatch = () => (h("sqm-payout-status-alert", { demoData: {
|
|
26
|
+
states: { ...defaultProps, status: "BENEFICIARY_NAME_MISMATCH" },
|
|
27
|
+
} }));
|
|
28
|
+
export const BankTaxNameMismatch = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "BANK_TAX_NAME_MISMATCH" } } }));
|
|
29
|
+
export const WithdrawalSettingsInvalid = () => (h("sqm-payout-status-alert", { demoData: {
|
|
30
|
+
states: { ...defaultProps, status: "WITHDRAWAL_SETTINGS_INVALID" },
|
|
31
|
+
} }));
|
|
32
|
+
export const PaymentReturned = () => (h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps, status: "PAYMENT_RETURNED" } } }));
|
|
@@ -2,6 +2,12 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
import { createStyleSheet } from "../../../styling/JSS";
|
|
4
4
|
const style = {
|
|
5
|
+
ButtonContainer: {
|
|
6
|
+
display: "flex",
|
|
7
|
+
gap: "var(--sl-spacing-medium)",
|
|
8
|
+
marginTop: "var(--sl-spacing-medium)",
|
|
9
|
+
flexWrap: "wrap",
|
|
10
|
+
},
|
|
5
11
|
SkeletonOne: {
|
|
6
12
|
width: "50%",
|
|
7
13
|
height: "16px",
|
|
@@ -126,7 +132,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
126
132
|
icon: "exclamation-triangle",
|
|
127
133
|
};
|
|
128
134
|
}
|
|
129
|
-
case "
|
|
135
|
+
case "NEW_PAYEE_REVIEW":
|
|
130
136
|
return {
|
|
131
137
|
header: text.accountReviewHeader,
|
|
132
138
|
description: intl.formatMessage({
|
|
@@ -139,6 +145,92 @@ export function PayoutStatusAlertView(props) {
|
|
|
139
145
|
alertType: "warning",
|
|
140
146
|
icon: "exclamation-triangle",
|
|
141
147
|
};
|
|
148
|
+
case "PAYMENT_HOLD_ON_CHANGE":
|
|
149
|
+
return {
|
|
150
|
+
header: text.paymentHoldOnChangeHeader,
|
|
151
|
+
description: intl.formatMessage({
|
|
152
|
+
id: "accountReviewDescription",
|
|
153
|
+
defaultMessage: text.paymentHoldOnChangeDescription,
|
|
154
|
+
}, {
|
|
155
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
156
|
+
}),
|
|
157
|
+
buttonText: null,
|
|
158
|
+
alertType: "warning",
|
|
159
|
+
icon: "exclamation-triangle",
|
|
160
|
+
};
|
|
161
|
+
case "BENEFICIARY_NAME_INVALID":
|
|
162
|
+
return {
|
|
163
|
+
header: text.beneficiaryNameInvalidHeader,
|
|
164
|
+
description: intl.formatMessage({
|
|
165
|
+
id: "accountReviewDescription",
|
|
166
|
+
defaultMessage: text.beneficiaryNameInvalidDescription,
|
|
167
|
+
}, {
|
|
168
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
169
|
+
}),
|
|
170
|
+
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
171
|
+
h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
172
|
+
h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
173
|
+
alertType: "warning",
|
|
174
|
+
icon: "exclamation-triangle",
|
|
175
|
+
};
|
|
176
|
+
case "BENEFICIARY_NAME_MISMATCH":
|
|
177
|
+
return {
|
|
178
|
+
header: text.beneficiaryNameMismatchHeader,
|
|
179
|
+
description: intl.formatMessage({
|
|
180
|
+
id: "accountReviewDescription",
|
|
181
|
+
defaultMessage: text.beneficiaryNameMismatchDescription,
|
|
182
|
+
}, {
|
|
183
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
184
|
+
}),
|
|
185
|
+
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
186
|
+
h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
187
|
+
h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
188
|
+
alertType: "warning",
|
|
189
|
+
icon: "exclamation-triangle",
|
|
190
|
+
};
|
|
191
|
+
case "BANK_TAX_NAME_MISMATCH":
|
|
192
|
+
return {
|
|
193
|
+
header: text.bankTaxNameMismatchHeader,
|
|
194
|
+
description: intl.formatMessage({
|
|
195
|
+
id: "accountReviewDescription",
|
|
196
|
+
defaultMessage: text.bankTaxNameMismatchDescription,
|
|
197
|
+
}, {
|
|
198
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
199
|
+
}),
|
|
200
|
+
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
201
|
+
h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
|
|
202
|
+
h("sl-button", { disabled: states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onNewFormClick }, text.newFormButton))),
|
|
203
|
+
alertType: "warning",
|
|
204
|
+
icon: "exclamation-triangle",
|
|
205
|
+
};
|
|
206
|
+
case "WITHDRAWAL_SETTINGS_INVALID":
|
|
207
|
+
return {
|
|
208
|
+
header: text.withdrawalSettingsInvalidHeader,
|
|
209
|
+
description: intl.formatMessage({
|
|
210
|
+
id: "accountReviewDescription",
|
|
211
|
+
defaultMessage: text.withdrawalSettingsInvalidDescription,
|
|
212
|
+
}, {
|
|
213
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
214
|
+
}),
|
|
215
|
+
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
216
|
+
h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
|
|
217
|
+
alertType: "warning",
|
|
218
|
+
icon: "exclamation-triangle",
|
|
219
|
+
};
|
|
220
|
+
case "PAYMENT_RETURNED":
|
|
221
|
+
return {
|
|
222
|
+
header: text.paymentReturnedHeader,
|
|
223
|
+
description: intl.formatMessage({
|
|
224
|
+
id: "accountReviewDescription",
|
|
225
|
+
defaultMessage: text.paymentReturnedDescription,
|
|
226
|
+
}, {
|
|
227
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
228
|
+
}),
|
|
229
|
+
button: (h("div", { class: sheet.classes.ButtonContainer },
|
|
230
|
+
h("sl-button", { disabled: states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
|
|
231
|
+
alertType: "error",
|
|
232
|
+
icon: "exclamation-triangle",
|
|
233
|
+
};
|
|
142
234
|
case "HOLD":
|
|
143
235
|
return {
|
|
144
236
|
header: text.holdHeader,
|
|
@@ -160,9 +252,9 @@ export function PayoutStatusAlertView(props) {
|
|
|
160
252
|
case "OVER_W9_THRESHOLD":
|
|
161
253
|
if (states.enforceUsTaxComplianceOption === "CASH_ONLY")
|
|
162
254
|
return;
|
|
163
|
-
return data.type === "SquatchJS2" ? (h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.w9RequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h("sl-button", { type: "
|
|
255
|
+
return data.type === "SquatchJS2" ? (h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.w9RequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h("sl-button", { type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onTermsClick }, text.w9RequiredButtonText)) : (
|
|
164
256
|
// Demo case
|
|
165
|
-
h("sl-button", { type: "
|
|
257
|
+
h("sl-button", { type: "primary", exportparts: "base: primarybutton-base" }, text.w9RequiredButtonText));
|
|
166
258
|
case "INFORMATION_REQUIRED":
|
|
167
259
|
return data.type === "SquatchJS2" ? (h("div", { style: { paddingTop: "10px" } },
|
|
168
260
|
h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" }))) : data.type === "SquatchPortal" ? (h("div", { style: { paddingTop: "10px" } },
|
|
@@ -174,12 +266,11 @@ export function PayoutStatusAlertView(props) {
|
|
|
174
266
|
return (h("div", { style: { paddingTop: "10px" } },
|
|
175
267
|
h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText)));
|
|
176
268
|
default:
|
|
269
|
+
if (alertDetails.button)
|
|
270
|
+
return alertDetails.button;
|
|
177
271
|
return;
|
|
178
272
|
}
|
|
179
273
|
}
|
|
180
|
-
if (states.loading) {
|
|
181
|
-
return h("sl-skeleton", { class: sheet.classes.SkeletonOne });
|
|
182
|
-
}
|
|
183
274
|
const alertDetails = getAlert(states.status);
|
|
184
275
|
if (states.status === "DONE" || !alertDetails) {
|
|
185
276
|
return h("div", null);
|
|
@@ -187,7 +278,7 @@ export function PayoutStatusAlertView(props) {
|
|
|
187
278
|
return (h("div", { part: "sqm-base" },
|
|
188
279
|
h("style", { type: "text/css" }, styleString),
|
|
189
280
|
h("style", { type: "text/css" }, vanillaStyle),
|
|
190
|
-
h("sqm-form-message", { type: alertDetails.alertType },
|
|
281
|
+
h("sqm-form-message", { loading: states.loading, type: alertDetails.alertType },
|
|
191
282
|
h("p", { part: "alert-title" }, alertDetails.header),
|
|
192
283
|
h("p", { part: "alert-description" }, alertDetails.description),
|
|
193
284
|
getButton(states.status))));
|