@saasquatch/mint-components 1.12.0-9 → 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 -262
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +218 -339
- 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-c58966f8.js → sqm-invoice-table-view-e3b03a00.js} +1 -99
- 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 -96
- 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 -7
- 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 -22
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +9 -99
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -8
- 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 -261
- package/dist/esm/sqm-big-stat_39.entry.js +217 -338
- 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-d1cfdaf4.js → sqm-invoice-table-view-6e13a323.js} +1 -99
- 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 -6
- 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 -12
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +2 -19
- package/dist/types/components.d.ts +108 -625
- 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 -342
- 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/usePayoutStatus-b9fb7399.js +0 -70
- 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 -153
- 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 -131
- 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 -338
- 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/usePayoutStatus-1a635054.js +0 -67
- 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-d1cfdaf4.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/usePayoutStatus-1a635054.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-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-24092973.entry.js +0 -9
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-2868f475.entry.js +0 -1
- package/dist/mint-components/p-331d060e.entry.js +0 -223
- package/dist/mint-components/p-3925bcd6.entry.js +0 -13
- package/dist/mint-components/p-39840341.js +0 -1
- package/dist/mint-components/p-4364001c.entry.js +0 -12
- package/dist/mint-components/p-4bd7a472.js +0 -1
- package/dist/mint-components/p-517224ef.js +0 -19
- package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
- package/dist/mint-components/p-64491210.system.entry.js +0 -1
- package/dist/mint-components/p-8300d8c8.system.js +0 -1
- package/dist/mint-components/p-8bddb468.system.entry.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-b62faaa5.system.entry.js +0 -1
- package/dist/mint-components/p-bdd6bb13.js +0 -1
- package/dist/mint-components/p-c05e7b9f.entry.js +0 -195
- package/dist/mint-components/p-c3b37bbf.js +0 -1
- package/dist/mint-components/p-c510fb88.entry.js +0 -1
- package/dist/mint-components/p-c7057066.system.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-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-e990dc21.system.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-f655a7df.js +0 -1
- 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 -21
|
@@ -4,24 +4,23 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
const global = require('./global-02e50f09.js');
|
|
8
|
+
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
const reRender = require('./re-render-
|
|
14
|
-
const useChildElements = require('./useChildElements-
|
|
13
|
+
const reRender = require('./re-render-1976e05e.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-e0d44916.js');
|
|
15
15
|
require('./luxon-05098e19.js');
|
|
16
16
|
const utils = require('./utils-6847bc06.js');
|
|
17
17
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
18
18
|
const index$1 = require('./index-8c6255f5.js');
|
|
19
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
20
|
-
const utilities = require('./utilities-
|
|
19
|
+
const useRegistrationFormState = require('./useRegistrationFormState-876ed65d.js');
|
|
20
|
+
const utilities = require('./utilities-cec9dd36.js');
|
|
21
21
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
22
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
22
|
+
const ShadowViewAddon = require('./ShadowViewAddon-c3e91cee.js');
|
|
23
23
|
require('./sqm-portal-container-view-990a85a3.js');
|
|
24
|
-
const usePayoutStatus = require('./usePayoutStatus-b9fb7399.js');
|
|
25
24
|
|
|
26
25
|
const BigStat = class {
|
|
27
26
|
constructor(hostRef) {
|
|
@@ -40,7 +39,7 @@ const BigStat = class {
|
|
|
40
39
|
render() {
|
|
41
40
|
var _a;
|
|
42
41
|
const { props, label } = index_module.isDemo() ? ShadowViewAddon.useDemoBigStat(this) : ShadowViewAddon.useBigStat(this);
|
|
43
|
-
const host = index_module.
|
|
42
|
+
const host = index_module._();
|
|
44
43
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
45
44
|
const labelSlot = index.h("slot", { name: "label" }, hasLabel ? index.h("slot", null) : label);
|
|
46
45
|
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -161,7 +160,7 @@ const styleString = sheet.toString();
|
|
|
161
160
|
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
162
161
|
if (!missingProps)
|
|
163
162
|
return false;
|
|
164
|
-
const host = index_module.
|
|
163
|
+
const host = index_module._();
|
|
165
164
|
const [detailsOpen, setDetailsOpen] = stencilHooks_module.useState(false);
|
|
166
165
|
return (index.h("sl-alert", { type: "danger", open: true },
|
|
167
166
|
index.h("style", { type: "text/css" }, styleString),
|
|
@@ -303,11 +302,11 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
303
302
|
`;
|
|
304
303
|
function useCouponCode(props) {
|
|
305
304
|
var _a, _b, _c;
|
|
306
|
-
const user = index_module.
|
|
307
|
-
const programId = index_module.
|
|
308
|
-
const engagementMedium = index_module.
|
|
309
|
-
const [sendLoadEvent] = index_module
|
|
310
|
-
const { data, loading, refetch, errors } = index_module.
|
|
305
|
+
const user = index_module.Q();
|
|
306
|
+
const programId = index_module.H();
|
|
307
|
+
const engagementMedium = index_module.B();
|
|
308
|
+
const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT);
|
|
309
|
+
const { data, loading, refetch, errors } = index_module.yn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
311
310
|
const getStatus = (reward) => {
|
|
312
311
|
if (!reward || !reward.statuses)
|
|
313
312
|
return "ERROR";
|
|
@@ -697,13 +696,13 @@ const defaultFormState = {
|
|
|
697
696
|
error: "",
|
|
698
697
|
};
|
|
699
698
|
function useEditProfile(props) {
|
|
700
|
-
const userIdent = index_module.
|
|
699
|
+
const userIdent = index_module.Q();
|
|
701
700
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
702
701
|
const [error, setError] = stencilHooks_module.useState("");
|
|
703
702
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
704
703
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
705
|
-
const userDataResponse = index_module.
|
|
706
|
-
const [upsertUser, upsertUserResponse] = index_module
|
|
704
|
+
const userDataResponse = index_module.yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
705
|
+
const [upsertUser, upsertUserResponse] = index_module.$e(UPSERT_USER);
|
|
707
706
|
stencilHooks_module.useEffect(() => {
|
|
708
707
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
709
708
|
return;
|
|
@@ -1342,11 +1341,11 @@ const GET_RANK_WITHOUT_NAMES = index_module.dist.gql `
|
|
|
1342
1341
|
`;
|
|
1343
1342
|
function useLeaderboard(props) {
|
|
1344
1343
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1345
|
-
const programIdContext = index_module.
|
|
1344
|
+
const programIdContext = index_module.H();
|
|
1346
1345
|
// Default to context, overriden by props
|
|
1347
1346
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1348
|
-
const user = index_module.
|
|
1349
|
-
const locale = index_module.
|
|
1347
|
+
const user = index_module.Q();
|
|
1348
|
+
const locale = index_module.L();
|
|
1350
1349
|
const variables = programId
|
|
1351
1350
|
? {
|
|
1352
1351
|
type: props.leaderboardType,
|
|
@@ -1365,8 +1364,8 @@ function useLeaderboard(props) {
|
|
|
1365
1364
|
if (props.maxRows > 0) {
|
|
1366
1365
|
variables["limit"] = props.maxRows;
|
|
1367
1366
|
}
|
|
1368
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = index_module.
|
|
1369
|
-
const { data: rankData } = index_module.
|
|
1367
|
+
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = index_module.yn(props.hideNames ? GET_LEADERBOARD_WITHOUT_NAMES : GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
|
|
1368
|
+
const { data: rankData } = index_module.yn(props.hideNames ? GET_RANK_WITHOUT_NAMES : GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1370
1369
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1371
1370
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1372
1371
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1604,6 +1603,50 @@ const LinkButton = class {
|
|
|
1604
1603
|
}
|
|
1605
1604
|
};
|
|
1606
1605
|
|
|
1606
|
+
const MarketingEmailsCheckbox = class {
|
|
1607
|
+
constructor(hostRef) {
|
|
1608
|
+
index.registerInstance(this, hostRef);
|
|
1609
|
+
this.ignored = true;
|
|
1610
|
+
/**
|
|
1611
|
+
* This name is used as the key for this form field on submission. The name must be unique within this specific form.
|
|
1612
|
+
* @uiName Checkbox name attribute
|
|
1613
|
+
* @required
|
|
1614
|
+
*/
|
|
1615
|
+
this.checkboxName = "marketing-emails";
|
|
1616
|
+
/**
|
|
1617
|
+
* @uiName Checkbox label
|
|
1618
|
+
* @uiWidget textArea
|
|
1619
|
+
*/
|
|
1620
|
+
this.checkboxLabel = "I would like to receive marketing and promotional emails for this referral program";
|
|
1621
|
+
/**
|
|
1622
|
+
* @uiName Required
|
|
1623
|
+
*/
|
|
1624
|
+
this.checkboxRequired = false;
|
|
1625
|
+
stencilHooks_module.h$1(this);
|
|
1626
|
+
}
|
|
1627
|
+
disconnectedCallback() { }
|
|
1628
|
+
render() {
|
|
1629
|
+
const content = {
|
|
1630
|
+
...utils.getProps(this),
|
|
1631
|
+
};
|
|
1632
|
+
const { states, callbacks } = index_module.isDemo()
|
|
1633
|
+
? useCheckboxFieldDemo$1(this)
|
|
1634
|
+
: useCheckboxField(this);
|
|
1635
|
+
return (index.h(ShadowViewAddon.CheckboxFieldView, { states: states, content: content, callbacks: callbacks }));
|
|
1636
|
+
}
|
|
1637
|
+
};
|
|
1638
|
+
function useCheckboxFieldDemo$1(props) {
|
|
1639
|
+
return cjs.cjs({
|
|
1640
|
+
states: {
|
|
1641
|
+
registrationFormState: {},
|
|
1642
|
+
checked: false,
|
|
1643
|
+
},
|
|
1644
|
+
callbacks: {
|
|
1645
|
+
setChecked: () => { },
|
|
1646
|
+
},
|
|
1647
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1607
1650
|
function useNameFields(props) {
|
|
1608
1651
|
const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
|
|
1609
1652
|
return {
|
|
@@ -1664,12 +1707,12 @@ function NavigationMenuView(props) {
|
|
|
1664
1707
|
}
|
|
1665
1708
|
|
|
1666
1709
|
function handleMenu(e) {
|
|
1667
|
-
index_module.
|
|
1710
|
+
index_module.$n.push(e.detail.item.value);
|
|
1668
1711
|
}
|
|
1669
1712
|
function useNavigationMenu(props) {
|
|
1670
1713
|
const ref = stencilHooks_module.useRef();
|
|
1671
|
-
const [, rerender] = index_module.
|
|
1672
|
-
const user = index_module.
|
|
1714
|
+
const [, rerender] = index_module.gn();
|
|
1715
|
+
const user = index_module.Q();
|
|
1673
1716
|
stencilHooks_module.useEffect(() => {
|
|
1674
1717
|
var _a;
|
|
1675
1718
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1721,277 +1764,13 @@ function useNavigationMenuDemo(props) {
|
|
|
1721
1764
|
}
|
|
1722
1765
|
NavigationMenu.style = sqmNavigationMenuCss;
|
|
1723
1766
|
|
|
1724
|
-
const style$2 = {
|
|
1725
|
-
Wrapper: {
|
|
1726
|
-
maxWidth: "200px",
|
|
1727
|
-
},
|
|
1728
|
-
PayoutButtonDescription: {
|
|
1729
|
-
color: "var(--sl-color-neutral-500)",
|
|
1730
|
-
fontSize: "var(--sl-font-size-small)",
|
|
1731
|
-
margin: "0",
|
|
1732
|
-
},
|
|
1733
|
-
};
|
|
1734
|
-
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
1735
|
-
const styleString$2 = sheet$2.toString();
|
|
1736
|
-
function PayoutButtonScrollView(props) {
|
|
1737
|
-
const { text, states } = props;
|
|
1738
|
-
if (!states.payoutSettingsComplete)
|
|
1739
|
-
return index.h("div", null);
|
|
1740
|
-
return (index.h("div", { part: "sqm-base", class: sheet$2.classes.Wrapper },
|
|
1741
|
-
index.h("style", { type: "text/css" }, styleString$2),
|
|
1742
|
-
index.h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.payoutButtonText, "scroll-animation": "smooth" }),
|
|
1743
|
-
index.h("p", { class: sheet$2.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
const PayoutButtonScroll = class {
|
|
1747
|
-
constructor(hostRef) {
|
|
1748
|
-
index.registerInstance(this, hostRef);
|
|
1749
|
-
/**
|
|
1750
|
-
* @uiName Payout button text
|
|
1751
|
-
*/
|
|
1752
|
-
this.payoutButtonText = "Payouts & Tax Settings";
|
|
1753
|
-
/**
|
|
1754
|
-
* Description text under payout button
|
|
1755
|
-
* @uiName Payout button description text
|
|
1756
|
-
*/
|
|
1757
|
-
this.payoutButtonDescription = "Check your payout settings to see when you’ll get paid out next";
|
|
1758
|
-
this.ignored = true;
|
|
1759
|
-
stencilHooks_module.h$1(this);
|
|
1760
|
-
}
|
|
1761
|
-
disconnectedCallback() { }
|
|
1762
|
-
getTextProps() {
|
|
1763
|
-
return utils.getProps(this);
|
|
1764
|
-
}
|
|
1765
|
-
render() {
|
|
1766
|
-
const props = useDemoPayoutButtonScroll(this);
|
|
1767
|
-
return index.h(PayoutButtonScrollView, Object.assign({}, props));
|
|
1768
|
-
}
|
|
1769
|
-
};
|
|
1770
|
-
function useDemoPayoutButtonScroll(props) {
|
|
1771
|
-
return cjs.cjs({
|
|
1772
|
-
states: {
|
|
1773
|
-
payoutSettingsComplete: false,
|
|
1774
|
-
},
|
|
1775
|
-
text: props.getTextProps(),
|
|
1776
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
const style$3 = {
|
|
1780
|
-
SkeletonOne: {
|
|
1781
|
-
width: "50%",
|
|
1782
|
-
height: "16px",
|
|
1783
|
-
},
|
|
1784
|
-
AlertDescriptionText: {
|
|
1785
|
-
margin: "0",
|
|
1786
|
-
marginBottom: "var(--sl-spacing-small)",
|
|
1787
|
-
},
|
|
1788
|
-
ErrorAlertContainer: {
|
|
1789
|
-
"&::part(base)": {
|
|
1790
|
-
backgroundColor: "var(--sl-color-red-100)",
|
|
1791
|
-
borderTop: "none",
|
|
1792
|
-
},
|
|
1793
|
-
"& sl-icon::part(base)": {
|
|
1794
|
-
color: "var(--sl-color-danger-500)",
|
|
1795
|
-
},
|
|
1796
|
-
},
|
|
1797
|
-
WarningAlertContainer: {
|
|
1798
|
-
"&::part(base)": {
|
|
1799
|
-
backgroundColor: "var(--sl-color-yellow-100)",
|
|
1800
|
-
borderTop: "none",
|
|
1801
|
-
},
|
|
1802
|
-
"& sl-icon::part(base)": {
|
|
1803
|
-
color: "var(--sl-color-danger-500)",
|
|
1804
|
-
},
|
|
1805
|
-
},
|
|
1806
|
-
InfoAlertContainer: {
|
|
1807
|
-
"&::part(base)": {
|
|
1808
|
-
backgroundColor: "var(--sl-color-sky-100)",
|
|
1809
|
-
borderTop: "none",
|
|
1810
|
-
},
|
|
1811
|
-
"& sl-icon::part(base)": {
|
|
1812
|
-
color: "var(--sl-color-blue-500)",
|
|
1813
|
-
},
|
|
1814
|
-
},
|
|
1815
|
-
Dialog: {
|
|
1816
|
-
"&::part(panel)": {
|
|
1817
|
-
height: "600px",
|
|
1818
|
-
},
|
|
1819
|
-
"&::part(close-button)": {
|
|
1820
|
-
marginBottom: "var(--sl-spacing-xx-large)",
|
|
1821
|
-
},
|
|
1822
|
-
"&::part(title)": {
|
|
1823
|
-
display: "none",
|
|
1824
|
-
},
|
|
1825
|
-
"&::part(header)": {},
|
|
1826
|
-
"&::part(body)": { padding: "0" },
|
|
1827
|
-
"&::part(footer)": {},
|
|
1828
|
-
},
|
|
1829
|
-
};
|
|
1830
|
-
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
1831
|
-
const styleString$3 = sheet$3.toString();
|
|
1832
|
-
function PayoutStatusAlertView(props) {
|
|
1833
|
-
var _a, _b, _c, _d, _e;
|
|
1834
|
-
const { text, states, data, callbacks } = props;
|
|
1835
|
-
if (states.loading) {
|
|
1836
|
-
return index.h("sl-skeleton", { class: sheet$3.classes.SkeletonOne });
|
|
1837
|
-
}
|
|
1838
|
-
if (states.status === "DONE") {
|
|
1839
|
-
return index.h("div", null);
|
|
1840
|
-
}
|
|
1841
|
-
function getAlert(status) {
|
|
1842
|
-
if (states.error)
|
|
1843
|
-
return {
|
|
1844
|
-
header: text.errorHeader,
|
|
1845
|
-
description: text.errorDescription,
|
|
1846
|
-
buttonText: null,
|
|
1847
|
-
alertType: "critical",
|
|
1848
|
-
icon: "exclamation-triangle",
|
|
1849
|
-
class: sheet$3.classes.ErrorAlertContainer,
|
|
1850
|
-
};
|
|
1851
|
-
switch (status) {
|
|
1852
|
-
case "INFORMATION_REQUIRED":
|
|
1853
|
-
return {
|
|
1854
|
-
header: text.informationRequiredHeader,
|
|
1855
|
-
description: text.informationRequiredDescription,
|
|
1856
|
-
buttonText: text.informationRequiredButtonText,
|
|
1857
|
-
alertType: "info",
|
|
1858
|
-
icon: "info-circle",
|
|
1859
|
-
class: sheet$3.classes.InfoAlertContainer,
|
|
1860
|
-
};
|
|
1861
|
-
case "VERIFICATION_NEEDED":
|
|
1862
|
-
return {
|
|
1863
|
-
header: text.verificationRequiredHeader,
|
|
1864
|
-
description: text.verificationRequiredDescription,
|
|
1865
|
-
buttonText: text.verificationRequiredButtonText,
|
|
1866
|
-
alertType: "warning",
|
|
1867
|
-
icon: "exclamation-triangle",
|
|
1868
|
-
class: sheet$3.classes.WarningAlertContainer,
|
|
1869
|
-
};
|
|
1870
|
-
case "HOLD":
|
|
1871
|
-
return {
|
|
1872
|
-
header: text.holdHeader,
|
|
1873
|
-
description: text.holdDescription,
|
|
1874
|
-
buttonText: null,
|
|
1875
|
-
alertType: "warning",
|
|
1876
|
-
icon: "exclamation-triangle",
|
|
1877
|
-
class: sheet$3.classes.WarningAlertContainer,
|
|
1878
|
-
};
|
|
1879
|
-
default:
|
|
1880
|
-
return;
|
|
1881
|
-
}
|
|
1882
|
-
}
|
|
1883
|
-
//AL: TODO hookup ID
|
|
1884
|
-
function getButton(status) {
|
|
1885
|
-
switch (status) {
|
|
1886
|
-
case "INFORMATION_REQUIRED":
|
|
1887
|
-
return data.type === "SquatchJS2" ? (index.h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (index.h("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (index.h("sl-button", { type: "default" }, text.informationRequiredButtonText));
|
|
1888
|
-
case "VERIFICATION_NEEDED":
|
|
1889
|
-
return (index.h("sl-button", { type: "default", loading: states.loading,
|
|
1890
|
-
//AL: TODO callback to open verification form
|
|
1891
|
-
onClick: () => callbacks.onClick }, text.verificationRequiredButtonText));
|
|
1892
|
-
default:
|
|
1893
|
-
return;
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1896
|
-
return (index.h("div", { part: "sqm-base" },
|
|
1897
|
-
index.h("style", { type: "text/css" }, styleString$3),
|
|
1898
|
-
index.h("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 },
|
|
1899
|
-
index.h("sl-icon", { slot: "icon", name: (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.icon }),
|
|
1900
|
-
index.h("strong", null, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.header),
|
|
1901
|
-
index.h("p", { class: sheet$3.classes.AlertDescriptionText }, (_e = getAlert(states.status)) === null || _e === void 0 ? void 0 : _e.description),
|
|
1902
|
-
getButton(states.status)),
|
|
1903
|
-
index.h("sl-dialog", { noDismiss: true, class: sheet$3.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onCancel },
|
|
1904
|
-
index.h("iframe", {
|
|
1905
|
-
// AL: TODO replace iframe URL with verification url when available
|
|
1906
|
-
scrolling: "yes", frameBorder: "0", width: "100%", height: "100%", src: "https://impacttech.complytaxforms.com/ServiceRedirect.aspx?Language=eng&Param1=UxBORV4bOIrqNb4gbpNmtvW3wjdZJyx4gPElIGMJNR8=&UUID=B576EA3E-80FD-4D85-AA59-653D23A7CCE8" }))));
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
const PayoutStatusAlert = class {
|
|
1910
|
-
constructor(hostRef) {
|
|
1911
|
-
index.registerInstance(this, hostRef);
|
|
1912
|
-
/**
|
|
1913
|
-
* @uiName Info required alert header
|
|
1914
|
-
*/
|
|
1915
|
-
this.informationRequiredHeader = "Payout and tax information required";
|
|
1916
|
-
/**
|
|
1917
|
-
* @uiName Info required alert description
|
|
1918
|
-
*/
|
|
1919
|
-
this.informationRequiredDescription = "Submit your banking details and tax documents to receive your rewards.";
|
|
1920
|
-
/**
|
|
1921
|
-
* @uiName Info required alert button text
|
|
1922
|
-
*/
|
|
1923
|
-
this.informationRequiredButtonText = "Payouts & Tax Settings";
|
|
1924
|
-
/**
|
|
1925
|
-
* @uiName Verification required alert header
|
|
1926
|
-
*/
|
|
1927
|
-
this.verificationRequiredHeader = "Verify your identity";
|
|
1928
|
-
/**
|
|
1929
|
-
* @uiName Verification required alert description
|
|
1930
|
-
*/
|
|
1931
|
-
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
1932
|
-
/**
|
|
1933
|
-
* @uiName Verification required alert button text
|
|
1934
|
-
*/
|
|
1935
|
-
this.verificationRequiredButtonText = "Start Verification";
|
|
1936
|
-
/**
|
|
1937
|
-
* @uiName Payout on hold alert header
|
|
1938
|
-
*/
|
|
1939
|
-
this.holdHeader = "Your payouts and account are on hold";
|
|
1940
|
-
/**
|
|
1941
|
-
* @uiName Payout on hold alert description
|
|
1942
|
-
*/
|
|
1943
|
-
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}.";
|
|
1944
|
-
/**
|
|
1945
|
-
* @uiName Cash & Payouts Terms and Conditions url
|
|
1946
|
-
*/
|
|
1947
|
-
this.termsUrl = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
1948
|
-
/**
|
|
1949
|
-
* @uiName Error header
|
|
1950
|
-
*/
|
|
1951
|
-
this.errorHeader = "Could not determine payout status.";
|
|
1952
|
-
/**
|
|
1953
|
-
* @uiName Error description
|
|
1954
|
-
*/
|
|
1955
|
-
this.errorDescription = "There was an error with determining your payout status.";
|
|
1956
|
-
stencilHooks_module.h$1(this);
|
|
1957
|
-
}
|
|
1958
|
-
disconnectedCallback() { }
|
|
1959
|
-
getTextProps() {
|
|
1960
|
-
return utils.getProps(this);
|
|
1961
|
-
}
|
|
1962
|
-
render() {
|
|
1963
|
-
const props = index_module.isDemo()
|
|
1964
|
-
? useDemoPayoutStatusAlert(this)
|
|
1965
|
-
: usePayoutStatus.usePayoutStatus(this);
|
|
1966
|
-
console.log({ props });
|
|
1967
|
-
return index.h(PayoutStatusAlertView, Object.assign({}, props));
|
|
1968
|
-
}
|
|
1969
|
-
};
|
|
1970
|
-
function useDemoPayoutStatusAlert(props) {
|
|
1971
|
-
return cjs.cjs({
|
|
1972
|
-
states: {
|
|
1973
|
-
error: false,
|
|
1974
|
-
status: "INFORMATION_REQUIRED",
|
|
1975
|
-
loading: false,
|
|
1976
|
-
showVerifyIdentity: false,
|
|
1977
|
-
},
|
|
1978
|
-
data: { type: "SquatchAdmin" },
|
|
1979
|
-
text: props.getTextProps(),
|
|
1980
|
-
callbacks: {
|
|
1981
|
-
onTermsClick: () => { },
|
|
1982
|
-
onClick: () => console.log("show"),
|
|
1983
|
-
onCancel: () => console.log("hide"),
|
|
1984
|
-
},
|
|
1985
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
1767
|
function usePortalChangePassword(props) {
|
|
1989
1768
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1990
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1769
|
+
const [request, { loading, errors, data }] = index_module.Ue();
|
|
1991
1770
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1992
1771
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1993
1772
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1994
|
-
const user = index_module.
|
|
1773
|
+
const user = index_module.Q();
|
|
1995
1774
|
const submit = async (event) => {
|
|
1996
1775
|
var _a, _b;
|
|
1997
1776
|
setSuccess(false);
|
|
@@ -2233,7 +2012,7 @@ const PortalFooter = class {
|
|
|
2233
2012
|
};
|
|
2234
2013
|
|
|
2235
2014
|
function usePortalFrame(footerContent, headerContent) {
|
|
2236
|
-
const [, rerender] = index_module.
|
|
2015
|
+
const [, rerender] = index_module.gn();
|
|
2237
2016
|
return {
|
|
2238
2017
|
data: {
|
|
2239
2018
|
footer: footerContent,
|
|
@@ -2283,9 +2062,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
2283
2062
|
|
|
2284
2063
|
function usePortalLogin(props) {
|
|
2285
2064
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2286
|
-
const [request, { loading, errors, data }] = index_module.
|
|
2065
|
+
const [request, { loading, errors, data }] = index_module.qe();
|
|
2287
2066
|
const [error, setError] = stencilHooks_module.useState("");
|
|
2288
|
-
const urlParams = new URLSearchParams(index_module.
|
|
2067
|
+
const urlParams = new URLSearchParams(index_module.$n.location.search);
|
|
2289
2068
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2290
2069
|
const submit = async (event) => {
|
|
2291
2070
|
var _a, _b;
|
|
@@ -2304,7 +2083,7 @@ function usePortalLogin(props) {
|
|
|
2304
2083
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2305
2084
|
urlParams.delete("nextPage");
|
|
2306
2085
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2307
|
-
index_module.
|
|
2086
|
+
index_module.$n.push(url.href);
|
|
2308
2087
|
}
|
|
2309
2088
|
};
|
|
2310
2089
|
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) ||
|
|
@@ -2383,8 +2162,8 @@ const PortalLogin = class {
|
|
|
2383
2162
|
? useLoginDemo(this)
|
|
2384
2163
|
: usePortalLogin(this);
|
|
2385
2164
|
const content = {
|
|
2386
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.
|
|
2387
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
2165
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.$n.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2166
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.$n.push(states.registerPath) }, this.registerLabel))),
|
|
2388
2167
|
emailLabel: this.emailLabel,
|
|
2389
2168
|
passwordLabel: this.passwordLabel,
|
|
2390
2169
|
submitLabel: this.submitLabel,
|
|
@@ -2413,7 +2192,7 @@ function usePortalRegister(props) {
|
|
|
2413
2192
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2414
2193
|
const formRef = stencilHooks_module.useRef(null);
|
|
2415
2194
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
2416
|
-
const [request, { loading, errors, data }] = index_module.
|
|
2195
|
+
const [request, { loading, errors, data }] = index_module.xe();
|
|
2417
2196
|
stencilHooks_module.useEffect(() => {
|
|
2418
2197
|
if (!formRef.current)
|
|
2419
2198
|
return;
|
|
@@ -2486,7 +2265,7 @@ function usePortalRegister(props) {
|
|
|
2486
2265
|
validationErrors: {},
|
|
2487
2266
|
});
|
|
2488
2267
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2489
|
-
index_module.
|
|
2268
|
+
index_module.$n.push(props.nextPage);
|
|
2490
2269
|
}
|
|
2491
2270
|
}
|
|
2492
2271
|
catch (error) {
|
|
@@ -2660,7 +2439,7 @@ const PortalRegister = class {
|
|
|
2660
2439
|
: usePortalRegister(this);
|
|
2661
2440
|
const content = {
|
|
2662
2441
|
formData: index.h("slot", { name: "formData" }),
|
|
2663
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
2442
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.$n.push(states.loginPath) }, this.loginLabel))),
|
|
2664
2443
|
terms: index.h("slot", { name: "terms" }),
|
|
2665
2444
|
emailLabel: this.emailLabel,
|
|
2666
2445
|
passwordLabel: this.passwordLabel,
|
|
@@ -2831,11 +2610,11 @@ const ProgramExplainerStep = class {
|
|
|
2831
2610
|
const debug = stencilHooks_module.browser("sq:useProgramMenu");
|
|
2832
2611
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2833
2612
|
function useProgramMenu(props) {
|
|
2834
|
-
const programId = index_module.
|
|
2835
|
-
const host = index_module.
|
|
2613
|
+
const programId = index_module.H();
|
|
2614
|
+
const host = index_module._();
|
|
2836
2615
|
debug({ programId, props });
|
|
2837
2616
|
const ref = stencilHooks_module.useRef();
|
|
2838
|
-
const [, rerender] = index_module.
|
|
2617
|
+
const [, rerender] = index_module.gn();
|
|
2839
2618
|
stencilHooks_module.useEffect(() => {
|
|
2840
2619
|
var _a;
|
|
2841
2620
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2872,7 +2651,7 @@ const ProgramMenu = class {
|
|
|
2872
2651
|
}
|
|
2873
2652
|
};
|
|
2874
2653
|
|
|
2875
|
-
const style$
|
|
2654
|
+
const style$2 = {
|
|
2876
2655
|
Container: {
|
|
2877
2656
|
borderRadius: "var(--sl-border-radius-large)",
|
|
2878
2657
|
color: "var(--sl-color-neutral-900)",
|
|
@@ -2900,15 +2679,15 @@ const style$4 = {
|
|
|
2900
2679
|
},
|
|
2901
2680
|
},
|
|
2902
2681
|
};
|
|
2903
|
-
const sheet$
|
|
2904
|
-
const styleString$
|
|
2682
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
2683
|
+
const styleString$2 = sheet$2.toString();
|
|
2905
2684
|
const vanillaStyle$1 = `
|
|
2906
2685
|
:host{
|
|
2907
2686
|
display: block;
|
|
2908
2687
|
}
|
|
2909
2688
|
`;
|
|
2910
2689
|
function ReferralCardView(props) {
|
|
2911
|
-
return (index.h("div", { part: "sqm-base", class: sheet$
|
|
2690
|
+
return (index.h("div", { part: "sqm-base", class: sheet$2.classes.Container, style: {
|
|
2912
2691
|
border: `${props.hideBorder ? "none" : "1px solid var(--sl-color-neutral-300)"}`,
|
|
2913
2692
|
"padding-top": `var(--sl-spacing-${props.paddingTop})`,
|
|
2914
2693
|
"padding-right": `var(--sl-spacing-${props.paddingRight})`,
|
|
@@ -2919,15 +2698,15 @@ function ReferralCardView(props) {
|
|
|
2919
2698
|
margin: `${props.limitWidth ? "auto" : "none"}`,
|
|
2920
2699
|
} },
|
|
2921
2700
|
index.h("style", { type: "text/css" },
|
|
2922
|
-
styleString$
|
|
2701
|
+
styleString$2,
|
|
2923
2702
|
vanillaStyle$1),
|
|
2924
|
-
props.hasHeader && (index.h("div", { class: sheet$
|
|
2925
|
-
index.h("div", { part: "sqm-column-container", class: sheet$
|
|
2703
|
+
props.hasHeader && (index.h("div", { class: sheet$2.classes.EndContainer }, props.slots.header)),
|
|
2704
|
+
index.h("div", { part: "sqm-column-container", class: sheet$2.classes.ColumnContainer, style: {
|
|
2926
2705
|
alignItems: props.verticalAlignment,
|
|
2927
2706
|
} },
|
|
2928
2707
|
props.slots.left,
|
|
2929
2708
|
props.slots.right),
|
|
2930
|
-
props.hasFooter && (index.h("div", { class: sheet$
|
|
2709
|
+
props.hasFooter && (index.h("div", { class: sheet$2.classes.EndContainer }, props.slots.footer))));
|
|
2931
2710
|
}
|
|
2932
2711
|
|
|
2933
2712
|
const ReferralCard = class {
|
|
@@ -3013,9 +2792,9 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
3013
2792
|
`;
|
|
3014
2793
|
function useReferralIframe(props) {
|
|
3015
2794
|
var _a;
|
|
3016
|
-
const programId = index_module.
|
|
3017
|
-
const user = index_module.
|
|
3018
|
-
const { data } = index_module.
|
|
2795
|
+
const programId = index_module.H();
|
|
2796
|
+
const user = index_module.Q();
|
|
2797
|
+
const { data } = index_module.yn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
3019
2798
|
return {
|
|
3020
2799
|
states: {
|
|
3021
2800
|
content: props,
|
|
@@ -3740,9 +3519,9 @@ function useRewardExchangeList(props) {
|
|
|
3740
3519
|
});
|
|
3741
3520
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3742
3521
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3743
|
-
const user = index_module.
|
|
3744
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module
|
|
3745
|
-
const { data, loading, refetch, errors: queryError, } = index_module.
|
|
3522
|
+
const user = index_module.Q();
|
|
3523
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.$e(EXCHANGE);
|
|
3524
|
+
const { data, loading, refetch, errors: queryError, } = index_module.yn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3746
3525
|
stencilHooks_module.useEffect(() => {
|
|
3747
3526
|
var _a, _b;
|
|
3748
3527
|
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) {
|
|
@@ -3761,7 +3540,7 @@ function useRewardExchangeList(props) {
|
|
|
3761
3540
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3762
3541
|
canvas.confetti();
|
|
3763
3542
|
}, [canvasRef.current]);
|
|
3764
|
-
const { refresh } = index_module.
|
|
3543
|
+
const { refresh } = index_module.ze();
|
|
3765
3544
|
async function exchangeReward() {
|
|
3766
3545
|
if (!selectedItem)
|
|
3767
3546
|
return;
|
|
@@ -4069,8 +3848,8 @@ function matchPath(pattern, page) {
|
|
|
4069
3848
|
return regexp.exec(page);
|
|
4070
3849
|
}
|
|
4071
3850
|
function useRouter() {
|
|
4072
|
-
const location = index_module.
|
|
4073
|
-
const host = index_module.
|
|
3851
|
+
const location = index_module.Sn();
|
|
3852
|
+
const host = index_module._();
|
|
4074
3853
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
4075
3854
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
4076
3855
|
const page = location.pathname;
|
|
@@ -4153,6 +3932,106 @@ const SqmRouter = class {
|
|
|
4153
3932
|
};
|
|
4154
3933
|
SqmRouter.style = sqmRouterCss;
|
|
4155
3934
|
|
|
3935
|
+
const REVEAL_EVENT = "sq:reveal";
|
|
3936
|
+
function useScroll(props) {
|
|
3937
|
+
const { scrollTagName, scrollId } = props;
|
|
3938
|
+
async function scroll() {
|
|
3939
|
+
const element = document === null || document === void 0 ? void 0 : document.querySelector(scrollTagName || `#${scrollId}`);
|
|
3940
|
+
element.dispatchEvent(new CustomEvent(REVEAL_EVENT, {
|
|
3941
|
+
detail: scrollTagName || `#${scrollId}`,
|
|
3942
|
+
bubbles: true,
|
|
3943
|
+
composed: true,
|
|
3944
|
+
}));
|
|
3945
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
3946
|
+
element.scrollIntoView({ behavior: props.scrollAnimation });
|
|
3947
|
+
}
|
|
3948
|
+
return {
|
|
3949
|
+
callbacks: { scroll },
|
|
3950
|
+
};
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
const Scroll = class {
|
|
3954
|
+
constructor(hostRef) {
|
|
3955
|
+
index.registerInstance(this, hostRef);
|
|
3956
|
+
this.ignored = true;
|
|
3957
|
+
/**
|
|
3958
|
+
* @uiName Button type
|
|
3959
|
+
* @uiType string
|
|
3960
|
+
* @uiEnum ["default", "primary", "success", "neutral", "warning", "danger", "text"]
|
|
3961
|
+
* @uiEnumNames ["Default", "Primary", "Success", "Neutral", "Warning", "Danger", "Text"]
|
|
3962
|
+
|
|
3963
|
+
*/
|
|
3964
|
+
this.buttonType = "default";
|
|
3965
|
+
/**
|
|
3966
|
+
* @uiName Scroll animation style
|
|
3967
|
+
* @uiType string
|
|
3968
|
+
* @uiEnum ["smooth", "auto"]
|
|
3969
|
+
* @uiEnumNames ["Smooth", "Auto"]
|
|
3970
|
+
*/
|
|
3971
|
+
this.scrollAnimation = "smooth";
|
|
3972
|
+
stencilHooks_module.h$1(this);
|
|
3973
|
+
}
|
|
3974
|
+
disconnectedCallback() { }
|
|
3975
|
+
render() {
|
|
3976
|
+
var _a;
|
|
3977
|
+
const { callbacks } = useScroll(this);
|
|
3978
|
+
const outlineColor = (_a = this.buttonType) !== null && _a !== void 0 ? _a : "primary";
|
|
3979
|
+
const style = {
|
|
3980
|
+
Button: {
|
|
3981
|
+
"& .outline": {
|
|
3982
|
+
"&::part(base)": {
|
|
3983
|
+
color: "var(--sl-color-" + outlineColor + "-500)",
|
|
3984
|
+
borderColor: "var(--sl-color-" + outlineColor + "-500)",
|
|
3985
|
+
backgroundColor: "transparent",
|
|
3986
|
+
"&:hover": {
|
|
3987
|
+
color: "var(--sl-color-primary-text)",
|
|
3988
|
+
backgroundColor: "var(--sl-color-" + outlineColor + "-500)",
|
|
3989
|
+
},
|
|
3990
|
+
},
|
|
3991
|
+
},
|
|
3992
|
+
"& .neutral": {
|
|
3993
|
+
"&::part(base)": {
|
|
3994
|
+
color: "var(--sl-color-primary-text)",
|
|
3995
|
+
background: "var(--sl-color-neutral-500)",
|
|
3996
|
+
"&:hover": {
|
|
3997
|
+
opacity: "0.8",
|
|
3998
|
+
},
|
|
3999
|
+
},
|
|
4000
|
+
},
|
|
4001
|
+
"& .mobile": {
|
|
4002
|
+
"@media (max-width: 499px)": {
|
|
4003
|
+
width: "100%",
|
|
4004
|
+
},
|
|
4005
|
+
},
|
|
4006
|
+
},
|
|
4007
|
+
};
|
|
4008
|
+
const sheet = JSS.createStyleSheet(style);
|
|
4009
|
+
const styleString = sheet.toString();
|
|
4010
|
+
const vanillaStyle = `
|
|
4011
|
+
:host{
|
|
4012
|
+
display: contents;
|
|
4013
|
+
}
|
|
4014
|
+
${this.mobile &&
|
|
4015
|
+
`
|
|
4016
|
+
@media only screen and (max-width: 499px) {
|
|
4017
|
+
:host {
|
|
4018
|
+
display: block;
|
|
4019
|
+
width: 100%;
|
|
4020
|
+
}
|
|
4021
|
+
}
|
|
4022
|
+
`}
|
|
4023
|
+
`;
|
|
4024
|
+
let classStack = "";
|
|
4025
|
+
if (this.outline && this.buttonType != "default")
|
|
4026
|
+
classStack += "outline ";
|
|
4027
|
+
if (this.buttonType === "neutral")
|
|
4028
|
+
classStack += "neutral ";
|
|
4029
|
+
if (this.mobile)
|
|
4030
|
+
classStack += "mobile ";
|
|
4031
|
+
return (index.h("div", { class: sheet.classes.Button }, index.h("style", { type: "text/css" }, vanillaStyle, styleString), index.h("sl-button", { type: this.buttonType, onClick: callbacks.scroll, size: this.size, pill: this.pill, circle: this.circle, class: classStack }, (this.iconSlot || this.iconName) && (index.h("sl-icon", { slot: this.iconSlot || "prefix", name: this.iconName })), this.buttonText, index.h("slot", null))));
|
|
4032
|
+
}
|
|
4033
|
+
};
|
|
4034
|
+
|
|
4156
4035
|
const sqmShareButtonCss = ":host{display:block}:host([hidden]){display:none}sl-button{display:block}";
|
|
4157
4036
|
|
|
4158
4037
|
const ShareButton = class {
|
|
@@ -4231,11 +4110,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = index_module.dist.gql `
|
|
|
4231
4110
|
`;
|
|
4232
4111
|
function useShareCode(props) {
|
|
4233
4112
|
var _a, _b;
|
|
4234
|
-
const { programId = index_module.
|
|
4235
|
-
const user = index_module.
|
|
4236
|
-
const engagementMedium = index_module.
|
|
4237
|
-
const { data } = index_module.
|
|
4238
|
-
const [sendLoadEvent] = index_module
|
|
4113
|
+
const { programId = index_module.H() } = props;
|
|
4114
|
+
const user = index_module.Q();
|
|
4115
|
+
const engagementMedium = index_module.B();
|
|
4116
|
+
const { data } = index_module.yn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4117
|
+
const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4239
4118
|
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 :
|
|
4240
4119
|
// Shown during loading
|
|
4241
4120
|
"...";
|
|
@@ -4434,10 +4313,10 @@ const SEND_EVENT = index_module.dist.gql `
|
|
|
4434
4313
|
}
|
|
4435
4314
|
`;
|
|
4436
4315
|
function useTaskCard(props) {
|
|
4437
|
-
const user = index_module.
|
|
4438
|
-
const locale = index_module.
|
|
4439
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module
|
|
4440
|
-
const { refresh } = index_module.
|
|
4316
|
+
const user = index_module.Q();
|
|
4317
|
+
const locale = index_module.L();
|
|
4318
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.$e(SEND_EVENT);
|
|
4319
|
+
const { refresh } = index_module.ze();
|
|
4441
4320
|
stencilHooks_module.useEffect(() => {
|
|
4442
4321
|
if (data) {
|
|
4443
4322
|
refresh();
|
|
@@ -4650,7 +4529,7 @@ const Gift = () => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24
|
|
|
4650
4529
|
const Circle = () => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
4651
4530
|
index.h("circle", { cx: "12", cy: "12", r: "9", fill: "currentColor", stroke: "currentColor", "stroke-width": "2" })));
|
|
4652
4531
|
|
|
4653
|
-
const style$
|
|
4532
|
+
const style$3 = {
|
|
4654
4533
|
TimelineReward: {
|
|
4655
4534
|
color: "var(--sl-color-neutral-900)",
|
|
4656
4535
|
lineHeight: "var(--sl-line-height-dense)",
|
|
@@ -4693,8 +4572,8 @@ const style$5 = {
|
|
|
4693
4572
|
},
|
|
4694
4573
|
},
|
|
4695
4574
|
};
|
|
4696
|
-
const sheet$
|
|
4697
|
-
const styleString$
|
|
4575
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
4576
|
+
const styleString$3 = sheet$3.toString();
|
|
4698
4577
|
const vanillaStyle$2 = `
|
|
4699
4578
|
:host{
|
|
4700
4579
|
display: block;
|
|
@@ -4707,9 +4586,9 @@ const vanillaStyle$2 = `
|
|
|
4707
4586
|
function TimelineEntryView(props) {
|
|
4708
4587
|
var _a;
|
|
4709
4588
|
const timeline_icon = (_a = props.icon) !== null && _a !== void 0 ? _a : props.iconState;
|
|
4710
|
-
return (index.h("div", { class: sheet$
|
|
4589
|
+
return (index.h("div", { class: sheet$3.classes.TimelineReward, part: "sqm-base" },
|
|
4711
4590
|
index.h("style", { type: "text/css" },
|
|
4712
|
-
styleString$
|
|
4591
|
+
styleString$3,
|
|
4713
4592
|
vanillaStyle$2),
|
|
4714
4593
|
index.h("div", { class: "container", part: "sqm-entry-container" },
|
|
4715
4594
|
index.h("div", { class: "line" }, "/"),
|
|
@@ -4758,8 +4637,8 @@ const GET_USER_NAME = index_module.dist.gql `
|
|
|
4758
4637
|
`;
|
|
4759
4638
|
function useUserName(props) {
|
|
4760
4639
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4761
|
-
const user = index_module.
|
|
4762
|
-
const res = index_module.
|
|
4640
|
+
const user = index_module.Q();
|
|
4641
|
+
const res = index_module.yn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4763
4642
|
const loading = res.loading;
|
|
4764
4643
|
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)
|
|
4765
4644
|
? `${(_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}`
|
|
@@ -4815,10 +4694,9 @@ exports.sqm_image = Image;
|
|
|
4815
4694
|
exports.sqm_input_field = InputField;
|
|
4816
4695
|
exports.sqm_leaderboard = Leaderboard;
|
|
4817
4696
|
exports.sqm_link_button = LinkButton;
|
|
4697
|
+
exports.sqm_marketing_emails_checkbox = MarketingEmailsCheckbox;
|
|
4818
4698
|
exports.sqm_name_fields = NameFields;
|
|
4819
4699
|
exports.sqm_navigation_menu = NavigationMenu;
|
|
4820
|
-
exports.sqm_payout_button_scroll = PayoutButtonScroll;
|
|
4821
|
-
exports.sqm_payout_status_alert = PayoutStatusAlert;
|
|
4822
4700
|
exports.sqm_portal_change_password = PortalChangePassword;
|
|
4823
4701
|
exports.sqm_portal_footer = PortalFooter;
|
|
4824
4702
|
exports.sqm_portal_frame = PortalFrame;
|
|
@@ -4831,6 +4709,7 @@ exports.sqm_referral_card = ReferralCard;
|
|
|
4831
4709
|
exports.sqm_referral_iframe = SqmReferralIframe;
|
|
4832
4710
|
exports.sqm_reward_exchange_list = SqmRewardExchangeList;
|
|
4833
4711
|
exports.sqm_router = SqmRouter;
|
|
4712
|
+
exports.sqm_scroll = Scroll;
|
|
4834
4713
|
exports.sqm_share_button = ShareButton;
|
|
4835
4714
|
exports.sqm_share_code = ShareCode;
|
|
4836
4715
|
exports.sqm_share_link = ShareLink;
|