@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(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-f2fd1910.system.js","./p-0e53c59e.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-cd1d497f.system.js","./p-f7c99803.system.js","./p-3bdd338c.system.js","./p-cf505e92.system.js","./p-6d9e52c7.system.js","./p-8413ade9.system.js","./p-a8524459.system.js","./p-e07bc6c4.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,d,u,c,f,v,p,h,E,m,_,T,N,g,D;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.n;s=e.j;l=e.u;o=e.f},function(e){d=e.i},function(e){u=e.i},function(e){c=e.c},function(e){f=e.l},function(e){v=e.c},function(){},function(e){p=e.G},function(e){h=e.a;E=e.u},function(e){m=e.u},function(e){_=e.l},function(e){T=e.g},function(e){N=e.u;g=e.t},function(e){D=e.T}],execute:function(){var y=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return x()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var P=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var A=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var I=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var x=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:A[Math.floor(Math.random()*A.length)],lastName:I[Math.floor(Math.random()*I.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?_.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:_.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(Math.random()*10)>=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:P[Math.floor(Math.random()*P.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},T()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:P[Math.floor(Math.random()*P.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:P[Math.floor(Math.random()*P.length)],type:"CREDIT",value:1},depth:1}]}}};var R=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(b,null);var t=r(w,null);var n=u()?S(this,e,t):N(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;h([this.showReferrer,this.perPage]);return r(p,{states:a,data:i,callbacks:s,elements:l})};return e}());function b(){return r("slot",{name:"empty"},r("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 w(){return r("slot",{name:"loading"},r(C,null),r(C,null),r(C,null),r(C,null))}function C(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sl-skeleton",null)))}function S(e,t,r){var n=s((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var d=E();var u=l((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||y(e.perPage)}),[e.perPage]);var f=m();function v(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,d,c,f,v,p,h,E,m;var _=this;return __generator(this,(function(T){switch(T.label){case 0:a=u===null||u===void 0?void 0:u.referredByReferral;s=e.showReferrer&&!!((r=u===null||u===void 0?void 0:u.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=u.data.slice(0,e.perPage-1)}else{n=u.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(_,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,g(e,(function(){return e.renderLabel(t)}))]}return[2,g(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(_,void 0,void 0,(function(){return __generator(this,(function(t){return[2,g(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:d=T.sent();T.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(_,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,g(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));p=f;if(!p)return[3,4];h=[[d]];return[4,Promise.all(f)];case 3:p=__spreadArrays.apply(void 0,h.concat([T.sent()])).filter((function(e){return e}));T.label=4;case 4:v=p;i({rows:v});m=o;if(!m)return[3,6];return[4,Promise.all(o)];case 5:m=T.sent();T.label=6;case 6:E=m;i({columns:E,loading:false,page:0});return[2]}}))}))}o((function(){i({loading:true});(u===null||u===void 0?void 0:u.data)&&v(f)}),[u===null||u===void 0?void 0:u.data,f,d]);var p=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return p}var L=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var M=e("sqm_referral_table_column",function(){function e(e){t(this,e);i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){h([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var O=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=_.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(f(this.locale)).toLocaleString(_.DateTime.DATE_MED);return t};return e}());var U=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t===null||t===void 0?void 0:t.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){h([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var G=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);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"}e.prototype.render=function(){var e=this;var t;d.locale=this.locale;var n={"@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)"}}};var a=v(n);var i=a.toString();var s=function(e,t){var r,n,a,i,s,l,o,d,u,c,f,v;var p=["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"];if(((n=(r=e.referral)===null||r===void 0?void 0:r.fraudData)===null||n===void 0?void 0:n.moderationStatus)!=="APPROVED"){if(((i=(a=e.referral)===null||a===void 0?void 0:a.fraudData)===null||i===void 0?void 0:i.moderationStatus)==="PENDING")return"PENDING_REVIEW";if(((l=(s=e.referral)===null||s===void 0?void 0:s.fraudData)===null||l===void 0?void 0:l.moderationStatus)==="DENIED")return"DENIED"}var h=(o=e.partnerFundsTransfer)===null||o===void 0?void 0:o.status;if(h==="NOT_YET_DUE"||h==="TRANSFERRED"){return"PAYOUT_APPROVED"}else if(h==="OVERDUE")return"PAYOUT_FAILED";else if(h==="REVERSED")return"PAYOUT_CANCELLED";if((d=e===null||e===void 0?void 0:e.pendingReasons)===null||d===void 0?void 0:d.includes("US_TAX")){if(!(t===null||t===void 0?void 0:t.taxHandlingEnabled))return"PENDING";if(!(t===null||t===void 0?void 0:t.connected))return"PENDING_PARTNER_CREATION";if((u=t===null||t===void 0?void 0:t.publisher)===null||u===void 0?void 0:u.requiredTaxDocumentType){if(!((c=t===null||t===void 0?void 0:t.publisher)===null||c===void 0?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";var E=t.publisher.currentTaxDocument.status;if(E==="INACTIVE")return"PENDING_NEW_TAX_FORM";if(E==="NOT_VERIFIED")return"PENDING_TAX_REVIEW"}if(!((f=t===null||t===void 0?void 0:t.publisher)===null||f===void 0?void 0:f.withdrawalSettings))return"PENDING_PARTNER_CREATION"}if((v=e===null||e===void 0?void 0:e.pendingReasons)===null||v===void 0?void 0:v.includes("PAYOUT_CONFIGURATION_MISSING")){return"PENDING_PARTNER_CREATION"}if(e.statuses.length===1)return e.statuses[0];return p.find((function(t){return e.statuses.includes(t)&&t}))};var l=function(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"}};var o=function(t){return _.DateTime.fromMillis(t).setLocale(f(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n,u;var c=s(t,e.taxConnection);var v=l(c);var p=d.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:c});var h=d.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:c});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(D,{type:"p"},r("span",{part:"sqm-cell-value",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},c==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:v==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:v,pill:true},d.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:p,date:o(t.dateScheduledFor)})):r("sl-badge",{class:v==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:v,pill:true},p),t.dateExpires&&c==="AVAILABLE"&&r("sl-badge",{class:v==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:true},e.expiringText," "+o(t.dateExpires)))),r("div",null,c==="PENDING_REVIEW"&&((n=t.referral)===null||n===void 0?void 0:n.dateModerated)&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.referral.dateModerated).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="PAYOUT_APPROVED"&&r("div",null,r(D,{type:"p"},h)),c==="PAYOUT_FAILED"&&r("div",null,r(D,{type:"p"},h)),c==="PAYOUT_CANCELLED"&&r("div",null,r(D,{type:"p"},h)),c==="PENDING_TAX_REVIEW"&&r("div",null,r(D,{type:"p"},h)),c==="PENDING_NEW_TAX_FORM"&&r("div",null,r(D,{type:"p"},h)),c==="PENDING_TAX_SUBMISSION"&&r("div",null,r(D,{type:"p"},h)),c==="PENDING_PARTNER_CREATION"&&r("div",null,r(D,{type:"p"},h)),c==="DENIED"&&((u=t.referral)===null||u===void 0?void 0:u.dateModerated)&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.referral.dateModerated).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)),".",e.deniedHelpText?" "+e.deniedHelpText:"")),t.dateGiven&&r("div",null,r(D,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateGiven).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="EXPIRED"&&t.dateExpires&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateExpires).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="CANCELLED"&&t.dateCancelled&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateCancelled).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="PENDING"&&t.dateScheduledFor&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateScheduledFor).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED))))," ",c==="AVAILABLE"&&t.dateExpires&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateExpires).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},t.fuelTankCode))))}))};return e}());var B=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);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=false;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:t===null||t===void 0?void 0:t.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:t===null||t===void 0?void 0:t.locale,exportparts:"sqm-cell-value"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})]}))}))};e.prototype.render=function(){h([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var k={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"}};var V=v(k);var q=V.toString();var F=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;var t=function(t){if(t==="PENDING")return"warning";if(t==="DENIED")return"danger";if(e.converted)return"success";return"warning"};return r("div",null,r("style",{type:"text/css"},q),r("sl-badge",{pill:true,type:t(this.fraudStatus),class:V.classes.Badge},this.statusText),this.statusSubText?r("p",{class:V.classes.SubText},this.statusSubText):null)};return e}());var X=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);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";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i;return __generator(this,(function(s){i=(t=e===null||e===void 0?void 0:e.fraudData)===null||t===void 0?void 0:t.moderationStatus;if(i==="DENIED"){n=this.deniedStatusText;a=this.deniedStatusSubText}else if(i==="PENDING"){n=this.pendingReviewStatusText;a=this.pendingReviewStatusSubText}else{n=e.dateConverted?this.convertedStatusText:this.inProgressStatusText}return[2,r("sqm-referral-table-status-cell",{"status-text":n,"status-sub-text":a,"fraud-status":i,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){h([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var Y=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var W=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,d,u;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){u=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){u=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){u=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{u=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((d=e===null||e===void 0?void 0:e.referredUser)===null||d===void 0?void 0:d.lastName)}return[2,r("sqm-referral-table-user-cell",{name:u})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){h([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-bdb7d451.system.js","./p-6cd4f2b1.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-cd1d497f.system.js","./p-f7c99803.system.js","./p-5488fdd9.system.js","./p-6b7a595f.system.js","./p-6d9e52c7.system.js","./p-8413ade9.system.js","./p-59274a91.system.js","./p-e07bc6c4.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,d,u,c,f,v,p,h,E,m,_,T,N,g,D;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.n;s=e.j;l=e.u;o=e.f},function(e){d=e.i},function(e){u=e.i},function(e){c=e.c},function(e){f=e.l},function(e){v=e.c},function(){},function(e){p=e.G},function(e){h=e.a;E=e.u},function(e){m=e.u},function(e){_=e.l},function(e){T=e.g},function(e){N=e.u;g=e.t},function(e){D=e.T}],execute:function(){var y=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return x()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var P=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var A=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var I=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var x=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:A[Math.floor(Math.random()*A.length)],lastName:I[Math.floor(Math.random()*I.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?_.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:_.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(Math.random()*10)>=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:P[Math.floor(Math.random()*P.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},T()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:P[Math.floor(Math.random()*P.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:P[Math.floor(Math.random()*P.length)],type:"CREDIT",value:1},depth:1}]}}};var R=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(b,null);var t=r(w,null);var n=u()?S(this,e,t):N(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;h([this.showReferrer,this.perPage]);return r(p,{states:a,data:i,callbacks:s,elements:l})};return e}());function b(){return r("slot",{name:"empty"},r("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 w(){return r("slot",{name:"loading"},r(C,null),r(C,null),r(C,null),r(C,null))}function C(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sl-skeleton",null)))}function S(e,t,r){var n=s((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var d=E();var u=l((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||y(e.perPage)}),[e.perPage]);var f=m();function v(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,d,c,f,v,p,h,E,m;var _=this;return __generator(this,(function(T){switch(T.label){case 0:a=u===null||u===void 0?void 0:u.referredByReferral;s=e.showReferrer&&!!((r=u===null||u===void 0?void 0:u.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=u.data.slice(0,e.perPage-1)}else{n=u.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(_,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,g(e,(function(){return e.renderLabel(t)}))]}return[2,g(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(_,void 0,void 0,(function(){return __generator(this,(function(t){return[2,g(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:d=T.sent();T.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(_,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,g(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));p=f;if(!p)return[3,4];h=[[d]];return[4,Promise.all(f)];case 3:p=__spreadArrays.apply(void 0,h.concat([T.sent()])).filter((function(e){return e}));T.label=4;case 4:v=p;i({rows:v});m=o;if(!m)return[3,6];return[4,Promise.all(o)];case 5:m=T.sent();T.label=6;case 6:E=m;i({columns:E,loading:false,page:0});return[2]}}))}))}o((function(){i({loading:true});(u===null||u===void 0?void 0:u.data)&&v(f)}),[u===null||u===void 0?void 0:u.data,f,d]);var p=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return p}var L=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var M=e("sqm_referral_table_column",function(){function e(e){t(this,e);i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){h([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var O=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=_.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(f(this.locale)).toLocaleString(_.DateTime.DATE_MED);return t};return e}());var U=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t===null||t===void 0?void 0:t.locale})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){h([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var G=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);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"}e.prototype.render=function(){var e=this;var t;d.locale=this.locale;var n={"@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)"}}};var a=v(n);var i=a.toString();var s=function(e,t){var r,n,a,i,s,l,o,d,u,c,f,v;var p=["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"];if(((n=(r=e.referral)===null||r===void 0?void 0:r.fraudData)===null||n===void 0?void 0:n.moderationStatus)!=="APPROVED"){if(((i=(a=e.referral)===null||a===void 0?void 0:a.fraudData)===null||i===void 0?void 0:i.moderationStatus)==="PENDING")return"PENDING_REVIEW";if(((l=(s=e.referral)===null||s===void 0?void 0:s.fraudData)===null||l===void 0?void 0:l.moderationStatus)==="DENIED")return"DENIED"}var h=(o=e.partnerFundsTransfer)===null||o===void 0?void 0:o.status;if(h==="NOT_YET_DUE"||h==="TRANSFERRED"){return"PAYOUT_APPROVED"}else if(h==="OVERDUE")return"PAYOUT_FAILED";else if(h==="REVERSED")return"PAYOUT_CANCELLED";if((d=e===null||e===void 0?void 0:e.pendingReasons)===null||d===void 0?void 0:d.includes("US_TAX")){if(!(t===null||t===void 0?void 0:t.taxHandlingEnabled))return"PENDING";if(!(t===null||t===void 0?void 0:t.connected))return"PENDING_PARTNER_CREATION";if((u=t===null||t===void 0?void 0:t.publisher)===null||u===void 0?void 0:u.requiredTaxDocumentType){if(!((c=t===null||t===void 0?void 0:t.publisher)===null||c===void 0?void 0:c.currentTaxDocument))return"PENDING_TAX_SUBMISSION";var E=t.publisher.currentTaxDocument.status;if(E==="INACTIVE")return"PENDING_NEW_TAX_FORM";if(E==="NOT_VERIFIED")return"PENDING_TAX_REVIEW"}if(!((f=t===null||t===void 0?void 0:t.publisher)===null||f===void 0?void 0:f.withdrawalSettings))return"PENDING_PARTNER_CREATION"}if((v=e===null||e===void 0?void 0:e.pendingReasons)===null||v===void 0?void 0:v.includes("PAYOUT_CONFIGURATION_MISSING")){return"PENDING_PARTNER_CREATION"}if(e.statuses.length===1)return e.statuses[0];return p.find((function(t){return e.statuses.includes(t)&&t}))};var l=function(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"}};var o=function(t){return _.DateTime.fromMillis(t).setLocale(f(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n,u;var c=s(t,e.taxConnection);var v=l(c);var p=d.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:c});var h=d.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:c});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(D,{type:"p"},r("span",{part:"sqm-cell-value",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},c==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:v==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:v,pill:true},d.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:p,date:o(t.dateScheduledFor)})):r("sl-badge",{class:v==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:v,pill:true},p),t.dateExpires&&c==="AVAILABLE"&&r("sl-badge",{class:v==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:true},e.expiringText," "+o(t.dateExpires)))),r("div",null,c==="PENDING_REVIEW"&&((n=t.referral)===null||n===void 0?void 0:n.dateModerated)&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.referral.dateModerated).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="PAYOUT_APPROVED"&&r("div",null,r(D,{type:"p"},h)),c==="PAYOUT_FAILED"&&r("div",null,r(D,{type:"p"},h)),c==="PAYOUT_CANCELLED"&&r("div",null,r(D,{type:"p"},h)),c==="PENDING_TAX_REVIEW"&&r("div",null,r(D,{type:"p"},h)),c==="PENDING_NEW_TAX_FORM"&&r("div",null,r(D,{type:"p"},h)),c==="PENDING_TAX_SUBMISSION"&&r("div",null,r(D,{type:"p"},h)),c==="PENDING_PARTNER_CREATION"&&r("div",null,r(D,{type:"p"},h)),c==="DENIED"&&((u=t.referral)===null||u===void 0?void 0:u.dateModerated)&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.referral.dateModerated).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)),".",e.deniedHelpText?" "+e.deniedHelpText:"")),t.dateGiven&&r("div",null,r(D,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateGiven).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="EXPIRED"&&t.dateExpires&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateExpires).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="CANCELLED"&&t.dateCancelled&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateCancelled).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),c==="PENDING"&&t.dateScheduledFor&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateScheduledFor).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED))))," ",c==="AVAILABLE"&&t.dateExpires&&r("div",null,r(D,{type:"p"},h," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},_.DateTime.fromMillis(t.dateExpires).setLocale(f(e.locale)).toLocaleString(_.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},t.fuelTankCode))))}))};return e}());var B=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);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=false;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:t===null||t===void 0?void 0:t.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:t===null||t===void 0?void 0:t.locale,exportparts:"sqm-cell-value"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})]}))}))};e.prototype.render=function(){h([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var k={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"}};var V=v(k);var q=V.toString();var F=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;var t=function(t){if(t==="PENDING")return"warning";if(t==="DENIED")return"danger";if(e.converted)return"success";return"warning"};return r("div",null,r("style",{type:"text/css"},q),r("sl-badge",{pill:true,type:t(this.fraudStatus),class:V.classes.Badge},this.statusText),this.statusSubText?r("p",{class:V.classes.SubText},this.statusSubText):null)};return e}());var X=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);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";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i;return __generator(this,(function(s){i=(t=e===null||e===void 0?void 0:e.fraudData)===null||t===void 0?void 0:t.moderationStatus;if(i==="DENIED"){n=this.deniedStatusText;a=this.deniedStatusSubText}else if(i==="PENDING"){n=this.pendingReviewStatusText;a=this.pendingReviewStatusSubText}else{n=e.dateConverted?this.convertedStatusText:this.inProgressStatusText}return[2,r("sqm-referral-table-status-cell",{"status-text":n,"status-sub-text":a,"fraud-status":i,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){h([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var Y=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var W=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,d,u;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){u=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){u=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){u=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{u=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((d=e===null||e===void 0?void 0:e.referredUser)===null||d===void 0?void 0:d.lastName)}return[2,r("sqm-referral-table-user-cell",{name:u})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){h([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++){e=arguments[n];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))t[a]=e[a]}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,n=1,s=arguments.length;n<s;n++){e=arguments[n];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))t[a]=e[a]}return t};return __assign.apply(this,arguments)};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-bdb7d451.system.js","./p-6cd4f2b1.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-127e66c2.system.js"],(function(t){"use strict";var e,n,s,a,r,o,i,l;return{setters:[function(t){e=t.h;n=t.r;s=t.c},function(t){a=t.n},function(t){r=t.i},function(){},function(t){o=t.g},function(){},function(t){i=t.P;l=t.a}],execute:function(){function c(t){var n=t.emptyStateHeader,s=t.emptyStateImage,a=t.emptyStateText,o=t.supportText,i=t.missingFeature,l=i===void 0?"":i;return e("sqm-portal-container",{padding:"large",gap:"medium",part:"sqm-base"},e("img",{style:{height:"100px",margin:"auto"},src:s}),e("sqm-titled-section",{style:{maxHeight:"400px"},"label-margin":"xxx-small","text-align":"center"},e("sqm-text",{slot:"label"},e("p",{part:"header-text"},n)),e("sqm-text",{slot:"content"},e("p",{part:"description-text",innerHTML:"",style:{color:"var(--sl-color-gray-500)"}},r.formatMessage({id:"emptyStateText",defaultMessage:a},{supportText:e("a",{target:"_blank",href:"mailto:saasquatch-support@impact.com?subject=Next steps for "+l+" feature&body=Hi Support Team, %0D%0A\n %0D%0A \n I am interested to learn more about the "+l+" feature. Please let me know the next steps to access this feature, including any necessary plan upgrades.%0D%0A\n %0D%0A \n - Feature Interested In: "+l+"%0D%0A\n - Company Name: [Please fill out your company name here]%0D%0A\n %0D%0A\n Thank you"},o)})))))}var m=t("sqm_empty",function(){function t(t){n(this,t);this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png"}t.prototype.render=function(){return e(s,{slot:"empty"},e(c,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText,supportText:this.supportText}))};return t}());var p=t("sqm_portal_container",function(){function t(t){n(this,t);this.ignored=true;this.direction="column";this.gap="xxx-large";this.display="grid";this.maxWidth="100%";this.flexWrap="wrap";this.backgroundColor="#ffffff00";a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return e(i,Object.assign({},o(this)),e("slot",null))};return t}());var u="\n sqm-text {\n display: block;\n }\n\n sqm-text h1 {\n font-size: var(--sl-font-size-xxx-large);\n font-weight: var(--sl-font-weight-semibold);\n color: var(--sl-color-neutral-800);\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: var(--sl-font-size-xx-large);\n font-weight: var(--sl-font-weight-semibold);\n color: var(--sl-color-neutral-800);\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: var(--sl-font-size-x-large);\n font-weight: var(--sl-font-weight-semibold);\n color: var(--sl-color-neutral-800);\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: var(--sl-font-size-large);\n font-weight: var(--sl-font-weight-bold);\n color: var(--sl-color-neutral-800);\n margin: 0;\n }\n\n sqm-text p {\n font-size: var(--sl-font-size-medium);\n font-weight: var(--sl-font-weight-normal);\n color: var(--sl-color-neutral-800);\n margin: 0;\n }\n\n sqm-text sub {\n font-size: var(--sl-font-size-small);\n font-weight: var(--sl-font-weight-normal);\n color: var(--sl-color-neutral-400);\n margin: 0;\n }\n";var f=t("sqm_text",function(){function t(t){n(this,t);this.ignored=true;a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.componentWillLoad=function(){};t.prototype.render=function(){return e("div",null,e("style",null,u),e("slot",null))};return t}());var g=t("sqm_titled_section",function(){function t(t){n(this,t);this.textAlign="left";this.labelMargin="small";this.padding="none";a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=e("slot",{name:"label"},this.label);var n=e("slot",{name:"content"});return e(l,Object.assign({},__assign(__assign({},o(this)),{label:t,content:n})))};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-f708da7b.js";import{k as s,n as i}from"./p-cd651f81.js";import{i as
|
|
1
|
+
import{r as t,h as e}from"./p-f708da7b.js";import{k as s,n as i}from"./p-cd651f81.js";import{i as a,j as o}from"./p-94a876b9.js";import{j as r}from"./p-e7e129ac.js";import{c as n}from"./p-c1086930.js";import{c as l}from"./p-cef45012.js";import"./p-91521e9d.js";import"./p-c9f1dde7.js";import{a as m}from"./p-98698131.js";import{B as c}from"./p-91959fbe.js";import{P as h}from"./p-793d2130.js";import"./p-121cdc60.js";import{u as d}from"./p-6d2f5a1d.js";class u extends Error{}function g(t){const[e,i]=s(null),[a,o]=m(),[n,l]=s({mode:"base"});return{showRegistrationForm:n,emailValidationError:e,handleGoogleInit:t=>{var e;if(null===(e=t.detail)||void 0===e?void 0:e.credential)try{const e=function(t,e){if("string"!=typeof t)throw new u("Invalid token specified: must be a string");e||(e={});const s=!0===e.header?0:1,i=t.split(".")[s];if("string"!=typeof i)throw new u(`Invalid token specified: missing part #${s+1}`);let a;try{a=function(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(t){return decodeURIComponent(atob(t).replace(/(.)/g,((t,e)=>{let s=e.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s})))}(e)}catch(t){return atob(e)}}(i)}catch(t){throw new u(`Invalid token specified: invalid base64 for part #${s+1} (${t.message})`)}try{return JSON.parse(a)}catch(t){throw new u(`Invalid token specified: invalid json for part #${s+1} (${t.message})`)}}(t.detail.credential);o({...a,_googleOAuthIdToken:t.detail.credential,initialData:{email:e.email,firstName:e.given_name,lastName:e.family_name}}),l({mode:"google"})}catch(t){console.error("Failed to decode Google Sign In credential JWT:",t)}},handleEmailSubmit:async e=>{const s=e.target.getFormControls();let n={},m=null;s.forEach((e=>{if(e.name&&"/email"===e.name&&(r.set(n,e.name,e.value),e.required&&!e.value&&(m=t.requiredFieldErrorMessage),"function"==typeof e.validationError)){const t=(0,e.validationError)({control:e,key:"email",value:e.value});t&&(m=t)}})),m?i(m):(o({...a,initialData:{...null==a?void 0:a.initialData,...n}}),l({mode:"manual"}))}}}u.prototype.name="InvalidTokenError";const p=class{constructor(e){t(this,e),this.ignored=!0,this.nextPage="/",this.redirectPath="/verifyEmail",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Register",this.loginLabel="Sign in",this.confirmPasswordLabel="Confirm Password",this.confirmPassword=!1,this.disablePasswordValidation=!1,this.hideInputs=!1,this.pageLabel="Register",this.loginPath="/login",this.loginCTA="Already have an account?",this.requiredFieldErrorMessage="Cannot be empty",this.networkErrorMessage="Network request failed.",this.passwordMismatchErrorMessage="Passwords do not match.",this.invalidEmailErrorMessage="Must be a valid email address",this.formDisabledErrorMessage="The registration form is currently disabled.",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",this.googleButtonText="signup_with",i(this)}disconnectedCallback(){}render(){const{states:t,callbacks:i,refs:r}=a()?n({states:{error:"",loading:!1,confirmPassword:this.confirmPassword,hideInputs:this.hideInputs||!1,customPasswordField:!1,loginPath:"/login"},callbacks:{handleGoogleInit:()=>{},setShowRegistrationForm:()=>{},submit:async()=>{console.log("submit")},inputFunction:()=>{}},content:{pageLabel:"Register",formData:null,passwordField:null},refs:{formRef:{}}},this.demoData||{},{arrayMerge:(t,e)=>e}):d(this);const m=l({LoginButton:{"&::part(label)":{padding:"0"}}}),u=m.toString(),{handleGoogleInit:p,handleEmailSubmit:f,showRegistrationForm:b,emailValidationError:w}=a()?function(t){const[e,i]=s({mode:"base"});return n({emailValidationError:!0,handleEmailSubmit:()=>i({mode:"manual"}),showRegistrationForm:e,handleGoogleInit:()=>i({mode:"google"})},t.demoGoogleData||{},{arrayMerge:(t,e)=>e})}(this):g(this),E={formData:e("slot",{name:"formData"}),googleButton:e("sqm-google-sign-in",{text:this.googleButtonText,onInitComplete:p}),secondaryButton:e("slot",{name:"secondaryButton"},e("style",null,u),e("span",null,this.loginCTA," ",e("sl-button",{size:"large",type:"text",disabled:t.loading,onClick:()=>o.push(t.loginPath),className:m.classes.LoginButton},this.loginLabel)," ")),terms:e("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel,networkErrorMessage:this.networkErrorMessage,passwordMismatchErrorMessage:this.passwordMismatchErrorMessage,invalidEmailErrorMessage:this.invalidEmailErrorMessage,formDisabledErrorMessage:this.formDisabledErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,meetsRequirementsText:this.meetsRequirementsText,doesNotMeetRequirementsText:this.doesNotMeetRequirementsText,minErrorText:this.minErrorText,uppercaseErrorText:this.uppercaseErrorText,lowercaseErrorText:this.lowercaseErrorText,hasErrorText:this.hasErrorText};return"base"===b.mode?e(c,{states:{error:w},callbacks:{handleEmailSubmit:f},content:E}):e(h,{states:{...t,emailDisabled:!0,hidePasswords:"google"===b.mode},callbacks:i,content:{...E},refs:r})}};export{p as sqm_portal_google_registration_form}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-f708da7b.js";import{n as o,k as r,f as n}from"./p-cd651f81.js";import{k as c,H as a}from"./p-
|
|
1
|
+
import{r as s,h as t}from"./p-f708da7b.js";import{n as o,k as r,f as n}from"./p-cd651f81.js";import{k as c,H as a}from"./p-94a876b9.js";import{N as i}from"./p-24db5c70.js";const e=class{constructor(t){s(this,t),this.ignored=!0,o(this)}disconnectedCallback(){}render(){const s=function(){const s=c(),t=a(),[o,i]=r(!1);return n((()=>{i(!1)}),[s.pathname,t]),{checked:o,onClick:function(s){i(s.target.checked)}}}();return t(i,Object.assign({},s),t("slot",null))}};export{e as sqm_navigation_sidebar}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,h as t}from"./p-f708da7b.js";import{n as r}from"./p-cd651f81.js";import{d as
|
|
1
|
+
import{r as i,h as t}from"./p-f708da7b.js";import{n as r}from"./p-cd651f81.js";import{d as o,J as e,w as s,b as a,i as n}from"./p-94a876b9.js";import{c}from"./p-c1086930.js";import{g as l}from"./p-9ec99ced.js";import"./p-cef45012.js";import{L as d}from"./p-266a8b4d.js";const m=o.gql`
|
|
2
2
|
query getUserDetails {
|
|
3
3
|
viewer {
|
|
4
4
|
... on User {
|
|
@@ -8,4 +8,4 @@ import{r as i,h as t}from"./p-f708da7b.js";import{n as r}from"./p-cd651f81.js";i
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,h=class{constructor(t){i(this,t),this.userIdentificationText="{email}",this.switchUserText="not you?",this.emailErrorText="Error fetching email",r(this)}disconnectedCallback(){}render(){const i=n()?function(i){return c({onSwitchClick:()=>a(void 0),filledInEmailText:"john@example.com",switchUserText:i.switchUserText,emailErrorText:i.emailErrorText,loading:!1},i.demoData||{},{arrayMerge:(i,t)=>t})}(this):function(i){var t,r;const e
|
|
11
|
+
`,h=class{constructor(t){i(this,t),this.userIdentificationText="{email}",this.switchUserText="not you?",this.emailErrorText="Error fetching email",r(this)}disconnectedCallback(){}render(){const i=n()?function(i){return c({onSwitchClick:()=>a(void 0),filledInEmailText:"john@example.com",switchUserText:i.switchUserText,emailErrorText:i.emailErrorText,loading:!1},i.demoData||{},{arrayMerge:(i,t)=>t})}(this):function(i){var t,r;const o=e(),{loading:n,data:c}=s(m,{},!o);return{loading:n,onSwitchClick:()=>{a(void 0)},filledInEmailText:null===(t=i.userIdentificationText)||void 0===t?void 0:t.replace("{email}",null===(r=null==c?void 0:c.viewer)||void 0===r?void 0:r.email),...i}}(l(this));return t(d,Object.assign({},i,{userIdentificationText:this.userIdentificationText,switchUserText:this.switchUserText,emailErrorText:this.emailErrorText}))}};export{h as sqm_logout_current_user}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,n,o){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,s){function a(t){try{u(o.next(t))}catch(t){s(t)}}function i(t){try{u(o["throw"](t))}catch(t){s(t)}}function u(t){t.done?n(t.value):r(t.value).then(a,i)}u((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,r,s,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(t){return function(e){return u([t,e])}}function u(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1];s=a;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(a);break}if(s[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];r=0}finally{o=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-6cd4f2b1.system.js","./p-b2295bc5.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-1a673057.system.js","./p-cd1d497f.system.js","./p-e07bc6c4.system.js","./p-0ebab63e.system.js","./p-527216de.system.js"],(function(t){"use strict";var e,n,o,r,s,a,i,u,l;return{setters:[function(t){e=t.r;n=t.h},function(t){o=t.n},function(t){r=t.i;s=t.j},function(){},function(t){a=t.c},function(){},function(t){i=t.c},function(){},function(){},function(t){u=t.P},function(t){l=t.u}],execute:function(){var c=t("sqm_portal_google_login",function(){function t(t){e(this,t);this.ignored=true;this.nextPage="/";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Sign In";this.forgotPasswordPath="/forgotPassword";this.forgotPasswordLabel="Forgot Password?";this.registerLabel="Register";this.registerPath="/register";this.pageLabel="Sign in to your account";this.networkErrorMessage="An error occurred while logging you in. Please refresh the page and try again.";this.googleUserNotRegisteredError="Your Google account has not registered on our platform. Please complete the registration process with your Google account.";this.registerCTA="Don't have an account?";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r()?g(this):l(this),e=t.states,o=t.callbacks;var a={RegisterButton:{"&::part(label)":{padding:"0"}}};var c=i(a);var f=c.toString();var h={forgotPasswordButton:n("slot",{name:"forgotPassword"},n("a",{onClick:function(){return s.push(e.forgotPasswordPath)}},this.forgotPasswordLabel)),googleButton:n("sqm-google-sign-in",{onInitComplete:o.googleSubmit}),secondaryButton:n("slot",{name:"secondaryButton"},n("style",null,f),n("span",null,this.registerCTA," ",n("sl-button",{size:"large",type:"text",disabled:e.loading,onClick:function(){return s.push(e.registerPath)},className:c.classes.RegisterButton},this.registerLabel))),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return n(u,{states:e,callbacks:o,content:h})};return t}());function g(t){var e=this;return a({states:{error:"",loading:false,forgotPasswordPath:"/forgotPassword",registerPath:"/register",showLoginForm:"manual"},callbacks:{googleSubmit:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(t){console.log("google submit");return[2]}))}))},submit:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(t){console.log("submit");return[2]}))}))}},content:{googleButton:null}},t.demoData||{},{arrayMerge:function(t,e){return e}})}}}}));
|