@saasquatch/mint-components 1.12.1-2 → 1.12.1-5
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-fa205e28.js} +26 -36
- 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 +61 -67
- 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 +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.cjs.entry.js +7 -11
- 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 +46 -46
- 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/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 +11 -41
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +0 -4
- package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-170728a6.js} +26 -36
- 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 +61 -67
- 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 +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.entry.js +7 -11
- 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 +46 -46
- 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-170728a6.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-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-b651706a.js → p-04e666dc.js} +2 -2
- 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-1c857edb.entry.js +33 -0
- package/dist/mint-components/{p-acd77a6e.entry.js → p-1ce3afa6.entry.js} +11 -11
- 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-b3e97f8a.system.entry.js → p-5b761128.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-a02afa72.system.js → p-62221541.system.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-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-17f56865.entry.js → p-8b617d7e.entry.js} +2 -2
- package/dist/mint-components/p-8baf6566.system.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-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-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-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 +2 -8
- package/dist/types/components.d.ts +2 -14
- 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-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-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-a4282d02.system.entry.js +0 -1
- package/dist/mint-components/p-b1e8a802.entry.js +0 -1
- package/dist/mint-components/p-bdd6bb13.js +0 -1
- package/dist/mint-components/p-c3b37bbf.js +0 -1
- package/dist/mint-components/p-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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import './index.module-
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import './index.module-def4aec5.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { o as m, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { J, E as Ee, z, P as Pe } from './index.module-def4aec5.js';
|
|
4
4
|
|
|
5
5
|
async function useGraphQLClientProvider({ domain }) {
|
|
6
|
-
const token =
|
|
6
|
+
const token = J();
|
|
7
7
|
const appDomain = domain;
|
|
8
|
-
const tenantAlias =
|
|
8
|
+
const tenantAlias = z();
|
|
9
9
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
10
|
-
const managedIdentityClient =
|
|
11
|
-
const [, setGraphQLClient] = m(
|
|
10
|
+
const managedIdentityClient = Ee(appDomain, tenantAlias, token);
|
|
11
|
+
const [, setGraphQLClient] = m(Pe, managedIdentityClient);
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
setGraphQLClient(managedIdentityClient);
|
|
14
14
|
}, [managedIdentityClient]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as isDemo,
|
|
3
|
+
import { i as isDemo, b as setUserIdentity } from './index.module-def4aec5.js';
|
|
4
4
|
import './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.js';
|
|
9
|
-
import './useRegistrationFormState-
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
9
|
+
import './useRegistrationFormState-9fc1ac80.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46b89952.js';
|
|
11
11
|
|
|
12
12
|
const InstantAccessRegistration = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import { d as dist, H, Q, y as yn, i as isDemo } from './index.module-def4aec5.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
|
|
7
7
|
|
|
@@ -20,10 +20,10 @@ const GET_RANK = dist.gql `
|
|
|
20
20
|
`;
|
|
21
21
|
function useLeaderboardRank(props) {
|
|
22
22
|
var _a, _b, _c, _d;
|
|
23
|
-
const programIdContext =
|
|
23
|
+
const programIdContext = H();
|
|
24
24
|
// Default to context, overriden by props
|
|
25
25
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
26
|
-
const user =
|
|
26
|
+
const user = Q();
|
|
27
27
|
const rankVariables = programId
|
|
28
28
|
? {
|
|
29
29
|
type: props.leaderboardType,
|
|
@@ -36,7 +36,7 @@ function useLeaderboardRank(props) {
|
|
|
36
36
|
if (props.interval) {
|
|
37
37
|
rankVariables.filter["interval"] = props.interval;
|
|
38
38
|
}
|
|
39
|
-
const { data: rankData } =
|
|
39
|
+
const { data: rankData } = yn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
40
40
|
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
41
41
|
rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
|
|
42
42
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { d as dist,
|
|
3
|
+
import { d as dist, Q, y as yn, b as setUserIdentity, i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
@@ -19,8 +19,8 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
19
19
|
`;
|
|
20
20
|
function useLogoutCurrentUser(props) {
|
|
21
21
|
var _a, _b;
|
|
22
|
-
const user =
|
|
23
|
-
const { loading, data } =
|
|
22
|
+
const user = Q();
|
|
23
|
+
const { loading, data } = yn(GET_USER_DETAILS, {}, !user);
|
|
24
24
|
const onSwitchClick = () => {
|
|
25
25
|
setUserIdentity(undefined);
|
|
26
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
2
|
+
import { $ as $n } from './index.module-def4aec5.js';
|
|
3
3
|
import { g as gap } from './mixins-f60a614c.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
|
|
@@ -33,7 +33,7 @@ function NavigationSidebarItemView(props) {
|
|
|
33
33
|
const styleString = sheet.toString();
|
|
34
34
|
return (h("a", { part: "sqm-link", href: data.path, onClick: (e) => {
|
|
35
35
|
e.preventDefault();
|
|
36
|
-
|
|
36
|
+
$n.push(data.path);
|
|
37
37
|
}, class: sheet.classes.ItemContainer },
|
|
38
38
|
h("style", { type: "text/css" }, styleString),
|
|
39
39
|
h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { S as Sn, i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './mixins-f60a614c.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
8
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-60ef06cc.js';
|
|
9
9
|
|
|
10
10
|
function useNavigationSidebarItem(props) {
|
|
11
|
-
const currentPage =
|
|
11
|
+
const currentPage = Sn();
|
|
12
12
|
return {
|
|
13
13
|
states: {
|
|
14
14
|
active: currentPage.pathname === props.path,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { S as Sn, H } from './index.module-def4aec5.js';
|
|
4
4
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0312e073.js';
|
|
5
5
|
|
|
6
6
|
const NavigationSidebar = class {
|
|
@@ -16,8 +16,8 @@ const NavigationSidebar = class {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
function useNavigationSidebar() {
|
|
19
|
-
const location =
|
|
20
|
-
const programId =
|
|
19
|
+
const location = Sn();
|
|
20
|
+
const programId = H();
|
|
21
21
|
const [checked, setChecked] = useState(false);
|
|
22
22
|
// Close hamburger menu after navigation
|
|
23
23
|
useEffect(() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { i as d, k as useState, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as isDemo } from './index.module-
|
|
3
|
+
import { i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import { E as ErrorStyles } from './mixins-f60a614c.js';
|
|
6
6
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-
|
|
8
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-9fc1ac80.js';
|
|
9
9
|
|
|
10
10
|
var constants = {
|
|
11
11
|
error: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { B } from './index.module-def4aec5.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
|
|
6
6
|
const PopupContainerView = (props) => {
|
|
@@ -14,10 +14,10 @@ const PopupContainerView = (props) => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
function usePopupContainer(props) {
|
|
17
|
-
const engagementMedium =
|
|
17
|
+
const engagementMedium = B();
|
|
18
18
|
function closePopup() {
|
|
19
19
|
var _a;
|
|
20
|
-
if (
|
|
20
|
+
if (B() === "POPUP") {
|
|
21
21
|
(_a = window.frameElement["squatchJsApi"]) === null || _a === void 0 ? void 0 : _a.close();
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -31,7 +31,7 @@ function usePopupContainer(props) {
|
|
|
31
31
|
? "0"
|
|
32
32
|
: `var(--sl-spacing-${props.embedPadding})`
|
|
33
33
|
: "0";
|
|
34
|
-
const padding =
|
|
34
|
+
const padding = B() === "POPUP" ? popupPadding : embedPadding;
|
|
35
35
|
return {
|
|
36
36
|
states: {
|
|
37
37
|
showCloseButton: props.closeButton && engagementMedium === "POPUP",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
3
3
|
import { A as AuthWrapper, a as AuthColumn } from './mixins-f60a614c.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, m as useRef, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import {
|
|
3
|
+
import './global-04c7d3b5.js';
|
|
4
|
+
import { l as ln, n as nn, Q, $ as $n, u as useCallback, i as isDemo } from './index.module-def4aec5.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import './sqm-text-span-view-8d140661.js';
|
|
9
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
9
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-4307c992.js';
|
|
10
10
|
|
|
11
11
|
function usePortalEmailVerification(props) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
13
|
-
const [request, { loading, data, errors }] =
|
|
14
|
-
const [getVerificationStatus, { data: user, loading: loadingVerification }] =
|
|
15
|
-
const userIdent =
|
|
13
|
+
const [request, { loading, data, errors }] = ln();
|
|
14
|
+
const [getVerificationStatus, { data: user, loading: loadingVerification }] = nn();
|
|
15
|
+
const userIdent = Q();
|
|
16
16
|
const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
|
|
17
|
-
const urlParams = new URLSearchParams(
|
|
17
|
+
const urlParams = new URLSearchParams($n.location.search);
|
|
18
18
|
const nextPage = urlParams.get("nextPage");
|
|
19
19
|
const [success, setSuccess] = useState(false);
|
|
20
20
|
const [error, setError] = useState("");
|
|
@@ -44,7 +44,7 @@ function usePortalEmailVerification(props) {
|
|
|
44
44
|
const data = (await getVerificationStatus());
|
|
45
45
|
if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
46
46
|
clearInterval(timerRef.current);
|
|
47
|
-
return
|
|
47
|
+
return $n.push({
|
|
48
48
|
pathname: props.redirectPath,
|
|
49
49
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
50
50
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { e as un, $ as $n, i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
@@ -12,8 +12,8 @@ function usePortalForgotPassword(props) {
|
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
13
13
|
const [success, setSuccess] = useState(false);
|
|
14
14
|
const [error, setError] = useState("");
|
|
15
|
-
const [request, { loading, data, errors }] =
|
|
16
|
-
const urlParams = new URLSearchParams(
|
|
15
|
+
const [request, { loading, data, errors }] = un();
|
|
16
|
+
const urlParams = new URLSearchParams($n.location.search);
|
|
17
17
|
const nextPage = urlParams.get("nextPage");
|
|
18
18
|
const submit = async (event) => {
|
|
19
19
|
var _a;
|
|
@@ -102,7 +102,7 @@ const PortalForgotPassword = class {
|
|
|
102
102
|
? usePortalForgotPasswordDemo(this)
|
|
103
103
|
: usePortalForgotPassword(this);
|
|
104
104
|
const content = {
|
|
105
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
105
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath) }, this.loginText))),
|
|
106
106
|
messageSlot: h$1("slot", { name: "messageSlot" }, this.headerText),
|
|
107
107
|
emailLabel: this.emailLabel,
|
|
108
108
|
submitLabel: this.submitLabel,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { b as setUserIdentity, $ as $n, i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
|
|
5
5
|
function usePortalLogout({ nextPage }) {
|
|
6
6
|
setUserIdentity(undefined);
|
|
7
|
-
|
|
7
|
+
$n.push({ pathname: nextPage, search: "" });
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
const PortalLogout = class {
|
package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-ffe955c8.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
5
5
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import './global-04c7d3b5.js';
|
|
4
|
+
import { d as dist, Q, y as yn, f as $e, i as isDemo } from './index.module-def4aec5.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
8
|
import './sqm-text-span-view-8d140661.js';
|
|
9
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
10
|
-
import { i as isEmpty } from './utilities-
|
|
9
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-ffe955c8.js';
|
|
10
|
+
import { i as isEmpty } from './utilities-3f5bba22.js';
|
|
11
11
|
|
|
12
12
|
const GET_USER = dist.gql `
|
|
13
13
|
query {
|
|
@@ -53,12 +53,12 @@ const defaultFormState = {
|
|
|
53
53
|
error: "",
|
|
54
54
|
};
|
|
55
55
|
function usePortalProfile(props) {
|
|
56
|
-
const userIdent =
|
|
56
|
+
const userIdent = Q();
|
|
57
57
|
const [success, setSuccess] = useState(false);
|
|
58
58
|
const [userData, setUserData] = useState(undefined);
|
|
59
59
|
const [formState, setFormState] = useState(defaultFormState);
|
|
60
|
-
const userDataResponse =
|
|
61
|
-
const [upsertUser, upsertUserResponse] =
|
|
60
|
+
const userDataResponse = yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
61
|
+
const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
|
|
62
62
|
useEffect(() => {
|
|
63
63
|
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
64
64
|
return;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Q, S as Sn, $ as $n, i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
|
|
5
5
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
6
6
|
var _a;
|
|
7
|
-
const userIdent =
|
|
7
|
+
const userIdent = Q();
|
|
8
8
|
const authenticated = !!(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt);
|
|
9
9
|
const emailVerified = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified;
|
|
10
|
-
const { pathname, search } =
|
|
10
|
+
const { pathname, search } = Sn();
|
|
11
11
|
const nextPageParam = new URLSearchParams();
|
|
12
12
|
nextPageParam.append("nextPage", `${pathname}${search}`);
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
if (!authenticated) {
|
|
15
|
-
return
|
|
15
|
+
return $n.push({
|
|
16
16
|
pathname: redirectTo,
|
|
17
17
|
search: "?" + nextPageParam.toString(),
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
if (requireEmailVerification && !emailVerified) {
|
|
21
|
-
return
|
|
21
|
+
return $n.push({
|
|
22
22
|
pathname: redirectToUnverified || redirectTo,
|
|
23
23
|
search: "?" + nextPageParam.toString(),
|
|
24
24
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as useRef, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { d as dist,
|
|
3
|
+
import { d as dist, L, W as We, y as yn, $ as $n, u as useCallback, i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import './sqm-text-span-view-8d140661.js';
|
|
9
|
-
import { u as useRegistrationFormState } from './useRegistrationFormState-
|
|
9
|
+
import { u as useRegistrationFormState } from './useRegistrationFormState-9fc1ac80.js';
|
|
10
10
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-1d3066e1.js';
|
|
11
11
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
12
12
|
|
|
@@ -26,10 +26,10 @@ const RegistrationFormQuery = dist.gql `
|
|
|
26
26
|
function usePortalRegistrationForm(props) {
|
|
27
27
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
28
28
|
const formRef = useRef(null);
|
|
29
|
-
const locale =
|
|
29
|
+
const locale = L();
|
|
30
30
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
31
|
-
const [request, { loading, errors, data, formError }] =
|
|
32
|
-
const queryResponse =
|
|
31
|
+
const [request, { loading, errors, data, formError }] = We();
|
|
32
|
+
const queryResponse = yn(RegistrationFormQuery, { key: props.formKey });
|
|
33
33
|
const formLoading = loading || queryResponse.loading;
|
|
34
34
|
useEffect(() => {
|
|
35
35
|
var _a, _b, _c;
|
|
@@ -108,9 +108,6 @@ function usePortalRegistrationForm(props) {
|
|
|
108
108
|
delete formData.password;
|
|
109
109
|
delete formData.confirmPassword;
|
|
110
110
|
const redirectPath = props.redirectPath;
|
|
111
|
-
const marketingEmailOptInDate = formData.marketingEmails
|
|
112
|
-
? Date.now()
|
|
113
|
-
: null;
|
|
114
111
|
const variables = {
|
|
115
112
|
key: props.formKey,
|
|
116
113
|
formData: {
|
|
@@ -118,7 +115,6 @@ function usePortalRegistrationForm(props) {
|
|
|
118
115
|
email,
|
|
119
116
|
password,
|
|
120
117
|
redirectPath,
|
|
121
|
-
...(formData.marketingEmails && { marketingEmailOptInDate }),
|
|
122
118
|
...formData,
|
|
123
119
|
},
|
|
124
120
|
};
|
|
@@ -138,7 +134,7 @@ function usePortalRegistrationForm(props) {
|
|
|
138
134
|
managedIdentityResponse.result.results.length &&
|
|
139
135
|
managedIdentityResponse.result.results[0].success &&
|
|
140
136
|
managedIdentityResponse.result.results[0].data.token) {
|
|
141
|
-
|
|
137
|
+
$n.push(props.nextPage);
|
|
142
138
|
}
|
|
143
139
|
else if (
|
|
144
140
|
// check for blocked email error response
|
|
@@ -351,7 +347,7 @@ const PortalRegistrationForm = class {
|
|
|
351
347
|
: usePortalRegistrationForm(this);
|
|
352
348
|
const content = {
|
|
353
349
|
formData: h$1("slot", { name: "formData" }),
|
|
354
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
350
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath) }, this.loginLabel))),
|
|
355
351
|
terms: h$1("slot", { name: "terms" }),
|
|
356
352
|
emailOptIn: h$1("slot", { name: "emailOptIn" }),
|
|
357
353
|
emailLabel: this.emailLabel,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { h as Qe, T as Te, $ as $n, i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
@@ -13,9 +13,9 @@ function usePortalResetPassword(props) {
|
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
14
14
|
const [reset, setReset] = useState(false);
|
|
15
15
|
const [error, setError] = useState("");
|
|
16
|
-
const [verifyPasswordResetCode, verifyPasswordResetCodeState] =
|
|
17
|
-
const [resetPassword, resetPasswordState] =
|
|
18
|
-
const urlParams = new URLSearchParams(
|
|
16
|
+
const [verifyPasswordResetCode, verifyPasswordResetCodeState] = Qe();
|
|
17
|
+
const [resetPassword, resetPasswordState] = Te();
|
|
18
|
+
const urlParams = new URLSearchParams($n.location.search);
|
|
19
19
|
const oobCode = urlParams.get("oobCode");
|
|
20
20
|
urlParams.delete("oobCode");
|
|
21
21
|
const nextPageOverride = urlParams.get("nextPage");
|
|
@@ -53,10 +53,10 @@ function usePortalResetPassword(props) {
|
|
|
53
53
|
const gotoNextPage = () => {
|
|
54
54
|
urlParams.delete("nextPage");
|
|
55
55
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
56
|
-
|
|
56
|
+
$n.push(url.href);
|
|
57
57
|
};
|
|
58
58
|
const failed = () => {
|
|
59
|
-
|
|
59
|
+
$n.push({
|
|
60
60
|
pathname: props.failedPage,
|
|
61
61
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
62
62
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Q, j as an, $ as $n, b as setUserIdentity, i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './mixins-f60a614c.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
@@ -13,9 +13,9 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
|
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
14
14
|
const [completed, setCompleted] = useState(false);
|
|
15
15
|
const [successful, setSuccessful] = useState(false);
|
|
16
|
-
const userIdent =
|
|
17
|
-
const [request, { loading, data, errors }] =
|
|
18
|
-
const urlParams = new URLSearchParams(
|
|
16
|
+
const userIdent = Q();
|
|
17
|
+
const [request, { loading, data, errors }] = an();
|
|
18
|
+
const urlParams = new URLSearchParams($n.location.search);
|
|
19
19
|
const oobCode = urlParams.get("oobCode");
|
|
20
20
|
const oobEmail = urlParams.get("email");
|
|
21
21
|
const nextPageOverride = urlParams.get("nextPage");
|
|
@@ -26,7 +26,7 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
|
|
|
26
26
|
successful);
|
|
27
27
|
const validEmail = ((_c = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _c === void 0 ? void 0 : _c.email) === oobEmail;
|
|
28
28
|
const failed = () => {
|
|
29
|
-
return
|
|
29
|
+
return $n.push({
|
|
30
30
|
pathname: failedPage,
|
|
31
31
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
32
32
|
});
|
|
@@ -34,7 +34,7 @@ function usePortalVerifyEmail({ nextPage, failedPage, verifySuccessText, verifyE
|
|
|
34
34
|
const gotoNextPage = () => {
|
|
35
35
|
urlParams.delete("nextPage");
|
|
36
36
|
const url = sanitizeUrlPath(nextPageOverride || nextPage);
|
|
37
|
-
|
|
37
|
+
$n.push(url.href);
|
|
38
38
|
};
|
|
39
39
|
const logout = () => {
|
|
40
40
|
setTimeout(() => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h, j as useReducer, u as useMemo, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo } from './index.module-
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import { i as isDemo } from './index.module-def4aec5.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
9
|
-
import { a as useRequestRerender, u as useRerenderListener } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
+
import { a as useRequestRerender, u as useRerenderListener } from './re-render-12fd274a.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-32e1bda1.js';
|
|
11
11
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
12
12
|
import { g as getPaypalMeta } from './mockRewardData-0eb6e778.js';
|
|
13
|
-
import { u as useReferralTable, t as tryMethod } from './useReferralTable-
|
|
13
|
+
import { u as useReferralTable, t as tryMethod } from './useReferralTable-f4de0650.js';
|
|
14
14
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
15
15
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
16
16
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as isDemo,
|
|
3
|
+
import { i as isDemo, b as setUserIdentity } from './index.module-def4aec5.js';
|
|
4
4
|
import './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.js';
|
|
9
|
-
import './useRegistrationFormState-
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
9
|
+
import './useRegistrationFormState-9fc1ac80.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46b89952.js';
|
|
11
11
|
|
|
12
12
|
const ReferredRegistration = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './index.module-
|
|
4
|
-
import { a as useRequestRerender } from './re-render-
|
|
3
|
+
import './index.module-def4aec5.js';
|
|
4
|
+
import { a as useRequestRerender } from './re-render-12fd274a.js';
|
|
5
5
|
|
|
6
6
|
const RewardTableCustomerNoteColumn = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { b as browser, j as useReducer, f as useEffect, n as h$1, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import { d as dist, Q, H, L, y as yn, k as kn, i as isDemo } from './index.module-def4aec5.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
9
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-12fd274a.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-32e1bda1.js';
|
|
11
11
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
12
12
|
import { m as mockRewardData } from './mockRewardData-0eb6e778.js';
|
|
13
|
-
import { g as generateUserError } from './useReferralTable-
|
|
13
|
+
import { g as generateUserError } from './useReferralTable-f4de0650.js';
|
|
14
14
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
15
15
|
|
|
16
16
|
const debug = browser("sq:useRewardsTable");
|
|
@@ -162,9 +162,9 @@ const GET_IMPACT_TAX = dist.gql `
|
|
|
162
162
|
`;
|
|
163
163
|
function useRewardsTable(props, emptyElement, loadingElement) {
|
|
164
164
|
var _a, _b, _c;
|
|
165
|
-
const user =
|
|
166
|
-
const programIdContext =
|
|
167
|
-
const locale =
|
|
165
|
+
const user = Q();
|
|
166
|
+
const programIdContext = H();
|
|
167
|
+
const locale = L();
|
|
168
168
|
// Default to context, overriden by props
|
|
169
169
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
170
170
|
const rewardFilter = {
|
|
@@ -186,8 +186,8 @@ function useRewardsTable(props, emptyElement, loadingElement) {
|
|
|
186
186
|
loading: false,
|
|
187
187
|
page: 0,
|
|
188
188
|
});
|
|
189
|
-
const { data: impactTaxData, loading: taxLoading } =
|
|
190
|
-
const { envelope: rewardsData, states, callbacks, } =
|
|
189
|
+
const { data: impactTaxData, loading: taxLoading } = yn(GET_IMPACT_TAX, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
190
|
+
const { envelope: rewardsData, states, callbacks, } = kn(GET_REWARDS, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.rewards; }, {
|
|
191
191
|
limit: props.perPage,
|
|
192
192
|
offset: 0,
|
|
193
193
|
}, {
|