@saasquatch/mint-components 1.13.0-9 → 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 +38 -35
- 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 -10
- package/dist/collection/components/sqm-google-sign-in/useGoogleSignIn.js +34 -27
- 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 +39 -36
- 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-62f6627d.js +0 -1
- package/dist/mint-components/p-6a89b821.system.entry.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-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-d7ed4bb5.entry.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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
4
|
+
const index_module = require('./index.module-ee84433d.js');
|
|
5
|
+
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
6
|
+
const utils = require('./utils-6847bc06.js');
|
|
7
|
+
|
|
8
|
+
function usePortalLogin(props) {
|
|
9
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
10
|
+
const [request, { loading, errors, data }] = index_module.je();
|
|
11
|
+
const [loginWithGoogle, { loading: gLoading, errors: gErrors }] = index_module.hn();
|
|
12
|
+
const [error, setError] = stencilHooks_module.useState("");
|
|
13
|
+
const urlParams = new URLSearchParams(index_module.jn.location.search);
|
|
14
|
+
const nextPageOverride = urlParams.get("nextPage");
|
|
15
|
+
const googleSubmit = async (e) => {
|
|
16
|
+
var _a, _b, _c, _d;
|
|
17
|
+
if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
|
|
18
|
+
return;
|
|
19
|
+
const result = await loginWithGoogle({ idToken: e.detail.credential });
|
|
20
|
+
if (result instanceof Error) {
|
|
21
|
+
if ((result === null || result === void 0 ? void 0 : result.message) || ((_b = result === null || result === void 0 ? void 0 : result["response"]) === null || _b === void 0 ? void 0 : _b["error"]))
|
|
22
|
+
if ((_c = result === null || result === void 0 ? void 0 : result["response"]) === null || _c === void 0 ? void 0 : _c["errors"].some((error) => { var _a; return ((_a = error === null || error === void 0 ? void 0 : error["extensions"]) === null || _a === void 0 ? void 0 : _a["message"]) === "Invalid Credentials."; })) {
|
|
23
|
+
setError(props.googleUserNotRegisteredError);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
setError(props.networkErrorMessage);
|
|
27
|
+
}
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if ((_d = result.authenticateManagedIdentityWithGoogle) === null || _d === void 0 ? void 0 : _d.token) {
|
|
31
|
+
urlParams.delete("nextPage");
|
|
32
|
+
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
33
|
+
index_module.jn.push(url.href);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const submit = async (event) => {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
setError("");
|
|
39
|
+
let formData = event.detail.formData;
|
|
40
|
+
formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
|
|
41
|
+
jsonpointer.jsonpointer.set(formData, key, value);
|
|
42
|
+
});
|
|
43
|
+
const variables = { email: formData.email, password: formData.password };
|
|
44
|
+
const result = await request(variables);
|
|
45
|
+
if (result instanceof Error) {
|
|
46
|
+
if ((result === null || result === void 0 ? void 0 : result.message) || ((_a = result === null || result === void 0 ? void 0 : result["response"]) === null || _a === void 0 ? void 0 : _a["error"]))
|
|
47
|
+
setError(props.networkErrorMessage);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
51
|
+
urlParams.delete("nextPage");
|
|
52
|
+
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
53
|
+
index_module.jn.push(url.href);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
|
|
57
|
+
error;
|
|
58
|
+
const googleErrorMessage = ((_l = (_k = (_j = (_h = gErrors === null || gErrors === void 0 ? void 0 : gErrors.response) === null || _h === void 0 ? void 0 : _h.errors) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.extensions) === null || _l === void 0 ? void 0 : _l.message) || ((_p = (_o = (_m = gErrors === null || gErrors === void 0 ? void 0 : gErrors.response) === null || _m === void 0 ? void 0 : _m.errors) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.message) ||
|
|
59
|
+
error;
|
|
60
|
+
return {
|
|
61
|
+
states: {
|
|
62
|
+
loading: loading || gLoading,
|
|
63
|
+
error: errorMessage || googleErrorMessage,
|
|
64
|
+
registerPath: props.registerPath,
|
|
65
|
+
forgotPasswordPath: props.forgotPasswordPath,
|
|
66
|
+
},
|
|
67
|
+
callbacks: {
|
|
68
|
+
googleSubmit,
|
|
69
|
+
submit,
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
exports.usePortalLogin = usePortalLogin;
|
package/dist/cjs/{usePortalRegistrationForm-a89d736e.js → usePortalRegistrationForm-f25d89e7.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-ee84433d.js');
|
|
5
5
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
6
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
6
|
+
const useRegistrationFormState = require('./useRegistrationFormState-7b820f0c.js');
|
|
7
7
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
8
8
|
|
|
9
9
|
const RegistrationFormQuery = index_module.dist.gql `
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-a29c60ef.js');
|
|
4
4
|
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
5
|
-
const index_module = require('./index.module-
|
|
6
|
-
const reRender = require('./re-render-
|
|
7
|
-
const useChildElements = require('./useChildElements-
|
|
5
|
+
const index_module = require('./index.module-ee84433d.js');
|
|
6
|
+
const reRender = require('./re-render-b324deab.js');
|
|
7
|
+
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
8
8
|
|
|
9
9
|
const debug = stencilHooks_module.browser("sq:useReferralTable");
|
|
10
10
|
const CSS_NAMESPACE = "sqm-referral-table";
|
package/dist/cjs/{useRegistrationFormState-986b5ea1.js → useRegistrationFormState-7b820f0c.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-ee84433d.js');
|
|
5
5
|
|
|
6
6
|
const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
7
7
|
const REGISTRATION_FORM_STATE_CONTEXT_INTERNAL = "sq:registration-form-state-internal";
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
4
|
+
const index_module = require('./index.module-ee84433d.js');
|
|
5
|
+
|
|
6
|
+
const UserLookupQuery = index_module.dist.gql `
|
|
7
|
+
query userLookup {
|
|
8
|
+
viewer {
|
|
9
|
+
... on User {
|
|
10
|
+
id
|
|
11
|
+
accountId
|
|
12
|
+
email
|
|
13
|
+
impactConnection {
|
|
14
|
+
user {
|
|
15
|
+
id
|
|
16
|
+
email
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
const ParticipantVerificationEmailMutation = index_module.dist.gql `
|
|
24
|
+
mutation requestUserEmailVerification($user: UserIdInput!) {
|
|
25
|
+
requestUserEmailVerification(user: $user) {
|
|
26
|
+
success
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
const ImpactVerificationEmailMutation = index_module.dist.gql `
|
|
31
|
+
mutation requestImpactPublisherEmail2FA($user: UserIdInput!) {
|
|
32
|
+
requestImpactPublisherEmail2FA(user: $user) {
|
|
33
|
+
success
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
const VerifyUserEmailMutation = index_module.dist.gql `
|
|
38
|
+
mutation verifyUserEmail($user: UserIdInput!, $code: String!) {
|
|
39
|
+
verifyUserEmail(user: $user, code: $code) {
|
|
40
|
+
id
|
|
41
|
+
accountId
|
|
42
|
+
email
|
|
43
|
+
emailVerified
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
const SubmitImpactCodeMutation = index_module.dist.gql `
|
|
48
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
49
|
+
$user: UserIdInput!
|
|
50
|
+
$code: String!
|
|
51
|
+
) {
|
|
52
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
53
|
+
verifiedEmail
|
|
54
|
+
accessKey
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
// ! It's important when using this hook to ensure initialisation
|
|
59
|
+
// ! is done before calling any mutations
|
|
60
|
+
function useVerificationEmail() {
|
|
61
|
+
const userIdentity = index_module.J();
|
|
62
|
+
const [verificationEmail, setVerificationEmail] = stencilHooks_module.useState(null);
|
|
63
|
+
const [hasEmails, setHasEmails] = stencilHooks_module.useState({
|
|
64
|
+
participant: false,
|
|
65
|
+
impact: false,
|
|
66
|
+
});
|
|
67
|
+
const [fetch] = index_module.Xe(UserLookupQuery);
|
|
68
|
+
// Send mutations
|
|
69
|
+
const [sendParticipantEmail, { loading: participantEmailLoading, errors: participantEmailErrors },] = index_module.$e(ParticipantVerificationEmailMutation);
|
|
70
|
+
const [sendImpactEmail, { loading: impactEmailLoading, errors: impactEmailErrors },] = index_module.$e(ImpactVerificationEmailMutation);
|
|
71
|
+
const sendLoading = participantEmailLoading || impactEmailLoading;
|
|
72
|
+
const sendErrors = participantEmailErrors || impactEmailErrors;
|
|
73
|
+
// Verification mutations
|
|
74
|
+
const [verifyUserEmail, { loading: verifyMutationLoading, errors: verifyMutationErrors },] = index_module.$e(VerifyUserEmailMutation);
|
|
75
|
+
const [submitImpactCode, { loading: submitImpactCodeLoading, errors: submitImpactCodeErrors },] = index_module.$e(SubmitImpactCodeMutation);
|
|
76
|
+
const verifyLoading = verifyMutationLoading || submitImpactCodeLoading;
|
|
77
|
+
const verifyErrors = verifyMutationErrors || submitImpactCodeErrors;
|
|
78
|
+
const [initialized, setInitialized] = stencilHooks_module.useState(false);
|
|
79
|
+
const initialise = async () => {
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
81
|
+
try {
|
|
82
|
+
const lookup = await fetch({});
|
|
83
|
+
if (!lookup || lookup instanceof Error)
|
|
84
|
+
throw new Error();
|
|
85
|
+
setHasEmails({
|
|
86
|
+
participant: !!((_a = lookup === null || lookup === void 0 ? void 0 : lookup.viewer) === null || _a === void 0 ? void 0 : _a.email),
|
|
87
|
+
impact: !!((_d = (_c = (_b = lookup === null || lookup === void 0 ? void 0 : lookup.viewer) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.email),
|
|
88
|
+
});
|
|
89
|
+
setVerificationEmail(((_g = (_f = (_e = lookup === null || lookup === void 0 ? void 0 : lookup.viewer) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.user) === null || _g === void 0 ? void 0 : _g.email) || ((_h = lookup === null || lookup === void 0 ? void 0 : lookup.viewer) === null || _h === void 0 ? void 0 : _h.email) ||
|
|
90
|
+
null);
|
|
91
|
+
setInitialized(true);
|
|
92
|
+
}
|
|
93
|
+
catch (e) {
|
|
94
|
+
console.error("Could not initialise verification", e);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const sendVerificationEmail = async () => {
|
|
98
|
+
let result = null;
|
|
99
|
+
if (!initialized)
|
|
100
|
+
return result;
|
|
101
|
+
if (!hasEmails.participant && !hasEmails.impact)
|
|
102
|
+
return result;
|
|
103
|
+
try {
|
|
104
|
+
const request = hasEmails.impact ? sendImpactEmail : sendParticipantEmail;
|
|
105
|
+
const res = await request({
|
|
106
|
+
user: {
|
|
107
|
+
id: userIdentity.id,
|
|
108
|
+
accountId: userIdentity.accountId,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
if (res instanceof Error || !res)
|
|
112
|
+
throw new Error();
|
|
113
|
+
result = hasEmails.impact
|
|
114
|
+
? res.requestImpactPublisherEmail2FA
|
|
115
|
+
: res.requestUserEmailVerification;
|
|
116
|
+
}
|
|
117
|
+
catch (e) {
|
|
118
|
+
console.error("Could not send verification email", e);
|
|
119
|
+
}
|
|
120
|
+
finally {
|
|
121
|
+
return result;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
const verifyVerificationEmail = async (code) => {
|
|
125
|
+
var _a;
|
|
126
|
+
let result = null;
|
|
127
|
+
if (!initialized)
|
|
128
|
+
return result;
|
|
129
|
+
if (!hasEmails.participant && !hasEmails.impact)
|
|
130
|
+
return result;
|
|
131
|
+
try {
|
|
132
|
+
const request = hasEmails.impact ? submitImpactCode : verifyUserEmail;
|
|
133
|
+
const res = await request({
|
|
134
|
+
user: {
|
|
135
|
+
id: userIdentity.id,
|
|
136
|
+
accountId: userIdentity.accountId,
|
|
137
|
+
},
|
|
138
|
+
code,
|
|
139
|
+
});
|
|
140
|
+
if (res instanceof Error || !res)
|
|
141
|
+
throw new Error();
|
|
142
|
+
result = {
|
|
143
|
+
success: true,
|
|
144
|
+
accessKey: hasEmails.impact
|
|
145
|
+
? (_a = res.submitImpactPublisherEmail2FACode) === null || _a === void 0 ? void 0 : _a.accessKey : undefined,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
catch (e) {
|
|
149
|
+
console.error("Could not verify email", e);
|
|
150
|
+
}
|
|
151
|
+
finally {
|
|
152
|
+
return result;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
stencilHooks_module.useEffect(() => {
|
|
156
|
+
if (!initialized)
|
|
157
|
+
initialise();
|
|
158
|
+
}, []);
|
|
159
|
+
return {
|
|
160
|
+
initialized,
|
|
161
|
+
verificationEmail,
|
|
162
|
+
send: [
|
|
163
|
+
sendVerificationEmail,
|
|
164
|
+
{ loading: sendLoading, errors: sendErrors },
|
|
165
|
+
],
|
|
166
|
+
verify: [
|
|
167
|
+
verifyVerificationEmail,
|
|
168
|
+
{ loading: verifyLoading, errors: verifyErrors },
|
|
169
|
+
],
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
exports.useVerificationEmail = useVerificationEmail;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-ee84433d.js');
|
|
5
5
|
|
|
6
6
|
// import { IntlMessageFormat } from 'intl-messageformat';
|
|
7
7
|
function isMobile(breakPoint) {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"./components/sqm-referral-codes/sqm-referral-codes.js",
|
|
7
7
|
"./components/sqm-pagination/sqm-pagination.js",
|
|
8
8
|
"./components/sqm-password-field/sqm-password-field.js",
|
|
9
|
+
"./components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js",
|
|
9
10
|
"./components/sqm-referral-table/sqm-referral-table.js",
|
|
10
11
|
"./components/sqm-reward-exchange-list/sqm-reward-exchange-list.js",
|
|
11
12
|
"./components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js",
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"./components/sqm-navigation-menu/sqm-navigation-menu.js",
|
|
50
51
|
"./components/sqm-navigation-sidebar/sqm-navigation-sidebar.js",
|
|
51
52
|
"./components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js",
|
|
53
|
+
"./components/sqm-payout-button-scroll/sqm-payout-button-scroll.js",
|
|
52
54
|
"./components/sqm-popup-container/sqm-popup-container.js",
|
|
53
55
|
"./components/sqm-portal-change-password/sqm-portal-change-password.js",
|
|
54
56
|
"./components/sqm-portal-container/sqm-portal-container.js",
|
|
@@ -56,9 +58,10 @@
|
|
|
56
58
|
"./components/sqm-portal-footer/sqm-portal-footer.js",
|
|
57
59
|
"./components/sqm-portal-forgot-password/sqm-portal-forgot-password.js",
|
|
58
60
|
"./components/sqm-portal-frame/sqm-portal-frame.js",
|
|
61
|
+
"./components/sqm-portal-login/sqm-portal-login.js",
|
|
62
|
+
"./components/sqm-portal-google-login/sqm-portal-google-login.js",
|
|
59
63
|
"./components/sqm-portal-registration-form/sqm-portal-registration-form.js",
|
|
60
64
|
"./components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js",
|
|
61
|
-
"./components/sqm-portal-login/sqm-portal-login.js",
|
|
62
65
|
"./components/sqm-portal-logout/sqm-portal-logout.js",
|
|
63
66
|
"./components/sqm-portal-profile/sqm-portal-profile.js",
|
|
64
67
|
"./components/sqm-portal-protected-route/sqm-portal-protected-route.js",
|
|
@@ -111,6 +114,10 @@
|
|
|
111
114
|
"./components/sqm-timeline/sqm-timeline.js",
|
|
112
115
|
"./components/sqm-titled-section/sqm-titled-section.js",
|
|
113
116
|
"./components/sqm-user-name/sqm-user-name.js",
|
|
117
|
+
"./components/sqm-widget-verification/sqm-widget-verification-controller.js",
|
|
118
|
+
"./components/sqm-widget-verification/sqm-widget-verification.js",
|
|
119
|
+
"./components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js",
|
|
120
|
+
"./components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js",
|
|
114
121
|
"./components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js",
|
|
115
122
|
"./components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js"
|
|
116
123
|
],
|
|
@@ -3,7 +3,7 @@ import { AuthButtonsContainer, AuthColumn, AuthWrapper, ErrorStyles, HostBlock,
|
|
|
3
3
|
import { createStyleSheet } from "../../styling/JSS";
|
|
4
4
|
import { TextSpanView } from "../sqm-text-span/sqm-text-span-view";
|
|
5
5
|
const style = {
|
|
6
|
-
Wrapper:
|
|
6
|
+
Wrapper: AuthWrapper,
|
|
7
7
|
Column: AuthColumn,
|
|
8
8
|
HostBlock: HostBlock,
|
|
9
9
|
":host": {
|
|
@@ -709,9 +709,12 @@ const payoutBalanceQuery = () => {
|
|
|
709
709
|
query payoutBalance {
|
|
710
710
|
viewer: viewer {
|
|
711
711
|
... on User {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
712
|
+
id
|
|
713
|
+
impactConnection {
|
|
714
|
+
publisher {
|
|
715
|
+
payoutsAccount {
|
|
716
|
+
balance
|
|
717
|
+
}
|
|
715
718
|
}
|
|
716
719
|
}
|
|
717
720
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect, useState, withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { Component, Event, h, Prop } from "@stencil/core";
|
|
3
|
+
import { Component, Event, h, Prop, Element, } from "@stencil/core";
|
|
4
4
|
import { useGoogleSignIn } from "./useGoogleSignIn";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Google Sign-In Button
|
|
@@ -9,6 +9,7 @@ import { useGoogleSignIn } from "./useGoogleSignIn";
|
|
|
9
9
|
*/
|
|
10
10
|
export class GoogleSignIn {
|
|
11
11
|
constructor() {
|
|
12
|
+
this.googleButtonDiv = null;
|
|
12
13
|
withHooks(this);
|
|
13
14
|
}
|
|
14
15
|
disconnectedCallback() { }
|
|
@@ -25,14 +26,7 @@ export class GoogleSignIn {
|
|
|
25
26
|
const { setGoogleButtonDiv } = isDemo()
|
|
26
27
|
? useDemoGoogleSignIn(this)
|
|
27
28
|
: useGoogleSignIn(this);
|
|
28
|
-
|
|
29
|
-
return (h("div", null,
|
|
30
|
-
h("style", null, `
|
|
31
|
-
#googleSignIn {
|
|
32
|
-
max-width: 402px;
|
|
33
|
-
width: 100%
|
|
34
|
-
}`),
|
|
35
|
-
h("div", { id: "googleSignIn", ref: setGoogleButtonDiv })));
|
|
29
|
+
return (h("div", { ref: setGoogleButtonDiv, style: { width: "100%" } }));
|
|
36
30
|
}
|
|
37
31
|
static get is() { return "sqm-google-sign-in"; }
|
|
38
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,6 +50,26 @@ export class GoogleSignIn {
|
|
|
56
50
|
},
|
|
57
51
|
"attribute": "text",
|
|
58
52
|
"reflect": false
|
|
53
|
+
},
|
|
54
|
+
"googleButtonDiv": {
|
|
55
|
+
"type": "unknown",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "HTMLElement | null",
|
|
59
|
+
"resolved": "HTMLElement",
|
|
60
|
+
"references": {
|
|
61
|
+
"HTMLElement": {
|
|
62
|
+
"location": "global"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": ""
|
|
71
|
+
},
|
|
72
|
+
"defaultValue": "null"
|
|
59
73
|
}
|
|
60
74
|
}; }
|
|
61
75
|
static get events() { return [{
|
|
@@ -74,6 +88,7 @@ export class GoogleSignIn {
|
|
|
74
88
|
"references": {}
|
|
75
89
|
}
|
|
76
90
|
}]; }
|
|
91
|
+
static get elementRef() { return "el"; }
|
|
77
92
|
}
|
|
78
93
|
function useDemoGoogleSignIn(props) {
|
|
79
94
|
const [loaded, setLoaded] = useState(false);
|
|
@@ -105,7 +120,6 @@ function useDemoGoogleSignIn(props) {
|
|
|
105
120
|
google.accounts.id.renderButton(googleButtonDiv, {
|
|
106
121
|
theme: "outline",
|
|
107
122
|
size: "large",
|
|
108
|
-
width: 400,
|
|
109
123
|
text: props.text,
|
|
110
124
|
click_listener: cb,
|
|
111
125
|
});
|
|
@@ -3,6 +3,31 @@ import { useState, useEffect } from "@saasquatch/stencil-hooks";
|
|
|
3
3
|
export function useGoogleSignIn(props) {
|
|
4
4
|
const [loaded, setLoaded] = useState(false);
|
|
5
5
|
const [googleButtonDiv, setGoogleButtonDiv] = useState(null);
|
|
6
|
+
const [buttonWidth, setButtonWidth] = useState(400);
|
|
7
|
+
let timeoutId = null;
|
|
8
|
+
// Update the width based on the container's size
|
|
9
|
+
const updateWidth = () => {
|
|
10
|
+
if (googleButtonDiv) {
|
|
11
|
+
setButtonWidth(googleButtonDiv.clientWidth);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (!googleButtonDiv)
|
|
16
|
+
return;
|
|
17
|
+
// Create a ResizeObserver to track width changes
|
|
18
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
19
|
+
// Mimic debounce for efficiency
|
|
20
|
+
if (timeoutId) {
|
|
21
|
+
clearTimeout(timeoutId);
|
|
22
|
+
}
|
|
23
|
+
timeoutId = setTimeout(() => {
|
|
24
|
+
updateWidth();
|
|
25
|
+
}, 50);
|
|
26
|
+
});
|
|
27
|
+
resizeObserver.observe(googleButtonDiv);
|
|
28
|
+
updateWidth();
|
|
29
|
+
return () => resizeObserver.disconnect();
|
|
30
|
+
}, [googleButtonDiv]);
|
|
6
31
|
useEffect(() => {
|
|
7
32
|
const cb = () => {
|
|
8
33
|
// @ts-expect-error
|
|
@@ -30,33 +55,15 @@ export function useGoogleSignIn(props) {
|
|
|
30
55
|
useEffect(() => {
|
|
31
56
|
if (!googleButtonDiv || !loaded)
|
|
32
57
|
return;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
size: "large",
|
|
43
|
-
width: w,
|
|
44
|
-
text: props.text,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
renderGoogleButton();
|
|
49
|
-
const handleResize = () => {
|
|
50
|
-
clearTimeout(renderGoogleTimeout);
|
|
51
|
-
renderGoogleTimeout = setTimeout(renderGoogleButton, 100);
|
|
52
|
-
};
|
|
53
|
-
window.addEventListener("resize", handleResize);
|
|
54
|
-
// Cleanup function to remove the event listener and clear the timeout
|
|
55
|
-
return () => {
|
|
56
|
-
window.removeEventListener("resize", handleResize);
|
|
57
|
-
clearTimeout(renderGoogleTimeout);
|
|
58
|
-
};
|
|
59
|
-
}, [googleButtonDiv, loaded]);
|
|
58
|
+
//@ts-expect-error
|
|
59
|
+
google.accounts.id.renderButton(googleButtonDiv, {
|
|
60
|
+
theme: "outline",
|
|
61
|
+
size: "large",
|
|
62
|
+
text: props.text,
|
|
63
|
+
height: 40,
|
|
64
|
+
width: buttonWidth,
|
|
65
|
+
});
|
|
66
|
+
}, [googleButtonDiv, loaded, buttonWidth]);
|
|
60
67
|
return {
|
|
61
68
|
setGoogleButtonDiv,
|
|
62
69
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export default {
|
|
3
|
+
title: "Components/Payout Scroll Button",
|
|
4
|
+
};
|
|
5
|
+
const defaultProps = {
|
|
6
|
+
payoutSettingsComplete: true,
|
|
7
|
+
};
|
|
8
|
+
export const CompletedTaxForm = () => (h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps, payoutSettingsComplete: true } } }));
|
|
9
|
+
export const CompletedTaxFormWithStatsContainer = () => (h("sqm-portal-container", { display: "flex", maxWidth: "100%", minWidth: "100%", "justify-content": "space-between", flexWrap: "nowrap" },
|
|
10
|
+
h("sqm-portal-container", { display: "flex", "max-width": "fit-content" },
|
|
11
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/referralsCount" },
|
|
12
|
+
h("p", null, "Referrals")),
|
|
13
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/payoutBalance" },
|
|
14
|
+
h("p", null, "Cash Balance"))),
|
|
15
|
+
h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps, payoutSettingsComplete: true } } })));
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { createStyleSheet } from "../../styling/JSS";
|
|
3
|
+
const style = {
|
|
4
|
+
Wrapper: {
|
|
5
|
+
maxWidth: "200px",
|
|
6
|
+
marginLeft: "auto",
|
|
7
|
+
},
|
|
8
|
+
PayoutButtonDescription: {
|
|
9
|
+
color: "var(--sl-color-neutral-500)",
|
|
10
|
+
fontSize: "var(--sl-font-size-small)",
|
|
11
|
+
margin: "0",
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
const sheet = createStyleSheet(style);
|
|
15
|
+
const styleString = sheet.toString();
|
|
16
|
+
export function PayoutButtonScrollView(props) {
|
|
17
|
+
const { text, states } = props;
|
|
18
|
+
if (!states.payoutSettingsComplete)
|
|
19
|
+
return h("div", null);
|
|
20
|
+
return (h("div", { class: sheet.classes.Wrapper },
|
|
21
|
+
h("style", { type: "text/css" }, styleString),
|
|
22
|
+
h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.payoutButtonText, "scroll-animation": "smooth" }),
|
|
23
|
+
h("p", { class: sheet.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
|
|
24
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Component, h, Prop, State } from "@stencil/core";
|
|
2
|
+
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
+
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
4
|
+
import { getProps } from "../../utils/utils";
|
|
5
|
+
import { PayoutButtonScrollView, } from "./sqm-payout-button-scroll-view";
|
|
6
|
+
import deepmerge from "deepmerge";
|
|
7
|
+
import { usePayoutButton } from "./usePayoutButton";
|
|
8
|
+
/**
|
|
9
|
+
* @uiName Payout Button Scroll
|
|
10
|
+
*/
|
|
11
|
+
export class PayoutButtonScroll {
|
|
12
|
+
constructor() {
|
|
13
|
+
/**
|
|
14
|
+
* @uiName Payout button text
|
|
15
|
+
*/
|
|
16
|
+
this.payoutButtonText = "Payouts & Tax Settings";
|
|
17
|
+
/**
|
|
18
|
+
* Description text under payout button
|
|
19
|
+
* @uiName Payout button description text
|
|
20
|
+
*/
|
|
21
|
+
this.payoutButtonDescription = "Check your payout settings to see when you’ll get paid out next";
|
|
22
|
+
this.ignored = true;
|
|
23
|
+
withHooks(this);
|
|
24
|
+
}
|
|
25
|
+
disconnectedCallback() { }
|
|
26
|
+
getTextProps() {
|
|
27
|
+
return getProps(this);
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
const props = isDemo()
|
|
31
|
+
? useDemoPayoutButtonScroll(this)
|
|
32
|
+
: usePayoutButton(this);
|
|
33
|
+
return h(PayoutButtonScrollView, Object.assign({}, props));
|
|
34
|
+
}
|
|
35
|
+
static get is() { return "sqm-payout-button-scroll"; }
|
|
36
|
+
static get encapsulation() { return "shadow"; }
|
|
37
|
+
static get properties() { return {
|
|
38
|
+
"payoutButtonText": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"mutable": false,
|
|
41
|
+
"complexType": {
|
|
42
|
+
"original": "string",
|
|
43
|
+
"resolved": "string",
|
|
44
|
+
"references": {}
|
|
45
|
+
},
|
|
46
|
+
"required": false,
|
|
47
|
+
"optional": false,
|
|
48
|
+
"docs": {
|
|
49
|
+
"tags": [{
|
|
50
|
+
"text": "Payout button text",
|
|
51
|
+
"name": "uiName"
|
|
52
|
+
}],
|
|
53
|
+
"text": ""
|
|
54
|
+
},
|
|
55
|
+
"attribute": "payout-button-text",
|
|
56
|
+
"reflect": false,
|
|
57
|
+
"defaultValue": "\"Payouts & Tax Settings\""
|
|
58
|
+
},
|
|
59
|
+
"payoutButtonDescription": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [{
|
|
71
|
+
"text": "Payout button description text",
|
|
72
|
+
"name": "uiName"
|
|
73
|
+
}],
|
|
74
|
+
"text": "Description text under payout button"
|
|
75
|
+
},
|
|
76
|
+
"attribute": "payout-button-description",
|
|
77
|
+
"reflect": false,
|
|
78
|
+
"defaultValue": "\"Check your payout settings to see when you\u2019ll get paid out next\""
|
|
79
|
+
},
|
|
80
|
+
"demoData": {
|
|
81
|
+
"type": "unknown",
|
|
82
|
+
"mutable": false,
|
|
83
|
+
"complexType": {
|
|
84
|
+
"original": "DemoData<PayoutButtonScrollViewProps>",
|
|
85
|
+
"resolved": "{ states?: { payoutSettingsComplete: boolean; }; }",
|
|
86
|
+
"references": {
|
|
87
|
+
"DemoData": {
|
|
88
|
+
"location": "import",
|
|
89
|
+
"path": "../../global/demo"
|
|
90
|
+
},
|
|
91
|
+
"PayoutButtonScrollViewProps": {
|
|
92
|
+
"location": "import",
|
|
93
|
+
"path": "./sqm-payout-button-scroll-view"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": true,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [{
|
|
101
|
+
"text": undefined,
|
|
102
|
+
"name": "undocumented"
|
|
103
|
+
}, {
|
|
104
|
+
"text": "object",
|
|
105
|
+
"name": "uiType"
|
|
106
|
+
}],
|
|
107
|
+
"text": ""
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}; }
|
|
111
|
+
static get states() { return {
|
|
112
|
+
"ignored": {}
|
|
113
|
+
}; }
|
|
114
|
+
}
|
|
115
|
+
function useDemoPayoutButtonScroll(props) {
|
|
116
|
+
return deepmerge({
|
|
117
|
+
states: {
|
|
118
|
+
payoutSettingsComplete: false,
|
|
119
|
+
},
|
|
120
|
+
text: props.getTextProps(),
|
|
121
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
122
|
+
}
|