@saasquatch/mint-components 1.12.1-1 → 1.12.1-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-88821c64.js → ShadowViewAddon-63b78308.js} +67 -137
- package/dist/cjs/{global-c3637175.js → global-02e50f09.js} +2 -2
- package/dist/cjs/{index.module-b8d9d0ba.js → index.module-df530553.js} +18 -55
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-5bde3d2e.js → re-render-1976e05e.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +61 -61
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +64 -69
- package/dist/cjs/sqm-checkbox-field-view-e0a31f2a.js +66 -0
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-invoice-table-view-a9133a11.js → sqm-invoice-table-view-e3b03a00.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-change-marketing.cjs.entry.js +223 -0
- package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-fde54e35.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -11
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +10 -10
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +54 -53
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/{useChildElements-410d2435.js → useChildElements-e0d44916.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-bbe746d1.js} +3 -3
- package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-a76adb0d.js} +9 -9
- package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-876ed65d.js} +2 -2
- package/dist/cjs/{utilities-f7de6c04.js → utilities-cec9dd36.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +6 -15
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +12 -42
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +39 -0
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +191 -0
- package/dist/collection/components/sqm-portal-change-marketing/usePortalChangeMarketing.js +114 -0
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +0 -4
- package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-272f75a5.js} +68 -137
- package/dist/esm/{global-6306a9b8.js → global-62554cef.js} +2 -2
- package/dist/esm/{index.module-6c840c4e.js → index.module-48f73e70.js} +3 -40
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-1bcfd0de.js → re-render-cb4d43dc.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 +62 -67
- package/dist/esm/sqm-checkbox-field-view-0ef58cb3.js +64 -0
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-invoice-table-view-71915a5e.js → sqm-invoice-table-view-41a14ca6.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +3 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-af40eedb.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-change-marketing.entry.js +219 -0
- package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-460bac1b.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +8 -8
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-4caa9f28.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +7 -7
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form.entry.js +7 -11
- package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
- package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +10 -10
- package/dist/esm/sqm-stencilbook.entry.js +49 -48
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/{useChildElements-fc84e640.js → useChildElements-a6b895dd.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-46a98499.js} +3 -3
- package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-6e8350db.js} +9 -9
- package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-de6b208e.js} +2 -2
- package/dist/esm/{utilities-443732be.js → utilities-e8022681.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-272f75a5.js +1 -0
- package/dist/esm-es5/{global-6306a9b8.js → global-62554cef.js} +2 -2
- package/dist/esm-es5/index.module-48f73e70.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-cb4d43dc.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-checkbox-field-view-0ef58cb3.js +1 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-71915a5e.js → sqm-invoice-table-view-41a14ca6.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 → sqm-navigation-sidebar-item-view-af40eedb.js} +1 -1
- 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-change-marketing.entry.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-460bac1b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-4caa9f28.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-fc84e640.js → useChildElements-a6b895dd.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-46a98499.js} +1 -1
- package/dist/esm-es5/{useReferralTable-f6ffa103.js → useReferralTable-6e8350db.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-de6b208e.js +1 -0
- package/dist/esm-es5/{utilities-443732be.js → utilities-e8022681.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-9e0230c3.entry.js → p-0068067d.entry.js} +1 -1
- package/dist/mint-components/p-018088cc.entry.js +13 -0
- package/dist/mint-components/{p-c3babfa4.system.entry.js → p-099c59cc.system.entry.js} +1 -1
- package/dist/mint-components/{p-4babe350.system.js → p-0f010c01.system.js} +1 -1
- package/dist/mint-components/{p-f531a5c9.system.entry.js → p-0f30148d.system.entry.js} +1 -1
- package/dist/mint-components/p-0f859e4e.entry.js +18 -0
- package/dist/mint-components/{p-36e9296e.system.entry.js → p-115edc43.system.entry.js} +1 -1
- package/dist/mint-components/{p-22425c71.system.entry.js → p-13976be9.system.entry.js} +1 -1
- package/dist/mint-components/p-175075e7.system.js +1 -0
- package/dist/mint-components/{p-83c9f37b.system.entry.js → p-1bb2fd65.system.entry.js} +1 -1
- package/dist/mint-components/{p-012daf3c.entry.js → p-1bdacfcb.entry.js} +1 -1
- package/dist/mint-components/{p-2816bf6a.js → p-1d803c85.js} +1 -1
- package/dist/mint-components/{p-17f56865.entry.js → p-1e0f4667.entry.js} +2 -2
- package/dist/mint-components/{p-8d554a89.system.js → p-1eb21821.system.js} +1 -1
- package/dist/mint-components/{p-51d53165.system.entry.js → p-215d9dce.system.entry.js} +1 -1
- package/dist/mint-components/{p-84b25a46.entry.js → p-23112de2.entry.js} +1 -1
- package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-2364eb2d.system.entry.js} +1 -1
- package/dist/mint-components/{p-88bf51b7.system.entry.js → p-275b2841.system.entry.js} +1 -1
- package/dist/mint-components/p-29023a9c.entry.js +1 -0
- package/dist/mint-components/{p-5becb2ff.system.js → p-2a2d4343.system.js} +1 -1
- package/dist/mint-components/{p-cb38b9b0.system.entry.js → p-30797093.system.entry.js} +1 -1
- package/dist/mint-components/p-30f84f8b.system.js +1 -0
- package/dist/mint-components/p-32642d34.js +1 -0
- package/dist/mint-components/{p-6c928c7d.entry.js → p-3b08cc52.entry.js} +1 -1
- package/dist/mint-components/{p-acd77a6e.entry.js → p-3fefb1f4.entry.js} +8 -8
- package/dist/mint-components/{p-1f7d7524.system.entry.js → p-44c3791a.system.entry.js} +1 -1
- package/dist/mint-components/p-481dedf2.system.js +1 -0
- package/dist/mint-components/p-48b07ec7.system.entry.js +1 -0
- package/dist/mint-components/{p-cb433855.system.entry.js → p-498c4ffd.system.entry.js} +1 -1
- package/dist/mint-components/p-4dcdf9b6.js +1 -0
- package/dist/mint-components/{p-0121e044.js → p-512089bb.js} +1 -1
- package/dist/mint-components/{p-f36e33ff.entry.js → p-513f79fb.entry.js} +2 -2
- package/dist/mint-components/p-52553737.system.entry.js +1 -0
- package/dist/mint-components/{p-03dbe2ce.entry.js → p-52acd113.entry.js} +1 -1
- package/dist/mint-components/{p-43621f12.system.js → p-57ea9c0b.system.js} +1 -1
- package/dist/mint-components/{p-a45b03d2.entry.js → p-59111d6c.entry.js} +1 -1
- package/dist/mint-components/{p-947fe79b.entry.js → p-5ab5131c.entry.js} +1 -1
- package/dist/mint-components/{p-4eae91a9.system.js → p-5da7c982.system.js} +1 -1
- package/dist/mint-components/{p-b8233366.entry.js → p-5de3473d.entry.js} +1 -1
- package/dist/mint-components/{p-94454880.entry.js → p-5f20200a.entry.js} +1 -1
- package/dist/mint-components/{p-f4cbbe47.entry.js → p-64b25dd9.entry.js} +1 -1
- package/dist/mint-components/{p-4e373c3d.system.js → p-66d09e59.system.js} +1 -1
- package/dist/mint-components/{p-e12d3414.system.entry.js → p-670d441e.system.entry.js} +1 -1
- package/dist/mint-components/{p-bc826117.system.entry.js → p-68160d49.system.entry.js} +1 -1
- package/dist/mint-components/{p-68747d88.js → p-6aed684b.js} +1 -1
- package/dist/mint-components/{p-fc422446.system.js → p-6f980faf.system.js} +1 -1
- package/dist/mint-components/p-711bb8da.entry.js +1 -0
- package/dist/mint-components/{p-cd44de66.system.js → p-74609159.system.js} +1 -1
- package/dist/mint-components/{p-4671e644.entry.js → p-74d012fc.entry.js} +1 -1
- package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-7726e4ea.system.entry.js} +1 -1
- package/dist/mint-components/{p-0893073b.entry.js → p-778b55a5.entry.js} +1 -1
- package/dist/mint-components/{p-9d34f4f0.entry.js → p-7ab32670.entry.js} +1 -1
- package/dist/mint-components/{p-11d1b212.js → p-7eabcffc.js} +1 -1
- package/dist/mint-components/p-804de0cf.system.entry.js +1 -0
- package/dist/mint-components/{p-9ec008cb.system.entry.js → p-83df7db2.system.entry.js} +1 -1
- package/dist/mint-components/p-8e3390b6.entry.js +1 -0
- package/dist/mint-components/{p-76392386.entry.js → p-902770d7.entry.js} +1 -1
- package/dist/mint-components/{p-f450654b.system.entry.js → p-92b08cb2.system.entry.js} +1 -1
- package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-94324315.system.entry.js} +1 -1
- package/dist/mint-components/{p-5cd917db.js → p-98602fa9.js} +1 -1
- package/dist/mint-components/{p-d468925f.entry.js → p-9982db11.entry.js} +1 -1
- package/dist/mint-components/{p-5291891c.entry.js → p-9a520e94.entry.js} +2 -2
- package/dist/mint-components/{p-59818690.system.entry.js → p-9aa177d6.system.entry.js} +1 -1
- package/dist/mint-components/p-9b4a99c4.js +1 -0
- package/dist/mint-components/{p-ac51940e.system.js → p-9bb9a767.system.js} +1 -1
- package/dist/mint-components/p-a178a449.system.js +1 -0
- package/dist/mint-components/p-a6b36268.system.js +1 -0
- package/dist/mint-components/p-b07a88fd.js +1 -0
- package/dist/mint-components/{p-bee1e573.entry.js → p-b169229a.entry.js} +1 -1
- package/dist/mint-components/{p-04348a9b.js → p-b348d95c.js} +1 -1
- package/dist/mint-components/p-b5b9f737.entry.js +1 -0
- package/dist/mint-components/{p-7dd1ff31.system.entry.js → p-b7324c0e.system.entry.js} +1 -1
- package/dist/mint-components/p-b86003f6.entry.js +1 -0
- package/dist/mint-components/{p-5fba1a04.system.entry.js → p-baca1c93.system.entry.js} +1 -1
- package/dist/mint-components/{p-0c9ad5f3.system.entry.js → p-bd6d9d54.system.entry.js} +1 -1
- package/dist/mint-components/{p-1d27da33.js → p-bda832b2.js} +2 -2
- package/dist/mint-components/{p-d83b0cf3.js → p-c4719154.js} +1 -1
- package/dist/mint-components/{p-d35d8c06.entry.js → p-c89c890e.entry.js} +2 -2
- package/dist/mint-components/{p-a4282d02.system.entry.js → p-c98cd85a.system.entry.js} +1 -1
- package/dist/mint-components/{p-3cb18382.system.js → p-ce5057f7.system.js} +1 -1
- package/dist/mint-components/p-cefffd56.system.entry.js +1 -0
- package/dist/mint-components/{p-0527d90b.system.entry.js → p-d71ec46e.system.entry.js} +1 -1
- package/dist/mint-components/p-da1b5388.system.entry.js +1 -0
- package/dist/mint-components/{p-e0e7635a.js → p-da1e21f2.js} +1 -1
- package/dist/mint-components/{p-b651706a.js → p-de0a29b2.js} +2 -2
- package/dist/mint-components/{p-fd21ae8f.entry.js → p-df2ada74.entry.js} +1 -1
- package/dist/mint-components/p-e169497d.entry.js +1 -0
- package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-f99765fe.system.entry.js} +1 -1
- package/dist/mint-components/{p-04ced592.system.entry.js → p-fc58dc2f.system.entry.js} +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +3 -9
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.d.ts +27 -0
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing.d.ts +35 -0
- package/dist/types/components/sqm-portal-change-marketing/usePortalChangeMarketing.d.ts +3 -0
- package/dist/types/components.d.ts +59 -15
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-65c8679e.js +0 -1
- package/dist/esm-es5/index.module-6c840c4e.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
- package/dist/mint-components/p-1279f7a3.system.entry.js +0 -1
- package/dist/mint-components/p-15a64357.entry.js +0 -13
- package/dist/mint-components/p-1b861be5.entry.js +0 -1
- package/dist/mint-components/p-2868f475.entry.js +0 -1
- package/dist/mint-components/p-6792c8d8.system.entry.js +0 -1
- package/dist/mint-components/p-93576222.system.js +0 -1
- package/dist/mint-components/p-99c15c5e.entry.js +0 -1
- package/dist/mint-components/p-a02afa72.system.js +0 -1
- package/dist/mint-components/p-b1e8a802.entry.js +0 -1
- package/dist/mint-components/p-b3e97f8a.system.entry.js +0 -1
- package/dist/mint-components/p-bdd6bb13.js +0 -1
- package/dist/mint-components/p-c3b37bbf.js +0 -1
- package/dist/mint-components/p-c92a743e.entry.js +0 -1
- package/dist/mint-components/p-c9fb6102.entry.js +0 -1
- package/dist/mint-components/p-ca809fdd.system.js +0 -1
- package/dist/mint-components/p-def516b8.system.js +0 -1
- package/dist/mint-components/p-f56348dc.system.entry.js +0 -1
- package/dist/mint-components/p-f655a7df.js +0 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-b0129cd6.js');
|
|
4
|
+
const global = require('./global-02e50f09.js');
|
|
5
|
+
const JSS = require('./JSS-8503a151.js');
|
|
6
|
+
|
|
7
|
+
const style = {
|
|
8
|
+
ErrorStyle: {
|
|
9
|
+
"&::part(control)": {
|
|
10
|
+
background: "var(--sl-color-danger-10)",
|
|
11
|
+
borderColor: "var(--sl-color-danger-500)",
|
|
12
|
+
outline: "var(--sl-color-danger-500)",
|
|
13
|
+
},
|
|
14
|
+
"&:host": {
|
|
15
|
+
"--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
ErrorMessageStyle: {
|
|
19
|
+
margin: 0,
|
|
20
|
+
marginTop: "5px",
|
|
21
|
+
color: "var(--sl-color-danger-500)",
|
|
22
|
+
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
23
|
+
fontFamily: "var(--sl-font-sans)",
|
|
24
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
25
|
+
},
|
|
26
|
+
FieldContainer: {
|
|
27
|
+
"margin-bottom": "var(--sl-spacing-large)",
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
const vanillaStyle = `
|
|
31
|
+
:host {
|
|
32
|
+
margin: 0 auto;
|
|
33
|
+
width: 100%;
|
|
34
|
+
display: block;
|
|
35
|
+
}
|
|
36
|
+
sl-checkbox::part(label){
|
|
37
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
38
|
+
font-weight: var(--sl-font-weight-normal);
|
|
39
|
+
line-height: 20px;
|
|
40
|
+
}
|
|
41
|
+
sl-checkbox::part(base){
|
|
42
|
+
align-items: start;
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
JSS.jss.setup(JSS.create());
|
|
46
|
+
const sheet = JSS.jss.createStyleSheet(style);
|
|
47
|
+
const styleString = sheet.toString();
|
|
48
|
+
function CheckboxFieldView(props) {
|
|
49
|
+
var _b, _c;
|
|
50
|
+
const { states, content, callbacks } = props;
|
|
51
|
+
return (index.h("div", { class: sheet.classes.FieldContainer, part: "sqm-base" },
|
|
52
|
+
index.h("style", { type: "text/css" },
|
|
53
|
+
vanillaStyle,
|
|
54
|
+
styleString),
|
|
55
|
+
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
56
|
+
e.target.value = e.target.checked;
|
|
57
|
+
callbacks.setChecked(e.target.value);
|
|
58
|
+
} }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), required: false }), global.intl.formatMessage({
|
|
59
|
+
id: content.checkboxName + "-message",
|
|
60
|
+
defaultMessage: content.checkboxLabel,
|
|
61
|
+
}, {
|
|
62
|
+
labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
63
|
+
}))));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
exports.CheckboxFieldView = CheckboxFieldView;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
require('./mixins-fe9d4112.js');
|
|
9
9
|
require('./JSS-8503a151.js');
|
|
10
10
|
const sqmCloseButtonView = require('./sqm-close-button-view-fd6e8f60.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index$1 = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
const index = require('./index-8c6255f5.js');
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ function matchPath(pattern, page) {
|
|
|
16
16
|
return regexp.exec(page);
|
|
17
17
|
}
|
|
18
18
|
function useContextRouter(props) {
|
|
19
|
-
const host = index_module.
|
|
19
|
+
const host = index_module._();
|
|
20
20
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
21
21
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
22
22
|
const context = props.contextName;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
require('./index.module-
|
|
7
|
+
const global = require('./global-02e50f09.js');
|
|
8
|
+
require('./index.module-df530553.js');
|
|
9
9
|
require('./JSS-8503a151.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const sqmPortalContainerView = require('./sqm-portal-container-view-990a85a3.js');
|
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
|
|
9
9
|
async function useGraphQLClientProvider({ domain }) {
|
|
10
|
-
const token = index_module.
|
|
10
|
+
const token = index_module.J();
|
|
11
11
|
const appDomain = domain;
|
|
12
|
-
const tenantAlias = index_module.
|
|
12
|
+
const tenantAlias = index_module.z();
|
|
13
13
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
14
|
-
const managedIdentityClient = index_module.
|
|
15
|
-
const [, setGraphQLClient] = stencilHooks_module.m(index_module
|
|
14
|
+
const managedIdentityClient = index_module.Ee(appDomain, tenantAlias, token);
|
|
15
|
+
const [, setGraphQLClient] = stencilHooks_module.m(index_module.Pe, managedIdentityClient);
|
|
16
16
|
stencilHooks_module.useEffect(() => {
|
|
17
17
|
setGraphQLClient(managedIdentityClient);
|
|
18
18
|
}, [managedIdentityClient]);
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
require('./jsonpointer-11327262.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
const emailRegistrationView = require('./email-registration-view-248652bb.js');
|
|
13
|
-
require('./useRegistrationFormState-
|
|
14
|
-
const useInstantAccessRegistration = require('./useInstantAccessRegistration-
|
|
13
|
+
require('./useRegistrationFormState-876ed65d.js');
|
|
14
|
+
const useInstantAccessRegistration = require('./useInstantAccessRegistration-bbe746d1.js');
|
|
15
15
|
|
|
16
16
|
const InstantAccessRegistration = class {
|
|
17
17
|
constructor(hostRef) {
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
const global = require('./global-02e50f09.js');
|
|
8
|
+
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
|
|
11
11
|
|
|
@@ -24,10 +24,10 @@ const GET_RANK = index_module.dist.gql `
|
|
|
24
24
|
`;
|
|
25
25
|
function useLeaderboardRank(props) {
|
|
26
26
|
var _a, _b, _c, _d;
|
|
27
|
-
const programIdContext = index_module.
|
|
27
|
+
const programIdContext = index_module.H();
|
|
28
28
|
// Default to context, overriden by props
|
|
29
29
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
30
|
-
const user = index_module.
|
|
30
|
+
const user = index_module.Q();
|
|
31
31
|
const rankVariables = programId
|
|
32
32
|
? {
|
|
33
33
|
type: props.leaderboardType,
|
|
@@ -40,7 +40,7 @@ function useLeaderboardRank(props) {
|
|
|
40
40
|
if (props.interval) {
|
|
41
41
|
rankVariables.filter["interval"] = props.interval;
|
|
42
42
|
}
|
|
43
|
-
const { data: rankData } = index_module.
|
|
43
|
+
const { data: rankData } = index_module.yn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
44
44
|
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? global.intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
45
45
|
rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
|
|
46
46
|
})
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
9
|
require('./JSS-8503a151.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
@@ -23,8 +23,8 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
23
23
|
`;
|
|
24
24
|
function useLogoutCurrentUser(props) {
|
|
25
25
|
var _a, _b;
|
|
26
|
-
const user = index_module.
|
|
27
|
-
const { loading, data } = index_module.
|
|
26
|
+
const user = index_module.Q();
|
|
27
|
+
const { loading, data } = index_module.yn(GET_USER_DETAILS, {}, !user);
|
|
28
28
|
const onSwitchClick = () => {
|
|
29
29
|
index_module.setUserIdentity(undefined);
|
|
30
30
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-df530553.js');
|
|
5
5
|
const mixins = require('./mixins-fe9d4112.js');
|
|
6
6
|
const JSS = require('./JSS-8503a151.js');
|
|
7
7
|
|
|
@@ -35,7 +35,7 @@ function NavigationSidebarItemView(props) {
|
|
|
35
35
|
const styleString = sheet.toString();
|
|
36
36
|
return (index.h("a", { part: "sqm-link", href: data.path, onClick: (e) => {
|
|
37
37
|
e.preventDefault();
|
|
38
|
-
index_module.
|
|
38
|
+
index_module.$n.push(data.path);
|
|
39
39
|
}, class: sheet.classes.ItemContainer },
|
|
40
40
|
index.h("style", { type: "text/css" }, styleString),
|
|
41
41
|
index.h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
|
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
9
|
require('./mixins-fe9d4112.js');
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
|
-
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-
|
|
12
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-a125ec5f.js');
|
|
13
13
|
|
|
14
14
|
function useNavigationSidebarItem(props) {
|
|
15
|
-
const currentPage = index_module.
|
|
15
|
+
const currentPage = index_module.Sn();
|
|
16
16
|
return {
|
|
17
17
|
states: {
|
|
18
18
|
active: currentPage.pathname === props.path,
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-921704fb.js');
|
|
9
9
|
|
|
10
10
|
const NavigationSidebar = class {
|
|
@@ -20,8 +20,8 @@ const NavigationSidebar = class {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
function useNavigationSidebar() {
|
|
23
|
-
const location = index_module.
|
|
24
|
-
const programId = index_module.
|
|
23
|
+
const location = index_module.Sn();
|
|
24
|
+
const programId = index_module.H();
|
|
25
25
|
const [checked, setChecked] = stencilHooks_module.useState(false);
|
|
26
26
|
// Close hamburger menu after navigation
|
|
27
27
|
stencilHooks_module.useEffect(() => {
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
9
|
const mixins = require('./mixins-fe9d4112.js');
|
|
10
10
|
const JSS = require('./JSS-8503a151.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
12
|
+
const useRegistrationFormState = require('./useRegistrationFormState-876ed65d.js');
|
|
13
13
|
|
|
14
14
|
var constants = {
|
|
15
15
|
error: {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
|
|
10
10
|
const PopupContainerView = (props) => {
|
|
@@ -18,10 +18,10 @@ const PopupContainerView = (props) => {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
function usePopupContainer(props) {
|
|
21
|
-
const engagementMedium = index_module.
|
|
21
|
+
const engagementMedium = index_module.B();
|
|
22
22
|
function closePopup() {
|
|
23
23
|
var _a;
|
|
24
|
-
if (index_module.
|
|
24
|
+
if (index_module.B() === "POPUP") {
|
|
25
25
|
(_a = window.frameElement["squatchJsApi"]) === null || _a === void 0 ? void 0 : _a.close();
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -35,7 +35,7 @@ function usePopupContainer(props) {
|
|
|
35
35
|
? "0"
|
|
36
36
|
: `var(--sl-spacing-${props.embedPadding})`
|
|
37
37
|
: "0";
|
|
38
|
-
const padding = index_module.
|
|
38
|
+
const padding = index_module.B() === "POPUP" ? popupPadding : embedPadding;
|
|
39
39
|
return {
|
|
40
40
|
states: {
|
|
41
41
|
showCloseButton: props.closeButton && engagementMedium === "POPUP",
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-b0129cd6.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
+
require('./global-02e50f09.js');
|
|
8
|
+
const index_module = require('./index.module-df530553.js');
|
|
9
|
+
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
|
+
const cjs = require('./cjs-1066ec21.js');
|
|
11
|
+
const JSS = require('./JSS-8503a151.js');
|
|
12
|
+
const utils = require('./utils-6847bc06.js');
|
|
13
|
+
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
14
|
+
const sqmCheckboxFieldView = require('./sqm-checkbox-field-view-e0a31f2a.js');
|
|
15
|
+
|
|
16
|
+
function PortalProfileView(props) {
|
|
17
|
+
const { states, callbacks } = props;
|
|
18
|
+
const { text, formState } = states;
|
|
19
|
+
const { error } = formState;
|
|
20
|
+
const style = {
|
|
21
|
+
Container: {
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
gap: "var(--sl-spacing-xxx-large)",
|
|
25
|
+
padding: "var(--sl-spacing-xxx-large)",
|
|
26
|
+
},
|
|
27
|
+
Error: {
|
|
28
|
+
"&::part(erroralert-base)": {
|
|
29
|
+
"margin-bottom": "15px",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
const sheet = JSS.createStyleSheet(style);
|
|
34
|
+
const styleString = sheet.toString();
|
|
35
|
+
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
36
|
+
index.h("style", { type: "text/css" }, styleString),
|
|
37
|
+
index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
|
|
38
|
+
index.h("sl-form", { "onSl-submit": callbacks.onSubmit },
|
|
39
|
+
index.h(sqmCheckboxFieldView.CheckboxFieldView, { states: {
|
|
40
|
+
checked: states.formState.marketingEmailOptIn,
|
|
41
|
+
}, content: {
|
|
42
|
+
checkboxLabel: text.marketingCheckboxLabel,
|
|
43
|
+
checkboxName: "marketingEmailOptIn",
|
|
44
|
+
}, callbacks: {
|
|
45
|
+
setChecked: callbacks.setChecked,
|
|
46
|
+
} }),
|
|
47
|
+
index.h("sl-button", { type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
|
|
48
|
+
error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
|
|
49
|
+
index.h("div", { part: "erroralert-text" }, error))))));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const GET_USER = index_module.dist.gql `
|
|
53
|
+
query {
|
|
54
|
+
viewer {
|
|
55
|
+
... on User {
|
|
56
|
+
id
|
|
57
|
+
accountId
|
|
58
|
+
marketingEmailOptIn
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
const UPSERT_USER = index_module.dist.gql `
|
|
64
|
+
mutation ($userInput: UserInput!) {
|
|
65
|
+
upsertUser(userInput: $userInput) {
|
|
66
|
+
id
|
|
67
|
+
marketingEmailOptIn
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
71
|
+
// view doesn't tolerate undefined, even when we're loading
|
|
72
|
+
const defaultFormState = {
|
|
73
|
+
marketingEmailOptIn: false,
|
|
74
|
+
errors: {},
|
|
75
|
+
error: "",
|
|
76
|
+
};
|
|
77
|
+
function usePortalProfile(props) {
|
|
78
|
+
const userIdent = index_module.Q();
|
|
79
|
+
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
80
|
+
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
81
|
+
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
82
|
+
const userDataResponse = index_module.yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
83
|
+
const [upsertUser, upsertUserResponse] = index_module.$e(UPSERT_USER);
|
|
84
|
+
stencilHooks_module.useEffect(() => {
|
|
85
|
+
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
86
|
+
return;
|
|
87
|
+
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) {
|
|
88
|
+
setFormState((state) => {
|
|
89
|
+
var _a, _b, _c;
|
|
90
|
+
return ({
|
|
91
|
+
...state,
|
|
92
|
+
error: (_c = (_b = (_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0].message,
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
setUserData((state) => {
|
|
98
|
+
var _a;
|
|
99
|
+
return ({
|
|
100
|
+
...state,
|
|
101
|
+
...(_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.data) === null || _a === void 0 ? void 0 : _a.upsertUser,
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.data)
|
|
105
|
+
setSuccess(true);
|
|
106
|
+
}
|
|
107
|
+
}, [upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading]);
|
|
108
|
+
stencilHooks_module.useEffect(() => {
|
|
109
|
+
var _a, _b;
|
|
110
|
+
setUserData((data) => { var _a; return ({ ...data, ...(_a = userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer }); });
|
|
111
|
+
setFormState({
|
|
112
|
+
...defaultFormState,
|
|
113
|
+
...(_a = userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer,
|
|
114
|
+
...(_b = upsertUserResponse.data) === null || _b === void 0 ? void 0 : _b.upsertUser,
|
|
115
|
+
});
|
|
116
|
+
}, [userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data]);
|
|
117
|
+
stencilHooks_module.useEffect(() => {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
if ((_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) === null || _a === void 0 ? void 0 : _a.message) {
|
|
120
|
+
setFormState({
|
|
121
|
+
...(_b = userDataResponse.data) === null || _b === void 0 ? void 0 : _b.viewer,
|
|
122
|
+
error: props.networkRequestMessage,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}, [upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors]);
|
|
126
|
+
const onSubmit = (event) => {
|
|
127
|
+
var _a;
|
|
128
|
+
setSuccess(false);
|
|
129
|
+
const formData = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.formData;
|
|
130
|
+
formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
|
|
131
|
+
jsonpointer.jsonpointer.set(formData, key, value);
|
|
132
|
+
});
|
|
133
|
+
upsertUser({
|
|
134
|
+
userInput: {
|
|
135
|
+
id: userIdent === null || userIdent === void 0 ? void 0 : userIdent.id,
|
|
136
|
+
accountId: userIdent === null || userIdent === void 0 ? void 0 : userIdent.accountId,
|
|
137
|
+
marketingEmailOptIn: formData.marketingEmailOptIn,
|
|
138
|
+
},
|
|
139
|
+
});
|
|
140
|
+
setFormState((s) => ({ ...s, errors: {}, error: "" }));
|
|
141
|
+
return;
|
|
142
|
+
};
|
|
143
|
+
return {
|
|
144
|
+
states: {
|
|
145
|
+
success,
|
|
146
|
+
loading: (userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.loading) || upsertUserResponse.loading,
|
|
147
|
+
submitDisabled: false,
|
|
148
|
+
formState,
|
|
149
|
+
user: userData,
|
|
150
|
+
text: {
|
|
151
|
+
emailPreferencesHeader: props.emailPreferencesHeader,
|
|
152
|
+
marketingCheckboxLabel: props.marketingCheckboxLabel,
|
|
153
|
+
submitChangeButtonText: props.submitChangeButtonText,
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
callbacks: {
|
|
157
|
+
onSubmit,
|
|
158
|
+
setChecked: (value) => setFormState({ ...formState, marketingEmailOptIn: value }),
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const PortalChangeMarketing = class {
|
|
164
|
+
constructor(hostRef) {
|
|
165
|
+
index.registerInstance(this, hostRef);
|
|
166
|
+
this.ignored = true;
|
|
167
|
+
/**
|
|
168
|
+
* @uiName Email preferences header
|
|
169
|
+
*/
|
|
170
|
+
this.emailPreferencesHeader = "Email preferences";
|
|
171
|
+
/**
|
|
172
|
+
* @uiName Marketing checkbox label
|
|
173
|
+
*/
|
|
174
|
+
this.marketingCheckboxLabel = "I want to receive marketing emails and promotions for this referral program from impact.com";
|
|
175
|
+
/**
|
|
176
|
+
* @uiName Submit changes button text
|
|
177
|
+
*/
|
|
178
|
+
this.submitChangeButtonText = "Save";
|
|
179
|
+
/**
|
|
180
|
+
* @uiName Network request error message
|
|
181
|
+
* Displayed when the page fails to load due to a network error. The participant can try refreshing the page.
|
|
182
|
+
*/
|
|
183
|
+
this.networkRequestMessage = "An error occurred while loading this page. Please refresh the page.";
|
|
184
|
+
stencilHooks_module.h$1(this);
|
|
185
|
+
}
|
|
186
|
+
disconnectedCallback() { }
|
|
187
|
+
render() {
|
|
188
|
+
const props = index_module.isDemo()
|
|
189
|
+
? usePortalProfileDemo(utils.getProps(this))
|
|
190
|
+
: usePortalProfile(utils.getProps(this));
|
|
191
|
+
return index.h(PortalProfileView, Object.assign({}, props));
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
function usePortalProfileDemo(props) {
|
|
195
|
+
return cjs.cjs({
|
|
196
|
+
states: {
|
|
197
|
+
success: false,
|
|
198
|
+
loading: false,
|
|
199
|
+
submitDisabled: false,
|
|
200
|
+
user: {
|
|
201
|
+
id: "01",
|
|
202
|
+
accountId: "111100000",
|
|
203
|
+
marketingEmailOptIn: false,
|
|
204
|
+
},
|
|
205
|
+
text: {
|
|
206
|
+
emailPreferencesHeader: props.emailPreferencesHeader,
|
|
207
|
+
marketingCheckboxLabel: props.marketingCheckboxLabel,
|
|
208
|
+
submitChangeButtonText: props.submitChangeButtonText,
|
|
209
|
+
},
|
|
210
|
+
formState: {
|
|
211
|
+
marketingEmailOptIn: false,
|
|
212
|
+
errors: null,
|
|
213
|
+
error: "",
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
callbacks: {
|
|
217
|
+
onSubmit: (e) => console.log(e),
|
|
218
|
+
setChecked: () => { },
|
|
219
|
+
},
|
|
220
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
exports.sqm_portal_change_marketing = PortalChangeMarketing;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
|
-
const global = require('./global-
|
|
4
|
+
const global = require('./global-02e50f09.js');
|
|
5
5
|
const mixins = require('./mixins-fe9d4112.js');
|
|
6
6
|
const JSS = require('./JSS-8503a151.js');
|
|
7
7
|
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
@@ -4,21 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
require('./global-02e50f09.js');
|
|
8
|
+
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
13
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
13
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-292b5bf4.js');
|
|
14
14
|
|
|
15
15
|
function usePortalEmailVerification(props) {
|
|
16
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
17
|
-
const [request, { loading, data, errors }] = index_module.
|
|
18
|
-
const [getVerificationStatus, { data: user, loading: loadingVerification }] = index_module.
|
|
19
|
-
const userIdent = index_module.
|
|
17
|
+
const [request, { loading, data, errors }] = index_module.ln();
|
|
18
|
+
const [getVerificationStatus, { data: user, loading: loadingVerification }] = index_module.nn();
|
|
19
|
+
const userIdent = index_module.Q();
|
|
20
20
|
const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
|
|
21
|
-
const urlParams = new URLSearchParams(index_module.
|
|
21
|
+
const urlParams = new URLSearchParams(index_module.$n.location.search);
|
|
22
22
|
const nextPage = urlParams.get("nextPage");
|
|
23
23
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
24
24
|
const [error, setError] = stencilHooks_module.useState("");
|
|
@@ -48,7 +48,7 @@ function usePortalEmailVerification(props) {
|
|
|
48
48
|
const data = (await getVerificationStatus());
|
|
49
49
|
if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
50
50
|
clearInterval(timerRef.current);
|
|
51
|
-
return index_module.
|
|
51
|
+
return index_module.$n.push({
|
|
52
52
|
pathname: props.redirectPath,
|
|
53
53
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
54
54
|
});
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
@@ -16,8 +16,8 @@ function usePortalForgotPassword(props) {
|
|
|
16
16
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
17
17
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
18
18
|
const [error, setError] = stencilHooks_module.useState("");
|
|
19
|
-
const [request, { loading, data, errors }] = index_module.
|
|
20
|
-
const urlParams = new URLSearchParams(index_module.
|
|
19
|
+
const [request, { loading, data, errors }] = index_module.un();
|
|
20
|
+
const urlParams = new URLSearchParams(index_module.$n.location.search);
|
|
21
21
|
const nextPage = urlParams.get("nextPage");
|
|
22
22
|
const submit = async (event) => {
|
|
23
23
|
var _a;
|
|
@@ -106,7 +106,7 @@ const PortalForgotPassword = class {
|
|
|
106
106
|
? usePortalForgotPasswordDemo(this)
|
|
107
107
|
: usePortalForgotPassword(this);
|
|
108
108
|
const content = {
|
|
109
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
109
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.$n.push(states.loginPath) }, this.loginText))),
|
|
110
110
|
messageSlot: index.h("slot", { name: "messageSlot" }, this.headerText),
|
|
111
111
|
emailLabel: this.emailLabel,
|
|
112
112
|
submitLabel: this.submitLabel,
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
|
|
9
9
|
function usePortalLogout({ nextPage }) {
|
|
10
10
|
index_module.setUserIdentity(undefined);
|
|
11
|
-
index_module.
|
|
11
|
+
index_module.$n.push({ pathname: nextPage, search: "" });
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
const PortalLogout = class {
|
package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-fde54e35.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
|
-
const global = require('./global-
|
|
4
|
+
const global = require('./global-02e50f09.js');
|
|
5
5
|
const JSS = require('./JSS-8503a151.js');
|
|
6
6
|
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
7
7
|
|