@saasquatch/mint-components 1.12.1-2 → 1.12.1-20
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-88821c64.js → ShadowViewAddon-e7d97410.js} +152 -117
- 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 +61 -61
- package/dist/cjs/{sqm-big-stat_39.cjs.entry.js → sqm-big-stat_40.cjs.entry.js} +241 -68
- 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-a9133a11.js → sqm-invoice-table-view-e3b03a00.js} +1 -1
- 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 +9 -9
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +5 -5
- 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.cjs.entry.js +7 -11
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +7 -7
- 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 +243 -179
- 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 -0
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +6 -15
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +12 -41
- package/dist/collection/components/sqm-portal-change-marketing/ChangeMarketing.stories.js +55 -0
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +47 -0
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +219 -0
- package/dist/collection/components/sqm-portal-change-marketing/usePortalChangeMarketing.js +115 -0
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +3 -3
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -3
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +3 -3
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +0 -4
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +3 -3
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +3 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-149b4015.js} +152 -118
- 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 +61 -61
- package/dist/esm/{sqm-big-stat_39.entry.js → sqm-big-stat_40.entry.js} +241 -69
- 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-71915a5e.js → sqm-invoice-table-view-6e13a323.js} +1 -1
- 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 +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +5 -5
- 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.entry.js +7 -11
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- 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 +243 -179
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- 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-149b4015.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_40.entry.js +1 -0
- 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-71915a5e.js → sqm-invoice-table-view-6e13a323.js} +1 -1
- 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.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/{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-10e89d0a.entry.js +1 -0
- package/dist/mint-components/{p-012daf3c.entry.js → p-137ea86e.entry.js} +1 -1
- package/dist/mint-components/p-1bfc8eb0.system.entry.js +1 -0
- 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-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-04348a9b.js → p-41a11a7f.js} +1 -1
- package/dist/mint-components/{p-3cb18382.system.js → p-44787d6e.system.js} +1 -1
- package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-4502ed11.system.entry.js} +1 -1
- 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-cb38b9b0.system.entry.js → p-5b333fa8.system.entry.js} +1 -1
- 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-acd77a6e.entry.js → p-6f6a6518.entry.js} +32 -15
- 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-79186b05.entry.js +9 -0
- package/dist/mint-components/p-79191f88.entry.js +1 -0
- package/dist/mint-components/p-7c6c96e2.system.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-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-ace06b9b.system.js +1 -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-ba0dfda9.js +391 -0
- package/dist/mint-components/{p-5cd917db.js → p-bb00db59.js} +1 -1
- 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-d0ea10c3.system.entry.js +1 -0
- package/dist/mint-components/{p-4671e644.entry.js → p-d8d2de11.entry.js} +1 -1
- 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-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-b8233366.entry.js → p-ec41d6a4.entry.js} +1 -1
- package/dist/mint-components/{p-43621f12.system.js → p-ed095674.system.js} +1 -1
- package/dist/mint-components/{p-ca809fdd.system.js → p-ed17e637.system.js} +1 -1
- package/dist/mint-components/p-f3dd15c5.entry.js +13 -0
- package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +3 -8
- package/dist/types/components/sqm-portal-change-marketing/ChangeMarketing.stories.d.ts +8 -0
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.d.ts +28 -0
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing.d.ts +41 -0
- package/dist/types/components/sqm-portal-change-marketing/usePortalChangeMarketing.d.ts +3 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +1 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +1 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +1 -1
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +1 -1
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +1 -1
- package/dist/types/components.d.ts +88 -24
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-65c8679e.js +0 -1
- package/dist/esm-es5/index.module-6c840c4e.js +0 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-f8e78810.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +0 -1
- package/dist/mint-components/p-1279f7a3.system.entry.js +0 -1
- package/dist/mint-components/p-15a64357.entry.js +0 -13
- package/dist/mint-components/p-17f56865.entry.js +0 -9
- package/dist/mint-components/p-1b861be5.entry.js +0 -1
- package/dist/mint-components/p-2868f475.entry.js +0 -1
- package/dist/mint-components/p-6792c8d8.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-99c15c5e.entry.js +0 -1
- package/dist/mint-components/p-9d34f4f0.entry.js +0 -33
- package/dist/mint-components/p-a02afa72.system.js +0 -1
- package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
- package/dist/mint-components/p-b1e8a802.entry.js +0 -1
- package/dist/mint-components/p-b3e97f8a.system.entry.js +0 -1
- package/dist/mint-components/p-b651706a.js +0 -391
- package/dist/mint-components/p-bdd6bb13.js +0 -1
- package/dist/mint-components/p-c3b37bbf.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-def516b8.system.js +0 -1
- package/dist/mint-components/p-f655a7df.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -4,22 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
const global = require('./global-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-e7d97410.js');
|
|
23
23
|
require('./sqm-portal-container-view-990a85a3.js');
|
|
24
24
|
|
|
25
25
|
const BigStat = class {
|
|
@@ -39,7 +39,7 @@ const BigStat = class {
|
|
|
39
39
|
render() {
|
|
40
40
|
var _a;
|
|
41
41
|
const { props, label } = index_module.isDemo() ? ShadowViewAddon.useDemoBigStat(this) : ShadowViewAddon.useBigStat(this);
|
|
42
|
-
const host = index_module.
|
|
42
|
+
const host = index_module._();
|
|
43
43
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
44
44
|
const labelSlot = index.h("slot", { name: "label" }, hasLabel ? index.h("slot", null) : label);
|
|
45
45
|
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -160,7 +160,7 @@ const styleString = sheet.toString();
|
|
|
160
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) {
|
|
161
161
|
if (!missingProps)
|
|
162
162
|
return false;
|
|
163
|
-
const host = index_module.
|
|
163
|
+
const host = index_module._();
|
|
164
164
|
const [detailsOpen, setDetailsOpen] = stencilHooks_module.useState(false);
|
|
165
165
|
return (index.h("sl-alert", { type: "danger", open: true },
|
|
166
166
|
index.h("style", { type: "text/css" }, styleString),
|
|
@@ -302,11 +302,11 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
302
302
|
`;
|
|
303
303
|
function useCouponCode(props) {
|
|
304
304
|
var _a, _b, _c;
|
|
305
|
-
const user = index_module.
|
|
306
|
-
const programId = index_module.
|
|
307
|
-
const engagementMedium = index_module.
|
|
308
|
-
const [sendLoadEvent] = index_module
|
|
309
|
-
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));
|
|
310
310
|
const getStatus = (reward) => {
|
|
311
311
|
if (!reward || !reward.statuses)
|
|
312
312
|
return "ERROR";
|
|
@@ -696,13 +696,13 @@ const defaultFormState = {
|
|
|
696
696
|
error: "",
|
|
697
697
|
};
|
|
698
698
|
function useEditProfile(props) {
|
|
699
|
-
const userIdent = index_module.
|
|
699
|
+
const userIdent = index_module.Q();
|
|
700
700
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
701
701
|
const [error, setError] = stencilHooks_module.useState("");
|
|
702
702
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
703
703
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
704
|
-
const userDataResponse = index_module.
|
|
705
|
-
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);
|
|
706
706
|
stencilHooks_module.useEffect(() => {
|
|
707
707
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
708
708
|
return;
|
|
@@ -1341,11 +1341,11 @@ const GET_RANK_WITHOUT_NAMES = index_module.dist.gql `
|
|
|
1341
1341
|
`;
|
|
1342
1342
|
function useLeaderboard(props) {
|
|
1343
1343
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1344
|
-
const programIdContext = index_module.
|
|
1344
|
+
const programIdContext = index_module.H();
|
|
1345
1345
|
// Default to context, overriden by props
|
|
1346
1346
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1347
|
-
const user = index_module.
|
|
1348
|
-
const locale = index_module.
|
|
1347
|
+
const user = index_module.Q();
|
|
1348
|
+
const locale = index_module.L();
|
|
1349
1349
|
const variables = programId
|
|
1350
1350
|
? {
|
|
1351
1351
|
type: props.leaderboardType,
|
|
@@ -1364,8 +1364,8 @@ function useLeaderboard(props) {
|
|
|
1364
1364
|
if (props.maxRows > 0) {
|
|
1365
1365
|
variables["limit"] = props.maxRows;
|
|
1366
1366
|
}
|
|
1367
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = index_module.
|
|
1368
|
-
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));
|
|
1369
1369
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1370
1370
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1371
1371
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1607,21 +1607,15 @@ const MarketingEmailsCheckbox = class {
|
|
|
1607
1607
|
constructor(hostRef) {
|
|
1608
1608
|
index.registerInstance(this, hostRef);
|
|
1609
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 = "marketingEmails";
|
|
1616
1610
|
/**
|
|
1617
1611
|
* @uiName Checkbox label
|
|
1618
1612
|
* @uiWidget textArea
|
|
1619
1613
|
*/
|
|
1620
1614
|
this.checkboxLabel = "I would like to receive marketing and promotional emails for this referral program";
|
|
1621
1615
|
/**
|
|
1622
|
-
* @
|
|
1616
|
+
* @undocumented
|
|
1623
1617
|
*/
|
|
1624
|
-
this.
|
|
1618
|
+
this.checkboxName = "marketingEmailOptIn";
|
|
1625
1619
|
stencilHooks_module.h$1(this);
|
|
1626
1620
|
}
|
|
1627
1621
|
disconnectedCallback() { }
|
|
@@ -1707,12 +1701,12 @@ function NavigationMenuView(props) {
|
|
|
1707
1701
|
}
|
|
1708
1702
|
|
|
1709
1703
|
function handleMenu(e) {
|
|
1710
|
-
index_module.
|
|
1704
|
+
index_module.$n.push(e.detail.item.value);
|
|
1711
1705
|
}
|
|
1712
1706
|
function useNavigationMenu(props) {
|
|
1713
1707
|
const ref = stencilHooks_module.useRef();
|
|
1714
|
-
const [, rerender] = index_module.
|
|
1715
|
-
const user = index_module.
|
|
1708
|
+
const [, rerender] = index_module.gn();
|
|
1709
|
+
const user = index_module.Q();
|
|
1716
1710
|
stencilHooks_module.useEffect(() => {
|
|
1717
1711
|
var _a;
|
|
1718
1712
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1764,13 +1758,191 @@ function useNavigationMenuDemo(props) {
|
|
|
1764
1758
|
}
|
|
1765
1759
|
NavigationMenu.style = sqmNavigationMenuCss;
|
|
1766
1760
|
|
|
1761
|
+
const GET_USER$1 = index_module.dist.gql `
|
|
1762
|
+
query {
|
|
1763
|
+
viewer {
|
|
1764
|
+
... on User {
|
|
1765
|
+
id
|
|
1766
|
+
accountId
|
|
1767
|
+
marketingEmailOptIn
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
`;
|
|
1772
|
+
const UPSERT_USER$1 = index_module.dist.gql `
|
|
1773
|
+
mutation ($userInput: UserInput!) {
|
|
1774
|
+
upsertUser(userInput: $userInput) {
|
|
1775
|
+
id
|
|
1776
|
+
marketingEmailOptIn
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
`;
|
|
1780
|
+
// view doesn't tolerate undefined, even when we're loading
|
|
1781
|
+
const defaultFormState$1 = {
|
|
1782
|
+
marketingEmailOptIn: false,
|
|
1783
|
+
errors: {},
|
|
1784
|
+
error: "",
|
|
1785
|
+
};
|
|
1786
|
+
function usePortalProfile(props) {
|
|
1787
|
+
const userIdent = index_module.Q();
|
|
1788
|
+
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1789
|
+
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
1790
|
+
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState$1);
|
|
1791
|
+
const userDataResponse = index_module.yn(GET_USER$1, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
1792
|
+
const [upsertUser, upsertUserResponse] = index_module.$e(UPSERT_USER$1);
|
|
1793
|
+
stencilHooks_module.useEffect(() => {
|
|
1794
|
+
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
1795
|
+
return;
|
|
1796
|
+
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) {
|
|
1797
|
+
setFormState((state) => {
|
|
1798
|
+
var _a, _b, _c;
|
|
1799
|
+
return ({
|
|
1800
|
+
...state,
|
|
1801
|
+
error: (_c = (_b = (_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0].message,
|
|
1802
|
+
});
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
else {
|
|
1806
|
+
setUserData((state) => {
|
|
1807
|
+
var _a;
|
|
1808
|
+
return ({
|
|
1809
|
+
...state,
|
|
1810
|
+
...(_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.data) === null || _a === void 0 ? void 0 : _a.upsertUser,
|
|
1811
|
+
});
|
|
1812
|
+
});
|
|
1813
|
+
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.data)
|
|
1814
|
+
setSuccess(true);
|
|
1815
|
+
}
|
|
1816
|
+
}, [upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading]);
|
|
1817
|
+
stencilHooks_module.useEffect(() => {
|
|
1818
|
+
var _a, _b;
|
|
1819
|
+
setUserData((data) => { var _a; return ({ ...data, ...(_a = userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer }); });
|
|
1820
|
+
setFormState({
|
|
1821
|
+
...defaultFormState$1,
|
|
1822
|
+
...(_a = userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer,
|
|
1823
|
+
...(_b = upsertUserResponse.data) === null || _b === void 0 ? void 0 : _b.upsertUser,
|
|
1824
|
+
});
|
|
1825
|
+
}, [userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data]);
|
|
1826
|
+
stencilHooks_module.useEffect(() => {
|
|
1827
|
+
var _a, _b;
|
|
1828
|
+
if ((_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) === null || _a === void 0 ? void 0 : _a.message) {
|
|
1829
|
+
setFormState({
|
|
1830
|
+
...(_b = userDataResponse.data) === null || _b === void 0 ? void 0 : _b.viewer,
|
|
1831
|
+
error: props.networkRequestMessage,
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
}, [upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors]);
|
|
1835
|
+
const onSubmit = (event) => {
|
|
1836
|
+
var _a;
|
|
1837
|
+
setSuccess(false);
|
|
1838
|
+
const formData = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.formData;
|
|
1839
|
+
formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
|
|
1840
|
+
jsonpointer.jsonpointer.set(formData, key, value);
|
|
1841
|
+
});
|
|
1842
|
+
upsertUser({
|
|
1843
|
+
userInput: {
|
|
1844
|
+
id: userIdent === null || userIdent === void 0 ? void 0 : userIdent.id,
|
|
1845
|
+
accountId: userIdent === null || userIdent === void 0 ? void 0 : userIdent.accountId,
|
|
1846
|
+
marketingEmailOptIn: Boolean(formData.marketingEmailOptIn),
|
|
1847
|
+
},
|
|
1848
|
+
});
|
|
1849
|
+
setFormState((s) => ({ ...s, errors: {}, error: "" }));
|
|
1850
|
+
return;
|
|
1851
|
+
};
|
|
1852
|
+
return {
|
|
1853
|
+
states: {
|
|
1854
|
+
success,
|
|
1855
|
+
loading: (userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.loading) || upsertUserResponse.loading,
|
|
1856
|
+
submitDisabled: false,
|
|
1857
|
+
formState,
|
|
1858
|
+
user: userData,
|
|
1859
|
+
text: {
|
|
1860
|
+
emailPreferencesHeader: props.emailPreferencesHeader,
|
|
1861
|
+
marketingCheckboxLabel: props.marketingCheckboxLabel,
|
|
1862
|
+
submitChangeButtonText: props.submitChangeButtonText,
|
|
1863
|
+
successMessage: props.successMessage,
|
|
1864
|
+
},
|
|
1865
|
+
},
|
|
1866
|
+
callbacks: {
|
|
1867
|
+
onSubmit,
|
|
1868
|
+
setChecked: (value) => setFormState({ ...formState, marketingEmailOptIn: value }),
|
|
1869
|
+
},
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
const PortalChangeMarketing = class {
|
|
1874
|
+
constructor(hostRef) {
|
|
1875
|
+
index.registerInstance(this, hostRef);
|
|
1876
|
+
this.ignored = true;
|
|
1877
|
+
/**
|
|
1878
|
+
* @uiName Email preferences header
|
|
1879
|
+
*/
|
|
1880
|
+
this.emailPreferencesHeader = "Email preferences";
|
|
1881
|
+
/**
|
|
1882
|
+
* @uiName Marketing checkbox label
|
|
1883
|
+
*/
|
|
1884
|
+
this.marketingCheckboxLabel = "I want to receive marketing emails and promotions for this referral program from impact.com";
|
|
1885
|
+
/**
|
|
1886
|
+
* @uiName Submit changes button text
|
|
1887
|
+
*/
|
|
1888
|
+
this.submitChangeButtonText = "Save";
|
|
1889
|
+
/**
|
|
1890
|
+
* Displayed when the page fails to load due to a network error. The participant can try refreshing the page.
|
|
1891
|
+
*
|
|
1892
|
+
* @uiName Network request error message
|
|
1893
|
+
*/
|
|
1894
|
+
this.networkRequestMessage = "An error occurred while loading this page. Please refresh the page.";
|
|
1895
|
+
/**
|
|
1896
|
+
* @uiName Successful update message
|
|
1897
|
+
*/
|
|
1898
|
+
this.successMessage = "Opt-in preference has been changed.";
|
|
1899
|
+
stencilHooks_module.h$1(this);
|
|
1900
|
+
}
|
|
1901
|
+
disconnectedCallback() { }
|
|
1902
|
+
render() {
|
|
1903
|
+
const props = index_module.isDemo()
|
|
1904
|
+
? usePortalProfileDemo(utils.getProps(this))
|
|
1905
|
+
: usePortalProfile(utils.getProps(this));
|
|
1906
|
+
return index.h(ShadowViewAddon.ChangeMarktingView, Object.assign({}, props));
|
|
1907
|
+
}
|
|
1908
|
+
};
|
|
1909
|
+
function usePortalProfileDemo(props) {
|
|
1910
|
+
return cjs.cjs({
|
|
1911
|
+
states: {
|
|
1912
|
+
success: false,
|
|
1913
|
+
loading: false,
|
|
1914
|
+
submitDisabled: false,
|
|
1915
|
+
user: {
|
|
1916
|
+
id: "01",
|
|
1917
|
+
accountId: "111100000",
|
|
1918
|
+
marketingEmailOptIn: false,
|
|
1919
|
+
},
|
|
1920
|
+
text: {
|
|
1921
|
+
emailPreferencesHeader: props.emailPreferencesHeader,
|
|
1922
|
+
marketingCheckboxLabel: props.marketingCheckboxLabel,
|
|
1923
|
+
submitChangeButtonText: props.submitChangeButtonText,
|
|
1924
|
+
successMessage: props.successMessage,
|
|
1925
|
+
},
|
|
1926
|
+
formState: {
|
|
1927
|
+
marketingEmailOptIn: false,
|
|
1928
|
+
errors: null,
|
|
1929
|
+
error: "",
|
|
1930
|
+
},
|
|
1931
|
+
},
|
|
1932
|
+
callbacks: {
|
|
1933
|
+
onSubmit: (e) => console.log(e),
|
|
1934
|
+
setChecked: () => { },
|
|
1935
|
+
},
|
|
1936
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1767
1939
|
function usePortalChangePassword(props) {
|
|
1768
1940
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1769
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1941
|
+
const [request, { loading, errors, data }] = index_module.Ue();
|
|
1770
1942
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1771
1943
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1772
1944
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1773
|
-
const user = index_module.
|
|
1945
|
+
const user = index_module.Q();
|
|
1774
1946
|
const submit = async (event) => {
|
|
1775
1947
|
var _a, _b;
|
|
1776
1948
|
setSuccess(false);
|
|
@@ -2012,7 +2184,7 @@ const PortalFooter = class {
|
|
|
2012
2184
|
};
|
|
2013
2185
|
|
|
2014
2186
|
function usePortalFrame(footerContent, headerContent) {
|
|
2015
|
-
const [, rerender] = index_module.
|
|
2187
|
+
const [, rerender] = index_module.gn();
|
|
2016
2188
|
return {
|
|
2017
2189
|
data: {
|
|
2018
2190
|
footer: footerContent,
|
|
@@ -2062,9 +2234,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
2062
2234
|
|
|
2063
2235
|
function usePortalLogin(props) {
|
|
2064
2236
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2065
|
-
const [request, { loading, errors, data }] = index_module.
|
|
2237
|
+
const [request, { loading, errors, data }] = index_module.qe();
|
|
2066
2238
|
const [error, setError] = stencilHooks_module.useState("");
|
|
2067
|
-
const urlParams = new URLSearchParams(index_module.
|
|
2239
|
+
const urlParams = new URLSearchParams(index_module.$n.location.search);
|
|
2068
2240
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2069
2241
|
const submit = async (event) => {
|
|
2070
2242
|
var _a, _b;
|
|
@@ -2083,7 +2255,7 @@ function usePortalLogin(props) {
|
|
|
2083
2255
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2084
2256
|
urlParams.delete("nextPage");
|
|
2085
2257
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2086
|
-
index_module.
|
|
2258
|
+
index_module.$n.push(url.href);
|
|
2087
2259
|
}
|
|
2088
2260
|
};
|
|
2089
2261
|
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) ||
|
|
@@ -2150,8 +2322,8 @@ const PortalLogin = class {
|
|
|
2150
2322
|
*/
|
|
2151
2323
|
this.pageLabel = "Sign in to your account";
|
|
2152
2324
|
/**
|
|
2153
|
-
* @uiName Network error message
|
|
2154
2325
|
* Displayed when the login fails due to a network error. The participant can try refreshing the page.
|
|
2326
|
+
* @uiName Network error message
|
|
2155
2327
|
*/
|
|
2156
2328
|
this.networkErrorMessage = "An error occurred while logging you in. Please refresh the page and try again.";
|
|
2157
2329
|
stencilHooks_module.h$1(this);
|
|
@@ -2162,8 +2334,8 @@ const PortalLogin = class {
|
|
|
2162
2334
|
? useLoginDemo(this)
|
|
2163
2335
|
: usePortalLogin(this);
|
|
2164
2336
|
const content = {
|
|
2165
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.
|
|
2166
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
2337
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.$n.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2338
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.$n.push(states.registerPath) }, this.registerLabel))),
|
|
2167
2339
|
emailLabel: this.emailLabel,
|
|
2168
2340
|
passwordLabel: this.passwordLabel,
|
|
2169
2341
|
submitLabel: this.submitLabel,
|
|
@@ -2192,7 +2364,7 @@ function usePortalRegister(props) {
|
|
|
2192
2364
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2193
2365
|
const formRef = stencilHooks_module.useRef(null);
|
|
2194
2366
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
2195
|
-
const [request, { loading, errors, data }] = index_module.
|
|
2367
|
+
const [request, { loading, errors, data }] = index_module.xe();
|
|
2196
2368
|
stencilHooks_module.useEffect(() => {
|
|
2197
2369
|
if (!formRef.current)
|
|
2198
2370
|
return;
|
|
@@ -2265,7 +2437,7 @@ function usePortalRegister(props) {
|
|
|
2265
2437
|
validationErrors: {},
|
|
2266
2438
|
});
|
|
2267
2439
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2268
|
-
index_module.
|
|
2440
|
+
index_module.$n.push(props.nextPage);
|
|
2269
2441
|
}
|
|
2270
2442
|
}
|
|
2271
2443
|
catch (error) {
|
|
@@ -2439,7 +2611,7 @@ const PortalRegister = class {
|
|
|
2439
2611
|
: usePortalRegister(this);
|
|
2440
2612
|
const content = {
|
|
2441
2613
|
formData: index.h("slot", { name: "formData" }),
|
|
2442
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
2614
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.$n.push(states.loginPath) }, this.loginLabel))),
|
|
2443
2615
|
terms: index.h("slot", { name: "terms" }),
|
|
2444
2616
|
emailLabel: this.emailLabel,
|
|
2445
2617
|
passwordLabel: this.passwordLabel,
|
|
@@ -2610,11 +2782,11 @@ const ProgramExplainerStep = class {
|
|
|
2610
2782
|
const debug = stencilHooks_module.browser("sq:useProgramMenu");
|
|
2611
2783
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2612
2784
|
function useProgramMenu(props) {
|
|
2613
|
-
const programId = index_module.
|
|
2614
|
-
const host = index_module.
|
|
2785
|
+
const programId = index_module.H();
|
|
2786
|
+
const host = index_module._();
|
|
2615
2787
|
debug({ programId, props });
|
|
2616
2788
|
const ref = stencilHooks_module.useRef();
|
|
2617
|
-
const [, rerender] = index_module.
|
|
2789
|
+
const [, rerender] = index_module.gn();
|
|
2618
2790
|
stencilHooks_module.useEffect(() => {
|
|
2619
2791
|
var _a;
|
|
2620
2792
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2792,9 +2964,9 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
2792
2964
|
`;
|
|
2793
2965
|
function useReferralIframe(props) {
|
|
2794
2966
|
var _a;
|
|
2795
|
-
const programId = index_module.
|
|
2796
|
-
const user = index_module.
|
|
2797
|
-
const { data } = index_module.
|
|
2967
|
+
const programId = index_module.H();
|
|
2968
|
+
const user = index_module.Q();
|
|
2969
|
+
const { data } = index_module.yn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2798
2970
|
return {
|
|
2799
2971
|
states: {
|
|
2800
2972
|
content: props,
|
|
@@ -3519,9 +3691,9 @@ function useRewardExchangeList(props) {
|
|
|
3519
3691
|
});
|
|
3520
3692
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3521
3693
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3522
|
-
const user = index_module.
|
|
3523
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module
|
|
3524
|
-
const { data, loading, refetch, errors: queryError, } = index_module.
|
|
3694
|
+
const user = index_module.Q();
|
|
3695
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.$e(EXCHANGE);
|
|
3696
|
+
const { data, loading, refetch, errors: queryError, } = index_module.yn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3525
3697
|
stencilHooks_module.useEffect(() => {
|
|
3526
3698
|
var _a, _b;
|
|
3527
3699
|
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) {
|
|
@@ -3540,7 +3712,7 @@ function useRewardExchangeList(props) {
|
|
|
3540
3712
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3541
3713
|
canvas.confetti();
|
|
3542
3714
|
}, [canvasRef.current]);
|
|
3543
|
-
const { refresh } = index_module.
|
|
3715
|
+
const { refresh } = index_module.ze();
|
|
3544
3716
|
async function exchangeReward() {
|
|
3545
3717
|
if (!selectedItem)
|
|
3546
3718
|
return;
|
|
@@ -3848,8 +4020,8 @@ function matchPath(pattern, page) {
|
|
|
3848
4020
|
return regexp.exec(page);
|
|
3849
4021
|
}
|
|
3850
4022
|
function useRouter() {
|
|
3851
|
-
const location = index_module.
|
|
3852
|
-
const host = index_module.
|
|
4023
|
+
const location = index_module.Sn();
|
|
4024
|
+
const host = index_module._();
|
|
3853
4025
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
3854
4026
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
3855
4027
|
const page = location.pathname;
|
|
@@ -4110,11 +4282,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = index_module.dist.gql `
|
|
|
4110
4282
|
`;
|
|
4111
4283
|
function useShareCode(props) {
|
|
4112
4284
|
var _a, _b;
|
|
4113
|
-
const { programId = index_module.
|
|
4114
|
-
const user = index_module.
|
|
4115
|
-
const engagementMedium = index_module.
|
|
4116
|
-
const { data } = index_module.
|
|
4117
|
-
const [sendLoadEvent] = index_module
|
|
4285
|
+
const { programId = index_module.H() } = props;
|
|
4286
|
+
const user = index_module.Q();
|
|
4287
|
+
const engagementMedium = index_module.B();
|
|
4288
|
+
const { data } = index_module.yn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4289
|
+
const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4118
4290
|
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 :
|
|
4119
4291
|
// Shown during loading
|
|
4120
4292
|
"...";
|
|
@@ -4313,10 +4485,10 @@ const SEND_EVENT = index_module.dist.gql `
|
|
|
4313
4485
|
}
|
|
4314
4486
|
`;
|
|
4315
4487
|
function useTaskCard(props) {
|
|
4316
|
-
const user = index_module.
|
|
4317
|
-
const locale = index_module.
|
|
4318
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module
|
|
4319
|
-
const { refresh } = index_module.
|
|
4488
|
+
const user = index_module.Q();
|
|
4489
|
+
const locale = index_module.L();
|
|
4490
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.$e(SEND_EVENT);
|
|
4491
|
+
const { refresh } = index_module.ze();
|
|
4320
4492
|
stencilHooks_module.useEffect(() => {
|
|
4321
4493
|
if (data) {
|
|
4322
4494
|
refresh();
|
|
@@ -4637,8 +4809,8 @@ const GET_USER_NAME = index_module.dist.gql `
|
|
|
4637
4809
|
`;
|
|
4638
4810
|
function useUserName(props) {
|
|
4639
4811
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4640
|
-
const user = index_module.
|
|
4641
|
-
const res = index_module.
|
|
4812
|
+
const user = index_module.Q();
|
|
4813
|
+
const res = index_module.yn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4642
4814
|
const loading = res.loading;
|
|
4643
4815
|
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)
|
|
4644
4816
|
? `${(_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}`
|
|
@@ -4697,6 +4869,7 @@ exports.sqm_link_button = LinkButton;
|
|
|
4697
4869
|
exports.sqm_marketing_emails_checkbox = MarketingEmailsCheckbox;
|
|
4698
4870
|
exports.sqm_name_fields = NameFields;
|
|
4699
4871
|
exports.sqm_navigation_menu = NavigationMenu;
|
|
4872
|
+
exports.sqm_portal_change_marketing = PortalChangeMarketing;
|
|
4700
4873
|
exports.sqm_portal_change_password = PortalChangePassword;
|
|
4701
4874
|
exports.sqm_portal_footer = PortalFooter;
|
|
4702
4875
|
exports.sqm_portal_frame = PortalFrame;
|
|
@@ -4,7 +4,7 @@ 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 index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
require('./mixins-fe9d4112.js');
|
|
9
9
|
require('./JSS-8503a151.js');
|
|
10
10
|
const sqmCloseButtonView = require('./sqm-close-button-view-fd6e8f60.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index$1 = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
const index = require('./index-8c6255f5.js');
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ function matchPath(pattern, page) {
|
|
|
16
16
|
return regexp.exec(page);
|
|
17
17
|
}
|
|
18
18
|
function useContextRouter(props) {
|
|
19
|
-
const host = index_module.
|
|
19
|
+
const host = index_module._();
|
|
20
20
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
21
21
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
22
22
|
const context = props.contextName;
|
|
@@ -4,8 +4,8 @@ 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
|
-
require('./index.module-
|
|
7
|
+
const global = require('./global-02e50f09.js');
|
|
8
|
+
require('./index.module-df530553.js');
|
|
9
9
|
require('./JSS-8503a151.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const sqmPortalContainerView = require('./sqm-portal-container-view-990a85a3.js');
|
|
@@ -4,15 +4,15 @@ 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 index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
|
|
9
9
|
async function useGraphQLClientProvider({ domain }) {
|
|
10
|
-
const token = index_module.
|
|
10
|
+
const token = index_module.J();
|
|
11
11
|
const appDomain = domain;
|
|
12
|
-
const tenantAlias = index_module.
|
|
12
|
+
const tenantAlias = index_module.z();
|
|
13
13
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
14
|
-
const managedIdentityClient = index_module.
|
|
15
|
-
const [, setGraphQLClient] = stencilHooks_module.m(index_module
|
|
14
|
+
const managedIdentityClient = index_module.Ee(appDomain, tenantAlias, token);
|
|
15
|
+
const [, setGraphQLClient] = stencilHooks_module.m(index_module.Pe, managedIdentityClient);
|
|
16
16
|
stencilHooks_module.useEffect(() => {
|
|
17
17
|
setGraphQLClient(managedIdentityClient);
|
|
18
18
|
}, [managedIdentityClient]);
|
|
@@ -4,14 +4,14 @@ 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 index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
require('./jsonpointer-11327262.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
const emailRegistrationView = require('./email-registration-view-248652bb.js');
|
|
13
|
-
require('./useRegistrationFormState-
|
|
14
|
-
const useInstantAccessRegistration = require('./useInstantAccessRegistration-
|
|
13
|
+
require('./useRegistrationFormState-876ed65d.js');
|
|
14
|
+
const useInstantAccessRegistration = require('./useInstantAccessRegistration-bbe746d1.js');
|
|
15
15
|
|
|
16
16
|
const InstantAccessRegistration = class {
|
|
17
17
|
constructor(hostRef) {
|
|
@@ -4,8 +4,8 @@ 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 cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
|
|
11
11
|
|
|
@@ -24,10 +24,10 @@ const GET_RANK = index_module.dist.gql `
|
|
|
24
24
|
`;
|
|
25
25
|
function useLeaderboardRank(props) {
|
|
26
26
|
var _a, _b, _c, _d;
|
|
27
|
-
const programIdContext = index_module.
|
|
27
|
+
const programIdContext = index_module.H();
|
|
28
28
|
// Default to context, overriden by props
|
|
29
29
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
30
|
-
const user = index_module.
|
|
30
|
+
const user = index_module.Q();
|
|
31
31
|
const rankVariables = programId
|
|
32
32
|
? {
|
|
33
33
|
type: props.leaderboardType,
|
|
@@ -40,7 +40,7 @@ function useLeaderboardRank(props) {
|
|
|
40
40
|
if (props.interval) {
|
|
41
41
|
rankVariables.filter["interval"] = props.interval;
|
|
42
42
|
}
|
|
43
|
-
const { data: rankData } = index_module.
|
|
43
|
+
const { data: rankData } = index_module.yn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
44
44
|
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? global.intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
45
45
|
rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
|
|
46
46
|
})
|