@saasquatch/mint-components 2.2.0 → 2.3.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{data-8c8a08f6.js → data-89ac73dd.js} +2 -90
- package/dist/cjs/eventKeys-7af4df4d.js +5 -0
- package/dist/cjs/{keys-cff24974.js → keys-5a2c9ed2.js} +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +461 -339
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_47.cjs.entry.js} +450 -16
- package/dist/cjs/sqm-code-verification.cjs.entry.js +4 -5
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +893 -0
- package/dist/cjs/sqm-partner-info-modal-view-f6faecf5.js +149 -0
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +27 -9
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +30 -9
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +732 -326
- package/dist/cjs/{sqm-user-info-form-view-53306f6e.js → sqm-user-info-form-view-0e1ddbe4.js} +34 -426
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
- package/dist/cjs/{usePayoutStatus-0192fccd.js → useIndirectTaxForm-c3c1ec56.js} +294 -5
- package/dist/cjs/utils-a3b3d05b.js +478 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +171 -0
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +143 -0
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +670 -0
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +276 -0
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +1 -0
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +1 -0
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +209 -145
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +30 -10
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -0
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +223 -137
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +30 -10
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
- package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +16 -0
- package/dist/collection/components/sqm-widget-verification/keys.js +2 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +3 -4
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +19 -9
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +486 -46
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +43 -11
- package/dist/collection/components/tax-and-cash/data.js +2 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +93 -37
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +738 -13
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +95 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +51 -12
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +59 -30
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +51 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +10 -18
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +0 -25
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +34 -17
- package/dist/esm/{ShadowViewAddon-0b980200.js → ShadowViewAddon-e115fa1c.js} +5 -5
- package/dist/{mint-components/p-0c0d4065.js → esm/data-8698cbc6.js} +25 -5
- package/dist/esm/eventKeys-f76b6a03.js +3 -0
- package/dist/esm/{global-96c14d63.js → global-75e96214.js} +1 -1
- package/dist/esm/{index.module-b23fdad8.js → index.module-02cb914c.js} +1 -1
- package/dist/esm/keys-1054056a.js +8 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/{re-render-f30aeb6b.js → re-render-bf46ba54.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +448 -326
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_47.entry.js} +454 -21
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +7 -8
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification_2.entry.js +888 -0
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-bfafee56.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-b945edf4.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-8d98fcf3.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-partner-info-modal-view-d6f3a215.js +146 -0
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-04528277.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-b5ea620f.js → sqm-portal-profile-view-2018590a.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c61536b7.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +32 -14
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +35 -14
- package/dist/esm/sqm-stencilbook.entry.js +708 -302
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-user-info-form-view-19d81a2b.js → sqm-user-info-form-view-e1ba6009.js} +14 -403
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
- package/dist/esm/{usePayoutStatus-46c0c289.js → useIndirectTaxForm-b2888ea5.js} +292 -5
- package/dist/esm/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-69c9ffe0.js} +2 -2
- package/dist/esm/{useLeadFormState-dd4e8b08.js → useLeadFormState-332b2796.js} +2 -2
- package/dist/esm/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-3a1f36a2.js} +2 -2
- package/dist/esm/{useReferralCodes-52ca720f.js → useReferralCodes-25f8b792.js} +1 -1
- package/dist/esm/{useReferralTable-92af4133.js → useReferralTable-03d32c6f.js} +3 -3
- package/dist/esm/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-aa44cfff.js} +1 -1
- package/dist/esm/{useVerificationEmail-c13c3b51.js → useVerificationEmail-9f2c0bab.js} +1 -1
- package/dist/esm/{utilities-77b1e0cc.js → utilities-cbd8f2eb.js} +1 -1
- package/dist/esm/utils-4f5cd04c.js +467 -0
- package/dist/esm-es5/{ShadowViewAddon-0b980200.js → ShadowViewAddon-e115fa1c.js} +1 -1
- package/dist/esm-es5/data-8698cbc6.js +1 -0
- package/dist/esm-es5/eventKeys-f76b6a03.js +1 -0
- package/dist/esm-es5/{global-96c14d63.js → global-75e96214.js} +1 -1
- package/dist/esm-es5/{index.module-b23fdad8.js → index.module-02cb914c.js} +1 -1
- package/dist/esm-es5/keys-1054056a.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/parseStates-ed75e224.js +1 -0
- package/dist/esm-es5/{re-render-f30aeb6b.js → re-render-bf46ba54.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 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-bfafee56.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-b945edf4.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-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-8d98fcf3.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-d6f3a215.js +1 -0
- 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-04528277.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-b5ea620f.js → sqm-portal-profile-view-2018590a.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c61536b7.js → sqm-portal-verify-email-view-590f964b.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-customer-note-column.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-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-e1ba6009.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
- package/dist/esm-es5/useIndirectTaxForm-b2888ea5.js +6 -0
- package/dist/esm-es5/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-69c9ffe0.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-dd4e8b08.js → useLeadFormState-332b2796.js} +1 -1
- package/dist/esm-es5/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-3a1f36a2.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-52ca720f.js → useReferralCodes-25f8b792.js} +1 -1
- package/dist/esm-es5/{useReferralTable-92af4133.js → useReferralTable-03d32c6f.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-aa44cfff.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-c13c3b51.js → useVerificationEmail-9f2c0bab.js} +1 -1
- package/dist/esm-es5/{utilities-77b1e0cc.js → utilities-cbd8f2eb.js} +1 -1
- package/dist/esm-es5/utils-4f5cd04c.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-626b31cb.system.entry.js → p-025ddad2.system.entry.js} +1 -1
- package/dist/mint-components/{p-5b871e38.system.entry.js → p-02c0f88e.system.entry.js} +1 -1
- package/dist/mint-components/{p-f55ecf35.system.js → p-02e2b13b.system.js} +1 -1
- package/dist/mint-components/{p-a4f8abad.js → p-0766438e.js} +1 -1
- package/dist/mint-components/{p-205cfdcd.system.js → p-0815b973.system.js} +1 -1
- package/dist/mint-components/{p-db0a2afd.entry.js → p-092c2606.entry.js} +1 -1
- package/dist/mint-components/{p-fe1d3cf8.system.entry.js → p-099ce3d5.system.entry.js} +1 -1
- package/dist/mint-components/p-0a6489fa.entry.js +1 -0
- package/dist/mint-components/p-0afa6148.js +1 -0
- package/dist/mint-components/{p-fc284f91.system.entry.js → p-0b32e1d4.system.entry.js} +1 -1
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/{p-7b59e13c.system.js → p-1317cc92.system.js} +1 -1
- package/dist/mint-components/{p-2b4af8e8.system.entry.js → p-13bb56a8.system.entry.js} +1 -1
- package/dist/mint-components/{p-f8a09b0f.js → p-13d8ecad.js} +1 -1
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/{p-61897e72.entry.js → p-14183edc.entry.js} +1 -1
- package/dist/mint-components/{p-8f2d03c7.entry.js → p-1599a178.entry.js} +1 -1
- package/dist/mint-components/{p-02499e08.entry.js → p-1b0326d1.entry.js} +1 -1
- package/dist/mint-components/p-1d398dbc.entry.js +11 -0
- package/dist/mint-components/p-1d86895f.system.js +1 -0
- package/dist/mint-components/p-1e6a2945.js +1 -0
- package/dist/mint-components/{p-c8a3f3b0.js → p-1efb42e2.js} +1 -1
- package/dist/mint-components/p-1f387c7b.system.js +1 -0
- package/dist/mint-components/{p-a96c9bbb.system.entry.js → p-209157a9.system.entry.js} +1 -1
- package/dist/mint-components/{p-30c1ef36.system.js → p-2190dc73.system.js} +1 -1
- package/dist/mint-components/{p-80e116ec.system.entry.js → p-24f1d342.system.entry.js} +1 -1
- package/dist/mint-components/{p-6668f9f0.entry.js → p-27daf264.entry.js} +1 -1
- package/dist/mint-components/p-28ed2ae9.js +1 -0
- package/dist/mint-components/{p-09f7aacd.entry.js → p-29bc5f50.entry.js} +2 -2
- package/dist/mint-components/{p-738dce27.system.entry.js → p-2d3f7b76.system.entry.js} +1 -1
- package/dist/mint-components/p-2ed13619.entry.js +1 -0
- package/dist/mint-components/{p-c45a929a.system.entry.js → p-30cfe3e3.system.entry.js} +1 -1
- package/dist/mint-components/{p-d55c50af.system.js → p-31815fb6.system.js} +1 -1
- package/dist/mint-components/{p-c8bcbf8b.system.entry.js → p-3354cc75.system.entry.js} +1 -1
- package/dist/mint-components/{p-5bc5c61e.entry.js → p-335a5736.entry.js} +1 -1
- package/dist/mint-components/{p-e9485160.system.entry.js → p-33ca28ba.system.entry.js} +1 -1
- package/dist/mint-components/p-3596e241.entry.js +116 -0
- package/dist/mint-components/{p-8583ce0c.system.js → p-376c7608.system.js} +1 -1
- package/dist/mint-components/p-37e24621.system.entry.js +1 -0
- package/dist/mint-components/{p-95510f27.entry.js → p-38d04e4b.entry.js} +1 -1
- package/dist/mint-components/{p-e84b874c.js → p-3a41b39c.js} +1 -1
- package/dist/mint-components/{p-e5ea43b1.entry.js → p-3bbc0db2.entry.js} +2 -2
- package/dist/mint-components/{p-982d1f6f.entry.js → p-432a44de.entry.js} +3 -2
- package/dist/mint-components/{p-bab4929e.js → p-45230a44.js} +1 -1
- package/dist/mint-components/p-4691e9d5.system.js +1 -0
- package/dist/mint-components/{p-1d92c169.entry.js → p-4d73a616.entry.js} +1 -1
- package/dist/mint-components/{p-3bc62ca6.entry.js → p-4e3db52b.entry.js} +1 -1
- package/dist/mint-components/{p-3286ef38.js → p-4eaa3eb7.js} +1 -1
- package/dist/mint-components/{p-013564b3.entry.js → p-4eadbd5b.entry.js} +1 -1
- package/dist/mint-components/p-4f9dc974.js +1 -0
- package/dist/mint-components/{p-f7ca4cc4.system.entry.js → p-51ae6716.system.entry.js} +1 -1
- package/dist/mint-components/p-56b33268.system.entry.js +1 -0
- package/dist/mint-components/p-58c24352.system.js +6 -0
- package/dist/mint-components/p-5c52100b.js +117 -0
- package/dist/mint-components/{p-77b9cde8.system.js → p-5fdf0286.system.js} +1 -1
- package/dist/mint-components/{p-09348341.entry.js → p-60b1f3d9.entry.js} +1 -1
- package/dist/mint-components/{p-d005df28.system.entry.js → p-623a0a0b.system.entry.js} +1 -1
- package/dist/mint-components/{p-c30d0049.system.entry.js → p-6b4e5d94.system.entry.js} +1 -1
- package/dist/mint-components/{p-f4e36adf.system.entry.js → p-6f6c3ac6.system.entry.js} +1 -1
- package/dist/mint-components/p-6f8dde97.system.js +1 -0
- package/dist/mint-components/{p-43c31fd5.system.js → p-7628e56f.system.js} +1 -1
- package/dist/mint-components/{p-653db72e.entry.js → p-78e6dc8d.entry.js} +1 -1
- package/dist/mint-components/{p-f581aac7.js → p-7a091fa7.js} +1 -1
- package/dist/mint-components/{p-40bad95a.entry.js → p-7cbdf341.entry.js} +2 -2
- package/dist/mint-components/{p-044f930a.system.js → p-7d2d9ef9.system.js} +1 -1
- package/dist/mint-components/{p-5c4ba8a0.entry.js → p-7ea3f49c.entry.js} +1 -1
- package/dist/mint-components/{p-5ce78407.system.entry.js → p-81bc6dca.system.entry.js} +1 -1
- package/dist/mint-components/{p-f6528f8a.entry.js → p-84495fb8.entry.js} +1 -1
- package/dist/mint-components/{p-b96e90a2.system.entry.js → p-86d20b47.system.entry.js} +1 -1
- package/dist/mint-components/p-87f86492.js +1 -0
- package/dist/mint-components/{p-d0993bb9.js → p-8a6531d2.js} +1 -1
- package/dist/mint-components/p-8ae8968c.js +1 -0
- package/dist/mint-components/{p-7265bbcb.system.js → p-8e148cb0.system.js} +1 -1
- package/dist/mint-components/p-8f15bf17.entry.js +1 -0
- package/dist/mint-components/{p-b66f45d1.entry.js → p-921eb024.entry.js} +1 -1
- package/dist/mint-components/{p-f1374258.system.entry.js → p-925aa740.system.entry.js} +1 -1
- package/dist/mint-components/p-99eecdcb.system.entry.js +1 -0
- package/dist/mint-components/{p-e12754f5.system.entry.js → p-9a15cd5a.system.entry.js} +1 -1
- package/dist/mint-components/p-9c1f5317.system.js +1 -0
- package/dist/mint-components/{p-832aea99.js → p-9f48640d.js} +1 -1
- package/dist/mint-components/p-a38eece5.system.entry.js +1 -0
- package/dist/mint-components/p-a49d9288.entry.js +1 -0
- package/dist/mint-components/{p-90833864.system.entry.js → p-ab59c5eb.system.entry.js} +1 -1
- package/dist/mint-components/{p-e6240c72.js → p-abd717d4.js} +1 -1
- package/dist/mint-components/p-abe9f5b1.js +99 -0
- package/dist/mint-components/p-ae2f610e.system.js +1 -0
- package/dist/mint-components/p-b222bace.system.entry.js +1 -0
- package/dist/mint-components/{p-19c441b2.system.js → p-b2ad3fca.system.js} +1 -1
- package/dist/mint-components/{p-c8a8d231.entry.js → p-b3309d9b.entry.js} +2 -2
- package/dist/mint-components/p-b419f9ac.entry.js +299 -0
- package/dist/mint-components/{p-8962e023.js → p-b871d158.js} +1 -1
- package/dist/mint-components/p-b96ed8eb.js +1 -0
- package/dist/mint-components/p-badf28bb.system.js +1 -0
- package/dist/mint-components/{p-035d9b65.js → p-bb0b5e4b.js} +1 -1
- package/dist/mint-components/{p-52674798.entry.js → p-bcfdb510.entry.js} +1 -1
- package/dist/mint-components/p-be6a0dee.system.js +1 -0
- package/dist/mint-components/{p-642f2c89.js → p-bf9ab2d3.js} +1 -1
- package/dist/mint-components/{p-bc386a7b.js → p-c0a85e22.js} +1 -1
- package/dist/mint-components/p-c0f8f977.system.entry.js +1 -0
- package/dist/mint-components/p-c41d536d.entry.js +1 -0
- package/dist/mint-components/{p-a0c5631b.system.js → p-c66e5217.system.js} +1 -1
- package/dist/mint-components/p-cdabd9de.system.js +1 -0
- package/dist/mint-components/p-cfc35705.system.entry.js +1 -0
- package/dist/mint-components/{p-0d83907e.js → p-cfea215d.js} +1 -1
- package/dist/mint-components/p-d08408b3.entry.js +1 -0
- package/dist/mint-components/{p-172675ca.system.js → p-d284ae70.system.js} +1 -1
- package/dist/mint-components/{p-027fc3be.system.entry.js → p-d34564f8.system.entry.js} +1 -1
- package/dist/mint-components/{p-1021a49f.system.entry.js → p-db6bf7cf.system.entry.js} +1 -1
- package/dist/mint-components/{p-4da5a3fe.system.entry.js → p-df897432.system.entry.js} +1 -1
- package/dist/mint-components/{p-036a2617.system.js → p-e651593c.system.js} +1 -1
- package/dist/mint-components/{p-f39cf252.system.entry.js → p-e6de31a7.system.entry.js} +1 -1
- package/dist/mint-components/{p-2668335b.js → p-e8e7af06.js} +1 -1
- package/dist/mint-components/{p-85721089.system.js → p-e920c95c.system.js} +1 -1
- package/dist/mint-components/{p-3366b81e.js → p-eae44b42.js} +2 -2
- package/dist/mint-components/p-ebc519bc.system.js +1 -0
- package/dist/mint-components/{p-af407cce.entry.js → p-ef32fa8f.entry.js} +1 -1
- package/dist/mint-components/{p-7efb8782.system.js → p-f32050f6.system.js} +1 -1
- package/dist/mint-components/{p-782af7ae.system.entry.js → p-f6de2e5c.system.entry.js} +1 -1
- package/dist/mint-components/{p-9390586b.system.entry.js → p-fa85ea51.system.entry.js} +1 -1
- package/dist/mint-components/p-ff013776.entry.js +9 -0
- package/dist/mint-components/p-ffcebe78.entry.js +83 -0
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +15 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +50 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +123 -0
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +17 -0
- package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +18 -1
- package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +19 -7
- package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/keys.d.ts +2 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +75 -7
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +2 -0
- package/dist/types/components/tax-and-cash/data.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +173 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -5
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +0 -4
- package/dist/types/components.d.ts +644 -32
- package/dist/types/saasquatch.d.ts +2 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -4
- package/dist/cjs/extractProps-e9c55ba8.js +0 -35
- package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -418
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -214
- package/dist/esm/data-12e6aae1.js +0 -216
- package/dist/esm/extractProps-54064fb0.js +0 -32
- package/dist/esm/keys-406491dc.js +0 -6
- package/dist/esm/sqm-email-verification.entry.js +0 -414
- package/dist/esm/sqm-widget-verification.entry.js +0 -210
- package/dist/esm-es5/data-12e6aae1.js +0 -1
- package/dist/esm-es5/extractProps-54064fb0.js +0 -1
- package/dist/esm-es5/keys-406491dc.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +0 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/esm-es5/usePayoutStatus-46c0c289.js +0 -6
- package/dist/mint-components/p-00b235c5.system.entry.js +0 -1
- package/dist/mint-components/p-0706cf9e.system.entry.js +0 -1
- package/dist/mint-components/p-0797a946.js +0 -1
- package/dist/mint-components/p-13292317.entry.js +0 -11
- package/dist/mint-components/p-2d5c2bd4.system.entry.js +0 -1
- package/dist/mint-components/p-38c7775a.js +0 -1
- package/dist/mint-components/p-3adbfd0b.system.js +0 -6
- package/dist/mint-components/p-3af3e2c1.entry.js +0 -25
- package/dist/mint-components/p-5492dd51.system.entry.js +0 -1
- package/dist/mint-components/p-57dd28bd.system.js +0 -1
- package/dist/mint-components/p-5b1d2866.system.js +0 -1
- package/dist/mint-components/p-6c4ad51a.js +0 -1
- package/dist/mint-components/p-77fa2383.entry.js +0 -1
- package/dist/mint-components/p-7939e4af.entry.js +0 -1
- package/dist/mint-components/p-8285869e.entry.js +0 -9
- package/dist/mint-components/p-892797eb.system.entry.js +0 -1
- package/dist/mint-components/p-91a96e98.entry.js +0 -1
- package/dist/mint-components/p-b2b85238.entry.js +0 -1
- package/dist/mint-components/p-b395470f.entry.js +0 -16
- package/dist/mint-components/p-bba16a46.system.entry.js +0 -1
- package/dist/mint-components/p-be12607e.entry.js +0 -281
- package/dist/mint-components/p-bf188b72.system.entry.js +0 -1
- package/dist/mint-components/p-ca098be1.system.js +0 -1
- package/dist/mint-components/p-d18dedd4.js +0 -1
- package/dist/mint-components/p-d4f332a7.entry.js +0 -106
- package/dist/mint-components/p-d6193876.system.js +0 -1
- package/dist/mint-components/p-de0d6fd7.js +0 -49
- package/dist/mint-components/p-e00ec007.js +0 -1
- package/dist/mint-components/p-e55aafe9.system.js +0 -1
- package/dist/mint-components/p-ea03e50e.system.js +0 -1
- package/dist/mint-components/p-ec0b649a.entry.js +0 -1
- package/dist/mint-components/p-f8026ed6.system.js +0 -1
- package/dist/mint-components/p-fb804001.system.entry.js +0 -1
- package/dist/mint-components/p-fe70e20c.entry.js +0 -1
- package/dist/mint-components/p-ff118a19.system.js +0 -1
package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js
CHANGED
|
@@ -1,188 +1,252 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { DateTime } from "luxon";
|
|
3
2
|
export default {
|
|
4
3
|
title: "Components/Tax And Cash Referral Table Rewards Cell",
|
|
5
4
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
function getMonths() {
|
|
10
|
-
return DateTime.now().toMillis() + 10000000000;
|
|
11
|
-
}
|
|
5
|
+
// Reusable timestamps (current date is May 2026)
|
|
6
|
+
const PAST = 1640995200000; // Jan 1, 2022
|
|
7
|
+
const FUTURE = 2779257600000; // ~2058
|
|
12
8
|
const cashReward = {
|
|
13
9
|
id: "1234",
|
|
14
10
|
type: "CREDIT",
|
|
15
11
|
value: 50,
|
|
16
12
|
unit: "USD",
|
|
17
13
|
name: "test",
|
|
18
|
-
dateScheduledFor:
|
|
19
|
-
dateExpires:
|
|
20
|
-
dateCancelled:
|
|
21
|
-
dateRedeemed:
|
|
14
|
+
dateScheduledFor: null,
|
|
15
|
+
dateExpires: null,
|
|
16
|
+
dateCancelled: null,
|
|
17
|
+
dateRedeemed: null,
|
|
22
18
|
fuelTankCode: null,
|
|
23
19
|
fuelTankType: null,
|
|
24
20
|
currency: "USD",
|
|
25
21
|
prettyValue: "$50.00",
|
|
26
|
-
statuses: [
|
|
22
|
+
statuses: [],
|
|
27
23
|
globalRewardKey: "Key",
|
|
28
24
|
rewardRedemptionTransactions: null,
|
|
29
25
|
partnerFundsTransfer: null,
|
|
26
|
+
rewardedCash: true,
|
|
30
27
|
};
|
|
31
|
-
|
|
28
|
+
// ============================================================
|
|
29
|
+
// Reusable tax connections
|
|
30
|
+
// ============================================================
|
|
31
|
+
const fullySetupTaxConnection = {
|
|
32
32
|
connected: true,
|
|
33
33
|
taxHandlingEnabled: true,
|
|
34
34
|
publisher: {
|
|
35
35
|
requiredTaxDocumentType: "W9",
|
|
36
|
+
currentTaxDocument: {
|
|
37
|
+
status: "ACTIVE",
|
|
38
|
+
type: "W9",
|
|
39
|
+
dateCreated: PAST,
|
|
40
|
+
},
|
|
36
41
|
withdrawalSettings: { paymentMethod: "BANK_TRANSFER" },
|
|
37
42
|
payoutsAccount: null,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
const connectedNoWithdrawalSettings = {
|
|
46
|
+
connected: true,
|
|
47
|
+
taxHandlingEnabled: true,
|
|
48
|
+
publisher: {
|
|
49
|
+
requiredTaxDocumentType: "W9",
|
|
38
50
|
currentTaxDocument: {
|
|
39
51
|
status: "ACTIVE",
|
|
40
52
|
type: "W9",
|
|
41
|
-
dateCreated:
|
|
53
|
+
dateCreated: PAST,
|
|
42
54
|
},
|
|
55
|
+
withdrawalSettings: null,
|
|
56
|
+
payoutsAccount: null,
|
|
43
57
|
},
|
|
44
58
|
};
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
dateScheduled: null,
|
|
50
|
-
dateTransferred: null,
|
|
51
|
-
};
|
|
52
|
-
const defaultTaxDocument = {
|
|
53
|
-
status: "NOT_VERIFIED",
|
|
54
|
-
type: "W9",
|
|
55
|
-
dateCreated: DateTime.now().toMillis() - 1000000,
|
|
59
|
+
const notConnectedTaxConnection = {
|
|
60
|
+
connected: false,
|
|
61
|
+
taxHandlingEnabled: true,
|
|
62
|
+
publisher: null,
|
|
56
63
|
};
|
|
57
64
|
const defaultProps = {
|
|
58
65
|
statusText: "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PROCESSING {Payment Processing} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",
|
|
59
|
-
statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete
|
|
66
|
+
statusLongText: "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }",
|
|
60
67
|
rewardReceivedText: "Reward received on",
|
|
61
68
|
hideDetails: false,
|
|
62
69
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
...cashReward,
|
|
94
|
-
partnerFundsTransfer: {
|
|
95
|
-
...defaultPFT,
|
|
96
|
-
status: "OVERDUE",
|
|
97
|
-
dateScheduled: Date.now() - 100000,
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
], taxConnection: taxConnection }, defaultProps)));
|
|
101
|
-
};
|
|
102
|
-
export const PayoutCancelled = () => {
|
|
103
|
-
return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
104
|
-
{
|
|
105
|
-
...cashReward,
|
|
106
|
-
partnerFundsTransfer: {
|
|
107
|
-
...defaultPFT,
|
|
108
|
-
status: "REVERSED",
|
|
109
|
-
dateScheduled: Date.now() - 100000,
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
], taxConnection: taxConnection }, defaultProps)));
|
|
113
|
-
};
|
|
114
|
-
export const PendingTaxReview = () => {
|
|
115
|
-
return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
116
|
-
{
|
|
117
|
-
...cashReward,
|
|
118
|
-
statuses: ["PENDING"],
|
|
119
|
-
pendingReasons: ["US_TAX"],
|
|
120
|
-
},
|
|
121
|
-
], taxConnection: {
|
|
122
|
-
...taxConnection,
|
|
123
|
-
publisher: {
|
|
124
|
-
...taxConnection.publisher,
|
|
125
|
-
currentTaxDocument: {
|
|
126
|
-
...defaultTaxDocument,
|
|
127
|
-
status: "NOT_VERIFIED",
|
|
128
|
-
},
|
|
70
|
+
// ============================================================
|
|
71
|
+
// STATE PRECEDENCE LADDER — one story per rule
|
|
72
|
+
// (See referral-table-rewards-column-new.feature § 2)
|
|
73
|
+
// ============================================================
|
|
74
|
+
// 1. Fraud check denied the referral → state is DENIED
|
|
75
|
+
export const RewardsCellFraudDenied = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
76
|
+
{
|
|
77
|
+
...cashReward,
|
|
78
|
+
referral: { fraudData: { moderationStatus: "DENIED" } },
|
|
79
|
+
},
|
|
80
|
+
], taxConnection: fullySetupTaxConnection }, defaultProps)));
|
|
81
|
+
// 2. Fraud check is still pending review → state is PENDING_REVIEW
|
|
82
|
+
export const RewardsCellFraudPendingReview = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
83
|
+
{
|
|
84
|
+
...cashReward,
|
|
85
|
+
referral: { fraudData: { moderationStatus: "PENDING" } },
|
|
86
|
+
},
|
|
87
|
+
], taxConnection: fullySetupTaxConnection }, defaultProps)));
|
|
88
|
+
// 3a. Cash reward but the user has not connected an Impact partner → shows the partner-setup prompt
|
|
89
|
+
export const RewardsCellPartnerNotCreatedSetupNotStarted = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [{ ...cashReward, statuses: ["AVAILABLE"] }], taxConnection: notConnectedTaxConnection }, defaultProps)));
|
|
90
|
+
// 3b. Cash reward, partner is connected but withdrawal settings are missing → shows the partner-setup prompt
|
|
91
|
+
export const RewardsCellPartnerCreatedSetupStartedButIncomplete = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
92
|
+
{
|
|
93
|
+
...cashReward,
|
|
94
|
+
partnerFundsTransfer: {
|
|
95
|
+
id: "pft-not-yet-due",
|
|
96
|
+
status: "NOT_YET_DUE",
|
|
97
|
+
dateCreated: PAST,
|
|
98
|
+
dateScheduled: FUTURE,
|
|
99
|
+
dateTransferred: null,
|
|
129
100
|
},
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
101
|
+
},
|
|
102
|
+
], taxConnection: connectedNoWithdrawalSettings }, defaultProps)));
|
|
103
|
+
// 4. Partner funds transfer was reversed → state is PAYOUT_CANCELLED
|
|
104
|
+
export const RewardsCellPayoutCancelled = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
105
|
+
{
|
|
106
|
+
...cashReward,
|
|
107
|
+
partnerFundsTransfer: {
|
|
108
|
+
id: "pft-reversed",
|
|
109
|
+
status: "REVERSED",
|
|
110
|
+
dateCreated: PAST,
|
|
111
|
+
dateScheduled: PAST,
|
|
112
|
+
dateTransferred: null,
|
|
138
113
|
},
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
114
|
+
},
|
|
115
|
+
], taxConnection: fullySetupTaxConnection }, defaultProps)));
|
|
116
|
+
// 5. Partner funds transfer is overdue → state is PAYOUT_FAILED
|
|
117
|
+
export const RewardsCellPayoutFailed = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
118
|
+
{
|
|
119
|
+
...cashReward,
|
|
120
|
+
partnerFundsTransfer: {
|
|
121
|
+
id: "pft-overdue",
|
|
122
|
+
status: "OVERDUE",
|
|
123
|
+
dateCreated: PAST,
|
|
124
|
+
dateScheduled: PAST,
|
|
125
|
+
dateTransferred: null,
|
|
147
126
|
},
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
127
|
+
},
|
|
128
|
+
], taxConnection: fullySetupTaxConnection }, defaultProps)));
|
|
129
|
+
// 6. Partner funds transfer is scheduled for a future date → state is PROCESSING
|
|
130
|
+
export const RewardsCellPayoutProcessing = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
131
|
+
{
|
|
132
|
+
...cashReward,
|
|
133
|
+
partnerFundsTransfer: {
|
|
134
|
+
id: "pft-processing",
|
|
135
|
+
status: null,
|
|
136
|
+
dateCreated: PAST,
|
|
137
|
+
dateScheduled: FUTURE,
|
|
138
|
+
dateTransferred: null,
|
|
156
139
|
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
140
|
+
},
|
|
141
|
+
], taxConnection: fullySetupTaxConnection }, defaultProps)));
|
|
142
|
+
// 7. Partner funds transfer has been transferred → state is PAYOUT_APPROVED
|
|
143
|
+
export const RewardsCellPayoutApproved = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
144
|
+
{
|
|
145
|
+
...cashReward,
|
|
146
|
+
partnerFundsTransfer: {
|
|
147
|
+
id: "pft-transferred",
|
|
148
|
+
status: "TRANSFERRED",
|
|
149
|
+
dateCreated: PAST,
|
|
150
|
+
dateScheduled: PAST,
|
|
151
|
+
dateTransferred: PAST,
|
|
162
152
|
},
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
153
|
+
},
|
|
154
|
+
], taxConnection: fullySetupTaxConnection }, defaultProps)));
|
|
155
|
+
// 8. Reward is pending US_TAX but tax handling is disabled → state is PENDING (W-9 required)
|
|
156
|
+
export const RewardsCellPendingW9Required = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
157
|
+
{
|
|
158
|
+
...cashReward,
|
|
159
|
+
statuses: ["PENDING"],
|
|
160
|
+
pendingReasons: ["US_TAX"],
|
|
161
|
+
},
|
|
162
|
+
], taxConnection: { ...fullySetupTaxConnection, taxHandlingEnabled: false } }, defaultProps)));
|
|
163
|
+
// 9. Reward is pending US_TAX and the partner is not connected → shows the partner-setup prompt
|
|
164
|
+
export const RewardsCellUsTaxPartnerNotConnected = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
165
|
+
{
|
|
166
|
+
...cashReward,
|
|
167
|
+
statuses: ["PENDING"],
|
|
168
|
+
pendingReasons: ["US_TAX"],
|
|
169
|
+
},
|
|
170
|
+
], taxConnection: notConnectedTaxConnection }, defaultProps)));
|
|
171
|
+
// 10. Partner is connected but has not submitted any tax documents → shows the submit-tax-docs prompt
|
|
172
|
+
export const RewardsCellPendingTaxSubmission = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
173
|
+
{
|
|
174
|
+
...cashReward,
|
|
175
|
+
statuses: ["PENDING"],
|
|
176
|
+
pendingReasons: ["US_TAX"],
|
|
177
|
+
},
|
|
178
|
+
], taxConnection: {
|
|
179
|
+
...fullySetupTaxConnection,
|
|
180
|
+
publisher: {
|
|
181
|
+
...fullySetupTaxConnection.publisher,
|
|
182
|
+
currentTaxDocument: null,
|
|
183
|
+
},
|
|
184
|
+
} }, defaultProps)));
|
|
185
|
+
// 11. Partner's tax document is inactive (rejected) → shows the submit-a-new-form prompt
|
|
186
|
+
export const RewardsCellPendingNewTaxForm = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
187
|
+
{
|
|
188
|
+
...cashReward,
|
|
189
|
+
statuses: ["PENDING"],
|
|
190
|
+
pendingReasons: ["US_TAX"],
|
|
191
|
+
},
|
|
192
|
+
], taxConnection: {
|
|
193
|
+
...fullySetupTaxConnection,
|
|
194
|
+
publisher: {
|
|
195
|
+
...fullySetupTaxConnection.publisher,
|
|
196
|
+
currentTaxDocument: {
|
|
197
|
+
status: "INACTIVE",
|
|
198
|
+
type: "W9",
|
|
199
|
+
dateCreated: PAST,
|
|
171
200
|
},
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
201
|
+
},
|
|
202
|
+
} }, defaultProps)));
|
|
203
|
+
// 12. Partner's tax document is awaiting verification → shows the awaiting-review prompt
|
|
204
|
+
export const RewardsCellPendingTaxReview = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
205
|
+
{
|
|
206
|
+
...cashReward,
|
|
207
|
+
statuses: ["PENDING"],
|
|
208
|
+
pendingReasons: ["US_TAX"],
|
|
209
|
+
},
|
|
210
|
+
], taxConnection: {
|
|
211
|
+
...fullySetupTaxConnection,
|
|
212
|
+
publisher: {
|
|
213
|
+
...fullySetupTaxConnection.publisher,
|
|
214
|
+
currentTaxDocument: {
|
|
215
|
+
status: "NOT_VERIFIED",
|
|
216
|
+
type: "W9",
|
|
217
|
+
dateCreated: PAST,
|
|
183
218
|
},
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
219
|
+
},
|
|
220
|
+
} }, defaultProps)));
|
|
221
|
+
// 13. Partner has an active tax form but has not configured withdrawal settings → shows the partner-setup prompt
|
|
222
|
+
export const RewardsCellExistingTaxFormNoWithdrawalSettings = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
223
|
+
{
|
|
224
|
+
...cashReward,
|
|
225
|
+
statuses: ["PENDING"],
|
|
226
|
+
pendingReasons: ["US_TAX"],
|
|
227
|
+
},
|
|
228
|
+
], taxConnection: connectedNoWithdrawalSettings }, defaultProps)));
|
|
229
|
+
// 14. Reward has MISSING_PAYOUT_CONFIGURATION pending reason → shows the partner-setup prompt
|
|
230
|
+
export const RewardsCellMissingPayoutConfiguration = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
231
|
+
{
|
|
232
|
+
...cashReward,
|
|
233
|
+
statuses: ["PENDING"],
|
|
234
|
+
pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
|
|
235
|
+
},
|
|
236
|
+
], taxConnection: connectedNoWithdrawalSettings }, defaultProps)));
|
|
237
|
+
// 18. Reward does not match any precedence rule → state is undefined (Not available)
|
|
238
|
+
export const RewardsCellNoMatchingRule = () => (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [{ ...cashReward, statuses: [] }], taxConnection: fullySetupTaxConnection }, defaultProps)));
|
|
239
|
+
// ============================================================
|
|
240
|
+
// Aliases kept for backwards compatibility with existing references
|
|
241
|
+
// ============================================================
|
|
242
|
+
export const CashReward = RewardsCellPayoutApproved;
|
|
243
|
+
export const PayoutApproved = RewardsCellPayoutApproved;
|
|
244
|
+
export const PayoutProcessing = RewardsCellPayoutProcessing;
|
|
245
|
+
export const PayoutFailed = RewardsCellPayoutFailed;
|
|
246
|
+
export const PayoutCancelled = RewardsCellPayoutCancelled;
|
|
247
|
+
export const PendingTaxReview = RewardsCellPendingTaxReview;
|
|
248
|
+
export const PendingNewTaxForm = RewardsCellPendingNewTaxForm;
|
|
249
|
+
export const PendingTaxSubmission = RewardsCellPendingTaxSubmission;
|
|
250
|
+
export const PartnerNotCreatedSetupNotStarted = RewardsCellPartnerNotCreatedSetupNotStarted;
|
|
251
|
+
export const PartnerCreatedSetupStartedButIncomplete = RewardsCellPartnerCreatedSetupStartedButIncomplete;
|
|
252
|
+
export const PendingW9 = RewardsCellPendingW9Required;
|
package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js
CHANGED
|
@@ -7,7 +7,7 @@ import { TextSpanView } from "../../sqm-text-span/sqm-text-span-view";
|
|
|
7
7
|
export class ReferralTableRewardsCell {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.statusText = "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PROCESSING {Payment Processing} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";
|
|
10
|
-
this.statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your
|
|
10
|
+
this.statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";
|
|
11
11
|
this.pendingForText = "{status} for {date}";
|
|
12
12
|
this.locale = "en";
|
|
13
13
|
}
|
|
@@ -114,7 +114,7 @@ export class ReferralTableRewardsCell {
|
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
const getState = (reward, taxConnection) => {
|
|
117
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
117
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
118
118
|
const possibleStates = [
|
|
119
119
|
"REDEEMED",
|
|
120
120
|
"CANCELLED",
|
|
@@ -138,12 +138,21 @@ export class ReferralTableRewardsCell {
|
|
|
138
138
|
if (((_f = (_e = reward.referral) === null || _e === void 0 ? void 0 : _e.fraudData) === null || _f === void 0 ? void 0 : _f.moderationStatus) === "DENIED")
|
|
139
139
|
return "DENIED";
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const isCashReward = reward.rewardedCash;
|
|
142
|
+
if (isCashReward) {
|
|
143
|
+
if (!((_g = this.taxConnection) === null || _g === void 0 ? void 0 : _g.connected) ||
|
|
144
|
+
(((_h = this.taxConnection) === null || _h === void 0 ? void 0 : _h.connected) &&
|
|
145
|
+
!((_k = (_j = this.taxConnection) === null || _j === void 0 ? void 0 : _j.publisher) === null || _k === void 0 ? void 0 : _k.withdrawalSettings)))
|
|
146
|
+
return "PENDING_PARTNER_CREATION";
|
|
147
|
+
}
|
|
148
|
+
const partnerFundsStatus = (_l = reward.partnerFundsTransfer) === null || _l === void 0 ? void 0 : _l.status;
|
|
142
149
|
if (reward.partnerFundsTransfer) {
|
|
143
150
|
if (partnerFundsStatus === "REVERSED")
|
|
144
151
|
return "PAYOUT_CANCELLED";
|
|
145
152
|
if (partnerFundsStatus === "OVERDUE")
|
|
146
153
|
return "PAYOUT_FAILED";
|
|
154
|
+
}
|
|
155
|
+
if (reward.partnerFundsTransfer) {
|
|
147
156
|
if (reward.partnerFundsTransfer.dateScheduled &&
|
|
148
157
|
reward.partnerFundsTransfer.dateScheduled > Date.now()) {
|
|
149
158
|
return "PROCESSING";
|
|
@@ -156,13 +165,13 @@ export class ReferralTableRewardsCell {
|
|
|
156
165
|
partnerFundsStatus !== "REVERSED"))
|
|
157
166
|
return "PAYOUT_APPROVED";
|
|
158
167
|
}
|
|
159
|
-
if ((
|
|
168
|
+
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("US_TAX")) {
|
|
160
169
|
if (!(taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.taxHandlingEnabled))
|
|
161
170
|
return "PENDING";
|
|
162
171
|
if (!(taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.connected))
|
|
163
172
|
return "PENDING_PARTNER_CREATION";
|
|
164
|
-
if ((
|
|
165
|
-
if (!((
|
|
173
|
+
if ((_o = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _o === void 0 ? void 0 : _o.requiredTaxDocumentType) {
|
|
174
|
+
if (!((_p = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _p === void 0 ? void 0 : _p.currentTaxDocument))
|
|
166
175
|
return "PENDING_TAX_SUBMISSION";
|
|
167
176
|
const status = taxConnection.publisher.currentTaxDocument.status;
|
|
168
177
|
if (status === "INACTIVE" ||
|
|
@@ -172,10 +181,19 @@ export class ReferralTableRewardsCell {
|
|
|
172
181
|
if (status === "NOT_VERIFIED")
|
|
173
182
|
return "PENDING_TAX_REVIEW";
|
|
174
183
|
}
|
|
175
|
-
if (!((
|
|
184
|
+
if (!((_q = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _q === void 0 ? void 0 : _q.withdrawalSettings))
|
|
176
185
|
return "PENDING_PARTNER_CREATION";
|
|
177
186
|
}
|
|
178
|
-
|
|
187
|
+
// Fallback: when rewardStatus() forced PENDING because the user is
|
|
188
|
+
// connected but hasn't set up withdrawal settings (no pendingReasons
|
|
189
|
+
// were returned by the API, e.g. for credit rewards with a PFT).
|
|
190
|
+
if (reward.rewardedCash) {
|
|
191
|
+
if (!(taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.connected) ||
|
|
192
|
+
((taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.connected) &&
|
|
193
|
+
!((_r = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _r === void 0 ? void 0 : _r.withdrawalSettings)))
|
|
194
|
+
return "PENDING_PARTNER_CREATION";
|
|
195
|
+
}
|
|
196
|
+
if ((_s = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _s === void 0 ? void 0 : _s.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
179
197
|
return "PENDING_PARTNER_CREATION";
|
|
180
198
|
}
|
|
181
199
|
if (reward.statuses.length === 1)
|
|
@@ -251,10 +269,12 @@ export class ReferralTableRewardsCell {
|
|
|
251
269
|
h("span", { class: sheet.classes.BoldText, part: "sqm-cell-value" }, DateTime.fromMillis(reward.referral.dateModerated)
|
|
252
270
|
.setLocale(luxonLocale(this.locale))
|
|
253
271
|
.toLocaleString(DateTime.DATE_MED))))),
|
|
254
|
-
state === "
|
|
272
|
+
state === "" && (h("div", null,
|
|
255
273
|
h(TextSpanView, { type: "p" }, statusText))),
|
|
256
274
|
state === "PROCESSING" && (h("div", null,
|
|
257
275
|
h(TextSpanView, { type: "p" }, statusText))),
|
|
276
|
+
state === "PAYOUT_APPROVED" && (h("div", null,
|
|
277
|
+
h(TextSpanView, { type: "p" }, statusText))),
|
|
258
278
|
state === "PAYOUT_FAILED" && (h("div", null,
|
|
259
279
|
h(TextSpanView, { type: "p" }, statusText))),
|
|
260
280
|
state === "PAYOUT_CANCELLED" && (h("div", null,
|
|
@@ -412,7 +432,7 @@ export class ReferralTableRewardsCell {
|
|
|
412
432
|
},
|
|
413
433
|
"attribute": "status-long-text",
|
|
414
434
|
"reflect": false,
|
|
415
|
-
"defaultValue": "\"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your
|
|
435
|
+
"defaultValue": "\"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PROCESSING {Processing until {scheduledPayoutDate}. Payout is then scheduled based on your settings.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }\""
|
|
416
436
|
},
|
|
417
437
|
"fuelTankText": {
|
|
418
438
|
"type": "string",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { GenericTableView } from "../../tables/GenericTableView";
|
|
3
3
|
import { SourceCellReferral, DateCell } from "./RewardsTableCell.stories";
|
|
4
|
-
import { StatusCellPayoutSent, StatusCellPayoutFailed, StatusCellPendingNewTaxForm,
|
|
4
|
+
import { StatusCellPayoutSent, StatusCellPayoutFailed, StatusCellPendingNewTaxForm, StatusCellPendingTaxReview, StatusCellPendingTaxSubmission, StatusCellPayoutProcessing, CashReward, StatusCellPendingW9, StatusCellPayoutCancelled, StatusCellPartnerNotCreatedSetupNotStarted, } from "./TaxAndCashRewardsTableCell.stories";
|
|
5
5
|
export default {
|
|
6
6
|
title: "Components/Tax And Cash Rewards Table",
|
|
7
7
|
};
|
|
@@ -58,7 +58,7 @@ const r_pending_tax_review = [
|
|
|
58
58
|
];
|
|
59
59
|
const r_pending_partner_creation = [
|
|
60
60
|
h(CashReward, null),
|
|
61
|
-
h(
|
|
61
|
+
h(StatusCellPartnerNotCreatedSetupNotStarted, null),
|
|
62
62
|
h(SourceCellReferral, null),
|
|
63
63
|
h(DateCell, null),
|
|
64
64
|
];
|