@saasquatch/mint-components 1.12.1-0 → 1.12.1-2
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-c3e91cee.js → ShadowViewAddon-88821c64.js} +19 -19
- package/dist/cjs/{global-02e50f09.js → global-c3637175.js} +2 -2
- package/dist/cjs/{index.module-df530553.js → index.module-b8d9d0ba.js} +55 -18
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{re-render-1976e05e.js → re-render-5bde3d2e.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 +60 -60
- 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-e3b03a00.js → sqm-invoice-table-view-a9133a11.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-a125ec5f.js → sqm-navigation-sidebar-item-view-a2135064.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-292b5bf4.js → sqm-portal-email-verification-view-050dbe0f.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-fde54e35.js → sqm-portal-profile-view-d97086bc.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 +13 -7
- 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 +45 -45
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-410d2435.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-ccf81eae.js} +3 -3
- package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-824ac152.js} +9 -9
- package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-f9ce55be.js} +2 -2
- package/dist/cjs/{utilities-cec9dd36.js → utilities-f7de6c04.js} +1 -1
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +4 -4
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +6 -0
- package/dist/esm/{ShadowViewAddon-e012b2aa.js → ShadowViewAddon-65c8679e.js} +19 -19
- package/dist/esm/{global-04c7d3b5.js → global-6306a9b8.js} +2 -2
- package/dist/esm/{index.module-def4aec5.js → index.module-6c840c4e.js} +40 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{re-render-12fd274a.js → re-render-1bcfd0de.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 +60 -60
- 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-6e13a323.js → sqm-invoice-table-view-71915a5e.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-60ef06cc.js → sqm-navigation-sidebar-item-view-f8e78810.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-4307c992.js → sqm-portal-email-verification-view-c6ac5430.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-ffe955c8.js → sqm-portal-profile-view-15ddbec8.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 +13 -7
- 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 +45 -45
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/{useChildElements-32e1bda1.js → useChildElements-fc84e640.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-8b0a4556.js} +3 -3
- package/dist/esm/{useReferralTable-f4de0650.js → useReferralTable-f6ffa103.js} +9 -9
- package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-849e27f7.js} +2 -2
- package/dist/esm/{utilities-3f5bba22.js → utilities-443732be.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-65c8679e.js +1 -0
- package/dist/esm-es5/{global-04c7d3b5.js → global-6306a9b8.js} +2 -2
- package/dist/esm-es5/index.module-6c840c4e.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-12fd274a.js → re-render-1bcfd0de.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-6e13a323.js → sqm-invoice-table-view-71915a5e.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-f8e78810.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-4307c992.js → sqm-portal-email-verification-view-c6ac5430.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-ffe955c8.js → sqm-portal-profile-view-15ddbec8.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-32e1bda1.js → useChildElements-fc84e640.js} +1 -1
- package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +1 -0
- package/dist/esm-es5/{useReferralTable-f4de0650.js → useReferralTable-f6ffa103.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +1 -0
- package/dist/esm-es5/{utilities-3f5bba22.js → utilities-443732be.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-61eab172.js → p-0121e044.js} +1 -1
- package/dist/mint-components/{p-137ea86e.entry.js → p-012daf3c.entry.js} +1 -1
- package/dist/mint-components/{p-a9050eb0.entry.js → p-03dbe2ce.entry.js} +1 -1
- package/dist/mint-components/{p-41a11a7f.js → p-04348a9b.js} +1 -1
- package/dist/mint-components/{p-af062c8f.system.entry.js → p-04ced592.system.entry.js} +1 -1
- package/dist/mint-components/{p-58ef25d3.system.entry.js → p-0527d90b.system.entry.js} +1 -1
- package/dist/mint-components/{p-7049e9b0.entry.js → p-0893073b.entry.js} +1 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +1 -0
- package/dist/mint-components/{p-0b9fa97f.js → p-11d1b212.js} +1 -1
- package/dist/mint-components/p-1279f7a3.system.entry.js +1 -0
- package/dist/mint-components/p-15a64357.entry.js +13 -0
- package/dist/mint-components/{p-458b2894.entry.js → p-17f56865.entry.js} +1 -1
- package/dist/mint-components/p-1b861be5.entry.js +1 -0
- package/dist/mint-components/{p-2ee2ebba.js → p-1d27da33.js} +2 -2
- package/dist/mint-components/{p-afd366ae.system.entry.js → p-1f7d7524.system.entry.js} +1 -1
- package/dist/mint-components/{p-5f1c4160.system.entry.js → p-22425c71.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce621bcc.js → p-2816bf6a.js} +1 -1
- package/dist/mint-components/p-2868f475.entry.js +1 -0
- package/dist/mint-components/{p-b5861974.system.entry.js → p-36e9296e.system.entry.js} +1 -1
- package/dist/mint-components/{p-44787d6e.system.js → p-3cb18382.system.js} +1 -1
- package/dist/mint-components/{p-8679ed9f.system.entry.js → p-3e7ec0f3.system.entry.js} +1 -1
- package/dist/mint-components/{p-ed095674.system.js → p-43621f12.system.js} +1 -1
- package/dist/mint-components/{p-d8d2de11.entry.js → p-4671e644.entry.js} +1 -1
- package/dist/mint-components/{p-3d4656bb.system.js → p-4babe350.system.js} +1 -1
- package/dist/mint-components/{p-dd7ee007.system.js → p-4e373c3d.system.js} +1 -1
- package/dist/mint-components/{p-674a64fe.system.js → p-4eae91a9.system.js} +1 -1
- package/dist/mint-components/{p-eba44835.system.entry.js → p-51d53165.system.entry.js} +1 -1
- package/dist/mint-components/{p-b4c52c5a.entry.js → p-5291891c.entry.js} +2 -2
- package/dist/mint-components/{p-07f675ab.system.entry.js → p-59818690.system.entry.js} +1 -1
- package/dist/mint-components/{p-0d8c53ac.system.js → p-5becb2ff.system.js} +1 -1
- package/dist/mint-components/{p-bb00db59.js → p-5cd917db.js} +1 -1
- package/dist/mint-components/{p-be4b748a.system.entry.js → p-5fba1a04.system.entry.js} +1 -1
- package/dist/mint-components/p-6792c8d8.system.entry.js +1 -0
- package/dist/mint-components/{p-eaada4da.js → p-68747d88.js} +1 -1
- package/dist/mint-components/{p-86990110.entry.js → p-6c928c7d.entry.js} +1 -1
- package/dist/mint-components/{p-6cef104b.entry.js → p-76392386.entry.js} +1 -1
- package/dist/mint-components/{p-4ea58025.system.entry.js → p-7dd1ff31.system.entry.js} +1 -1
- package/dist/mint-components/{p-b6fc1227.system.entry.js → p-83c9f37b.system.entry.js} +1 -1
- package/dist/mint-components/{p-3223ba7b.entry.js → p-84b25a46.entry.js} +1 -1
- package/dist/mint-components/{p-cf690d55.system.entry.js → p-88bf51b7.system.entry.js} +1 -1
- package/dist/mint-components/{p-c84659a3.system.js → p-8d554a89.system.js} +1 -1
- package/dist/mint-components/p-93576222.system.js +1 -0
- package/dist/mint-components/{p-021a735d.entry.js → p-94454880.entry.js} +1 -1
- package/dist/mint-components/p-947fe79b.entry.js +1 -0
- package/dist/mint-components/p-99c15c5e.entry.js +1 -0
- package/dist/mint-components/{p-a7c2ced2.system.entry.js → p-9cdbd1ac.system.entry.js} +1 -1
- package/dist/mint-components/p-9d34f4f0.entry.js +33 -0
- package/dist/mint-components/{p-ce5afa40.entry.js → p-9e0230c3.entry.js} +1 -1
- package/dist/mint-components/{p-9f0629ba.system.entry.js → p-9ec008cb.system.entry.js} +1 -1
- package/dist/mint-components/{p-95771f79.system.js → p-a02afa72.system.js} +1 -1
- package/dist/mint-components/p-a4282d02.system.entry.js +1 -0
- package/dist/mint-components/{p-4edde470.entry.js → p-a45b03d2.entry.js} +1 -1
- package/dist/mint-components/{p-02424350.system.js → p-ac51940e.system.js} +1 -1
- package/dist/mint-components/{p-aee2304a.entry.js → p-acd77a6e.entry.js} +9 -9
- package/dist/mint-components/p-b1e8a802.entry.js +1 -0
- package/dist/mint-components/{p-96242551.system.entry.js → p-b3e97f8a.system.entry.js} +1 -1
- package/dist/mint-components/{p-10685090.js → p-b651706a.js} +1 -1
- package/dist/mint-components/{p-ec41d6a4.entry.js → p-b8233366.entry.js} +1 -1
- package/dist/mint-components/{p-5cac90e8.system.entry.js → p-bc826117.system.entry.js} +1 -1
- package/dist/mint-components/p-bdd6bb13.js +1 -0
- package/dist/mint-components/{p-4502ed11.system.entry.js → p-be1ae1ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-56f14840.entry.js → p-bee1e573.entry.js} +1 -1
- package/dist/mint-components/{p-fb20eb5e.system.entry.js → p-c1f4fb6d.system.entry.js} +1 -1
- package/dist/mint-components/p-c3b37bbf.js +1 -0
- package/dist/mint-components/{p-7731f793.system.entry.js → p-c3babfa4.system.entry.js} +1 -1
- package/dist/mint-components/p-c92a743e.entry.js +1 -0
- package/dist/mint-components/p-c9fb6102.entry.js +1 -0
- package/dist/mint-components/{p-ed17e637.system.js → p-ca809fdd.system.js} +1 -1
- package/dist/mint-components/{p-5b333fa8.system.entry.js → p-cb38b9b0.system.entry.js} +1 -1
- package/dist/mint-components/{p-35d84041.system.entry.js → p-cb433855.system.entry.js} +1 -1
- package/dist/mint-components/{p-4df8f1d2.system.js → p-cd44de66.system.js} +1 -1
- package/dist/mint-components/{p-e3735866.entry.js → p-d35d8c06.entry.js} +2 -2
- package/dist/mint-components/{p-2dd67762.entry.js → p-d468925f.entry.js} +1 -1
- package/dist/mint-components/{p-8704937c.js → p-d83b0cf3.js} +1 -1
- package/dist/mint-components/p-def516b8.system.js +1 -0
- package/dist/mint-components/{p-4d233cd4.js → p-e0e7635a.js} +1 -1
- package/dist/mint-components/{p-1dd69917.system.entry.js → p-e12d3414.system.entry.js} +1 -1
- package/dist/mint-components/{p-3ec16698.entry.js → p-f36e33ff.entry.js} +2 -2
- package/dist/mint-components/{p-01cfff8a.system.entry.js → p-f450654b.system.entry.js} +1 -1
- package/dist/mint-components/{p-32d1d162.entry.js → p-f4cbbe47.entry.js} +1 -1
- package/dist/mint-components/{p-a1dba9a1.system.entry.js → p-f531a5c9.system.entry.js} +1 -1
- package/dist/mint-components/{p-9c310991.system.entry.js → p-f56348dc.system.entry.js} +1 -1
- package/dist/mint-components/p-f655a7df.js +1 -0
- package/dist/mint-components/{p-59fe4ad1.system.js → p-fc422446.system.js} +1 -1
- package/dist/mint-components/{p-aad11a68.entry.js → p-fd21ae8f.entry.js} +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +2 -2
- 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-e012b2aa.js +0 -1
- package/dist/esm-es5/index.module-def4aec5.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +0 -1
- package/dist/mint-components/p-03494732.entry.js +0 -1
- package/dist/mint-components/p-10e89d0a.entry.js +0 -1
- package/dist/mint-components/p-1c857edb.entry.js +0 -33
- package/dist/mint-components/p-51f517a2.js +0 -1
- package/dist/mint-components/p-5be235f9.entry.js +0 -1
- package/dist/mint-components/p-711ba77e.system.entry.js +0 -1
- package/dist/mint-components/p-770368bc.system.js +0 -1
- package/dist/mint-components/p-79191f88.entry.js +0 -1
- package/dist/mint-components/p-7f088154.entry.js +0 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +0 -1
- package/dist/mint-components/p-8e907ac7.system.entry.js +0 -1
- package/dist/mint-components/p-91669312.entry.js +0 -1
- package/dist/mint-components/p-a6a7dcaa.js +0 -1
- package/dist/mint-components/p-a8f7cb95.js +0 -1
- package/dist/mint-components/p-b370fca8.system.js +0 -1
- package/dist/mint-components/p-d5de2646.system.entry.js +0 -1
- package/dist/mint-components/p-d8e68e16.entry.js +0 -13
- package/dist/mint-components/p-e6d74386.system.entry.js +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h, f as useEffect, k as useState, i as d, u as useMemo, m as useRef, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo,
|
|
3
|
+
import { i as intl } from './global-6306a9b8.js';
|
|
4
|
+
import { i as isDemo, T, d as dist, K, z, c as xe, E as En, n as ne, Q, w as wn, x as xn, q as ze, W as We, U as Ue, b as useCallback, r as Ye, j as jn } from './index.module-6c840c4e.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import { a as useRequestRerender } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
+
import { a as useRequestRerender } from './re-render-1bcfd0de.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-fc84e640.js';
|
|
11
11
|
import './luxon-7600be8d.js';
|
|
12
12
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
13
13
|
import './sqm-text-span-view-8d140661.js';
|
|
14
14
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
15
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-
|
|
16
|
-
import { i as isEmpty } from './utilities-
|
|
15
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-849e27f7.js';
|
|
16
|
+
import { i as isEmpty } from './utilities-443732be.js';
|
|
17
17
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
18
|
-
import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, k as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
18
|
+
import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, k as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-65c8679e.js';
|
|
19
19
|
import './sqm-portal-container-view-6c582684.js';
|
|
20
20
|
|
|
21
21
|
const BigStat = class {
|
|
@@ -35,7 +35,7 @@ const BigStat = class {
|
|
|
35
35
|
render() {
|
|
36
36
|
var _a;
|
|
37
37
|
const { props, label } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
38
|
-
const host =
|
|
38
|
+
const host = T();
|
|
39
39
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
40
40
|
const labelSlot = h$1("slot", { name: "label" }, hasLabel ? h$1("slot", null) : label);
|
|
41
41
|
return h$1(BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -156,7 +156,7 @@ const styleString = sheet.toString();
|
|
|
156
156
|
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
157
157
|
if (!missingProps)
|
|
158
158
|
return false;
|
|
159
|
-
const host =
|
|
159
|
+
const host = T();
|
|
160
160
|
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
161
161
|
return (h$1("sl-alert", { type: "danger", open: true },
|
|
162
162
|
h$1("style", { type: "text/css" }, styleString),
|
|
@@ -298,11 +298,11 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
298
298
|
`;
|
|
299
299
|
function useCouponCode(props) {
|
|
300
300
|
var _a, _b, _c;
|
|
301
|
-
const user =
|
|
302
|
-
const programId =
|
|
303
|
-
const engagementMedium =
|
|
304
|
-
const [sendLoadEvent] =
|
|
305
|
-
const { data, loading, refetch, errors } =
|
|
301
|
+
const user = K();
|
|
302
|
+
const programId = z();
|
|
303
|
+
const engagementMedium = ne();
|
|
304
|
+
const [sendLoadEvent] = xe(WIDGET_ENGAGEMENT_EVENT);
|
|
305
|
+
const { data, loading, refetch, errors } = En(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
306
306
|
const getStatus = (reward) => {
|
|
307
307
|
if (!reward || !reward.statuses)
|
|
308
308
|
return "ERROR";
|
|
@@ -692,13 +692,13 @@ const defaultFormState = {
|
|
|
692
692
|
error: "",
|
|
693
693
|
};
|
|
694
694
|
function useEditProfile(props) {
|
|
695
|
-
const userIdent =
|
|
695
|
+
const userIdent = K();
|
|
696
696
|
const [showEdit, setShowEdit] = useState(false);
|
|
697
697
|
const [error, setError] = useState("");
|
|
698
698
|
const [userData, setUserData] = useState(undefined);
|
|
699
699
|
const [formState, setFormState] = useState(defaultFormState);
|
|
700
|
-
const userDataResponse =
|
|
701
|
-
const [upsertUser, upsertUserResponse] =
|
|
700
|
+
const userDataResponse = En(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
701
|
+
const [upsertUser, upsertUserResponse] = xe(UPSERT_USER);
|
|
702
702
|
useEffect(() => {
|
|
703
703
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
704
704
|
return;
|
|
@@ -1337,11 +1337,11 @@ const GET_RANK_WITHOUT_NAMES = dist.gql `
|
|
|
1337
1337
|
`;
|
|
1338
1338
|
function useLeaderboard(props) {
|
|
1339
1339
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1340
|
-
const programIdContext =
|
|
1340
|
+
const programIdContext = z();
|
|
1341
1341
|
// Default to context, overriden by props
|
|
1342
1342
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1343
|
-
const user =
|
|
1344
|
-
const locale =
|
|
1343
|
+
const user = K();
|
|
1344
|
+
const locale = Q();
|
|
1345
1345
|
const variables = programId
|
|
1346
1346
|
? {
|
|
1347
1347
|
type: props.leaderboardType,
|
|
@@ -1360,8 +1360,8 @@ function useLeaderboard(props) {
|
|
|
1360
1360
|
if (props.maxRows > 0) {
|
|
1361
1361
|
variables["limit"] = props.maxRows;
|
|
1362
1362
|
}
|
|
1363
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } =
|
|
1364
|
-
const { data: rankData } =
|
|
1363
|
+
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = En(props.hideNames ? GET_LEADERBOARD_WITHOUT_NAMES : GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
|
|
1364
|
+
const { data: rankData } = En(props.hideNames ? GET_RANK_WITHOUT_NAMES : GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1365
1365
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1366
1366
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1367
1367
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1608,7 +1608,7 @@ const MarketingEmailsCheckbox = class {
|
|
|
1608
1608
|
* @uiName Checkbox name attribute
|
|
1609
1609
|
* @required
|
|
1610
1610
|
*/
|
|
1611
|
-
this.checkboxName = "
|
|
1611
|
+
this.checkboxName = "marketingEmails";
|
|
1612
1612
|
/**
|
|
1613
1613
|
* @uiName Checkbox label
|
|
1614
1614
|
* @uiWidget textArea
|
|
@@ -1703,12 +1703,12 @@ function NavigationMenuView(props) {
|
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
1705
1705
|
function handleMenu(e) {
|
|
1706
|
-
|
|
1706
|
+
xn.push(e.detail.item.value);
|
|
1707
1707
|
}
|
|
1708
1708
|
function useNavigationMenu(props) {
|
|
1709
1709
|
const ref = useRef();
|
|
1710
|
-
const [, rerender] =
|
|
1711
|
-
const user =
|
|
1710
|
+
const [, rerender] = wn();
|
|
1711
|
+
const user = K();
|
|
1712
1712
|
useEffect(() => {
|
|
1713
1713
|
var _a;
|
|
1714
1714
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1762,11 +1762,11 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
1762
1762
|
|
|
1763
1763
|
function usePortalChangePassword(props) {
|
|
1764
1764
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1765
|
-
const [request, { loading, errors, data }] =
|
|
1765
|
+
const [request, { loading, errors, data }] = ze();
|
|
1766
1766
|
const [open, setOpen] = useState(false);
|
|
1767
1767
|
const [error, setError] = useState("");
|
|
1768
1768
|
const [success, setSuccess] = useState(false);
|
|
1769
|
-
const user =
|
|
1769
|
+
const user = K();
|
|
1770
1770
|
const submit = async (event) => {
|
|
1771
1771
|
var _a, _b;
|
|
1772
1772
|
setSuccess(false);
|
|
@@ -2008,7 +2008,7 @@ const PortalFooter = class {
|
|
|
2008
2008
|
};
|
|
2009
2009
|
|
|
2010
2010
|
function usePortalFrame(footerContent, headerContent) {
|
|
2011
|
-
const [, rerender] =
|
|
2011
|
+
const [, rerender] = wn();
|
|
2012
2012
|
return {
|
|
2013
2013
|
data: {
|
|
2014
2014
|
footer: footerContent,
|
|
@@ -2058,9 +2058,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
2058
2058
|
|
|
2059
2059
|
function usePortalLogin(props) {
|
|
2060
2060
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2061
|
-
const [request, { loading, errors, data }] =
|
|
2061
|
+
const [request, { loading, errors, data }] = We();
|
|
2062
2062
|
const [error, setError] = useState("");
|
|
2063
|
-
const urlParams = new URLSearchParams(
|
|
2063
|
+
const urlParams = new URLSearchParams(xn.location.search);
|
|
2064
2064
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2065
2065
|
const submit = async (event) => {
|
|
2066
2066
|
var _a, _b;
|
|
@@ -2079,7 +2079,7 @@ function usePortalLogin(props) {
|
|
|
2079
2079
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2080
2080
|
urlParams.delete("nextPage");
|
|
2081
2081
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2082
|
-
|
|
2082
|
+
xn.push(url.href);
|
|
2083
2083
|
}
|
|
2084
2084
|
};
|
|
2085
2085
|
const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
|
|
@@ -2158,8 +2158,8 @@ const PortalLogin = class {
|
|
|
2158
2158
|
? useLoginDemo(this)
|
|
2159
2159
|
: usePortalLogin(this);
|
|
2160
2160
|
const content = {
|
|
2161
|
-
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () =>
|
|
2162
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2161
|
+
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => xn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2162
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => xn.push(states.registerPath) }, this.registerLabel))),
|
|
2163
2163
|
emailLabel: this.emailLabel,
|
|
2164
2164
|
passwordLabel: this.passwordLabel,
|
|
2165
2165
|
submitLabel: this.submitLabel,
|
|
@@ -2188,7 +2188,7 @@ function usePortalRegister(props) {
|
|
|
2188
2188
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2189
2189
|
const formRef = useRef(null);
|
|
2190
2190
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
2191
|
-
const [request, { loading, errors, data }] =
|
|
2191
|
+
const [request, { loading, errors, data }] = Ue();
|
|
2192
2192
|
useEffect(() => {
|
|
2193
2193
|
if (!formRef.current)
|
|
2194
2194
|
return;
|
|
@@ -2261,7 +2261,7 @@ function usePortalRegister(props) {
|
|
|
2261
2261
|
validationErrors: {},
|
|
2262
2262
|
});
|
|
2263
2263
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2264
|
-
|
|
2264
|
+
xn.push(props.nextPage);
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
2267
|
catch (error) {
|
|
@@ -2435,7 +2435,7 @@ const PortalRegister = class {
|
|
|
2435
2435
|
: usePortalRegister(this);
|
|
2436
2436
|
const content = {
|
|
2437
2437
|
formData: h$1("slot", { name: "formData" }),
|
|
2438
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2438
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => xn.push(states.loginPath) }, this.loginLabel))),
|
|
2439
2439
|
terms: h$1("slot", { name: "terms" }),
|
|
2440
2440
|
emailLabel: this.emailLabel,
|
|
2441
2441
|
passwordLabel: this.passwordLabel,
|
|
@@ -2606,11 +2606,11 @@ const ProgramExplainerStep = class {
|
|
|
2606
2606
|
const debug = browser("sq:useProgramMenu");
|
|
2607
2607
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2608
2608
|
function useProgramMenu(props) {
|
|
2609
|
-
const programId =
|
|
2610
|
-
const host =
|
|
2609
|
+
const programId = z();
|
|
2610
|
+
const host = T();
|
|
2611
2611
|
debug({ programId, props });
|
|
2612
2612
|
const ref = useRef();
|
|
2613
|
-
const [, rerender] =
|
|
2613
|
+
const [, rerender] = wn();
|
|
2614
2614
|
useEffect(() => {
|
|
2615
2615
|
var _a;
|
|
2616
2616
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2788,9 +2788,9 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
2788
2788
|
`;
|
|
2789
2789
|
function useReferralIframe(props) {
|
|
2790
2790
|
var _a;
|
|
2791
|
-
const programId =
|
|
2792
|
-
const user =
|
|
2793
|
-
const { data } =
|
|
2791
|
+
const programId = z();
|
|
2792
|
+
const user = K();
|
|
2793
|
+
const { data } = En(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2794
2794
|
return {
|
|
2795
2795
|
states: {
|
|
2796
2796
|
content: props,
|
|
@@ -3515,9 +3515,9 @@ function useRewardExchangeList(props) {
|
|
|
3515
3515
|
});
|
|
3516
3516
|
const [open, setOpen] = useState(false);
|
|
3517
3517
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3518
|
-
const user =
|
|
3519
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] =
|
|
3520
|
-
const { data, loading, refetch, errors: queryError, } =
|
|
3518
|
+
const user = K();
|
|
3519
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = xe(EXCHANGE);
|
|
3520
|
+
const { data, loading, refetch, errors: queryError, } = En(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3521
3521
|
useEffect(() => {
|
|
3522
3522
|
var _a, _b;
|
|
3523
3523
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -3536,7 +3536,7 @@ function useRewardExchangeList(props) {
|
|
|
3536
3536
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3537
3537
|
canvas.confetti();
|
|
3538
3538
|
}, [canvasRef.current]);
|
|
3539
|
-
const { refresh } =
|
|
3539
|
+
const { refresh } = Ye();
|
|
3540
3540
|
async function exchangeReward() {
|
|
3541
3541
|
if (!selectedItem)
|
|
3542
3542
|
return;
|
|
@@ -3844,8 +3844,8 @@ function matchPath(pattern, page) {
|
|
|
3844
3844
|
return regexp.exec(page);
|
|
3845
3845
|
}
|
|
3846
3846
|
function useRouter() {
|
|
3847
|
-
const location =
|
|
3848
|
-
const host =
|
|
3847
|
+
const location = jn();
|
|
3848
|
+
const host = T();
|
|
3849
3849
|
const [slot, setSlot] = useState(undefined);
|
|
3850
3850
|
const [container, setContainer] = useState(undefined);
|
|
3851
3851
|
const page = location.pathname;
|
|
@@ -4106,11 +4106,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = dist.gql `
|
|
|
4106
4106
|
`;
|
|
4107
4107
|
function useShareCode(props) {
|
|
4108
4108
|
var _a, _b;
|
|
4109
|
-
const { programId =
|
|
4110
|
-
const user =
|
|
4111
|
-
const engagementMedium =
|
|
4112
|
-
const { data } =
|
|
4113
|
-
const [sendLoadEvent] =
|
|
4109
|
+
const { programId = z() } = props;
|
|
4110
|
+
const user = K();
|
|
4111
|
+
const engagementMedium = ne();
|
|
4112
|
+
const { data } = En(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4113
|
+
const [sendLoadEvent] = xe(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4114
4114
|
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
4115
4115
|
// Shown during loading
|
|
4116
4116
|
"...";
|
|
@@ -4309,10 +4309,10 @@ const SEND_EVENT = dist.gql `
|
|
|
4309
4309
|
}
|
|
4310
4310
|
`;
|
|
4311
4311
|
function useTaskCard(props) {
|
|
4312
|
-
const user =
|
|
4313
|
-
const locale =
|
|
4314
|
-
const [sendUserEvent, { data, loading: loadingEvent }] =
|
|
4315
|
-
const { refresh } =
|
|
4312
|
+
const user = K();
|
|
4313
|
+
const locale = Q();
|
|
4314
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = xe(SEND_EVENT);
|
|
4315
|
+
const { refresh } = Ye();
|
|
4316
4316
|
useEffect(() => {
|
|
4317
4317
|
if (data) {
|
|
4318
4318
|
refresh();
|
|
@@ -4633,8 +4633,8 @@ const GET_USER_NAME = dist.gql `
|
|
|
4633
4633
|
`;
|
|
4634
4634
|
function useUserName(props) {
|
|
4635
4635
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4636
|
-
const user =
|
|
4637
|
-
const res =
|
|
4636
|
+
const user = K();
|
|
4637
|
+
const res = En(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4638
4638
|
const loading = res.loading;
|
|
4639
4639
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
4640
4640
|
? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`
|
|
@@ -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 {
|
|
3
|
+
import { g as getEnvironmentSDK } from './index.module-6c840c4e.js';
|
|
4
4
|
import './mixins-f60a614c.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { C as CloseButtonView } from './sqm-close-button-view-dc65b4e3.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { b as browser, k as useState, i as d, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { T } from './index.module-6c840c4e.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ function matchPath(pattern, page) {
|
|
|
12
12
|
return regexp.exec(page);
|
|
13
13
|
}
|
|
14
14
|
function useContextRouter(props) {
|
|
15
|
-
const host =
|
|
15
|
+
const host = T();
|
|
16
16
|
const [slot, setSlot] = useState(undefined);
|
|
17
17
|
const [container, setContainer] = useState(undefined);
|
|
18
18
|
const context = props.contextName;
|
|
@@ -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-6306a9b8.js';
|
|
4
|
+
import './index.module-6c840c4e.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 { B, k as ke, Y, $ as $e } from './index.module-6c840c4e.js';
|
|
4
4
|
|
|
5
5
|
async function useGraphQLClientProvider({ domain }) {
|
|
6
|
-
const token =
|
|
6
|
+
const token = B();
|
|
7
7
|
const appDomain = domain;
|
|
8
|
-
const tenantAlias =
|
|
8
|
+
const tenantAlias = Y();
|
|
9
9
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
10
|
-
const managedIdentityClient =
|
|
11
|
-
const [, setGraphQLClient] = m(
|
|
10
|
+
const managedIdentityClient = ke(appDomain, tenantAlias, token);
|
|
11
|
+
const [, setGraphQLClient] = m($e, 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, a as setUserIdentity } from './index.module-6c840c4e.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-849e27f7.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-8b0a4556.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-6306a9b8.js';
|
|
4
|
+
import { d as dist, z, K, E as En, i as isDemo } from './index.module-6c840c4e.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 = z();
|
|
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 = K();
|
|
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 } = En(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, K, E as En, a as setUserIdentity, i as isDemo } from './index.module-6c840c4e.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 = K();
|
|
23
|
+
const { loading, data } = En(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 { x as xn } from './index.module-6c840c4e.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
|
+
xn.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 { j as jn, i as isDemo } from './index.module-6c840c4e.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-f8e78810.js';
|
|
9
9
|
|
|
10
10
|
function useNavigationSidebarItem(props) {
|
|
11
|
-
const currentPage =
|
|
11
|
+
const currentPage = jn();
|
|
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 { j as jn, z } from './index.module-6c840c4e.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 = jn();
|
|
20
|
+
const programId = z();
|
|
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-6c840c4e.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-849e27f7.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 { n as ne } from './index.module-6c840c4e.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 = ne();
|
|
18
18
|
function closePopup() {
|
|
19
19
|
var _a;
|
|
20
|
-
if (
|
|
20
|
+
if (ne() === "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 = ne() === "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-6306a9b8.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-6306a9b8.js';
|
|
4
|
+
import { h as hn, u as un, K, x as xn, b as useCallback, i as isDemo } from './index.module-6c840c4e.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-c6ac5430.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 }] = hn();
|
|
14
|
+
const [getVerificationStatus, { data: user, loading: loadingVerification }] = un();
|
|
15
|
+
const userIdent = K();
|
|
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(xn.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 xn.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 { v as vn, x as xn, i as isDemo } from './index.module-6c840c4e.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 }] = vn();
|
|
16
|
+
const urlParams = new URLSearchParams(xn.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: () => xn.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,
|