@saasquatch/mint-components 1.13.0-8 → 1.13.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-44cb1a98.js → ShadowViewAddon-d98f73be.js} +109 -157
- package/dist/cjs/{copy-text-view-9b950efe.js → copy-text-view-a5524c20.js} +1 -1
- package/dist/cjs/extractProps-fd93ba62.js +21 -0
- package/dist/cjs/{global-19fc8a7a.js → global-e31dc4f5.js} +1 -1
- package/dist/cjs/{index.module-57703088.js → index.module-ee84433d.js} +4 -0
- package/dist/cjs/keys-cff24974.js +11 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-35b016ed.js → re-render-b324deab.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-banking-info-form_16.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +1012 -239
- package/dist/cjs/{sqm-base-registration-form-view-d5685747.js → sqm-base-registration-form-view-8a2c8763.js} +1 -1
- package/dist/cjs/{sqm-big-stat_38.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +402 -191
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +291 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +32 -7
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-invoice-table-view-9dfa2a16.js → sqm-invoice-table-view-baded4af.js} +172 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-9bba5f7e.js → sqm-navigation-sidebar-item-view-6f35d2ee.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-98d84549.js → sqm-portal-email-verification-view-7ebb426a.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +130 -0
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-login-view-761a4d8e.js +58 -0
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-bae28ea0.js → sqm-portal-profile-view-33164798.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-registration-form-view-e947a5b3.js → sqm-portal-registration-form-view-ebf355a6.js} +13 -12
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
- package/dist/cjs/sqm-scroll.cjs.entry.js +109 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +265 -73
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +113 -0
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +203 -0
- package/dist/cjs/{useChildElements-854cd1e5.js → useChildElements-1b35d945.js} +1 -1
- package/dist/cjs/{useInstantAccessRegistration-daff8290.js → useInstantAccessRegistration-9a46c324.js} +2 -2
- package/dist/cjs/usePayoutStatus-4b5894ef.js +1045 -0
- package/dist/cjs/usePortalLogin-63d896d1.js +74 -0
- package/dist/cjs/{usePortalRegistrationForm-a89d736e.js → usePortalRegistrationForm-f25d89e7.js} +2 -2
- package/dist/cjs/{useReferralTable-283d2316.js → useReferralTable-7c3f9600.js} +3 -3
- package/dist/cjs/{useRegistrationFormState-986b5ea1.js → useRegistrationFormState-7b820f0c.js} +1 -1
- package/dist/cjs/useVerificationEmail-95a82767.js +173 -0
- package/dist/cjs/{utilities-c135f16f.js → utilities-78f5e169.js} +1 -1
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +6 -3
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +24 -9
- package/dist/collection/components/sqm-google-sign-in/useGoogleSignIn.js +28 -1
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +15 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +24 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +122 -0
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +37 -0
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +428 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -3
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -13
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +2 -30
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +9 -4
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +13 -12
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -1
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +7 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -3
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +7 -12
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -0
- package/dist/collection/components/sqm-text/sqm-text.js +1 -1
- package/dist/collection/components/sqm-widget-verification/keys.js +4 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +36 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +128 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +301 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +153 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +58 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +95 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +251 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +126 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +120 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +536 -0
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +169 -0
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +60 -0
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +20 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +165 -1
- package/dist/collection/components/tax-and-cash/eventKeys.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +12 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +128 -11
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +109 -39
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +15 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +12 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +31 -6
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +26 -8
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +33 -8
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +0 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -5
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +0 -56
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +18 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +176 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +527 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +76 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +7 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +415 -24
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +138 -9
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +283 -17
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +17 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +23 -9
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +33 -8
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -11
- package/dist/collection/components/tax-and-cash/useVeriffApp.js +64 -0
- package/dist/esm/{ShadowViewAddon-eba44767.js → ShadowViewAddon-ddfbe8e2.js} +110 -157
- package/dist/esm/{copy-text-view-b060162f.js → copy-text-view-459a2e35.js} +1 -1
- package/dist/esm/extractProps-ae1afbb3.js +19 -0
- package/dist/esm/{global-bedc4329.js → global-be1f9992.js} +1 -1
- package/dist/esm/{index.module-a2989d3c.js → index.module-89a79f66.js} +5 -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-268bb9c8.js → re-render-cc945f38.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/{sqm-banking-info-form_16.entry.js → sqm-banking-info-form_17.entry.js} +1012 -240
- package/dist/esm/{sqm-base-registration-form-view-98c4db70.js → sqm-base-registration-form-view-593d4ac3.js} +1 -1
- package/dist/esm/{sqm-big-stat_38.entry.js → sqm-big-stat_39.entry.js} +400 -190
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +287 -0
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-google-sign-in.entry.js +33 -8
- 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-invoice-table-view-8e2bb54a.js → sqm-invoice-table-view-af69cd33.js} +172 -2
- 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-56da6bca.js → sqm-navigation-sidebar-item-view-8f1c72bc.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-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-google-login.entry.js +126 -0
- package/dist/esm/sqm-portal-google-registration-form.entry.js +6 -6
- package/dist/esm/sqm-portal-login-view-7e49609a.js +56 -0
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-93003974.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-registration-form-view-90e2bfd5.js → sqm-portal-registration-form-view-32c4b488.js} +13 -12
- package/dist/esm/sqm-portal-registration-form.entry.js +4 -4
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-scroll.entry.js +105 -0
- package/dist/esm/sqm-stencilbook.entry.js +263 -71
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/sqm-widget-verification-controller.entry.js +109 -0
- package/dist/esm/sqm-widget-verification.entry.js +199 -0
- package/dist/esm/stencil-hooks.module-4bc38af4.js +1 -1
- package/dist/esm/{useChildElements-38c11321.js → useChildElements-7945ae56.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-cd0172c8.js} +2 -2
- package/dist/esm/usePayoutStatus-58aa56b4.js +1039 -0
- package/dist/esm/usePortalLogin-ef647a50.js +72 -0
- package/dist/esm/{usePortalRegistrationForm-5715c7a5.js → usePortalRegistrationForm-4b35a357.js} +2 -2
- package/dist/esm/{useReferralTable-d77b11f5.js → useReferralTable-b3876ed6.js} +3 -3
- package/dist/esm/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-d6f33135.js} +1 -1
- package/dist/esm/useVerificationEmail-edc318cb.js +171 -0
- package/dist/esm/{utilities-863d06d1.js → utilities-5b0ca040.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-ddfbe8e2.js +1 -0
- package/dist/esm-es5/{copy-text-view-b060162f.js → copy-text-view-459a2e35.js} +1 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
- package/dist/esm-es5/{global-bedc4329.js → global-be1f9992.js} +1 -1
- package/dist/esm-es5/index.module-89a79f66.js +1 -0
- 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-268bb9c8.js → re-render-cc945f38.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
- package/dist/esm-es5/sqm-base-registration-form-view-593d4ac3.js +1 -0
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button.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-invoice-table-view-af69cd33.js +1 -0
- 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-56da6bca.js → sqm-navigation-sidebar-item-view-8f1c72bc.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-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -0
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +1 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-93003974.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-32c4b488.js +1 -0
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.entry.js +1 -0
- 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-widget-verification-controller.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +1 -1
- package/dist/esm-es5/{useChildElements-38c11321.js → useChildElements-7945ae56.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-cd0172c8.js} +1 -1
- package/dist/esm-es5/usePayoutStatus-58aa56b4.js +6 -0
- package/dist/esm-es5/usePortalLogin-ef647a50.js +1 -0
- package/dist/esm-es5/{usePortalRegistrationForm-5715c7a5.js → usePortalRegistrationForm-4b35a357.js} +1 -1
- package/dist/esm-es5/{useReferralTable-d77b11f5.js → useReferralTable-b3876ed6.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-d6f33135.js} +1 -1
- package/dist/esm-es5/useVerificationEmail-edc318cb.js +1 -0
- package/dist/esm-es5/{utilities-863d06d1.js → utilities-5b0ca040.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-2126e1e6.entry.js → p-04a6e457.entry.js} +1 -1
- package/dist/mint-components/{p-3e1b7fb4.entry.js → p-079405ff.entry.js} +1 -1
- package/dist/mint-components/{p-35698aaa.system.js → p-0d182dc1.system.js} +1 -1
- package/dist/mint-components/p-0ebab63e.system.js +1 -0
- package/dist/mint-components/{p-ca04737a.entry.js → p-10d17989.entry.js} +1 -1
- package/dist/mint-components/p-11d8ea66.system.js +1 -0
- package/dist/mint-components/{p-95c64cfd.system.js → p-13ed8586.system.js} +1 -1
- package/dist/mint-components/{p-3972037c.system.entry.js → p-141bf5c1.system.entry.js} +1 -1
- package/dist/mint-components/{p-80fc549b.entry.js → p-1513309d.entry.js} +1 -1
- package/dist/mint-components/{p-79ea1597.system.entry.js → p-164a9103.system.entry.js} +1 -1
- package/dist/mint-components/p-18425f38.system.entry.js +1 -0
- package/dist/mint-components/p-19ccb4ce.js +1 -0
- package/dist/mint-components/{p-0aa62b64.entry.js → p-1a6b7d2a.entry.js} +1 -1
- package/dist/mint-components/{p-de9afac2.system.entry.js → p-1fa9ed0d.system.entry.js} +1 -1
- package/dist/mint-components/p-21620f81.system.entry.js +1 -0
- package/dist/mint-components/p-26468242.js +1 -0
- package/dist/mint-components/{p-53aaa0a4.entry.js → p-275b4767.entry.js} +1 -1
- package/dist/mint-components/{p-618e1342.entry.js → p-284e4ed5.entry.js} +1 -1
- package/dist/mint-components/{p-e544bb9a.entry.js → p-2ae0e06a.entry.js} +1 -1
- package/dist/mint-components/p-2d52e2d7.system.js +1 -0
- package/dist/mint-components/{p-4ae54b04.entry.js → p-2da21ba4.entry.js} +1 -1
- package/dist/mint-components/{p-45436d5a.entry.js → p-2f101bae.entry.js} +1 -1
- package/dist/mint-components/p-301ddcaa.system.entry.js +1 -0
- package/dist/mint-components/p-33c96e14.entry.js +16 -0
- package/dist/mint-components/{p-731aa5c6.system.entry.js → p-36ffebd8.system.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -0
- package/dist/mint-components/p-38c7775a.js +1 -0
- package/dist/mint-components/{p-4448febd.entry.js → p-38fc919b.entry.js} +1 -1
- package/dist/mint-components/{p-40e99b24.js → p-3db34d68.js} +1 -1
- package/dist/mint-components/{p-ebdcea27.system.entry.js → p-420554af.system.entry.js} +1 -1
- package/dist/mint-components/{p-571c451e.entry.js → p-4428294b.entry.js} +1 -1
- package/dist/mint-components/{p-a21d1a30.system.entry.js → p-4469fea6.system.entry.js} +1 -1
- package/dist/mint-components/p-44891949.entry.js +1 -0
- package/dist/mint-components/p-4794641c.system.js +1 -0
- package/dist/mint-components/p-480e08e9.js +31 -0
- package/dist/mint-components/p-48135f99.system.js +2 -2
- package/dist/mint-components/{p-492fdaf9.js → p-4e451f75.js} +1 -1
- package/dist/mint-components/p-4e526a94.js +1 -0
- package/dist/mint-components/{p-92a25556.system.entry.js → p-50c902ca.system.entry.js} +1 -1
- package/dist/mint-components/{p-4bcb04aa.system.entry.js → p-51d3cde7.system.entry.js} +1 -1
- package/dist/mint-components/p-527216de.system.js +1 -0
- package/dist/mint-components/{p-2dc5e60a.entry.js → p-54440d8d.entry.js} +1 -1
- package/dist/mint-components/p-5488fdd9.system.js +1 -0
- package/dist/mint-components/{p-8da47802.system.entry.js → p-54adee71.system.entry.js} +1 -1
- package/dist/mint-components/p-57dd28bd.system.js +1 -0
- package/dist/mint-components/{p-a8524459.system.js → p-59274a91.system.js} +1 -1
- package/dist/mint-components/{p-7989a098.system.entry.js → p-5c28406d.system.entry.js} +1 -1
- package/dist/mint-components/{p-9a0c3ed9.system.entry.js → p-5d7e308c.system.entry.js} +1 -1
- package/dist/mint-components/{p-09c5e3ee.system.js → p-635d5ef2.system.js} +1 -1
- package/dist/mint-components/{p-6de85677.js → p-63a75798.js} +1 -1
- package/dist/mint-components/p-6427e963.entry.js +1 -0
- package/dist/mint-components/{p-506679e9.js → p-65069b66.js} +1 -1
- package/dist/mint-components/{p-9e49479a.entry.js → p-653f963f.entry.js} +2 -2
- package/dist/mint-components/p-68d18642.entry.js +9 -0
- package/dist/mint-components/{p-b9d17fa1.entry.js → p-693942df.entry.js} +1 -1
- package/dist/mint-components/p-6b78811d.entry.js +241 -0
- package/dist/mint-components/p-6b7a595f.system.js +1 -0
- package/dist/mint-components/p-6cd4f2b1.system.js +1 -0
- package/dist/mint-components/{p-550ef977.js → p-6d2f5a1d.js} +2 -2
- package/dist/mint-components/p-6eaf9c57.entry.js +1 -0
- package/dist/mint-components/{p-7166caa6.system.js → p-717cc8ac.system.js} +1 -1
- package/dist/mint-components/{p-7bcf4467.system.entry.js → p-71bc04d2.system.entry.js} +1 -1
- package/dist/mint-components/p-793d2130.js +1 -0
- package/dist/mint-components/{p-b114e746.entry.js → p-7ab21e4d.entry.js} +1 -1
- package/dist/mint-components/{p-2ab3b8d6.js → p-7f2d4212.js} +1 -1
- package/dist/mint-components/p-8175e85f.system.js +1 -0
- package/dist/mint-components/{p-81665df6.system.entry.js → p-8362cb4c.system.entry.js} +1 -1
- package/dist/mint-components/{p-bd4810c7.system.entry.js → p-85671c3d.system.entry.js} +1 -1
- package/dist/mint-components/{p-f9de8a59.system.js → p-89903f6d.system.js} +1 -1
- package/dist/mint-components/{p-0873eaa8.entry.js → p-8abfeff8.entry.js} +1 -1
- package/dist/mint-components/p-8c23d1b8.js +1 -0
- package/dist/mint-components/{p-8056fd5b.system.entry.js → p-8d9d04b7.system.entry.js} +1 -1
- package/dist/mint-components/{p-988ea164.system.entry.js → p-90fc6774.system.entry.js} +1 -1
- package/dist/mint-components/p-91959fbe.js +1 -0
- package/dist/mint-components/p-9320582e.system.js +1 -0
- package/dist/mint-components/p-94a876b9.js +1 -0
- package/dist/mint-components/p-962f3200.js +1 -0
- package/dist/mint-components/{p-1c5cffae.js → p-98698131.js} +1 -1
- package/dist/mint-components/{p-f32c8cb5.entry.js → p-99374849.entry.js} +1 -1
- package/dist/mint-components/{p-a4a5beb5.system.entry.js → p-99bc1231.system.entry.js} +1 -1
- package/dist/mint-components/{p-9a16a3d8.system.entry.js → p-9b6a0152.system.entry.js} +1 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +1 -0
- package/dist/mint-components/{p-f4a1dc19.entry.js → p-a2fde301.entry.js} +1 -1
- package/dist/mint-components/p-a71b9154.system.js +1 -0
- package/dist/mint-components/p-a8645c1b.system.js +1 -0
- package/dist/mint-components/{p-635aaf11.system.entry.js → p-b287833c.system.entry.js} +1 -1
- package/dist/mint-components/p-b3532369.js +394 -0
- package/dist/mint-components/{p-8975c2be.entry.js → p-b51e79b3.entry.js} +1 -1
- package/dist/mint-components/{p-f0c23e81.system.entry.js → p-b7d1469d.system.entry.js} +1 -1
- package/dist/mint-components/{p-7cb919d4.system.entry.js → p-b82e1935.system.entry.js} +1 -1
- package/dist/mint-components/p-b93fd99c.system.entry.js +1 -0
- package/dist/mint-components/p-bb0f585c.system.js +1 -0
- package/dist/mint-components/{p-1833c4f5.js → p-bbcd824a.js} +1 -1
- package/dist/mint-components/p-bd91bba4.js +1 -0
- package/dist/mint-components/{p-f2fd1910.system.js → p-bdb7d451.system.js} +1 -1
- package/dist/mint-components/{p-24c4e0b8.system.entry.js → p-c060f770.system.entry.js} +1 -1
- package/dist/mint-components/{p-1ef299d7.js → p-c0f19490.js} +1 -1
- package/dist/mint-components/{p-ca740238.system.entry.js → p-c2fdd608.system.entry.js} +1 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +1 -0
- package/dist/mint-components/p-c8cbb40f.system.entry.js +1 -0
- package/dist/mint-components/p-cb7bdbe4.entry.js +1 -0
- package/dist/mint-components/p-cbbfac66.entry.js +25 -0
- package/dist/mint-components/p-cc7af682.system.js +6 -0
- package/dist/mint-components/{p-4f45be94.system.js → p-cd569259.system.js} +1 -1
- package/dist/mint-components/p-cd651f81.js +2 -2
- package/dist/mint-components/p-d07f3090.entry.js +1 -0
- package/dist/mint-components/p-d1b92919.system.entry.js +1 -0
- package/dist/mint-components/p-d6831af5.js +48 -0
- package/dist/mint-components/p-da7708a7.entry.js +1 -0
- package/dist/mint-components/p-dbcb5359.js +1 -0
- package/dist/mint-components/{p-75f50e5a.entry.js → p-dcc81e90.entry.js} +1 -1
- package/dist/mint-components/{p-1b0c58bc.system.entry.js → p-de8e9981.system.entry.js} +1 -1
- package/dist/mint-components/{p-857947fa.system.entry.js → p-e5a5ae7f.system.entry.js} +1 -1
- package/dist/mint-components/{p-045d1d49.entry.js → p-e6045498.entry.js} +1 -1
- package/dist/mint-components/{p-9b779add.entry.js → p-e6f50ffd.entry.js} +1 -1
- package/dist/mint-components/{p-c470caf6.entry.js → p-e8ffcc68.entry.js} +2 -2
- package/dist/mint-components/p-f0772618.system.entry.js +1 -0
- package/dist/mint-components/p-f29eda2f.entry.js +205 -0
- package/dist/mint-components/{p-9f231a48.system.entry.js → p-f4a72903.system.entry.js} +1 -1
- package/dist/mint-components/{p-aaeaff1a.system.entry.js → p-f4a8ee29.system.entry.js} +1 -1
- package/dist/mint-components/p-fa37513e.system.entry.js +1 -0
- package/dist/mint-components/{p-e0b344fb.entry.js → p-fe2e2f4a.entry.js} +1 -1
- package/dist/mint-components/p-ff8b8067.entry.js +33 -0
- package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +2 -0
- package/dist/types/components/sqm-google-sign-in/useGoogleSignIn.d.ts +1 -1
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +6 -0
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +10 -0
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +26 -0
- package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +7 -0
- package/dist/types/components/sqm-portal-google-login/sqm-portal-google-login.d.ts +74 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -4
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +2 -1
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/keys.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +9 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +26 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +54 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +25 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +11 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +22 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +44 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +10 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +12 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +96 -0
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +15 -0
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +5 -0
- package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +6 -0
- package/dist/types/components/tax-and-cash/eventKeys.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +13 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +1 -16
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +36 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +90 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +20 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +5 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +82 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +17 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +47 -2
- 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/tax-and-cash/useVeriffApp.d.ts +6 -0
- package/dist/types/components.d.ts +1071 -86
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -4
- package/dist/collection/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.js +0 -86
- package/dist/esm-es5/ShadowViewAddon-eba44767.js +0 -1
- package/dist/esm-es5/index.module-a2989d3c.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +0 -1
- package/dist/esm-es5/sqm-base-registration-form-view-98c4db70.js +0 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-8e2bb54a.js +0 -1
- package/dist/esm-es5/sqm-portal-registration-form-view-90e2bfd5.js +0 -1
- package/dist/mint-components/p-0323586f.entry.js +0 -223
- package/dist/mint-components/p-046f4631.system.js +0 -1
- package/dist/mint-components/p-0e53c59e.system.js +0 -1
- package/dist/mint-components/p-16c7bfda.js +0 -391
- package/dist/mint-components/p-28042d23.entry.js +0 -174
- package/dist/mint-components/p-30108c0e.js +0 -1
- package/dist/mint-components/p-31a691af.js +0 -1
- package/dist/mint-components/p-39b1a7fe.js +0 -1
- package/dist/mint-components/p-3bdd338c.system.js +0 -1
- package/dist/mint-components/p-3ec660e9.js +0 -1
- package/dist/mint-components/p-46ab5f80.system.js +0 -1
- package/dist/mint-components/p-4daa3f8a.system.entry.js +0 -1
- package/dist/mint-components/p-569a43a2.system.entry.js +0 -1
- package/dist/mint-components/p-62f6627d.js +0 -1
- package/dist/mint-components/p-749c7c9c.system.js +0 -1
- package/dist/mint-components/p-868f176e.entry.js +0 -1
- package/dist/mint-components/p-8d77feee.js +0 -1
- package/dist/mint-components/p-96b48c2b.system.js +0 -1
- package/dist/mint-components/p-a1f40614.system.entry.js +0 -1
- package/dist/mint-components/p-ac2b7eb8.system.js +0 -1
- package/dist/mint-components/p-b611eefd.entry.js +0 -1
- package/dist/mint-components/p-be2ccfb1.entry.js +0 -1
- package/dist/mint-components/p-c4b21562.system.entry.js +0 -1
- package/dist/mint-components/p-c6a8c075.system.js +0 -1
- package/dist/mint-components/p-cd480e3f.entry.js +0 -33
- package/dist/mint-components/p-cf505e92.system.js +0 -1
- package/dist/mint-components/p-d671e44e.system.js +0 -1
- package/dist/mint-components/p-d87ce3d2.js +0 -1
- package/dist/mint-components/p-ea9fd654.entry.js +0 -9
- package/dist/mint-components/p-fe4a9dfe.system.entry.js +0 -1
- package/dist/types/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.d.ts +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,e=1,n=arguments.length;e<n;e++){s=arguments[e];for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a))t[a]=s[a]}return t};return __assign.apply(this,arguments)};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-6cd4f2b1.system.js","./p-6333265f.system.js"],(function(t){"use strict";var s,e,n,a,o,r;return{setters:[function(t){s=t.h;e=t.c;n=t.r},function(t){a=t.n},function(t){o=t.B},function(t){r=t.g}],execute:function(){var c=function(t){var n=t.states,a=t.callbacks;var o=n.styles;return s(e,{class:"squatch-container"},s("div",{style:{padding:t.states.styles.padding},part:"sqm-base"},o.closeButton&&s("span",{part:"sqm-close-button",class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:function(){return a.closePopup()}},o.closeButtonText),s("slot",null),o.poweredBy?s("a",{class:"sqh-attribution",href:"https://impact.com/advocate/",target:"_blank"},o.poweredByText):""))};function i(t){var s=o();function e(){var t;if(o()==="POPUP"){(t=window.frameElement["squatchJsApi"])===null||t===void 0?void 0:t.close()}}var n=t.popupPadding?t.popupPadding==="none"?"0":"var(--sl-spacing-"+t.popupPadding+")":"var(--sl-spacing-medium)";var a=t.embedPadding?t.embedPadding==="none"?"0":"var(--sl-spacing-"+t.embedPadding+")":"0";var r=o()==="POPUP"?n:a;return{states:{showCloseButton:t.closeButton&&s==="POPUP",styles:__assign(__assign({},t),{padding:r,closeButtonText:t.closeButtonText?t.closeButtonText:"X",poweredByText:t.poweredByText})},data:{},callbacks:{closePopup:e}}}var p=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";var u=t("sqm_popup_container",function(){function t(t){n(this,t);this.poweredByText="Powered By";a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r(this);return s(c,Object.assign({},i(t)))};return t}());u.style=p}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++){e=arguments[i];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-6cd4f2b1.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-cd1d497f.system.js","./p-8175e85f.system.js"],(function(t){"use strict";var e,i,s,r,n,a,o,l,u,c,d;return{setters:[function(t){e=t.h;i=t.r},function(t){s=t.i;r=t.k;n=t.n},function(t){a=t.i},function(t){o=t.c},function(t){l=t.g},function(t){u=t.c},function(t){c=t.E},function(t){d=t.R}],execute:function(){var p={error:{length:"Length should be a valid positive number",password:"Password should be a valid string"},regex:{digits:"(\\d.*)",letters:"([a-zA-Z].*)",symbols:"([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\{\\}\\]\\\\|;:\\'\",<.>\\/\\?€£¥₹§±].*)",spaces:"([\\s].*)"}};var v=p.regex;function h(t,e){if(e&&e>1){var i=parseInt(e,10);return new RegExp(t+"{"+i+",}").test(this.password)===this.positive}return new RegExp(t).test(this.password)===this.positive}var f={not:function t(e){this.positive=false;if(e){return h.call(this,e)}return true},has:function t(e){this.positive=true;if(e){return h.call(this,e)}return true},is:function t(){this.positive=true;return true},min:function t(e){return this.password.length>=e},max:function t(e){return this.password.length<=e},digits:function t(e){return h.call(this,v.digits,e)},letters:function t(e){return h.call(this,v.letters,e)},uppercase:function t(e){if(e&&e>1){var i=0;var s=0;while(s<e&&i<this.password.length){var r=this.password.charAt(i);if(r!==r.toLowerCase()){s++}i++}return s===e===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function t(e){if(e&&e>1){var i=0;var s=0;while(s<e&&i<this.password.length){var r=this.password.charAt(i);if(r!==r.toUpperCase()){s++}i++}return s===e===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function t(e){return h.call(this,v.symbols,e)},spaces:function t(e){return h.call(this,v.spaces,e)},oneOf:function t(e){return e.indexOf(this.password)>=0===this.positive}};var m=p.error;function g(t){var e=Number(t);if(isNaN(e)||!Number.isInteger(e)||e<1){throw new Error(m.length)}}function w(t){return f[t.method].apply(this,t.arguments)}function y(t,e){this.properties.push({method:t,arguments:e});return this}var b=function(){function t(){this.properties=[]}t.prototype.validate=function(t,e){var i=this;this.list=Boolean(e&&e.list);this.password=String(t);this.positive=true;if(this.list){return this.properties.reduce((function(t,e){if(!w.call(i,e)){return t.concat(e.method)}return t}),[])}return this.properties.every(w.bind(this))};t.prototype.letters=function(t){t&&g(t);return y.call(this,"letters",arguments)};t.prototype.digits=function(t){t&&g(t);return y.call(this,"digits",arguments)};t.prototype.symbols=function(t){t&&g(t);return y.call(this,"symbols",arguments)};t.prototype.min=function(t){g(t);return y.call(this,"min",arguments)};t.prototype.max=function(t){g(t);return y.call(this,"max",arguments)};t.prototype.lowercase=function(t){t&&g(t);return y.call(this,"lowercase",arguments)};t.prototype.uppercase=function(t){t&&g(t);return y.call(this,"uppercase",arguments)};t.prototype.spaces=function(t){t&&g(t);return y.call(this,"spaces",arguments)};t.prototype.has=function(){return y.call(this,"has",arguments)};t.prototype.not=function(){return y.call(this,"not",arguments)};t.prototype.is=function(){return y.call(this,"is",arguments)};t.prototype.oneOf=function(){return y.call(this,"oneOf",arguments)};return t}();var x=b;var L=(new x).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/);var V=function(t,e){var i=L.validate(t,{list:true});var s=j(i,t,e);return s};var C=function(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM4.8 9L1.8 6L2.646 5.154L4.8 7.302L9.354 2.748L10.2 3.6L4.8 9Z",fill:"#259053"}))};var _=function(){return e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM6 10.8C3.354 10.8 1.2 8.646 1.2 6C1.2 3.354 3.354 1.2 6 1.2C8.646 1.2 10.8 3.354 10.8 6C10.8 8.646 8.646 10.8 6 10.8ZM8.754 3.348L4.8 7.302L3.246 5.754L2.4 6.6L4.8 9L9.6 4.2L8.754 3.348Z",fill:"#555555"}))};var E={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}};var S={Base:{fontSize:"var(--sl-font-size-small)"},ValidationList:{"list-style-type":"none",paddingRight:"var(--sl-spacing-large)",margin:"var(--sl-spacing-small) 0 var(--sl-spacing-x-large)","& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-xx-small)"},"& *":{"line-height":"var(--sl-line-height-dense)"}},ValidationItemValid:__assign(__assign({},E),{color:"var(--sl-color-success-600)"}),ValidationItemInvalid:__assign({},E)};var I=u(S);var T=I.toString();var j=function(t,i,s){var r={min:s.minErrorText,uppercase:s.uppercaseErrorText,lowercase:s.lowercaseErrorText,has:s.hasErrorText};if(!t.length&&i)return e("div",{class:I.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},e("style",{type:"text/css"},T),e(C,null)," ",e("span",null,s.meetsRequirementsText));return e("div",{class:I.classes.Base},e("style",{type:"text/css"},T),s.doesNotMeetRequirementsText,e("ul",{class:I.classes.ValidationList},Object.keys(r).map((function(i){return t.includes(i)?e("li",{class:I.classes.ValidationItemInvalid},e(_,null)," ",e("span",null,r[i])):e("li",{class:I.classes.ValidationItemValid},e(C,null)," ",e("span",null,r[i]))}))))};var k={InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:c};var q="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var D=u(k);var F=D.toString();function O(t){var i,s,r,n,a,o,l,u,c,d;var p=t.states,v=t.callbacks;return e("div",{class:D.classes.InputContainer,part:"sqm-base"},e("style",{type:"text/css"},q,F),e("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"password",name:"/password",label:p.content.fieldLabel||"Password",required:true,disabled:((i=p.registrationFormState)===null||i===void 0?void 0:i.loading)||((s=p.registrationFormState)===null||s===void 0?void 0:s.disabled),validationError:function(t){var e=t.value;if(!e){return"Cannot be empty"}}},((n=(r=p.registrationFormState)===null||r===void 0?void 0:r.initialData)===null||n===void 0?void 0:n.password)?{value:(o=(a=p.registrationFormState)===null||a===void 0?void 0:a.initialData)===null||o===void 0?void 0:o.password}:{},((u=(l=p.registrationFormState)===null||l===void 0?void 0:l.validationErrors)===null||u===void 0?void 0:u.password)?{class:D.classes.ErrorStyle,helpText:((d=(c=p.registrationFormState)===null||c===void 0?void 0:c.validationErrors)===null||d===void 0?void 0:d.password)||"Cannot be empty"}:[],{onInput:function(t){return p.enableValidation&&v.onInput(t)}})),p.dynamicValidation)}function M(t){var e=s(d);var i=r(""),n=i[0],a=i[1];function o(e){var i=V(e.target.value,t);a(i)}return{states:{enableValidation:!t.disableValidation,dynamicValidation:n,registrationFormState:e,content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:o}}}var R=t("sqm_password_field",function(){function t(t){i(this,t);this.ignored=true;this.fieldLabel="Password";this.disableValidation=false;this.meetsRequirementsText="Password has met all requirements";this.doesNotMeetRequirementsText="Password must meet the following requirements:";this.minErrorText="be a minimum of 8 characters";this.uppercaseErrorText="contain at least 1 uppercase character";this.lowercaseErrorText="contain at least 1 lowercase character";this.hasErrorText="contain at least 1 number or symbol";n(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=a()?B(l(this)):M(l(this)),i=t.states,s=t.callbacks;return e(O,{states:i,callbacks:s})};return t}());function B(t){var e,i,s,n,a,l,u;var c=r(""),d=c[0],p=c[1];var v=r(""),h=v[0],f=v[1];if(t.demoData&&h!=((e=t===null||t===void 0?void 0:t.demoData)===null||e===void 0?void 0:e.initValue)){var m=V(((i=t===null||t===void 0?void 0:t.demoData)===null||i===void 0?void 0:i.initValue)||"",t);p(((s=t===null||t===void 0?void 0:t.demoData)===null||s===void 0?void 0:s.initValue)===""?"":m);f((n=t===null||t===void 0?void 0:t.demoData)===null||n===void 0?void 0:n.initValue)}function g(e){var i=V(e.target.value,t);p(i)}return o({states:{enableValidation:!t.disableValidation,dynamicValidation:d,registrationFormState:((l=(a=t===null||t===void 0?void 0:t.demoData)===null||a===void 0?void 0:a.states)===null||l===void 0?void 0:l.registrationFormState)||{},content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:g}},((u=t===null||t===void 0?void 0:t.demoData)===null||u===void 0?void 0:u.states)||{},{arrayMerge:function(t,e){return e}})}}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-6cd4f2b1.system.js"],(function(t){"use strict";var e,n,o,i,r,c,u,l,a;return{setters:[function(t){e=t.r;n=t.e;o=t.h;i=t.g},function(t){r=t.k;c=t.f;u=t.n},function(t){l=t.g;a=t.i}],execute:function(){function s(t){var e=r(false),n=e[0],o=e[1];var i=r(null),u=i[0],a=i[1];var s=r(400),f=s[0],d=s[1];var g=null;var v=function(){if(u){d(u.clientWidth)}};c((function(){if(!u)return;var t=new ResizeObserver((function(){if(g){clearTimeout(g)}g=setTimeout((function(){v()}),50)}));t.observe(u);v();return function(){return t.disconnect()}}),[u]);c((function(){var e=function(){window.onGoogleLibraryLoad=null;var e=l();if(e.type!=="SquatchPortal")return;var n=function(e){t.initComplete.emit(e)};google.accounts.id.initialize({client_id:e.env.googleOAuthId,callback:n});o(true)};if(window.google)e();window.onGoogleLibraryLoad=e}),[]);c((function(){if(!u||!n)return;google.accounts.id.renderButton(u,{theme:"outline",size:"large",text:t.text,height:40,width:f})}),[u,n,f]);return{setGoogleButtonDiv:a}}var f=t("sqm_google_sign_in",function(){function t(t){e(this,t);this.initComplete=n(this,"initComplete",7);this.googleButtonDiv=null;u(this)}t.prototype.disconnectedCallback=function(){};t.prototype.connectedCallback=function(){var t="https://accounts.google.com/gsi/client";if(!document.head.querySelector('script[src="'+t+'"]')){var e=document.createElement("script");e.src="https://accounts.google.com/gsi/client";e.async=true;document.head.appendChild(e)}};t.prototype.render=function(){var t=(a()?d(this):s(this)).setGoogleButtonDiv;return o("div",{ref:t,style:{width:"100%"}})};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());function d(t){var e=r(false),n=e[0],o=e[1];var i=r(null),u=i[0],l=i[1];c((function(){var t=function(){window.onGoogleLibraryLoad=null;o(true)};if(window.google)t();window.onGoogleLibraryLoad=t}),[]);c((function(){if(!u||!n)return;var e=function(){t.initComplete.emit({credential:null})};google.accounts.id.initialize({client_id:"PLACEHOLDER",cb:function(){}});google.accounts.id.renderButton(u,{theme:"outline",size:"large",text:t.text,click_listener:e})}),[u,n]);return{setGoogleButtonDiv:l}}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,g as a,c as s}from"./p-f708da7b.js";import{n as l,j as r,u as i,f as n}from"./p-cd651f81.js";import{i as d}from"./p-506679e9.js";import{i as o}from"./p-39b1a7fe.js";import{c as u}from"./p-c1086930.js";import{l as c}from"./p-9ec99ced.js";import{c as E}from"./p-cef45012.js";import"./p-91521e9d.js";import{G as p}from"./p-837a0fdd.js";import{a as h,u as v}from"./p-492fdaf9.js";import{u as N}from"./p-3ec660e9.js";import{l as m}from"./p-5bedb58c.js";import{g as P}from"./p-726a9924.js";import{u as I,t as _}from"./p-1ef299d7.js";import{T as D}from"./p-c9f1dde7.js";const A=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]],f=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"],y=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"],R=class{constructor(t){e(this,t),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.showReferrer=!1,this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,l(this)}disconnectedCallback(){}render(){const e=t(g,null),a=t(T,null),{states:s,data:l,callbacks:d,elements:c}=o()?function(e,t,a){const[s,l]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),d=v(),o=i((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||((e=4)=>({totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:[...Array(e)].map((()=>({id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:f[Math.floor(Math.random()*f.length)],lastName:y[Math.floor(Math.random()*y.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(10*Math.random())>=5?m.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:m.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(10*Math.random())>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:A[Math.floor(Math.random()*A.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:{...P()},rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:A[Math.floor(Math.random()*A.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:A[Math.floor(Math.random()*A.length)],type:"CREDIT",value:1},depth:1}]}})))}))(e.perPage)}),[e.perPage]),c=N();return n((()=>{l({loading:!0}),(null==o?void 0:o.data)&&async function(t){var a;let s;const r=null==o?void 0:o.referredByReferral,i=e.showReferrer&&!!(null===(a=null==o?void 0:o.referredByReferral)||void 0===a?void 0:a.dateReferralStarted);s=o.data.slice(0,i?e.perPage-1:e.perPage);const n=t.filter((e=>{var t,a;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot"))})),d=null==n?void 0:n.map((async(e,t)=>{var a;const s=null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==s&&"empty"!==s){e.setAttribute("slot","column-"+t),e.style.position="absolute";const a=e.firstElementChild.childNodes[1];return a.innerHTML="+",a.style.lineHeight="20px",_(e,(()=>e.renderLabel(t)))}return _(e,(()=>e.renderLabel()))}));let u;if(i){const e=null==n?void 0:n.map((async e=>_(e,(function(){return e.renderCell(r,e)}))));u=await Promise.all(e)}const c=null==s?void 0:s.map((async e=>{const t=null==n?void 0:n.map((async t=>_(t,(()=>t.renderCell(e,void 0)))));return await Promise.all(t)})),E=c&&[u,...await Promise.all(c)].filter((e=>e));l({rows:E});const p=d&&await Promise.all(d);l({columns:p,loading:!1,page:0})}(c)}),[null==o?void 0:o.data,c,d]),u({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:s.columns,rows:s.rows,emptyElement:t,loadingElement:a}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,e,a):I(this,e,a);return h([this.showReferrer,this.perPage]),t(p,{states:s,data:l,callbacks:d,elements:c})}};function g(){return t("slot",{name:"empty"},t("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function T(){return t("slot",{name:"loading"},t(C,null),t(C,null),t(C,null),t(C,null))}function C(){return t("sqm-table-row",null,t("sqm-table-cell",{colspan:5},t("sl-skeleton",null)))}const b=class{constructor(t){e(this,t),this.ignored=!0,l(this)}disconnectedCallback(){}render(){return t("div",{innerHTML:this.innerTemplate})}},L=class{constructor(t){e(this,t),l(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-referral-table-cell",{"inner-template":a(this).innerHTML})}async renderLabel(){return Promise.resolve(this.columnTitle)}render(){return h([this.columnTitle]),t(s,{style:{display:"none"}},t("slot",null))}},O=class{constructor(t){e(this,t),this.ignored=!0,this.locale="en",l(this)}disconnectedCallback(){}render(){var e;return this.date?null===(e=m.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED):"-"}},w=class{constructor(t){e(this,t),this.columnTitle="Date converted",this.dateShown="dateConverted",l(this)}disconnectedCallback(){}async renderCell(e,a){return t("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-date-cell",{date:e[this.dateShown]})}render(){return h([this.dateShown,this.columnTitle]),t(s,{style:{display:"none"}})}},x=class{constructor(t){e(this,t),this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} 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} }",this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment 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.} 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} }",this.locale="en"}render(){var e;d.locale=this.locale;const a=E({"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:this.hideDetails?"default":"pointer"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:this.hideDetails?"none":"flex"},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}}),s=a.toString(),l=e=>m.DateTime.fromMillis(e).setLocale(c(this.locale)).toRelative().replace("in","").trim();return null===(e=this.rewards)||void 0===e?void 0:e.map((e=>{var r,i;const n=((e,t)=>{var a,s,l,r,i,n,d,o,u,c,E,p;if("APPROVED"!==(null===(s=null===(a=e.referral)||void 0===a?void 0:a.fraudData)||void 0===s?void 0:s.moderationStatus)){if("PENDING"===(null===(r=null===(l=e.referral)||void 0===l?void 0:l.fraudData)||void 0===r?void 0:r.moderationStatus))return"PENDING_REVIEW";if("DENIED"===(null===(n=null===(i=e.referral)||void 0===i?void 0:i.fraudData)||void 0===n?void 0:n.moderationStatus))return"DENIED"}const h=null===(d=e.partnerFundsTransfer)||void 0===d?void 0:d.status;if("NOT_YET_DUE"===h||"TRANSFERRED"===h)return"PAYOUT_APPROVED";if("OVERDUE"===h)return"PAYOUT_FAILED";if("REVERSED"===h)return"PAYOUT_CANCELLED";if(null===(o=null==e?void 0:e.pendingReasons)||void 0===o?void 0:o.includes("US_TAX")){if(!(null==t?void 0:t.taxHandlingEnabled))return"PENDING";if(!(null==t?void 0:t.connected))return"PENDING_PARTNER_CREATION";if(null===(u=null==t?void 0:t.publisher)||void 0===u?void 0:u.requiredTaxDocumentType){if(!(null===(c=null==t?void 0:t.publisher)||void 0===c?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";const e=t.publisher.currentTaxDocument.status;if("INACTIVE"===e)return"PENDING_NEW_TAX_FORM";if("NOT_VERIFIED"===e)return"PENDING_TAX_REVIEW"}if(!(null===(E=null==t?void 0:t.publisher)||void 0===E?void 0:E.withdrawalSettings))return"PENDING_PARTNER_CREATION"}return(null===(p=null==e?void 0:e.pendingReasons)||void 0===p?void 0:p.includes("PAYOUT_CONFIGURATION_MISSING"))?"PENDING_PARTNER_CREATION":1===e.statuses.length?e.statuses[0]:["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION"].find((t=>e.statuses.includes(t)&&t))})(e,this.taxConnection),o=(e=>{switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":return"warning";case"AVAILABLE":return"success"}})(n),u=d.formatMessage({id:"statusShortMessage",defaultMessage:this.statusText},{status:n}),E=d.formatMessage({id:"statusLongMessage",defaultMessage:this.statusLongText},{status:n});return t("sl-details",{class:a.classes.Details,disabled:this.hideDetails},t("style",{type:"text/css"},s),t("div",{slot:"summary",class:a.classes.DetailsContainer},t(D,{type:"p"},t("span",{part:"sqm-cell-value",class:a.classes.BoldText},e.prettyValue)),t("div",{class:a.classes.BadgeContainer},t("sl-badge",{class:"primary"===o?a.classes.RedeemBadge:a.classes.StatusBadge,type:o,pill:!0},"PENDING"===n&&e.dateScheduledFor?d.formatMessage({id:"pendingForText",defaultMessage:this.pendingForText},{status:u,date:l(e.dateScheduledFor)}):u),e.dateExpires&&"AVAILABLE"===n&&t("sl-badge",{class:"primary"===o?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:!0},this.expiringText,` ${l(e.dateExpires)}`))),t("div",null,"PENDING_REVIEW"===n&&(null===(r=e.referral)||void 0===r?void 0:r.dateModerated)&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.referral.dateModerated).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"PAYOUT_APPROVED"===n&&t("div",null,t(D,{type:"p"},E)),"PAYOUT_FAILED"===n&&t("div",null,t(D,{type:"p"},E)),"PAYOUT_CANCELLED"===n&&t("div",null,t(D,{type:"p"},E)),"PENDING_TAX_REVIEW"===n&&t("div",null,t(D,{type:"p"},E)),"PENDING_NEW_TAX_FORM"===n&&t("div",null,t(D,{type:"p"},E)),"PENDING_TAX_SUBMISSION"===n&&t("div",null,t(D,{type:"p"},E)),"PENDING_PARTNER_CREATION"===n&&t("div",null,t(D,{type:"p"},E)),"DENIED"===n&&(null===(i=e.referral)||void 0===i?void 0:i.dateModerated)&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.referral.dateModerated).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)),".",this.deniedHelpText?` ${this.deniedHelpText}`:"")),e.dateGiven&&t("div",null,t(D,{type:"p"},this.rewardReceivedText," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateGiven).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"EXPIRED"===n&&e.dateExpires&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateExpires).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"CANCELLED"===n&&e.dateCancelled&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateCancelled).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"PENDING"===n&&e.dateScheduledFor&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateScheduledFor).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED))))," ","AVAILABLE"===n&&e.dateExpires&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateExpires).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),e.fuelTankCode&&t("div",null,this.fuelTankText," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},e.fuelTankCode))))}))}},G=class{constructor(t){e(this,t),this.columnTitle="Rewards",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} 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} }",this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment 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.} 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} }",this.fuelTankText="Your code is",this.rewardReceivedText="Reward received on",this.expiringText="Expiring in",this.pendingForText="{status} for {date}",this.deniedHelpText="Contact support if you think this is a mistake.",this.hideDetails=!1,l(this)}disconnectedCallback(){}async renderCell(e,a){return t("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:null==a?void 0:a.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:null==a?void 0:a.locale,exportparts:"sqm-cell-value"})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})}render(){return h([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]),t(s,{style:{display:"none"}})}},S=E({Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}},SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}}),M=S.toString(),U=class{constructor(t){e(this,t)}render(){return t("div",null,t("style",{type:"text/css"},M),t("sl-badge",{pill:!0,type:(e=>"PENDING"===e?"warning":"DENIED"===e?"danger":this.converted?"success":"warning")(this.fraudStatus),class:S.classes.Badge},this.statusText),this.statusSubText?t("p",{class:S.classes.SubText},this.statusSubText):null)}},V=class{constructor(t){e(this,t),this.columnTitle="Status",this.convertedStatusText="Converted",this.inProgressStatusText="In Progress",this.pendingReviewStatusText="Pending",this.deniedStatusText="Denied",this.pendingReviewStatusSubText="Awaiting review",this.deniedStatusSubText="Detected self-referral",l(this)}disconnectedCallback(){}async renderCell(e){var a;let s,l;const r=null===(a=null==e?void 0:e.fraudData)||void 0===a?void 0:a.moderationStatus;return"DENIED"===r?(s=this.deniedStatusText,l=this.deniedStatusSubText):"PENDING"===r?(s=this.pendingReviewStatusText,l=this.pendingReviewStatusSubText):s=e.dateConverted?this.convertedStatusText:this.inProgressStatusText,t("sqm-referral-table-status-cell",{"status-text":s,"status-sub-text":l,"fraud-status":r,converted:!!e.dateConverted})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-status-cell",{"status-text":e.dateConverted?this.convertedStatusText:this.inProgressStatusText,converted:!!e.dateConverted})}render(){return h([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]),t(s,{style:{display:"none"}})}},q=class{constructor(t){e(this,t)}render(){return this.name}},X=class{constructor(t){e(this,t),this.columnTitle="Customer",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",l(this)}disconnectedCallback(){}async renderCell(e){var a,s,l,r,i,n,d,o;let u;return u=(null==e?void 0:e.referredUser)||(null==e?void 0:e.referrerUser)?(null===(a=null==e?void 0:e.referredUser)||void 0===a?void 0:a.firstName)||(null===(s=null==e?void 0:e.referredUser)||void 0===s?void 0:s.lastName)||(null===(l=null==e?void 0:e.referrerUser)||void 0===l?void 0:l.firstName)||(null===(r=null==e?void 0:e.referrerUser)||void 0===r?void 0:r.lastName)?(null==e?void 0:e.referrerUser)?`${null===(i=null==e?void 0:e.referrerUser)||void 0===i?void 0:i.firstName} ${null===(n=null==e?void 0:e.referrerUser)||void 0===n?void 0:n.lastName}`:`${null===(d=null==e?void 0:e.referredUser)||void 0===d?void 0:d.firstName} ${null===(o=null==e?void 0:e.referredUser)||void 0===o?void 0:o.lastName}`:this.anonymousUser:this.deletedUser,t("sqm-referral-table-user-cell",{name:u})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){var a,s,l,r;let i;return i=e?(null===(a=null==e?void 0:e.referrerUser)||void 0===a?void 0:a.firstName)||(null===(s=e.referrerUser)||void 0===s?void 0:s.lastName)?`${null===(l=null==e?void 0:e.referrerUser)||void 0===l?void 0:l.firstName} ${null===(r=null==e?void 0:e.referrerUser)||void 0===r?void 0:r.lastName}`:this.anonymousUser:this.deletedUser,t("sqm-referral-table-user-cell",{name:i})}render(){return h([this.deletedUser,this.anonymousUser,this.columnTitle]),t(s,{style:{display:"none"}})}};export{R as sqm_referral_table,b as sqm_referral_table_cell,L as sqm_referral_table_column,O as sqm_referral_table_date_cell,w as sqm_referral_table_date_column,x as sqm_referral_table_rewards_cell,G as sqm_referral_table_rewards_column,U as sqm_referral_table_status_cell,V as sqm_referral_table_status_column,q as sqm_referral_table_user_cell,X as sqm_referral_table_user_column}
|
|
1
|
+
import{r as e,h as t,g as a,c as s}from"./p-f708da7b.js";import{n as l,j as r,u as i,f as n}from"./p-cd651f81.js";import{i as d}from"./p-65069b66.js";import{i as o}from"./p-94a876b9.js";import{c as u}from"./p-c1086930.js";import{l as c}from"./p-9ec99ced.js";import{c as E}from"./p-cef45012.js";import"./p-91521e9d.js";import{G as p}from"./p-837a0fdd.js";import{a as h,u as v}from"./p-4e451f75.js";import{u as N}from"./p-19ccb4ce.js";import{l as m}from"./p-5bedb58c.js";import{g as P}from"./p-726a9924.js";import{u as I,t as _}from"./p-c0f19490.js";import{T as D}from"./p-c9f1dde7.js";const A=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]],f=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"],y=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"],R=class{constructor(t){e(this,t),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.showReferrer=!1,this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,l(this)}disconnectedCallback(){}render(){const e=t(g,null),a=t(T,null),{states:s,data:l,callbacks:d,elements:c}=o()?function(e,t,a){const[s,l]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),d=v(),o=i((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||((e=4)=>({totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:[...Array(e)].map((()=>({id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:f[Math.floor(Math.random()*f.length)],lastName:y[Math.floor(Math.random()*y.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(10*Math.random())>=5?m.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:m.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(10*Math.random())>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:A[Math.floor(Math.random()*A.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:{...P()},rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:A[Math.floor(Math.random()*A.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:A[Math.floor(Math.random()*A.length)],type:"CREDIT",value:1},depth:1}]}})))}))(e.perPage)}),[e.perPage]),c=N();return n((()=>{l({loading:!0}),(null==o?void 0:o.data)&&async function(t){var a;let s;const r=null==o?void 0:o.referredByReferral,i=e.showReferrer&&!!(null===(a=null==o?void 0:o.referredByReferral)||void 0===a?void 0:a.dateReferralStarted);s=o.data.slice(0,i?e.perPage-1:e.perPage);const n=t.filter((e=>{var t,a;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot"))})),d=null==n?void 0:n.map((async(e,t)=>{var a;const s=null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==s&&"empty"!==s){e.setAttribute("slot","column-"+t),e.style.position="absolute";const a=e.firstElementChild.childNodes[1];return a.innerHTML="+",a.style.lineHeight="20px",_(e,(()=>e.renderLabel(t)))}return _(e,(()=>e.renderLabel()))}));let u;if(i){const e=null==n?void 0:n.map((async e=>_(e,(function(){return e.renderCell(r,e)}))));u=await Promise.all(e)}const c=null==s?void 0:s.map((async e=>{const t=null==n?void 0:n.map((async t=>_(t,(()=>t.renderCell(e,void 0)))));return await Promise.all(t)})),E=c&&[u,...await Promise.all(c)].filter((e=>e));l({rows:E});const p=d&&await Promise.all(d);l({columns:p,loading:!1,page:0})}(c)}),[null==o?void 0:o.data,c,d]),u({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:s.columns,rows:s.rows,emptyElement:t,loadingElement:a}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,e,a):I(this,e,a);return h([this.showReferrer,this.perPage]),t(p,{states:s,data:l,callbacks:d,elements:c})}};function g(){return t("slot",{name:"empty"},t("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function T(){return t("slot",{name:"loading"},t(b,null),t(b,null),t(b,null),t(b,null))}function b(){return t("sqm-table-row",null,t("sqm-table-cell",{colspan:5},t("sl-skeleton",null)))}const C=class{constructor(t){e(this,t),this.ignored=!0,l(this)}disconnectedCallback(){}render(){return t("div",{innerHTML:this.innerTemplate})}},L=class{constructor(t){e(this,t),l(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-referral-table-cell",{"inner-template":a(this).innerHTML})}async renderLabel(){return Promise.resolve(this.columnTitle)}render(){return h([this.columnTitle]),t(s,{style:{display:"none"}},t("slot",null))}},O=class{constructor(t){e(this,t),this.ignored=!0,this.locale="en",l(this)}disconnectedCallback(){}render(){var e;return this.date?null===(e=m.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED):"-"}},w=class{constructor(t){e(this,t),this.columnTitle="Date converted",this.dateShown="dateConverted",l(this)}disconnectedCallback(){}async renderCell(e,a){return t("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-date-cell",{date:e[this.dateShown]})}render(){return h([this.dateShown,this.columnTitle]),t(s,{style:{display:"none"}})}},x=class{constructor(t){e(this,t),this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} 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} }",this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment 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.} 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} }",this.locale="en"}render(){var e;d.locale=this.locale;const a=E({"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:this.hideDetails?"default":"pointer"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:this.hideDetails?"none":"flex"},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}}),s=a.toString(),l=e=>m.DateTime.fromMillis(e).setLocale(c(this.locale)).toRelative().replace("in","").trim();return null===(e=this.rewards)||void 0===e?void 0:e.map((e=>{var r,i;const n=((e,t)=>{var a,s,l,r,i,n,d,o,u,c,E,p;if("APPROVED"!==(null===(s=null===(a=e.referral)||void 0===a?void 0:a.fraudData)||void 0===s?void 0:s.moderationStatus)){if("PENDING"===(null===(r=null===(l=e.referral)||void 0===l?void 0:l.fraudData)||void 0===r?void 0:r.moderationStatus))return"PENDING_REVIEW";if("DENIED"===(null===(n=null===(i=e.referral)||void 0===i?void 0:i.fraudData)||void 0===n?void 0:n.moderationStatus))return"DENIED"}const h=null===(d=e.partnerFundsTransfer)||void 0===d?void 0:d.status;if("NOT_YET_DUE"===h||"TRANSFERRED"===h)return"PAYOUT_APPROVED";if("OVERDUE"===h)return"PAYOUT_FAILED";if("REVERSED"===h)return"PAYOUT_CANCELLED";if(null===(o=null==e?void 0:e.pendingReasons)||void 0===o?void 0:o.includes("US_TAX")){if(!(null==t?void 0:t.taxHandlingEnabled))return"PENDING";if(!(null==t?void 0:t.connected))return"PENDING_PARTNER_CREATION";if(null===(u=null==t?void 0:t.publisher)||void 0===u?void 0:u.requiredTaxDocumentType){if(!(null===(c=null==t?void 0:t.publisher)||void 0===c?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";const e=t.publisher.currentTaxDocument.status;if("INACTIVE"===e)return"PENDING_NEW_TAX_FORM";if("NOT_VERIFIED"===e)return"PENDING_TAX_REVIEW"}if(!(null===(E=null==t?void 0:t.publisher)||void 0===E?void 0:E.withdrawalSettings))return"PENDING_PARTNER_CREATION"}return(null===(p=null==e?void 0:e.pendingReasons)||void 0===p?void 0:p.includes("PAYOUT_CONFIGURATION_MISSING"))?"PENDING_PARTNER_CREATION":1===e.statuses.length?e.statuses[0]:["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION"].find((t=>e.statuses.includes(t)&&t))})(e,this.taxConnection),o=(e=>{switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":return"warning";case"AVAILABLE":return"success"}})(n),u=d.formatMessage({id:"statusShortMessage",defaultMessage:this.statusText},{status:n}),E=d.formatMessage({id:"statusLongMessage",defaultMessage:this.statusLongText},{status:n});return t("sl-details",{class:a.classes.Details,disabled:this.hideDetails},t("style",{type:"text/css"},s),t("div",{slot:"summary",class:a.classes.DetailsContainer},t(D,{type:"p"},t("span",{part:"sqm-cell-value",class:a.classes.BoldText},e.prettyValue)),t("div",{class:a.classes.BadgeContainer},t("sl-badge",{class:"primary"===o?a.classes.RedeemBadge:a.classes.StatusBadge,type:o,pill:!0},"PENDING"===n&&e.dateScheduledFor?d.formatMessage({id:"pendingForText",defaultMessage:this.pendingForText},{status:u,date:l(e.dateScheduledFor)}):u),e.dateExpires&&"AVAILABLE"===n&&t("sl-badge",{class:"primary"===o?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:!0},this.expiringText,` ${l(e.dateExpires)}`))),t("div",null,"PENDING_REVIEW"===n&&(null===(r=e.referral)||void 0===r?void 0:r.dateModerated)&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.referral.dateModerated).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"PAYOUT_APPROVED"===n&&t("div",null,t(D,{type:"p"},E)),"PAYOUT_FAILED"===n&&t("div",null,t(D,{type:"p"},E)),"PAYOUT_CANCELLED"===n&&t("div",null,t(D,{type:"p"},E)),"PENDING_TAX_REVIEW"===n&&t("div",null,t(D,{type:"p"},E)),"PENDING_NEW_TAX_FORM"===n&&t("div",null,t(D,{type:"p"},E)),"PENDING_TAX_SUBMISSION"===n&&t("div",null,t(D,{type:"p"},E)),"PENDING_PARTNER_CREATION"===n&&t("div",null,t(D,{type:"p"},E)),"DENIED"===n&&(null===(i=e.referral)||void 0===i?void 0:i.dateModerated)&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.referral.dateModerated).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)),".",this.deniedHelpText?` ${this.deniedHelpText}`:"")),e.dateGiven&&t("div",null,t(D,{type:"p"},this.rewardReceivedText," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateGiven).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"EXPIRED"===n&&e.dateExpires&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateExpires).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"CANCELLED"===n&&e.dateCancelled&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateCancelled).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),"PENDING"===n&&e.dateScheduledFor&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateScheduledFor).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED))))," ","AVAILABLE"===n&&e.dateExpires&&t("div",null,t(D,{type:"p"},E," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},m.DateTime.fromMillis(e.dateExpires).setLocale(c(this.locale)).toLocaleString(m.DateTime.DATE_MED)))),e.fuelTankCode&&t("div",null,this.fuelTankText," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},e.fuelTankCode))))}))}},G=class{constructor(t){e(this,t),this.columnTitle="Rewards",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} 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} }",this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment 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.} 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} }",this.fuelTankText="Your code is",this.rewardReceivedText="Reward received on",this.expiringText="Expiring in",this.pendingForText="{status} for {date}",this.deniedHelpText="Contact support if you think this is a mistake.",this.hideDetails=!1,l(this)}disconnectedCallback(){}async renderCell(e,a){return t("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:null==a?void 0:a.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:null==a?void 0:a.locale,exportparts:"sqm-cell-value"})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})}render(){return h([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]),t(s,{style:{display:"none"}})}},S=E({Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}},SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}}),M=S.toString(),U=class{constructor(t){e(this,t)}render(){return t("div",null,t("style",{type:"text/css"},M),t("sl-badge",{pill:!0,type:(e=>"PENDING"===e?"warning":"DENIED"===e?"danger":this.converted?"success":"warning")(this.fraudStatus),class:S.classes.Badge},this.statusText),this.statusSubText?t("p",{class:S.classes.SubText},this.statusSubText):null)}},V=class{constructor(t){e(this,t),this.columnTitle="Status",this.convertedStatusText="Converted",this.inProgressStatusText="In Progress",this.pendingReviewStatusText="Pending",this.deniedStatusText="Denied",this.pendingReviewStatusSubText="Awaiting review",this.deniedStatusSubText="Detected self-referral",l(this)}disconnectedCallback(){}async renderCell(e){var a;let s,l;const r=null===(a=null==e?void 0:e.fraudData)||void 0===a?void 0:a.moderationStatus;return"DENIED"===r?(s=this.deniedStatusText,l=this.deniedStatusSubText):"PENDING"===r?(s=this.pendingReviewStatusText,l=this.pendingReviewStatusSubText):s=e.dateConverted?this.convertedStatusText:this.inProgressStatusText,t("sqm-referral-table-status-cell",{"status-text":s,"status-sub-text":l,"fraud-status":r,converted:!!e.dateConverted})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-status-cell",{"status-text":e.dateConverted?this.convertedStatusText:this.inProgressStatusText,converted:!!e.dateConverted})}render(){return h([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]),t(s,{style:{display:"none"}})}},q=class{constructor(t){e(this,t)}render(){return this.name}},X=class{constructor(t){e(this,t),this.columnTitle="Customer",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",l(this)}disconnectedCallback(){}async renderCell(e){var a,s,l,r,i,n,d,o;let u;return u=(null==e?void 0:e.referredUser)||(null==e?void 0:e.referrerUser)?(null===(a=null==e?void 0:e.referredUser)||void 0===a?void 0:a.firstName)||(null===(s=null==e?void 0:e.referredUser)||void 0===s?void 0:s.lastName)||(null===(l=null==e?void 0:e.referrerUser)||void 0===l?void 0:l.firstName)||(null===(r=null==e?void 0:e.referrerUser)||void 0===r?void 0:r.lastName)?(null==e?void 0:e.referrerUser)?`${null===(i=null==e?void 0:e.referrerUser)||void 0===i?void 0:i.firstName} ${null===(n=null==e?void 0:e.referrerUser)||void 0===n?void 0:n.lastName}`:`${null===(d=null==e?void 0:e.referredUser)||void 0===d?void 0:d.firstName} ${null===(o=null==e?void 0:e.referredUser)||void 0===o?void 0:o.lastName}`:this.anonymousUser:this.deletedUser,t("sqm-referral-table-user-cell",{name:u})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){var a,s,l,r;let i;return i=e?(null===(a=null==e?void 0:e.referrerUser)||void 0===a?void 0:a.firstName)||(null===(s=e.referrerUser)||void 0===s?void 0:s.lastName)?`${null===(l=null==e?void 0:e.referrerUser)||void 0===l?void 0:l.firstName} ${null===(r=null==e?void 0:e.referrerUser)||void 0===r?void 0:r.lastName}`:this.anonymousUser:this.deletedUser,t("sqm-referral-table-user-cell",{name:i})}render(){return h([this.deletedUser,this.anonymousUser,this.columnTitle]),t(s,{style:{display:"none"}})}};export{R as sqm_referral_table,C as sqm_referral_table_cell,L as sqm_referral_table_column,O as sqm_referral_table_date_cell,w as sqm_referral_table_date_column,x as sqm_referral_table_rewards_cell,G as sqm_referral_table_rewards_column,U as sqm_referral_table_status_cell,V as sqm_referral_table_status_column,q as sqm_referral_table_user_cell,X as sqm_referral_table_user_column}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import{r as t,h as e}from"./p-f708da7b.js";import{k as r,f as i,n as o}from"./p-cd651f81.js";import"./p-65069b66.js";import{d as s,J as a,w as l,$ as n,i as u}from"./p-94a876b9.js";import{c as d}from"./p-c1086930.js";import{g as m}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-c9f1dde7.js";import{P as c}from"./p-63a75798.js";import{i as v}from"./p-8c23d1b8.js";const f=s.gql`
|
|
2
|
+
query {
|
|
3
|
+
viewer {
|
|
4
|
+
... on User {
|
|
5
|
+
id
|
|
6
|
+
accountId
|
|
7
|
+
firstName
|
|
8
|
+
lastName
|
|
9
|
+
email
|
|
10
|
+
countryCode
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`,h=s.gql`
|
|
15
|
+
mutation (
|
|
16
|
+
$id: String!
|
|
17
|
+
$accountId: String!
|
|
18
|
+
$firstName: String!
|
|
19
|
+
$lastName: String!
|
|
20
|
+
) {
|
|
21
|
+
upsertUser(
|
|
22
|
+
userInput: {
|
|
23
|
+
id: $id
|
|
24
|
+
accountId: $accountId
|
|
25
|
+
firstName: $firstName
|
|
26
|
+
lastName: $lastName
|
|
27
|
+
}
|
|
28
|
+
) {
|
|
29
|
+
firstName
|
|
30
|
+
lastName
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`,p={country:"",email:"",firstName:"",lastName:"",errors:{},error:""},b=class{constructor(e){t(this,e),this.ignored=!0,this.firstnametext="First Name",this.lastnametext="Last Name",this.emailtext="Email",this.countrytext="Country",this.editProfileHeader="Edit your profile",this.editProfileSubHeader="Personal Information",this.submitChangeButtonText="Submit Changes",this.hideCountry=!1,this.networkRequestMessage="An error occurred while loading this page. Please refresh the page.",this.fieldEmptyText="Field is required",this.formErrorText="Please correct the errors below to update your profile.",this.submissionSuccessText="Your profile has been successfully updated.",o(this)}disconnectedCallback(){}render(){const t=u()?function(t){return d({states:{success:!1,loading:!1,submitDisabled:!1,showCountry:!t.hideCountry,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"CA"},text:{firstnametext:t.firstnametext,lastnametext:t.lastnametext,emailtext:t.emailtext,countrytext:t.countrytext,editProfileHeader:t.editProfileHeader,editProfileSubHeader:t.editProfileSubHeader,submitChangeButtonText:t.submitChangeButtonText,submissionSuccessText:t.submissionSuccessText,fieldEmptyText:t.fieldEmptyText},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:t=>console.log(t),onChange:t=>console.log(t)}},t.demoData||{},{arrayMerge:(t,e)=>e})}(m(this)):function(t){const e=a(),[o,s]=r(!1),[u,d]=r(void 0),[m,c]=r(p),b=l(f,{},!(null==e?void 0:e.jwt)),[N,g]=n(h);return i((()=>{(null==g?void 0:g.loading)||((null==g?void 0:g.errors)?c((t=>{var e,r,i;return{...t,error:null===(i=null===(r=null===(e=null==g?void 0:g.errors)||void 0===e?void 0:e.response)||void 0===r?void 0:r.errors)||void 0===i?void 0:i[0].message}})):(d((t=>{var e;return{...t,...null===(e=null==g?void 0:g.data)||void 0===e?void 0:e.upsertUser}})),(null==g?void 0:g.data)&&s(!0)))}),[null==g?void 0:g.loading]),i((()=>{var t,e;d((t=>{var e;return{...t,...null===(e=null==b?void 0:b.data)||void 0===e?void 0:e.viewer}})),c({...p,...null===(t=b.data)||void 0===t?void 0:t.viewer,...null===(e=g.data)||void 0===e?void 0:e.upsertUser})}),[null==b?void 0:b.data]),i((()=>{var e,r;(null===(e=null==g?void 0:g.errors)||void 0===e?void 0:e.message)&&c({...null===(r=b.data)||void 0===r?void 0:r.viewer,error:t.networkRequestMessage})}),[null==g?void 0:g.errors]),{states:{success:o,loading:(null==b?void 0:b.loading)||g.loading,submitDisabled:!1,showCountry:!t.hideCountry,formState:m,user:u,text:{firstnametext:t.firstnametext,lastnametext:t.lastnametext,countrytext:t.countrytext,emailtext:t.emailtext,editProfileHeader:t.editProfileHeader,editProfileSubHeader:t.editProfileSubHeader,submitChangeButtonText:t.submitChangeButtonText}},callbacks:{onSubmit:()=>{if(s(!1),m.firstName&&m.lastName)return N({id:null==e?void 0:e.id,accountId:null==e?void 0:e.accountId,firstName:m.firstName,lastName:m.lastName}),void c((t=>({...t,errors:{},error:""})));const r={};m.firstName||(r.firstName={message:t.fieldEmptyText}),m.lastName||(r.lastName={message:t.fieldEmptyText}),v(r)||c((e=>({...e,error:t.formErrorText}))),c((t=>({...t,errors:r})))},onChange:t=>{const{name:e,value:r}=t.target;c((t=>({...t,[e]:r})))}}}}(m(this));return e(c,Object.assign({},t))}};export{b as sqm_portal_profile}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GoogleSignIn } from "./sqm-google-sign-in";
|
|
2
2
|
export declare function useGoogleSignIn(props: GoogleSignIn): {
|
|
3
|
-
setGoogleButtonDiv: (value:
|
|
3
|
+
setGoogleButtonDiv: (value: HTMLElement | ((previousState?: HTMLElement) => HTMLElement)) => void;
|
|
4
4
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface PayoutButtonScrollViewProps {
|
|
2
|
+
states: {
|
|
3
|
+
payoutSettingsComplete: boolean;
|
|
4
|
+
};
|
|
5
|
+
text: {
|
|
6
|
+
payoutButtonText: string;
|
|
7
|
+
payoutButtonDescription: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare function PayoutButtonScrollView(props: PayoutButtonScrollViewProps): any;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DemoData } from "../../global/demo";
|
|
2
|
+
import { PayoutButtonScrollViewProps } from "./sqm-payout-button-scroll-view";
|
|
3
|
+
/**
|
|
4
|
+
* @uiName Payout Button Scroll
|
|
5
|
+
*/
|
|
6
|
+
export declare class PayoutButtonScroll {
|
|
7
|
+
/**
|
|
8
|
+
* @uiName Payout button text
|
|
9
|
+
*/
|
|
10
|
+
payoutButtonText: string;
|
|
11
|
+
/**
|
|
12
|
+
* Description text under payout button
|
|
13
|
+
* @uiName Payout button description text
|
|
14
|
+
*/
|
|
15
|
+
payoutButtonDescription: string;
|
|
16
|
+
/**
|
|
17
|
+
* @undocumented
|
|
18
|
+
* @uiType object
|
|
19
|
+
*/
|
|
20
|
+
demoData?: DemoData<PayoutButtonScrollViewProps>;
|
|
21
|
+
ignored: boolean;
|
|
22
|
+
constructor();
|
|
23
|
+
disconnectedCallback(): void;
|
|
24
|
+
getTextProps(): this;
|
|
25
|
+
render(): any;
|
|
26
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { DemoData } from "../../global/demo";
|
|
2
|
+
import { PortalLoginViewProps } from "../sqm-portal-login/sqm-portal-login-view";
|
|
3
|
+
/**
|
|
4
|
+
* @uiName Microsite Login
|
|
5
|
+
*/
|
|
6
|
+
export declare class PortalGoogleLogin {
|
|
7
|
+
ignored: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Redirect participants to this page after they successfully login.
|
|
10
|
+
*
|
|
11
|
+
* @uiName Login redirect
|
|
12
|
+
* @uiWidget pageSelect
|
|
13
|
+
*/
|
|
14
|
+
nextPage: string;
|
|
15
|
+
/**
|
|
16
|
+
* @uiName Email field label
|
|
17
|
+
*/
|
|
18
|
+
emailLabel: string;
|
|
19
|
+
/**
|
|
20
|
+
* @uiName Password field label
|
|
21
|
+
*/
|
|
22
|
+
passwordLabel: string;
|
|
23
|
+
/**
|
|
24
|
+
* @uiName Submit button text
|
|
25
|
+
*/
|
|
26
|
+
submitLabel: string;
|
|
27
|
+
/**
|
|
28
|
+
* Redirect participants to this page to reset their password
|
|
29
|
+
* @uiName Forgot password redirect
|
|
30
|
+
* @uiWidget pageSelect
|
|
31
|
+
*/
|
|
32
|
+
forgotPasswordPath: string;
|
|
33
|
+
/**
|
|
34
|
+
* @uiName Forgot password text
|
|
35
|
+
*/
|
|
36
|
+
forgotPasswordLabel: string;
|
|
37
|
+
/**
|
|
38
|
+
* @uiName Register button text
|
|
39
|
+
*/
|
|
40
|
+
registerLabel: string;
|
|
41
|
+
/**
|
|
42
|
+
* Redirect participants to this page to start registration.
|
|
43
|
+
* @uiName Register button redirect
|
|
44
|
+
* @uiWidget pageSelect
|
|
45
|
+
*/
|
|
46
|
+
registerPath: string;
|
|
47
|
+
/**
|
|
48
|
+
* @uiName Heading label
|
|
49
|
+
* @uiWidget textArea
|
|
50
|
+
*/
|
|
51
|
+
pageLabel: string;
|
|
52
|
+
/**
|
|
53
|
+
* @uiName Network error message
|
|
54
|
+
* Displayed when the login fails due to a network error. The participant can try refreshing the page.
|
|
55
|
+
*/
|
|
56
|
+
networkErrorMessage: string;
|
|
57
|
+
/**
|
|
58
|
+
* @uiName Google account error message
|
|
59
|
+
* Displayed when user tries to sign in with Google account but has not registered.
|
|
60
|
+
*/
|
|
61
|
+
googleUserNotRegisteredError: string;
|
|
62
|
+
/**
|
|
63
|
+
* @uiName Register CTA
|
|
64
|
+
*/
|
|
65
|
+
registerCTA: string;
|
|
66
|
+
/**
|
|
67
|
+
* @undocumented
|
|
68
|
+
* @uiType object
|
|
69
|
+
*/
|
|
70
|
+
demoData?: DemoData<PortalLoginViewProps>;
|
|
71
|
+
constructor();
|
|
72
|
+
disconnectedCallback(): void;
|
|
73
|
+
render(): any;
|
|
74
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PortalLogin } from "./sqm-portal-login";
|
|
2
|
-
|
|
2
|
+
import { PortalGoogleLogin } from "../sqm-portal-google-login/sqm-portal-google-login";
|
|
3
|
+
export declare function usePortalLogin(props: PortalLogin | PortalGoogleLogin): {
|
|
3
4
|
states: {
|
|
4
5
|
loading: boolean;
|
|
5
6
|
error: string;
|
|
@@ -17,6 +17,7 @@ export declare const Cancelled: () => any;
|
|
|
17
17
|
export declare const Expired: () => any;
|
|
18
18
|
export declare const Denied: () => any;
|
|
19
19
|
export declare const PayoutFailed: () => any;
|
|
20
|
+
export declare const PayoutDenied: () => any;
|
|
20
21
|
export declare const PayoutCancelled: () => any;
|
|
21
22
|
export declare const PendingReview: () => any;
|
|
22
23
|
export declare const PendingTaxReview: () => any;
|
|
@@ -37,6 +37,7 @@ export declare const StatusCellPendingTaxSubmission: () => any;
|
|
|
37
37
|
export declare const StatusCellPendingPartnerCreation: () => any;
|
|
38
38
|
export declare const StatusCellPayoutSent: () => any;
|
|
39
39
|
export declare const StatusCellPayoutFailed: () => any;
|
|
40
|
+
export declare const StatusCellPayoutCancelled: () => any;
|
|
40
41
|
export declare const StatusCellPendingWithLongText: () => any;
|
|
41
42
|
export declare const StatusCellPendingUsTax: () => any;
|
|
42
43
|
export declare const StatusCellPendingScheduled: () => any;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const SHOW_CODE_NAMESPACE = "sq:code-verification";
|
|
2
|
+
export declare const VERIFICATION_EMAIL_NAMESPACE = "sq:verification-email";
|
|
3
|
+
export declare const VERIFICATION_PARENT_NAMESPACE = "sq:verification-context";
|
|
4
|
+
export declare const VERIFICATION_EVENT_KEY = "sq:code-verified";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: () => any;
|
|
6
|
+
export declare const InitialLoading: () => any;
|
|
7
|
+
export declare const Loading: () => any;
|
|
8
|
+
export declare const CodeResent: () => any;
|
|
9
|
+
export declare const VerificationFailed: () => any;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface WidgetCodeVerificationViewProps {
|
|
2
|
+
states: {
|
|
3
|
+
initialiseLoading: boolean;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
email: string;
|
|
6
|
+
verifyFailed?: boolean;
|
|
7
|
+
emailResent: boolean;
|
|
8
|
+
};
|
|
9
|
+
refs: {
|
|
10
|
+
codeWrapperRef: any;
|
|
11
|
+
};
|
|
12
|
+
callbacks: {
|
|
13
|
+
submitCode: () => Promise<void>;
|
|
14
|
+
resendEmail: () => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
text: {
|
|
17
|
+
verifyCodeHeaderText: string;
|
|
18
|
+
reverifyCodeHeaderText: string;
|
|
19
|
+
resendCodeText: string;
|
|
20
|
+
verifyText: string;
|
|
21
|
+
invalidCodeText: string;
|
|
22
|
+
codeResentSuccessfullyText: string;
|
|
23
|
+
resendCodeLabel: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare function WidgetCodeVerificationView(props: WidgetCodeVerificationViewProps): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { DemoData } from "../../../global/demo";
|
|
2
|
+
import { WidgetCodeVerificationViewProps } from "./sqm-code-verification-view";
|
|
3
|
+
export declare class WidgetCodeVerification {
|
|
4
|
+
/**
|
|
5
|
+
* @uiName Verify code widget header text
|
|
6
|
+
*/
|
|
7
|
+
verifyCodeHeaderText: string;
|
|
8
|
+
/**
|
|
9
|
+
* @uiName Reverify code widget header text
|
|
10
|
+
*/
|
|
11
|
+
reverifyCodeHeaderText: string;
|
|
12
|
+
/**
|
|
13
|
+
* Text displayed under verify button
|
|
14
|
+
* @uiName Resend code text
|
|
15
|
+
*/
|
|
16
|
+
resendCodeText: string;
|
|
17
|
+
/**
|
|
18
|
+
* The link that appears in the resend code link
|
|
19
|
+
* @uiName Resend code label
|
|
20
|
+
*/
|
|
21
|
+
resendCodeLabel: string;
|
|
22
|
+
/**
|
|
23
|
+
* Link text displayed under verify button
|
|
24
|
+
* @uiName Resend code text
|
|
25
|
+
*/
|
|
26
|
+
codeResentSuccessfullyText: string;
|
|
27
|
+
/**
|
|
28
|
+
* Error text displayed under verification input
|
|
29
|
+
* @uiName Invalid code text
|
|
30
|
+
*/
|
|
31
|
+
invalidCodeText: string;
|
|
32
|
+
/**
|
|
33
|
+
* @uiName Verify code button text
|
|
34
|
+
*/
|
|
35
|
+
verifyText: string;
|
|
36
|
+
/**
|
|
37
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
38
|
+
* @uiName Network error message
|
|
39
|
+
*/
|
|
40
|
+
networkErrorMessage: string;
|
|
41
|
+
/**
|
|
42
|
+
* @undocumented
|
|
43
|
+
* @uiType object
|
|
44
|
+
*/
|
|
45
|
+
demoData?: DemoData<WidgetCodeVerificationViewProps>;
|
|
46
|
+
/**
|
|
47
|
+
* @undocumented
|
|
48
|
+
*/
|
|
49
|
+
onVerification?: (token: string) => any;
|
|
50
|
+
constructor();
|
|
51
|
+
disconnectedCallback(): void;
|
|
52
|
+
getTextProps(): this;
|
|
53
|
+
render(): any;
|
|
54
|
+
}
|
package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { WidgetCodeVerification } from "./sqm-code-verification";
|
|
2
|
+
export declare const VerifyEmailWithCodeMutation: string;
|
|
3
|
+
export declare function useCodeVerificationMutation(): readonly [(code: string) => Promise<any>, {
|
|
4
|
+
readonly loading: boolean;
|
|
5
|
+
readonly data: any;
|
|
6
|
+
readonly errors: import("@saasquatch/component-boilerplate/dist/hooks/graphql/useBaseQuery").GraphQlRequestError<any>;
|
|
7
|
+
}];
|
|
8
|
+
export declare function useWidgetCodeVerification(props: WidgetCodeVerification): {
|
|
9
|
+
refs: {
|
|
10
|
+
codeWrapperRef: (value: HTMLDivElement | ((previousState?: HTMLDivElement) => HTMLDivElement)) => void;
|
|
11
|
+
};
|
|
12
|
+
states: {
|
|
13
|
+
email: string;
|
|
14
|
+
emailResent: boolean;
|
|
15
|
+
resendError: import("@saasquatch/component-boilerplate/dist/hooks/graphql/useBaseQuery").GraphQlRequestError<any>;
|
|
16
|
+
initialiseLoading: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
verifyFailed: boolean;
|
|
19
|
+
};
|
|
20
|
+
callbacks: {
|
|
21
|
+
resendEmail: () => Promise<void>;
|
|
22
|
+
submitCode: () => Promise<void>;
|
|
23
|
+
};
|
|
24
|
+
text: WidgetCodeVerification;
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: () => any;
|
|
6
|
+
export declare const EmailIsPrefilled: () => any;
|
|
7
|
+
export declare const Loading: () => any;
|
|
8
|
+
export declare const SaveLoading: () => any;
|
|
9
|
+
export declare const WithHeader: () => any;
|
|
10
|
+
export declare const InvalidEmail: () => any;
|
|
11
|
+
export declare const SendCodeError: () => any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface WidgetEmailVerificationViewProps {
|
|
2
|
+
states: {
|
|
3
|
+
error: boolean;
|
|
4
|
+
initialLoading: boolean;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
email: string;
|
|
7
|
+
sendCodeError: boolean;
|
|
8
|
+
};
|
|
9
|
+
callbacks: {
|
|
10
|
+
submitEmail: (e: any) => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
text: {
|
|
13
|
+
verifyEmailHeaderText: string;
|
|
14
|
+
sendCodeText: string;
|
|
15
|
+
emailLabel: string;
|
|
16
|
+
sendCodeErrorHeader: string;
|
|
17
|
+
sendCodeErrorDescription: string;
|
|
18
|
+
emailValidationErrorText: string;
|
|
19
|
+
supportLink: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare function WidgetEmailVerificationView(props: WidgetEmailVerificationViewProps): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DemoData } from "../../../global/demo";
|
|
2
|
+
import { WidgetEmailVerificationViewProps } from "./sqm-email-verification-view";
|
|
3
|
+
/**
|
|
4
|
+
* @uiName Widget Verification Gate
|
|
5
|
+
*/
|
|
6
|
+
export declare class WidgetEmailVerification {
|
|
7
|
+
/**
|
|
8
|
+
* @uiName Verify email widget header text
|
|
9
|
+
*/
|
|
10
|
+
verifyEmailHeaderText: string;
|
|
11
|
+
/**
|
|
12
|
+
* @uiName Send code to email alert header
|
|
13
|
+
*/
|
|
14
|
+
sendCodeErrorHeader: string;
|
|
15
|
+
/**
|
|
16
|
+
* @uiName Support link text
|
|
17
|
+
*/
|
|
18
|
+
supportLink: string;
|
|
19
|
+
/**
|
|
20
|
+
* @uiName Send code to email alert description
|
|
21
|
+
*/
|
|
22
|
+
sendCodeErrorDescription: string;
|
|
23
|
+
/**
|
|
24
|
+
* @uiName Email input label
|
|
25
|
+
*/
|
|
26
|
+
emailLabel: string;
|
|
27
|
+
/**
|
|
28
|
+
* @uiName Send code button text
|
|
29
|
+
*/
|
|
30
|
+
sendCodeText: string;
|
|
31
|
+
/**
|
|
32
|
+
* @uiName Send code button text
|
|
33
|
+
*/
|
|
34
|
+
emailValidationErrorText: string;
|
|
35
|
+
/**
|
|
36
|
+
* @undocumented
|
|
37
|
+
* @uiType object
|
|
38
|
+
*/
|
|
39
|
+
demoData?: DemoData<WidgetEmailVerificationViewProps>;
|
|
40
|
+
constructor();
|
|
41
|
+
disconnectedCallback(): void;
|
|
42
|
+
getTextProps(): this;
|
|
43
|
+
render(): any;
|
|
44
|
+
}
|