@saasquatch/mint-components 1.11.1-1 → 1.12.0-1
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
|
@@ -4,23 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
const global = require('./global-c3637175.js');
|
|
8
|
+
const index_module = require('./index.module-b8d9d0ba.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
|
-
const utils = require('./utils-6847bc06.js');
|
|
11
|
-
const JSS = require('./JSS-8503a151.js');
|
|
12
|
-
const copyTextView = require('./copy-text-view-a22ad7e7.js');
|
|
13
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
14
11
|
require('./mixins-fe9d4112.js');
|
|
15
|
-
const
|
|
16
|
-
const
|
|
12
|
+
const JSS = require('./JSS-8503a151.js');
|
|
13
|
+
const reRender = require('./re-render-5bde3d2e.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-410d2435.js');
|
|
17
15
|
require('./luxon-05098e19.js');
|
|
16
|
+
const utils = require('./utils-6847bc06.js');
|
|
18
17
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
19
18
|
const index$1 = require('./index-8c6255f5.js');
|
|
20
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
21
|
-
const utilities = require('./utilities-
|
|
19
|
+
const useRegistrationFormState = require('./useRegistrationFormState-f9ce55be.js');
|
|
20
|
+
const utilities = require('./utilities-f7de6c04.js');
|
|
22
21
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
23
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
22
|
+
const ShadowViewAddon = require('./ShadowViewAddon-88821c64.js');
|
|
24
23
|
require('./sqm-portal-container-view-990a85a3.js');
|
|
25
24
|
|
|
26
25
|
const BigStat = class {
|
|
@@ -40,7 +39,7 @@ const BigStat = class {
|
|
|
40
39
|
render() {
|
|
41
40
|
var _a;
|
|
42
41
|
const { props, label } = index_module.isDemo() ? ShadowViewAddon.useDemoBigStat(this) : ShadowViewAddon.useBigStat(this);
|
|
43
|
-
const host = index_module.
|
|
42
|
+
const host = index_module.T();
|
|
44
43
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
45
44
|
const labelSlot = index.h("slot", { name: "label" }, hasLabel ? index.h("slot", null) : label);
|
|
46
45
|
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -161,7 +160,7 @@ const styleString = sheet.toString();
|
|
|
161
160
|
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) {
|
|
162
161
|
if (!missingProps)
|
|
163
162
|
return false;
|
|
164
|
-
const host = index_module.
|
|
163
|
+
const host = index_module.T();
|
|
165
164
|
const [detailsOpen, setDetailsOpen] = stencilHooks_module.useState(false);
|
|
166
165
|
return (index.h("sl-alert", { type: "danger", open: true },
|
|
167
166
|
index.h("style", { type: "text/css" }, styleString),
|
|
@@ -303,11 +302,11 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
303
302
|
`;
|
|
304
303
|
function useCouponCode(props) {
|
|
305
304
|
var _a, _b, _c;
|
|
306
|
-
const user = index_module.
|
|
307
|
-
const programId = index_module.
|
|
308
|
-
const engagementMedium = index_module.
|
|
309
|
-
const [sendLoadEvent] = index_module
|
|
310
|
-
const { data, loading, refetch, errors } = index_module.
|
|
305
|
+
const user = index_module.K();
|
|
306
|
+
const programId = index_module.z();
|
|
307
|
+
const engagementMedium = index_module.ne();
|
|
308
|
+
const [sendLoadEvent] = index_module.xe(WIDGET_ENGAGEMENT_EVENT);
|
|
309
|
+
const { data, loading, refetch, errors } = index_module.En(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
311
310
|
const getStatus = (reward) => {
|
|
312
311
|
if (!reward || !reward.statuses)
|
|
313
312
|
return "ERROR";
|
|
@@ -697,13 +696,13 @@ const defaultFormState = {
|
|
|
697
696
|
error: "",
|
|
698
697
|
};
|
|
699
698
|
function useEditProfile(props) {
|
|
700
|
-
const userIdent = index_module.
|
|
699
|
+
const userIdent = index_module.K();
|
|
701
700
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
702
701
|
const [error, setError] = stencilHooks_module.useState("");
|
|
703
702
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
704
703
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
705
|
-
const userDataResponse = index_module.
|
|
706
|
-
const [upsertUser, upsertUserResponse] = index_module
|
|
704
|
+
const userDataResponse = index_module.En(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
705
|
+
const [upsertUser, upsertUserResponse] = index_module.xe(UPSERT_USER);
|
|
707
706
|
stencilHooks_module.useEffect(() => {
|
|
708
707
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
709
708
|
return;
|
|
@@ -1342,11 +1341,11 @@ const GET_RANK_WITHOUT_NAMES = index_module.dist.gql `
|
|
|
1342
1341
|
`;
|
|
1343
1342
|
function useLeaderboard(props) {
|
|
1344
1343
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1345
|
-
const programIdContext = index_module.
|
|
1344
|
+
const programIdContext = index_module.z();
|
|
1346
1345
|
// Default to context, overriden by props
|
|
1347
1346
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1348
|
-
const user = index_module.
|
|
1349
|
-
const locale = index_module.
|
|
1347
|
+
const user = index_module.K();
|
|
1348
|
+
const locale = index_module.Q();
|
|
1350
1349
|
const variables = programId
|
|
1351
1350
|
? {
|
|
1352
1351
|
type: props.leaderboardType,
|
|
@@ -1365,8 +1364,8 @@ function useLeaderboard(props) {
|
|
|
1365
1364
|
if (props.maxRows > 0) {
|
|
1366
1365
|
variables["limit"] = props.maxRows;
|
|
1367
1366
|
}
|
|
1368
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = index_module.
|
|
1369
|
-
const { data: rankData } = index_module.
|
|
1367
|
+
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = index_module.En(props.hideNames ? GET_LEADERBOARD_WITHOUT_NAMES : GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
|
|
1368
|
+
const { data: rankData } = index_module.En(props.hideNames ? GET_RANK_WITHOUT_NAMES : GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1370
1369
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1371
1370
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1372
1371
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1664,12 +1663,12 @@ function NavigationMenuView(props) {
|
|
|
1664
1663
|
}
|
|
1665
1664
|
|
|
1666
1665
|
function handleMenu(e) {
|
|
1667
|
-
index_module
|
|
1666
|
+
index_module.xn.push(e.detail.item.value);
|
|
1668
1667
|
}
|
|
1669
1668
|
function useNavigationMenu(props) {
|
|
1670
1669
|
const ref = stencilHooks_module.useRef();
|
|
1671
|
-
const [, rerender] = index_module.
|
|
1672
|
-
const user = index_module.
|
|
1670
|
+
const [, rerender] = index_module.wn();
|
|
1671
|
+
const user = index_module.K();
|
|
1673
1672
|
stencilHooks_module.useEffect(() => {
|
|
1674
1673
|
var _a;
|
|
1675
1674
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1721,13 +1720,213 @@ function useNavigationMenuDemo(props) {
|
|
|
1721
1720
|
}
|
|
1722
1721
|
NavigationMenu.style = sqmNavigationMenuCss;
|
|
1723
1722
|
|
|
1723
|
+
const style$2 = {
|
|
1724
|
+
Wrapper: {
|
|
1725
|
+
maxWidth: "200px",
|
|
1726
|
+
},
|
|
1727
|
+
PayoutButtonDescription: {
|
|
1728
|
+
color: "var(--sl-color-neutral-500)",
|
|
1729
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1730
|
+
},
|
|
1731
|
+
};
|
|
1732
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
1733
|
+
const styleString$2 = sheet$2.toString();
|
|
1734
|
+
function PayoutButtonScrollView(props) {
|
|
1735
|
+
const { text, states } = props;
|
|
1736
|
+
if (!states.payoutSettingsComplete)
|
|
1737
|
+
return index.h("div", null);
|
|
1738
|
+
return (index.h("div", { part: "sqm-base", class: sheet$2.classes.Wrapper },
|
|
1739
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
1740
|
+
index.h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.payoutButtonText, "scroll-animation": "smooth" }),
|
|
1741
|
+
index.h("p", { class: sheet$2.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
const PayoutButtonScroll = class {
|
|
1745
|
+
constructor(hostRef) {
|
|
1746
|
+
index.registerInstance(this, hostRef);
|
|
1747
|
+
this.payoutButtonText = "Payouts & Tax Settings";
|
|
1748
|
+
this.payoutButtonDescription = "Check your payout settings to see when you’ll get paid out next";
|
|
1749
|
+
this.ignored = true;
|
|
1750
|
+
stencilHooks_module.h$1(this);
|
|
1751
|
+
}
|
|
1752
|
+
disconnectedCallback() { }
|
|
1753
|
+
getTextProps() {
|
|
1754
|
+
return utils.getProps(this);
|
|
1755
|
+
}
|
|
1756
|
+
render() {
|
|
1757
|
+
const props = useDemoPayoutButtonScroll(this);
|
|
1758
|
+
return index.h(PayoutButtonScrollView, Object.assign({}, props));
|
|
1759
|
+
}
|
|
1760
|
+
};
|
|
1761
|
+
function useDemoPayoutButtonScroll(props) {
|
|
1762
|
+
return cjs.cjs({
|
|
1763
|
+
states: {
|
|
1764
|
+
payoutSettingsComplete: false,
|
|
1765
|
+
},
|
|
1766
|
+
text: props.getTextProps(),
|
|
1767
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
const style$3 = {
|
|
1771
|
+
SkeletonOne: {
|
|
1772
|
+
width: "50%",
|
|
1773
|
+
height: "16px",
|
|
1774
|
+
},
|
|
1775
|
+
AlertDescriptionText: {
|
|
1776
|
+
margin: "0",
|
|
1777
|
+
marginBottom: "var(--sl-spacing-small)",
|
|
1778
|
+
},
|
|
1779
|
+
};
|
|
1780
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
1781
|
+
const styleString$3 = sheet$3.toString();
|
|
1782
|
+
function PayoutStatusAlertView(props) {
|
|
1783
|
+
var _a, _b, _c, _d;
|
|
1784
|
+
const { text, states } = props;
|
|
1785
|
+
if (states.loading) {
|
|
1786
|
+
return index.h("sl-skeleton", { class: sheet$3.classes.SkeletonOne });
|
|
1787
|
+
}
|
|
1788
|
+
if (states.status === "DONE") {
|
|
1789
|
+
return index.h("div", null);
|
|
1790
|
+
}
|
|
1791
|
+
function getAlert(status) {
|
|
1792
|
+
switch (status) {
|
|
1793
|
+
case "INFORMATION_REQUIRED":
|
|
1794
|
+
return {
|
|
1795
|
+
header: text.informationRequiredHeader,
|
|
1796
|
+
description: text.informationRequiredDescription,
|
|
1797
|
+
buttonText: text.verificationRequiredButtonText,
|
|
1798
|
+
alertType: "info",
|
|
1799
|
+
icon: "exclamation-octagon",
|
|
1800
|
+
};
|
|
1801
|
+
case "VERIFICATION_NEEDED":
|
|
1802
|
+
return {
|
|
1803
|
+
header: text.verificationRequiredHeader,
|
|
1804
|
+
description: text.verificationRequiredDescription,
|
|
1805
|
+
buttonText: text.verificationRequiredButtonText,
|
|
1806
|
+
alertType: "warning",
|
|
1807
|
+
icon: "exclamation-octagon",
|
|
1808
|
+
};
|
|
1809
|
+
case "HOLD":
|
|
1810
|
+
return {
|
|
1811
|
+
header: text.holdHeader,
|
|
1812
|
+
description: text.holdDescription,
|
|
1813
|
+
buttonText: null,
|
|
1814
|
+
alertType: "warning",
|
|
1815
|
+
icon: "exclamation-octagon",
|
|
1816
|
+
};
|
|
1817
|
+
default:
|
|
1818
|
+
return;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
//AL: TODO hookup ID
|
|
1822
|
+
function getButton(status) {
|
|
1823
|
+
switch (status) {
|
|
1824
|
+
case "INFORMATION_REQUIRED":
|
|
1825
|
+
return (index.h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": "Payout and tax settings", "scroll-animation": "smooth" }));
|
|
1826
|
+
case "VERIFICATION_NEEDED":
|
|
1827
|
+
return (index.h("sl-button", { type: "default", loading: states.loading }, text.verificationRequiredButtonText));
|
|
1828
|
+
default:
|
|
1829
|
+
return;
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
return (index.h("div", { part: "sqm-base" },
|
|
1833
|
+
index.h("style", { type: "text/css" }, styleString$3),
|
|
1834
|
+
index.h("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 },
|
|
1835
|
+
index.h("sl-icon", { slot: "icon", name: (_b = getAlert(states.status)) === null || _b === void 0 ? void 0 : _b.icon }),
|
|
1836
|
+
index.h("strong", null, (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.header),
|
|
1837
|
+
index.h("p", { class: sheet$3.classes.AlertDescriptionText }, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.description),
|
|
1838
|
+
getButton(states.status))));
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
const GET_USER_STATUS = index_module.dist.gql `
|
|
1842
|
+
query getUserStatus {
|
|
1843
|
+
user: viewer {
|
|
1844
|
+
... on User {
|
|
1845
|
+
id
|
|
1846
|
+
impactConnection {
|
|
1847
|
+
connected
|
|
1848
|
+
publisher {
|
|
1849
|
+
id
|
|
1850
|
+
payoutsAccount {
|
|
1851
|
+
hold
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
`;
|
|
1859
|
+
function usePayoutStatus(props) {
|
|
1860
|
+
const { loading, data, errors, refetch } = index_module.En(GET_USER_STATUS, {});
|
|
1861
|
+
const [status, setStatus] = stencilHooks_module.useState(undefined);
|
|
1862
|
+
stencilHooks_module.useEffect(() => {
|
|
1863
|
+
if (!data)
|
|
1864
|
+
return;
|
|
1865
|
+
function getStatus(data) {
|
|
1866
|
+
var _a, _b;
|
|
1867
|
+
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
1868
|
+
if (!account)
|
|
1869
|
+
return "INFORMATION_REQUIRED";
|
|
1870
|
+
if (account.hold)
|
|
1871
|
+
return "HOLD";
|
|
1872
|
+
// @ts-ignore, TODO: add check for account verification
|
|
1873
|
+
if (!account.verified)
|
|
1874
|
+
return "VERIFICATION_NEEDED";
|
|
1875
|
+
return "DONE";
|
|
1876
|
+
}
|
|
1877
|
+
const s = getStatus(data);
|
|
1878
|
+
setStatus(s);
|
|
1879
|
+
}, [data]);
|
|
1880
|
+
stencilHooks_module.useEffect(() => {
|
|
1881
|
+
const cb = () => refetch();
|
|
1882
|
+
window.addEventListener("sqm:tax-form-updated", cb);
|
|
1883
|
+
return () => window.removeEventListener("sqm:tax-form-updated", cb);
|
|
1884
|
+
}, []);
|
|
1885
|
+
console.log({ data });
|
|
1886
|
+
return { states: { loading, status }, text: props.getTextProps() };
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
const PayoutStatusAlert = class {
|
|
1890
|
+
constructor(hostRef) {
|
|
1891
|
+
index.registerInstance(this, hostRef);
|
|
1892
|
+
this.informationRequiredHeader = "Payout and tax information required";
|
|
1893
|
+
this.informationRequiredDescription = "Submit your banking details and tax documents to receive your rewards.";
|
|
1894
|
+
this.informationRequiredButtonText = "Payouts & Tax Settings";
|
|
1895
|
+
this.verificationRequiredHeader = "Verify your identity";
|
|
1896
|
+
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
1897
|
+
this.verificationRequiredButtonText = "Start Verification";
|
|
1898
|
+
this.holdHeader = "Your payouts and account are on hold";
|
|
1899
|
+
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}.";
|
|
1900
|
+
stencilHooks_module.h$1(this);
|
|
1901
|
+
}
|
|
1902
|
+
disconnectedCallback() { }
|
|
1903
|
+
getTextProps() {
|
|
1904
|
+
return utils.getProps(this);
|
|
1905
|
+
}
|
|
1906
|
+
render() {
|
|
1907
|
+
const props = index_module.isDemo()
|
|
1908
|
+
? useDemoPayoutStatusAlert(this)
|
|
1909
|
+
: usePayoutStatus(this);
|
|
1910
|
+
return index.h(PayoutStatusAlertView, Object.assign({}, props));
|
|
1911
|
+
}
|
|
1912
|
+
};
|
|
1913
|
+
function useDemoPayoutStatusAlert(props) {
|
|
1914
|
+
return cjs.cjs({
|
|
1915
|
+
states: {
|
|
1916
|
+
status: "INFORMATION_REQUIRED",
|
|
1917
|
+
loading: false,
|
|
1918
|
+
},
|
|
1919
|
+
text: props.getTextProps(),
|
|
1920
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1724
1923
|
function usePortalChangePassword(props) {
|
|
1725
1924
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1726
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1925
|
+
const [request, { loading, errors, data }] = index_module.ze();
|
|
1727
1926
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1728
1927
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1729
1928
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1730
|
-
const user = index_module.
|
|
1929
|
+
const user = index_module.K();
|
|
1731
1930
|
const submit = async (event) => {
|
|
1732
1931
|
var _a, _b;
|
|
1733
1932
|
setSuccess(false);
|
|
@@ -1969,7 +2168,7 @@ const PortalFooter = class {
|
|
|
1969
2168
|
};
|
|
1970
2169
|
|
|
1971
2170
|
function usePortalFrame(footerContent, headerContent) {
|
|
1972
|
-
const [, rerender] = index_module.
|
|
2171
|
+
const [, rerender] = index_module.wn();
|
|
1973
2172
|
return {
|
|
1974
2173
|
data: {
|
|
1975
2174
|
footer: footerContent,
|
|
@@ -2019,9 +2218,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
2019
2218
|
|
|
2020
2219
|
function usePortalLogin(props) {
|
|
2021
2220
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2022
|
-
const [request, { loading, errors, data }] = index_module.
|
|
2221
|
+
const [request, { loading, errors, data }] = index_module.We();
|
|
2023
2222
|
const [error, setError] = stencilHooks_module.useState("");
|
|
2024
|
-
const urlParams = new URLSearchParams(index_module
|
|
2223
|
+
const urlParams = new URLSearchParams(index_module.xn.location.search);
|
|
2025
2224
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2026
2225
|
const submit = async (event) => {
|
|
2027
2226
|
var _a, _b;
|
|
@@ -2040,7 +2239,7 @@ function usePortalLogin(props) {
|
|
|
2040
2239
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2041
2240
|
urlParams.delete("nextPage");
|
|
2042
2241
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2043
|
-
index_module
|
|
2242
|
+
index_module.xn.push(url.href);
|
|
2044
2243
|
}
|
|
2045
2244
|
};
|
|
2046
2245
|
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) ||
|
|
@@ -2119,8 +2318,8 @@ const PortalLogin = class {
|
|
|
2119
2318
|
? useLoginDemo(this)
|
|
2120
2319
|
: usePortalLogin(this);
|
|
2121
2320
|
const content = {
|
|
2122
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module
|
|
2123
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module
|
|
2321
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.xn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2322
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.xn.push(states.registerPath) }, this.registerLabel))),
|
|
2124
2323
|
emailLabel: this.emailLabel,
|
|
2125
2324
|
passwordLabel: this.passwordLabel,
|
|
2126
2325
|
submitLabel: this.submitLabel,
|
|
@@ -2149,7 +2348,7 @@ function usePortalRegister(props) {
|
|
|
2149
2348
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2150
2349
|
const formRef = stencilHooks_module.useRef(null);
|
|
2151
2350
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
2152
|
-
const [request, { loading, errors, data }] = index_module.
|
|
2351
|
+
const [request, { loading, errors, data }] = index_module.Ue();
|
|
2153
2352
|
stencilHooks_module.useEffect(() => {
|
|
2154
2353
|
if (!formRef.current)
|
|
2155
2354
|
return;
|
|
@@ -2222,7 +2421,7 @@ function usePortalRegister(props) {
|
|
|
2222
2421
|
validationErrors: {},
|
|
2223
2422
|
});
|
|
2224
2423
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2225
|
-
index_module
|
|
2424
|
+
index_module.xn.push(props.nextPage);
|
|
2226
2425
|
}
|
|
2227
2426
|
}
|
|
2228
2427
|
catch (error) {
|
|
@@ -2396,7 +2595,7 @@ const PortalRegister = class {
|
|
|
2396
2595
|
: usePortalRegister(this);
|
|
2397
2596
|
const content = {
|
|
2398
2597
|
formData: index.h("slot", { name: "formData" }),
|
|
2399
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module
|
|
2598
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.xn.push(states.loginPath) }, this.loginLabel))),
|
|
2400
2599
|
terms: index.h("slot", { name: "terms" }),
|
|
2401
2600
|
emailLabel: this.emailLabel,
|
|
2402
2601
|
passwordLabel: this.passwordLabel,
|
|
@@ -2567,11 +2766,11 @@ const ProgramExplainerStep = class {
|
|
|
2567
2766
|
const debug = stencilHooks_module.browser("sq:useProgramMenu");
|
|
2568
2767
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2569
2768
|
function useProgramMenu(props) {
|
|
2570
|
-
const programId = index_module.
|
|
2571
|
-
const host = index_module.
|
|
2769
|
+
const programId = index_module.z();
|
|
2770
|
+
const host = index_module.T();
|
|
2572
2771
|
debug({ programId, props });
|
|
2573
2772
|
const ref = stencilHooks_module.useRef();
|
|
2574
|
-
const [, rerender] = index_module.
|
|
2773
|
+
const [, rerender] = index_module.wn();
|
|
2575
2774
|
stencilHooks_module.useEffect(() => {
|
|
2576
2775
|
var _a;
|
|
2577
2776
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2608,7 +2807,7 @@ const ProgramMenu = class {
|
|
|
2608
2807
|
}
|
|
2609
2808
|
};
|
|
2610
2809
|
|
|
2611
|
-
const style$
|
|
2810
|
+
const style$4 = {
|
|
2612
2811
|
Container: {
|
|
2613
2812
|
borderRadius: "var(--sl-border-radius-large)",
|
|
2614
2813
|
color: "var(--sl-color-neutral-900)",
|
|
@@ -2636,15 +2835,15 @@ const style$2 = {
|
|
|
2636
2835
|
},
|
|
2637
2836
|
},
|
|
2638
2837
|
};
|
|
2639
|
-
const sheet$
|
|
2640
|
-
const styleString$
|
|
2838
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
2839
|
+
const styleString$4 = sheet$4.toString();
|
|
2641
2840
|
const vanillaStyle$1 = `
|
|
2642
2841
|
:host{
|
|
2643
2842
|
display: block;
|
|
2644
2843
|
}
|
|
2645
2844
|
`;
|
|
2646
2845
|
function ReferralCardView(props) {
|
|
2647
|
-
return (index.h("div", { part: "sqm-base", class: sheet$
|
|
2846
|
+
return (index.h("div", { part: "sqm-base", class: sheet$4.classes.Container, style: {
|
|
2648
2847
|
border: `${props.hideBorder ? "none" : "1px solid var(--sl-color-neutral-300)"}`,
|
|
2649
2848
|
"padding-top": `var(--sl-spacing-${props.paddingTop})`,
|
|
2650
2849
|
"padding-right": `var(--sl-spacing-${props.paddingRight})`,
|
|
@@ -2655,15 +2854,15 @@ function ReferralCardView(props) {
|
|
|
2655
2854
|
margin: `${props.limitWidth ? "auto" : "none"}`,
|
|
2656
2855
|
} },
|
|
2657
2856
|
index.h("style", { type: "text/css" },
|
|
2658
|
-
styleString$
|
|
2857
|
+
styleString$4,
|
|
2659
2858
|
vanillaStyle$1),
|
|
2660
|
-
props.hasHeader && (index.h("div", { class: sheet$
|
|
2661
|
-
index.h("div", { part: "sqm-column-container", class: sheet$
|
|
2859
|
+
props.hasHeader && (index.h("div", { class: sheet$4.classes.EndContainer }, props.slots.header)),
|
|
2860
|
+
index.h("div", { part: "sqm-column-container", class: sheet$4.classes.ColumnContainer, style: {
|
|
2662
2861
|
alignItems: props.verticalAlignment,
|
|
2663
2862
|
} },
|
|
2664
2863
|
props.slots.left,
|
|
2665
2864
|
props.slots.right),
|
|
2666
|
-
props.hasFooter && (index.h("div", { class: sheet$
|
|
2865
|
+
props.hasFooter && (index.h("div", { class: sheet$4.classes.EndContainer }, props.slots.footer))));
|
|
2667
2866
|
}
|
|
2668
2867
|
|
|
2669
2868
|
const ReferralCard = class {
|
|
@@ -2749,9 +2948,9 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
2749
2948
|
`;
|
|
2750
2949
|
function useReferralIframe(props) {
|
|
2751
2950
|
var _a;
|
|
2752
|
-
const programId = index_module.
|
|
2753
|
-
const user = index_module.
|
|
2754
|
-
const { data } = index_module.
|
|
2951
|
+
const programId = index_module.z();
|
|
2952
|
+
const user = index_module.K();
|
|
2953
|
+
const { data } = index_module.En(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2755
2954
|
return {
|
|
2756
2955
|
states: {
|
|
2757
2956
|
content: props,
|
|
@@ -3476,9 +3675,9 @@ function useRewardExchangeList(props) {
|
|
|
3476
3675
|
});
|
|
3477
3676
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3478
3677
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3479
|
-
const user = index_module.
|
|
3480
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module
|
|
3481
|
-
const { data, loading, refetch, errors: queryError, } = index_module.
|
|
3678
|
+
const user = index_module.K();
|
|
3679
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.xe(EXCHANGE);
|
|
3680
|
+
const { data, loading, refetch, errors: queryError, } = index_module.En(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3482
3681
|
stencilHooks_module.useEffect(() => {
|
|
3483
3682
|
var _a, _b;
|
|
3484
3683
|
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) {
|
|
@@ -3497,7 +3696,7 @@ function useRewardExchangeList(props) {
|
|
|
3497
3696
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3498
3697
|
canvas.confetti();
|
|
3499
3698
|
}, [canvasRef.current]);
|
|
3500
|
-
const { refresh } = index_module.
|
|
3699
|
+
const { refresh } = index_module.Ye();
|
|
3501
3700
|
async function exchangeReward() {
|
|
3502
3701
|
if (!selectedItem)
|
|
3503
3702
|
return;
|
|
@@ -3805,8 +4004,8 @@ function matchPath(pattern, page) {
|
|
|
3805
4004
|
return regexp.exec(page);
|
|
3806
4005
|
}
|
|
3807
4006
|
function useRouter() {
|
|
3808
|
-
const location = index_module.
|
|
3809
|
-
const host = index_module.
|
|
4007
|
+
const location = index_module.jn();
|
|
4008
|
+
const host = index_module.T();
|
|
3810
4009
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
3811
4010
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
3812
4011
|
const page = location.pathname;
|
|
@@ -3889,106 +4088,6 @@ const SqmRouter = class {
|
|
|
3889
4088
|
};
|
|
3890
4089
|
SqmRouter.style = sqmRouterCss;
|
|
3891
4090
|
|
|
3892
|
-
const REVEAL_EVENT = "sq:reveal";
|
|
3893
|
-
function useScroll(props) {
|
|
3894
|
-
const { scrollTagName, scrollId } = props;
|
|
3895
|
-
async function scroll() {
|
|
3896
|
-
const element = document === null || document === void 0 ? void 0 : document.querySelector(scrollTagName || `#${scrollId}`);
|
|
3897
|
-
element.dispatchEvent(new CustomEvent(REVEAL_EVENT, {
|
|
3898
|
-
detail: scrollTagName || `#${scrollId}`,
|
|
3899
|
-
bubbles: true,
|
|
3900
|
-
composed: true,
|
|
3901
|
-
}));
|
|
3902
|
-
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
3903
|
-
element.scrollIntoView({ behavior: props.scrollAnimation });
|
|
3904
|
-
}
|
|
3905
|
-
return {
|
|
3906
|
-
callbacks: { scroll },
|
|
3907
|
-
};
|
|
3908
|
-
}
|
|
3909
|
-
|
|
3910
|
-
const Scroll = class {
|
|
3911
|
-
constructor(hostRef) {
|
|
3912
|
-
index.registerInstance(this, hostRef);
|
|
3913
|
-
this.ignored = true;
|
|
3914
|
-
/**
|
|
3915
|
-
* @uiName Button type
|
|
3916
|
-
* @uiType string
|
|
3917
|
-
* @uiEnum ["default", "primary", "success", "neutral", "warning", "danger", "text"]
|
|
3918
|
-
* @uiEnumNames ["Default", "Primary", "Success", "Neutral", "Warning", "Danger", "Text"]
|
|
3919
|
-
|
|
3920
|
-
*/
|
|
3921
|
-
this.buttonType = "default";
|
|
3922
|
-
/**
|
|
3923
|
-
* @uiName Scroll animation style
|
|
3924
|
-
* @uiType string
|
|
3925
|
-
* @uiEnum ["smooth", "auto"]
|
|
3926
|
-
* @uiEnumNames ["Smooth", "Auto"]
|
|
3927
|
-
*/
|
|
3928
|
-
this.scrollAnimation = "smooth";
|
|
3929
|
-
stencilHooks_module.h$1(this);
|
|
3930
|
-
}
|
|
3931
|
-
disconnectedCallback() { }
|
|
3932
|
-
render() {
|
|
3933
|
-
var _a;
|
|
3934
|
-
const { callbacks } = useScroll(this);
|
|
3935
|
-
const outlineColor = (_a = this.buttonType) !== null && _a !== void 0 ? _a : "primary";
|
|
3936
|
-
const style = {
|
|
3937
|
-
Button: {
|
|
3938
|
-
"& .outline": {
|
|
3939
|
-
"&::part(base)": {
|
|
3940
|
-
color: "var(--sl-color-" + outlineColor + "-500)",
|
|
3941
|
-
borderColor: "var(--sl-color-" + outlineColor + "-500)",
|
|
3942
|
-
backgroundColor: "transparent",
|
|
3943
|
-
"&:hover": {
|
|
3944
|
-
color: "var(--sl-color-primary-text)",
|
|
3945
|
-
backgroundColor: "var(--sl-color-" + outlineColor + "-500)",
|
|
3946
|
-
},
|
|
3947
|
-
},
|
|
3948
|
-
},
|
|
3949
|
-
"& .neutral": {
|
|
3950
|
-
"&::part(base)": {
|
|
3951
|
-
color: "var(--sl-color-primary-text)",
|
|
3952
|
-
background: "var(--sl-color-neutral-500)",
|
|
3953
|
-
"&:hover": {
|
|
3954
|
-
opacity: "0.8",
|
|
3955
|
-
},
|
|
3956
|
-
},
|
|
3957
|
-
},
|
|
3958
|
-
"& .mobile": {
|
|
3959
|
-
"@media (max-width: 499px)": {
|
|
3960
|
-
width: "100%",
|
|
3961
|
-
},
|
|
3962
|
-
},
|
|
3963
|
-
},
|
|
3964
|
-
};
|
|
3965
|
-
const sheet = JSS.createStyleSheet(style);
|
|
3966
|
-
const styleString = sheet.toString();
|
|
3967
|
-
const vanillaStyle = `
|
|
3968
|
-
:host{
|
|
3969
|
-
display: contents;
|
|
3970
|
-
}
|
|
3971
|
-
${this.mobile &&
|
|
3972
|
-
`
|
|
3973
|
-
@media only screen and (max-width: 499px) {
|
|
3974
|
-
:host {
|
|
3975
|
-
display: block;
|
|
3976
|
-
width: 100%;
|
|
3977
|
-
}
|
|
3978
|
-
}
|
|
3979
|
-
`}
|
|
3980
|
-
`;
|
|
3981
|
-
let classStack = "";
|
|
3982
|
-
if (this.outline && this.buttonType != "default")
|
|
3983
|
-
classStack += "outline ";
|
|
3984
|
-
if (this.buttonType === "neutral")
|
|
3985
|
-
classStack += "neutral ";
|
|
3986
|
-
if (this.mobile)
|
|
3987
|
-
classStack += "mobile ";
|
|
3988
|
-
return (index.h("div", { class: sheet.classes.Button }, index.h("style", { type: "text/css" }, vanillaStyle, styleString), index.h("sl-button", { type: this.buttonType, onClick: callbacks.scroll, size: this.size, pill: this.pill, circle: this.circle, class: classStack }, (this.iconSlot || this.iconName) && (index.h("sl-icon", { slot: this.iconSlot || "prefix", name: this.iconName })), this.buttonText, index.h("slot", null))));
|
|
3989
|
-
}
|
|
3990
|
-
};
|
|
3991
|
-
|
|
3992
4091
|
const sqmShareButtonCss = ":host{display:block}:host([hidden]){display:none}sl-button{display:block}";
|
|
3993
4092
|
|
|
3994
4093
|
const ShareButton = class {
|
|
@@ -4067,11 +4166,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = index_module.dist.gql `
|
|
|
4067
4166
|
`;
|
|
4068
4167
|
function useShareCode(props) {
|
|
4069
4168
|
var _a, _b;
|
|
4070
|
-
const { programId = index_module.
|
|
4071
|
-
const user = index_module.
|
|
4072
|
-
const engagementMedium = index_module.
|
|
4073
|
-
const { data } = index_module.
|
|
4074
|
-
const [sendLoadEvent] = index_module
|
|
4169
|
+
const { programId = index_module.z() } = props;
|
|
4170
|
+
const user = index_module.K();
|
|
4171
|
+
const engagementMedium = index_module.ne();
|
|
4172
|
+
const { data } = index_module.En(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4173
|
+
const [sendLoadEvent] = index_module.xe(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4075
4174
|
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 :
|
|
4076
4175
|
// Shown during loading
|
|
4077
4176
|
"...";
|
|
@@ -4143,7 +4242,7 @@ const ShareCode = class {
|
|
|
4143
4242
|
const props = index_module.isDemo()
|
|
4144
4243
|
? useDemoShareCode(thisProps)
|
|
4145
4244
|
: useShareCode(thisProps);
|
|
4146
|
-
return index.h(
|
|
4245
|
+
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
4147
4246
|
}
|
|
4148
4247
|
};
|
|
4149
4248
|
function useDemoShareCode(props) {
|
|
@@ -4212,7 +4311,7 @@ const ShareLink = class {
|
|
|
4212
4311
|
const props = index_module.isDemo()
|
|
4213
4312
|
? useDemoShareLink(thisProps)
|
|
4214
4313
|
: ShadowViewAddon.useShareLink(thisProps);
|
|
4215
|
-
return index.h(
|
|
4314
|
+
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
4216
4315
|
}
|
|
4217
4316
|
};
|
|
4218
4317
|
function useDemoShareLink(props) {
|
|
@@ -4270,10 +4369,10 @@ const SEND_EVENT = index_module.dist.gql `
|
|
|
4270
4369
|
}
|
|
4271
4370
|
`;
|
|
4272
4371
|
function useTaskCard(props) {
|
|
4273
|
-
const user = index_module.
|
|
4274
|
-
const locale = index_module.
|
|
4275
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module
|
|
4276
|
-
const { refresh } = index_module.
|
|
4372
|
+
const user = index_module.K();
|
|
4373
|
+
const locale = index_module.Q();
|
|
4374
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.xe(SEND_EVENT);
|
|
4375
|
+
const { refresh } = index_module.Ye();
|
|
4277
4376
|
stencilHooks_module.useEffect(() => {
|
|
4278
4377
|
if (data) {
|
|
4279
4378
|
refresh();
|
|
@@ -4486,7 +4585,7 @@ const Gift = () => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24
|
|
|
4486
4585
|
const Circle = () => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
4487
4586
|
index.h("circle", { cx: "12", cy: "12", r: "9", fill: "currentColor", stroke: "currentColor", "stroke-width": "2" })));
|
|
4488
4587
|
|
|
4489
|
-
const style$
|
|
4588
|
+
const style$5 = {
|
|
4490
4589
|
TimelineReward: {
|
|
4491
4590
|
color: "var(--sl-color-neutral-900)",
|
|
4492
4591
|
lineHeight: "var(--sl-line-height-dense)",
|
|
@@ -4529,8 +4628,8 @@ const style$3 = {
|
|
|
4529
4628
|
},
|
|
4530
4629
|
},
|
|
4531
4630
|
};
|
|
4532
|
-
const sheet$
|
|
4533
|
-
const styleString$
|
|
4631
|
+
const sheet$5 = JSS.createStyleSheet(style$5);
|
|
4632
|
+
const styleString$5 = sheet$5.toString();
|
|
4534
4633
|
const vanillaStyle$2 = `
|
|
4535
4634
|
:host{
|
|
4536
4635
|
display: block;
|
|
@@ -4543,9 +4642,9 @@ const vanillaStyle$2 = `
|
|
|
4543
4642
|
function TimelineEntryView(props) {
|
|
4544
4643
|
var _a;
|
|
4545
4644
|
const timeline_icon = (_a = props.icon) !== null && _a !== void 0 ? _a : props.iconState;
|
|
4546
|
-
return (index.h("div", { class: sheet$
|
|
4645
|
+
return (index.h("div", { class: sheet$5.classes.TimelineReward, part: "sqm-base" },
|
|
4547
4646
|
index.h("style", { type: "text/css" },
|
|
4548
|
-
styleString$
|
|
4647
|
+
styleString$5,
|
|
4549
4648
|
vanillaStyle$2),
|
|
4550
4649
|
index.h("div", { class: "container", part: "sqm-entry-container" },
|
|
4551
4650
|
index.h("div", { class: "line" }, "/"),
|
|
@@ -4594,8 +4693,8 @@ const GET_USER_NAME = index_module.dist.gql `
|
|
|
4594
4693
|
`;
|
|
4595
4694
|
function useUserName(props) {
|
|
4596
4695
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4597
|
-
const user = index_module.
|
|
4598
|
-
const res = index_module.
|
|
4696
|
+
const user = index_module.K();
|
|
4697
|
+
const res = index_module.En(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4599
4698
|
const loading = res.loading;
|
|
4600
4699
|
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)
|
|
4601
4700
|
? `${(_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}`
|
|
@@ -4653,6 +4752,8 @@ exports.sqm_leaderboard = Leaderboard;
|
|
|
4653
4752
|
exports.sqm_link_button = LinkButton;
|
|
4654
4753
|
exports.sqm_name_fields = NameFields;
|
|
4655
4754
|
exports.sqm_navigation_menu = NavigationMenu;
|
|
4755
|
+
exports.sqm_payout_button_scroll = PayoutButtonScroll;
|
|
4756
|
+
exports.sqm_payout_status_alert = PayoutStatusAlert;
|
|
4656
4757
|
exports.sqm_portal_change_password = PortalChangePassword;
|
|
4657
4758
|
exports.sqm_portal_footer = PortalFooter;
|
|
4658
4759
|
exports.sqm_portal_frame = PortalFrame;
|
|
@@ -4665,7 +4766,6 @@ exports.sqm_referral_card = ReferralCard;
|
|
|
4665
4766
|
exports.sqm_referral_iframe = SqmReferralIframe;
|
|
4666
4767
|
exports.sqm_reward_exchange_list = SqmRewardExchangeList;
|
|
4667
4768
|
exports.sqm_router = SqmRouter;
|
|
4668
|
-
exports.sqm_scroll = Scroll;
|
|
4669
4769
|
exports.sqm_share_button = ShareButton;
|
|
4670
4770
|
exports.sqm_share_code = ShareCode;
|
|
4671
4771
|
exports.sqm_share_link = ShareLink;
|