@saasquatch/mint-components 1.12.1-1 → 1.12.1-10
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 +221 -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 +112 -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 +217 -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-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-60bf4471.system.entry.js +1 -0
- 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-7624c91a.entry.js +18 -0
- 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-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
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import { i as intl } from './global-62554cef.js';
|
|
4
|
+
import { d as dist, L, Q, t as bn, I as In, M as Mn, e as $e, i as isDemo, w as wn, u as useCallback, k as kn, v as Pn, _, C as Cn, F as Fn } from './index.module-48f73e70.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
9
|
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
10
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
11
|
-
import { u as useChildElements } from './useChildElements-
|
|
10
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-cb4d43dc.js';
|
|
11
|
+
import { u as useChildElements } from './useChildElements-a6b895dd.js';
|
|
12
12
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
13
|
-
import { g as generateUserError } from './useReferralTable-
|
|
13
|
+
import { g as generateUserError } from './useReferralTable-6e8350db.js';
|
|
14
14
|
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
15
|
-
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-
|
|
15
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-41a14ca6.js';
|
|
16
16
|
|
|
17
17
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
18
18
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -956,15 +956,15 @@ function parseImpactThreshold(threshold) {
|
|
|
956
956
|
}
|
|
957
957
|
function useBankingInfoForm(props) {
|
|
958
958
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
959
|
-
const locale =
|
|
960
|
-
const user =
|
|
961
|
-
const [step, setStep] =
|
|
962
|
-
const context =
|
|
963
|
-
const countries =
|
|
959
|
+
const locale = L();
|
|
960
|
+
const user = Q();
|
|
961
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
962
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
963
|
+
const countries = In(SORTED_COUNTRIES_NAMESPACE);
|
|
964
964
|
const formRef = useRef(null);
|
|
965
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } =
|
|
966
|
-
const { data: userData, refetch, errors: userError, } =
|
|
967
|
-
const [saveWithdrawalSettings] =
|
|
965
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = Mn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
966
|
+
const { data: userData, refetch, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
967
|
+
const [saveWithdrawalSettings] = $e(SAVE_WITHDRAWAL_SETTINGS);
|
|
968
968
|
const [formState, setFormState] = useState({});
|
|
969
969
|
const [currentPaymentOption, setCurrentPaymentOption] = useState(null);
|
|
970
970
|
const [loading, setLoading] = useState(false);
|
|
@@ -1532,7 +1532,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1532
1532
|
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;
|
|
1533
1533
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1534
1534
|
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;
|
|
1535
|
-
const setStep =
|
|
1535
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
1536
1536
|
const [paymentMethodChecked, setPaymentMethodChecked] = useState(undefined);
|
|
1537
1537
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
|
|
1538
1538
|
const [currency, setCurrency] = useState(defaultCurrency);
|
|
@@ -1650,13 +1650,13 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1650
1650
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1651
1651
|
function useDocusignForm(props) {
|
|
1652
1652
|
var _a, _b, _c;
|
|
1653
|
-
const user =
|
|
1654
|
-
const context =
|
|
1655
|
-
const [step, setStep] =
|
|
1656
|
-
const { data, loading: userLoading, refetch, } =
|
|
1653
|
+
const user = Q();
|
|
1654
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1655
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
1656
|
+
const { data, loading: userLoading, refetch, } = Mn(USER_QUERY_NAMESPACE);
|
|
1657
1657
|
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;
|
|
1658
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] =
|
|
1659
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] =
|
|
1658
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = $e(GET_TAX_DOCUMENT);
|
|
1659
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = $e(COMPLETE_TAX_DOCUMENT);
|
|
1660
1660
|
const [docusignStatus, setDocusignStatus] = useState(undefined);
|
|
1661
1661
|
const [participantType, setParticipantType] = useState(undefined);
|
|
1662
1662
|
const [errors, setErrors] = useState({});
|
|
@@ -2191,7 +2191,7 @@ const DocusignForm = class {
|
|
|
2191
2191
|
get el() { return getElement(this); }
|
|
2192
2192
|
};
|
|
2193
2193
|
function useDocusignFormDemo(props) {
|
|
2194
|
-
const setStep =
|
|
2194
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
2195
2195
|
return cjs({
|
|
2196
2196
|
text: props.getTextProps(),
|
|
2197
2197
|
states: {
|
|
@@ -2461,15 +2461,15 @@ function getOption(countries, countryCode) {
|
|
|
2461
2461
|
}
|
|
2462
2462
|
function useIndirectTaxForm(props) {
|
|
2463
2463
|
var _a, _b, _c, _d, _e;
|
|
2464
|
-
const user =
|
|
2465
|
-
const locale =
|
|
2464
|
+
const user = Q();
|
|
2465
|
+
const locale = L();
|
|
2466
2466
|
const formRef = useRef(null);
|
|
2467
|
-
const context =
|
|
2468
|
-
const [step, setStep] =
|
|
2469
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] =
|
|
2470
|
-
const userForm =
|
|
2471
|
-
const { data: userData, refetch, errors: userError, } =
|
|
2472
|
-
const { data: _countriesRes, loading: countriesLoading } =
|
|
2467
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2468
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
2469
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
|
|
2470
|
+
const userForm = In(USER_FORM_CONTEXT_NAMESPACE);
|
|
2471
|
+
const { data: userData, refetch, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
2472
|
+
const { data: _countriesRes, loading: countriesLoading } = Mn(COUNTRIES_QUERY_NAMESPACE);
|
|
2473
2473
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2474
2474
|
const _countries = 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) => getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2475
2475
|
const [loading, setLoading] = useState(false);
|
|
@@ -2858,7 +2858,7 @@ const IndirectTaxForm = class {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
};
|
|
2860
2860
|
function useDemoIndirectTaxForm(props) {
|
|
2861
|
-
const setStep =
|
|
2861
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
2862
2862
|
const [option, setOption] = useState(null);
|
|
2863
2863
|
const [demoFormState, setDemoFormState] = useState({});
|
|
2864
2864
|
return cjs({
|
|
@@ -2968,8 +2968,8 @@ const GET_INVOICES = dist.gql `
|
|
|
2968
2968
|
`;
|
|
2969
2969
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
2970
2970
|
var _a;
|
|
2971
|
-
const user =
|
|
2972
|
-
const locale =
|
|
2971
|
+
const user = Q();
|
|
2972
|
+
const locale = L();
|
|
2973
2973
|
const [content, setContent] = useReducer((state, next) => ({
|
|
2974
2974
|
...state,
|
|
2975
2975
|
...next,
|
|
@@ -2979,7 +2979,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
2979
2979
|
loading: false,
|
|
2980
2980
|
page: 0,
|
|
2981
2981
|
});
|
|
2982
|
-
const { envelope: invoicesData, states, callbacks, } =
|
|
2982
|
+
const { envelope: invoicesData, states, callbacks, } = 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; }, {
|
|
2983
2983
|
limit: props.perPage,
|
|
2984
2984
|
offset: 0,
|
|
2985
2985
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3545,7 +3545,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3545
3545
|
|
|
3546
3546
|
function usePayoutDetailsCard(props) {
|
|
3547
3547
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3548
|
-
const { data, loading } =
|
|
3548
|
+
const { data, loading } = Mn(USER_QUERY_NAMESPACE);
|
|
3549
3549
|
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;
|
|
3550
3550
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3551
3551
|
var _a;
|
|
@@ -3734,21 +3734,21 @@ function getCurrentStep(user) {
|
|
|
3734
3734
|
}
|
|
3735
3735
|
function useTaxAndCash() {
|
|
3736
3736
|
var _a, _b, _c, _d, _e;
|
|
3737
|
-
const host =
|
|
3738
|
-
const user =
|
|
3739
|
-
const locale =
|
|
3737
|
+
const host = _();
|
|
3738
|
+
const user = Q();
|
|
3739
|
+
const locale = L();
|
|
3740
3740
|
// State for current step of form
|
|
3741
|
-
const [step, setStep] =
|
|
3741
|
+
const [step, setStep] = Cn({
|
|
3742
3742
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3743
3743
|
initialValue: "/loading",
|
|
3744
3744
|
});
|
|
3745
3745
|
// State for when to hide steps, or override certain actions
|
|
3746
|
-
const [context, _setContext] =
|
|
3746
|
+
const [context, _setContext] = Cn({
|
|
3747
3747
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3748
3748
|
initialValue: {},
|
|
3749
3749
|
});
|
|
3750
3750
|
// State to carry user form information into step 2
|
|
3751
|
-
const [userFormContext, _setUserFormContext] =
|
|
3751
|
+
const [userFormContext, _setUserFormContext] = Cn({
|
|
3752
3752
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3753
3753
|
initialValue: {
|
|
3754
3754
|
firstName: undefined,
|
|
@@ -3758,19 +3758,19 @@ function useTaxAndCash() {
|
|
|
3758
3758
|
currency: undefined,
|
|
3759
3759
|
},
|
|
3760
3760
|
});
|
|
3761
|
-
const [_currenciesContext, setCurrenciesContext] =
|
|
3761
|
+
const [_currenciesContext, setCurrenciesContext] = Cn({
|
|
3762
3762
|
namespace: CURRENCIES_NAMESPACE,
|
|
3763
3763
|
initialValue: [],
|
|
3764
3764
|
});
|
|
3765
|
-
const [_countriesContext, _setCountriesContext] =
|
|
3765
|
+
const [_countriesContext, _setCountriesContext] = Cn({
|
|
3766
3766
|
namespace: COUNTRIES_NAMESPACE,
|
|
3767
3767
|
initialValue: [],
|
|
3768
3768
|
});
|
|
3769
|
-
const [_sortedCountriesContext, setSortedCountriesContext] =
|
|
3769
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = Cn({
|
|
3770
3770
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3771
3771
|
initialValue: [],
|
|
3772
3772
|
});
|
|
3773
|
-
const { data, errors } =
|
|
3773
|
+
const { data, errors } = Fn({
|
|
3774
3774
|
namespace: USER_QUERY_NAMESPACE,
|
|
3775
3775
|
query: GET_USER,
|
|
3776
3776
|
skip: !user,
|
|
@@ -3780,12 +3780,12 @@ function useTaxAndCash() {
|
|
|
3780
3780
|
});
|
|
3781
3781
|
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) ||
|
|
3782
3782
|
userFormContext.countryCode;
|
|
3783
|
-
|
|
3783
|
+
Fn({
|
|
3784
3784
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3785
3785
|
query: GET_COUNTRIES,
|
|
3786
3786
|
skip: !user,
|
|
3787
3787
|
});
|
|
3788
|
-
const { data: financeNetworkData, refetch } =
|
|
3788
|
+
const { data: financeNetworkData, refetch } = Fn({
|
|
3789
3789
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3790
3790
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3791
3791
|
skip: !user,
|
|
@@ -3793,7 +3793,7 @@ function useTaxAndCash() {
|
|
|
3793
3793
|
filter: getFinanceNetworkFilter(),
|
|
3794
3794
|
},
|
|
3795
3795
|
});
|
|
3796
|
-
const { data: currenciesData } =
|
|
3796
|
+
const { data: currenciesData } = Fn({
|
|
3797
3797
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3798
3798
|
query: GET_CURRENCIES,
|
|
3799
3799
|
skip: !user,
|
|
@@ -3874,7 +3874,7 @@ function useTaxAndCash() {
|
|
|
3874
3874
|
step,
|
|
3875
3875
|
setStep,
|
|
3876
3876
|
context,
|
|
3877
|
-
namespace:
|
|
3877
|
+
namespace: Pn(TAX_CONTEXT_NAMESPACE),
|
|
3878
3878
|
loading: step === "/loading",
|
|
3879
3879
|
};
|
|
3880
3880
|
}
|
|
@@ -4820,7 +4820,7 @@ const TaxAndCashMonolith = class {
|
|
|
4820
4820
|
}
|
|
4821
4821
|
};
|
|
4822
4822
|
function useDemoTaxAndCash(props) {
|
|
4823
|
-
const [step, setStep] =
|
|
4823
|
+
const [step, setStep] = Cn({
|
|
4824
4824
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4825
4825
|
initialValue: "/1",
|
|
4826
4826
|
});
|
|
@@ -5182,15 +5182,15 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5182
5182
|
}
|
|
5183
5183
|
const useTaxAndCashDashboard = (props) => {
|
|
5184
5184
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5185
|
-
const setStep =
|
|
5186
|
-
const setContext =
|
|
5185
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
5186
|
+
const setContext = wn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5187
5187
|
const [showDialog, setShowDialog] = useState(false);
|
|
5188
|
-
const locale =
|
|
5188
|
+
const locale = L();
|
|
5189
5189
|
useEffect(() => {
|
|
5190
5190
|
// Clear override context once on submitted
|
|
5191
5191
|
setContext({});
|
|
5192
5192
|
}, []);
|
|
5193
|
-
const { data, loading, errors: userError, } =
|
|
5193
|
+
const { data, loading, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
5194
5194
|
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;
|
|
5195
5195
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5196
5196
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -6827,12 +6827,12 @@ function useUserInfoForm(props) {
|
|
|
6827
6827
|
const currencyRef = useRef(undefined);
|
|
6828
6828
|
const phoneCountryRef = useRef(undefined);
|
|
6829
6829
|
const formRef = useRef(null);
|
|
6830
|
-
const context =
|
|
6831
|
-
const countries =
|
|
6832
|
-
const [step, setStep] =
|
|
6833
|
-
const [userFormContext, setUserFormContext] =
|
|
6834
|
-
const { data, loading, errors: userError, } =
|
|
6835
|
-
const _currencies =
|
|
6830
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6831
|
+
const countries = In(SORTED_COUNTRIES_NAMESPACE);
|
|
6832
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
6833
|
+
const [userFormContext, setUserFormContext] = bn(USER_FORM_CONTEXT_NAMESPACE);
|
|
6834
|
+
const { data, loading, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
6835
|
+
const _currencies = In(CURRENCIES_NAMESPACE);
|
|
6836
6836
|
const currencies = useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6837
6837
|
const [countrySearch, setCountrySearch] = useState("");
|
|
6838
6838
|
const [phoneCountrySearch, setPhoneCountrySearch] = useState("");
|
|
@@ -7193,7 +7193,7 @@ const TaxForm = class {
|
|
|
7193
7193
|
}
|
|
7194
7194
|
};
|
|
7195
7195
|
function useDemoUserInfoForm(props) {
|
|
7196
|
-
const setStep =
|
|
7196
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
7197
7197
|
return cjs({
|
|
7198
7198
|
setStep,
|
|
7199
7199
|
onSubmit: () => {
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h, f as useEffect, k as useState, i as d, u as useMemo, m as useRef, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo,
|
|
3
|
+
import { i as intl } from './global-62554cef.js';
|
|
4
|
+
import { i as isDemo, _, d as dist, Q, H, e as $e, y as yn, B, L, g as gn, $ as $n, p as Ue, q as qe, x as xe, u as useCallback, r as ze, S as Sn } from './index.module-48f73e70.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import { a as useRequestRerender } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
+
import { a as useRequestRerender } from './re-render-cb4d43dc.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-a6b895dd.js';
|
|
11
11
|
import './luxon-7600be8d.js';
|
|
12
12
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
13
13
|
import './sqm-text-span-view-8d140661.js';
|
|
14
14
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
15
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-
|
|
16
|
-
import {
|
|
15
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-de6b208e.js';
|
|
16
|
+
import { C as CheckboxFieldView } from './sqm-checkbox-field-view-0ef58cb3.js';
|
|
17
|
+
import { i as isEmpty } from './utilities-e8022681.js';
|
|
17
18
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
18
|
-
import { b as useDemoBigStat,
|
|
19
|
+
import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, W as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-272f75a5.js';
|
|
19
20
|
import './sqm-portal-container-view-6c582684.js';
|
|
20
21
|
|
|
21
22
|
const BigStat = class {
|
|
@@ -35,7 +36,7 @@ const BigStat = class {
|
|
|
35
36
|
render() {
|
|
36
37
|
var _a;
|
|
37
38
|
const { props, label } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
38
|
-
const host =
|
|
39
|
+
const host = _();
|
|
39
40
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
40
41
|
const labelSlot = h$1("slot", { name: "label" }, hasLabel ? h$1("slot", null) : label);
|
|
41
42
|
return h$1(BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -156,7 +157,7 @@ const styleString = sheet.toString();
|
|
|
156
157
|
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
157
158
|
if (!missingProps)
|
|
158
159
|
return false;
|
|
159
|
-
const host =
|
|
160
|
+
const host = _();
|
|
160
161
|
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
161
162
|
return (h$1("sl-alert", { type: "danger", open: true },
|
|
162
163
|
h$1("style", { type: "text/css" }, styleString),
|
|
@@ -298,11 +299,11 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
298
299
|
`;
|
|
299
300
|
function useCouponCode(props) {
|
|
300
301
|
var _a, _b, _c;
|
|
301
|
-
const user =
|
|
302
|
-
const programId =
|
|
303
|
-
const engagementMedium =
|
|
304
|
-
const [sendLoadEvent] =
|
|
305
|
-
const { data, loading, refetch, errors } =
|
|
302
|
+
const user = Q();
|
|
303
|
+
const programId = H();
|
|
304
|
+
const engagementMedium = B();
|
|
305
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
306
|
+
const { data, loading, refetch, errors } = yn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
306
307
|
const getStatus = (reward) => {
|
|
307
308
|
if (!reward || !reward.statuses)
|
|
308
309
|
return "ERROR";
|
|
@@ -692,13 +693,13 @@ const defaultFormState = {
|
|
|
692
693
|
error: "",
|
|
693
694
|
};
|
|
694
695
|
function useEditProfile(props) {
|
|
695
|
-
const userIdent =
|
|
696
|
+
const userIdent = Q();
|
|
696
697
|
const [showEdit, setShowEdit] = useState(false);
|
|
697
698
|
const [error, setError] = useState("");
|
|
698
699
|
const [userData, setUserData] = useState(undefined);
|
|
699
700
|
const [formState, setFormState] = useState(defaultFormState);
|
|
700
|
-
const userDataResponse =
|
|
701
|
-
const [upsertUser, upsertUserResponse] =
|
|
701
|
+
const userDataResponse = yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
702
|
+
const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
|
|
702
703
|
useEffect(() => {
|
|
703
704
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
704
705
|
return;
|
|
@@ -1337,11 +1338,11 @@ const GET_RANK_WITHOUT_NAMES = dist.gql `
|
|
|
1337
1338
|
`;
|
|
1338
1339
|
function useLeaderboard(props) {
|
|
1339
1340
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1340
|
-
const programIdContext =
|
|
1341
|
+
const programIdContext = H();
|
|
1341
1342
|
// Default to context, overriden by props
|
|
1342
1343
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1343
|
-
const user =
|
|
1344
|
-
const locale =
|
|
1344
|
+
const user = Q();
|
|
1345
|
+
const locale = L();
|
|
1345
1346
|
const variables = programId
|
|
1346
1347
|
? {
|
|
1347
1348
|
type: props.leaderboardType,
|
|
@@ -1360,8 +1361,8 @@ function useLeaderboard(props) {
|
|
|
1360
1361
|
if (props.maxRows > 0) {
|
|
1361
1362
|
variables["limit"] = props.maxRows;
|
|
1362
1363
|
}
|
|
1363
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } =
|
|
1364
|
-
const { data: rankData } =
|
|
1364
|
+
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = yn(props.hideNames ? GET_LEADERBOARD_WITHOUT_NAMES : GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
|
|
1365
|
+
const { data: rankData } = yn(props.hideNames ? GET_RANK_WITHOUT_NAMES : GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1365
1366
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1366
1367
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1367
1368
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1603,21 +1604,15 @@ const MarketingEmailsCheckbox = class {
|
|
|
1603
1604
|
constructor(hostRef) {
|
|
1604
1605
|
registerInstance(this, hostRef);
|
|
1605
1606
|
this.ignored = true;
|
|
1606
|
-
/**
|
|
1607
|
-
* This name is used as the key for this form field on submission. The name must be unique within this specific form.
|
|
1608
|
-
* @uiName Checkbox name attribute
|
|
1609
|
-
* @required
|
|
1610
|
-
*/
|
|
1611
|
-
this.checkboxName = "marketingEmails";
|
|
1612
1607
|
/**
|
|
1613
1608
|
* @uiName Checkbox label
|
|
1614
1609
|
* @uiWidget textArea
|
|
1615
1610
|
*/
|
|
1616
1611
|
this.checkboxLabel = "I would like to receive marketing and promotional emails for this referral program";
|
|
1617
1612
|
/**
|
|
1618
|
-
* @
|
|
1613
|
+
* @undocumented
|
|
1619
1614
|
*/
|
|
1620
|
-
this.
|
|
1615
|
+
this.checkboxName = "marketingEmailOptIn";
|
|
1621
1616
|
h(this);
|
|
1622
1617
|
}
|
|
1623
1618
|
disconnectedCallback() { }
|
|
@@ -1703,12 +1698,12 @@ function NavigationMenuView(props) {
|
|
|
1703
1698
|
}
|
|
1704
1699
|
|
|
1705
1700
|
function handleMenu(e) {
|
|
1706
|
-
|
|
1701
|
+
$n.push(e.detail.item.value);
|
|
1707
1702
|
}
|
|
1708
1703
|
function useNavigationMenu(props) {
|
|
1709
1704
|
const ref = useRef();
|
|
1710
|
-
const [, rerender] =
|
|
1711
|
-
const user =
|
|
1705
|
+
const [, rerender] = gn();
|
|
1706
|
+
const user = Q();
|
|
1712
1707
|
useEffect(() => {
|
|
1713
1708
|
var _a;
|
|
1714
1709
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1762,11 +1757,11 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
1762
1757
|
|
|
1763
1758
|
function usePortalChangePassword(props) {
|
|
1764
1759
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1765
|
-
const [request, { loading, errors, data }] =
|
|
1760
|
+
const [request, { loading, errors, data }] = Ue();
|
|
1766
1761
|
const [open, setOpen] = useState(false);
|
|
1767
1762
|
const [error, setError] = useState("");
|
|
1768
1763
|
const [success, setSuccess] = useState(false);
|
|
1769
|
-
const user =
|
|
1764
|
+
const user = Q();
|
|
1770
1765
|
const submit = async (event) => {
|
|
1771
1766
|
var _a, _b;
|
|
1772
1767
|
setSuccess(false);
|
|
@@ -2008,7 +2003,7 @@ const PortalFooter = class {
|
|
|
2008
2003
|
};
|
|
2009
2004
|
|
|
2010
2005
|
function usePortalFrame(footerContent, headerContent) {
|
|
2011
|
-
const [, rerender] =
|
|
2006
|
+
const [, rerender] = gn();
|
|
2012
2007
|
return {
|
|
2013
2008
|
data: {
|
|
2014
2009
|
footer: footerContent,
|
|
@@ -2058,9 +2053,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
2058
2053
|
|
|
2059
2054
|
function usePortalLogin(props) {
|
|
2060
2055
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2061
|
-
const [request, { loading, errors, data }] =
|
|
2056
|
+
const [request, { loading, errors, data }] = qe();
|
|
2062
2057
|
const [error, setError] = useState("");
|
|
2063
|
-
const urlParams = new URLSearchParams(
|
|
2058
|
+
const urlParams = new URLSearchParams($n.location.search);
|
|
2064
2059
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2065
2060
|
const submit = async (event) => {
|
|
2066
2061
|
var _a, _b;
|
|
@@ -2079,7 +2074,7 @@ function usePortalLogin(props) {
|
|
|
2079
2074
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2080
2075
|
urlParams.delete("nextPage");
|
|
2081
2076
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2082
|
-
|
|
2077
|
+
$n.push(url.href);
|
|
2083
2078
|
}
|
|
2084
2079
|
};
|
|
2085
2080
|
const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
|
|
@@ -2158,8 +2153,8 @@ const PortalLogin = class {
|
|
|
2158
2153
|
? useLoginDemo(this)
|
|
2159
2154
|
: usePortalLogin(this);
|
|
2160
2155
|
const content = {
|
|
2161
|
-
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () =>
|
|
2162
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2156
|
+
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => $n.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2157
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.registerPath) }, this.registerLabel))),
|
|
2163
2158
|
emailLabel: this.emailLabel,
|
|
2164
2159
|
passwordLabel: this.passwordLabel,
|
|
2165
2160
|
submitLabel: this.submitLabel,
|
|
@@ -2188,7 +2183,7 @@ function usePortalRegister(props) {
|
|
|
2188
2183
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2189
2184
|
const formRef = useRef(null);
|
|
2190
2185
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
2191
|
-
const [request, { loading, errors, data }] =
|
|
2186
|
+
const [request, { loading, errors, data }] = xe();
|
|
2192
2187
|
useEffect(() => {
|
|
2193
2188
|
if (!formRef.current)
|
|
2194
2189
|
return;
|
|
@@ -2261,7 +2256,7 @@ function usePortalRegister(props) {
|
|
|
2261
2256
|
validationErrors: {},
|
|
2262
2257
|
});
|
|
2263
2258
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2264
|
-
|
|
2259
|
+
$n.push(props.nextPage);
|
|
2265
2260
|
}
|
|
2266
2261
|
}
|
|
2267
2262
|
catch (error) {
|
|
@@ -2435,7 +2430,7 @@ const PortalRegister = class {
|
|
|
2435
2430
|
: usePortalRegister(this);
|
|
2436
2431
|
const content = {
|
|
2437
2432
|
formData: h$1("slot", { name: "formData" }),
|
|
2438
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2433
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath) }, this.loginLabel))),
|
|
2439
2434
|
terms: h$1("slot", { name: "terms" }),
|
|
2440
2435
|
emailLabel: this.emailLabel,
|
|
2441
2436
|
passwordLabel: this.passwordLabel,
|
|
@@ -2606,11 +2601,11 @@ const ProgramExplainerStep = class {
|
|
|
2606
2601
|
const debug = browser("sq:useProgramMenu");
|
|
2607
2602
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2608
2603
|
function useProgramMenu(props) {
|
|
2609
|
-
const programId =
|
|
2610
|
-
const host =
|
|
2604
|
+
const programId = H();
|
|
2605
|
+
const host = _();
|
|
2611
2606
|
debug({ programId, props });
|
|
2612
2607
|
const ref = useRef();
|
|
2613
|
-
const [, rerender] =
|
|
2608
|
+
const [, rerender] = gn();
|
|
2614
2609
|
useEffect(() => {
|
|
2615
2610
|
var _a;
|
|
2616
2611
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2788,9 +2783,9 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
2788
2783
|
`;
|
|
2789
2784
|
function useReferralIframe(props) {
|
|
2790
2785
|
var _a;
|
|
2791
|
-
const programId =
|
|
2792
|
-
const user =
|
|
2793
|
-
const { data } =
|
|
2786
|
+
const programId = H();
|
|
2787
|
+
const user = Q();
|
|
2788
|
+
const { data } = yn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2794
2789
|
return {
|
|
2795
2790
|
states: {
|
|
2796
2791
|
content: props,
|
|
@@ -3515,9 +3510,9 @@ function useRewardExchangeList(props) {
|
|
|
3515
3510
|
});
|
|
3516
3511
|
const [open, setOpen] = useState(false);
|
|
3517
3512
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3518
|
-
const user =
|
|
3519
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] =
|
|
3520
|
-
const { data, loading, refetch, errors: queryError, } =
|
|
3513
|
+
const user = Q();
|
|
3514
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = $e(EXCHANGE);
|
|
3515
|
+
const { data, loading, refetch, errors: queryError, } = yn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3521
3516
|
useEffect(() => {
|
|
3522
3517
|
var _a, _b;
|
|
3523
3518
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -3536,7 +3531,7 @@ function useRewardExchangeList(props) {
|
|
|
3536
3531
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3537
3532
|
canvas.confetti();
|
|
3538
3533
|
}, [canvasRef.current]);
|
|
3539
|
-
const { refresh } =
|
|
3534
|
+
const { refresh } = ze();
|
|
3540
3535
|
async function exchangeReward() {
|
|
3541
3536
|
if (!selectedItem)
|
|
3542
3537
|
return;
|
|
@@ -3844,8 +3839,8 @@ function matchPath(pattern, page) {
|
|
|
3844
3839
|
return regexp.exec(page);
|
|
3845
3840
|
}
|
|
3846
3841
|
function useRouter() {
|
|
3847
|
-
const location =
|
|
3848
|
-
const host =
|
|
3842
|
+
const location = Sn();
|
|
3843
|
+
const host = _();
|
|
3849
3844
|
const [slot, setSlot] = useState(undefined);
|
|
3850
3845
|
const [container, setContainer] = useState(undefined);
|
|
3851
3846
|
const page = location.pathname;
|
|
@@ -4106,11 +4101,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = dist.gql `
|
|
|
4106
4101
|
`;
|
|
4107
4102
|
function useShareCode(props) {
|
|
4108
4103
|
var _a, _b;
|
|
4109
|
-
const { programId =
|
|
4110
|
-
const user =
|
|
4111
|
-
const engagementMedium =
|
|
4112
|
-
const { data } =
|
|
4113
|
-
const [sendLoadEvent] =
|
|
4104
|
+
const { programId = H() } = props;
|
|
4105
|
+
const user = Q();
|
|
4106
|
+
const engagementMedium = B();
|
|
4107
|
+
const { data } = yn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4108
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4114
4109
|
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
4115
4110
|
// Shown during loading
|
|
4116
4111
|
"...";
|
|
@@ -4309,10 +4304,10 @@ const SEND_EVENT = dist.gql `
|
|
|
4309
4304
|
}
|
|
4310
4305
|
`;
|
|
4311
4306
|
function useTaskCard(props) {
|
|
4312
|
-
const user =
|
|
4313
|
-
const locale =
|
|
4314
|
-
const [sendUserEvent, { data, loading: loadingEvent }] =
|
|
4315
|
-
const { refresh } =
|
|
4307
|
+
const user = Q();
|
|
4308
|
+
const locale = L();
|
|
4309
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = $e(SEND_EVENT);
|
|
4310
|
+
const { refresh } = ze();
|
|
4316
4311
|
useEffect(() => {
|
|
4317
4312
|
if (data) {
|
|
4318
4313
|
refresh();
|
|
@@ -4633,8 +4628,8 @@ const GET_USER_NAME = dist.gql `
|
|
|
4633
4628
|
`;
|
|
4634
4629
|
function useUserName(props) {
|
|
4635
4630
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4636
|
-
const user =
|
|
4637
|
-
const res =
|
|
4631
|
+
const user = Q();
|
|
4632
|
+
const res = yn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4638
4633
|
const loading = res.loading;
|
|
4639
4634
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
4640
4635
|
? `${(_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}`
|