@saasquatch/mint-components 2.2.0-7 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-1c054d52.js → ShadowViewAddon-3b477e58.js} +429 -27
- package/dist/cjs/{data-c03e282a.js → data-8c8a08f6.js} +90 -1
- package/dist/cjs/extractProps-e9c55ba8.js +35 -0
- package/dist/cjs/{keys-5a2c9ed2.js → keys-cff24974.js} +0 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +101 -482
- package/dist/cjs/sqm-big-stat_46.cjs.entry.js +360 -424
- package/dist/cjs/sqm-code-verification.cjs.entry.js +6 -5
- package/dist/cjs/sqm-email-verification.cjs.entry.js +418 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
- package/dist/cjs/{sqm-portal-email-verification-view-d51c2a06.js → sqm-portal-email-verification-view-abb773a7.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-profile-view-e6927959.js → sqm-portal-profile-view-3515e1e5.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-6258dcae.js → sqm-portal-verify-email-view-717d0633.js} +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +10 -28
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +9 -30
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +532 -740
- package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-user-info-form-view-4d56b339.js → sqm-user-info-form-view-53306f6e.js} +40 -33
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +214 -0
- package/dist/cjs/{usePayoutStatus-0a98ee05.js → usePayoutStatus-0192fccd.js} +5 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +5 -6
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +2 -3
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +0 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +0 -1
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +145 -209
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +10 -30
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +0 -1
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +137 -223
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +10 -30
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +0 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
- package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -4
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
- package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +43 -0
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +19 -0
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +175 -0
- package/dist/collection/components/sqm-user-attribute/useUserAttribute.js +30 -0
- package/dist/collection/components/sqm-widget-verification/keys.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +4 -3
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +2 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +9 -19
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +46 -486
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +11 -43
- package/dist/collection/components/tax-and-cash/data.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +12 -51
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +36 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +0 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +25 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +17 -34
- package/dist/esm/{ShadowViewAddon-4d554869.js → ShadowViewAddon-0b980200.js} +435 -34
- package/dist/esm/data-12e6aae1.js +216 -0
- package/dist/esm/extractProps-54064fb0.js +32 -0
- package/dist/esm/{global-75e96214.js → global-96c14d63.js} +1 -1
- package/dist/esm/{index.module-02cb914c.js → index.module-b23fdad8.js} +1 -1
- package/dist/esm/keys-406491dc.js +6 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-bf46ba54.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +95 -476
- package/dist/esm/sqm-big-stat_46.entry.js +364 -428
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +9 -8
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +414 -0
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- 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-bfafee56.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-b945edf4.js → sqm-lead-input-field-view-d1b91650.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-8d98fcf3.js → sqm-navigation-sidebar-item-view-b3beac5a.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-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
- package/dist/esm/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-04528277.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +8 -8
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-b5ea620f.js} +2 -2
- package/dist/esm/sqm-portal-profile.entry.js +5 -5
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-c61536b7.js} +2 -2
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +15 -33
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +14 -35
- package/dist/esm/sqm-stencilbook.entry.js +506 -714
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{sqm-user-info-form-view-d13f9d3e.js → sqm-user-info-form-view-19d81a2b.js} +20 -13
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/sqm-widget-verification.entry.js +210 -0
- package/dist/esm/{useChildElements-06937df7.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-69c9ffe0.js → useInstantAccessRegistration-69fefed0.js} +2 -2
- package/dist/esm/{useLeadFormState-332b2796.js → useLeadFormState-dd4e8b08.js} +2 -2
- package/dist/esm/{usePayoutStatus-227ae365.js → usePayoutStatus-46c0c289.js} +4 -3
- package/dist/esm/{usePortalRegistrationForm-3a1f36a2.js → usePortalRegistrationForm-62de6fb1.js} +2 -2
- package/dist/esm/{useReferralCodes-25f8b792.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm/{useReferralTable-03d32c6f.js → useReferralTable-92af4133.js} +3 -3
- package/dist/esm/{useRegistrationFormState-aa44cfff.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm/{useVerificationEmail-9f2c0bab.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm/{utilities-cbd8f2eb.js → utilities-77b1e0cc.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-0b980200.js +1 -0
- package/dist/esm-es5/data-12e6aae1.js +1 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/{global-75e96214.js → global-96c14d63.js} +1 -1
- package/dist/esm-es5/{index.module-02cb914c.js → index.module-b23fdad8.js} +1 -1
- package/dist/esm-es5/keys-406491dc.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-bf46ba54.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -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-bfafee56.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-b945edf4.js → sqm-lead-input-field-view-d1b91650.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-8d98fcf3.js → sqm-navigation-sidebar-item-view-b3beac5a.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-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-04528277.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-115bad4a.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-c61536b7.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-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/{useChildElements-06937df7.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-69c9ffe0.js → useInstantAccessRegistration-69fefed0.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-332b2796.js → useLeadFormState-dd4e8b08.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-227ae365.js → usePayoutStatus-46c0c289.js} +2 -2
- package/dist/esm-es5/{usePortalRegistrationForm-3a1f36a2.js → usePortalRegistrationForm-62de6fb1.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-25f8b792.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm-es5/{useReferralTable-03d32c6f.js → useReferralTable-92af4133.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-aa44cfff.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-9f2c0bab.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm-es5/{utilities-cbd8f2eb.js → utilities-77b1e0cc.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-00b235c5.system.entry.js +1 -0
- package/dist/mint-components/{p-4eadbd5b.entry.js → p-013564b3.entry.js} +1 -1
- package/dist/mint-components/{p-1b0326d1.entry.js → p-02499e08.entry.js} +1 -1
- package/dist/mint-components/{p-d34564f8.system.entry.js → p-027fc3be.system.entry.js} +1 -1
- package/dist/mint-components/{p-bb0b5e4b.js → p-035d9b65.js} +1 -1
- package/dist/mint-components/{p-e651593c.system.js → p-036a2617.system.js} +1 -1
- package/dist/mint-components/p-044f930a.system.js +1 -0
- package/dist/mint-components/p-0706cf9e.system.entry.js +1 -0
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-60b1f3d9.entry.js → p-09348341.entry.js} +1 -1
- package/dist/mint-components/{p-29bc5f50.entry.js → p-09f7aacd.entry.js} +2 -2
- package/dist/mint-components/p-0b1e90fe.system.js +1 -0
- package/dist/{esm/data-017e5ef2.js → mint-components/p-0c0d4065.js} +5 -24
- package/dist/mint-components/{p-cfea215d.js → p-0d83907e.js} +1 -1
- package/dist/mint-components/p-1021a49f.system.entry.js +1 -0
- package/dist/mint-components/p-13292317.entry.js +11 -0
- package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
- package/dist/mint-components/{p-d284ae70.system.js → p-172675ca.system.js} +1 -1
- package/dist/mint-components/{p-b2ad3fca.system.js → p-19c441b2.system.js} +1 -1
- package/dist/mint-components/{p-dafe30c3.entry.js → p-1d92c169.entry.js} +1 -1
- package/dist/mint-components/{p-0815b973.system.js → p-205cfdcd.system.js} +1 -1
- package/dist/mint-components/{p-ae4994e1.js → p-2668335b.js} +1 -1
- package/dist/mint-components/{p-13bb56a8.system.entry.js → p-2b4af8e8.system.entry.js} +1 -1
- package/dist/mint-components/p-2d5c2bd4.system.entry.js +1 -0
- package/dist/mint-components/{p-2190dc73.system.js → p-30c1ef36.system.js} +1 -1
- package/dist/mint-components/{p-4eaa3eb7.js → p-3286ef38.js} +1 -1
- package/dist/mint-components/{p-eae44b42.js → p-3366b81e.js} +2 -2
- package/dist/mint-components/p-38c7775a.js +1 -0
- package/dist/mint-components/p-3adbfd0b.system.js +6 -0
- package/dist/mint-components/p-3af3e2c1.entry.js +25 -0
- package/dist/mint-components/{p-4e3db52b.entry.js → p-3bc62ca6.entry.js} +1 -1
- package/dist/mint-components/{p-d71a8b38.entry.js → p-40bad95a.entry.js} +2 -2
- package/dist/mint-components/{p-bd972473.system.js → p-43c31fd5.system.js} +1 -1
- package/dist/mint-components/{p-df897432.system.entry.js → p-4da5a3fe.system.entry.js} +1 -1
- package/dist/mint-components/{p-bcfdb510.entry.js → p-52674798.entry.js} +1 -1
- package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
- package/dist/mint-components/p-57dd28bd.system.js +1 -0
- package/dist/mint-components/p-5b1d2866.system.js +1 -0
- package/dist/mint-components/{p-02c0f88e.system.entry.js → p-5b871e38.system.entry.js} +1 -1
- package/dist/mint-components/p-5bc5c61e.entry.js +1 -0
- package/dist/mint-components/{p-7ea3f49c.entry.js → p-5c4ba8a0.entry.js} +1 -1
- package/dist/mint-components/{p-81bc6dca.system.entry.js → p-5ce78407.system.entry.js} +1 -1
- package/dist/mint-components/{p-14183edc.entry.js → p-61897e72.entry.js} +1 -1
- package/dist/mint-components/{p-025ddad2.system.entry.js → p-626b31cb.system.entry.js} +1 -1
- package/dist/mint-components/{p-bf9ab2d3.js → p-642f2c89.js} +1 -1
- package/dist/mint-components/{p-78e6dc8d.entry.js → p-653db72e.entry.js} +1 -1
- package/dist/mint-components/{p-27daf264.entry.js → p-6668f9f0.entry.js} +1 -1
- package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
- package/dist/mint-components/p-6c4ad51a.js +1 -0
- package/dist/mint-components/{p-8e148cb0.system.js → p-7265bbcb.system.js} +1 -1
- package/dist/mint-components/{p-2d3f7b76.system.entry.js → p-738dce27.system.entry.js} +1 -1
- package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
- package/dist/mint-components/{p-5fdf0286.system.js → p-77b9cde8.system.js} +1 -1
- package/dist/mint-components/p-77fa2383.entry.js +1 -0
- package/dist/mint-components/{p-f6de2e5c.system.entry.js → p-782af7ae.system.entry.js} +1 -1
- package/dist/mint-components/p-7939e4af.entry.js +1 -0
- package/dist/mint-components/{p-1317cc92.system.js → p-7b59e13c.system.js} +1 -1
- package/dist/mint-components/{p-f32050f6.system.js → p-7efb8782.system.js} +1 -1
- package/dist/mint-components/{p-24f1d342.system.entry.js → p-80e116ec.system.entry.js} +1 -1
- package/dist/mint-components/p-8285869e.entry.js +9 -0
- package/dist/mint-components/{p-614723aa.js → p-832aea99.js} +1 -1
- package/dist/mint-components/{p-e920c95c.system.js → p-85721089.system.js} +1 -1
- package/dist/mint-components/{p-376c7608.system.js → p-8583ce0c.system.js} +1 -1
- package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
- package/dist/mint-components/p-892797eb.system.entry.js +1 -0
- package/dist/mint-components/{p-2ab31786.js → p-8962e023.js} +1 -1
- package/dist/mint-components/{p-1599a178.entry.js → p-8f2d03c7.entry.js} +1 -1
- package/dist/mint-components/{p-ab59c5eb.system.entry.js → p-90833864.system.entry.js} +1 -1
- package/dist/mint-components/p-91a96e98.entry.js +1 -0
- package/dist/mint-components/{p-ca5b9f4d.system.entry.js → p-9390586b.system.entry.js} +1 -1
- package/dist/mint-components/{p-38d04e4b.entry.js → p-95510f27.entry.js} +1 -1
- package/dist/mint-components/{p-432a44de.entry.js → p-982d1f6f.entry.js} +2 -3
- package/dist/mint-components/{p-c66e5217.system.js → p-a0c5631b.system.js} +1 -1
- package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
- package/dist/mint-components/{p-0766438e.js → p-a4f8abad.js} +1 -1
- package/dist/mint-components/{p-209157a9.system.entry.js → p-a96c9bbb.system.entry.js} +1 -1
- package/dist/mint-components/{p-eee0bcf4.entry.js → p-af407cce.entry.js} +1 -1
- package/dist/mint-components/p-b2b85238.entry.js +1 -0
- package/dist/mint-components/p-b395470f.entry.js +16 -0
- package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
- package/dist/mint-components/{p-921eb024.entry.js → p-b66f45d1.entry.js} +1 -1
- package/dist/mint-components/{p-cfba6b4e.system.entry.js → p-b96e90a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-45230a44.js → p-bab4929e.js} +1 -1
- package/dist/mint-components/p-bba16a46.system.entry.js +1 -0
- package/dist/mint-components/{p-c0a85e22.js → p-bc386a7b.js} +1 -1
- package/dist/mint-components/p-be12607e.entry.js +281 -0
- package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
- package/dist/mint-components/p-bf188b72.system.entry.js +1 -0
- package/dist/mint-components/{p-6b4e5d94.system.entry.js → p-c30d0049.system.entry.js} +1 -1
- package/dist/mint-components/{p-30cfe3e3.system.entry.js → p-c45a929a.system.entry.js} +1 -1
- package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
- package/dist/mint-components/p-c8a3f3b0.js +499 -0
- package/dist/mint-components/{p-b3309d9b.entry.js → p-c8a8d231.entry.js} +2 -2
- package/dist/mint-components/{p-3354cc75.system.entry.js → p-c8bcbf8b.system.entry.js} +1 -1
- package/dist/mint-components/p-ca098be1.system.js +1 -0
- package/dist/mint-components/{p-623a0a0b.system.entry.js → p-d005df28.system.entry.js} +1 -1
- package/dist/mint-components/{p-8a6531d2.js → p-d0993bb9.js} +1 -1
- package/dist/mint-components/p-d18dedd4.js +1 -0
- package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
- package/dist/mint-components/p-d4f332a7.entry.js +106 -0
- package/dist/mint-components/{p-b1765c78.system.js → p-d55c50af.system.js} +1 -1
- package/dist/mint-components/p-d6193876.system.js +1 -0
- package/dist/mint-components/{p-092c2606.entry.js → p-db0a2afd.entry.js} +1 -1
- package/dist/mint-components/p-de0d6fd7.js +49 -0
- package/dist/mint-components/p-e00ec007.js +1 -0
- package/dist/mint-components/{p-9a15cd5a.system.entry.js → p-e12754f5.system.entry.js} +1 -1
- package/dist/mint-components/p-e30abc44.js +1 -0
- package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-3bbc0db2.entry.js → p-e5ea43b1.entry.js} +2 -2
- package/dist/mint-components/{p-abd717d4.js → p-e6240c72.js} +1 -1
- package/dist/mint-components/{p-3a41b39c.js → p-e84b874c.js} +1 -1
- package/dist/mint-components/{p-dbc8afaa.system.entry.js → p-e9485160.system.entry.js} +1 -1
- package/dist/mint-components/p-ea03e50e.system.js +1 -0
- package/dist/mint-components/p-ec0b649a.entry.js +1 -0
- package/dist/mint-components/{p-925aa740.system.entry.js → p-f1374258.system.entry.js} +1 -1
- package/dist/mint-components/{p-e6de31a7.system.entry.js → p-f39cf252.system.entry.js} +1 -1
- package/dist/mint-components/{p-6f6c3ac6.system.entry.js → p-f4e36adf.system.entry.js} +1 -1
- package/dist/mint-components/{p-02e2b13b.system.js → p-f55ecf35.system.js} +1 -1
- package/dist/mint-components/{p-7a091fa7.js → p-f581aac7.js} +1 -1
- package/dist/mint-components/{p-8d073bdf.entry.js → p-f6528f8a.entry.js} +1 -1
- package/dist/mint-components/{p-9ba8b28b.system.entry.js → p-f7ca4cc4.system.entry.js} +1 -1
- package/dist/mint-components/p-f8026ed6.system.js +1 -0
- package/dist/mint-components/{p-13d8ecad.js → p-f8a09b0f.js} +1 -1
- package/dist/mint-components/p-fb804001.system.entry.js +1 -0
- package/dist/mint-components/{p-0b32e1d4.system.entry.js → p-fc284f91.system.entry.js} +1 -1
- package/dist/mint-components/{p-099ce3d5.system.entry.js → p-fe1d3cf8.system.entry.js} +1 -1
- package/dist/mint-components/p-fe70e20c.entry.js +1 -0
- package/dist/mint-components/p-ff118a19.system.js +1 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
- package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +1 -18
- package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +7 -19
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
- package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
- package/dist/types/components/sqm-user-attribute/UserAttribute.stories.d.ts +11 -0
- package/dist/types/components/sqm-user-attribute/sqm-user-attribute-view.d.ts +8 -0
- package/dist/types/components/sqm-user-attribute/sqm-user-attribute.d.ts +45 -0
- package/dist/types/components/sqm-user-attribute/useUserAttribute.d.ts +3 -0
- package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +7 -75
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -2
- package/dist/types/components/tax-and-cash/data.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -7
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -0
- package/dist/types/components.d.ts +472 -613
- package/dist/types/saasquatch.d.ts +0 -2
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +15 -3
- package/readme.md +60 -1
- package/dist/cjs/eventKeys-7af4df4d.js +0 -5
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +0 -886
- package/dist/cjs/sqm-partner-info-modal-view-97770d03.js +0 -149
- package/dist/cjs/utils-15ce04e3.js +0 -93
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -171
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -143
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -669
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -269
- package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +0 -16
- package/dist/esm/eventKeys-f76b6a03.js +0 -3
- package/dist/esm/keys-1054056a.js +0 -8
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-email-verification_2.entry.js +0 -881
- package/dist/esm/sqm-partner-info-modal-view-5709904e.js +0 -146
- package/dist/esm/utils-17daa419.js +0 -85
- package/dist/esm-es5/ShadowViewAddon-4d554869.js +0 -1
- package/dist/esm-es5/data-017e5ef2.js +0 -1
- package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
- package/dist/esm-es5/keys-1054056a.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-5709904e.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-d13f9d3e.js +0 -1
- package/dist/esm-es5/utils-17daa419.js +0 -1
- package/dist/mint-components/p-00046ec1.js +0 -116
- package/dist/mint-components/p-00dd7f08.js +0 -1
- package/dist/mint-components/p-0102ad17.system.entry.js +0 -1
- package/dist/mint-components/p-0a6489fa.entry.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-1d86895f.system.js +0 -1
- package/dist/mint-components/p-1f387c7b.system.js +0 -1
- package/dist/mint-components/p-1faa6ddf.system.entry.js +0 -1
- package/dist/mint-components/p-28ed2ae9.js +0 -1
- package/dist/mint-components/p-31edeff4.system.js +0 -1
- package/dist/mint-components/p-3254fbb4.entry.js +0 -291
- package/dist/mint-components/p-4034f157.js +0 -1
- package/dist/mint-components/p-4691e9d5.system.js +0 -1
- package/dist/mint-components/p-4a8ffa03.system.js +0 -1
- package/dist/mint-components/p-4e34bcb1.system.js +0 -1
- package/dist/mint-components/p-4f9dc974.js +0 -1
- package/dist/mint-components/p-53d90eb5.js +0 -463
- package/dist/mint-components/p-5e300ec1.system.js +0 -6
- package/dist/mint-components/p-6af71f23.entry.js +0 -9
- package/dist/mint-components/p-6c23abd8.entry.js +0 -1
- package/dist/mint-components/p-6f8dde97.system.js +0 -1
- package/dist/mint-components/p-753d06ef.entry.js +0 -133
- package/dist/mint-components/p-7699d40a.system.entry.js +0 -1
- package/dist/mint-components/p-7aace2b3.system.js +0 -1
- package/dist/mint-components/p-87f86492.js +0 -1
- package/dist/mint-components/p-8ae8968c.js +0 -1
- package/dist/mint-components/p-8f15bf17.entry.js +0 -1
- package/dist/mint-components/p-99eecdcb.system.entry.js +0 -1
- package/dist/mint-components/p-9b15ee47.system.js +0 -1
- package/dist/mint-components/p-a49d9288.entry.js +0 -1
- package/dist/mint-components/p-b0ab1065.system.entry.js +0 -1
- package/dist/mint-components/p-b1b20d42.entry.js +0 -11
- package/dist/mint-components/p-b52a7da9.system.entry.js +0 -1
- package/dist/mint-components/p-b699f76e.system.js +0 -1
- package/dist/mint-components/p-b6a1e2ac.js +0 -1
- package/dist/mint-components/p-b7370480.js +0 -1
- package/dist/mint-components/p-badf28bb.system.js +0 -1
- package/dist/mint-components/p-c41d536d.entry.js +0 -1
- package/dist/mint-components/p-ce7d824b.js +0 -49
- package/dist/mint-components/p-d08408b3.entry.js +0 -1
- package/dist/mint-components/p-d1c1c2c9.entry.js +0 -116
- package/dist/mint-components/p-d6ccb6fc.entry.js +0 -1
- package/dist/mint-components/p-e93cdcbd.system.js +0 -1
- package/dist/mint-components/p-eb285d38.system.entry.js +0 -1
- package/dist/mint-components/p-f782ff10.system.entry.js +0 -1
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -15
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -50
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -122
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -17
- package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +0 -8
- package/docs/stats.json +0 -122783
|
@@ -22,6 +22,11 @@ export class SqmReferralIframe {
|
|
|
22
22
|
* @uiName IFrame width
|
|
23
23
|
*/
|
|
24
24
|
this.iframeWidth = "100%";
|
|
25
|
+
/**
|
|
26
|
+
* Override the default parameter name used in the iframe
|
|
27
|
+
* @uiName Referral code parameter name
|
|
28
|
+
*/
|
|
29
|
+
this.codeParam = "rsCode";
|
|
25
30
|
withHooks(this);
|
|
26
31
|
}
|
|
27
32
|
disconnectedCallback() { }
|
|
@@ -108,12 +113,33 @@ export class SqmReferralIframe {
|
|
|
108
113
|
"reflect": false,
|
|
109
114
|
"defaultValue": "\"100%\""
|
|
110
115
|
},
|
|
116
|
+
"codeParam": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "string",
|
|
121
|
+
"resolved": "string",
|
|
122
|
+
"references": {}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": false,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [{
|
|
128
|
+
"text": "Referral code parameter name",
|
|
129
|
+
"name": "uiName"
|
|
130
|
+
}],
|
|
131
|
+
"text": "Override the default parameter name used in the iframe"
|
|
132
|
+
},
|
|
133
|
+
"attribute": "code-param",
|
|
134
|
+
"reflect": false,
|
|
135
|
+
"defaultValue": "\"rsCode\""
|
|
136
|
+
},
|
|
111
137
|
"demoData": {
|
|
112
138
|
"type": "unknown",
|
|
113
139
|
"mutable": false,
|
|
114
140
|
"complexType": {
|
|
115
141
|
"original": "DemoData<ReferralIframeViewProps>",
|
|
116
|
-
"resolved": "{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; }; }; data?: { shareCode: string; }; }",
|
|
142
|
+
"resolved": "{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; codeParam: string; }; }; data?: { shareCode: string; }; }",
|
|
117
143
|
"references": {
|
|
118
144
|
"DemoData": {
|
|
119
145
|
"location": "import",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { GenericTableView } from "../../tables/GenericTableView";
|
|
3
3
|
import { Converted as ConvertedStatus, DateCell, } from "./ReferralTableCell.stories";
|
|
4
|
-
import { PayoutApproved, PayoutProcessing, PayoutFailed, PayoutCancelled, PendingTaxReview, PendingNewTaxForm, PendingTaxSubmission,
|
|
4
|
+
import { PayoutApproved, PayoutProcessing, PayoutFailed, PayoutCancelled, PendingTaxReview, PendingNewTaxForm, PendingTaxSubmission, PendingPartnerCreation, PendingW9, CashReward, } from "./TaxAndCashReferralTableRewardsCell.stories";
|
|
5
5
|
export default {
|
|
6
6
|
title: "Components/Tax And Cash Referral Table",
|
|
7
7
|
};
|
|
@@ -75,7 +75,7 @@ const taxAndCashTableProps = {
|
|
|
75
75
|
h("sqm-referral-table-user-cell", { name: "Partner Creation User" }),
|
|
76
76
|
h(ConvertedStatus, null),
|
|
77
77
|
h(DateCell, null),
|
|
78
|
-
h(
|
|
78
|
+
h(PendingPartnerCreation, null),
|
|
79
79
|
],
|
|
80
80
|
[
|
|
81
81
|
h("sqm-referral-table-user-cell", { name: "Missing W9 User" }),
|
package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js
CHANGED
|
@@ -1,252 +1,188 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { DateTime } from "luxon";
|
|
2
3
|
export default {
|
|
3
4
|
title: "Components/Tax And Cash Referral Table Rewards Cell",
|
|
4
5
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
function getDays() {
|
|
7
|
+
return DateTime.now().toMillis() + 600000000;
|
|
8
|
+
}
|
|
9
|
+
function getMonths() {
|
|
10
|
+
return DateTime.now().toMillis() + 10000000000;
|
|
11
|
+
}
|
|
8
12
|
const cashReward = {
|
|
9
13
|
id: "1234",
|
|
10
14
|
type: "CREDIT",
|
|
11
15
|
value: 50,
|
|
12
16
|
unit: "USD",
|
|
13
17
|
name: "test",
|
|
14
|
-
dateScheduledFor:
|
|
15
|
-
dateExpires:
|
|
16
|
-
dateCancelled:
|
|
17
|
-
dateRedeemed:
|
|
18
|
+
dateScheduledFor: getDays(),
|
|
19
|
+
dateExpires: getMonths(),
|
|
20
|
+
dateCancelled: 134400,
|
|
21
|
+
dateRedeemed: 0,
|
|
18
22
|
fuelTankCode: null,
|
|
19
23
|
fuelTankType: null,
|
|
20
24
|
currency: "USD",
|
|
21
25
|
prettyValue: "$50.00",
|
|
22
|
-
statuses: [],
|
|
26
|
+
statuses: ["AVAILABLE"],
|
|
23
27
|
globalRewardKey: "Key",
|
|
24
28
|
rewardRedemptionTransactions: null,
|
|
25
29
|
partnerFundsTransfer: null,
|
|
26
|
-
rewardedCash: true,
|
|
27
30
|
};
|
|
28
|
-
|
|
29
|
-
// Reusable tax connections
|
|
30
|
-
// ============================================================
|
|
31
|
-
const fullySetupTaxConnection = {
|
|
31
|
+
const taxConnection = {
|
|
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
|
-
},
|
|
41
36
|
withdrawalSettings: { paymentMethod: "BANK_TRANSFER" },
|
|
42
37
|
payoutsAccount: null,
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
const connectedNoWithdrawalSettings = {
|
|
46
|
-
connected: true,
|
|
47
|
-
taxHandlingEnabled: true,
|
|
48
|
-
publisher: {
|
|
49
|
-
requiredTaxDocumentType: "W9",
|
|
50
38
|
currentTaxDocument: {
|
|
51
39
|
status: "ACTIVE",
|
|
52
40
|
type: "W9",
|
|
53
|
-
dateCreated:
|
|
41
|
+
dateCreated: 1627427794891,
|
|
54
42
|
},
|
|
55
|
-
withdrawalSettings: null,
|
|
56
|
-
payoutsAccount: null,
|
|
57
43
|
},
|
|
58
44
|
};
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
45
|
+
const defaultPFT = {
|
|
46
|
+
id: "ID1234",
|
|
47
|
+
status: null,
|
|
48
|
+
dateCreated: null,
|
|
49
|
+
dateScheduled: null,
|
|
50
|
+
dateTransferred: null,
|
|
51
|
+
};
|
|
52
|
+
const defaultTaxDocument = {
|
|
53
|
+
status: "NOT_VERIFIED",
|
|
54
|
+
type: "W9",
|
|
55
|
+
dateCreated: DateTime.now().toMillis() - 1000000,
|
|
63
56
|
};
|
|
64
57
|
const defaultProps = {
|
|
65
58
|
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} }",
|
|
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} }",
|
|
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 your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }",
|
|
67
60
|
rewardReceivedText: "Reward received on",
|
|
68
61
|
hideDetails: false,
|
|
69
62
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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,
|
|
63
|
+
export const CashReward = () => {
|
|
64
|
+
return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [{ ...cashReward }], taxConnection: taxConnection }, defaultProps)));
|
|
65
|
+
};
|
|
66
|
+
export const PayoutApproved = () => {
|
|
67
|
+
return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
68
|
+
{
|
|
69
|
+
...cashReward,
|
|
70
|
+
partnerFundsTransfer: {
|
|
71
|
+
...defaultPFT,
|
|
72
|
+
status: "TRANSFERRED",
|
|
73
|
+
dateScheduled: Date.now() - 600000000,
|
|
74
|
+
},
|
|
100
75
|
},
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
dateTransferred: null,
|
|
76
|
+
], taxConnection: taxConnection }, defaultProps)));
|
|
77
|
+
};
|
|
78
|
+
export const PayoutProcessing = () => {
|
|
79
|
+
return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
80
|
+
{
|
|
81
|
+
...cashReward,
|
|
82
|
+
partnerFundsTransfer: {
|
|
83
|
+
...defaultPFT,
|
|
84
|
+
dateCreated: 1355612521321,
|
|
85
|
+
dateScheduled: getDays(),
|
|
86
|
+
},
|
|
113
87
|
},
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
dateTransferred: null,
|
|
88
|
+
], taxConnection: taxConnection }, defaultProps)));
|
|
89
|
+
};
|
|
90
|
+
export const PayoutFailed = () => {
|
|
91
|
+
return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
92
|
+
{
|
|
93
|
+
...cashReward,
|
|
94
|
+
partnerFundsTransfer: {
|
|
95
|
+
...defaultPFT,
|
|
96
|
+
status: "OVERDUE",
|
|
97
|
+
dateScheduled: Date.now() - 100000,
|
|
98
|
+
},
|
|
126
99
|
},
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
dateTransferred: null,
|
|
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
|
+
},
|
|
139
111
|
},
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
status: "TRANSFERRED",
|
|
149
|
-
dateCreated: PAST,
|
|
150
|
-
dateScheduled: PAST,
|
|
151
|
-
dateTransferred: PAST,
|
|
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"],
|
|
152
120
|
},
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
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,
|
|
121
|
+
], taxConnection: {
|
|
122
|
+
...taxConnection,
|
|
123
|
+
publisher: {
|
|
124
|
+
...taxConnection.publisher,
|
|
125
|
+
currentTaxDocument: {
|
|
126
|
+
...defaultTaxDocument,
|
|
127
|
+
status: "NOT_VERIFIED",
|
|
128
|
+
},
|
|
200
129
|
},
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
},
|
|
210
|
-
], taxConnection: {
|
|
211
|
-
...fullySetupTaxConnection,
|
|
212
|
-
publisher: {
|
|
213
|
-
...fullySetupTaxConnection.publisher,
|
|
214
|
-
currentTaxDocument: {
|
|
215
|
-
status: "NOT_VERIFIED",
|
|
216
|
-
type: "W9",
|
|
217
|
-
dateCreated: PAST,
|
|
130
|
+
} }, defaultProps)));
|
|
131
|
+
};
|
|
132
|
+
export const PendingNewTaxForm = () => {
|
|
133
|
+
return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
134
|
+
{
|
|
135
|
+
...cashReward,
|
|
136
|
+
statuses: ["PENDING"],
|
|
137
|
+
pendingReasons: ["US_TAX"],
|
|
218
138
|
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
export const
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
export const
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
139
|
+
], taxConnection: {
|
|
140
|
+
...taxConnection,
|
|
141
|
+
publisher: {
|
|
142
|
+
...taxConnection.publisher,
|
|
143
|
+
currentTaxDocument: {
|
|
144
|
+
...defaultTaxDocument,
|
|
145
|
+
status: "INACTIVE",
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
} }, defaultProps)));
|
|
149
|
+
};
|
|
150
|
+
export const PendingTaxSubmission = () => {
|
|
151
|
+
return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
152
|
+
{
|
|
153
|
+
...cashReward,
|
|
154
|
+
statuses: ["PENDING"],
|
|
155
|
+
pendingReasons: ["US_TAX"],
|
|
156
|
+
},
|
|
157
|
+
], taxConnection: {
|
|
158
|
+
...taxConnection,
|
|
159
|
+
publisher: {
|
|
160
|
+
...taxConnection.publisher,
|
|
161
|
+
currentTaxDocument: null,
|
|
162
|
+
},
|
|
163
|
+
} }, defaultProps)));
|
|
164
|
+
};
|
|
165
|
+
export const PendingPartnerCreation = () => {
|
|
166
|
+
return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
167
|
+
{
|
|
168
|
+
...cashReward,
|
|
169
|
+
statuses: ["PENDING"],
|
|
170
|
+
pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
|
|
171
|
+
},
|
|
172
|
+
], taxConnection: {
|
|
173
|
+
...taxConnection,
|
|
174
|
+
connected: false,
|
|
175
|
+
} }, defaultProps)));
|
|
176
|
+
};
|
|
177
|
+
export const PendingW9 = () => {
|
|
178
|
+
return (h("sqm-referral-table-rewards-cell", Object.assign({ rewards: [
|
|
179
|
+
{
|
|
180
|
+
...cashReward,
|
|
181
|
+
statuses: ["PENDING"],
|
|
182
|
+
pendingReasons: ["US_TAX"],
|
|
183
|
+
},
|
|
184
|
+
], taxConnection: {
|
|
185
|
+
...taxConnection,
|
|
186
|
+
taxHandlingEnabled: false,
|
|
187
|
+
} }, defaultProps)));
|
|
188
|
+
};
|
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 cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} 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 tax and 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;
|
|
118
118
|
const possibleStates = [
|
|
119
119
|
"REDEEMED",
|
|
120
120
|
"CANCELLED",
|
|
@@ -138,21 +138,12 @@ 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
|
|
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;
|
|
141
|
+
const partnerFundsStatus = (_g = reward.partnerFundsTransfer) === null || _g === void 0 ? void 0 : _g.status;
|
|
149
142
|
if (reward.partnerFundsTransfer) {
|
|
150
143
|
if (partnerFundsStatus === "REVERSED")
|
|
151
144
|
return "PAYOUT_CANCELLED";
|
|
152
145
|
if (partnerFundsStatus === "OVERDUE")
|
|
153
146
|
return "PAYOUT_FAILED";
|
|
154
|
-
}
|
|
155
|
-
if (reward.partnerFundsTransfer) {
|
|
156
147
|
if (reward.partnerFundsTransfer.dateScheduled &&
|
|
157
148
|
reward.partnerFundsTransfer.dateScheduled > Date.now()) {
|
|
158
149
|
return "PROCESSING";
|
|
@@ -165,13 +156,13 @@ export class ReferralTableRewardsCell {
|
|
|
165
156
|
partnerFundsStatus !== "REVERSED"))
|
|
166
157
|
return "PAYOUT_APPROVED";
|
|
167
158
|
}
|
|
168
|
-
if ((
|
|
159
|
+
if ((_h = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _h === void 0 ? void 0 : _h.includes("US_TAX")) {
|
|
169
160
|
if (!(taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.taxHandlingEnabled))
|
|
170
161
|
return "PENDING";
|
|
171
162
|
if (!(taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.connected))
|
|
172
163
|
return "PENDING_PARTNER_CREATION";
|
|
173
|
-
if ((
|
|
174
|
-
if (!((
|
|
164
|
+
if ((_j = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _j === void 0 ? void 0 : _j.requiredTaxDocumentType) {
|
|
165
|
+
if (!((_k = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _k === void 0 ? void 0 : _k.currentTaxDocument))
|
|
175
166
|
return "PENDING_TAX_SUBMISSION";
|
|
176
167
|
const status = taxConnection.publisher.currentTaxDocument.status;
|
|
177
168
|
if (status === "INACTIVE" ||
|
|
@@ -181,19 +172,10 @@ export class ReferralTableRewardsCell {
|
|
|
181
172
|
if (status === "NOT_VERIFIED")
|
|
182
173
|
return "PENDING_TAX_REVIEW";
|
|
183
174
|
}
|
|
184
|
-
if (!((
|
|
175
|
+
if (!((_l = taxConnection === null || taxConnection === void 0 ? void 0 : taxConnection.publisher) === null || _l === void 0 ? void 0 : _l.withdrawalSettings))
|
|
185
176
|
return "PENDING_PARTNER_CREATION";
|
|
186
177
|
}
|
|
187
|
-
|
|
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")) {
|
|
178
|
+
if ((_m = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _m === void 0 ? void 0 : _m.includes("MISSING_PAYOUT_CONFIGURATION")) {
|
|
197
179
|
return "PENDING_PARTNER_CREATION";
|
|
198
180
|
}
|
|
199
181
|
if (reward.statuses.length === 1)
|
|
@@ -269,12 +251,10 @@ export class ReferralTableRewardsCell {
|
|
|
269
251
|
h("span", { class: sheet.classes.BoldText, part: "sqm-cell-value" }, DateTime.fromMillis(reward.referral.dateModerated)
|
|
270
252
|
.setLocale(luxonLocale(this.locale))
|
|
271
253
|
.toLocaleString(DateTime.DATE_MED))))),
|
|
272
|
-
state === "" && (h("div", null,
|
|
254
|
+
state === "PAYOUT_APPROVED" && (h("div", null,
|
|
273
255
|
h(TextSpanView, { type: "p" }, statusText))),
|
|
274
256
|
state === "PROCESSING" && (h("div", null,
|
|
275
257
|
h(TextSpanView, { type: "p" }, statusText))),
|
|
276
|
-
state === "PAYOUT_APPROVED" && (h("div", null,
|
|
277
|
-
h(TextSpanView, { type: "p" }, statusText))),
|
|
278
258
|
state === "PAYOUT_FAILED" && (h("div", null,
|
|
279
259
|
h(TextSpanView, { type: "p" }, statusText))),
|
|
280
260
|
state === "PAYOUT_CANCELLED" && (h("div", null,
|
|
@@ -432,7 +412,7 @@ export class ReferralTableRewardsCell {
|
|
|
432
412
|
},
|
|
433
413
|
"attribute": "status-long-text",
|
|
434
414
|
"reflect": false,
|
|
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} }\""
|
|
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 tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }\""
|
|
436
416
|
},
|
|
437
417
|
"fuelTankText": {
|
|
438
418
|
"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, StatusCellPendingTaxReview, StatusCellPendingTaxSubmission, StatusCellPayoutProcessing, CashReward, StatusCellPendingW9, StatusCellPayoutCancelled,
|
|
4
|
+
import { StatusCellPayoutSent, StatusCellPayoutFailed, StatusCellPendingNewTaxForm, StatusCellPendingPartnerCreation, StatusCellPendingTaxReview, StatusCellPendingTaxSubmission, StatusCellPayoutProcessing, CashReward, StatusCellPendingW9, StatusCellPayoutCancelled, } 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(StatusCellPendingPartnerCreation, null),
|
|
62
62
|
h(SourceCellReferral, null),
|
|
63
63
|
h(DateCell, null),
|
|
64
64
|
];
|