@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
|
@@ -4,19 +4,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
const global = require('./global-02e50f09.js');
|
|
8
|
+
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
13
|
const GenericTableView = require('./GenericTableView-80d7642e.js');
|
|
14
|
-
const reRender = require('./re-render-
|
|
15
|
-
const useChildElements = require('./useChildElements-
|
|
14
|
+
const reRender = require('./re-render-1976e05e.js');
|
|
15
|
+
const useChildElements = require('./useChildElements-e0d44916.js');
|
|
16
16
|
const luxon = require('./luxon-05098e19.js');
|
|
17
|
-
const useReferralTable = require('./useReferralTable-
|
|
17
|
+
const useReferralTable = require('./useReferralTable-a76adb0d.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
19
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-e3b03a00.js');
|
|
20
20
|
|
|
21
21
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
22
22
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -960,15 +960,15 @@ function parseImpactThreshold(threshold) {
|
|
|
960
960
|
}
|
|
961
961
|
function useBankingInfoForm(props) {
|
|
962
962
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
963
|
-
const locale = index_module.
|
|
964
|
-
const user = index_module.
|
|
965
|
-
const [step, setStep] = index_module.
|
|
966
|
-
const context = index_module.
|
|
967
|
-
const countries = index_module.
|
|
963
|
+
const locale = index_module.L();
|
|
964
|
+
const user = index_module.Q();
|
|
965
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
966
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
967
|
+
const countries = index_module.In(SORTED_COUNTRIES_NAMESPACE);
|
|
968
968
|
const formRef = stencilHooks_module.useRef(null);
|
|
969
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.
|
|
970
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
971
|
-
const [saveWithdrawalSettings] = index_module
|
|
969
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.Mn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
970
|
+
const { data: userData, refetch, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
971
|
+
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
972
972
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
973
973
|
const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
|
|
974
974
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -1536,7 +1536,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1536
1536
|
const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
|
|
1537
1537
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1538
1538
|
const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
|
|
1539
|
-
const setStep = index_module.
|
|
1539
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
1540
1540
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1541
1541
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1542
1542
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1654,13 +1654,13 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1654
1654
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1655
1655
|
function useDocusignForm(props) {
|
|
1656
1656
|
var _a, _b, _c;
|
|
1657
|
-
const user = index_module.
|
|
1658
|
-
const context = index_module.
|
|
1659
|
-
const [step, setStep] = index_module.
|
|
1660
|
-
const { data, loading: userLoading, refetch, } = index_module.
|
|
1657
|
+
const user = index_module.Q();
|
|
1658
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1659
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
1660
|
+
const { data, loading: userLoading, refetch, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
1661
1661
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
1662
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module
|
|
1663
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module
|
|
1662
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
1663
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
1664
1664
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
1665
1665
|
const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
|
|
1666
1666
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
@@ -2195,7 +2195,7 @@ const DocusignForm = class {
|
|
|
2195
2195
|
get el() { return index.getElement(this); }
|
|
2196
2196
|
};
|
|
2197
2197
|
function useDocusignFormDemo(props) {
|
|
2198
|
-
const setStep = index_module.
|
|
2198
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
2199
2199
|
return cjs.cjs({
|
|
2200
2200
|
text: props.getTextProps(),
|
|
2201
2201
|
states: {
|
|
@@ -2465,15 +2465,15 @@ function getOption(countries, countryCode) {
|
|
|
2465
2465
|
}
|
|
2466
2466
|
function useIndirectTaxForm(props) {
|
|
2467
2467
|
var _a, _b, _c, _d, _e;
|
|
2468
|
-
const user = index_module.
|
|
2469
|
-
const locale = index_module.
|
|
2468
|
+
const user = index_module.Q();
|
|
2469
|
+
const locale = index_module.L();
|
|
2470
2470
|
const formRef = stencilHooks_module.useRef(null);
|
|
2471
|
-
const context = index_module.
|
|
2472
|
-
const [step, setStep] = index_module.
|
|
2473
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module
|
|
2474
|
-
const userForm = index_module.
|
|
2475
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
2476
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.
|
|
2471
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2472
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
2473
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2474
|
+
const userForm = index_module.In(USER_FORM_CONTEXT_NAMESPACE);
|
|
2475
|
+
const { data: userData, refetch, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
2476
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.Mn(COUNTRIES_QUERY_NAMESPACE);
|
|
2477
2477
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2478
2478
|
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2479
2479
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -2862,7 +2862,7 @@ const IndirectTaxForm = class {
|
|
|
2862
2862
|
}
|
|
2863
2863
|
};
|
|
2864
2864
|
function useDemoIndirectTaxForm(props) {
|
|
2865
|
-
const setStep = index_module.
|
|
2865
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
2866
2866
|
const [option, setOption] = stencilHooks_module.useState(null);
|
|
2867
2867
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2868
2868
|
return cjs.cjs({
|
|
@@ -2972,8 +2972,8 @@ const GET_INVOICES = index_module.dist.gql `
|
|
|
2972
2972
|
`;
|
|
2973
2973
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
2974
2974
|
var _a;
|
|
2975
|
-
const user = index_module.
|
|
2976
|
-
const locale = index_module.
|
|
2975
|
+
const user = index_module.Q();
|
|
2976
|
+
const locale = index_module.L();
|
|
2977
2977
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
2978
2978
|
...state,
|
|
2979
2979
|
...next,
|
|
@@ -2983,7 +2983,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
2983
2983
|
loading: false,
|
|
2984
2984
|
page: 0,
|
|
2985
2985
|
});
|
|
2986
|
-
const { envelope: invoicesData, states, callbacks, } = index_module.
|
|
2986
|
+
const { envelope: invoicesData, states, callbacks, } = index_module.kn(GET_INVOICES, (data) => { var _a, _b, _c; return (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.invoices; }, {
|
|
2987
2987
|
limit: props.perPage,
|
|
2988
2988
|
offset: 0,
|
|
2989
2989
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3549,7 +3549,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3549
3549
|
|
|
3550
3550
|
function usePayoutDetailsCard(props) {
|
|
3551
3551
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3552
|
-
const { data, loading } = index_module.
|
|
3552
|
+
const { data, loading } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
3553
3553
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
3554
3554
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3555
3555
|
var _a;
|
|
@@ -3738,21 +3738,21 @@ function getCurrentStep(user) {
|
|
|
3738
3738
|
}
|
|
3739
3739
|
function useTaxAndCash() {
|
|
3740
3740
|
var _a, _b, _c, _d, _e;
|
|
3741
|
-
const host = index_module.
|
|
3742
|
-
const user = index_module.
|
|
3743
|
-
const locale = index_module.
|
|
3741
|
+
const host = index_module._();
|
|
3742
|
+
const user = index_module.Q();
|
|
3743
|
+
const locale = index_module.L();
|
|
3744
3744
|
// State for current step of form
|
|
3745
|
-
const [step, setStep] = index_module.
|
|
3745
|
+
const [step, setStep] = index_module.Cn({
|
|
3746
3746
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3747
3747
|
initialValue: "/loading",
|
|
3748
3748
|
});
|
|
3749
3749
|
// State for when to hide steps, or override certain actions
|
|
3750
|
-
const [context, _setContext] = index_module.
|
|
3750
|
+
const [context, _setContext] = index_module.Cn({
|
|
3751
3751
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3752
3752
|
initialValue: {},
|
|
3753
3753
|
});
|
|
3754
3754
|
// State to carry user form information into step 2
|
|
3755
|
-
const [userFormContext, _setUserFormContext] = index_module.
|
|
3755
|
+
const [userFormContext, _setUserFormContext] = index_module.Cn({
|
|
3756
3756
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3757
3757
|
initialValue: {
|
|
3758
3758
|
firstName: undefined,
|
|
@@ -3762,19 +3762,19 @@ function useTaxAndCash() {
|
|
|
3762
3762
|
currency: undefined,
|
|
3763
3763
|
},
|
|
3764
3764
|
});
|
|
3765
|
-
const [_currenciesContext, setCurrenciesContext] = index_module.
|
|
3765
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.Cn({
|
|
3766
3766
|
namespace: CURRENCIES_NAMESPACE,
|
|
3767
3767
|
initialValue: [],
|
|
3768
3768
|
});
|
|
3769
|
-
const [_countriesContext, _setCountriesContext] = index_module.
|
|
3769
|
+
const [_countriesContext, _setCountriesContext] = index_module.Cn({
|
|
3770
3770
|
namespace: COUNTRIES_NAMESPACE,
|
|
3771
3771
|
initialValue: [],
|
|
3772
3772
|
});
|
|
3773
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.
|
|
3773
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.Cn({
|
|
3774
3774
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3775
3775
|
initialValue: [],
|
|
3776
3776
|
});
|
|
3777
|
-
const { data, errors } = index_module.
|
|
3777
|
+
const { data, errors } = index_module.Fn({
|
|
3778
3778
|
namespace: USER_QUERY_NAMESPACE,
|
|
3779
3779
|
query: GET_USER,
|
|
3780
3780
|
skip: !user,
|
|
@@ -3784,12 +3784,12 @@ function useTaxAndCash() {
|
|
|
3784
3784
|
});
|
|
3785
3785
|
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
3786
3786
|
userFormContext.countryCode;
|
|
3787
|
-
index_module.
|
|
3787
|
+
index_module.Fn({
|
|
3788
3788
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3789
3789
|
query: GET_COUNTRIES,
|
|
3790
3790
|
skip: !user,
|
|
3791
3791
|
});
|
|
3792
|
-
const { data: financeNetworkData, refetch } = index_module.
|
|
3792
|
+
const { data: financeNetworkData, refetch } = index_module.Fn({
|
|
3793
3793
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3794
3794
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3795
3795
|
skip: !user,
|
|
@@ -3797,7 +3797,7 @@ function useTaxAndCash() {
|
|
|
3797
3797
|
filter: getFinanceNetworkFilter(),
|
|
3798
3798
|
},
|
|
3799
3799
|
});
|
|
3800
|
-
const { data: currenciesData } = index_module.
|
|
3800
|
+
const { data: currenciesData } = index_module.Fn({
|
|
3801
3801
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3802
3802
|
query: GET_CURRENCIES,
|
|
3803
3803
|
skip: !user,
|
|
@@ -3878,7 +3878,7 @@ function useTaxAndCash() {
|
|
|
3878
3878
|
step,
|
|
3879
3879
|
setStep,
|
|
3880
3880
|
context,
|
|
3881
|
-
namespace: index_module
|
|
3881
|
+
namespace: index_module.Pn(TAX_CONTEXT_NAMESPACE),
|
|
3882
3882
|
loading: step === "/loading",
|
|
3883
3883
|
};
|
|
3884
3884
|
}
|
|
@@ -4824,7 +4824,7 @@ const TaxAndCashMonolith = class {
|
|
|
4824
4824
|
}
|
|
4825
4825
|
};
|
|
4826
4826
|
function useDemoTaxAndCash(props) {
|
|
4827
|
-
const [step, setStep] = index_module.
|
|
4827
|
+
const [step, setStep] = index_module.Cn({
|
|
4828
4828
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4829
4829
|
initialValue: "/1",
|
|
4830
4830
|
});
|
|
@@ -5186,15 +5186,15 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5186
5186
|
}
|
|
5187
5187
|
const useTaxAndCashDashboard = (props) => {
|
|
5188
5188
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5189
|
-
const setStep = index_module.
|
|
5190
|
-
const setContext = index_module.
|
|
5189
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
5190
|
+
const setContext = index_module.wn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5191
5191
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
5192
|
-
const locale = index_module.
|
|
5192
|
+
const locale = index_module.L();
|
|
5193
5193
|
stencilHooks_module.useEffect(() => {
|
|
5194
5194
|
// Clear override context once on submitted
|
|
5195
5195
|
setContext({});
|
|
5196
5196
|
}, []);
|
|
5197
|
-
const { data, loading, errors: userError, } = index_module.
|
|
5197
|
+
const { data, loading, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
5198
5198
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
5199
5199
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5200
5200
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -6831,12 +6831,12 @@ function useUserInfoForm(props) {
|
|
|
6831
6831
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
6832
6832
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
6833
6833
|
const formRef = stencilHooks_module.useRef(null);
|
|
6834
|
-
const context = index_module.
|
|
6835
|
-
const countries = index_module.
|
|
6836
|
-
const [step, setStep] = index_module.
|
|
6837
|
-
const [userFormContext, setUserFormContext] = index_module.
|
|
6838
|
-
const { data, loading, errors: userError, } = index_module.
|
|
6839
|
-
const _currencies = index_module.
|
|
6834
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6835
|
+
const countries = index_module.In(SORTED_COUNTRIES_NAMESPACE);
|
|
6836
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
6837
|
+
const [userFormContext, setUserFormContext] = index_module.bn(USER_FORM_CONTEXT_NAMESPACE);
|
|
6838
|
+
const { data, loading, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
6839
|
+
const _currencies = index_module.In(CURRENCIES_NAMESPACE);
|
|
6840
6840
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6841
6841
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
6842
6842
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -7197,7 +7197,7 @@ const TaxForm = class {
|
|
|
7197
7197
|
}
|
|
7198
7198
|
};
|
|
7199
7199
|
function useDemoUserInfoForm(props) {
|
|
7200
|
-
const setStep = index_module.
|
|
7200
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
7201
7201
|
return cjs.cjs({
|
|
7202
7202
|
setStep,
|
|
7203
7203
|
onSubmit: () => {
|
|
@@ -4,22 +4,23 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
const global = require('./global-02e50f09.js');
|
|
8
|
+
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
const reRender = require('./re-render-
|
|
14
|
-
const useChildElements = require('./useChildElements-
|
|
13
|
+
const reRender = require('./re-render-1976e05e.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-e0d44916.js');
|
|
15
15
|
require('./luxon-05098e19.js');
|
|
16
16
|
const utils = require('./utils-6847bc06.js');
|
|
17
17
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
18
18
|
const index$1 = require('./index-8c6255f5.js');
|
|
19
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
20
|
-
const
|
|
19
|
+
const useRegistrationFormState = require('./useRegistrationFormState-876ed65d.js');
|
|
20
|
+
const sqmCheckboxFieldView = require('./sqm-checkbox-field-view-e0a31f2a.js');
|
|
21
|
+
const utilities = require('./utilities-cec9dd36.js');
|
|
21
22
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
22
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
23
|
+
const ShadowViewAddon = require('./ShadowViewAddon-63b78308.js');
|
|
23
24
|
require('./sqm-portal-container-view-990a85a3.js');
|
|
24
25
|
|
|
25
26
|
const BigStat = class {
|
|
@@ -39,7 +40,7 @@ const BigStat = class {
|
|
|
39
40
|
render() {
|
|
40
41
|
var _a;
|
|
41
42
|
const { props, label } = index_module.isDemo() ? ShadowViewAddon.useDemoBigStat(this) : ShadowViewAddon.useBigStat(this);
|
|
42
|
-
const host = index_module.
|
|
43
|
+
const host = index_module._();
|
|
43
44
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
44
45
|
const labelSlot = index.h("slot", { name: "label" }, hasLabel ? index.h("slot", null) : label);
|
|
45
46
|
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -160,7 +161,7 @@ const styleString = sheet.toString();
|
|
|
160
161
|
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
161
162
|
if (!missingProps)
|
|
162
163
|
return false;
|
|
163
|
-
const host = index_module.
|
|
164
|
+
const host = index_module._();
|
|
164
165
|
const [detailsOpen, setDetailsOpen] = stencilHooks_module.useState(false);
|
|
165
166
|
return (index.h("sl-alert", { type: "danger", open: true },
|
|
166
167
|
index.h("style", { type: "text/css" }, styleString),
|
|
@@ -255,7 +256,7 @@ const CheckboxField = class {
|
|
|
255
256
|
const { states, callbacks } = index_module.isDemo()
|
|
256
257
|
? useCheckboxFieldDemo(this)
|
|
257
258
|
: useCheckboxField(this);
|
|
258
|
-
return (index.h(
|
|
259
|
+
return (index.h(sqmCheckboxFieldView.CheckboxFieldView, { states: states, content: content, callbacks: callbacks }));
|
|
259
260
|
}
|
|
260
261
|
};
|
|
261
262
|
function useCheckboxFieldDemo(props) {
|
|
@@ -302,11 +303,11 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
302
303
|
`;
|
|
303
304
|
function useCouponCode(props) {
|
|
304
305
|
var _a, _b, _c;
|
|
305
|
-
const user = index_module.
|
|
306
|
-
const programId = index_module.
|
|
307
|
-
const engagementMedium = index_module.
|
|
308
|
-
const [sendLoadEvent] = index_module
|
|
309
|
-
const { data, loading, refetch, errors } = index_module.
|
|
306
|
+
const user = index_module.Q();
|
|
307
|
+
const programId = index_module.H();
|
|
308
|
+
const engagementMedium = index_module.B();
|
|
309
|
+
const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT);
|
|
310
|
+
const { data, loading, refetch, errors } = index_module.yn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
310
311
|
const getStatus = (reward) => {
|
|
311
312
|
if (!reward || !reward.statuses)
|
|
312
313
|
return "ERROR";
|
|
@@ -696,13 +697,13 @@ const defaultFormState = {
|
|
|
696
697
|
error: "",
|
|
697
698
|
};
|
|
698
699
|
function useEditProfile(props) {
|
|
699
|
-
const userIdent = index_module.
|
|
700
|
+
const userIdent = index_module.Q();
|
|
700
701
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
701
702
|
const [error, setError] = stencilHooks_module.useState("");
|
|
702
703
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
703
704
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
704
|
-
const userDataResponse = index_module.
|
|
705
|
-
const [upsertUser, upsertUserResponse] = index_module
|
|
705
|
+
const userDataResponse = index_module.yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
706
|
+
const [upsertUser, upsertUserResponse] = index_module.$e(UPSERT_USER);
|
|
706
707
|
stencilHooks_module.useEffect(() => {
|
|
707
708
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
708
709
|
return;
|
|
@@ -1341,11 +1342,11 @@ const GET_RANK_WITHOUT_NAMES = index_module.dist.gql `
|
|
|
1341
1342
|
`;
|
|
1342
1343
|
function useLeaderboard(props) {
|
|
1343
1344
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1344
|
-
const programIdContext = index_module.
|
|
1345
|
+
const programIdContext = index_module.H();
|
|
1345
1346
|
// Default to context, overriden by props
|
|
1346
1347
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1347
|
-
const user = index_module.
|
|
1348
|
-
const locale = index_module.
|
|
1348
|
+
const user = index_module.Q();
|
|
1349
|
+
const locale = index_module.L();
|
|
1349
1350
|
const variables = programId
|
|
1350
1351
|
? {
|
|
1351
1352
|
type: props.leaderboardType,
|
|
@@ -1364,8 +1365,8 @@ function useLeaderboard(props) {
|
|
|
1364
1365
|
if (props.maxRows > 0) {
|
|
1365
1366
|
variables["limit"] = props.maxRows;
|
|
1366
1367
|
}
|
|
1367
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = index_module.
|
|
1368
|
-
const { data: rankData } = index_module.
|
|
1368
|
+
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = index_module.yn(props.hideNames ? GET_LEADERBOARD_WITHOUT_NAMES : GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
|
|
1369
|
+
const { data: rankData } = index_module.yn(props.hideNames ? GET_RANK_WITHOUT_NAMES : GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1369
1370
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1370
1371
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1371
1372
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1607,21 +1608,15 @@ const MarketingEmailsCheckbox = class {
|
|
|
1607
1608
|
constructor(hostRef) {
|
|
1608
1609
|
index.registerInstance(this, hostRef);
|
|
1609
1610
|
this.ignored = true;
|
|
1610
|
-
/**
|
|
1611
|
-
* This name is used as the key for this form field on submission. The name must be unique within this specific form.
|
|
1612
|
-
* @uiName Checkbox name attribute
|
|
1613
|
-
* @required
|
|
1614
|
-
*/
|
|
1615
|
-
this.checkboxName = "marketingEmails";
|
|
1616
1611
|
/**
|
|
1617
1612
|
* @uiName Checkbox label
|
|
1618
1613
|
* @uiWidget textArea
|
|
1619
1614
|
*/
|
|
1620
1615
|
this.checkboxLabel = "I would like to receive marketing and promotional emails for this referral program";
|
|
1621
1616
|
/**
|
|
1622
|
-
* @
|
|
1617
|
+
* @undocumented
|
|
1623
1618
|
*/
|
|
1624
|
-
this.
|
|
1619
|
+
this.checkboxName = "marketingEmailOptIn";
|
|
1625
1620
|
stencilHooks_module.h$1(this);
|
|
1626
1621
|
}
|
|
1627
1622
|
disconnectedCallback() { }
|
|
@@ -1632,7 +1627,7 @@ const MarketingEmailsCheckbox = class {
|
|
|
1632
1627
|
const { states, callbacks } = index_module.isDemo()
|
|
1633
1628
|
? useCheckboxFieldDemo$1(this)
|
|
1634
1629
|
: useCheckboxField(this);
|
|
1635
|
-
return (index.h(
|
|
1630
|
+
return (index.h(sqmCheckboxFieldView.CheckboxFieldView, { states: states, content: content, callbacks: callbacks }));
|
|
1636
1631
|
}
|
|
1637
1632
|
};
|
|
1638
1633
|
function useCheckboxFieldDemo$1(props) {
|
|
@@ -1707,12 +1702,12 @@ function NavigationMenuView(props) {
|
|
|
1707
1702
|
}
|
|
1708
1703
|
|
|
1709
1704
|
function handleMenu(e) {
|
|
1710
|
-
index_module.
|
|
1705
|
+
index_module.$n.push(e.detail.item.value);
|
|
1711
1706
|
}
|
|
1712
1707
|
function useNavigationMenu(props) {
|
|
1713
1708
|
const ref = stencilHooks_module.useRef();
|
|
1714
|
-
const [, rerender] = index_module.
|
|
1715
|
-
const user = index_module.
|
|
1709
|
+
const [, rerender] = index_module.gn();
|
|
1710
|
+
const user = index_module.Q();
|
|
1716
1711
|
stencilHooks_module.useEffect(() => {
|
|
1717
1712
|
var _a;
|
|
1718
1713
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1766,11 +1761,11 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
1766
1761
|
|
|
1767
1762
|
function usePortalChangePassword(props) {
|
|
1768
1763
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1769
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1764
|
+
const [request, { loading, errors, data }] = index_module.Ue();
|
|
1770
1765
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1771
1766
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1772
1767
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1773
|
-
const user = index_module.
|
|
1768
|
+
const user = index_module.Q();
|
|
1774
1769
|
const submit = async (event) => {
|
|
1775
1770
|
var _a, _b;
|
|
1776
1771
|
setSuccess(false);
|
|
@@ -2012,7 +2007,7 @@ const PortalFooter = class {
|
|
|
2012
2007
|
};
|
|
2013
2008
|
|
|
2014
2009
|
function usePortalFrame(footerContent, headerContent) {
|
|
2015
|
-
const [, rerender] = index_module.
|
|
2010
|
+
const [, rerender] = index_module.gn();
|
|
2016
2011
|
return {
|
|
2017
2012
|
data: {
|
|
2018
2013
|
footer: footerContent,
|
|
@@ -2062,9 +2057,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
2062
2057
|
|
|
2063
2058
|
function usePortalLogin(props) {
|
|
2064
2059
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2065
|
-
const [request, { loading, errors, data }] = index_module.
|
|
2060
|
+
const [request, { loading, errors, data }] = index_module.qe();
|
|
2066
2061
|
const [error, setError] = stencilHooks_module.useState("");
|
|
2067
|
-
const urlParams = new URLSearchParams(index_module.
|
|
2062
|
+
const urlParams = new URLSearchParams(index_module.$n.location.search);
|
|
2068
2063
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2069
2064
|
const submit = async (event) => {
|
|
2070
2065
|
var _a, _b;
|
|
@@ -2083,7 +2078,7 @@ function usePortalLogin(props) {
|
|
|
2083
2078
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2084
2079
|
urlParams.delete("nextPage");
|
|
2085
2080
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2086
|
-
index_module.
|
|
2081
|
+
index_module.$n.push(url.href);
|
|
2087
2082
|
}
|
|
2088
2083
|
};
|
|
2089
2084
|
const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
|
|
@@ -2162,8 +2157,8 @@ const PortalLogin = class {
|
|
|
2162
2157
|
? useLoginDemo(this)
|
|
2163
2158
|
: usePortalLogin(this);
|
|
2164
2159
|
const content = {
|
|
2165
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.
|
|
2166
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
2160
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.$n.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2161
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.$n.push(states.registerPath) }, this.registerLabel))),
|
|
2167
2162
|
emailLabel: this.emailLabel,
|
|
2168
2163
|
passwordLabel: this.passwordLabel,
|
|
2169
2164
|
submitLabel: this.submitLabel,
|
|
@@ -2192,7 +2187,7 @@ function usePortalRegister(props) {
|
|
|
2192
2187
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2193
2188
|
const formRef = stencilHooks_module.useRef(null);
|
|
2194
2189
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
2195
|
-
const [request, { loading, errors, data }] = index_module.
|
|
2190
|
+
const [request, { loading, errors, data }] = index_module.xe();
|
|
2196
2191
|
stencilHooks_module.useEffect(() => {
|
|
2197
2192
|
if (!formRef.current)
|
|
2198
2193
|
return;
|
|
@@ -2265,7 +2260,7 @@ function usePortalRegister(props) {
|
|
|
2265
2260
|
validationErrors: {},
|
|
2266
2261
|
});
|
|
2267
2262
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2268
|
-
index_module.
|
|
2263
|
+
index_module.$n.push(props.nextPage);
|
|
2269
2264
|
}
|
|
2270
2265
|
}
|
|
2271
2266
|
catch (error) {
|
|
@@ -2439,7 +2434,7 @@ const PortalRegister = class {
|
|
|
2439
2434
|
: usePortalRegister(this);
|
|
2440
2435
|
const content = {
|
|
2441
2436
|
formData: index.h("slot", { name: "formData" }),
|
|
2442
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
2437
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.$n.push(states.loginPath) }, this.loginLabel))),
|
|
2443
2438
|
terms: index.h("slot", { name: "terms" }),
|
|
2444
2439
|
emailLabel: this.emailLabel,
|
|
2445
2440
|
passwordLabel: this.passwordLabel,
|
|
@@ -2610,11 +2605,11 @@ const ProgramExplainerStep = class {
|
|
|
2610
2605
|
const debug = stencilHooks_module.browser("sq:useProgramMenu");
|
|
2611
2606
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2612
2607
|
function useProgramMenu(props) {
|
|
2613
|
-
const programId = index_module.
|
|
2614
|
-
const host = index_module.
|
|
2608
|
+
const programId = index_module.H();
|
|
2609
|
+
const host = index_module._();
|
|
2615
2610
|
debug({ programId, props });
|
|
2616
2611
|
const ref = stencilHooks_module.useRef();
|
|
2617
|
-
const [, rerender] = index_module.
|
|
2612
|
+
const [, rerender] = index_module.gn();
|
|
2618
2613
|
stencilHooks_module.useEffect(() => {
|
|
2619
2614
|
var _a;
|
|
2620
2615
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2792,9 +2787,9 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
2792
2787
|
`;
|
|
2793
2788
|
function useReferralIframe(props) {
|
|
2794
2789
|
var _a;
|
|
2795
|
-
const programId = index_module.
|
|
2796
|
-
const user = index_module.
|
|
2797
|
-
const { data } = index_module.
|
|
2790
|
+
const programId = index_module.H();
|
|
2791
|
+
const user = index_module.Q();
|
|
2792
|
+
const { data } = index_module.yn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2798
2793
|
return {
|
|
2799
2794
|
states: {
|
|
2800
2795
|
content: props,
|
|
@@ -3519,9 +3514,9 @@ function useRewardExchangeList(props) {
|
|
|
3519
3514
|
});
|
|
3520
3515
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3521
3516
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3522
|
-
const user = index_module.
|
|
3523
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module
|
|
3524
|
-
const { data, loading, refetch, errors: queryError, } = index_module.
|
|
3517
|
+
const user = index_module.Q();
|
|
3518
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.$e(EXCHANGE);
|
|
3519
|
+
const { data, loading, refetch, errors: queryError, } = index_module.yn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3525
3520
|
stencilHooks_module.useEffect(() => {
|
|
3526
3521
|
var _a, _b;
|
|
3527
3522
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -3540,7 +3535,7 @@ function useRewardExchangeList(props) {
|
|
|
3540
3535
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3541
3536
|
canvas.confetti();
|
|
3542
3537
|
}, [canvasRef.current]);
|
|
3543
|
-
const { refresh } = index_module.
|
|
3538
|
+
const { refresh } = index_module.ze();
|
|
3544
3539
|
async function exchangeReward() {
|
|
3545
3540
|
if (!selectedItem)
|
|
3546
3541
|
return;
|
|
@@ -3848,8 +3843,8 @@ function matchPath(pattern, page) {
|
|
|
3848
3843
|
return regexp.exec(page);
|
|
3849
3844
|
}
|
|
3850
3845
|
function useRouter() {
|
|
3851
|
-
const location = index_module.
|
|
3852
|
-
const host = index_module.
|
|
3846
|
+
const location = index_module.Sn();
|
|
3847
|
+
const host = index_module._();
|
|
3853
3848
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
3854
3849
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
3855
3850
|
const page = location.pathname;
|
|
@@ -4110,11 +4105,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = index_module.dist.gql `
|
|
|
4110
4105
|
`;
|
|
4111
4106
|
function useShareCode(props) {
|
|
4112
4107
|
var _a, _b;
|
|
4113
|
-
const { programId = index_module.
|
|
4114
|
-
const user = index_module.
|
|
4115
|
-
const engagementMedium = index_module.
|
|
4116
|
-
const { data } = index_module.
|
|
4117
|
-
const [sendLoadEvent] = index_module
|
|
4108
|
+
const { programId = index_module.H() } = props;
|
|
4109
|
+
const user = index_module.Q();
|
|
4110
|
+
const engagementMedium = index_module.B();
|
|
4111
|
+
const { data } = index_module.yn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4112
|
+
const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4118
4113
|
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
4119
4114
|
// Shown during loading
|
|
4120
4115
|
"...";
|
|
@@ -4313,10 +4308,10 @@ const SEND_EVENT = index_module.dist.gql `
|
|
|
4313
4308
|
}
|
|
4314
4309
|
`;
|
|
4315
4310
|
function useTaskCard(props) {
|
|
4316
|
-
const user = index_module.
|
|
4317
|
-
const locale = index_module.
|
|
4318
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module
|
|
4319
|
-
const { refresh } = index_module.
|
|
4311
|
+
const user = index_module.Q();
|
|
4312
|
+
const locale = index_module.L();
|
|
4313
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.$e(SEND_EVENT);
|
|
4314
|
+
const { refresh } = index_module.ze();
|
|
4320
4315
|
stencilHooks_module.useEffect(() => {
|
|
4321
4316
|
if (data) {
|
|
4322
4317
|
refresh();
|
|
@@ -4637,8 +4632,8 @@ const GET_USER_NAME = index_module.dist.gql `
|
|
|
4637
4632
|
`;
|
|
4638
4633
|
function useUserName(props) {
|
|
4639
4634
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4640
|
-
const user = index_module.
|
|
4641
|
-
const res = index_module.
|
|
4635
|
+
const user = index_module.Q();
|
|
4636
|
+
const res = index_module.yn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4642
4637
|
const loading = res.loading;
|
|
4643
4638
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
4644
4639
|
? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`
|