@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,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 { a as setUserIdentity, x as xn, i as isDemo } from './index.module-6c840c4e.js';
|
|
4
4
|
|
|
5
5
|
function usePortalLogout({ nextPage }) {
|
|
6
6
|
setUserIdentity(undefined);
|
|
7
|
-
|
|
7
|
+
xn.push({ pathname: nextPage, search: "" });
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
const PortalLogout = class {
|
package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-15ddbec8.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-6306a9b8.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-6306a9b8.js';
|
|
4
|
+
import { d as dist, K, E as En, c as xe, i as isDemo } from './index.module-6c840c4e.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-15ddbec8.js';
|
|
10
|
+
import { i as isEmpty } from './utilities-443732be.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 = K();
|
|
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 = En(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
61
|
+
const [upsertUser, upsertUserResponse] = xe(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 { K, j as jn, x as xn, i as isDemo } from './index.module-6c840c4e.js';
|
|
4
4
|
|
|
5
5
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
6
6
|
var _a;
|
|
7
|
-
const userIdent =
|
|
7
|
+
const userIdent = K();
|
|
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 } = jn();
|
|
11
11
|
const nextPageParam = new URLSearchParams();
|
|
12
12
|
nextPageParam.append("nextPage", `${pathname}${search}`);
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
if (!authenticated) {
|
|
15
|
-
return
|
|
15
|
+
return xn.push({
|
|
16
16
|
pathname: redirectTo,
|
|
17
17
|
search: "?" + nextPageParam.toString(),
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
if (requireEmailVerification && !emailVerified) {
|
|
21
|
-
return
|
|
21
|
+
return xn.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, Q, e as Te, E as En, x as xn, b as useCallback, 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';
|
|
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-849e27f7.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 = Q();
|
|
30
30
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
31
|
-
const [request, { loading, errors, data, formError }] =
|
|
32
|
-
const queryResponse =
|
|
31
|
+
const [request, { loading, errors, data, formError }] = Te();
|
|
32
|
+
const queryResponse = En(RegistrationFormQuery, { key: props.formKey });
|
|
33
33
|
const formLoading = loading || queryResponse.loading;
|
|
34
34
|
useEffect(() => {
|
|
35
35
|
var _a, _b, _c;
|
|
@@ -57,6 +57,7 @@ function usePortalRegistrationForm(props) {
|
|
|
57
57
|
const submit = async (event) => {
|
|
58
58
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
59
59
|
let formControls = event.target.getFormControls();
|
|
60
|
+
console.log("Test 123");
|
|
60
61
|
let formData = {};
|
|
61
62
|
let validationErrors = {};
|
|
62
63
|
formControls === null || formControls === void 0 ? void 0 : formControls.forEach((control) => {
|
|
@@ -102,10 +103,14 @@ function usePortalRegistrationForm(props) {
|
|
|
102
103
|
validationErrors: {},
|
|
103
104
|
});
|
|
104
105
|
const { email, password } = formData;
|
|
106
|
+
console.log("form data is ", formData);
|
|
105
107
|
delete formData.email;
|
|
106
108
|
delete formData.password;
|
|
107
109
|
delete formData.confirmPassword;
|
|
108
110
|
const redirectPath = props.redirectPath;
|
|
111
|
+
const marketingEmailOptInDate = formData.marketingEmails
|
|
112
|
+
? Date.now()
|
|
113
|
+
: null;
|
|
109
114
|
const variables = {
|
|
110
115
|
key: props.formKey,
|
|
111
116
|
formData: {
|
|
@@ -113,6 +118,7 @@ function usePortalRegistrationForm(props) {
|
|
|
113
118
|
email,
|
|
114
119
|
password,
|
|
115
120
|
redirectPath,
|
|
121
|
+
...(formData.marketingEmails && { marketingEmailOptInDate }),
|
|
116
122
|
...formData,
|
|
117
123
|
},
|
|
118
124
|
};
|
|
@@ -132,7 +138,7 @@ function usePortalRegistrationForm(props) {
|
|
|
132
138
|
managedIdentityResponse.result.results.length &&
|
|
133
139
|
managedIdentityResponse.result.results[0].success &&
|
|
134
140
|
managedIdentityResponse.result.results[0].data.token) {
|
|
135
|
-
|
|
141
|
+
xn.push(props.nextPage);
|
|
136
142
|
}
|
|
137
143
|
else if (
|
|
138
144
|
// check for blocked email error response
|
|
@@ -345,7 +351,7 @@ const PortalRegistrationForm = class {
|
|
|
345
351
|
: usePortalRegistrationForm(this);
|
|
346
352
|
const content = {
|
|
347
353
|
formData: h$1("slot", { name: "formData" }),
|
|
348
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
354
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => xn.push(states.loginPath) }, this.loginLabel))),
|
|
349
355
|
terms: h$1("slot", { name: "terms" }),
|
|
350
356
|
emailOptIn: h$1("slot", { name: "emailOptIn" }),
|
|
351
357
|
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 { X as Xe, f as Ke, 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';
|
|
@@ -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] = Xe();
|
|
17
|
+
const [resetPassword, resetPasswordState] = Ke();
|
|
18
|
+
const urlParams = new URLSearchParams(xn.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
|
+
xn.push(url.href);
|
|
57
57
|
};
|
|
58
58
|
const failed = () => {
|
|
59
|
-
|
|
59
|
+
xn.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 { K, l as ln, x as xn, a as setUserIdentity, 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';
|
|
@@ -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 = K();
|
|
17
|
+
const [request, { loading, data, errors }] = ln();
|
|
18
|
+
const urlParams = new URLSearchParams(xn.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 xn.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
|
+
xn.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-6306a9b8.js';
|
|
4
|
+
import { 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 { 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-1bcfd0de.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-fc84e640.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-f6ffa103.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, 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 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-6c840c4e.js';
|
|
4
|
+
import { a as useRequestRerender } from './re-render-1bcfd0de.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-6306a9b8.js';
|
|
4
|
+
import { d as dist, K, z, Q, E as En, O as On, 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 { 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-1bcfd0de.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-fc84e640.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-f6ffa103.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 = K();
|
|
166
|
+
const programIdContext = z();
|
|
167
|
+
const locale = Q();
|
|
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 } = En(GET_IMPACT_TAX, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
190
|
+
const { envelope: rewardsData, states, callbacks, } = On(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
|
}, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { a as commonjsGlobal, u as useMemo, k as useState, f as useEffect, c as createCommonjsModule, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import {
|
|
3
|
+
import './global-6306a9b8.js';
|
|
4
|
+
import { x as xn, j as jn, a as setUserIdentity, d as dist, o as an, p as setProgramId } from './index.module-6c840c4e.js';
|
|
5
5
|
import './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 './useChildElements-
|
|
9
|
+
import './useChildElements-fc84e640.js';
|
|
10
10
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
11
11
|
import './utils-334c1e34.js';
|
|
12
12
|
import './sqm-text-span-view-8d140661.js';
|
|
@@ -17,17 +17,17 @@ import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.j
|
|
|
17
17
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
|
|
18
18
|
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-2c6122cd.js';
|
|
19
19
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0312e073.js';
|
|
20
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
21
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
20
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-f8e78810.js';
|
|
21
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-c6ac5430.js';
|
|
22
22
|
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-c2ed8fed.js';
|
|
23
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
24
|
-
import './utilities-
|
|
23
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-15ddbec8.js';
|
|
24
|
+
import './utilities-443732be.js';
|
|
25
25
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-1d3066e1.js';
|
|
26
26
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-79a85e02.js';
|
|
27
27
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-d7ea2c56.js';
|
|
28
|
-
import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-
|
|
28
|
+
import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-65c8679e.js';
|
|
29
29
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
|
|
30
|
-
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-
|
|
30
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-71915a5e.js';
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -2536,36 +2536,36 @@ const routes = `
|
|
|
2536
2536
|
`;
|
|
2537
2537
|
const TemplateNavigation = createHookStory(() => {
|
|
2538
2538
|
return (h("div", null,
|
|
2539
|
-
h("button", { onClick: () =>
|
|
2540
|
-
h("button", { onClick: () =>
|
|
2541
|
-
h("button", { onClick: () =>
|
|
2542
|
-
h("button", { onClick: () =>
|
|
2543
|
-
h("button", { onClick: () =>
|
|
2544
|
-
h("button", { onClick: () =>
|
|
2545
|
-
h("button", { onClick: () =>
|
|
2546
|
-
h("button", { onClick: () =>
|
|
2547
|
-
h("button", { onClick: () =>
|
|
2539
|
+
h("button", { onClick: () => xn.push("/") }, "/"),
|
|
2540
|
+
h("button", { onClick: () => xn.push("/foo") }, "/foo"),
|
|
2541
|
+
h("button", { onClick: () => xn.push("/bar") }, "/bar"),
|
|
2542
|
+
h("button", { onClick: () => xn.push("/baz/bang") }, "/baz/bang"),
|
|
2543
|
+
h("button", { onClick: () => xn.push("/refer") }, "/refer"),
|
|
2544
|
+
h("button", { onClick: () => xn.push("/refer/1") }, "/refer/1"),
|
|
2545
|
+
h("button", { onClick: () => xn.push("/refer/2") }, "/refer/2"),
|
|
2546
|
+
h("button", { onClick: () => xn.back() }, "Back"),
|
|
2547
|
+
h("button", { onClick: () => xn.forward() }, "Forward"),
|
|
2548
2548
|
h("hr", null),
|
|
2549
2549
|
h("sqm-router", { innerHTML: templates })));
|
|
2550
2550
|
});
|
|
2551
2551
|
const RouteNavigation = createHookStory(() => {
|
|
2552
2552
|
return (h("div", null,
|
|
2553
|
-
h("button", { onClick: () =>
|
|
2554
|
-
h("button", { onClick: () =>
|
|
2555
|
-
h("button", { onClick: () =>
|
|
2556
|
-
h("button", { onClick: () =>
|
|
2557
|
-
h("button", { onClick: () =>
|
|
2558
|
-
h("button", { onClick: () =>
|
|
2559
|
-
h("button", { onClick: () =>
|
|
2560
|
-
h("button", { onClick: () =>
|
|
2561
|
-
h("button", { onClick: () =>
|
|
2553
|
+
h("button", { onClick: () => xn.push("/") }, "/"),
|
|
2554
|
+
h("button", { onClick: () => xn.push("/foo") }, "/foo"),
|
|
2555
|
+
h("button", { onClick: () => xn.push("/bar") }, "/bar"),
|
|
2556
|
+
h("button", { onClick: () => xn.push("/baz/bang") }, "/baz/bang"),
|
|
2557
|
+
h("button", { onClick: () => xn.push("/refer") }, "/refer"),
|
|
2558
|
+
h("button", { onClick: () => xn.push("/refer/1") }, "/refer/1"),
|
|
2559
|
+
h("button", { onClick: () => xn.push("/refer/2") }, "/refer/2"),
|
|
2560
|
+
h("button", { onClick: () => xn.back() }, "Back"),
|
|
2561
|
+
h("button", { onClick: () => xn.forward() }, "Forward"),
|
|
2562
2562
|
h("hr", null),
|
|
2563
2563
|
h("sqm-router", { innerHTML: routes })));
|
|
2564
2564
|
});
|
|
2565
2565
|
const Styling = createHookStory(() => {
|
|
2566
2566
|
return (h("div", null,
|
|
2567
|
-
h("button", { onClick: () =>
|
|
2568
|
-
h("button", { onClick: () =>
|
|
2567
|
+
h("button", { onClick: () => xn.push("/") }, "/"),
|
|
2568
|
+
h("button", { onClick: () => xn.push("/foo") }, "/foo"),
|
|
2569
2569
|
h("hr", null),
|
|
2570
2570
|
h("div", { style: { display: "flex", justifyContent: "space-around" } },
|
|
2571
2571
|
h("sqm-router", { innerHTML: `<template path="/">
|
|
@@ -2579,7 +2579,7 @@ function useTemplate(templateString) {
|
|
|
2579
2579
|
const [previewTemplate, setPreviewTemplate] = useState(templateString);
|
|
2580
2580
|
function setPath(e) {
|
|
2581
2581
|
//@ts-ignore
|
|
2582
|
-
|
|
2582
|
+
xn.push(e.target.value);
|
|
2583
2583
|
}
|
|
2584
2584
|
return {
|
|
2585
2585
|
states: { previewTemplate, editedTemplate },
|
|
@@ -2743,8 +2743,8 @@ const FullStackFrame = () => {
|
|
|
2743
2743
|
"Current path:",
|
|
2744
2744
|
" ",
|
|
2745
2745
|
h("code", null,
|
|
2746
|
-
h("strong", null, (_a =
|
|
2747
|
-
h("button", { onClick:
|
|
2746
|
+
h("strong", null, (_a = jn()) === null || _a === void 0 ? void 0 : _a.pathname))),
|
|
2747
|
+
h("button", { onClick: xn.back }, "Go Back")));
|
|
2748
2748
|
};
|
|
2749
2749
|
const FullStackFrameLoggedOut = () => {
|
|
2750
2750
|
var _a;
|
|
@@ -2768,8 +2768,8 @@ const FullStackFrameLoggedOut = () => {
|
|
|
2768
2768
|
"Current path:",
|
|
2769
2769
|
" ",
|
|
2770
2770
|
h("code", null,
|
|
2771
|
-
h("strong", null, (_a =
|
|
2772
|
-
h("button", { onClick:
|
|
2771
|
+
h("strong", null, (_a = jn()) === null || _a === void 0 ? void 0 : _a.pathname))),
|
|
2772
|
+
h("button", { onClick: xn.back }, "Go Back")));
|
|
2773
2773
|
};
|
|
2774
2774
|
|
|
2775
2775
|
const PortalFrame = /*#__PURE__*/Object.freeze({
|
|
@@ -3496,7 +3496,7 @@ function useExchangeButton() {
|
|
|
3496
3496
|
const { id, accountId } = setupGraphQL$6();
|
|
3497
3497
|
const [points, setPoints] = useState(10);
|
|
3498
3498
|
const [rate, setRate] = useState(100);
|
|
3499
|
-
const [exchange, { data, errors }] =
|
|
3499
|
+
const [exchange, { data, errors }] = an(EXCHANGE);
|
|
3500
3500
|
return {
|
|
3501
3501
|
states: {
|
|
3502
3502
|
points,
|
|
@@ -4097,16 +4097,16 @@ function DefaultTemplateView(props) {
|
|
|
4097
4097
|
gridTemplateColumns: "repeat(9, 80px)",
|
|
4098
4098
|
gridGap: "10px",
|
|
4099
4099
|
} },
|
|
4100
|
-
h("button", { onClick: () =>
|
|
4101
|
-
props.leadSubmit && (h("button", { onClick: () =>
|
|
4102
|
-
h("button", { onClick: () =>
|
|
4103
|
-
h("button", { onClick: () =>
|
|
4104
|
-
h("button", { onClick: () =>
|
|
4105
|
-
h("button", { onClick: () =>
|
|
4106
|
-
h("button", { onClick: () =>
|
|
4107
|
-
h("button", { onClick: () =>
|
|
4108
|
-
h("button", { onClick: () =>
|
|
4109
|
-
h("button", { onClick: () =>
|
|
4100
|
+
h("button", { onClick: () => xn.push("/") }, "Dashboard"),
|
|
4101
|
+
props.leadSubmit && (h("button", { onClick: () => xn.push("/refer") }, "Submit a Referral")),
|
|
4102
|
+
h("button", { onClick: () => xn.push("/activity") }, "Activity"),
|
|
4103
|
+
h("button", { onClick: () => xn.push("/editProfile") }, "Edit Profile"),
|
|
4104
|
+
h("button", { onClick: () => xn.push("/login") }, "Login"),
|
|
4105
|
+
h("button", { onClick: () => xn.push("/register") }, "Register"),
|
|
4106
|
+
h("button", { onClick: () => xn.push("/emailVerification") }, "Email Verification"),
|
|
4107
|
+
h("button", { onClick: () => xn.push("/verifyEmail") }, "Verify Email"),
|
|
4108
|
+
h("button", { onClick: () => xn.push("/forgotPassword") }, "Forgot Password"),
|
|
4109
|
+
h("button", { onClick: () => xn.push("/resetPassword") }, "Reset Password")),
|
|
4110
4110
|
h("br", null),
|
|
4111
4111
|
h("div", { innerHTML: states.previewTemplate })));
|
|
4112
4112
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
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 './index.module-
|
|
4
|
-
import { a as useRequestRerender } from './re-render-
|
|
3
|
+
import './index.module-6c840c4e.js';
|
|
4
|
+
import { a as useRequestRerender } from './re-render-1bcfd0de.js';
|
|
5
5
|
|
|
6
6
|
const TabView = ({}, children) => {
|
|
7
7
|
return h(Host, null, children);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { u as useMemo, f as useEffect, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
4
|
-
import { u as useRerenderListener } from './re-render-
|
|
5
|
-
import { u as useChildElements } from './useChildElements-
|
|
3
|
+
import { T } from './index.module-6c840c4e.js';
|
|
4
|
+
import { u as useRerenderListener } from './re-render-1bcfd0de.js';
|
|
5
|
+
import { u as useChildElements } from './useChildElements-fc84e640.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
|
|
8
8
|
const TabsView = ({ content, placement, }) => {
|
|
@@ -37,7 +37,7 @@ const TabsView = ({ content, placement, }) => {
|
|
|
37
37
|
const REVEAL_EVENT = "sq:reveal";
|
|
38
38
|
function useTabs() {
|
|
39
39
|
const rawTabs = useChildElements();
|
|
40
|
-
const host =
|
|
40
|
+
const host = T();
|
|
41
41
|
const tick = useRerenderListener();
|
|
42
42
|
const tabs = useMemo(() => rawTabs
|
|
43
43
|
.filter((tab) => tab.tagName === "SQM-TAB" || tab.tagName === "RAISINS-PLOP-TARGET")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { k as useState, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { T } from './index.module-6c840c4e.js';
|
|
3
3
|
|
|
4
4
|
function useChildElements() {
|
|
5
|
-
const host =
|
|
5
|
+
const host = T();
|
|
6
6
|
const initialState = host.children.length
|
|
7
7
|
? Array.from(host.children)
|
|
8
8
|
: [];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { k as useState } from './stencil-hooks.module-ac12ca1c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { C as Cn } from './index.module-6c840c4e.js';
|
|
3
3
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
4
|
-
import { u as useRegistrationFormState } from './useRegistrationFormState-
|
|
4
|
+
import { u as useRegistrationFormState } from './useRegistrationFormState-849e27f7.js';
|
|
5
5
|
|
|
6
6
|
function useInstantAccessRegistration(props) {
|
|
7
7
|
const cookie = new URLSearchParams(window.location.search);
|
|
8
8
|
const cookies = cookie === null || cookie === void 0 ? void 0 : cookie.get("_saasquatch");
|
|
9
9
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState();
|
|
10
|
-
const [request, { loading, errors, data }] =
|
|
10
|
+
const [request, { loading, errors, data }] = Cn();
|
|
11
11
|
const [error, setError] = useState("");
|
|
12
12
|
const submit = async (event) => {
|
|
13
13
|
var _a;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
2
|
import { b as browser, j as useReducer, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { d as dist,
|
|
4
|
-
import { u as useRerenderListener } from './re-render-
|
|
5
|
-
import { u as useChildElements } from './useChildElements-
|
|
3
|
+
import { d as dist, K, z, Q, E as En, O as On } from './index.module-6c840c4e.js';
|
|
4
|
+
import { u as useRerenderListener } from './re-render-1bcfd0de.js';
|
|
5
|
+
import { u as useChildElements } from './useChildElements-fc84e640.js';
|
|
6
6
|
|
|
7
7
|
const debug = browser("sq:useReferralTable");
|
|
8
8
|
const CSS_NAMESPACE = "sqm-referral-table";
|
|
@@ -243,8 +243,8 @@ const GET_IMPACT_TAX = dist.gql `
|
|
|
243
243
|
`;
|
|
244
244
|
function useReferralTable(props, emptyElement, loadingElement) {
|
|
245
245
|
var _a, _b, _c, _d;
|
|
246
|
-
const user =
|
|
247
|
-
const programIdContext =
|
|
246
|
+
const user = K();
|
|
247
|
+
const programIdContext = z();
|
|
248
248
|
// Default to context, overriden by props
|
|
249
249
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
250
250
|
// If no program ID, shows all programs
|
|
@@ -266,17 +266,17 @@ function useReferralTable(props, emptyElement, loadingElement) {
|
|
|
266
266
|
loading: false,
|
|
267
267
|
page: 0,
|
|
268
268
|
});
|
|
269
|
-
const locale =
|
|
270
|
-
const { data: referrerResponse, loading: referrerLoading, refetch, } =
|
|
269
|
+
const locale = Q();
|
|
270
|
+
const { data: referrerResponse, loading: referrerLoading, refetch, } = En(GET_REFERRER_DATA, {
|
|
271
271
|
programId: programId === "classic" ? null : programId,
|
|
272
272
|
rewardFilter,
|
|
273
273
|
locale,
|
|
274
274
|
}, !props.showReferrer || !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
275
275
|
const referrerData = (_b = referrerResponse === null || referrerResponse === void 0 ? void 0 : referrerResponse.viewer) === null || _b === void 0 ? void 0 : _b.referredByReferral;
|
|
276
276
|
const showReferrerRow = props.showReferrer && !!(referrerData === null || referrerData === void 0 ? void 0 : referrerData.dateReferralStarted);
|
|
277
|
-
const { data: taxResponse, loading: taxLoading } =
|
|
277
|
+
const { data: taxResponse, loading: taxLoading } = En(GET_IMPACT_TAX, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
278
278
|
const taxConnection = (_c = taxResponse === null || taxResponse === void 0 ? void 0 : taxResponse.viewer) === null || _c === void 0 ? void 0 : _c.impactConnection;
|
|
279
|
-
const { envelope: referralData, states, callbacks, } =
|
|
279
|
+
const { envelope: referralData, states, callbacks, } = On(GET_REFERRAL_DATA, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.referrals; }, {
|
|
280
280
|
limit: props.perPage,
|
|
281
281
|
offset: 0,
|
|
282
282
|
}, {
|