@saasquatch/mint-components 1.12.0-8 → 1.12.1-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-040cffad.js → ShadowViewAddon-c3e91cee.js} +22 -25
- package/dist/cjs/{global-c3637175.js → global-02e50f09.js} +2 -2
- package/dist/cjs/{index.module-b8d9d0ba.js → index.module-df530553.js} +18 -55
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-5bde3d2e.js → re-render-1976e05e.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +139 -224
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +218 -386
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-invoice-table-view-5d3a2d35.js → sqm-invoice-table-view-e3b03a00.js} +1 -59
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-fde54e35.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form-view-621348a6.js +85 -0
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +13 -88
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +10 -10
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +366 -377
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/{useChildElements-410d2435.js → useChildElements-e0d44916.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-bbe746d1.js} +3 -3
- package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-a76adb0d.js} +9 -9
- package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-876ed65d.js} +2 -2
- package/dist/cjs/{utilities-f7de6c04.js → utilities-cec9dd36.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -6
- package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -6
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +5 -5
- package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +11 -0
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +160 -0
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +5 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -8
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -2
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -56
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -5
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -101
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -15
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +0 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +9 -10
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +11 -14
- package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-e012b2aa.js} +22 -25
- package/dist/esm/{global-6306a9b8.js → global-04c7d3b5.js} +2 -2
- package/dist/esm/{index.module-6c840c4e.js → index.module-def4aec5.js} +3 -40
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-1bcfd0de.js → re-render-12fd274a.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +138 -223
- package/dist/esm/sqm-big-stat_39.entry.js +217 -385
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-invoice-table-view-e9075c0b.js → sqm-invoice-table-view-6e13a323.js} +1 -59
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +3 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +8 -8
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +7 -7
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form-view-1d3066e1.js +83 -0
- package/dist/esm/sqm-portal-registration-form.entry.js +18 -93
- package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
- package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +10 -10
- package/dist/esm/sqm-stencilbook.entry.js +366 -377
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm/{useChildElements-fc84e640.js → useChildElements-32e1bda1.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-46b89952.js} +3 -3
- package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-f4de0650.js} +9 -9
- package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-9fc1ac80.js} +2 -2
- package/dist/esm/{utilities-443732be.js → utilities-3f5bba22.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +1 -0
- package/dist/esm-es5/{global-6306a9b8.js → global-04c7d3b5.js} +2 -2
- package/dist/esm-es5/index.module-def4aec5.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-1bcfd0de.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_39.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-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-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-60ef06cc.js +1 -0
- 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-c6ac5430.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-15ddbec8.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-view-1d3066e1.js +1 -0
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-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/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm-es5/{useChildElements-fc84e640.js → useChildElements-32e1bda1.js} +1 -1
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +1 -0
- package/dist/esm-es5/{useReferralTable-f6ffa103.js → useReferralTable-f4de0650.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +1 -0
- package/dist/esm-es5/{utilities-443732be.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-f450654b.system.entry.js → p-01cfff8a.system.entry.js} +1 -1
- package/dist/mint-components/{p-94454880.entry.js → p-021a735d.entry.js} +1 -1
- package/dist/mint-components/{p-ac51940e.system.js → p-02424350.system.js} +1 -1
- package/dist/mint-components/p-03494732.entry.js +1 -0
- package/dist/mint-components/{p-59818690.system.entry.js → p-07f675ab.system.entry.js} +1 -1
- package/dist/mint-components/{p-11d1b212.js → p-0b9fa97f.js} +1 -1
- package/dist/mint-components/{p-5becb2ff.system.js → p-0d8c53ac.system.js} +1 -1
- package/dist/mint-components/{p-9eae245f.js → p-10685090.js} +4 -7
- package/dist/mint-components/p-10e89d0a.entry.js +1 -0
- package/dist/mint-components/{p-012daf3c.entry.js → p-137ea86e.entry.js} +1 -1
- package/dist/mint-components/p-1c857edb.entry.js +33 -0
- package/dist/mint-components/{p-e12d3414.system.entry.js → p-1dd69917.system.entry.js} +1 -1
- package/dist/mint-components/p-2a414b2e.system.js +2 -2
- package/dist/mint-components/{p-d468925f.entry.js → p-2dd67762.entry.js} +1 -1
- package/dist/mint-components/{p-1d27da33.js → p-2ee2ebba.js} +2 -2
- package/dist/mint-components/{p-84b25a46.entry.js → p-3223ba7b.entry.js} +1 -1
- package/dist/mint-components/{p-f4cbbe47.entry.js → p-32d1d162.entry.js} +1 -1
- package/dist/mint-components/{p-cb433855.system.entry.js → p-35d84041.system.entry.js} +1 -1
- package/dist/mint-components/{p-4babe350.system.js → p-3d4656bb.system.js} +1 -1
- package/dist/mint-components/{p-f36e33ff.entry.js → p-3ec16698.entry.js} +2 -2
- package/dist/mint-components/p-40b1de58.js +1 -0
- package/dist/mint-components/p-4112e198.system.js +1 -0
- package/dist/mint-components/{p-04348a9b.js → p-41a11a7f.js} +1 -1
- package/dist/mint-components/p-44787d6e.system.js +1 -0
- package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-4502ed11.system.entry.js} +1 -1
- package/dist/mint-components/p-458b2894.entry.js +9 -0
- package/dist/mint-components/{p-e0e7635a.js → p-4d233cd4.js} +1 -1
- package/dist/mint-components/{p-cd44de66.system.js → p-4df8f1d2.system.js} +1 -1
- package/dist/mint-components/{p-7dd1ff31.system.entry.js → p-4ea58025.system.entry.js} +1 -1
- package/dist/mint-components/{p-a45b03d2.entry.js → p-4edde470.entry.js} +1 -1
- package/dist/mint-components/p-51f517a2.js +1 -0
- package/dist/mint-components/{p-bee1e573.entry.js → p-56f14840.entry.js} +1 -1
- package/dist/mint-components/{p-0527d90b.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-fc422446.system.js → p-59fe4ad1.system.js} +1 -1
- 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-bc826117.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-22425c71.system.entry.js → p-5f1c4160.system.entry.js} +1 -1
- package/dist/mint-components/{p-0121e044.js → p-61eab172.js} +1 -1
- package/dist/mint-components/{p-4eae91a9.system.js → p-674a64fe.system.js} +1 -1
- package/dist/mint-components/{p-76392386.entry.js → p-6cef104b.entry.js} +1 -1
- package/dist/mint-components/{p-0893073b.entry.js → p-7049e9b0.entry.js} +1 -1
- package/dist/mint-components/p-711ba77e.system.entry.js +1 -0
- package/dist/mint-components/p-770368bc.system.js +1 -0
- package/dist/mint-components/{p-c3babfa4.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-7f088154.entry.js +1 -0
- package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
- package/dist/mint-components/{p-6c928c7d.entry.js → p-86990110.entry.js} +1 -1
- package/dist/mint-components/{p-d83b0cf3.js → p-8704937c.js} +1 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
- package/dist/mint-components/p-8e907ac7.system.entry.js +1 -0
- 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-96242551.system.entry.js +1 -0
- package/dist/mint-components/{p-f56348dc.system.entry.js → p-9c310991.system.entry.js} +1 -1
- package/dist/mint-components/{p-9ec008cb.system.entry.js → p-9f0629ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-f531a5c9.system.entry.js → p-a1dba9a1.system.entry.js} +1 -1
- package/dist/mint-components/p-a6a7dcaa.js +1 -0
- package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
- package/dist/mint-components/p-a8f7cb95.js +1 -0
- package/dist/mint-components/{p-03dbe2ce.entry.js → p-a9050eb0.entry.js} +1 -1
- package/dist/mint-components/{p-fd21ae8f.entry.js → p-aad11a68.entry.js} +1 -1
- package/dist/mint-components/p-aee2304a.entry.js +223 -0
- package/dist/mint-components/{p-04ced592.system.entry.js → p-af062c8f.system.entry.js} +1 -1
- package/dist/mint-components/{p-1f7d7524.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-5291891c.entry.js → p-b4c52c5a.entry.js} +2 -2
- package/dist/mint-components/{p-36e9296e.system.entry.js → p-b5861974.system.entry.js} +1 -1
- package/dist/mint-components/{p-83c9f37b.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
- package/dist/mint-components/p-bb00db59.js +1 -0
- package/dist/mint-components/{p-5fba1a04.system.entry.js → p-be4b748a.system.entry.js} +1 -1
- package/dist/mint-components/{p-8d554a89.system.js → p-c84659a3.system.js} +1 -1
- package/dist/mint-components/{p-9e0230c3.entry.js → p-ce5afa40.entry.js} +1 -1
- package/dist/mint-components/{p-2816bf6a.js → p-ce621bcc.js} +1 -1
- package/dist/mint-components/{p-88bf51b7.system.entry.js → p-cf690d55.system.entry.js} +1 -1
- package/dist/mint-components/p-d5de2646.system.entry.js +1 -0
- package/dist/mint-components/{p-4671e644.entry.js → p-d8d2de11.entry.js} +1 -1
- package/dist/mint-components/p-d8e68e16.entry.js +13 -0
- package/dist/mint-components/{p-4e373c3d.system.js → p-dd7ee007.system.js} +1 -1
- package/dist/mint-components/{p-d35d8c06.entry.js → p-e3735866.entry.js} +2 -2
- package/dist/mint-components/p-e6d74386.system.entry.js +1 -0
- package/dist/mint-components/{p-68747d88.js → p-eaada4da.js} +1 -1
- package/dist/mint-components/{p-51d53165.system.entry.js → p-eba44835.system.entry.js} +1 -1
- package/dist/mint-components/p-ec41d6a4.entry.js +174 -0
- package/dist/mint-components/{p-43621f12.system.js → p-ed095674.system.js} +1 -1
- package/dist/mint-components/p-ed17e637.system.js +1 -0
- package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
- package/dist/mint-components/p-fd2c5407.js +2 -2
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -4
- package/dist/types/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts +8 -0
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +34 -0
- package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +0 -5
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -5
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +2 -2
- package/dist/types/components.d.ts +108 -591
- 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/extractProps-fd93ba62.js +0 -21
- package/dist/cjs/keys-cff24974.js +0 -11
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -345
- package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -283
- package/dist/cjs/sqm-scroll.cjs.entry.js +0 -109
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -210
- package/dist/cjs/useVerificationEmail-6aacdb71.js +0 -169
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +0 -8
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +0 -23
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +0 -118
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +0 -44
- package/dist/collection/components/sqm-widget-verification/keys.js +0 -4
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +0 -36
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +0 -128
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +0 -301
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +0 -156
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +0 -42
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -91
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +0 -226
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +0 -126
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -557
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +0 -165
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +0 -22
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +0 -116
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -354
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -65
- package/dist/esm/extractProps-ae1afbb3.js +0 -19
- package/dist/esm/keys-db1897ae.js +0 -6
- package/dist/esm/sqm-code-verification.entry.js +0 -341
- package/dist/esm/sqm-email-verification.entry.js +0 -279
- package/dist/esm/sqm-scroll.entry.js +0 -105
- package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
- package/dist/esm/sqm-widget-verification.entry.js +0 -206
- package/dist/esm/useVerificationEmail-c32696ba.js +0 -167
- package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/index.module-6c840c4e.js +0 -1
- package/dist/esm-es5/keys-db1897ae.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-e9075c0b.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-f8e78810.js +0 -1
- package/dist/esm-es5/sqm-scroll.entry.js +0 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
- package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +0 -1
- package/dist/mint-components/p-1649ee1e.entry.js +0 -240
- package/dist/mint-components/p-1712a9fd.entry.js +0 -11
- package/dist/mint-components/p-1b861be5.entry.js +0 -1
- package/dist/mint-components/p-1e616d45.system.js +0 -1
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-2868f475.entry.js +0 -1
- package/dist/mint-components/p-3925bcd6.entry.js +0 -13
- package/dist/mint-components/p-39840341.js +0 -1
- package/dist/mint-components/p-39e412e8.system.entry.js +0 -1
- package/dist/mint-components/p-4364001c.entry.js +0 -12
- package/dist/mint-components/p-54ffae13.entry.js +0 -194
- package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
- package/dist/mint-components/p-63ac51e1.system.entry.js +0 -1
- package/dist/mint-components/p-64491210.system.entry.js +0 -1
- package/dist/mint-components/p-8690f682.system.js +0 -1
- package/dist/mint-components/p-93576222.system.js +0 -1
- package/dist/mint-components/p-947fe79b.entry.js +0 -1
- package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
- package/dist/mint-components/p-974070c4.system.entry.js +0 -1
- package/dist/mint-components/p-99c15c5e.entry.js +0 -1
- package/dist/mint-components/p-9d34f4f0.entry.js +0 -33
- package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
- package/dist/mint-components/p-a85f57bb.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-b1e8a802.entry.js +0 -1
- package/dist/mint-components/p-b2a99637.system.js +0 -1
- package/dist/mint-components/p-bdd6bb13.js +0 -1
- package/dist/mint-components/p-c3b37bbf.js +0 -1
- package/dist/mint-components/p-c510fb88.entry.js +0 -1
- package/dist/mint-components/p-c92a743e.entry.js +0 -1
- package/dist/mint-components/p-c9fb6102.entry.js +0 -1
- package/dist/mint-components/p-ca809fdd.system.js +0 -1
- package/dist/mint-components/p-d238372a.system.entry.js +0 -1
- package/dist/mint-components/p-d7806f31.js +0 -48
- package/dist/mint-components/p-def516b8.system.js +0 -1
- package/dist/mint-components/p-e01ac27c.system.js +0 -1
- package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
- package/dist/mint-components/p-ead27698.system.entry.js +0 -1
- package/dist/mint-components/p-f340214f.entry.js +0 -25
- package/dist/mint-components/p-f55060db.js +0 -1
- package/dist/mint-components/p-f655a7df.js +0 -1
- package/dist/mint-components/p-fffc3590.entry.js +0 -9
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -5
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +0 -10
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +0 -26
- package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +0 -7
- package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -4
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +0 -9
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +0 -26
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -54
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +0 -25
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +0 -10
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +0 -21
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +0 -40
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -10
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -87
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +0 -14
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +0 -10
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -30
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -62
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +0 -19
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h, f as useEffect, k as useState, i as d, u as useMemo, m as useRef, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo,
|
|
3
|
+
import { i as intl } from './global-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
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import { a as useRequestRerender } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
+
import { a as useRequestRerender } from './re-render-12fd274a.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-32e1bda1.js';
|
|
11
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 { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-
|
|
16
|
-
import { i as isEmpty } from './utilities-
|
|
15
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-9fc1ac80.js';
|
|
16
|
+
import { i as isEmpty } from './utilities-3f5bba22.js';
|
|
17
17
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
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-
|
|
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
19
|
import './sqm-portal-container-view-6c582684.js';
|
|
20
20
|
|
|
21
21
|
const BigStat = class {
|
|
@@ -35,7 +35,7 @@ const BigStat = class {
|
|
|
35
35
|
render() {
|
|
36
36
|
var _a;
|
|
37
37
|
const { props, label } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
38
|
-
const host =
|
|
38
|
+
const host = _();
|
|
39
39
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
40
40
|
const labelSlot = h$1("slot", { name: "label" }, hasLabel ? h$1("slot", null) : label);
|
|
41
41
|
return h$1(BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -156,7 +156,7 @@ const styleString = sheet.toString();
|
|
|
156
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) {
|
|
157
157
|
if (!missingProps)
|
|
158
158
|
return false;
|
|
159
|
-
const host =
|
|
159
|
+
const host = _();
|
|
160
160
|
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
161
161
|
return (h$1("sl-alert", { type: "danger", open: true },
|
|
162
162
|
h$1("style", { type: "text/css" }, styleString),
|
|
@@ -298,11 +298,11 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
298
298
|
`;
|
|
299
299
|
function useCouponCode(props) {
|
|
300
300
|
var _a, _b, _c;
|
|
301
|
-
const user =
|
|
302
|
-
const programId =
|
|
303
|
-
const engagementMedium =
|
|
304
|
-
const [sendLoadEvent] =
|
|
305
|
-
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));
|
|
306
306
|
const getStatus = (reward) => {
|
|
307
307
|
if (!reward || !reward.statuses)
|
|
308
308
|
return "ERROR";
|
|
@@ -692,13 +692,13 @@ const defaultFormState = {
|
|
|
692
692
|
error: "",
|
|
693
693
|
};
|
|
694
694
|
function useEditProfile(props) {
|
|
695
|
-
const userIdent =
|
|
695
|
+
const userIdent = Q();
|
|
696
696
|
const [showEdit, setShowEdit] = useState(false);
|
|
697
697
|
const [error, setError] = useState("");
|
|
698
698
|
const [userData, setUserData] = useState(undefined);
|
|
699
699
|
const [formState, setFormState] = useState(defaultFormState);
|
|
700
|
-
const userDataResponse =
|
|
701
|
-
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);
|
|
702
702
|
useEffect(() => {
|
|
703
703
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
704
704
|
return;
|
|
@@ -1337,11 +1337,11 @@ const GET_RANK_WITHOUT_NAMES = dist.gql `
|
|
|
1337
1337
|
`;
|
|
1338
1338
|
function useLeaderboard(props) {
|
|
1339
1339
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1340
|
-
const programIdContext =
|
|
1340
|
+
const programIdContext = H();
|
|
1341
1341
|
// Default to context, overriden by props
|
|
1342
1342
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1343
|
-
const user =
|
|
1344
|
-
const locale =
|
|
1343
|
+
const user = Q();
|
|
1344
|
+
const locale = L();
|
|
1345
1345
|
const variables = programId
|
|
1346
1346
|
? {
|
|
1347
1347
|
type: props.leaderboardType,
|
|
@@ -1360,8 +1360,8 @@ function useLeaderboard(props) {
|
|
|
1360
1360
|
if (props.maxRows > 0) {
|
|
1361
1361
|
variables["limit"] = props.maxRows;
|
|
1362
1362
|
}
|
|
1363
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } =
|
|
1364
|
-
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));
|
|
1365
1365
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1366
1366
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1367
1367
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1599,6 +1599,50 @@ const LinkButton = class {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
};
|
|
1601
1601
|
|
|
1602
|
+
const MarketingEmailsCheckbox = class {
|
|
1603
|
+
constructor(hostRef) {
|
|
1604
|
+
registerInstance(this, hostRef);
|
|
1605
|
+
this.ignored = true;
|
|
1606
|
+
/**
|
|
1607
|
+
* This name is used as the key for this form field on submission. The name must be unique within this specific form.
|
|
1608
|
+
* @uiName Checkbox name attribute
|
|
1609
|
+
* @required
|
|
1610
|
+
*/
|
|
1611
|
+
this.checkboxName = "marketing-emails";
|
|
1612
|
+
/**
|
|
1613
|
+
* @uiName Checkbox label
|
|
1614
|
+
* @uiWidget textArea
|
|
1615
|
+
*/
|
|
1616
|
+
this.checkboxLabel = "I would like to receive marketing and promotional emails for this referral program";
|
|
1617
|
+
/**
|
|
1618
|
+
* @uiName Required
|
|
1619
|
+
*/
|
|
1620
|
+
this.checkboxRequired = false;
|
|
1621
|
+
h(this);
|
|
1622
|
+
}
|
|
1623
|
+
disconnectedCallback() { }
|
|
1624
|
+
render() {
|
|
1625
|
+
const content = {
|
|
1626
|
+
...getProps(this),
|
|
1627
|
+
};
|
|
1628
|
+
const { states, callbacks } = isDemo()
|
|
1629
|
+
? useCheckboxFieldDemo$1(this)
|
|
1630
|
+
: useCheckboxField(this);
|
|
1631
|
+
return (h$1(CheckboxFieldView, { states: states, content: content, callbacks: callbacks }));
|
|
1632
|
+
}
|
|
1633
|
+
};
|
|
1634
|
+
function useCheckboxFieldDemo$1(props) {
|
|
1635
|
+
return cjs({
|
|
1636
|
+
states: {
|
|
1637
|
+
registrationFormState: {},
|
|
1638
|
+
checked: false,
|
|
1639
|
+
},
|
|
1640
|
+
callbacks: {
|
|
1641
|
+
setChecked: () => { },
|
|
1642
|
+
},
|
|
1643
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1602
1646
|
function useNameFields(props) {
|
|
1603
1647
|
const registrationFormState = d(REGISTRATION_FORM_STATE_CONTEXT);
|
|
1604
1648
|
return {
|
|
@@ -1659,12 +1703,12 @@ function NavigationMenuView(props) {
|
|
|
1659
1703
|
}
|
|
1660
1704
|
|
|
1661
1705
|
function handleMenu(e) {
|
|
1662
|
-
|
|
1706
|
+
$n.push(e.detail.item.value);
|
|
1663
1707
|
}
|
|
1664
1708
|
function useNavigationMenu(props) {
|
|
1665
1709
|
const ref = useRef();
|
|
1666
|
-
const [, rerender] =
|
|
1667
|
-
const user =
|
|
1710
|
+
const [, rerender] = gn();
|
|
1711
|
+
const user = Q();
|
|
1668
1712
|
useEffect(() => {
|
|
1669
1713
|
var _a;
|
|
1670
1714
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1716,325 +1760,13 @@ function useNavigationMenuDemo(props) {
|
|
|
1716
1760
|
}
|
|
1717
1761
|
NavigationMenu.style = sqmNavigationMenuCss;
|
|
1718
1762
|
|
|
1719
|
-
const style$2 = {
|
|
1720
|
-
Wrapper: {
|
|
1721
|
-
maxWidth: "200px",
|
|
1722
|
-
},
|
|
1723
|
-
PayoutButtonDescription: {
|
|
1724
|
-
color: "var(--sl-color-neutral-500)",
|
|
1725
|
-
fontSize: "var(--sl-font-size-small)",
|
|
1726
|
-
margin: "0",
|
|
1727
|
-
},
|
|
1728
|
-
};
|
|
1729
|
-
const sheet$2 = createStyleSheet(style$2);
|
|
1730
|
-
const styleString$2 = sheet$2.toString();
|
|
1731
|
-
function PayoutButtonScrollView(props) {
|
|
1732
|
-
const { text, states } = props;
|
|
1733
|
-
if (!states.payoutSettingsComplete)
|
|
1734
|
-
return h$1("div", null);
|
|
1735
|
-
return (h$1("div", { part: "sqm-base", class: sheet$2.classes.Wrapper },
|
|
1736
|
-
h$1("style", { type: "text/css" }, styleString$2),
|
|
1737
|
-
h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.payoutButtonText, "scroll-animation": "smooth" }),
|
|
1738
|
-
h$1("p", { class: sheet$2.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
const PayoutButtonScroll = class {
|
|
1742
|
-
constructor(hostRef) {
|
|
1743
|
-
registerInstance(this, hostRef);
|
|
1744
|
-
/**
|
|
1745
|
-
* @uiName Payout button text
|
|
1746
|
-
*/
|
|
1747
|
-
this.payoutButtonText = "Payouts & Tax Settings";
|
|
1748
|
-
/**
|
|
1749
|
-
* Description text under payout button
|
|
1750
|
-
* @uiName Payout button description text
|
|
1751
|
-
*/
|
|
1752
|
-
this.payoutButtonDescription = "Check your payout settings to see when you’ll get paid out next";
|
|
1753
|
-
this.ignored = true;
|
|
1754
|
-
h(this);
|
|
1755
|
-
}
|
|
1756
|
-
disconnectedCallback() { }
|
|
1757
|
-
getTextProps() {
|
|
1758
|
-
return getProps(this);
|
|
1759
|
-
}
|
|
1760
|
-
render() {
|
|
1761
|
-
const props = useDemoPayoutButtonScroll(this);
|
|
1762
|
-
return h$1(PayoutButtonScrollView, Object.assign({}, props));
|
|
1763
|
-
}
|
|
1764
|
-
};
|
|
1765
|
-
function useDemoPayoutButtonScroll(props) {
|
|
1766
|
-
return cjs({
|
|
1767
|
-
states: {
|
|
1768
|
-
payoutSettingsComplete: false,
|
|
1769
|
-
},
|
|
1770
|
-
text: props.getTextProps(),
|
|
1771
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
const style$3 = {
|
|
1775
|
-
SkeletonOne: {
|
|
1776
|
-
width: "50%",
|
|
1777
|
-
height: "16px",
|
|
1778
|
-
},
|
|
1779
|
-
AlertDescriptionText: {
|
|
1780
|
-
margin: "0",
|
|
1781
|
-
marginBottom: "var(--sl-spacing-small)",
|
|
1782
|
-
},
|
|
1783
|
-
ErrorAlertContainer: {
|
|
1784
|
-
"&::part(base)": {
|
|
1785
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
1786
|
-
borderTop: "none",
|
|
1787
|
-
},
|
|
1788
|
-
"& sl-icon::part(base)": {
|
|
1789
|
-
color: "var(--sl-color-danger-500)",
|
|
1790
|
-
},
|
|
1791
|
-
},
|
|
1792
|
-
WarningAlertContainer: {
|
|
1793
|
-
"&::part(base)": {
|
|
1794
|
-
backgroundColor: "var(--sl-color-yellow-100)",
|
|
1795
|
-
borderTop: "none",
|
|
1796
|
-
},
|
|
1797
|
-
"& sl-icon::part(base)": {
|
|
1798
|
-
color: "var(--sl-color-danger-500)",
|
|
1799
|
-
},
|
|
1800
|
-
},
|
|
1801
|
-
InfoAlertContainer: {
|
|
1802
|
-
"&::part(base)": {
|
|
1803
|
-
backgroundColor: "var(--sl-color-sky-100)",
|
|
1804
|
-
borderTop: "none",
|
|
1805
|
-
},
|
|
1806
|
-
"& sl-icon::part(base)": {
|
|
1807
|
-
color: "var(--sl-color-blue-500)",
|
|
1808
|
-
},
|
|
1809
|
-
},
|
|
1810
|
-
};
|
|
1811
|
-
const sheet$3 = createStyleSheet(style$3);
|
|
1812
|
-
const styleString$3 = sheet$3.toString();
|
|
1813
|
-
function PayoutStatusAlertView(props) {
|
|
1814
|
-
var _a, _b, _c, _d, _e;
|
|
1815
|
-
const { text, states, data, callbacks } = props;
|
|
1816
|
-
if (states.loading) {
|
|
1817
|
-
return h$1("sl-skeleton", { class: sheet$3.classes.SkeletonOne });
|
|
1818
|
-
}
|
|
1819
|
-
if (states.status === "DONE") {
|
|
1820
|
-
return h$1("div", null);
|
|
1821
|
-
}
|
|
1822
|
-
function getAlert(status) {
|
|
1823
|
-
if (states.error)
|
|
1824
|
-
return {
|
|
1825
|
-
header: text.errorHeader,
|
|
1826
|
-
description: text.errorDescription,
|
|
1827
|
-
buttonText: null,
|
|
1828
|
-
alertType: "critical",
|
|
1829
|
-
icon: "exclamation-triangle",
|
|
1830
|
-
class: sheet$3.classes.ErrorAlertContainer,
|
|
1831
|
-
};
|
|
1832
|
-
switch (status) {
|
|
1833
|
-
case "INFORMATION_REQUIRED":
|
|
1834
|
-
return {
|
|
1835
|
-
header: text.informationRequiredHeader,
|
|
1836
|
-
description: text.informationRequiredDescription,
|
|
1837
|
-
buttonText: text.informationRequiredButtonText,
|
|
1838
|
-
alertType: "info",
|
|
1839
|
-
icon: "info-circle",
|
|
1840
|
-
class: sheet$3.classes.InfoAlertContainer,
|
|
1841
|
-
};
|
|
1842
|
-
case "VERIFICATION_NEEDED":
|
|
1843
|
-
return {
|
|
1844
|
-
header: text.verificationRequiredHeader,
|
|
1845
|
-
description: text.verificationRequiredDescription,
|
|
1846
|
-
buttonText: text.verificationRequiredButtonText,
|
|
1847
|
-
alertType: "warning",
|
|
1848
|
-
icon: "exclamation-triangle",
|
|
1849
|
-
class: sheet$3.classes.WarningAlertContainer,
|
|
1850
|
-
};
|
|
1851
|
-
case "HOLD":
|
|
1852
|
-
return {
|
|
1853
|
-
header: text.holdHeader,
|
|
1854
|
-
description: text.holdDescription,
|
|
1855
|
-
buttonText: null,
|
|
1856
|
-
alertType: "warning",
|
|
1857
|
-
icon: "exclamation-triangle",
|
|
1858
|
-
class: sheet$3.classes.WarningAlertContainer,
|
|
1859
|
-
};
|
|
1860
|
-
default:
|
|
1861
|
-
return;
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
//AL: TODO hookup ID
|
|
1865
|
-
function getButton(status) {
|
|
1866
|
-
switch (status) {
|
|
1867
|
-
case "INFORMATION_REQUIRED":
|
|
1868
|
-
return data.type === "SquatchJS2" ? (h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h$1("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (h$1("sl-button", { type: "default" }, text.informationRequiredButtonText));
|
|
1869
|
-
case "VERIFICATION_NEEDED":
|
|
1870
|
-
return (h$1("sl-button", { type: "default", loading: states.loading,
|
|
1871
|
-
//AL: TODO callback to open verification form
|
|
1872
|
-
onClick: () => callbacks.onClick }, text.verificationRequiredButtonText));
|
|
1873
|
-
default:
|
|
1874
|
-
return;
|
|
1875
|
-
}
|
|
1876
|
-
}
|
|
1877
|
-
return (h$1("div", { part: "sqm-base" },
|
|
1878
|
-
h$1("style", { type: "text/css" }, styleString$3),
|
|
1879
|
-
h$1("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: (_a = getAlert(states.status)) === null || _a === void 0 ? void 0 : _a.alertType, class: (_b = getAlert(states.status)) === null || _b === void 0 ? void 0 : _b.class, open: true },
|
|
1880
|
-
h$1("sl-icon", { slot: "icon", name: (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.icon }),
|
|
1881
|
-
h$1("strong", null, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.header),
|
|
1882
|
-
h$1("p", { class: sheet$3.classes.AlertDescriptionText }, (_e = getAlert(states.status)) === null || _e === void 0 ? void 0 : _e.description),
|
|
1883
|
-
getButton(states.status)),
|
|
1884
|
-
h$1("sl-dialog", {
|
|
1885
|
-
// class={sheet.classes.Dialog}
|
|
1886
|
-
open: states.showVerifyIdentity, "onSl-hide": callbacks.onCancel }, "AL: TODO add IFRAME URL")));
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
const GET_USER_STATUS = dist.gql `
|
|
1890
|
-
query getUserStatus {
|
|
1891
|
-
user: viewer {
|
|
1892
|
-
... on User {
|
|
1893
|
-
id
|
|
1894
|
-
impactConnection {
|
|
1895
|
-
connected
|
|
1896
|
-
publisher {
|
|
1897
|
-
id
|
|
1898
|
-
payoutsAccount {
|
|
1899
|
-
hold
|
|
1900
|
-
}
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
}
|
|
1904
|
-
}
|
|
1905
|
-
}
|
|
1906
|
-
`;
|
|
1907
|
-
function usePayoutStatus(props) {
|
|
1908
|
-
const { type } = getEnvironmentSDK();
|
|
1909
|
-
const { loading, data, errors, refetch } = En(GET_USER_STATUS, {});
|
|
1910
|
-
const [status, setStatus] = useState(undefined);
|
|
1911
|
-
const [showDialog, setShowDialog] = useState(false);
|
|
1912
|
-
useEffect(() => {
|
|
1913
|
-
if (!data)
|
|
1914
|
-
return;
|
|
1915
|
-
function getStatus(data) {
|
|
1916
|
-
var _a, _b;
|
|
1917
|
-
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
1918
|
-
if (!account)
|
|
1919
|
-
return "INFORMATION_REQUIRED";
|
|
1920
|
-
if (account.hold)
|
|
1921
|
-
return "HOLD";
|
|
1922
|
-
// @ts-ignore, TODO: add check for account verification
|
|
1923
|
-
if (!account.verified)
|
|
1924
|
-
return "VERIFICATION_NEEDED";
|
|
1925
|
-
return "DONE";
|
|
1926
|
-
}
|
|
1927
|
-
const s = getStatus(data);
|
|
1928
|
-
setStatus(s);
|
|
1929
|
-
}, [data]);
|
|
1930
|
-
useEffect(() => {
|
|
1931
|
-
const cb = () => refetch();
|
|
1932
|
-
window.addEventListener("sqm:tax-form-updated", cb);
|
|
1933
|
-
return () => window.removeEventListener("sqm:tax-form-updated", cb);
|
|
1934
|
-
}, []);
|
|
1935
|
-
return {
|
|
1936
|
-
states: {
|
|
1937
|
-
loading,
|
|
1938
|
-
status,
|
|
1939
|
-
showVerifyIdentity: showDialog,
|
|
1940
|
-
error: !!errors,
|
|
1941
|
-
},
|
|
1942
|
-
data: { type },
|
|
1943
|
-
text: props.getTextProps(),
|
|
1944
|
-
callbacks: {
|
|
1945
|
-
onTermsClick: () => window.open(props.termsUrl, "_blank").focus(),
|
|
1946
|
-
onClick: () => setShowDialog(true),
|
|
1947
|
-
onCancel: () => setShowDialog(false),
|
|
1948
|
-
},
|
|
1949
|
-
};
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
const PayoutStatusAlert = class {
|
|
1953
|
-
constructor(hostRef) {
|
|
1954
|
-
registerInstance(this, hostRef);
|
|
1955
|
-
/**
|
|
1956
|
-
* @uiName Info required alert header
|
|
1957
|
-
*/
|
|
1958
|
-
this.informationRequiredHeader = "Payout and tax information required";
|
|
1959
|
-
/**
|
|
1960
|
-
* @uiName Info required alert description
|
|
1961
|
-
*/
|
|
1962
|
-
this.informationRequiredDescription = "Submit your banking details and tax documents to receive your rewards.";
|
|
1963
|
-
/**
|
|
1964
|
-
* @uiName Info required alert button text
|
|
1965
|
-
*/
|
|
1966
|
-
this.informationRequiredButtonText = "Payouts & Tax Settings";
|
|
1967
|
-
/**
|
|
1968
|
-
* @uiName Verification required alert header
|
|
1969
|
-
*/
|
|
1970
|
-
this.verificationRequiredHeader = "Verify your identity";
|
|
1971
|
-
/**
|
|
1972
|
-
* @uiName Verification required alert description
|
|
1973
|
-
*/
|
|
1974
|
-
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
1975
|
-
/**
|
|
1976
|
-
* @uiName Verification required alert button text
|
|
1977
|
-
*/
|
|
1978
|
-
this.verificationRequiredButtonText = "Start Verification";
|
|
1979
|
-
/**
|
|
1980
|
-
* @uiName Payout on hold alert header
|
|
1981
|
-
*/
|
|
1982
|
-
this.holdHeader = "Your payouts and account are on hold";
|
|
1983
|
-
/**
|
|
1984
|
-
* @uiName Payout on hold alert description
|
|
1985
|
-
*/
|
|
1986
|
-
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}.";
|
|
1987
|
-
/**
|
|
1988
|
-
* @uiName Cash & Payouts Terms and Conditions url
|
|
1989
|
-
*/
|
|
1990
|
-
this.termsUrl = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
1991
|
-
/**
|
|
1992
|
-
* @uiName Error header
|
|
1993
|
-
*/
|
|
1994
|
-
this.errorHeader = "Could not determine payout status.";
|
|
1995
|
-
/**
|
|
1996
|
-
* @uiName Error description
|
|
1997
|
-
*/
|
|
1998
|
-
this.errorDescription = "There was an error with determining your payout status.";
|
|
1999
|
-
h(this);
|
|
2000
|
-
}
|
|
2001
|
-
disconnectedCallback() { }
|
|
2002
|
-
getTextProps() {
|
|
2003
|
-
return getProps(this);
|
|
2004
|
-
}
|
|
2005
|
-
render() {
|
|
2006
|
-
const props = isDemo()
|
|
2007
|
-
? useDemoPayoutStatusAlert(this)
|
|
2008
|
-
: usePayoutStatus(this);
|
|
2009
|
-
console.log({ props });
|
|
2010
|
-
return h$1(PayoutStatusAlertView, Object.assign({}, props));
|
|
2011
|
-
}
|
|
2012
|
-
};
|
|
2013
|
-
function useDemoPayoutStatusAlert(props) {
|
|
2014
|
-
return cjs({
|
|
2015
|
-
states: {
|
|
2016
|
-
error: false,
|
|
2017
|
-
status: "INFORMATION_REQUIRED",
|
|
2018
|
-
loading: false,
|
|
2019
|
-
showVerifyIdentity: false,
|
|
2020
|
-
},
|
|
2021
|
-
data: { type: "SquatchAdmin" },
|
|
2022
|
-
text: props.getTextProps(),
|
|
2023
|
-
callbacks: {
|
|
2024
|
-
onTermsClick: () => { },
|
|
2025
|
-
onClick: () => console.log("show"),
|
|
2026
|
-
onCancel: () => console.log("hide"),
|
|
2027
|
-
},
|
|
2028
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
1763
|
function usePortalChangePassword(props) {
|
|
2032
1764
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2033
|
-
const [request, { loading, errors, data }] =
|
|
1765
|
+
const [request, { loading, errors, data }] = Ue();
|
|
2034
1766
|
const [open, setOpen] = useState(false);
|
|
2035
1767
|
const [error, setError] = useState("");
|
|
2036
1768
|
const [success, setSuccess] = useState(false);
|
|
2037
|
-
const user =
|
|
1769
|
+
const user = Q();
|
|
2038
1770
|
const submit = async (event) => {
|
|
2039
1771
|
var _a, _b;
|
|
2040
1772
|
setSuccess(false);
|
|
@@ -2276,7 +2008,7 @@ const PortalFooter = class {
|
|
|
2276
2008
|
};
|
|
2277
2009
|
|
|
2278
2010
|
function usePortalFrame(footerContent, headerContent) {
|
|
2279
|
-
const [, rerender] =
|
|
2011
|
+
const [, rerender] = gn();
|
|
2280
2012
|
return {
|
|
2281
2013
|
data: {
|
|
2282
2014
|
footer: footerContent,
|
|
@@ -2326,9 +2058,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
2326
2058
|
|
|
2327
2059
|
function usePortalLogin(props) {
|
|
2328
2060
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2329
|
-
const [request, { loading, errors, data }] =
|
|
2061
|
+
const [request, { loading, errors, data }] = qe();
|
|
2330
2062
|
const [error, setError] = useState("");
|
|
2331
|
-
const urlParams = new URLSearchParams(
|
|
2063
|
+
const urlParams = new URLSearchParams($n.location.search);
|
|
2332
2064
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2333
2065
|
const submit = async (event) => {
|
|
2334
2066
|
var _a, _b;
|
|
@@ -2347,7 +2079,7 @@ function usePortalLogin(props) {
|
|
|
2347
2079
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2348
2080
|
urlParams.delete("nextPage");
|
|
2349
2081
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2350
|
-
|
|
2082
|
+
$n.push(url.href);
|
|
2351
2083
|
}
|
|
2352
2084
|
};
|
|
2353
2085
|
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) ||
|
|
@@ -2426,8 +2158,8 @@ const PortalLogin = class {
|
|
|
2426
2158
|
? useLoginDemo(this)
|
|
2427
2159
|
: usePortalLogin(this);
|
|
2428
2160
|
const content = {
|
|
2429
|
-
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () =>
|
|
2430
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2161
|
+
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => $n.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2162
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.registerPath) }, this.registerLabel))),
|
|
2431
2163
|
emailLabel: this.emailLabel,
|
|
2432
2164
|
passwordLabel: this.passwordLabel,
|
|
2433
2165
|
submitLabel: this.submitLabel,
|
|
@@ -2456,7 +2188,7 @@ function usePortalRegister(props) {
|
|
|
2456
2188
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2457
2189
|
const formRef = useRef(null);
|
|
2458
2190
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
2459
|
-
const [request, { loading, errors, data }] =
|
|
2191
|
+
const [request, { loading, errors, data }] = xe();
|
|
2460
2192
|
useEffect(() => {
|
|
2461
2193
|
if (!formRef.current)
|
|
2462
2194
|
return;
|
|
@@ -2529,7 +2261,7 @@ function usePortalRegister(props) {
|
|
|
2529
2261
|
validationErrors: {},
|
|
2530
2262
|
});
|
|
2531
2263
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2532
|
-
|
|
2264
|
+
$n.push(props.nextPage);
|
|
2533
2265
|
}
|
|
2534
2266
|
}
|
|
2535
2267
|
catch (error) {
|
|
@@ -2703,7 +2435,7 @@ const PortalRegister = class {
|
|
|
2703
2435
|
: usePortalRegister(this);
|
|
2704
2436
|
const content = {
|
|
2705
2437
|
formData: h$1("slot", { name: "formData" }),
|
|
2706
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2438
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath) }, this.loginLabel))),
|
|
2707
2439
|
terms: h$1("slot", { name: "terms" }),
|
|
2708
2440
|
emailLabel: this.emailLabel,
|
|
2709
2441
|
passwordLabel: this.passwordLabel,
|
|
@@ -2874,11 +2606,11 @@ const ProgramExplainerStep = class {
|
|
|
2874
2606
|
const debug = browser("sq:useProgramMenu");
|
|
2875
2607
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2876
2608
|
function useProgramMenu(props) {
|
|
2877
|
-
const programId =
|
|
2878
|
-
const host =
|
|
2609
|
+
const programId = H();
|
|
2610
|
+
const host = _();
|
|
2879
2611
|
debug({ programId, props });
|
|
2880
2612
|
const ref = useRef();
|
|
2881
|
-
const [, rerender] =
|
|
2613
|
+
const [, rerender] = gn();
|
|
2882
2614
|
useEffect(() => {
|
|
2883
2615
|
var _a;
|
|
2884
2616
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2915,7 +2647,7 @@ const ProgramMenu = class {
|
|
|
2915
2647
|
}
|
|
2916
2648
|
};
|
|
2917
2649
|
|
|
2918
|
-
const style$
|
|
2650
|
+
const style$2 = {
|
|
2919
2651
|
Container: {
|
|
2920
2652
|
borderRadius: "var(--sl-border-radius-large)",
|
|
2921
2653
|
color: "var(--sl-color-neutral-900)",
|
|
@@ -2943,15 +2675,15 @@ const style$4 = {
|
|
|
2943
2675
|
},
|
|
2944
2676
|
},
|
|
2945
2677
|
};
|
|
2946
|
-
const sheet$
|
|
2947
|
-
const styleString$
|
|
2678
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2679
|
+
const styleString$2 = sheet$2.toString();
|
|
2948
2680
|
const vanillaStyle$1 = `
|
|
2949
2681
|
:host{
|
|
2950
2682
|
display: block;
|
|
2951
2683
|
}
|
|
2952
2684
|
`;
|
|
2953
2685
|
function ReferralCardView(props) {
|
|
2954
|
-
return (h$1("div", { part: "sqm-base", class: sheet$
|
|
2686
|
+
return (h$1("div", { part: "sqm-base", class: sheet$2.classes.Container, style: {
|
|
2955
2687
|
border: `${props.hideBorder ? "none" : "1px solid var(--sl-color-neutral-300)"}`,
|
|
2956
2688
|
"padding-top": `var(--sl-spacing-${props.paddingTop})`,
|
|
2957
2689
|
"padding-right": `var(--sl-spacing-${props.paddingRight})`,
|
|
@@ -2962,15 +2694,15 @@ function ReferralCardView(props) {
|
|
|
2962
2694
|
margin: `${props.limitWidth ? "auto" : "none"}`,
|
|
2963
2695
|
} },
|
|
2964
2696
|
h$1("style", { type: "text/css" },
|
|
2965
|
-
styleString$
|
|
2697
|
+
styleString$2,
|
|
2966
2698
|
vanillaStyle$1),
|
|
2967
|
-
props.hasHeader && (h$1("div", { class: sheet$
|
|
2968
|
-
h$1("div", { part: "sqm-column-container", class: sheet$
|
|
2699
|
+
props.hasHeader && (h$1("div", { class: sheet$2.classes.EndContainer }, props.slots.header)),
|
|
2700
|
+
h$1("div", { part: "sqm-column-container", class: sheet$2.classes.ColumnContainer, style: {
|
|
2969
2701
|
alignItems: props.verticalAlignment,
|
|
2970
2702
|
} },
|
|
2971
2703
|
props.slots.left,
|
|
2972
2704
|
props.slots.right),
|
|
2973
|
-
props.hasFooter && (h$1("div", { class: sheet$
|
|
2705
|
+
props.hasFooter && (h$1("div", { class: sheet$2.classes.EndContainer }, props.slots.footer))));
|
|
2974
2706
|
}
|
|
2975
2707
|
|
|
2976
2708
|
const ReferralCard = class {
|
|
@@ -3056,9 +2788,9 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
3056
2788
|
`;
|
|
3057
2789
|
function useReferralIframe(props) {
|
|
3058
2790
|
var _a;
|
|
3059
|
-
const programId =
|
|
3060
|
-
const user =
|
|
3061
|
-
const { data } =
|
|
2791
|
+
const programId = H();
|
|
2792
|
+
const user = Q();
|
|
2793
|
+
const { data } = yn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
3062
2794
|
return {
|
|
3063
2795
|
states: {
|
|
3064
2796
|
content: props,
|
|
@@ -3783,9 +3515,9 @@ function useRewardExchangeList(props) {
|
|
|
3783
3515
|
});
|
|
3784
3516
|
const [open, setOpen] = useState(false);
|
|
3785
3517
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3786
|
-
const user =
|
|
3787
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] =
|
|
3788
|
-
const { data, loading, refetch, errors: queryError, } =
|
|
3518
|
+
const user = Q();
|
|
3519
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = $e(EXCHANGE);
|
|
3520
|
+
const { data, loading, refetch, errors: queryError, } = yn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3789
3521
|
useEffect(() => {
|
|
3790
3522
|
var _a, _b;
|
|
3791
3523
|
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) {
|
|
@@ -3804,7 +3536,7 @@ function useRewardExchangeList(props) {
|
|
|
3804
3536
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3805
3537
|
canvas.confetti();
|
|
3806
3538
|
}, [canvasRef.current]);
|
|
3807
|
-
const { refresh } =
|
|
3539
|
+
const { refresh } = ze();
|
|
3808
3540
|
async function exchangeReward() {
|
|
3809
3541
|
if (!selectedItem)
|
|
3810
3542
|
return;
|
|
@@ -4112,8 +3844,8 @@ function matchPath(pattern, page) {
|
|
|
4112
3844
|
return regexp.exec(page);
|
|
4113
3845
|
}
|
|
4114
3846
|
function useRouter() {
|
|
4115
|
-
const location =
|
|
4116
|
-
const host =
|
|
3847
|
+
const location = Sn();
|
|
3848
|
+
const host = _();
|
|
4117
3849
|
const [slot, setSlot] = useState(undefined);
|
|
4118
3850
|
const [container, setContainer] = useState(undefined);
|
|
4119
3851
|
const page = location.pathname;
|
|
@@ -4196,6 +3928,106 @@ const SqmRouter = class {
|
|
|
4196
3928
|
};
|
|
4197
3929
|
SqmRouter.style = sqmRouterCss;
|
|
4198
3930
|
|
|
3931
|
+
const REVEAL_EVENT = "sq:reveal";
|
|
3932
|
+
function useScroll(props) {
|
|
3933
|
+
const { scrollTagName, scrollId } = props;
|
|
3934
|
+
async function scroll() {
|
|
3935
|
+
const element = document === null || document === void 0 ? void 0 : document.querySelector(scrollTagName || `#${scrollId}`);
|
|
3936
|
+
element.dispatchEvent(new CustomEvent(REVEAL_EVENT, {
|
|
3937
|
+
detail: scrollTagName || `#${scrollId}`,
|
|
3938
|
+
bubbles: true,
|
|
3939
|
+
composed: true,
|
|
3940
|
+
}));
|
|
3941
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
3942
|
+
element.scrollIntoView({ behavior: props.scrollAnimation });
|
|
3943
|
+
}
|
|
3944
|
+
return {
|
|
3945
|
+
callbacks: { scroll },
|
|
3946
|
+
};
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
const Scroll = class {
|
|
3950
|
+
constructor(hostRef) {
|
|
3951
|
+
registerInstance(this, hostRef);
|
|
3952
|
+
this.ignored = true;
|
|
3953
|
+
/**
|
|
3954
|
+
* @uiName Button type
|
|
3955
|
+
* @uiType string
|
|
3956
|
+
* @uiEnum ["default", "primary", "success", "neutral", "warning", "danger", "text"]
|
|
3957
|
+
* @uiEnumNames ["Default", "Primary", "Success", "Neutral", "Warning", "Danger", "Text"]
|
|
3958
|
+
|
|
3959
|
+
*/
|
|
3960
|
+
this.buttonType = "default";
|
|
3961
|
+
/**
|
|
3962
|
+
* @uiName Scroll animation style
|
|
3963
|
+
* @uiType string
|
|
3964
|
+
* @uiEnum ["smooth", "auto"]
|
|
3965
|
+
* @uiEnumNames ["Smooth", "Auto"]
|
|
3966
|
+
*/
|
|
3967
|
+
this.scrollAnimation = "smooth";
|
|
3968
|
+
h(this);
|
|
3969
|
+
}
|
|
3970
|
+
disconnectedCallback() { }
|
|
3971
|
+
render() {
|
|
3972
|
+
var _a;
|
|
3973
|
+
const { callbacks } = useScroll(this);
|
|
3974
|
+
const outlineColor = (_a = this.buttonType) !== null && _a !== void 0 ? _a : "primary";
|
|
3975
|
+
const style = {
|
|
3976
|
+
Button: {
|
|
3977
|
+
"& .outline": {
|
|
3978
|
+
"&::part(base)": {
|
|
3979
|
+
color: "var(--sl-color-" + outlineColor + "-500)",
|
|
3980
|
+
borderColor: "var(--sl-color-" + outlineColor + "-500)",
|
|
3981
|
+
backgroundColor: "transparent",
|
|
3982
|
+
"&:hover": {
|
|
3983
|
+
color: "var(--sl-color-primary-text)",
|
|
3984
|
+
backgroundColor: "var(--sl-color-" + outlineColor + "-500)",
|
|
3985
|
+
},
|
|
3986
|
+
},
|
|
3987
|
+
},
|
|
3988
|
+
"& .neutral": {
|
|
3989
|
+
"&::part(base)": {
|
|
3990
|
+
color: "var(--sl-color-primary-text)",
|
|
3991
|
+
background: "var(--sl-color-neutral-500)",
|
|
3992
|
+
"&:hover": {
|
|
3993
|
+
opacity: "0.8",
|
|
3994
|
+
},
|
|
3995
|
+
},
|
|
3996
|
+
},
|
|
3997
|
+
"& .mobile": {
|
|
3998
|
+
"@media (max-width: 499px)": {
|
|
3999
|
+
width: "100%",
|
|
4000
|
+
},
|
|
4001
|
+
},
|
|
4002
|
+
},
|
|
4003
|
+
};
|
|
4004
|
+
const sheet = createStyleSheet(style);
|
|
4005
|
+
const styleString = sheet.toString();
|
|
4006
|
+
const vanillaStyle = `
|
|
4007
|
+
:host{
|
|
4008
|
+
display: contents;
|
|
4009
|
+
}
|
|
4010
|
+
${this.mobile &&
|
|
4011
|
+
`
|
|
4012
|
+
@media only screen and (max-width: 499px) {
|
|
4013
|
+
:host {
|
|
4014
|
+
display: block;
|
|
4015
|
+
width: 100%;
|
|
4016
|
+
}
|
|
4017
|
+
}
|
|
4018
|
+
`}
|
|
4019
|
+
`;
|
|
4020
|
+
let classStack = "";
|
|
4021
|
+
if (this.outline && this.buttonType != "default")
|
|
4022
|
+
classStack += "outline ";
|
|
4023
|
+
if (this.buttonType === "neutral")
|
|
4024
|
+
classStack += "neutral ";
|
|
4025
|
+
if (this.mobile)
|
|
4026
|
+
classStack += "mobile ";
|
|
4027
|
+
return (h$1("div", { class: sheet.classes.Button }, h$1("style", { type: "text/css" }, vanillaStyle, styleString), h$1("sl-button", { type: this.buttonType, onClick: callbacks.scroll, size: this.size, pill: this.pill, circle: this.circle, class: classStack }, (this.iconSlot || this.iconName) && (h$1("sl-icon", { slot: this.iconSlot || "prefix", name: this.iconName })), this.buttonText, h$1("slot", null))));
|
|
4028
|
+
}
|
|
4029
|
+
};
|
|
4030
|
+
|
|
4199
4031
|
const sqmShareButtonCss = ":host{display:block}:host([hidden]){display:none}sl-button{display:block}";
|
|
4200
4032
|
|
|
4201
4033
|
const ShareButton = class {
|
|
@@ -4274,11 +4106,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = dist.gql `
|
|
|
4274
4106
|
`;
|
|
4275
4107
|
function useShareCode(props) {
|
|
4276
4108
|
var _a, _b;
|
|
4277
|
-
const { programId =
|
|
4278
|
-
const user =
|
|
4279
|
-
const engagementMedium =
|
|
4280
|
-
const { data } =
|
|
4281
|
-
const [sendLoadEvent] =
|
|
4109
|
+
const { programId = H() } = props;
|
|
4110
|
+
const user = Q();
|
|
4111
|
+
const engagementMedium = B();
|
|
4112
|
+
const { data } = yn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4113
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4282
4114
|
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 :
|
|
4283
4115
|
// Shown during loading
|
|
4284
4116
|
"...";
|
|
@@ -4477,10 +4309,10 @@ const SEND_EVENT = dist.gql `
|
|
|
4477
4309
|
}
|
|
4478
4310
|
`;
|
|
4479
4311
|
function useTaskCard(props) {
|
|
4480
|
-
const user =
|
|
4481
|
-
const locale =
|
|
4482
|
-
const [sendUserEvent, { data, loading: loadingEvent }] =
|
|
4483
|
-
const { refresh } =
|
|
4312
|
+
const user = Q();
|
|
4313
|
+
const locale = L();
|
|
4314
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = $e(SEND_EVENT);
|
|
4315
|
+
const { refresh } = ze();
|
|
4484
4316
|
useEffect(() => {
|
|
4485
4317
|
if (data) {
|
|
4486
4318
|
refresh();
|
|
@@ -4693,7 +4525,7 @@ const Gift = () => (h$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24"
|
|
|
4693
4525
|
const Circle = () => (h$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
4694
4526
|
h$1("circle", { cx: "12", cy: "12", r: "9", fill: "currentColor", stroke: "currentColor", "stroke-width": "2" })));
|
|
4695
4527
|
|
|
4696
|
-
const style$
|
|
4528
|
+
const style$3 = {
|
|
4697
4529
|
TimelineReward: {
|
|
4698
4530
|
color: "var(--sl-color-neutral-900)",
|
|
4699
4531
|
lineHeight: "var(--sl-line-height-dense)",
|
|
@@ -4736,8 +4568,8 @@ const style$5 = {
|
|
|
4736
4568
|
},
|
|
4737
4569
|
},
|
|
4738
4570
|
};
|
|
4739
|
-
const sheet$
|
|
4740
|
-
const styleString$
|
|
4571
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
4572
|
+
const styleString$3 = sheet$3.toString();
|
|
4741
4573
|
const vanillaStyle$2 = `
|
|
4742
4574
|
:host{
|
|
4743
4575
|
display: block;
|
|
@@ -4750,9 +4582,9 @@ const vanillaStyle$2 = `
|
|
|
4750
4582
|
function TimelineEntryView(props) {
|
|
4751
4583
|
var _a;
|
|
4752
4584
|
const timeline_icon = (_a = props.icon) !== null && _a !== void 0 ? _a : props.iconState;
|
|
4753
|
-
return (h$1("div", { class: sheet$
|
|
4585
|
+
return (h$1("div", { class: sheet$3.classes.TimelineReward, part: "sqm-base" },
|
|
4754
4586
|
h$1("style", { type: "text/css" },
|
|
4755
|
-
styleString$
|
|
4587
|
+
styleString$3,
|
|
4756
4588
|
vanillaStyle$2),
|
|
4757
4589
|
h$1("div", { class: "container", part: "sqm-entry-container" },
|
|
4758
4590
|
h$1("div", { class: "line" }, "/"),
|
|
@@ -4801,8 +4633,8 @@ const GET_USER_NAME = dist.gql `
|
|
|
4801
4633
|
`;
|
|
4802
4634
|
function useUserName(props) {
|
|
4803
4635
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4804
|
-
const user =
|
|
4805
|
-
const res =
|
|
4636
|
+
const user = Q();
|
|
4637
|
+
const res = yn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4806
4638
|
const loading = res.loading;
|
|
4807
4639
|
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)
|
|
4808
4640
|
? `${(_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}`
|
|
@@ -4843,4 +4675,4 @@ function useUserNameDemo(props) {
|
|
|
4843
4675
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4844
4676
|
}
|
|
4845
4677
|
|
|
4846
|
-
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button,
|
|
4678
|
+
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, MarketingEmailsCheckbox as sqm_marketing_emails_checkbox, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, Scroll as sqm_scroll, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };
|