@saasquatch/mint-components 1.11.1-1 → 1.12.0-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-2c6026c3.js → ShadowViewAddon-88821c64.js} +229 -154
- package/dist/cjs/{global-02e50f09.js → global-c3637175.js} +2 -2
- package/dist/cjs/{index.module-df530553.js → index.module-b8d9d0ba.js} +55 -18
- 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-1976e05e.js → re-render-5bde3d2e.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +211 -105
- package/dist/cjs/{sqm-big-stat_38.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +278 -178
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
- package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
- package/dist/cjs/sqm-email-verification.cjs.entry.js +137 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-invoice-table-view-e3b03a00.js → sqm-invoice-table-view-ce9a34ac.js} +20 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-item-view-4e90b6f5.js → sqm-navigation-sidebar-item-view-a2135064.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-bff9783d.js → sqm-portal-email-verification-view-050dbe0f.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-d97086bc.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -9
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -8
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +13 -13
- package/dist/cjs/sqm-scroll.cjs.entry.js +109 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +225 -272
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +33 -0
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +127 -0
- package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-410d2435.js} +2 -2
- package/dist/cjs/useEmailVerification-30a1c7f6.js +75 -0
- package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-ccf81eae.js} +3 -3
- package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-824ac152.js} +9 -9
- package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-f9ce55be.js} +2 -2
- package/dist/cjs/{utilities-cec9dd36.js → utilities-f7de6c04.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -10
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +9 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +22 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +105 -0
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +44 -0
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +0 -20
- package/dist/collection/components/sqm-share-button/useShareButton.js +16 -15
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -5
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -6
- package/dist/collection/components/sqm-widget-verification/keys.js +4 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +29 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +118 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +330 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +144 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +22 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +78 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +172 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +70 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +27 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +132 -0
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +3 -0
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +18 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +4 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +94 -38
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +16 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +12 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +72 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +217 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +50 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +16 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +80 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
- package/dist/collection/components/views/copy-text-view.js +2 -16
- package/dist/esm/{ShadowViewAddon-5bb2b69a.js → ShadowViewAddon-65c8679e.js} +227 -153
- package/dist/esm/{global-b89b6edc.js → global-6306a9b8.js} +2 -2
- package/dist/esm/{index.module-f122af7b.js → index.module-6c840c4e.js} +40 -3
- package/dist/esm/keys-a1496e39.js +6 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-c64289f3.js → re-render-1bcfd0de.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +211 -105
- package/dist/esm/{sqm-big-stat_38.entry.js → sqm-big-stat_39.entry.js} +275 -176
- package/dist/esm/sqm-close-button.entry.js +3 -3
- package/dist/esm/sqm-code-verification.entry.js +348 -0
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-email-verification.entry.js +133 -0
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
- package/dist/esm/{sqm-invoice-table-view-09cc28d6.js → sqm-invoice-table-view-08c03ba7.js} +20 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/{sqm-navigation-sidebar-item-view-14114804.js → sqm-navigation-sidebar-item-view-f8e78810.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-c6ac5430.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-15ddbec8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +9 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +9 -9
- package/dist/esm/sqm-portal-verify-email.entry.js +9 -9
- package/dist/esm/sqm-referral-table_11.entry.js +8 -8
- package/dist/esm/sqm-referred-registration.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +13 -13
- package/dist/esm/sqm-scroll.entry.js +105 -0
- package/dist/esm/sqm-stencilbook.entry.js +212 -259
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/sqm-widget-verification-internal.entry.js +29 -0
- package/dist/esm/sqm-widget-verification.entry.js +123 -0
- package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm/{useChildElements-37daf533.js → useChildElements-fc84e640.js} +2 -2
- package/dist/esm/useEmailVerification-7135732c.js +72 -0
- package/dist/esm/{useInstantAccessRegistration-9d4cb797.js → useInstantAccessRegistration-8b0a4556.js} +3 -3
- package/dist/esm/{useReferralTable-42f99ea2.js → useReferralTable-f6ffa103.js} +9 -9
- package/dist/esm/{useRegistrationFormState-53c71782.js → useRegistrationFormState-849e27f7.js} +2 -2
- package/dist/esm/{utilities-18d10876.js → utilities-443732be.js} +1 -1
- package/dist/esm-es5/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-65c8679e.js +1 -0
- package/dist/esm-es5/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm-es5/{global-b89b6edc.js → global-6306a9b8.js} +2 -2
- package/dist/esm-es5/index.module-6c840c4e.js +1 -0
- package/dist/esm-es5/keys-a1496e39.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-c64289f3.js → re-render-1bcfd0de.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -0
- package/dist/esm-es5/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- 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-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-08c03ba7.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-14114804.js → sqm-navigation-sidebar-item-view-f8e78810.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-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-ced567c9.js → sqm-portal-email-verification-view-c6ac5430.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-15ddbec8.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.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.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-internal.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm-es5/{useChildElements-37daf533.js → useChildElements-fc84e640.js} +1 -1
- package/dist/esm-es5/useEmailVerification-7135732c.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +1 -0
- package/dist/esm-es5/{useReferralTable-42f99ea2.js → useReferralTable-f6ffa103.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +1 -0
- package/dist/esm-es5/{utilities-18d10876.js → utilities-443732be.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-0121e044.js +1 -0
- package/dist/mint-components/{p-12c56ba6.entry.js → p-012daf3c.entry.js} +1 -1
- package/dist/mint-components/{p-1b1d10e5.entry.js → p-03dbe2ce.entry.js} +1 -1
- package/dist/mint-components/{p-8077e9c6.js → p-04348a9b.js} +1 -1
- package/dist/mint-components/{p-8c97bfb1.system.entry.js → p-04ced592.system.entry.js} +1 -1
- package/dist/mint-components/{p-7962ab58.system.entry.js → p-0527d90b.system.entry.js} +1 -1
- package/dist/mint-components/{p-01434e4a.entry.js → p-0893073b.entry.js} +1 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +1 -0
- package/dist/mint-components/p-117b4705.system.js +1 -0
- package/dist/mint-components/p-11d1b212.js +1 -0
- package/dist/mint-components/{p-dc41ff27.entry.js → p-1b861be5.entry.js} +1 -1
- package/dist/mint-components/{p-32cf8417.js → p-1b9e6fc6.js} +1 -1
- package/dist/mint-components/p-1bd0cda8.system.entry.js +1 -0
- package/dist/mint-components/{p-991c9787.js → p-1d27da33.js} +2 -2
- package/dist/mint-components/p-1ee62d9f.system.entry.js +1 -0
- package/dist/mint-components/{p-de2a8fae.system.entry.js → p-1f7d7524.system.entry.js} +1 -1
- package/dist/mint-components/p-1f9a9b70.system.entry.js +1 -0
- package/dist/mint-components/{p-5c845bc2.system.entry.js → p-22425c71.system.entry.js} +1 -1
- package/dist/mint-components/p-23fdd44e.entry.js +1 -0
- package/dist/mint-components/{p-3373d84e.js → p-2816bf6a.js} +1 -1
- package/dist/mint-components/p-2868f475.entry.js +1 -0
- package/dist/mint-components/p-2a414b2e.system.js +2 -2
- package/dist/mint-components/{p-a474b0ec.system.entry.js → p-36e9296e.system.entry.js} +1 -1
- package/dist/mint-components/p-36f7caec.system.entry.js +1 -0
- package/dist/mint-components/{p-b334bde8.entry.js → p-3925bcd6.entry.js} +2 -2
- package/dist/mint-components/p-39397731.entry.js +1 -0
- package/dist/mint-components/p-39af4acd.entry.js +240 -0
- package/dist/mint-components/{p-e2bb72eb.system.entry.js → p-3e7ec0f3.system.entry.js} +1 -1
- package/dist/mint-components/{p-59c141a2.system.js → p-3ed71bef.system.js} +1 -1
- package/dist/mint-components/{p-bf834367.system.js → p-43621f12.system.js} +1 -1
- package/dist/mint-components/{p-110dddfe.entry.js → p-4671e644.entry.js} +1 -1
- package/dist/mint-components/{p-0f028514.system.js → p-4babe350.system.js} +1 -1
- package/dist/mint-components/p-4c9b6fbe.system.js +1 -0
- package/dist/mint-components/p-4e373c3d.system.js +1 -0
- package/dist/mint-components/{p-03a647c2.system.js → p-4e48267b.system.js} +1 -1
- package/dist/mint-components/{p-9deac406.system.js → p-4eae91a9.system.js} +1 -1
- package/dist/mint-components/{p-0806343b.js → p-509e29e6.js} +1 -1
- package/dist/mint-components/{p-53ff8bd0.system.entry.js → p-51d53165.system.entry.js} +1 -1
- package/dist/mint-components/{p-246a2827.entry.js → p-5291891c.entry.js} +2 -2
- package/dist/mint-components/{p-c1ba2ad0.system.entry.js → p-59818690.system.entry.js} +1 -1
- package/dist/mint-components/{p-55588b46.system.js → p-5becb2ff.system.js} +1 -1
- package/dist/mint-components/{p-c39f9dc1.system.entry.js → p-5fba1a04.system.entry.js} +1 -1
- package/dist/mint-components/{p-22de9f73.system.entry.js → p-64491210.system.entry.js} +1 -1
- package/dist/mint-components/p-65e2c043.system.js +1 -0
- package/dist/mint-components/p-663303b7.entry.js +8 -0
- package/dist/mint-components/p-66a04cca.system.entry.js +1 -0
- package/dist/mint-components/{p-1df19ea2.js → p-68747d88.js} +1 -1
- package/dist/mint-components/{p-96cb9c17.entry.js → p-6c928c7d.entry.js} +1 -1
- package/dist/mint-components/p-6cae44d7.js +1 -0
- package/dist/mint-components/{p-b0ce005d.entry.js → p-721a89c6.entry.js} +2 -2
- package/dist/mint-components/{p-6e62f207.entry.js → p-76392386.entry.js} +1 -1
- package/dist/mint-components/{p-bb6f6681.system.js → p-7d5e0645.system.js} +1 -1
- package/dist/mint-components/{p-daba8cd2.system.entry.js → p-7dd1ff31.system.entry.js} +1 -1
- package/dist/mint-components/p-7f5c7bf7.system.entry.js +1 -0
- package/dist/mint-components/{p-ec8a9e91.system.entry.js → p-83c9f37b.system.entry.js} +1 -1
- package/dist/mint-components/{p-d3d281ff.entry.js → p-84b25a46.entry.js} +1 -1
- package/dist/mint-components/{p-82e09b8d.system.entry.js → p-88bf51b7.system.entry.js} +1 -1
- package/dist/mint-components/p-8a337864.js +7 -0
- package/dist/mint-components/{p-73decce7.system.js → p-8d554a89.system.js} +1 -1
- package/dist/mint-components/p-93576222.system.js +1 -0
- package/dist/mint-components/p-94454880.entry.js +1 -0
- package/dist/mint-components/p-947fe79b.entry.js +1 -0
- package/dist/mint-components/p-99c15c5e.entry.js +1 -0
- package/dist/mint-components/{p-9288cca6.system.entry.js → p-9cdbd1ac.system.entry.js} +1 -1
- package/dist/mint-components/p-9d34f4f0.entry.js +33 -0
- package/dist/mint-components/p-9e0230c3.entry.js +1 -0
- package/dist/mint-components/{p-476182e7.system.entry.js → p-9ec008cb.system.entry.js} +1 -1
- package/dist/mint-components/p-a02afa72.system.js +1 -0
- package/dist/mint-components/p-a4282d02.system.entry.js +1 -0
- package/dist/mint-components/{p-798ed3a2.entry.js → p-a45b03d2.entry.js} +1 -1
- package/dist/mint-components/{p-523ed056.system.js → p-a51533cb.system.js} +1 -1
- package/dist/mint-components/p-a5a9aa07.entry.js +189 -0
- package/dist/mint-components/p-a85f57bb.entry.js +1 -0
- package/dist/mint-components/{p-21d4f6ce.system.js → p-ac51940e.system.js} +1 -1
- package/dist/mint-components/p-b1e8a802.entry.js +1 -0
- package/dist/mint-components/{p-fec0ac31.js → p-b651706a.js} +24 -24
- package/dist/mint-components/{p-14dac608.system.entry.js → p-bc826117.system.entry.js} +1 -1
- package/dist/mint-components/p-bdd6bb13.js +1 -0
- package/dist/mint-components/{p-67846dce.system.entry.js → p-be1ae1ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-3cc5474d.entry.js → p-bee1e573.entry.js} +1 -1
- package/dist/mint-components/{p-fb2c0ce4.system.entry.js → p-c1f4fb6d.system.entry.js} +1 -1
- package/dist/mint-components/p-c3b37bbf.js +1 -0
- package/dist/mint-components/{p-ff41c804.system.entry.js → p-c3babfa4.system.entry.js} +1 -1
- package/dist/mint-components/{p-18a19cb5.system.js → p-c5577dd7.system.js} +1 -1
- package/dist/mint-components/{p-02f6cda4.js → p-c5d2e4ba.js} +1 -1
- package/dist/mint-components/p-c763c0b2.js +1 -0
- package/dist/mint-components/{p-ed161025.js → p-c8610d0c.js} +1 -1
- package/dist/mint-components/p-c92a743e.entry.js +1 -0
- package/dist/mint-components/p-c9fb6102.entry.js +1 -0
- package/dist/mint-components/p-ca809fdd.system.js +1 -0
- package/dist/mint-components/{p-f52c3aec.system.entry.js → p-cb433855.system.entry.js} +1 -1
- package/dist/mint-components/{p-f44d88fa.system.js → p-cd44de66.system.js} +1 -1
- package/dist/mint-components/p-d35d8c06.entry.js +11 -0
- package/dist/mint-components/{p-cfbe2f86.entry.js → p-d468925f.entry.js} +1 -1
- package/dist/mint-components/{p-15dee492.js → p-d49e2f7a.js} +1 -1
- package/dist/mint-components/{p-9c3d78e9.js → p-d83b0cf3.js} +1 -1
- package/dist/mint-components/{p-6e7e8af6.system.js → p-def516b8.system.js} +1 -1
- package/dist/mint-components/{p-e41cb11f.js → p-e0e7635a.js} +1 -1
- package/dist/mint-components/{p-a1150633.system.entry.js → p-e12d3414.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce746af8.system.js → p-e8dde8f4.system.js} +1 -1
- package/dist/mint-components/p-e93e5740.entry.js +1 -0
- package/dist/mint-components/p-e9ca48fc.system.entry.js +1 -0
- package/dist/mint-components/p-ead27698.system.entry.js +1 -0
- package/dist/mint-components/{p-1c6e4a5f.entry.js → p-f36e33ff.entry.js} +2 -2
- package/dist/mint-components/{p-1ce4fa30.system.entry.js → p-f450654b.system.entry.js} +1 -1
- package/dist/mint-components/{p-1c710e16.entry.js → p-f4cbbe47.entry.js} +1 -1
- package/dist/mint-components/{p-d68ed4a6.system.entry.js → p-f531a5c9.system.entry.js} +1 -1
- package/dist/mint-components/{p-acc93caa.system.entry.js → p-f56348dc.system.entry.js} +1 -1
- package/dist/mint-components/p-f655a7df.js +1 -0
- package/dist/mint-components/{p-855ae1b5.js → p-fb93c962.js} +1 -1
- package/dist/mint-components/{p-46ca288c.system.js → p-fc422446.system.js} +1 -1
- package/dist/mint-components/{p-fae82751.entry.js → p-fd21ae8f.entry.js} +1 -1
- package/dist/mint-components/p-fd2c5407.js +2 -2
- package/dist/types/components/{sqm-pagination/Pagination.stories.d.ts → sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts} +1 -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 +19 -0
- package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +7 -0
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +0 -1
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +0 -1
- 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 +8 -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 +60 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +23 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +7 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +16 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +32 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +9 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +18 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +21 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +9 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +16 -0
- package/dist/types/components/views/copy-text-view.d.ts +0 -2
- package/dist/types/components.d.ts +296 -170
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/copy-text-view-a22ad7e7.js +0 -173
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +0 -316
- package/dist/collection/components/sqm-pagination/Pagination.stories.js +0 -12
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +0 -30
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +0 -85
- package/dist/collection/components/sqm-pagination/usePagination.js +0 -8
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -60
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +0 -315
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +0 -51
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -35
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +0 -59
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +0 -99
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +0 -75
- package/dist/esm/copy-text-view-bf55abeb.js +0 -168
- package/dist/esm/sqm-pagination_3.entry.js +0 -310
- package/dist/esm-es5/ShadowViewAddon-5bb2b69a.js +0 -1
- package/dist/esm-es5/copy-text-view-bf55abeb.js +0 -1
- package/dist/esm-es5/index.module-f122af7b.js +0 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-09cc28d6.js +0 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-9d4cb797.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-53c71782.js +0 -1
- package/dist/mint-components/p-00be5090.js +0 -1
- package/dist/mint-components/p-0161f5da.entry.js +0 -13
- package/dist/mint-components/p-1099290c.system.js +0 -1
- package/dist/mint-components/p-18a7f543.system.entry.js +0 -1
- package/dist/mint-components/p-26306ac4.system.entry.js +0 -1
- package/dist/mint-components/p-2e16db11.entry.js +0 -1
- package/dist/mint-components/p-41499327.entry.js +0 -1
- package/dist/mint-components/p-43a990b6.system.js +0 -1
- package/dist/mint-components/p-4856b234.system.entry.js +0 -1
- package/dist/mint-components/p-48b7d703.entry.js +0 -174
- package/dist/mint-components/p-494e407e.entry.js +0 -1
- package/dist/mint-components/p-5b7e2d53.entry.js +0 -1
- package/dist/mint-components/p-5d37482d.entry.js +0 -1
- package/dist/mint-components/p-5fc8d87c.system.js +0 -1
- package/dist/mint-components/p-646d302a.system.js +0 -1
- package/dist/mint-components/p-6628bc0e.system.js +0 -1
- package/dist/mint-components/p-6b0e6a6c.js +0 -1
- package/dist/mint-components/p-73c6b26d.entry.js +0 -223
- package/dist/mint-components/p-89a760ea.js +0 -1
- package/dist/mint-components/p-942d1c22.entry.js +0 -33
- package/dist/mint-components/p-b4eb9c46.entry.js +0 -11
- package/dist/mint-components/p-b5176703.entry.js +0 -1
- package/dist/mint-components/p-b71c0e2d.system.entry.js +0 -1
- package/dist/mint-components/p-bd4e9c2b.js +0 -1
- package/dist/mint-components/p-c37137cd.js +0 -2
- package/dist/mint-components/p-c7ce2c1e.system.js +0 -1
- package/dist/mint-components/p-ca17d998.entry.js +0 -1
- package/dist/mint-components/p-d666b326.js +0 -1
- package/dist/mint-components/p-ea88142c.js +0 -1
- package/dist/mint-components/p-eb4e9efb.system.entry.js +0 -1
- package/dist/mint-components/p-ecefeaa9.system.entry.js +0 -1
- package/dist/mint-components/p-f1ec1180.entry.js +0 -1
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -7
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +0 -17
- package/dist/types/components/sqm-pagination/usePagination.d.ts +0 -15
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -18
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -70
- package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +0 -9
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -9
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -10
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -21
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +0 -59
- package/dist/cjs/{GenericTableView-a3f48e15.js → GenericTableView-80d7642e.js} +1 -1
- package/dist/cjs/{email-registration-view-4c5d9379.js → email-registration-view-248652bb.js} +1 -1
- package/dist/cjs/{sqm-close-button-view-217239b7.js → sqm-close-button-view-fd6e8f60.js} +1 -1
- package/dist/cjs/{sqm-portal-forgot-password-view-3cd69fe7.js → sqm-portal-forgot-password-view-969c49ed.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-34771d2c.js → sqm-portal-reset-password-view-96f329ed.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-c8f91506.js → sqm-portal-verify-email-view-7ffcc0d4.js} +1 -1
- package/dist/esm/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.js} +1 -1
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h, f as useEffect, k as useState, i as d, u as useMemo, m as useRef, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo,
|
|
3
|
+
import { i as intl } from './global-6306a9b8.js';
|
|
4
|
+
import { i as isDemo, T, d as dist, K, z, c as xe, E as En, n as ne, Q, w as wn, x as xn, q as ze, W as We, U as Ue, b as useCallback, r as Ye, j as jn } from './index.module-6c840c4e.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
|
-
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
7
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
-
import { C as CopyTextView } from './copy-text-view-bf55abeb.js';
|
|
9
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
10
7
|
import './mixins-f60a614c.js';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
+
import { a as useRequestRerender } from './re-render-1bcfd0de.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-fc84e640.js';
|
|
13
11
|
import './luxon-7600be8d.js';
|
|
12
|
+
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
14
13
|
import './sqm-text-span-view-8d140661.js';
|
|
15
14
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
16
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-
|
|
17
|
-
import { i as isEmpty } from './utilities-
|
|
15
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-849e27f7.js';
|
|
16
|
+
import { i as isEmpty } from './utilities-443732be.js';
|
|
18
17
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
19
|
-
import { b as useDemoBigStat,
|
|
18
|
+
import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, k as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-65c8679e.js';
|
|
20
19
|
import './sqm-portal-container-view-6c582684.js';
|
|
21
20
|
|
|
22
21
|
const BigStat = class {
|
|
@@ -36,7 +35,7 @@ const BigStat = class {
|
|
|
36
35
|
render() {
|
|
37
36
|
var _a;
|
|
38
37
|
const { props, label } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
39
|
-
const host =
|
|
38
|
+
const host = T();
|
|
40
39
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
41
40
|
const labelSlot = h$1("slot", { name: "label" }, hasLabel ? h$1("slot", null) : label);
|
|
42
41
|
return h$1(BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -157,7 +156,7 @@ const styleString = sheet.toString();
|
|
|
157
156
|
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
158
157
|
if (!missingProps)
|
|
159
158
|
return false;
|
|
160
|
-
const host =
|
|
159
|
+
const host = T();
|
|
161
160
|
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
162
161
|
return (h$1("sl-alert", { type: "danger", open: true },
|
|
163
162
|
h$1("style", { type: "text/css" }, styleString),
|
|
@@ -299,11 +298,11 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
299
298
|
`;
|
|
300
299
|
function useCouponCode(props) {
|
|
301
300
|
var _a, _b, _c;
|
|
302
|
-
const user =
|
|
303
|
-
const programId =
|
|
304
|
-
const engagementMedium =
|
|
305
|
-
const [sendLoadEvent] =
|
|
306
|
-
const { data, loading, refetch, errors } =
|
|
301
|
+
const user = K();
|
|
302
|
+
const programId = z();
|
|
303
|
+
const engagementMedium = ne();
|
|
304
|
+
const [sendLoadEvent] = xe(WIDGET_ENGAGEMENT_EVENT);
|
|
305
|
+
const { data, loading, refetch, errors } = En(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
307
306
|
const getStatus = (reward) => {
|
|
308
307
|
if (!reward || !reward.statuses)
|
|
309
308
|
return "ERROR";
|
|
@@ -693,13 +692,13 @@ const defaultFormState = {
|
|
|
693
692
|
error: "",
|
|
694
693
|
};
|
|
695
694
|
function useEditProfile(props) {
|
|
696
|
-
const userIdent =
|
|
695
|
+
const userIdent = K();
|
|
697
696
|
const [showEdit, setShowEdit] = useState(false);
|
|
698
697
|
const [error, setError] = useState("");
|
|
699
698
|
const [userData, setUserData] = useState(undefined);
|
|
700
699
|
const [formState, setFormState] = useState(defaultFormState);
|
|
701
|
-
const userDataResponse =
|
|
702
|
-
const [upsertUser, upsertUserResponse] =
|
|
700
|
+
const userDataResponse = En(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
701
|
+
const [upsertUser, upsertUserResponse] = xe(UPSERT_USER);
|
|
703
702
|
useEffect(() => {
|
|
704
703
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
705
704
|
return;
|
|
@@ -1338,11 +1337,11 @@ const GET_RANK_WITHOUT_NAMES = dist.gql `
|
|
|
1338
1337
|
`;
|
|
1339
1338
|
function useLeaderboard(props) {
|
|
1340
1339
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1341
|
-
const programIdContext =
|
|
1340
|
+
const programIdContext = z();
|
|
1342
1341
|
// Default to context, overriden by props
|
|
1343
1342
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1344
|
-
const user =
|
|
1345
|
-
const locale =
|
|
1343
|
+
const user = K();
|
|
1344
|
+
const locale = Q();
|
|
1346
1345
|
const variables = programId
|
|
1347
1346
|
? {
|
|
1348
1347
|
type: props.leaderboardType,
|
|
@@ -1361,8 +1360,8 @@ function useLeaderboard(props) {
|
|
|
1361
1360
|
if (props.maxRows > 0) {
|
|
1362
1361
|
variables["limit"] = props.maxRows;
|
|
1363
1362
|
}
|
|
1364
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } =
|
|
1365
|
-
const { data: rankData } =
|
|
1363
|
+
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = En(props.hideNames ? GET_LEADERBOARD_WITHOUT_NAMES : GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
|
|
1364
|
+
const { data: rankData } = En(props.hideNames ? GET_RANK_WITHOUT_NAMES : GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1366
1365
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1367
1366
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1368
1367
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1660,12 +1659,12 @@ function NavigationMenuView(props) {
|
|
|
1660
1659
|
}
|
|
1661
1660
|
|
|
1662
1661
|
function handleMenu(e) {
|
|
1663
|
-
|
|
1662
|
+
xn.push(e.detail.item.value);
|
|
1664
1663
|
}
|
|
1665
1664
|
function useNavigationMenu(props) {
|
|
1666
1665
|
const ref = useRef();
|
|
1667
|
-
const [, rerender] =
|
|
1668
|
-
const user =
|
|
1666
|
+
const [, rerender] = wn();
|
|
1667
|
+
const user = K();
|
|
1669
1668
|
useEffect(() => {
|
|
1670
1669
|
var _a;
|
|
1671
1670
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1717,13 +1716,213 @@ function useNavigationMenuDemo(props) {
|
|
|
1717
1716
|
}
|
|
1718
1717
|
NavigationMenu.style = sqmNavigationMenuCss;
|
|
1719
1718
|
|
|
1719
|
+
const style$2 = {
|
|
1720
|
+
Wrapper: {
|
|
1721
|
+
maxWidth: "200px",
|
|
1722
|
+
},
|
|
1723
|
+
PayoutButtonDescription: {
|
|
1724
|
+
color: "var(--sl-color-neutral-500)",
|
|
1725
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1726
|
+
},
|
|
1727
|
+
};
|
|
1728
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
1729
|
+
const styleString$2 = sheet$2.toString();
|
|
1730
|
+
function PayoutButtonScrollView(props) {
|
|
1731
|
+
const { text, states } = props;
|
|
1732
|
+
if (!states.payoutSettingsComplete)
|
|
1733
|
+
return h$1("div", null);
|
|
1734
|
+
return (h$1("div", { part: "sqm-base", class: sheet$2.classes.Wrapper },
|
|
1735
|
+
h$1("style", { type: "text/css" }, styleString$2),
|
|
1736
|
+
h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.payoutButtonText, "scroll-animation": "smooth" }),
|
|
1737
|
+
h$1("p", { class: sheet$2.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
const PayoutButtonScroll = class {
|
|
1741
|
+
constructor(hostRef) {
|
|
1742
|
+
registerInstance(this, hostRef);
|
|
1743
|
+
this.payoutButtonText = "Payouts & Tax Settings";
|
|
1744
|
+
this.payoutButtonDescription = "Check your payout settings to see when you’ll get paid out next";
|
|
1745
|
+
this.ignored = true;
|
|
1746
|
+
h(this);
|
|
1747
|
+
}
|
|
1748
|
+
disconnectedCallback() { }
|
|
1749
|
+
getTextProps() {
|
|
1750
|
+
return getProps(this);
|
|
1751
|
+
}
|
|
1752
|
+
render() {
|
|
1753
|
+
const props = useDemoPayoutButtonScroll(this);
|
|
1754
|
+
return h$1(PayoutButtonScrollView, Object.assign({}, props));
|
|
1755
|
+
}
|
|
1756
|
+
};
|
|
1757
|
+
function useDemoPayoutButtonScroll(props) {
|
|
1758
|
+
return cjs({
|
|
1759
|
+
states: {
|
|
1760
|
+
payoutSettingsComplete: false,
|
|
1761
|
+
},
|
|
1762
|
+
text: props.getTextProps(),
|
|
1763
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
const style$3 = {
|
|
1767
|
+
SkeletonOne: {
|
|
1768
|
+
width: "50%",
|
|
1769
|
+
height: "16px",
|
|
1770
|
+
},
|
|
1771
|
+
AlertDescriptionText: {
|
|
1772
|
+
margin: "0",
|
|
1773
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
1774
|
+
},
|
|
1775
|
+
};
|
|
1776
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
1777
|
+
const styleString$3 = sheet$3.toString();
|
|
1778
|
+
function PayoutStatusAlertView(props) {
|
|
1779
|
+
var _a, _b, _c, _d;
|
|
1780
|
+
const { text, states } = props;
|
|
1781
|
+
if (states.loading) {
|
|
1782
|
+
return h$1("sl-skeleton", { class: sheet$3.classes.SkeletonOne });
|
|
1783
|
+
}
|
|
1784
|
+
if (states.status === "DONE") {
|
|
1785
|
+
return h$1("div", null);
|
|
1786
|
+
}
|
|
1787
|
+
function getAlert(status) {
|
|
1788
|
+
switch (status) {
|
|
1789
|
+
case "INFORMATION_REQUIRED":
|
|
1790
|
+
return {
|
|
1791
|
+
header: text.informationRequiredHeader,
|
|
1792
|
+
description: text.informationRequiredDescription,
|
|
1793
|
+
buttonText: text.verificationRequiredButtonText,
|
|
1794
|
+
alertType: "info",
|
|
1795
|
+
icon: "exclamation-octagon",
|
|
1796
|
+
};
|
|
1797
|
+
case "VERIFICATION_NEEDED":
|
|
1798
|
+
return {
|
|
1799
|
+
header: text.verificationRequiredHeader,
|
|
1800
|
+
description: text.verificationRequiredDescription,
|
|
1801
|
+
buttonText: text.verificationRequiredButtonText,
|
|
1802
|
+
alertType: "warning",
|
|
1803
|
+
icon: "exclamation-octagon",
|
|
1804
|
+
};
|
|
1805
|
+
case "HOLD":
|
|
1806
|
+
return {
|
|
1807
|
+
header: text.holdHeader,
|
|
1808
|
+
description: text.holdDescription,
|
|
1809
|
+
buttonText: null,
|
|
1810
|
+
alertType: "warning",
|
|
1811
|
+
icon: "exclamation-octagon",
|
|
1812
|
+
};
|
|
1813
|
+
default:
|
|
1814
|
+
return;
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
//AL: TODO hookup ID
|
|
1818
|
+
function getButton(status) {
|
|
1819
|
+
switch (status) {
|
|
1820
|
+
case "INFORMATION_REQUIRED":
|
|
1821
|
+
return (h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": "Payout and tax settings", "scroll-animation": "smooth" }));
|
|
1822
|
+
case "VERIFICATION_NEEDED":
|
|
1823
|
+
return (h$1("sl-button", { type: "default", loading: states.loading }, text.verificationRequiredButtonText));
|
|
1824
|
+
default:
|
|
1825
|
+
return;
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
return (h$1("div", { part: "sqm-base" },
|
|
1829
|
+
h$1("style", { type: "text/css" }, styleString$3),
|
|
1830
|
+
h$1("sqm-form-message", { style: { display: "flex", gap: "2px" }, exportparts: "base: alert-base, icon:alert-icon", type: (_a = getAlert(states.status)) === null || _a === void 0 ? void 0 : _a.alertType },
|
|
1831
|
+
h$1("sl-icon", { slot: "icon", name: (_b = getAlert(states.status)) === null || _b === void 0 ? void 0 : _b.icon }),
|
|
1832
|
+
h$1("strong", null, (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.header),
|
|
1833
|
+
h$1("p", { class: sheet$3.classes.AlertDescriptionText }, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.description),
|
|
1834
|
+
getButton(states.status))));
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
const GET_USER_STATUS = dist.gql `
|
|
1838
|
+
query getUserStatus {
|
|
1839
|
+
user: viewer {
|
|
1840
|
+
... on User {
|
|
1841
|
+
id
|
|
1842
|
+
impactConnection {
|
|
1843
|
+
connected
|
|
1844
|
+
publisher {
|
|
1845
|
+
id
|
|
1846
|
+
payoutsAccount {
|
|
1847
|
+
hold
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
`;
|
|
1855
|
+
function usePayoutStatus(props) {
|
|
1856
|
+
const { loading, data, errors, refetch } = En(GET_USER_STATUS, {});
|
|
1857
|
+
const [status, setStatus] = useState(undefined);
|
|
1858
|
+
useEffect(() => {
|
|
1859
|
+
if (!data)
|
|
1860
|
+
return;
|
|
1861
|
+
function getStatus(data) {
|
|
1862
|
+
var _a, _b;
|
|
1863
|
+
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
1864
|
+
if (!account)
|
|
1865
|
+
return "INFORMATION_REQUIRED";
|
|
1866
|
+
if (account.hold)
|
|
1867
|
+
return "HOLD";
|
|
1868
|
+
// @ts-ignore, TODO: add check for account verification
|
|
1869
|
+
if (!account.verified)
|
|
1870
|
+
return "VERIFICATION_NEEDED";
|
|
1871
|
+
return "DONE";
|
|
1872
|
+
}
|
|
1873
|
+
const s = getStatus(data);
|
|
1874
|
+
setStatus(s);
|
|
1875
|
+
}, [data]);
|
|
1876
|
+
useEffect(() => {
|
|
1877
|
+
const cb = () => refetch();
|
|
1878
|
+
window.addEventListener("sqm:tax-form-updated", cb);
|
|
1879
|
+
return () => window.removeEventListener("sqm:tax-form-updated", cb);
|
|
1880
|
+
}, []);
|
|
1881
|
+
console.log({ data });
|
|
1882
|
+
return { states: { loading, status }, text: props.getTextProps() };
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
const PayoutStatusAlert = class {
|
|
1886
|
+
constructor(hostRef) {
|
|
1887
|
+
registerInstance(this, hostRef);
|
|
1888
|
+
this.informationRequiredHeader = "Payout and tax information required";
|
|
1889
|
+
this.informationRequiredDescription = "Submit your banking details and tax documents to receive your rewards.";
|
|
1890
|
+
this.informationRequiredButtonText = "Payouts & Tax Settings";
|
|
1891
|
+
this.verificationRequiredHeader = "Verify your identity";
|
|
1892
|
+
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
1893
|
+
this.verificationRequiredButtonText = "Start Verification";
|
|
1894
|
+
this.holdHeader = "Your payouts and account are on hold";
|
|
1895
|
+
this.holdDescription = "Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to {support email}.";
|
|
1896
|
+
h(this);
|
|
1897
|
+
}
|
|
1898
|
+
disconnectedCallback() { }
|
|
1899
|
+
getTextProps() {
|
|
1900
|
+
return getProps(this);
|
|
1901
|
+
}
|
|
1902
|
+
render() {
|
|
1903
|
+
const props = isDemo()
|
|
1904
|
+
? useDemoPayoutStatusAlert(this)
|
|
1905
|
+
: usePayoutStatus(this);
|
|
1906
|
+
return h$1(PayoutStatusAlertView, Object.assign({}, props));
|
|
1907
|
+
}
|
|
1908
|
+
};
|
|
1909
|
+
function useDemoPayoutStatusAlert(props) {
|
|
1910
|
+
return cjs({
|
|
1911
|
+
states: {
|
|
1912
|
+
status: "INFORMATION_REQUIRED",
|
|
1913
|
+
loading: false,
|
|
1914
|
+
},
|
|
1915
|
+
text: props.getTextProps(),
|
|
1916
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1720
1919
|
function usePortalChangePassword(props) {
|
|
1721
1920
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1722
|
-
const [request, { loading, errors, data }] =
|
|
1921
|
+
const [request, { loading, errors, data }] = ze();
|
|
1723
1922
|
const [open, setOpen] = useState(false);
|
|
1724
1923
|
const [error, setError] = useState("");
|
|
1725
1924
|
const [success, setSuccess] = useState(false);
|
|
1726
|
-
const user =
|
|
1925
|
+
const user = K();
|
|
1727
1926
|
const submit = async (event) => {
|
|
1728
1927
|
var _a, _b;
|
|
1729
1928
|
setSuccess(false);
|
|
@@ -1965,7 +2164,7 @@ const PortalFooter = class {
|
|
|
1965
2164
|
};
|
|
1966
2165
|
|
|
1967
2166
|
function usePortalFrame(footerContent, headerContent) {
|
|
1968
|
-
const [, rerender] =
|
|
2167
|
+
const [, rerender] = wn();
|
|
1969
2168
|
return {
|
|
1970
2169
|
data: {
|
|
1971
2170
|
footer: footerContent,
|
|
@@ -2015,9 +2214,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
2015
2214
|
|
|
2016
2215
|
function usePortalLogin(props) {
|
|
2017
2216
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2018
|
-
const [request, { loading, errors, data }] =
|
|
2217
|
+
const [request, { loading, errors, data }] = We();
|
|
2019
2218
|
const [error, setError] = useState("");
|
|
2020
|
-
const urlParams = new URLSearchParams(
|
|
2219
|
+
const urlParams = new URLSearchParams(xn.location.search);
|
|
2021
2220
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2022
2221
|
const submit = async (event) => {
|
|
2023
2222
|
var _a, _b;
|
|
@@ -2036,7 +2235,7 @@ function usePortalLogin(props) {
|
|
|
2036
2235
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2037
2236
|
urlParams.delete("nextPage");
|
|
2038
2237
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2039
|
-
|
|
2238
|
+
xn.push(url.href);
|
|
2040
2239
|
}
|
|
2041
2240
|
};
|
|
2042
2241
|
const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
|
|
@@ -2115,8 +2314,8 @@ const PortalLogin = class {
|
|
|
2115
2314
|
? useLoginDemo(this)
|
|
2116
2315
|
: usePortalLogin(this);
|
|
2117
2316
|
const content = {
|
|
2118
|
-
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () =>
|
|
2119
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2317
|
+
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => xn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2318
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => xn.push(states.registerPath) }, this.registerLabel))),
|
|
2120
2319
|
emailLabel: this.emailLabel,
|
|
2121
2320
|
passwordLabel: this.passwordLabel,
|
|
2122
2321
|
submitLabel: this.submitLabel,
|
|
@@ -2145,7 +2344,7 @@ function usePortalRegister(props) {
|
|
|
2145
2344
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2146
2345
|
const formRef = useRef(null);
|
|
2147
2346
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
2148
|
-
const [request, { loading, errors, data }] =
|
|
2347
|
+
const [request, { loading, errors, data }] = Ue();
|
|
2149
2348
|
useEffect(() => {
|
|
2150
2349
|
if (!formRef.current)
|
|
2151
2350
|
return;
|
|
@@ -2218,7 +2417,7 @@ function usePortalRegister(props) {
|
|
|
2218
2417
|
validationErrors: {},
|
|
2219
2418
|
});
|
|
2220
2419
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2221
|
-
|
|
2420
|
+
xn.push(props.nextPage);
|
|
2222
2421
|
}
|
|
2223
2422
|
}
|
|
2224
2423
|
catch (error) {
|
|
@@ -2392,7 +2591,7 @@ const PortalRegister = class {
|
|
|
2392
2591
|
: usePortalRegister(this);
|
|
2393
2592
|
const content = {
|
|
2394
2593
|
formData: h$1("slot", { name: "formData" }),
|
|
2395
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2594
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => xn.push(states.loginPath) }, this.loginLabel))),
|
|
2396
2595
|
terms: h$1("slot", { name: "terms" }),
|
|
2397
2596
|
emailLabel: this.emailLabel,
|
|
2398
2597
|
passwordLabel: this.passwordLabel,
|
|
@@ -2563,11 +2762,11 @@ const ProgramExplainerStep = class {
|
|
|
2563
2762
|
const debug = browser("sq:useProgramMenu");
|
|
2564
2763
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2565
2764
|
function useProgramMenu(props) {
|
|
2566
|
-
const programId =
|
|
2567
|
-
const host =
|
|
2765
|
+
const programId = z();
|
|
2766
|
+
const host = T();
|
|
2568
2767
|
debug({ programId, props });
|
|
2569
2768
|
const ref = useRef();
|
|
2570
|
-
const [, rerender] =
|
|
2769
|
+
const [, rerender] = wn();
|
|
2571
2770
|
useEffect(() => {
|
|
2572
2771
|
var _a;
|
|
2573
2772
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2604,7 +2803,7 @@ const ProgramMenu = class {
|
|
|
2604
2803
|
}
|
|
2605
2804
|
};
|
|
2606
2805
|
|
|
2607
|
-
const style$
|
|
2806
|
+
const style$4 = {
|
|
2608
2807
|
Container: {
|
|
2609
2808
|
borderRadius: "var(--sl-border-radius-large)",
|
|
2610
2809
|
color: "var(--sl-color-neutral-900)",
|
|
@@ -2632,15 +2831,15 @@ const style$2 = {
|
|
|
2632
2831
|
},
|
|
2633
2832
|
},
|
|
2634
2833
|
};
|
|
2635
|
-
const sheet$
|
|
2636
|
-
const styleString$
|
|
2834
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
2835
|
+
const styleString$4 = sheet$4.toString();
|
|
2637
2836
|
const vanillaStyle$1 = `
|
|
2638
2837
|
:host{
|
|
2639
2838
|
display: block;
|
|
2640
2839
|
}
|
|
2641
2840
|
`;
|
|
2642
2841
|
function ReferralCardView(props) {
|
|
2643
|
-
return (h$1("div", { part: "sqm-base", class: sheet$
|
|
2842
|
+
return (h$1("div", { part: "sqm-base", class: sheet$4.classes.Container, style: {
|
|
2644
2843
|
border: `${props.hideBorder ? "none" : "1px solid var(--sl-color-neutral-300)"}`,
|
|
2645
2844
|
"padding-top": `var(--sl-spacing-${props.paddingTop})`,
|
|
2646
2845
|
"padding-right": `var(--sl-spacing-${props.paddingRight})`,
|
|
@@ -2651,15 +2850,15 @@ function ReferralCardView(props) {
|
|
|
2651
2850
|
margin: `${props.limitWidth ? "auto" : "none"}`,
|
|
2652
2851
|
} },
|
|
2653
2852
|
h$1("style", { type: "text/css" },
|
|
2654
|
-
styleString$
|
|
2853
|
+
styleString$4,
|
|
2655
2854
|
vanillaStyle$1),
|
|
2656
|
-
props.hasHeader && (h$1("div", { class: sheet$
|
|
2657
|
-
h$1("div", { part: "sqm-column-container", class: sheet$
|
|
2855
|
+
props.hasHeader && (h$1("div", { class: sheet$4.classes.EndContainer }, props.slots.header)),
|
|
2856
|
+
h$1("div", { part: "sqm-column-container", class: sheet$4.classes.ColumnContainer, style: {
|
|
2658
2857
|
alignItems: props.verticalAlignment,
|
|
2659
2858
|
} },
|
|
2660
2859
|
props.slots.left,
|
|
2661
2860
|
props.slots.right),
|
|
2662
|
-
props.hasFooter && (h$1("div", { class: sheet$
|
|
2861
|
+
props.hasFooter && (h$1("div", { class: sheet$4.classes.EndContainer }, props.slots.footer))));
|
|
2663
2862
|
}
|
|
2664
2863
|
|
|
2665
2864
|
const ReferralCard = class {
|
|
@@ -2745,9 +2944,9 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
2745
2944
|
`;
|
|
2746
2945
|
function useReferralIframe(props) {
|
|
2747
2946
|
var _a;
|
|
2748
|
-
const programId =
|
|
2749
|
-
const user =
|
|
2750
|
-
const { data } =
|
|
2947
|
+
const programId = z();
|
|
2948
|
+
const user = K();
|
|
2949
|
+
const { data } = En(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2751
2950
|
return {
|
|
2752
2951
|
states: {
|
|
2753
2952
|
content: props,
|
|
@@ -3472,9 +3671,9 @@ function useRewardExchangeList(props) {
|
|
|
3472
3671
|
});
|
|
3473
3672
|
const [open, setOpen] = useState(false);
|
|
3474
3673
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3475
|
-
const user =
|
|
3476
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] =
|
|
3477
|
-
const { data, loading, refetch, errors: queryError, } =
|
|
3674
|
+
const user = K();
|
|
3675
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = xe(EXCHANGE);
|
|
3676
|
+
const { data, loading, refetch, errors: queryError, } = En(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3478
3677
|
useEffect(() => {
|
|
3479
3678
|
var _a, _b;
|
|
3480
3679
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -3493,7 +3692,7 @@ function useRewardExchangeList(props) {
|
|
|
3493
3692
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3494
3693
|
canvas.confetti();
|
|
3495
3694
|
}, [canvasRef.current]);
|
|
3496
|
-
const { refresh } =
|
|
3695
|
+
const { refresh } = Ye();
|
|
3497
3696
|
async function exchangeReward() {
|
|
3498
3697
|
if (!selectedItem)
|
|
3499
3698
|
return;
|
|
@@ -3801,8 +4000,8 @@ function matchPath(pattern, page) {
|
|
|
3801
4000
|
return regexp.exec(page);
|
|
3802
4001
|
}
|
|
3803
4002
|
function useRouter() {
|
|
3804
|
-
const location =
|
|
3805
|
-
const host =
|
|
4003
|
+
const location = jn();
|
|
4004
|
+
const host = T();
|
|
3806
4005
|
const [slot, setSlot] = useState(undefined);
|
|
3807
4006
|
const [container, setContainer] = useState(undefined);
|
|
3808
4007
|
const page = location.pathname;
|
|
@@ -3885,106 +4084,6 @@ const SqmRouter = class {
|
|
|
3885
4084
|
};
|
|
3886
4085
|
SqmRouter.style = sqmRouterCss;
|
|
3887
4086
|
|
|
3888
|
-
const REVEAL_EVENT = "sq:reveal";
|
|
3889
|
-
function useScroll(props) {
|
|
3890
|
-
const { scrollTagName, scrollId } = props;
|
|
3891
|
-
async function scroll() {
|
|
3892
|
-
const element = document === null || document === void 0 ? void 0 : document.querySelector(scrollTagName || `#${scrollId}`);
|
|
3893
|
-
element.dispatchEvent(new CustomEvent(REVEAL_EVENT, {
|
|
3894
|
-
detail: scrollTagName || `#${scrollId}`,
|
|
3895
|
-
bubbles: true,
|
|
3896
|
-
composed: true,
|
|
3897
|
-
}));
|
|
3898
|
-
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
3899
|
-
element.scrollIntoView({ behavior: props.scrollAnimation });
|
|
3900
|
-
}
|
|
3901
|
-
return {
|
|
3902
|
-
callbacks: { scroll },
|
|
3903
|
-
};
|
|
3904
|
-
}
|
|
3905
|
-
|
|
3906
|
-
const Scroll = class {
|
|
3907
|
-
constructor(hostRef) {
|
|
3908
|
-
registerInstance(this, hostRef);
|
|
3909
|
-
this.ignored = true;
|
|
3910
|
-
/**
|
|
3911
|
-
* @uiName Button type
|
|
3912
|
-
* @uiType string
|
|
3913
|
-
* @uiEnum ["default", "primary", "success", "neutral", "warning", "danger", "text"]
|
|
3914
|
-
* @uiEnumNames ["Default", "Primary", "Success", "Neutral", "Warning", "Danger", "Text"]
|
|
3915
|
-
|
|
3916
|
-
*/
|
|
3917
|
-
this.buttonType = "default";
|
|
3918
|
-
/**
|
|
3919
|
-
* @uiName Scroll animation style
|
|
3920
|
-
* @uiType string
|
|
3921
|
-
* @uiEnum ["smooth", "auto"]
|
|
3922
|
-
* @uiEnumNames ["Smooth", "Auto"]
|
|
3923
|
-
*/
|
|
3924
|
-
this.scrollAnimation = "smooth";
|
|
3925
|
-
h(this);
|
|
3926
|
-
}
|
|
3927
|
-
disconnectedCallback() { }
|
|
3928
|
-
render() {
|
|
3929
|
-
var _a;
|
|
3930
|
-
const { callbacks } = useScroll(this);
|
|
3931
|
-
const outlineColor = (_a = this.buttonType) !== null && _a !== void 0 ? _a : "primary";
|
|
3932
|
-
const style = {
|
|
3933
|
-
Button: {
|
|
3934
|
-
"& .outline": {
|
|
3935
|
-
"&::part(base)": {
|
|
3936
|
-
color: "var(--sl-color-" + outlineColor + "-500)",
|
|
3937
|
-
borderColor: "var(--sl-color-" + outlineColor + "-500)",
|
|
3938
|
-
backgroundColor: "transparent",
|
|
3939
|
-
"&:hover": {
|
|
3940
|
-
color: "var(--sl-color-primary-text)",
|
|
3941
|
-
backgroundColor: "var(--sl-color-" + outlineColor + "-500)",
|
|
3942
|
-
},
|
|
3943
|
-
},
|
|
3944
|
-
},
|
|
3945
|
-
"& .neutral": {
|
|
3946
|
-
"&::part(base)": {
|
|
3947
|
-
color: "var(--sl-color-primary-text)",
|
|
3948
|
-
background: "var(--sl-color-neutral-500)",
|
|
3949
|
-
"&:hover": {
|
|
3950
|
-
opacity: "0.8",
|
|
3951
|
-
},
|
|
3952
|
-
},
|
|
3953
|
-
},
|
|
3954
|
-
"& .mobile": {
|
|
3955
|
-
"@media (max-width: 499px)": {
|
|
3956
|
-
width: "100%",
|
|
3957
|
-
},
|
|
3958
|
-
},
|
|
3959
|
-
},
|
|
3960
|
-
};
|
|
3961
|
-
const sheet = createStyleSheet(style);
|
|
3962
|
-
const styleString = sheet.toString();
|
|
3963
|
-
const vanillaStyle = `
|
|
3964
|
-
:host{
|
|
3965
|
-
display: contents;
|
|
3966
|
-
}
|
|
3967
|
-
${this.mobile &&
|
|
3968
|
-
`
|
|
3969
|
-
@media only screen and (max-width: 499px) {
|
|
3970
|
-
:host {
|
|
3971
|
-
display: block;
|
|
3972
|
-
width: 100%;
|
|
3973
|
-
}
|
|
3974
|
-
}
|
|
3975
|
-
`}
|
|
3976
|
-
`;
|
|
3977
|
-
let classStack = "";
|
|
3978
|
-
if (this.outline && this.buttonType != "default")
|
|
3979
|
-
classStack += "outline ";
|
|
3980
|
-
if (this.buttonType === "neutral")
|
|
3981
|
-
classStack += "neutral ";
|
|
3982
|
-
if (this.mobile)
|
|
3983
|
-
classStack += "mobile ";
|
|
3984
|
-
return (h$1("div", { class: sheet.classes.Button }, h$1("style", { type: "text/css" }, vanillaStyle, styleString), h$1("sl-button", { type: this.buttonType, onClick: callbacks.scroll, size: this.size, pill: this.pill, circle: this.circle, class: classStack }, (this.iconSlot || this.iconName) && (h$1("sl-icon", { slot: this.iconSlot || "prefix", name: this.iconName })), this.buttonText, h$1("slot", null))));
|
|
3985
|
-
}
|
|
3986
|
-
};
|
|
3987
|
-
|
|
3988
4087
|
const sqmShareButtonCss = ":host{display:block}:host([hidden]){display:none}sl-button{display:block}";
|
|
3989
4088
|
|
|
3990
4089
|
const ShareButton = class {
|
|
@@ -4063,11 +4162,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = dist.gql `
|
|
|
4063
4162
|
`;
|
|
4064
4163
|
function useShareCode(props) {
|
|
4065
4164
|
var _a, _b;
|
|
4066
|
-
const { programId =
|
|
4067
|
-
const user =
|
|
4068
|
-
const engagementMedium =
|
|
4069
|
-
const { data } =
|
|
4070
|
-
const [sendLoadEvent] =
|
|
4165
|
+
const { programId = z() } = props;
|
|
4166
|
+
const user = K();
|
|
4167
|
+
const engagementMedium = ne();
|
|
4168
|
+
const { data } = En(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4169
|
+
const [sendLoadEvent] = xe(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4071
4170
|
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
4072
4171
|
// Shown during loading
|
|
4073
4172
|
"...";
|
|
@@ -4266,10 +4365,10 @@ const SEND_EVENT = dist.gql `
|
|
|
4266
4365
|
}
|
|
4267
4366
|
`;
|
|
4268
4367
|
function useTaskCard(props) {
|
|
4269
|
-
const user =
|
|
4270
|
-
const locale =
|
|
4271
|
-
const [sendUserEvent, { data, loading: loadingEvent }] =
|
|
4272
|
-
const { refresh } =
|
|
4368
|
+
const user = K();
|
|
4369
|
+
const locale = Q();
|
|
4370
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = xe(SEND_EVENT);
|
|
4371
|
+
const { refresh } = Ye();
|
|
4273
4372
|
useEffect(() => {
|
|
4274
4373
|
if (data) {
|
|
4275
4374
|
refresh();
|
|
@@ -4482,7 +4581,7 @@ const Gift = () => (h$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24"
|
|
|
4482
4581
|
const Circle = () => (h$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
4483
4582
|
h$1("circle", { cx: "12", cy: "12", r: "9", fill: "currentColor", stroke: "currentColor", "stroke-width": "2" })));
|
|
4484
4583
|
|
|
4485
|
-
const style$
|
|
4584
|
+
const style$5 = {
|
|
4486
4585
|
TimelineReward: {
|
|
4487
4586
|
color: "var(--sl-color-neutral-900)",
|
|
4488
4587
|
lineHeight: "var(--sl-line-height-dense)",
|
|
@@ -4525,8 +4624,8 @@ const style$3 = {
|
|
|
4525
4624
|
},
|
|
4526
4625
|
},
|
|
4527
4626
|
};
|
|
4528
|
-
const sheet$
|
|
4529
|
-
const styleString$
|
|
4627
|
+
const sheet$5 = createStyleSheet(style$5);
|
|
4628
|
+
const styleString$5 = sheet$5.toString();
|
|
4530
4629
|
const vanillaStyle$2 = `
|
|
4531
4630
|
:host{
|
|
4532
4631
|
display: block;
|
|
@@ -4539,9 +4638,9 @@ const vanillaStyle$2 = `
|
|
|
4539
4638
|
function TimelineEntryView(props) {
|
|
4540
4639
|
var _a;
|
|
4541
4640
|
const timeline_icon = (_a = props.icon) !== null && _a !== void 0 ? _a : props.iconState;
|
|
4542
|
-
return (h$1("div", { class: sheet$
|
|
4641
|
+
return (h$1("div", { class: sheet$5.classes.TimelineReward, part: "sqm-base" },
|
|
4543
4642
|
h$1("style", { type: "text/css" },
|
|
4544
|
-
styleString$
|
|
4643
|
+
styleString$5,
|
|
4545
4644
|
vanillaStyle$2),
|
|
4546
4645
|
h$1("div", { class: "container", part: "sqm-entry-container" },
|
|
4547
4646
|
h$1("div", { class: "line" }, "/"),
|
|
@@ -4590,8 +4689,8 @@ const GET_USER_NAME = dist.gql `
|
|
|
4590
4689
|
`;
|
|
4591
4690
|
function useUserName(props) {
|
|
4592
4691
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4593
|
-
const user =
|
|
4594
|
-
const res =
|
|
4692
|
+
const user = K();
|
|
4693
|
+
const res = En(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4595
4694
|
const loading = res.loading;
|
|
4596
4695
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
4597
4696
|
? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`
|
|
@@ -4632,4 +4731,4 @@ function useUserNameDemo(props) {
|
|
|
4632
4731
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4633
4732
|
}
|
|
4634
4733
|
|
|
4635
|
-
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router,
|
|
4734
|
+
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PayoutButtonScroll as sqm_payout_button_scroll, PayoutStatusAlert as sqm_payout_status_alert, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };
|