@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
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import { i as intl } from './global-62554cef.js';
|
|
4
|
+
import { d as dist, H, Q, y as yn, e as $e, B, a as getEnvironmentSDK, L } from './index.module-48f73e70.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
8
|
-
import { u as useChildElements } from './useChildElements-
|
|
8
|
+
import { u as useChildElements } from './useChildElements-a6b895dd.js';
|
|
9
9
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
10
10
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
11
11
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
12
12
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
13
|
-
import { a as isValidColor, b as isMobile } from './utilities-
|
|
13
|
+
import { a as isValidColor, b as isMobile } from './utilities-e8022681.js';
|
|
14
14
|
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-6c582684.js';
|
|
15
15
|
|
|
16
16
|
const medium = {
|
|
@@ -446,11 +446,11 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
446
446
|
`;
|
|
447
447
|
function useShareLink(props) {
|
|
448
448
|
var _a, _b;
|
|
449
|
-
const { programId =
|
|
450
|
-
const user =
|
|
451
|
-
const engagementMedium =
|
|
452
|
-
const { data } =
|
|
453
|
-
const [sendLoadEvent] =
|
|
449
|
+
const { programId = H() } = props;
|
|
450
|
+
const user = Q();
|
|
451
|
+
const engagementMedium = B();
|
|
452
|
+
const { data } = yn(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
453
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
454
454
|
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
|
|
455
455
|
// Shown during loading
|
|
456
456
|
"...";
|
|
@@ -535,15 +535,15 @@ function GenericShare(res, errorText) {
|
|
|
535
535
|
function useShareButton(props) {
|
|
536
536
|
var _a, _b;
|
|
537
537
|
const { sharetitle, sharetext, medium } = props;
|
|
538
|
-
const programId = props.programId ? props.programId :
|
|
539
|
-
const user =
|
|
538
|
+
const programId = props.programId ? props.programId : H();
|
|
539
|
+
const user = Q();
|
|
540
540
|
const variables = {
|
|
541
|
-
engagementMedium:
|
|
541
|
+
engagementMedium: B(),
|
|
542
542
|
programId: programId,
|
|
543
543
|
shareMedium: medium.toUpperCase(),
|
|
544
544
|
};
|
|
545
545
|
// only queries if a programId is available
|
|
546
|
-
const res =
|
|
546
|
+
const res = yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
547
547
|
const directLink = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink;
|
|
548
548
|
const environment = getEnvironmentSDK();
|
|
549
549
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
@@ -567,7 +567,7 @@ function useShareButton(props) {
|
|
|
567
567
|
const debug = browser("sq:useBigStat");
|
|
568
568
|
const LOADING = "...";
|
|
569
569
|
const debugQuery = (query, variables, getStat) => {
|
|
570
|
-
const res =
|
|
570
|
+
const res = yn(query, variables);
|
|
571
571
|
if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
|
|
572
572
|
console.error("issue getting stat:", res);
|
|
573
573
|
}
|
|
@@ -978,7 +978,7 @@ const rewardsRedeemedWeekQuery = (programId, locale, type, unit, global = "") =>
|
|
|
978
978
|
locale: $locale
|
|
979
979
|
formatType: UNIT_FORMATTED
|
|
980
980
|
)}`;
|
|
981
|
-
const result =
|
|
981
|
+
const result = yn(query, {
|
|
982
982
|
value: redeemedTotal,
|
|
983
983
|
unit,
|
|
984
984
|
locale,
|
|
@@ -1037,7 +1037,7 @@ const rewardsRedeemedMonthQuery = (programId, locale, type, unit, global = "") =
|
|
|
1037
1037
|
locale: $locale
|
|
1038
1038
|
formatType: UNIT_FORMATTED
|
|
1039
1039
|
)}`;
|
|
1040
|
-
const result =
|
|
1040
|
+
const result = yn(query, {
|
|
1041
1041
|
value: redeemedTotal,
|
|
1042
1042
|
unit,
|
|
1043
1043
|
locale,
|
|
@@ -1433,11 +1433,11 @@ const StatPaths = [
|
|
|
1433
1433
|
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
1434
1434
|
function useBigStat(props) {
|
|
1435
1435
|
var _a;
|
|
1436
|
-
const { statType, flexReverse, alignment, programId =
|
|
1436
|
+
const { statType, flexReverse, alignment, programId = H(), } = props;
|
|
1437
1437
|
// triggers a re-render if the label is manually changed
|
|
1438
1438
|
useChildElements();
|
|
1439
|
-
const locale =
|
|
1440
|
-
const userIdent =
|
|
1439
|
+
const locale = L();
|
|
1440
|
+
const userIdent = Q();
|
|
1441
1441
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1442
1442
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1443
1443
|
return {
|
|
@@ -2813,75 +2813,6 @@ function NameFieldsView(props) {
|
|
|
2813
2813
|
}
|
|
2814
2814
|
|
|
2815
2815
|
const style$a = {
|
|
2816
|
-
ErrorStyle: {
|
|
2817
|
-
"&::part(control)": {
|
|
2818
|
-
background: "var(--sl-color-danger-10)",
|
|
2819
|
-
borderColor: "var(--sl-color-danger-500)",
|
|
2820
|
-
outline: "var(--sl-color-danger-500)",
|
|
2821
|
-
},
|
|
2822
|
-
"&:host": {
|
|
2823
|
-
"--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
|
|
2824
|
-
},
|
|
2825
|
-
},
|
|
2826
|
-
ErrorMessageStyle: {
|
|
2827
|
-
margin: 0,
|
|
2828
|
-
marginTop: "5px",
|
|
2829
|
-
color: "var(--sl-color-danger-500)",
|
|
2830
|
-
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
2831
|
-
fontFamily: "var(--sl-font-sans)",
|
|
2832
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
2833
|
-
},
|
|
2834
|
-
FieldContainer: {
|
|
2835
|
-
"margin-bottom": "var(--sl-spacing-large)",
|
|
2836
|
-
},
|
|
2837
|
-
};
|
|
2838
|
-
const vanillaStyle$6 = `
|
|
2839
|
-
:host {
|
|
2840
|
-
margin: 0 auto;
|
|
2841
|
-
width: 100%;
|
|
2842
|
-
display: block;
|
|
2843
|
-
}
|
|
2844
|
-
sl-checkbox::part(label){
|
|
2845
|
-
font-size: var(--sl-input-label-font-size-small);
|
|
2846
|
-
font-weight: var(--sl-font-weight-normal);
|
|
2847
|
-
line-height: 20px;
|
|
2848
|
-
}
|
|
2849
|
-
sl-checkbox::part(base){
|
|
2850
|
-
align-items: start;
|
|
2851
|
-
}
|
|
2852
|
-
`;
|
|
2853
|
-
jss.setup(create());
|
|
2854
|
-
const sheet$a = jss.createStyleSheet(style$a);
|
|
2855
|
-
const styleString$a = sheet$a.toString();
|
|
2856
|
-
function CheckboxFieldView(props) {
|
|
2857
|
-
var _a, _b, _c;
|
|
2858
|
-
const { states, content, callbacks } = props;
|
|
2859
|
-
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2860
|
-
return (h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
|
|
2861
|
-
h("style", { type: "text/css" },
|
|
2862
|
-
vanillaStyle$6,
|
|
2863
|
-
styleString$a),
|
|
2864
|
-
h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2865
|
-
e.target.value = e.target.checked;
|
|
2866
|
-
callbacks.setChecked(e.target.value);
|
|
2867
|
-
} }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
2868
|
-
? {
|
|
2869
|
-
class: sheet$a.classes.ErrorStyle,
|
|
2870
|
-
}
|
|
2871
|
-
: [])),
|
|
2872
|
-
intl.formatMessage({
|
|
2873
|
-
id: content.checkboxName + "-message",
|
|
2874
|
-
defaultMessage: content.checkboxLabel,
|
|
2875
|
-
}, {
|
|
2876
|
-
labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
2877
|
-
}),
|
|
2878
|
-
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$a.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
2879
|
-
id: `errorMessage-${content.checkboxName}`,
|
|
2880
|
-
defaultMessage: content.errorMessage,
|
|
2881
|
-
}))))));
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
const style$b = {
|
|
2885
2816
|
ErrorStyle: {
|
|
2886
2817
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2887
2818
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2897,7 +2828,7 @@ const style$b = {
|
|
|
2897
2828
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2898
2829
|
},
|
|
2899
2830
|
};
|
|
2900
|
-
const vanillaStyle$
|
|
2831
|
+
const vanillaStyle$6 = `
|
|
2901
2832
|
:host {
|
|
2902
2833
|
margin: 0 auto;
|
|
2903
2834
|
width: 100%;
|
|
@@ -2909,36 +2840,36 @@ sl-select::part(label){
|
|
|
2909
2840
|
}
|
|
2910
2841
|
`;
|
|
2911
2842
|
jss.setup(create());
|
|
2912
|
-
const sheet$
|
|
2913
|
-
const styleString$
|
|
2843
|
+
const sheet$a = jss.createStyleSheet(style$a);
|
|
2844
|
+
const styleString$a = sheet$a.toString();
|
|
2914
2845
|
function DropdownFieldView(props) {
|
|
2915
2846
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2916
2847
|
const { states, content } = props;
|
|
2917
2848
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2918
|
-
return (h("div", { class: sheet$
|
|
2849
|
+
return (h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
|
|
2919
2850
|
h("style", { type: "text/css" },
|
|
2920
|
-
vanillaStyle$
|
|
2921
|
-
styleString$
|
|
2851
|
+
vanillaStyle$6,
|
|
2852
|
+
styleString$a),
|
|
2922
2853
|
h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
|
|
2923
2854
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2924
2855
|
}
|
|
2925
2856
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2926
|
-
class: sheet$
|
|
2857
|
+
class: sheet$a.classes.ErrorStyle,
|
|
2927
2858
|
}
|
|
2928
2859
|
: [])), content.selectOptions),
|
|
2929
|
-
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$
|
|
2860
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$a.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
2930
2861
|
id: `errorMessage-${content.dropdownName}`,
|
|
2931
2862
|
defaultMessage: content.errorMessage,
|
|
2932
2863
|
})))));
|
|
2933
2864
|
}
|
|
2934
2865
|
|
|
2935
|
-
const style$
|
|
2866
|
+
const style$b = {
|
|
2936
2867
|
ErrorStyle: ErrorStyles,
|
|
2937
2868
|
FieldContainer: {
|
|
2938
2869
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2939
2870
|
},
|
|
2940
2871
|
};
|
|
2941
|
-
const vanillaStyle$
|
|
2872
|
+
const vanillaStyle$7 = `
|
|
2942
2873
|
:host {
|
|
2943
2874
|
margin: 0 auto;
|
|
2944
2875
|
width: 100%;
|
|
@@ -2946,21 +2877,21 @@ const vanillaStyle$8 = `
|
|
|
2946
2877
|
}
|
|
2947
2878
|
`;
|
|
2948
2879
|
jss.setup(create());
|
|
2949
|
-
const sheet$
|
|
2950
|
-
const styleString$
|
|
2880
|
+
const sheet$b = jss.createStyleSheet(style$b);
|
|
2881
|
+
const styleString$b = sheet$b.toString();
|
|
2951
2882
|
function InputFieldView(props) {
|
|
2952
2883
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2953
2884
|
const { states, content } = props;
|
|
2954
2885
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2955
|
-
return (h("div", { class: sheet$
|
|
2886
|
+
return (h("div", { class: sheet$b.classes.FieldContainer, part: "sqm-base" },
|
|
2956
2887
|
h("style", { type: "text/css" },
|
|
2957
|
-
vanillaStyle$
|
|
2958
|
-
styleString$
|
|
2888
|
+
vanillaStyle$7,
|
|
2889
|
+
styleString$b),
|
|
2959
2890
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
|
|
2960
2891
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2961
2892
|
}
|
|
2962
2893
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2963
|
-
class: sheet$
|
|
2894
|
+
class: sheet$b.classes.ErrorStyle,
|
|
2964
2895
|
helpText: intl.formatMessage({
|
|
2965
2896
|
id: `errorMessage-${content.fieldName}`,
|
|
2966
2897
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -3055,7 +2986,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
3055
2986
|
return (h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
|
|
3056
2987
|
}
|
|
3057
2988
|
|
|
3058
|
-
const style$
|
|
2989
|
+
const style$c = {
|
|
3059
2990
|
HostBlock: HostBlock,
|
|
3060
2991
|
Container: {
|
|
3061
2992
|
minWidth: "300px",
|
|
@@ -3406,8 +3337,8 @@ const style$d = {
|
|
|
3406
3337
|
},
|
|
3407
3338
|
};
|
|
3408
3339
|
// JSS config
|
|
3409
|
-
const sheet$
|
|
3410
|
-
const styleString$
|
|
3340
|
+
const sheet$c = createStyleSheet(style$c);
|
|
3341
|
+
const styleString$c = sheet$c.toString();
|
|
3411
3342
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3412
3343
|
function RewardExchangeView(props) {
|
|
3413
3344
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3430,7 +3361,7 @@ function RewardExchangeView(props) {
|
|
|
3430
3361
|
sourceUnit: item.sourceUnit,
|
|
3431
3362
|
})));
|
|
3432
3363
|
}
|
|
3433
|
-
return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$
|
|
3364
|
+
return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$c.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3434
3365
|
var _a, _b, _c, _d, _e;
|
|
3435
3366
|
return callbacks.setExchangeState({
|
|
3436
3367
|
amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
|
|
@@ -3438,7 +3369,7 @@ function RewardExchangeView(props) {
|
|
|
3438
3369
|
});
|
|
3439
3370
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3440
3371
|
var _a, _b;
|
|
3441
|
-
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3372
|
+
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$c.classes.SelectItem },
|
|
3442
3373
|
step.prettyDestinationValue,
|
|
3443
3374
|
h("br", null),
|
|
3444
3375
|
h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3457,8 +3388,8 @@ function RewardExchangeView(props) {
|
|
|
3457
3388
|
var _a;
|
|
3458
3389
|
return [
|
|
3459
3390
|
h("div", { part: "choose-reward-container" },
|
|
3460
|
-
h("div", { class: sheet$
|
|
3461
|
-
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$
|
|
3391
|
+
h("div", { class: sheet$c.classes.Title }, states.content.text.rewardTitle),
|
|
3392
|
+
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$c.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3462
3393
|
var _a, _b, _c, _d, _e;
|
|
3463
3394
|
const style = {
|
|
3464
3395
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3467,7 +3398,7 @@ function RewardExchangeView(props) {
|
|
|
3467
3398
|
borderRadius: "4px",
|
|
3468
3399
|
};
|
|
3469
3400
|
return (h("div", { key: item.key, style: style },
|
|
3470
|
-
h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3401
|
+
h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$c.classes.Card, style: {
|
|
3471
3402
|
cursor: item.unavailableReasonCode
|
|
3472
3403
|
? "not-allowed"
|
|
3473
3404
|
: "pointer",
|
|
@@ -3484,14 +3415,14 @@ function RewardExchangeView(props) {
|
|
|
3484
3415
|
? "rgba(0, 0, 0, 0.05)"
|
|
3485
3416
|
: "rgba(0, 0, 0, 0)",
|
|
3486
3417
|
} },
|
|
3487
|
-
h("div", { class: sheet$
|
|
3418
|
+
h("div", { class: sheet$c.classes.Image, style: {
|
|
3488
3419
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3489
3420
|
} },
|
|
3490
3421
|
h("img", { class: item.unavailableReasonCode
|
|
3491
3422
|
? "image subdued"
|
|
3492
3423
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3493
3424
|
getAssetPath("./assets/Reward-image.png") })),
|
|
3494
|
-
h("div", { class: sheet$
|
|
3425
|
+
h("div", { class: sheet$c.classes.TextArea, style: {
|
|
3495
3426
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3496
3427
|
} },
|
|
3497
3428
|
h("div", { class: "title", style: {
|
|
@@ -3524,7 +3455,7 @@ function RewardExchangeView(props) {
|
|
|
3524
3455
|
item.prettySourceMinValue,
|
|
3525
3456
|
}))))))));
|
|
3526
3457
|
}))),
|
|
3527
|
-
h("div", { class: sheet$
|
|
3458
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3528
3459
|
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
3529
3460
|
];
|
|
3530
3461
|
}
|
|
@@ -3535,7 +3466,7 @@ function RewardExchangeView(props) {
|
|
|
3535
3466
|
? false
|
|
3536
3467
|
: input && !states.amount;
|
|
3537
3468
|
return (h("div", null,
|
|
3538
|
-
h("div", { class: sheet$
|
|
3469
|
+
h("div", { class: sheet$c.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3539
3470
|
h("div", { class: "wrapper" },
|
|
3540
3471
|
h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3541
3472
|
getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3544,7 +3475,7 @@ function RewardExchangeView(props) {
|
|
|
3544
3475
|
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "points" }, input)) : (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
3545
3476
|
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (h("div", null, input)),
|
|
3546
3477
|
h("div", { class: "space" }))),
|
|
3547
|
-
h("div", { class: sheet$
|
|
3478
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3548
3479
|
h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3549
3480
|
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3550
3481
|
}
|
|
@@ -3552,8 +3483,8 @@ function RewardExchangeView(props) {
|
|
|
3552
3483
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3553
3484
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3554
3485
|
return (h("div", null,
|
|
3555
|
-
h("div", { class: sheet$
|
|
3556
|
-
h("div", { class: sheet$
|
|
3486
|
+
h("div", { class: sheet$c.classes.Confirmation, part: "confirmation-container" },
|
|
3487
|
+
h("div", { class: sheet$c.classes.Title }, states.content.text.redeemTitle),
|
|
3557
3488
|
h("div", { class: "wrapper" },
|
|
3558
3489
|
h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3559
3490
|
h("div", { class: "reward-item-container" },
|
|
@@ -3568,13 +3499,13 @@ function RewardExchangeView(props) {
|
|
|
3568
3499
|
h("div", { class: "wrapper top-border padding" },
|
|
3569
3500
|
h("div", { class: "field" }, states.content.text.costTitle),
|
|
3570
3501
|
h("div", { class: "value" }, cost)),
|
|
3571
|
-
h("div", { class: sheet$
|
|
3502
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3572
3503
|
h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3573
3504
|
h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3574
3505
|
}
|
|
3575
3506
|
function success() {
|
|
3576
3507
|
var _a, _b, _c, _d, _e, _f;
|
|
3577
|
-
return (h("div", { class: sheet$
|
|
3508
|
+
return (h("div", { class: sheet$c.classes.Success, part: "success-container" },
|
|
3578
3509
|
h(Gift$1, null),
|
|
3579
3510
|
h(Confetti, null),
|
|
3580
3511
|
h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3589,7 +3520,7 @@ function RewardExchangeView(props) {
|
|
|
3589
3520
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { class: "promo" },
|
|
3590
3521
|
states.content.text.promoCode,
|
|
3591
3522
|
h(CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
3592
|
-
h("div", { class: sheet$
|
|
3523
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3593
3524
|
h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3594
3525
|
}
|
|
3595
3526
|
const stages = {
|
|
@@ -3601,7 +3532,7 @@ function RewardExchangeView(props) {
|
|
|
3601
3532
|
const currentStage = stages[states.redeemStage];
|
|
3602
3533
|
function stageMap() {
|
|
3603
3534
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3604
|
-
return (h("div", { class: sheet$
|
|
3535
|
+
return (h("div", { class: sheet$c.classes.ProgressBar },
|
|
3605
3536
|
h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3606
3537
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3607
3538
|
return h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3613,10 +3544,10 @@ function RewardExchangeView(props) {
|
|
|
3613
3544
|
h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3614
3545
|
}
|
|
3615
3546
|
function loading() {
|
|
3616
|
-
return (h("div", { class: sheet$
|
|
3547
|
+
return (h("div", { class: sheet$c.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3617
3548
|
return (h("div", null,
|
|
3618
|
-
h("sl-card", { class: sheet$
|
|
3619
|
-
h("div", { class: sheet$
|
|
3549
|
+
h("sl-card", { class: sheet$c.classes.Card },
|
|
3550
|
+
h("div", { class: sheet$c.classes.CardLayout },
|
|
3620
3551
|
h("div", null,
|
|
3621
3552
|
h("sl-skeleton", { style: {
|
|
3622
3553
|
width: "100px",
|
|
@@ -3648,12 +3579,12 @@ function RewardExchangeView(props) {
|
|
|
3648
3579
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3649
3580
|
return;
|
|
3650
3581
|
refs.canvasRef.current = canvas;
|
|
3651
|
-
}, id: "my-canvas", class: sheet$
|
|
3582
|
+
}, id: "my-canvas", class: sheet$c.classes.Confetti }));
|
|
3652
3583
|
}
|
|
3653
3584
|
if (states.noExchangeOptions)
|
|
3654
3585
|
return states.content.text.empty;
|
|
3655
|
-
return (h("div", { class: sheet$
|
|
3656
|
-
h("style", { type: "text/css" }, styleString$
|
|
3586
|
+
return (h("div", { class: sheet$c.classes.Container, part: "sqm-base" },
|
|
3587
|
+
h("style", { type: "text/css" }, styleString$c),
|
|
3657
3588
|
h("div", null,
|
|
3658
3589
|
stageMap(),
|
|
3659
3590
|
states.exchangeError && errorMessage(),
|
|
@@ -4069,7 +4000,7 @@ function CardFeedView(props, children) {
|
|
|
4069
4000
|
h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
4070
4001
|
}
|
|
4071
4002
|
|
|
4072
|
-
const style$
|
|
4003
|
+
const style$d = {
|
|
4073
4004
|
HostBlock: HostBlock,
|
|
4074
4005
|
couponCodeLabel: {
|
|
4075
4006
|
margin: "var(--sl-spacing-x-small) 0",
|
|
@@ -4077,21 +4008,21 @@ const style$e = {
|
|
|
4077
4008
|
fontSize: "var(--sl-font-size-small)",
|
|
4078
4009
|
},
|
|
4079
4010
|
};
|
|
4080
|
-
const vanillaStyle$
|
|
4011
|
+
const vanillaStyle$8 = `
|
|
4081
4012
|
:host{
|
|
4082
4013
|
display: block;
|
|
4083
4014
|
width: 100%;
|
|
4084
4015
|
}
|
|
4085
4016
|
`;
|
|
4086
|
-
const sheet$
|
|
4087
|
-
const styleString$
|
|
4017
|
+
const sheet$d = createStyleSheet(style$d);
|
|
4018
|
+
const styleString$d = sheet$d.toString();
|
|
4088
4019
|
function CouponCodeView(props) {
|
|
4089
4020
|
const error = !props.loading && props.error;
|
|
4090
4021
|
return (h("div", null,
|
|
4091
4022
|
h("style", { type: "text/css" },
|
|
4092
|
-
styleString$
|
|
4093
|
-
vanillaStyle$
|
|
4094
|
-
h("p", { class: sheet$
|
|
4023
|
+
styleString$d,
|
|
4024
|
+
vanillaStyle$8),
|
|
4025
|
+
h("p", { class: sheet$d.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4095
4026
|
error ? (h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4096
4027
|
h("div", { part: "erroralert-text" }, props.errorText))) : (h(CopyTextView, Object.assign({}, props)))));
|
|
4097
4028
|
}
|
|
@@ -4181,4 +4112,4 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
4181
4112
|
h(TagName, { "stencilbook-shadow-view": randomInt })));
|
|
4182
4113
|
};
|
|
4183
4114
|
|
|
4184
|
-
export {
|
|
4115
|
+
export { loading as A, BigStatView as B, CopyTextView as C, DropdownFieldView as D, EditProfileView as E, empty as F, rewardExchange as G, HeroView as H, InputFieldView as I, CardFeedView as J, CouponCodeView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, autoColorScaleCss as O, PortalFrameView as P, ShadowViewAddon as Q, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, useBigStat as U, withShadowView as V, demoRewardExchange as W, useShareButton as a, useDemoBigStat as b, StatContainerView as c, PortalChangePasswordView as d, PortalLoginView as e, PortalRegisterView as f, ProgressBarView as g, PoweredByImg as h, PortalFooterView as i, RewardExchangeView as j, rewardExchangeLongText as k, rewardExchangeSelected as l, chooseAmountFixed as m, chooseAmountFixedNoDescription as n, chooseAmountVariable as o, chooseAmountVariableNoDescription as p, chooseAmountVariableDisabled as q, rewardExchangeCustomErrorMsg as r, chooseAmountVariableUnavailable as s, confirmFixed as t, useShareLink as u, confirmVariable as v, redemptionError as w, queryError as x, success as y, successVariable as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
2
|
-
import { s as src, m as memoize,
|
|
2
|
+
import { s as src, m as memoize, U } from './index.module-48f73e70.js';
|
|
3
3
|
|
|
4
4
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
5
5
|
__assign = Object.assign || function(t) {
|
|
@@ -26635,7 +26635,7 @@ sl-input::part(label){
|
|
|
26635
26635
|
|
|
26636
26636
|
`;
|
|
26637
26637
|
|
|
26638
|
-
|
|
26638
|
+
U(l$1);
|
|
26639
26639
|
const debug = browser("sq:global");
|
|
26640
26640
|
const cache = createIntlCache();
|
|
26641
26641
|
const intl = createIntl({
|