@saasquatch/mint-components 1.11.0-7 → 1.11.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-ba87315e.js → ShadowViewAddon-c3e91cee.js} +103 -79
- package/dist/cjs/{email-registration-view-5170d9f1.js → email-registration-view-248652bb.js} +1 -1
- package/dist/cjs/{global-0e1b8019.js → global-02e50f09.js} +12 -163
- package/dist/cjs/{index.module-2d82a984.js → index.module-df530553.js} +244 -1444
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-20eafbd9.js → luxon-05098e19.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-3c470512.js → mockRewardData-4258e067.js} +1 -1
- package/dist/cjs/{re-render-7744b75a.js → re-render-1976e05e.js} +5 -5
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +522 -493
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +174 -134
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +14 -7
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-invoice-table-view-e75291d8.js → sqm-invoice-table-view-e3b03a00.js} +3 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +11 -12
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +17 -19
- package/dist/cjs/{sqm-navigation-sidebar-item-view-34d8941e.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-5fb2ad49.js → sqm-portal-container-view-990a85a3.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-a056e53e.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-c1753d1a.js → sqm-portal-profile-view-fde54e35.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +14 -15
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +11 -12
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -10
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +16 -17
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +7 -7
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +66 -67
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +226 -106
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/{stencil-hooks.module-a5a04d8a.js → stencil-hooks.module-72742a0b.js} +4 -1
- package/dist/cjs/{useChildElements-079a23aa.js → useChildElements-e0d44916.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-615a4dec.js → useInstantAccessRegistration-bbe746d1.js} +4 -4
- package/dist/cjs/{useReferralTable-034e8eb1.js → useReferralTable-a76adb0d.js} +19 -20
- package/dist/cjs/{useRegistrationFormState-cabaa291.js → useRegistrationFormState-876ed65d.js} +3 -3
- package/dist/cjs/{utilities-a4072d5b.js → utilities-cec9dd36.js} +2 -2
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image.js +20 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +130 -24
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +55 -29
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +93 -29
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -4
- package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +9 -10
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +19 -7
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +37 -0
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +0 -2
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +2 -2
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +0 -1
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +2 -2
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +1 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +1 -4
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +27 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +4 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +4 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +29 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +55 -32
- package/dist/collection/components/views/email-registration-view.js +1 -1
- package/dist/collection/global/global.js +1 -1
- package/dist/collection/stories/NewPortal.stories.js +1 -1
- package/dist/esm/{ShadowViewAddon-cebdd86a.js → ShadowViewAddon-e012b2aa.js} +77 -53
- package/dist/esm/{email-registration-view-07d80492.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm/{global-ce667547.js → global-04c7d3b5.js} +12 -163
- package/dist/esm/{index.module-cfe48b0e.js → index.module-def4aec5.js} +223 -1426
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm/{re-render-9f58806b.js → re-render-12fd274a.js} +5 -5
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +143 -114
- package/dist/esm/sqm-big-stat_38.entry.js +123 -83
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +11 -4
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +6 -6
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
- package/dist/esm/{sqm-invoice-table-view-bccf5bbc.js → sqm-invoice-table-view-6e13a323.js} +3 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -7
- package/dist/esm/sqm-logout-current-user.entry.js +12 -14
- package/dist/esm/{sqm-navigation-sidebar-item-view-407d8d6a.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +5 -5
- package/dist/esm/{sqm-portal-container-view-ab89c6cc.js → sqm-portal-container-view-6c582684.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-b8ba7573.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- 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 +3 -3
- package/dist/esm/{sqm-portal-profile-view-9cbfeaf9.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +8 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
- package/dist/esm/sqm-portal-registration-form.entry.js +9 -10
- package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +8 -9
- package/dist/esm/sqm-referral-table_11.entry.js +8 -9
- package/dist/esm/sqm-referred-registration.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +13 -14
- package/dist/esm/sqm-stencilbook.entry.js +224 -104
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm/{useChildElements-55ba77b1.js → useChildElements-32e1bda1.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-c8486b92.js → useInstantAccessRegistration-46b89952.js} +4 -4
- package/dist/esm/{useReferralTable-1671695f.js → useReferralTable-f4de0650.js} +10 -11
- package/dist/esm/{useRegistrationFormState-554eed2c.js → useRegistrationFormState-9fc1ac80.js} +3 -3
- package/dist/esm/{utilities-aa00400c.js → utilities-3f5bba22.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +1 -0
- package/dist/esm-es5/email-registration-view-a89a88bf.js +1 -0
- package/dist/esm-es5/global-04c7d3b5.js +285 -0
- package/dist/esm-es5/index.module-def4aec5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm-es5/{re-render-9f58806b.js → re-render-12fd274a.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_38.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-6e13a323.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-407d8d6a.js → sqm-navigation-sidebar-item-view-60ef06cc.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-container-view-6c582684.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-b8ba7573.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-9cbfeaf9.js → sqm-portal-profile-view-ffe955c8.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.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.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-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-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm-es5/useChildElements-32e1bda1.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +1 -0
- package/dist/esm-es5/useReferralTable-f4de0650.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +1 -0
- package/dist/esm-es5/{utilities-aa00400c.js → utilities-3f5bba22.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-01cfff8a.system.entry.js +1 -0
- package/dist/mint-components/p-021a735d.entry.js +1 -0
- package/dist/mint-components/p-02424350.system.js +1 -0
- package/dist/mint-components/p-03494732.entry.js +1 -0
- package/dist/mint-components/{p-a2189daf.system.entry.js → p-07f675ab.system.entry.js} +1 -1
- package/dist/mint-components/p-0b9fa97f.js +1 -0
- package/dist/mint-components/{p-94b397d0.system.js → p-0d8c53ac.system.js} +1 -1
- package/dist/mint-components/{p-d491eac5.js → p-10685090.js} +24 -24
- package/dist/mint-components/p-10e89d0a.entry.js +1 -0
- package/dist/mint-components/{p-a05a21b8.entry.js → p-137ea86e.entry.js} +1 -1
- package/dist/mint-components/{p-cdd04337.entry.js → p-178d2d2e.entry.js} +1 -1
- package/dist/mint-components/p-1c857edb.entry.js +33 -0
- package/dist/mint-components/p-1dd69917.system.entry.js +1 -0
- package/dist/mint-components/{p-9223640e.js → p-251e7567.js} +1 -1
- package/dist/mint-components/{p-0979f82e.system.js → p-2a414b2e.system.js} +2 -2
- package/dist/mint-components/p-2dd67762.entry.js +1 -0
- package/dist/mint-components/{p-a2fc8ec6.js → p-2ee2ebba.js} +4 -4
- package/dist/mint-components/{p-3912f9af.entry.js → p-3223ba7b.entry.js} +1 -1
- package/dist/mint-components/p-32d1d162.entry.js +1 -0
- package/dist/mint-components/p-35d84041.system.entry.js +1 -0
- package/dist/mint-components/{p-cb45d0a8.system.js → p-370a1a73.system.js} +1 -1
- package/dist/mint-components/{p-69ae3f41.system.js → p-3d4656bb.system.js} +1 -1
- package/dist/mint-components/p-3ec16698.entry.js +13 -0
- package/dist/mint-components/p-3f385f47.entry.js +223 -0
- package/dist/mint-components/{p-83a759a6.js → p-41a11a7f.js} +1 -1
- package/dist/mint-components/p-44787d6e.system.js +1 -0
- package/dist/mint-components/{p-2669e88d.system.entry.js → p-4502ed11.system.entry.js} +1 -1
- package/dist/mint-components/{p-2a82e591.js → p-4d233cd4.js} +1 -1
- package/dist/mint-components/{p-8c616b35.system.js → p-4df8f1d2.system.js} +1 -1
- package/dist/mint-components/p-4ea58025.system.entry.js +1 -0
- package/dist/mint-components/{p-9a02b093.entry.js → p-4edde470.entry.js} +1 -1
- package/dist/mint-components/p-509e29e6.js +1 -0
- package/dist/mint-components/p-51f517a2.js +1 -0
- package/dist/mint-components/{p-709c0d6d.entry.js → p-56f14840.entry.js} +1 -1
- package/dist/mint-components/{p-2f75d0c6.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-2c8c2ae9.system.js → p-59fe4ad1.system.js} +22 -22
- package/dist/mint-components/p-5b333fa8.system.entry.js +1 -0
- package/dist/mint-components/p-5be235f9.entry.js +1 -0
- package/dist/mint-components/{p-349315e6.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-a56fbe1f.system.entry.js → p-5f1c4160.system.entry.js} +1 -1
- package/dist/mint-components/p-61eab172.js +1 -0
- package/dist/mint-components/{p-0034b33b.system.js → p-674a64fe.system.js} +1 -1
- package/dist/mint-components/{p-95af445c.system.entry.js → p-6afb4f48.system.entry.js} +1 -1
- package/dist/mint-components/{p-db7b9e12.entry.js → p-6cef104b.entry.js} +1 -1
- package/dist/mint-components/p-7049e9b0.entry.js +1 -0
- package/dist/mint-components/p-711ba77e.system.entry.js +1 -0
- package/dist/mint-components/p-733825fa.system.entry.js +1 -0
- package/dist/mint-components/p-76b2506e.system.entry.js +1 -0
- package/dist/mint-components/p-770368bc.system.js +1 -0
- package/dist/mint-components/{p-fd8496a0.system.entry.js → p-7731f793.system.entry.js} +1 -1
- package/dist/mint-components/p-79191f88.entry.js +1 -0
- package/dist/mint-components/{p-7a1e23b0.entry.js → p-7f088154.entry.js} +1 -1
- package/dist/mint-components/{p-5464dd3c.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
- package/dist/mint-components/{p-747e6ce6.entry.js → p-86990110.entry.js} +1 -1
- package/dist/mint-components/p-8704937c.js +1248 -0
- package/dist/mint-components/{p-14beec1b.system.entry.js → p-88aac6a9.system.entry.js} +1 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
- package/dist/mint-components/{p-de9b0bcf.system.entry.js → p-8e907ac7.system.entry.js} +1 -1
- package/dist/mint-components/p-91669312.entry.js +1 -0
- package/dist/mint-components/p-95771f79.system.js +1 -0
- package/dist/mint-components/p-9c310991.system.entry.js +1 -0
- package/dist/mint-components/p-9df2fe24.entry.js +9 -0
- package/dist/mint-components/p-9f0629ba.system.entry.js +1 -0
- package/dist/mint-components/p-a1dba9a1.system.entry.js +1 -0
- package/dist/mint-components/p-a51533cb.system.js +1 -0
- package/dist/mint-components/p-a6a7dcaa.js +1 -0
- package/dist/mint-components/{p-ce23dbff.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
- package/dist/mint-components/p-a8f7cb95.js +1 -0
- package/dist/mint-components/{p-5f4a0d5a.entry.js → p-a9050eb0.entry.js} +1 -1
- package/dist/mint-components/p-aad11a68.entry.js +1 -0
- package/dist/mint-components/p-af062c8f.system.entry.js +1 -0
- package/dist/mint-components/{p-f0553edd.system.entry.js → p-afd366ae.system.entry.js} +1 -1
- package/dist/mint-components/p-b370fca8.system.js +1 -0
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +1 -0
- package/dist/mint-components/{p-8b37f9fa.entry.js → p-b4c52c5a.entry.js} +3 -3
- package/dist/mint-components/p-b5861974.system.entry.js +1 -0
- package/dist/mint-components/{p-bf161aff.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
- package/dist/mint-components/p-bb00db59.js +1 -0
- package/dist/mint-components/{p-74ba2bdd.system.entry.js → p-be4b748a.system.entry.js} +1 -1
- package/dist/mint-components/{p-e704842c.js → p-c7fd9e16.js} +1 -1
- package/dist/mint-components/p-c84659a3.system.js +1 -0
- package/dist/mint-components/p-c8878e79.entry.js +1 -0
- package/dist/mint-components/{p-4baf9ec9.entry.js → p-ce5afa40.entry.js} +1 -1
- package/dist/mint-components/{p-8d2d99b5.js → p-ce621bcc.js} +1 -1
- package/dist/mint-components/{p-e5299352.system.js → p-ce9e7c98.system.js} +1 -1
- package/dist/mint-components/{p-ad218d0b.system.entry.js → p-cf690d55.system.entry.js} +1 -1
- package/dist/mint-components/p-d495896f.system.entry.js +1 -0
- package/dist/mint-components/p-d8d2de11.entry.js +1 -0
- package/dist/mint-components/{p-5c602e84.entry.js → p-dd0d79bf.entry.js} +1 -1
- package/dist/mint-components/{p-553a92e2.system.js → p-dd7ee007.system.js} +1 -1
- package/dist/mint-components/p-e3735866.entry.js +11 -0
- package/dist/mint-components/p-e5a0c50e.entry.js +13 -0
- package/dist/mint-components/{p-92990ceb.js → p-eaada4da.js} +1 -1
- package/dist/mint-components/p-eba44835.system.entry.js +1 -0
- package/dist/mint-components/p-ec41d6a4.entry.js +174 -0
- package/dist/mint-components/{p-cc24f7e0.system.js → p-ed095674.system.js} +1 -1
- package/dist/mint-components/p-ed17e637.system.js +1 -0
- package/dist/mint-components/p-ed6ebd60.system.js +1 -0
- package/dist/mint-components/{p-7ab14d4b.system.entry.js → p-f0806232.system.entry.js} +1 -1
- package/dist/mint-components/{p-48704504.js → p-f3053c61.js} +1 -1
- package/dist/mint-components/{p-cfc4a126.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
- package/dist/mint-components/{p-79097c07.entry.js → p-fbdf0738.entry.js} +1 -1
- package/dist/mint-components/{p-1b24bb52.js → p-fd2c5407.js} +1 -1
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +1 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +5 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +5 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -4
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +23 -6
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +4 -2
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +7 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +0 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +2 -2
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +5 -0
- package/dist/types/components.d.ts +86 -14
- package/dist/types/saasquatch.d.ts +1 -1
- 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/index-56d1fa5b.js +0 -2227
- package/dist/esm/index-0c7b14c5.js +0 -2225
- package/dist/esm-es5/ShadowViewAddon-cebdd86a.js +0 -1
- package/dist/esm-es5/email-registration-view-07d80492.js +0 -1
- package/dist/esm-es5/global-ce667547.js +0 -285
- package/dist/esm-es5/index-0c7b14c5.js +0 -1
- package/dist/esm-es5/index.module-cfe48b0e.js +0 -53
- package/dist/esm-es5/sqm-invoice-table-view-bccf5bbc.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-ab89c6cc.js +0 -1
- package/dist/esm-es5/useChildElements-55ba77b1.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-c8486b92.js +0 -1
- package/dist/esm-es5/useReferralTable-1671695f.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-554eed2c.js +0 -1
- package/dist/mint-components/p-10036f16.js +0 -1
- package/dist/mint-components/p-1128f16d.entry.js +0 -187
- package/dist/mint-components/p-155e5795.entry.js +0 -1
- package/dist/mint-components/p-175cf117.system.entry.js +0 -1
- package/dist/mint-components/p-1bb39bf3.js +0 -1
- package/dist/mint-components/p-1c021084.system.js +0 -1
- package/dist/mint-components/p-1cb0c56c.js +0 -1
- package/dist/mint-components/p-22082cf5.entry.js +0 -1
- package/dist/mint-components/p-2c1ec58d.system.entry.js +0 -1
- package/dist/mint-components/p-2d713a4a.entry.js +0 -1
- package/dist/mint-components/p-37518555.system.entry.js +0 -1
- package/dist/mint-components/p-4e5ff6d5.system.entry.js +0 -1
- package/dist/mint-components/p-4fd5cde2.entry.js +0 -1
- package/dist/mint-components/p-55ba5de4.js +0 -42
- package/dist/mint-components/p-569acf5d.entry.js +0 -1
- package/dist/mint-components/p-5a9e6c23.system.js +0 -1
- package/dist/mint-components/p-5e346208.system.entry.js +0 -1
- package/dist/mint-components/p-5f4cf5f4.system.js +0 -53
- package/dist/mint-components/p-6361cd09.system.entry.js +0 -1
- package/dist/mint-components/p-65976f70.system.entry.js +0 -1
- package/dist/mint-components/p-6bf41e0d.system.js +0 -1
- package/dist/mint-components/p-6fbfd683.js +0 -1
- package/dist/mint-components/p-77150ca3.entry.js +0 -1
- package/dist/mint-components/p-7b0c819b.entry.js +0 -174
- package/dist/mint-components/p-81ef4d8d.system.entry.js +0 -1
- package/dist/mint-components/p-84a5feb6.js +0 -1
- package/dist/mint-components/p-858a87ce.entry.js +0 -1
- package/dist/mint-components/p-89669879.system.js +0 -1
- package/dist/mint-components/p-8a82d287.entry.js +0 -1
- package/dist/mint-components/p-8d0312ad.entry.js +0 -13
- package/dist/mint-components/p-922578e4.system.js +0 -1
- package/dist/mint-components/p-93c4b92a.system.js +0 -1
- package/dist/mint-components/p-93feb565.system.entry.js +0 -1
- package/dist/mint-components/p-97f9ea19.system.js +0 -1
- package/dist/mint-components/p-9c1011db.entry.js +0 -9
- package/dist/mint-components/p-a1dddd9c.entry.js +0 -1
- package/dist/mint-components/p-a230e0f7.entry.js +0 -1
- package/dist/mint-components/p-a63607fe.js +0 -1
- package/dist/mint-components/p-a6ad8082.system.js +0 -1
- package/dist/mint-components/p-a7e84030.js +0 -1248
- package/dist/mint-components/p-aa1750ad.js +0 -1
- package/dist/mint-components/p-b9e629c4.entry.js +0 -1
- package/dist/mint-components/p-ba9642a9.entry.js +0 -33
- package/dist/mint-components/p-cac64545.system.entry.js +0 -1
- package/dist/mint-components/p-cc2a5934.entry.js +0 -13
- package/dist/mint-components/p-cca80c2e.system.entry.js +0 -1
- package/dist/mint-components/p-cf8ccbf5.entry.js +0 -1
- package/dist/mint-components/p-d29db28c.system.entry.js +0 -1
- package/dist/mint-components/p-d5e0b017.entry.js +0 -9
- package/dist/mint-components/p-dbb74fc2.system.entry.js +0 -1
- package/dist/mint-components/p-e3ddb67b.system.entry.js +0 -1
- package/dist/mint-components/p-eb8cb617.system.js +0 -1
- package/dist/mint-components/p-ef4336c4.system.entry.js +0 -1
- package/dist/mint-components/p-fec47694.entry.js +0 -1
- package/dist/mint-components/p-ff87ca9c.system.entry.js +0 -1
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo,
|
|
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-04c7d3b5.js';
|
|
4
|
+
import { i as isDemo, _, d as dist, Q, H, f as $e, y as yn, B, L, g as gn, $ as $n, p as Ue, q as qe, x as xe, u as useCallback, r as ze, S as Sn } from './index.module-def4aec5.js';
|
|
5
|
+
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
7
|
import './mixins-f60a614c.js';
|
|
7
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
-
import { a as useRequestRerender } from './re-render-
|
|
9
|
-
import { u as useChildElements } from './useChildElements-
|
|
10
|
-
import './luxon-
|
|
11
|
-
import { d as dist } from './index-0c7b14c5.js';
|
|
9
|
+
import { a as useRequestRerender } from './re-render-12fd274a.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-32e1bda1.js';
|
|
11
|
+
import './luxon-7600be8d.js';
|
|
12
12
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
13
13
|
import './sqm-text-span-view-8d140661.js';
|
|
14
14
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { i as isEmpty } from './utilities-aa00400c.js';
|
|
15
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-9fc1ac80.js';
|
|
16
|
+
import { i as isEmpty } from './utilities-3f5bba22.js';
|
|
18
17
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
19
|
-
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-
|
|
20
|
-
import './sqm-portal-container-view-
|
|
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-e012b2aa.js';
|
|
19
|
+
import './sqm-portal-container-view-6c582684.js';
|
|
21
20
|
|
|
22
21
|
const BigStat = class {
|
|
23
22
|
constructor(hostRef) {
|
|
@@ -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 = _();
|
|
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 = _();
|
|
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 = Q();
|
|
302
|
+
const programId = H();
|
|
303
|
+
const engagementMedium = B();
|
|
304
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
305
|
+
const { data, loading, refetch, errors } = yn(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 = Q();
|
|
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 = yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
701
|
+
const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
|
|
703
702
|
useEffect(() => {
|
|
704
703
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
705
704
|
return;
|
|
@@ -1163,7 +1162,7 @@ function ImageView(props) {
|
|
|
1163
1162
|
},
|
|
1164
1163
|
Image: {
|
|
1165
1164
|
minHeight: props.minHeight || "100%",
|
|
1166
|
-
width: "100%",
|
|
1165
|
+
width: props.width || "100%",
|
|
1167
1166
|
maxWidth: "max-content",
|
|
1168
1167
|
objectFit: "cover",
|
|
1169
1168
|
},
|
|
@@ -1278,6 +1277,26 @@ const GET_LEADERBOARD = dist.gql `
|
|
|
1278
1277
|
}
|
|
1279
1278
|
}
|
|
1280
1279
|
`;
|
|
1280
|
+
const GET_LEADERBOARD_WITHOUT_NAMES = dist.gql `
|
|
1281
|
+
query (
|
|
1282
|
+
$type: String!
|
|
1283
|
+
$filter: UserLeaderboardFilterInput
|
|
1284
|
+
$locale: RSLocale
|
|
1285
|
+
$limit: Int!
|
|
1286
|
+
) {
|
|
1287
|
+
userLeaderboard(type: $type, filter: $filter) {
|
|
1288
|
+
dateModified
|
|
1289
|
+
rows(limit: $limit) {
|
|
1290
|
+
textValue(locale: $locale)
|
|
1291
|
+
rank {
|
|
1292
|
+
rank
|
|
1293
|
+
denseRank
|
|
1294
|
+
rowNumber
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
`;
|
|
1281
1300
|
const GET_RANK = dist.gql `
|
|
1282
1301
|
query (
|
|
1283
1302
|
$type: String!
|
|
@@ -1298,13 +1317,31 @@ const GET_RANK = dist.gql `
|
|
|
1298
1317
|
}
|
|
1299
1318
|
}
|
|
1300
1319
|
`;
|
|
1320
|
+
const GET_RANK_WITHOUT_NAMES = dist.gql `
|
|
1321
|
+
query (
|
|
1322
|
+
$type: String!
|
|
1323
|
+
$filter: UserLeaderboardFilterInput
|
|
1324
|
+
$locale: RSLocale
|
|
1325
|
+
) {
|
|
1326
|
+
viewer {
|
|
1327
|
+
... on User {
|
|
1328
|
+
leaderboardRank(type: $type, filter: $filter) {
|
|
1329
|
+
textValue(locale: $locale)
|
|
1330
|
+
rank
|
|
1331
|
+
denseRank
|
|
1332
|
+
rowNumber
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
`;
|
|
1301
1338
|
function useLeaderboard(props) {
|
|
1302
1339
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1303
|
-
const programIdContext =
|
|
1340
|
+
const programIdContext = H();
|
|
1304
1341
|
// Default to context, overriden by props
|
|
1305
1342
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1306
|
-
const user =
|
|
1307
|
-
const locale =
|
|
1343
|
+
const user = Q();
|
|
1344
|
+
const locale = L();
|
|
1308
1345
|
const variables = programId
|
|
1309
1346
|
? {
|
|
1310
1347
|
type: props.leaderboardType,
|
|
@@ -1323,8 +1360,8 @@ function useLeaderboard(props) {
|
|
|
1323
1360
|
if (props.maxRows > 0) {
|
|
1324
1361
|
variables["limit"] = props.maxRows;
|
|
1325
1362
|
}
|
|
1326
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } =
|
|
1327
|
-
const { data: rankData } =
|
|
1363
|
+
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = yn(props.hideNames ? GET_LEADERBOARD_WITHOUT_NAMES : GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
|
|
1364
|
+
const { data: rankData } = yn(props.hideNames ? GET_RANK_WITHOUT_NAMES : GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1328
1365
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1329
1366
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1330
1367
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1368,8 +1405,6 @@ function useLeaderboard(props) {
|
|
|
1368
1405
|
},
|
|
1369
1406
|
elements: {
|
|
1370
1407
|
empty: props.empty,
|
|
1371
|
-
essentials: props.essentials,
|
|
1372
|
-
loadingstate: props.loadingstate,
|
|
1373
1408
|
},
|
|
1374
1409
|
};
|
|
1375
1410
|
}
|
|
@@ -1377,6 +1412,12 @@ function useLeaderboard(props) {
|
|
|
1377
1412
|
const Leaderboard = class {
|
|
1378
1413
|
constructor(hostRef) {
|
|
1379
1414
|
registerInstance(this, hostRef);
|
|
1415
|
+
/**
|
|
1416
|
+
* Restrict the width of the leaderboard (Can be a pixel value or a percentage i.e. "500px", "33%", etc.)
|
|
1417
|
+
*
|
|
1418
|
+
* @uiName Width
|
|
1419
|
+
*/
|
|
1420
|
+
this.width = "100%";
|
|
1380
1421
|
/**
|
|
1381
1422
|
* Hide the viewer's leaderboard row if not in the top results.
|
|
1382
1423
|
*
|
|
@@ -1385,12 +1426,16 @@ const Leaderboard = class {
|
|
|
1385
1426
|
*/
|
|
1386
1427
|
this.hideViewer = false;
|
|
1387
1428
|
/**
|
|
1388
|
-
*
|
|
1429
|
+
* @uiName Viewing user text
|
|
1430
|
+
*/
|
|
1431
|
+
this.viewingUserText = "You";
|
|
1432
|
+
/**
|
|
1433
|
+
* Hide the Names of users to protect personal identifiable information
|
|
1389
1434
|
*
|
|
1390
|
-
* @uiName Hide
|
|
1435
|
+
* @uiName Hide users names
|
|
1391
1436
|
* @default
|
|
1392
1437
|
*/
|
|
1393
|
-
this.
|
|
1438
|
+
this.hideNames = false;
|
|
1394
1439
|
/**
|
|
1395
1440
|
* Title displayed for users without names
|
|
1396
1441
|
* @uiName Unknown user text
|
|
@@ -1410,8 +1455,6 @@ const Leaderboard = class {
|
|
|
1410
1455
|
render() {
|
|
1411
1456
|
const props = {
|
|
1412
1457
|
empty: h$1(EmptySlot, null),
|
|
1413
|
-
essentials: h$1(EssentialsSlot, null),
|
|
1414
|
-
loadingstate: h$1(LoadingSlot, null),
|
|
1415
1458
|
usersheading: this.usersheading,
|
|
1416
1459
|
statsheading: this.statsheading,
|
|
1417
1460
|
rankheading: this.rankheading,
|
|
@@ -1422,8 +1465,11 @@ const Leaderboard = class {
|
|
|
1422
1465
|
anonymousUser: this.anonymousUser,
|
|
1423
1466
|
interval: this.interval,
|
|
1424
1467
|
hideViewer: this.hideViewer,
|
|
1468
|
+
viewingUserText: this.viewingUserText,
|
|
1469
|
+
hideNames: this.hideNames,
|
|
1425
1470
|
showRank: this.showRank,
|
|
1426
|
-
|
|
1471
|
+
rankSuffix: this.rankSuffix,
|
|
1472
|
+
width: this.width,
|
|
1427
1473
|
};
|
|
1428
1474
|
const demoProps = { ...props, demoData: this.demoData };
|
|
1429
1475
|
const viewprops = isDemo()
|
|
@@ -1435,14 +1481,6 @@ const Leaderboard = class {
|
|
|
1435
1481
|
function EmptySlot() {
|
|
1436
1482
|
return (h$1("slot", { name: "empty" }, h$1("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png", "empty-state-header": "View your rank in the leaderboard", "empty-state-text": "Be the first to refer a friend and reach the top of the leaderboard" })));
|
|
1437
1483
|
}
|
|
1438
|
-
function EssentialsSlot() {
|
|
1439
|
-
return (h$1("slot", { name: "essentials" }, h$1("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg", "empty-state-header": "Leaderboards aren\u2019t available on your plan", "empty-state-text": "Contact {supportText} to upgrade your plan and start leveraging gamification in your program.", "support-text": "Support", "missing-feature": "Leaderboards" })));
|
|
1440
|
-
}
|
|
1441
|
-
function LoadingSlot() {
|
|
1442
|
-
return (h$1("slot", { name: "loading" }, h$1("table", null, [...Array(10)].map(() => {
|
|
1443
|
-
return (h$1("tr", null, h$1("td", null, h$1("sl-skeleton", null))));
|
|
1444
|
-
}))));
|
|
1445
|
-
}
|
|
1446
1484
|
function useLeaderboardDemo(props) {
|
|
1447
1485
|
var _a, _b;
|
|
1448
1486
|
const data = ((_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.leaderboard) || [
|
|
@@ -1498,6 +1536,10 @@ function useLeaderboardDemo(props) {
|
|
|
1498
1536
|
: "Anonymous User",
|
|
1499
1537
|
showRank: props.showRank,
|
|
1500
1538
|
hideViewer: props.hideViewer,
|
|
1539
|
+
viewingUserText: props.viewingUserText,
|
|
1540
|
+
hideNames: props.hideNames,
|
|
1541
|
+
rankSuffix: props.rankSuffix,
|
|
1542
|
+
width: props.width,
|
|
1501
1543
|
},
|
|
1502
1544
|
},
|
|
1503
1545
|
data: {
|
|
@@ -1506,8 +1548,6 @@ function useLeaderboardDemo(props) {
|
|
|
1506
1548
|
},
|
|
1507
1549
|
elements: {
|
|
1508
1550
|
empty: h$1(EmptySlot, null),
|
|
1509
|
-
essentials: h$1(EssentialsSlot, null),
|
|
1510
|
-
loadingstate: h$1(LoadingSlot, null),
|
|
1511
1551
|
},
|
|
1512
1552
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1513
1553
|
}
|
|
@@ -1619,12 +1659,12 @@ function NavigationMenuView(props) {
|
|
|
1619
1659
|
}
|
|
1620
1660
|
|
|
1621
1661
|
function handleMenu(e) {
|
|
1622
|
-
|
|
1662
|
+
$n.push(e.detail.item.value);
|
|
1623
1663
|
}
|
|
1624
1664
|
function useNavigationMenu(props) {
|
|
1625
1665
|
const ref = useRef();
|
|
1626
|
-
const [, rerender] =
|
|
1627
|
-
const user =
|
|
1666
|
+
const [, rerender] = gn();
|
|
1667
|
+
const user = Q();
|
|
1628
1668
|
useEffect(() => {
|
|
1629
1669
|
var _a;
|
|
1630
1670
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1678,11 +1718,11 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
1678
1718
|
|
|
1679
1719
|
function usePortalChangePassword(props) {
|
|
1680
1720
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1681
|
-
const [request, { loading, errors, data }] =
|
|
1721
|
+
const [request, { loading, errors, data }] = Ue();
|
|
1682
1722
|
const [open, setOpen] = useState(false);
|
|
1683
1723
|
const [error, setError] = useState("");
|
|
1684
1724
|
const [success, setSuccess] = useState(false);
|
|
1685
|
-
const user =
|
|
1725
|
+
const user = Q();
|
|
1686
1726
|
const submit = async (event) => {
|
|
1687
1727
|
var _a, _b;
|
|
1688
1728
|
setSuccess(false);
|
|
@@ -1924,7 +1964,7 @@ const PortalFooter = class {
|
|
|
1924
1964
|
};
|
|
1925
1965
|
|
|
1926
1966
|
function usePortalFrame(footerContent, headerContent) {
|
|
1927
|
-
const [, rerender] =
|
|
1967
|
+
const [, rerender] = gn();
|
|
1928
1968
|
return {
|
|
1929
1969
|
data: {
|
|
1930
1970
|
footer: footerContent,
|
|
@@ -1974,9 +2014,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
1974
2014
|
|
|
1975
2015
|
function usePortalLogin(props) {
|
|
1976
2016
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1977
|
-
const [request, { loading, errors, data }] =
|
|
2017
|
+
const [request, { loading, errors, data }] = qe();
|
|
1978
2018
|
const [error, setError] = useState("");
|
|
1979
|
-
const urlParams = new URLSearchParams(
|
|
2019
|
+
const urlParams = new URLSearchParams($n.location.search);
|
|
1980
2020
|
const nextPageOverride = urlParams.get("nextPage");
|
|
1981
2021
|
const submit = async (event) => {
|
|
1982
2022
|
var _a, _b;
|
|
@@ -1995,7 +2035,7 @@ function usePortalLogin(props) {
|
|
|
1995
2035
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
1996
2036
|
urlParams.delete("nextPage");
|
|
1997
2037
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
1998
|
-
|
|
2038
|
+
$n.push(url.href);
|
|
1999
2039
|
}
|
|
2000
2040
|
};
|
|
2001
2041
|
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) ||
|
|
@@ -2074,8 +2114,8 @@ const PortalLogin = class {
|
|
|
2074
2114
|
? useLoginDemo(this)
|
|
2075
2115
|
: usePortalLogin(this);
|
|
2076
2116
|
const content = {
|
|
2077
|
-
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () =>
|
|
2078
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2117
|
+
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => $n.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2118
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.registerPath) }, this.registerLabel))),
|
|
2079
2119
|
emailLabel: this.emailLabel,
|
|
2080
2120
|
passwordLabel: this.passwordLabel,
|
|
2081
2121
|
submitLabel: this.submitLabel,
|
|
@@ -2104,7 +2144,7 @@ function usePortalRegister(props) {
|
|
|
2104
2144
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2105
2145
|
const formRef = useRef(null);
|
|
2106
2146
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
2107
|
-
const [request, { loading, errors, data }] =
|
|
2147
|
+
const [request, { loading, errors, data }] = xe();
|
|
2108
2148
|
useEffect(() => {
|
|
2109
2149
|
if (!formRef.current)
|
|
2110
2150
|
return;
|
|
@@ -2177,7 +2217,7 @@ function usePortalRegister(props) {
|
|
|
2177
2217
|
validationErrors: {},
|
|
2178
2218
|
});
|
|
2179
2219
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2180
|
-
|
|
2220
|
+
$n.push(props.nextPage);
|
|
2181
2221
|
}
|
|
2182
2222
|
}
|
|
2183
2223
|
catch (error) {
|
|
@@ -2351,7 +2391,7 @@ const PortalRegister = class {
|
|
|
2351
2391
|
: usePortalRegister(this);
|
|
2352
2392
|
const content = {
|
|
2353
2393
|
formData: h$1("slot", { name: "formData" }),
|
|
2354
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2394
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath) }, this.loginLabel))),
|
|
2355
2395
|
terms: h$1("slot", { name: "terms" }),
|
|
2356
2396
|
emailLabel: this.emailLabel,
|
|
2357
2397
|
passwordLabel: this.passwordLabel,
|
|
@@ -2522,11 +2562,11 @@ const ProgramExplainerStep = class {
|
|
|
2522
2562
|
const debug = browser("sq:useProgramMenu");
|
|
2523
2563
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2524
2564
|
function useProgramMenu(props) {
|
|
2525
|
-
const programId =
|
|
2526
|
-
const host =
|
|
2565
|
+
const programId = H();
|
|
2566
|
+
const host = _();
|
|
2527
2567
|
debug({ programId, props });
|
|
2528
2568
|
const ref = useRef();
|
|
2529
|
-
const [, rerender] =
|
|
2569
|
+
const [, rerender] = gn();
|
|
2530
2570
|
useEffect(() => {
|
|
2531
2571
|
var _a;
|
|
2532
2572
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2704,9 +2744,9 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
2704
2744
|
`;
|
|
2705
2745
|
function useReferralIframe(props) {
|
|
2706
2746
|
var _a;
|
|
2707
|
-
const programId =
|
|
2708
|
-
const user =
|
|
2709
|
-
const { data } =
|
|
2747
|
+
const programId = H();
|
|
2748
|
+
const user = Q();
|
|
2749
|
+
const { data } = yn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2710
2750
|
return {
|
|
2711
2751
|
states: {
|
|
2712
2752
|
content: props,
|
|
@@ -3431,9 +3471,9 @@ function useRewardExchangeList(props) {
|
|
|
3431
3471
|
});
|
|
3432
3472
|
const [open, setOpen] = useState(false);
|
|
3433
3473
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3434
|
-
const user =
|
|
3435
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] =
|
|
3436
|
-
const { data, loading, refetch, errors: queryError, } =
|
|
3474
|
+
const user = Q();
|
|
3475
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = $e(EXCHANGE);
|
|
3476
|
+
const { data, loading, refetch, errors: queryError, } = yn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3437
3477
|
useEffect(() => {
|
|
3438
3478
|
var _a, _b;
|
|
3439
3479
|
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) {
|
|
@@ -3452,7 +3492,7 @@ function useRewardExchangeList(props) {
|
|
|
3452
3492
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3453
3493
|
canvas.confetti();
|
|
3454
3494
|
}, [canvasRef.current]);
|
|
3455
|
-
const { refresh } =
|
|
3495
|
+
const { refresh } = ze();
|
|
3456
3496
|
async function exchangeReward() {
|
|
3457
3497
|
if (!selectedItem)
|
|
3458
3498
|
return;
|
|
@@ -3760,8 +3800,8 @@ function matchPath(pattern, page) {
|
|
|
3760
3800
|
return regexp.exec(page);
|
|
3761
3801
|
}
|
|
3762
3802
|
function useRouter() {
|
|
3763
|
-
const location =
|
|
3764
|
-
const host =
|
|
3803
|
+
const location = Sn();
|
|
3804
|
+
const host = _();
|
|
3765
3805
|
const [slot, setSlot] = useState(undefined);
|
|
3766
3806
|
const [container, setContainer] = useState(undefined);
|
|
3767
3807
|
const page = location.pathname;
|
|
@@ -4022,11 +4062,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = dist.gql `
|
|
|
4022
4062
|
`;
|
|
4023
4063
|
function useShareCode(props) {
|
|
4024
4064
|
var _a, _b;
|
|
4025
|
-
const { programId =
|
|
4026
|
-
const user =
|
|
4027
|
-
const engagementMedium =
|
|
4028
|
-
const { data } =
|
|
4029
|
-
const [sendLoadEvent] =
|
|
4065
|
+
const { programId = H() } = props;
|
|
4066
|
+
const user = Q();
|
|
4067
|
+
const engagementMedium = B();
|
|
4068
|
+
const { data } = yn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4069
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4030
4070
|
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 :
|
|
4031
4071
|
// Shown during loading
|
|
4032
4072
|
"...";
|
|
@@ -4225,10 +4265,10 @@ const SEND_EVENT = dist.gql `
|
|
|
4225
4265
|
}
|
|
4226
4266
|
`;
|
|
4227
4267
|
function useTaskCard(props) {
|
|
4228
|
-
const user =
|
|
4229
|
-
const locale =
|
|
4230
|
-
const [sendUserEvent, { data, loading: loadingEvent }] =
|
|
4231
|
-
const { refresh } =
|
|
4268
|
+
const user = Q();
|
|
4269
|
+
const locale = L();
|
|
4270
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = $e(SEND_EVENT);
|
|
4271
|
+
const { refresh } = ze();
|
|
4232
4272
|
useEffect(() => {
|
|
4233
4273
|
if (data) {
|
|
4234
4274
|
refresh();
|
|
@@ -4549,8 +4589,8 @@ const GET_USER_NAME = dist.gql `
|
|
|
4549
4589
|
`;
|
|
4550
4590
|
function useUserName(props) {
|
|
4551
4591
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4552
|
-
const user =
|
|
4553
|
-
const res =
|
|
4592
|
+
const user = Q();
|
|
4593
|
+
const res = yn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4554
4594
|
const loading = res.loading;
|
|
4555
4595
|
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)
|
|
4556
4596
|
? `${(_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}`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
+
import { a as getEnvironmentSDK } from './index.module-def4aec5.js';
|
|
4
4
|
import './mixins-f60a614c.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { C as CloseButtonView } from './sqm-close-button-view-dc65b4e3.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { b as browser,
|
|
3
|
-
import {
|
|
2
|
+
import { b as browser, k as useState, i as d, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
+
import { _ } from './index.module-def4aec5.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ function matchPath(pattern, page) {
|
|
|
12
12
|
return regexp.exec(page);
|
|
13
13
|
}
|
|
14
14
|
function useContextRouter(props) {
|
|
15
|
-
const host =
|
|
15
|
+
const host = _();
|
|
16
16
|
const [slot, setSlot] = useState(undefined);
|
|
17
17
|
const [container, setContainer] = useState(undefined);
|
|
18
18
|
const context = props.contextName;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import './index.module-
|
|
2
|
+
import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import './index.module-def4aec5.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
|
-
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-
|
|
7
|
+
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
|
|
8
8
|
|
|
9
9
|
function EmptyStateView(props) {
|
|
10
10
|
const { emptyStateHeader, emptyStateImage, emptyStateText, supportText, missingFeature = "", } = props;
|
|
@@ -67,6 +67,13 @@ const PortalContainer = class {
|
|
|
67
67
|
* @uiName Maximum width
|
|
68
68
|
*/
|
|
69
69
|
this.maxWidth = "100%";
|
|
70
|
+
/**
|
|
71
|
+
* @uiName Flex wrap behavior
|
|
72
|
+
* @uiType string
|
|
73
|
+
* @uiEnum ["wrap", "nowrap"]
|
|
74
|
+
* @uiEnumNames ["Wrap", "No Wrap"]
|
|
75
|
+
*/
|
|
76
|
+
this.flexWrap = "wrap";
|
|
70
77
|
/**
|
|
71
78
|
* @uiName Background color
|
|
72
79
|
* @uiWidget color
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
2
|
+
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
3
|
|
|
4
4
|
const sqmFormMessageCss = "sl-alert::part(base){border:1px solid;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(20, 20, 20, 0.1);box-shadow:0 1px 2px rgba(20, 20, 20, 0.1)}.Error::part(base){background-color:var(--sl-color-danger-100);border-color:var(--sl-color-danger-200)}.Warning::part(base){background-color:var(--sl-color-warning-100);border-color:var(--sl-color-warning-200)}.Success::part(base){background-color:var(--sl-color-success-100);border-color:var(--sl-color-success-200)}.Info::part(base){background-color:var(--sl-color-primary-100);border-color:var(--sl-color-primary-200)}";
|
|
5
5
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { m,
|
|
3
|
-
import {
|
|
2
|
+
import { o as m, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
+
import { J, E as Ee, z, P as Pe } from './index.module-def4aec5.js';
|
|
4
4
|
|
|
5
5
|
async function useGraphQLClientProvider({ domain }) {
|
|
6
|
-
const token =
|
|
6
|
+
const token = J();
|
|
7
7
|
const appDomain = domain;
|
|
8
|
-
const tenantAlias =
|
|
8
|
+
const tenantAlias = z();
|
|
9
9
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
10
|
-
const managedIdentityClient =
|
|
11
|
-
const [, setGraphQLClient] = m(
|
|
10
|
+
const managedIdentityClient = Ee(appDomain, tenantAlias, token);
|
|
11
|
+
const [, setGraphQLClient] = m(Pe, managedIdentityClient);
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
setGraphQLClient(managedIdentityClient);
|
|
14
14
|
}, [managedIdentityClient]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import { i as isDemo,
|
|
2
|
+
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
+
import { i as isDemo, b as setUserIdentity } from './index.module-def4aec5.js';
|
|
4
|
+
import './jsonpointer-388a7082.js';
|
|
4
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
6
|
import './mixins-f60a614c.js';
|
|
6
7
|
import './JSS-67b5cff8.js';
|
|
7
|
-
import { E as EmailRegistrationView } from './email-registration-view-
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-c8486b92.js';
|
|
8
|
+
import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.js';
|
|
9
|
+
import './useRegistrationFormState-9fc1ac80.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46b89952.js';
|
|
11
11
|
|
|
12
12
|
const InstantAccessRegistration = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
|
|
5
5
|
const INDIRECT_TAX_PROVINCES = [
|
|
@@ -721,6 +721,7 @@ const stepFourProps = {
|
|
|
721
721
|
};
|
|
722
722
|
const docusignFormProps = {
|
|
723
723
|
states: {
|
|
724
|
+
showExitButton: true,
|
|
724
725
|
step: "3",
|
|
725
726
|
urlLoading: false,
|
|
726
727
|
docusignStatus: undefined,
|
|
@@ -738,7 +739,7 @@ const docusignFormProps = {
|
|
|
738
739
|
},
|
|
739
740
|
},
|
|
740
741
|
callbacks: {
|
|
741
|
-
|
|
742
|
+
onExit: () => { },
|
|
742
743
|
completeDocument: async () => { },
|
|
743
744
|
setParticipantType: (p) => console.log({ p }),
|
|
744
745
|
setDocusignStatus: (status) => console.log(status),
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import {
|
|
2
|
+
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import { d as dist, H, Q, y as yn, i as isDemo } from './index.module-def4aec5.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
|
-
import { d as dist } from './index-0c7b14c5.js';
|
|
7
6
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
|
|
8
7
|
|
|
9
8
|
const GET_RANK = dist.gql `
|
|
@@ -21,10 +20,10 @@ const GET_RANK = dist.gql `
|
|
|
21
20
|
`;
|
|
22
21
|
function useLeaderboardRank(props) {
|
|
23
22
|
var _a, _b, _c, _d;
|
|
24
|
-
const programIdContext =
|
|
23
|
+
const programIdContext = H();
|
|
25
24
|
// Default to context, overriden by props
|
|
26
25
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
27
|
-
const user =
|
|
26
|
+
const user = Q();
|
|
28
27
|
const rankVariables = programId
|
|
29
28
|
? {
|
|
30
29
|
type: props.leaderboardType,
|
|
@@ -37,7 +36,7 @@ function useLeaderboardRank(props) {
|
|
|
37
36
|
if (props.interval) {
|
|
38
37
|
rankVariables.filter["interval"] = props.interval;
|
|
39
38
|
}
|
|
40
|
-
const { data: rankData } =
|
|
39
|
+
const { data: rankData } = yn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
41
40
|
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
42
41
|
rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
|
|
43
42
|
})
|