@saasquatch/mint-components 1.15.0-117 → 1.15.0-119
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-f1bd9b26.js → ShadowViewAddon-8d4ab3f3.js} +50 -4
- package/dist/cjs/{copy-text-view-44dfefc7.js → copy-text-view-e2782134.js} +5 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_43.cjs.entry.js → sqm-big-stat_44.cjs.entry.js} +146 -3
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +23 -8
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-hero/Hero.stories.js +1 -1
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +3 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +13 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +4 -4
- package/dist/collection/components/views/copy-text-view.js +5 -3
- package/dist/esm/{IndirectTaxDetailsView-084314d5.js → IndirectTaxDetailsView-a2beb98a.js} +2 -2
- package/dist/esm/{ShadowViewAddon-c0600f22.js → ShadowViewAddon-ae08cb04.js} +55 -10
- package/dist/esm/{copy-text-view-a319c261.js → copy-text-view-d8822c16.js} +5 -3
- package/dist/esm/{data-ee3ae298.js → data-dea73d4d.js} +1 -1
- package/dist/esm/{global-80edfef3.js → global-ef7a7354.js} +1 -1
- package/dist/esm/{index.module-38dad6c9.js → index.module-c9811a48.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-9c90767d.js → re-render-7e22fb0d.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +9 -9
- package/dist/esm/{sqm-big-stat_43.entry.js → sqm-big-stat_44.entry.js} +156 -14
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +3 -3
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-797601b0.js → sqm-navigation-sidebar-item-view-bedd6ed7.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-5719eb87.js → sqm-portal-email-verification-view-37bee5df.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-google-login.entry.js +2 -2
- package/dist/esm/sqm-portal-google-registration-form.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-9a82fe2e.js → sqm-portal-profile-view-afb6d879.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-registration-form.entry.js +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +29 -14
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/sqm-tax-and-cash.entry.js +4 -4
- package/dist/esm/sqm-widget-verification-controller.entry.js +3 -3
- package/dist/esm/sqm-widget-verification.entry.js +1 -1
- package/dist/esm/{useChildElements-4e70ac0e.js → useChildElements-3d872cef.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-0f04459e.js → useInstantAccessRegistration-dda1f52b.js} +2 -2
- package/dist/esm/{usePayoutStatus-7eeec61b.js → usePayoutStatus-93462be3.js} +1 -1
- package/dist/esm/{usePortalLogin-d0720c81.js → usePortalLogin-e95df3c3.js} +1 -1
- package/dist/esm/{usePortalRegistrationForm-afc0171e.js → usePortalRegistrationForm-1eb3cd72.js} +2 -2
- package/dist/esm/{useReferralCodes-311e6d72.js → useReferralCodes-c2e809cf.js} +1 -1
- package/dist/esm/{useReferralTable-65a01a6a.js → useReferralTable-909ccb28.js} +3 -3
- package/dist/esm/{useRegistrationFormState-18c2cea7.js → useRegistrationFormState-24d594ea.js} +1 -1
- package/dist/esm/{useVerificationEmail-f9413de9.js → useVerificationEmail-55e0e98f.js} +1 -1
- package/dist/esm/{utilities-ad9c2893.js → utilities-72c07b09.js} +1 -1
- package/dist/esm/{utils-27b2ed4b.js → utils-a86c25e9.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-084314d5.js → IndirectTaxDetailsView-a2beb98a.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-ae08cb04.js +1 -0
- package/dist/esm-es5/copy-text-view-d8822c16.js +1 -0
- package/dist/esm-es5/{data-ee3ae298.js → data-dea73d4d.js} +1 -1
- package/dist/esm-es5/{global-80edfef3.js → global-ef7a7354.js} +1 -1
- package/dist/esm-es5/{index.module-38dad6c9.js → index.module-c9811a48.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-9c90767d.js → re-render-7e22fb0d.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_44.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.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-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-797601b0.js → sqm-navigation-sidebar-item-view-bedd6ed7.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-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-5719eb87.js → sqm-portal-email-verification-view-37bee5df.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-9a82fe2e.js → sqm-portal-profile-view-afb6d879.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-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.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/sqm-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-4e70ac0e.js → useChildElements-3d872cef.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-0f04459e.js → useInstantAccessRegistration-dda1f52b.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-7eeec61b.js → usePayoutStatus-93462be3.js} +1 -1
- package/dist/esm-es5/{usePortalLogin-d0720c81.js → usePortalLogin-e95df3c3.js} +1 -1
- package/dist/esm-es5/{usePortalRegistrationForm-afc0171e.js → usePortalRegistrationForm-1eb3cd72.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-311e6d72.js → useReferralCodes-c2e809cf.js} +1 -1
- package/dist/esm-es5/{useReferralTable-65a01a6a.js → useReferralTable-909ccb28.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-18c2cea7.js → useRegistrationFormState-24d594ea.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-f9413de9.js → useVerificationEmail-55e0e98f.js} +1 -1
- package/dist/esm-es5/{utilities-ad9c2893.js → utilities-72c07b09.js} +1 -1
- package/dist/esm-es5/{utils-27b2ed4b.js → utils-a86c25e9.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-087b86af.system.entry.js +1 -0
- package/dist/mint-components/{p-e34b460e.entry.js → p-0bc0f590.entry.js} +1 -1
- package/dist/mint-components/{p-8e2bead4.js → p-0ec54f97.js} +1 -1
- package/dist/mint-components/{p-aa77d858.system.entry.js → p-0ef925fd.system.entry.js} +1 -1
- package/dist/mint-components/{p-3d99fa43.entry.js → p-10c63703.entry.js} +1 -1
- package/dist/mint-components/p-125a894f.js +1 -0
- package/dist/mint-components/{p-7270fb59.entry.js → p-14fd4b05.entry.js} +1 -1
- package/dist/mint-components/{p-bb627d95.entry.js → p-155f7d25.entry.js} +2 -2
- package/dist/mint-components/{p-d8c5b80a.system.js → p-171310d9.system.js} +1 -1
- package/dist/mint-components/{p-1c1f4ce7.system.js → p-17a0f310.system.js} +1 -1
- package/dist/mint-components/p-18d33a7f.js +448 -0
- package/dist/mint-components/{p-773ce89c.system.js → p-2074933f.system.js} +1 -1
- package/dist/mint-components/{p-5e0af707.entry.js → p-20916402.entry.js} +2 -2
- package/dist/mint-components/{p-14bc40a9.entry.js → p-261ef00a.entry.js} +1 -1
- package/dist/mint-components/{p-0cba75e6.system.entry.js → p-26a7051d.system.entry.js} +1 -1
- package/dist/mint-components/{p-d5f1df29.entry.js → p-27a7f6a6.entry.js} +1 -1
- package/dist/mint-components/{p-d2e2e10f.js → p-28c50364.js} +1 -1
- package/dist/mint-components/{p-b065215a.entry.js → p-29398c98.entry.js} +1 -1
- package/dist/mint-components/{p-0e59a91e.js → p-293e3b25.js} +1 -1
- package/dist/mint-components/{p-6e069052.entry.js → p-29ba2eaa.entry.js} +1 -1
- package/dist/mint-components/{p-433ca566.system.entry.js → p-29fa3d84.system.entry.js} +1 -1
- package/dist/mint-components/{p-00378aec.entry.js → p-2c0c8872.entry.js} +2 -2
- package/dist/mint-components/{p-9dbfdb41.system.entry.js → p-2e1eceb7.system.entry.js} +1 -1
- package/dist/mint-components/{p-a6234a78.entry.js → p-2fd59b38.entry.js} +1 -1
- package/dist/mint-components/{p-0d22c0e5.system.entry.js → p-355079f4.system.entry.js} +1 -1
- package/dist/mint-components/{p-c2c59452.system.js → p-37ffa277.system.js} +1 -1
- package/dist/mint-components/{p-c3884e55.entry.js → p-386ec00c.entry.js} +1 -1
- package/dist/mint-components/{p-e425b7a1.entry.js → p-3b0e2094.entry.js} +2 -2
- package/dist/mint-components/p-40752a0f.entry.js +1 -0
- package/dist/mint-components/{p-485e2d9f.system.entry.js → p-40c33b6a.system.entry.js} +1 -1
- package/dist/mint-components/{p-a4e56204.js → p-43246ab1.js} +1 -1
- package/dist/mint-components/{p-b3da317b.system.entry.js → p-43d9c1c5.system.entry.js} +1 -1
- package/dist/mint-components/{p-3787a4d6.js → p-49400aab.js} +2 -2
- package/dist/mint-components/{p-f0e0d0b9.system.entry.js → p-4a0f42ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-19f41a8e.js → p-4a379796.js} +1 -1
- package/dist/mint-components/p-4ae4db45.system.js +1 -0
- package/dist/mint-components/{p-e4e3ddb6.system.js → p-4ddf5eaa.system.js} +1 -1
- package/dist/mint-components/{p-a2533860.system.entry.js → p-4f5a3dad.system.entry.js} +1 -1
- package/dist/mint-components/{p-0e66f410.system.entry.js → p-5116afad.system.entry.js} +1 -1
- package/dist/mint-components/{p-3cb249c3.js → p-513f5d80.js} +1 -1
- package/dist/mint-components/{p-3dc34570.system.js → p-537a3894.system.js} +1 -1
- package/dist/mint-components/{p-258f4e5e.system.entry.js → p-54abb144.system.entry.js} +1 -1
- package/dist/mint-components/{p-6ad674c2.js → p-552a6d1b.js} +1 -1
- package/dist/mint-components/p-5581ba8e.system.js +1 -0
- package/dist/mint-components/{p-c1629004.entry.js → p-56069d3f.entry.js} +1 -1
- package/dist/mint-components/{p-1394d253.system.js → p-574b08e7.system.js} +1 -1
- package/dist/mint-components/{p-002e6205.system.entry.js → p-58e0eccc.system.entry.js} +1 -1
- package/dist/mint-components/{p-8543a70f.system.entry.js → p-5aad9df5.system.entry.js} +1 -1
- package/dist/mint-components/{p-4271f436.system.entry.js → p-5b29d833.system.entry.js} +1 -1
- package/dist/mint-components/{p-ef8b70cd.system.entry.js → p-5bb59fa8.system.entry.js} +1 -1
- package/dist/mint-components/{p-22d20816.system.entry.js → p-5e8d6f3a.system.entry.js} +1 -1
- package/dist/mint-components/{p-7af4fba0.system.entry.js → p-60ec0961.system.entry.js} +1 -1
- package/dist/mint-components/p-621f3e30.entry.js +1 -0
- package/dist/mint-components/p-625ca62f.entry.js +1 -0
- package/dist/mint-components/{p-1f511d5d.entry.js → p-682359ae.entry.js} +1 -1
- package/dist/mint-components/p-6919414d.entry.js +33 -0
- package/dist/mint-components/{p-1d4a327c.js → p-699a9b20.js} +1 -1
- package/dist/mint-components/{p-a148663a.system.js → p-6c82d60c.system.js} +1 -1
- package/dist/mint-components/{p-f307b716.js → p-71af93e3.js} +1 -1
- package/dist/mint-components/{p-fa6fba34.system.js → p-71daeed9.system.js} +1 -1
- package/dist/mint-components/p-7558f9ef.entry.js +258 -0
- package/dist/mint-components/{p-9f82e69d.entry.js → p-75b8fd75.entry.js} +1 -1
- package/dist/mint-components/{p-05650cb6.entry.js → p-78878a5a.entry.js} +1 -1
- package/dist/mint-components/{p-ac2fdad8.system.entry.js → p-78c754de.system.entry.js} +1 -1
- package/dist/mint-components/{p-b9bccc55.entry.js → p-7eb0573c.entry.js} +1 -1
- package/dist/mint-components/{p-df37ef17.system.js → p-7ff34e84.system.js} +1 -1
- package/dist/mint-components/{p-15012f59.system.js → p-867b2baf.system.js} +1 -1
- package/dist/mint-components/{p-1a278658.entry.js → p-92a54b0c.entry.js} +1 -1
- package/dist/mint-components/{p-dbe29e53.system.entry.js → p-9491f5fb.system.entry.js} +1 -1
- package/dist/mint-components/p-976ee669.js +1 -0
- package/dist/mint-components/{p-4d19270b.js → p-97dc6863.js} +2 -2
- package/dist/mint-components/{p-0b0f49ad.entry.js → p-9943f53e.entry.js} +1 -1
- package/dist/mint-components/{p-ebb487d0.system.entry.js → p-9ab8a0fd.system.entry.js} +1 -1
- package/dist/mint-components/{p-5b9297cd.system.entry.js → p-9b29f4f5.system.entry.js} +1 -1
- package/dist/mint-components/{p-862845d7.js → p-9c79ab08.js} +2 -2
- package/dist/mint-components/p-a0f3c1f0.js +1 -0
- package/dist/mint-components/{p-89b859c7.system.entry.js → p-a4564acb.system.entry.js} +1 -1
- package/dist/mint-components/{p-a5c9ce6c.entry.js → p-a4e8eb33.entry.js} +1 -1
- package/dist/mint-components/{p-9aadc253.entry.js → p-a52df294.entry.js} +1 -1
- package/dist/mint-components/{p-e64fbb70.js → p-a5b58d30.js} +1 -1
- package/dist/mint-components/p-a5e8bfd4.system.js +1 -0
- package/dist/mint-components/{p-0bb21f5b.system.entry.js → p-a8c86cd8.system.entry.js} +1 -1
- package/dist/mint-components/p-a8e92144.js +1 -0
- package/dist/mint-components/{p-5ed49bf2.js → p-aa596749.js} +1 -1
- package/dist/mint-components/{p-3d1b91a1.system.entry.js → p-af69ee79.system.entry.js} +1 -1
- package/dist/mint-components/{p-711bc624.entry.js → p-b2fdb0b1.entry.js} +1 -1
- package/dist/mint-components/{p-da3ffd4e.system.entry.js → p-b4a922e1.system.entry.js} +1 -1
- package/dist/mint-components/{p-9fb8b33a.system.js → p-bb5d153f.system.js} +1 -1
- package/dist/mint-components/{p-0ea61502.system.js → p-bcac83f0.system.js} +1 -1
- package/dist/mint-components/p-bd093069.system.entry.js +1 -0
- package/dist/mint-components/{p-b22b7891.js → p-c30ad421.js} +1 -1
- package/dist/mint-components/{p-da6fe95f.system.entry.js → p-cc8ca3ff.system.entry.js} +1 -1
- package/dist/mint-components/{p-8dc1cd0f.entry.js → p-d08bcd88.entry.js} +1 -1
- package/dist/mint-components/{p-d399162b.system.js → p-d09d3b8f.system.js} +1 -1
- package/dist/mint-components/{p-d821418e.system.js → p-d14f3149.system.js} +1 -1
- package/dist/mint-components/{p-100c878b.system.entry.js → p-d399b343.system.entry.js} +1 -1
- package/dist/mint-components/{p-f51e41dd.system.entry.js → p-d51c9a98.system.entry.js} +1 -1
- package/dist/mint-components/p-d6ea42b6.entry.js +9 -0
- package/dist/mint-components/{p-abd33116.system.entry.js → p-d848957e.system.entry.js} +1 -1
- package/dist/mint-components/{p-672d144e.entry.js → p-dcc50d90.entry.js} +1 -1
- package/dist/mint-components/p-e05590ac.system.entry.js +1 -0
- package/dist/mint-components/{p-91014439.system.js → p-e174b704.system.js} +1 -1
- package/dist/mint-components/{p-9d29a0ff.system.entry.js → p-e71e147a.system.entry.js} +1 -1
- package/dist/mint-components/{p-94f9fbf7.entry.js → p-ea063d99.entry.js} +1 -1
- package/dist/mint-components/{p-587115cb.system.entry.js → p-ee92a728.system.entry.js} +1 -1
- package/dist/mint-components/{p-82505f6e.system.js → p-f3392945.system.js} +1 -1
- package/dist/mint-components/{p-d785a297.system.entry.js → p-f4202a64.system.entry.js} +1 -1
- package/dist/mint-components/{p-fb5be0c5.js → p-f5fff87e.js} +1 -1
- package/dist/mint-components/{p-c79bb1c6.entry.js → p-f764e51f.entry.js} +2 -2
- package/dist/mint-components/p-f7919872.system.js +1 -0
- package/dist/mint-components/{p-22c11f0e.entry.js → p-f9295990.entry.js} +1 -1
- package/dist/mint-components/p-fa0ad3f2.entry.js +11 -0
- package/dist/mint-components/{p-e539fed3.entry.js → p-fab109de.entry.js} +1 -1
- package/dist/mint-components/{p-ad586adc.system.entry.js → p-fcbed888.system.entry.js} +1 -1
- package/dist/mint-components/{p-578a27c8.system.js → p-ff0e1564.system.js} +1 -1
- package/dist/types/components/sqm-portal-forgot-password/PortalForgotPassword.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +2 -2
- package/dist/types/components.d.ts +4 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/cjs/RewardExchangeListData-a787ce54.js +0 -1144
- package/dist/cjs/copy-text-view-f0313f78.js +0 -121
- package/dist/cjs/sqm-coupon-code-view-a869384e.js +0 -35
- package/dist/cjs/sqm-coupon-code.cjs.entry.js +0 -285
- package/dist/cjs/sqm-portal-forgot-password-view-0a8d3243.js +0 -53
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +0 -156
- package/dist/cjs/sqm-referral-code.cjs.entry.js +0 -177
- package/dist/cjs/sqm-reward-exchange-list.cjs.entry.js +0 -1018
- package/dist/cjs/sqm-share-code.cjs.entry.js +0 -147
- package/dist/cjs/sqm-share-link.cjs.entry.js +0 -102
- package/dist/esm/RewardExchangeListData-11c043e3.js +0 -1122
- package/dist/esm/copy-text-view-3129fb22.js +0 -119
- package/dist/esm/sqm-coupon-code-view-af016712.js +0 -33
- package/dist/esm/sqm-coupon-code.entry.js +0 -281
- package/dist/esm/sqm-portal-forgot-password-view-0e795cdd.js +0 -51
- package/dist/esm/sqm-portal-forgot-password.entry.js +0 -152
- package/dist/esm/sqm-referral-code.entry.js +0 -173
- package/dist/esm/sqm-reward-exchange-list.entry.js +0 -1014
- package/dist/esm/sqm-share-code.entry.js +0 -143
- package/dist/esm/sqm-share-link.entry.js +0 -98
- package/dist/esm-es5/RewardExchangeListData-11c043e3.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-c0600f22.js +0 -1
- package/dist/esm-es5/copy-text-view-3129fb22.js +0 -1
- package/dist/esm-es5/copy-text-view-a319c261.js +0 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +0 -1
- package/dist/esm-es5/sqm-coupon-code-view-af016712.js +0 -1
- package/dist/esm-es5/sqm-coupon-code.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +0 -1
- package/dist/esm-es5/sqm-referral-code.entry.js +0 -1
- package/dist/esm-es5/sqm-reward-exchange-list.entry.js +0 -1
- package/dist/esm-es5/sqm-share-code.entry.js +0 -1
- package/dist/esm-es5/sqm-share-link.entry.js +0 -1
- package/dist/mint-components/RewardExchangeListData-11c043e3.js +0 -1122
- package/dist/mint-components/RewardExchangeListData-546ffbb9.system.js +0 -1
- package/dist/mint-components/copy-text-view-3129fb22.js +0 -119
- package/dist/mint-components/copy-text-view-33cac657.system.js +0 -1
- package/dist/mint-components/p-000c91b1.js +0 -1
- package/dist/mint-components/p-1276830a.entry.js +0 -258
- package/dist/mint-components/p-1337f47c.entry.js +0 -1
- package/dist/mint-components/p-1de49f76.js +0 -1
- package/dist/mint-components/p-209ea185.js +0 -1
- package/dist/mint-components/p-42da8239.system.js +0 -1
- package/dist/mint-components/p-6b904749.js +0 -448
- package/dist/mint-components/p-7059ee40.system.entry.js +0 -1
- package/dist/mint-components/p-7970e73a.js +0 -1
- package/dist/mint-components/p-9374b5bb.system.entry.js +0 -1
- package/dist/mint-components/p-a89baf7b.system.js +0 -1
- package/dist/mint-components/p-bdc86ee3.system.js +0 -1
- package/dist/mint-components/p-be770d69.system.entry.js +0 -1
- package/dist/mint-components/p-c4886223.entry.js +0 -1
- package/dist/mint-components/p-c7965639.entry.js +0 -1
- package/dist/mint-components/p-cab1f502.js +0 -1
- package/dist/mint-components/p-e57d61af.system.js +0 -1
- package/dist/mint-components/p-e9d0caf7.entry.js +0 -11
- package/dist/mint-components/p-ed69dc98.system.entry.js +0 -1
- package/dist/mint-components/p-f4dc053e.entry.js +0 -33
- package/dist/mint-components/p-f4f57363.system.js +0 -1
- package/dist/mint-components/p-f9f67437.entry.js +0 -9
- package/dist/mint-components/p-fb77f662.entry.js +0 -1
- package/dist/mint-components/sqm-coupon-code-view-40fd8d8b.system.js +0 -1
- package/dist/mint-components/sqm-coupon-code-view-af016712.js +0 -33
- package/dist/mint-components/sqm-coupon-code.entry.js +0 -281
- package/dist/mint-components/sqm-coupon-code.system.entry.js +0 -1
- package/dist/mint-components/sqm-referral-code.entry.js +0 -173
- package/dist/mint-components/sqm-referral-code.system.entry.js +0 -1
- package/dist/mint-components/sqm-reward-exchange-list.entry.js +0 -1014
- package/dist/mint-components/sqm-reward-exchange-list.system.entry.js +0 -1
- package/dist/mint-components/sqm-share-code.entry.js +0 -143
- package/dist/mint-components/sqm-share-code.system.entry.js +0 -1
- package/dist/mint-components/sqm-share-link.entry.js +0 -98
- package/dist/mint-components/sqm-share-link.system.entry.js +0 -1
- package/dist/mint-components/sqm-stencilbook.entry.js +0 -20330
- package/dist/mint-components/sqm-stencilbook.system.entry.js +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { h } from './index-bfb7f924.js';
|
|
2
|
-
import { c as createStyleSheet } from './JSS-8c381d8b.js';
|
|
3
|
-
import { H as HostBlock } from './mixins-acc245cc.js';
|
|
4
|
-
|
|
5
|
-
const vanillaStyle = `
|
|
6
|
-
:host{
|
|
7
|
-
display: block;
|
|
8
|
-
width: 100%;
|
|
9
|
-
}
|
|
10
|
-
`;
|
|
11
|
-
const textAlignStyle = {
|
|
12
|
-
right: `
|
|
13
|
-
sl-input::part(input){
|
|
14
|
-
text-align: right;
|
|
15
|
-
}`,
|
|
16
|
-
center: `
|
|
17
|
-
sl-input::part(input){
|
|
18
|
-
text-align: center;
|
|
19
|
-
}`,
|
|
20
|
-
left: ``,
|
|
21
|
-
};
|
|
22
|
-
const disabledStyles = `
|
|
23
|
-
sl-input::part(input){
|
|
24
|
-
cursor: default;
|
|
25
|
-
}
|
|
26
|
-
`;
|
|
27
|
-
function CopyTextView(props) {
|
|
28
|
-
const { buttonStyle = "icon" } = props;
|
|
29
|
-
const style = {
|
|
30
|
-
HostBlock: HostBlock,
|
|
31
|
-
inputStyle: {
|
|
32
|
-
"&::part(input)": {
|
|
33
|
-
textOverflow: "ellipsis",
|
|
34
|
-
width: "100%",
|
|
35
|
-
},
|
|
36
|
-
"&::part(base)": {
|
|
37
|
-
"--sl-input-border-radius": `${props.borderRadius}px` || "var(--sqm-border-radius-normal)",
|
|
38
|
-
"--sl-input-background-color": props.backgroundColor || "var(--sqm-portal-background)",
|
|
39
|
-
"--sl-input-color": props.textColor || "var(--sqm-input-color)",
|
|
40
|
-
"--sl-input-border-color": "var(--sqm-border-color)",
|
|
41
|
-
"--sl-input-border-color-hover": "#999999",
|
|
42
|
-
"--sl-input-border-color-focus": "#999999",
|
|
43
|
-
"--sl-input-color-hover": "var(--sqm-input-color-hover)",
|
|
44
|
-
"--sl-input-color-focus": "var(--sqm-input-color-focus)",
|
|
45
|
-
"--sl-input-color-disabled": "var(--sqm-input-disabled-color)",
|
|
46
|
-
"--sl-input-background-color-focus": "var(--sqm-portal-background)",
|
|
47
|
-
"--sl-input-background-color-hover": "var(--sqm-portal-background)",
|
|
48
|
-
cursor: "pointer",
|
|
49
|
-
overflow: "visible",
|
|
50
|
-
borderRadius: `${props.borderRadius}px` || "var(--sqm-border-radius-normal)",
|
|
51
|
-
background: props.backgroundColor || "var(--sqm-portal-background)",
|
|
52
|
-
border: `var(--sqm-border-thickness) solid ${props.borderColor || "var(--sqm-input-border-color)"}`,
|
|
53
|
-
},
|
|
54
|
-
width: "100%",
|
|
55
|
-
},
|
|
56
|
-
icon: {
|
|
57
|
-
"&::part(base)": {
|
|
58
|
-
color: props.textColor || "var(--sqm-input-color)",
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
inputErrorStyle: {
|
|
62
|
-
"&::part(base)": {
|
|
63
|
-
border: "2px solid red",
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
ContainerDiv: {
|
|
67
|
-
display: "flex",
|
|
68
|
-
alignItems: "flex-start",
|
|
69
|
-
flexDirection: "column",
|
|
70
|
-
justifyContent: "center",
|
|
71
|
-
gap: "var(--sl-spacing-x-small)",
|
|
72
|
-
width: "100%",
|
|
73
|
-
},
|
|
74
|
-
containerStyle: {
|
|
75
|
-
display: "flex",
|
|
76
|
-
alignItems: "center",
|
|
77
|
-
gap: "var(--sl-spacing-x-small)",
|
|
78
|
-
width: "100%",
|
|
79
|
-
},
|
|
80
|
-
errorTextStyle: {
|
|
81
|
-
margin: "0",
|
|
82
|
-
color: "var(--sqm-danger-color-text)",
|
|
83
|
-
},
|
|
84
|
-
notificationTextStyle: {
|
|
85
|
-
margin: "0",
|
|
86
|
-
color: "inherit",
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
const sheet = createStyleSheet(style);
|
|
90
|
-
const styleString = sheet.toString();
|
|
91
|
-
const error = !props.loading && props.error;
|
|
92
|
-
const inputText = error ? props.inputPlaceholderText : props.copyString;
|
|
93
|
-
const disabled = error || props.loading || props.disabled;
|
|
94
|
-
const tooltipPlacement = props.buttonStyle === "button-below"
|
|
95
|
-
? "bottom"
|
|
96
|
-
: props.buttonStyle === "button-outside"
|
|
97
|
-
? "top"
|
|
98
|
-
: "top-end";
|
|
99
|
-
const copyButton = (h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: tooltipPlacement, disabled: props.disabled, open: props.open, skidding: props.buttonStyle === "icon" ? -5 : 0, slot: "suffix" }, buttonStyle === "icon" ? (h("sl-icon-button", { class: sheet.classes.icon, exportparts: "base: icon-button-base", onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, name: "files", disabled: disabled })) : (h("sl-button", { exportparts: `base: ${props.buttonType || "primary"}button-base`, onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, size: "medium", style: { width: `${buttonStyle === "button-below" && "100%"}` }, disabled: disabled, type: "primary" }, props.copyButtonLabel || "Copy"))));
|
|
100
|
-
return (h("div", { class: sheet.classes.ContainerDiv },
|
|
101
|
-
h("style", { type: "text/css" },
|
|
102
|
-
styleString,
|
|
103
|
-
vanillaStyle,
|
|
104
|
-
textAlignStyle[props.textAlign],
|
|
105
|
-
disabled && disabledStyles),
|
|
106
|
-
h("div", { class: sheet.classes.containerStyle, style: {
|
|
107
|
-
flexDirection: `${buttonStyle === "button-below" ? "column" : "row"}`,
|
|
108
|
-
} },
|
|
109
|
-
h("sl-input", { class: `${sheet.classes.inputStyle} ${error ? sheet.classes.inputErrorStyle : ""}`, exportparts: "base: input-base, input: input-field", value: props.loading ? "Loading..." : inputText, readonly: true, disabled: disabled },
|
|
110
|
-
buttonStyle === "icon" && copyButton,
|
|
111
|
-
error && (h("p", { slot: "help-text", class: sheet.classes.errorTextStyle }, props.errorText))),
|
|
112
|
-
(buttonStyle === "button-outside" || buttonStyle === "button-below") &&
|
|
113
|
-
copyButton),
|
|
114
|
-
props.isCopied &&
|
|
115
|
-
props.showNotificationText &&
|
|
116
|
-
props.notificationText && (h("p", { part: "sqm-notification-text", class: sheet.classes.notificationTextStyle }, props.notificationText))));
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export { CopyTextView as C };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { h } from './index-bfb7f924.js';
|
|
2
|
-
import { c as createStyleSheet } from './JSS-8c381d8b.js';
|
|
3
|
-
import { H as HostBlock } from './mixins-acc245cc.js';
|
|
4
|
-
import { C as CopyTextView } from './copy-text-view-3129fb22.js';
|
|
5
|
-
|
|
6
|
-
function CouponCodeView(props) {
|
|
7
|
-
const error = !props.loading && props.error;
|
|
8
|
-
const style = {
|
|
9
|
-
HostBlock: HostBlock,
|
|
10
|
-
couponCodeLabel: {
|
|
11
|
-
margin: "var(--sl-spacing-x-small) 0",
|
|
12
|
-
color: props.textColor || "var(--sqm-text-subdued)",
|
|
13
|
-
fontSize: "var(--sl-font-size-small)",
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
const vanillaStyle = `
|
|
17
|
-
:host{
|
|
18
|
-
display: block;
|
|
19
|
-
width: 100%;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
const sheet = createStyleSheet(style);
|
|
23
|
-
const styleString = sheet.toString();
|
|
24
|
-
return (h("div", null,
|
|
25
|
-
h("style", { type: "text/css" },
|
|
26
|
-
styleString,
|
|
27
|
-
vanillaStyle),
|
|
28
|
-
h("p", { class: sheet.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
29
|
-
error ? (h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
30
|
-
h("div", { part: "erroralert-text" }, props.errorText))) : (h(CopyTextView, Object.assign({}, props)))));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { CouponCodeView as C };
|
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-bfb7f924.js';
|
|
2
|
-
import { i as useState, o as h } from './dom-context-hooks.module-01c1b885.js';
|
|
3
|
-
import { d as dist, J, H, B, $ as $e, w as wn, i as isDemo } from './index.module-83586215.js';
|
|
4
|
-
import './jss-preset-default.esm-c36417f8.js';
|
|
5
|
-
import './JSS-8c381d8b.js';
|
|
6
|
-
import './mixins-acc245cc.js';
|
|
7
|
-
import { g as getProps } from './utils-93e14db3.js';
|
|
8
|
-
import { c as cjs } from './cjs-e829b75b.js';
|
|
9
|
-
import './copy-text-view-3129fb22.js';
|
|
10
|
-
import { C as CouponCodeView } from './sqm-coupon-code-view-af016712.js';
|
|
11
|
-
|
|
12
|
-
const FuelTankRewardsQuery = dist.gql `
|
|
13
|
-
query fuelTankRewardsQuery($programId: ID!) {
|
|
14
|
-
user: viewer {
|
|
15
|
-
... on User {
|
|
16
|
-
instantAccessRewards(
|
|
17
|
-
filter: { type_eq: FUELTANK, programId_eq: $programId }
|
|
18
|
-
) {
|
|
19
|
-
data {
|
|
20
|
-
fuelTankCode
|
|
21
|
-
fuelTankType
|
|
22
|
-
statuses
|
|
23
|
-
dateGiven
|
|
24
|
-
dateExpires
|
|
25
|
-
dateRedeemed
|
|
26
|
-
dateCancelled
|
|
27
|
-
dateScheduledFor
|
|
28
|
-
datePendingForUnhandledError
|
|
29
|
-
}
|
|
30
|
-
count
|
|
31
|
-
totalCount
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
38
|
-
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
39
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
42
|
-
function useCouponCode(props) {
|
|
43
|
-
var _a, _b, _c;
|
|
44
|
-
const user = J();
|
|
45
|
-
const programId = H();
|
|
46
|
-
const engagementMedium = B();
|
|
47
|
-
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
48
|
-
const { data, loading, refetch, errors } = wn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
49
|
-
const getStatus = (reward) => {
|
|
50
|
-
if (!reward || !reward.statuses)
|
|
51
|
-
return "ERROR";
|
|
52
|
-
const state = reward.statuses[reward.statuses.length - 1];
|
|
53
|
-
if (state === "PENDING" && reward.dateScheduledFor === null)
|
|
54
|
-
return "EMPTY_TANK";
|
|
55
|
-
return state;
|
|
56
|
-
};
|
|
57
|
-
const reward = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.instantAccessRewards) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[0];
|
|
58
|
-
const rewardStatus = getStatus(reward);
|
|
59
|
-
const dateAvailable = rewardStatus === "PENDING" && reward.dateScheduledFor
|
|
60
|
-
? new Date(reward.dateScheduledFor).toLocaleDateString("default", {
|
|
61
|
-
day: "numeric",
|
|
62
|
-
month: "long",
|
|
63
|
-
year: "numeric",
|
|
64
|
-
})
|
|
65
|
-
: undefined;
|
|
66
|
-
const copyString = (reward === null || reward === void 0 ? void 0 : reward.fuelTankCode) || "...";
|
|
67
|
-
const [open, setOpen] = useState(false);
|
|
68
|
-
function onClick() {
|
|
69
|
-
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
70
|
-
// Only if called from a user-initiated event
|
|
71
|
-
navigator.clipboard.writeText(copyString);
|
|
72
|
-
setOpen(true);
|
|
73
|
-
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
74
|
-
sendLoadEvent({
|
|
75
|
-
eventMeta: {
|
|
76
|
-
programId,
|
|
77
|
-
id: user === null || user === void 0 ? void 0 : user.id,
|
|
78
|
-
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
79
|
-
type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
|
|
80
|
-
meta: {
|
|
81
|
-
engagementMedium,
|
|
82
|
-
shareMedium: "DIRECT",
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
const getRewardStatusText = (status) => {
|
|
88
|
-
switch (status) {
|
|
89
|
-
case "CANCELLED":
|
|
90
|
-
return props.cancelledErrorText;
|
|
91
|
-
case "EXPIRED":
|
|
92
|
-
return props.expiredErrorText;
|
|
93
|
-
case "EMPTY_TANK":
|
|
94
|
-
return props.fullfillmentErrorText;
|
|
95
|
-
case "PENDING":
|
|
96
|
-
return props.pendingErrorText.replace("{unpendDate}", dateAvailable);
|
|
97
|
-
case "REDEEMED":
|
|
98
|
-
return props.redeemedErrorText;
|
|
99
|
-
case "AVAILABLE":
|
|
100
|
-
return "";
|
|
101
|
-
default:
|
|
102
|
-
return props.genericErrorText;
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
const getRewardStatusErrorType = (status) => {
|
|
106
|
-
switch (status) {
|
|
107
|
-
case "EXPIRED":
|
|
108
|
-
case "EMPTY_TANK":
|
|
109
|
-
case "CANCELLED":
|
|
110
|
-
case "ERROR":
|
|
111
|
-
return "warning";
|
|
112
|
-
case "PENDING":
|
|
113
|
-
return "info";
|
|
114
|
-
case "REDEEMED":
|
|
115
|
-
return "success";
|
|
116
|
-
default:
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
const errorText = getRewardStatusText(rewardStatus);
|
|
121
|
-
const errorType = getRewardStatusErrorType(rewardStatus);
|
|
122
|
-
const error = rewardStatus !== "AVAILABLE";
|
|
123
|
-
return {
|
|
124
|
-
...props,
|
|
125
|
-
onClick,
|
|
126
|
-
open,
|
|
127
|
-
copyString,
|
|
128
|
-
error,
|
|
129
|
-
errorText,
|
|
130
|
-
dateAvailable,
|
|
131
|
-
loading,
|
|
132
|
-
errorType,
|
|
133
|
-
buttonType: props.buttonType || "primary",
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const CouponCode = class {
|
|
138
|
-
constructor(hostRef) {
|
|
139
|
-
registerInstance(this, hostRef);
|
|
140
|
-
/**
|
|
141
|
-
* Shown inside a tooltip after someone has successfully copied the link to their clipboard.
|
|
142
|
-
*
|
|
143
|
-
* @uiName Tooltip text
|
|
144
|
-
*/
|
|
145
|
-
this.tooltiptext = "Copied to Clipboard";
|
|
146
|
-
/**
|
|
147
|
-
* The number of milliseconds that the tooltip appears for
|
|
148
|
-
*
|
|
149
|
-
* @uiName Tooltip lifespan
|
|
150
|
-
*/
|
|
151
|
-
this.tooltiplifespan = 1000;
|
|
152
|
-
/**
|
|
153
|
-
* @uiName Coupon code alignment
|
|
154
|
-
* @uiType string
|
|
155
|
-
* @uiEnum ["left", "center", "right"]
|
|
156
|
-
* @uiEnumNames ["Left", "Center", "Right"]
|
|
157
|
-
* @uiGroup Style
|
|
158
|
-
*/
|
|
159
|
-
this.textAlign = "left";
|
|
160
|
-
/**
|
|
161
|
-
* @uiName Copy button label
|
|
162
|
-
*/
|
|
163
|
-
this.copyButtonLabel = "Copy Coupon";
|
|
164
|
-
/**
|
|
165
|
-
* Set the copy button style and placement.
|
|
166
|
-
*
|
|
167
|
-
* @uiName Style
|
|
168
|
-
* @uiType string
|
|
169
|
-
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
170
|
-
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
171
|
-
* @uiGroup Style
|
|
172
|
-
*/
|
|
173
|
-
this.buttonStyle = "icon";
|
|
174
|
-
/**
|
|
175
|
-
* @uiName Coupon code label
|
|
176
|
-
*/
|
|
177
|
-
this.couponCodeLabel = "Your coupon code:";
|
|
178
|
-
/**
|
|
179
|
-
* Display this message when the coupon code has been cancelled.
|
|
180
|
-
*
|
|
181
|
-
* @uiWidget textArea
|
|
182
|
-
* @uiName Cancelled code error message
|
|
183
|
-
* @uiGroup Coupon code error
|
|
184
|
-
*/
|
|
185
|
-
this.cancelledErrorText = "This code has been cancelled. Please reach out to the Support team for help resolving this issue.";
|
|
186
|
-
/**
|
|
187
|
-
* Display this message when the coupon code has already been redeemed.
|
|
188
|
-
*
|
|
189
|
-
* @uiWidget textArea
|
|
190
|
-
* @uiName Redeemed code error message
|
|
191
|
-
* @uiGroup Coupon code error
|
|
192
|
-
*/
|
|
193
|
-
this.redeemedErrorText = "Looks like you’ve already redeemed this code.";
|
|
194
|
-
/**
|
|
195
|
-
* Display this message when the coupon code has expired.
|
|
196
|
-
*
|
|
197
|
-
* @uiWidget textArea
|
|
198
|
-
* @uiName Expired code error message
|
|
199
|
-
* @uiGroup Coupon code error
|
|
200
|
-
*/
|
|
201
|
-
this.expiredErrorText = "Looks like this code has expired. Please reach out to the Support team for help resolving this issue.";
|
|
202
|
-
/**
|
|
203
|
-
* Display this message when the code fails to load due to a fulfillment error.
|
|
204
|
-
*
|
|
205
|
-
* @uiWidget textArea
|
|
206
|
-
* @uiName Code fulfillment error message
|
|
207
|
-
* @uiGroup Coupon code error
|
|
208
|
-
*/
|
|
209
|
-
this.fullfillmentErrorText = "We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue.";
|
|
210
|
-
/**
|
|
211
|
-
* Display this message when the coupon code not available yet. Use the ICU message, {unpendDate}, to show the date the code will be available.
|
|
212
|
-
*
|
|
213
|
-
* @uiWidget textArea
|
|
214
|
-
* @uiName Code pending error message
|
|
215
|
-
* @uiGroup Coupon code error
|
|
216
|
-
*/
|
|
217
|
-
this.pendingErrorText = "Your code will be available on {unpendDate}. Mark your calendar and come back then to redeem your reward!";
|
|
218
|
-
/**
|
|
219
|
-
* Display this message when the code fails to load due to an unspecified error.
|
|
220
|
-
*
|
|
221
|
-
* @uiWidget textArea
|
|
222
|
-
* @uiName Code retrieval error message
|
|
223
|
-
* @uiGroup Coupon code error
|
|
224
|
-
*/
|
|
225
|
-
this.genericErrorText = "We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue.";
|
|
226
|
-
/**
|
|
227
|
-
* Display this text when the coupon code can’t be retrieved.
|
|
228
|
-
*
|
|
229
|
-
* @uiName Coupon code placeholder
|
|
230
|
-
* @uiGroup Coupon code error
|
|
231
|
-
*/
|
|
232
|
-
this.couponCodePlaceholder = "...";
|
|
233
|
-
/**
|
|
234
|
-
* The type of the button (primary or secondary) that will be used to copy the link.
|
|
235
|
-
* @uiName Button Type
|
|
236
|
-
* @uiType string
|
|
237
|
-
* @uiEnum ["primary", "secondary"]
|
|
238
|
-
* @uiEnumNames ["Primary", "Secondary"]
|
|
239
|
-
* @uiGroup Style
|
|
240
|
-
*/
|
|
241
|
-
this.buttonType = "primary";
|
|
242
|
-
h(this);
|
|
243
|
-
}
|
|
244
|
-
disconnectedCallback() { }
|
|
245
|
-
render() {
|
|
246
|
-
const thisProps = getProps(this);
|
|
247
|
-
const props = isDemo()
|
|
248
|
-
? useDemoCouponCode(thisProps)
|
|
249
|
-
: useCouponCode(thisProps);
|
|
250
|
-
return h$1(CouponCodeView, Object.assign({}, props));
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
function useDemoCouponCode(props) {
|
|
254
|
-
const [open, setOpen] = useState(false);
|
|
255
|
-
const copyString = "THANKSJANE125uv125";
|
|
256
|
-
return cjs({
|
|
257
|
-
copyString,
|
|
258
|
-
tooltiptext: props.tooltiptext,
|
|
259
|
-
textAlign: props.textAlign,
|
|
260
|
-
buttonStyle: props.buttonStyle,
|
|
261
|
-
copyButtonLabel: props.copyButtonLabel,
|
|
262
|
-
error: false,
|
|
263
|
-
couponCodePlaceholder: props.couponCodePlaceholder,
|
|
264
|
-
couponCodeLabel: props.couponCodeLabel,
|
|
265
|
-
borderColor: props.borderColor,
|
|
266
|
-
backgroundColor: props.backgroundColor,
|
|
267
|
-
textColor: props.textColor,
|
|
268
|
-
borderRadius: props.borderRadius,
|
|
269
|
-
buttonType: props.buttonType,
|
|
270
|
-
open,
|
|
271
|
-
onClick: () => {
|
|
272
|
-
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
273
|
-
// Only if called from a user-initiated event
|
|
274
|
-
navigator.clipboard.writeText(copyString);
|
|
275
|
-
setOpen(true);
|
|
276
|
-
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
277
|
-
},
|
|
278
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export { CouponCode as sqm_coupon_code };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { h } from './index-b3a06de8.js';
|
|
2
|
-
import { j as jn } from './index.module-38dad6c9.js';
|
|
3
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
|
-
import { A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer } from './mixins-f750863a.js';
|
|
5
|
-
import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
|
|
6
|
-
|
|
7
|
-
const vanillaStyle = `
|
|
8
|
-
:host {
|
|
9
|
-
display: block;
|
|
10
|
-
}
|
|
11
|
-
:host([hidden]): {
|
|
12
|
-
display: none;
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
15
|
-
function PortalForgotPasswordView(props) {
|
|
16
|
-
const { states, callbacks, content } = props;
|
|
17
|
-
const style = {
|
|
18
|
-
FormWrapper: {
|
|
19
|
-
...AuthWrapper,
|
|
20
|
-
background: content.backgroundColor || "var(--sqm-portal-background)",
|
|
21
|
-
borderRadius: content.borderRadius || "var(--sqm-border-radius-normal)",
|
|
22
|
-
border: content.border ||
|
|
23
|
-
"var(--sqm-border-thickness) solid var(--sqm-border-color)",
|
|
24
|
-
},
|
|
25
|
-
Column: { ...AuthColumn },
|
|
26
|
-
ButtonsContainer: AuthButtonsContainer,
|
|
27
|
-
SecondaryButton: {
|
|
28
|
-
margin: "auto",
|
|
29
|
-
display: "block",
|
|
30
|
-
cursor: "pointer",
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
const sheet = createStyleSheet(style);
|
|
34
|
-
const styleString = sheet.toString();
|
|
35
|
-
return (h("div", { class: sheet.classes.FormWrapper, part: "sqm-base" },
|
|
36
|
-
h("style", { type: "text/css" },
|
|
37
|
-
vanillaStyle,
|
|
38
|
-
styleString),
|
|
39
|
-
h(TextSpanView, { type: "h3" }, content.messageSlot),
|
|
40
|
-
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
|
|
41
|
-
props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
42
|
-
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
43
|
-
props.states.success && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
44
|
-
h("div", { part: "successalert-text" }, content.successAlertText))),
|
|
45
|
-
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
46
|
-
h("div", { class: sheet.classes.ButtonsContainer },
|
|
47
|
-
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Reset Password"),
|
|
48
|
-
h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", class: sheet.classes.SecondaryButton, disabled: states.loading, onClick: () => jn.push(states.loginPath) }, content.loginText)))));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export { PortalForgotPasswordView as P };
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-b3a06de8.js';
|
|
2
|
-
import { k as useState, n as h } from './dom-context-hooks.module-63370afd.js';
|
|
3
|
-
import { c as un, j as jn, i as isDemo } from './index.module-38dad6c9.js';
|
|
4
|
-
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
|
-
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
|
-
import './JSS-67b5cff8.js';
|
|
7
|
-
import './mixins-f750863a.js';
|
|
8
|
-
import './sqm-text-span-view-4c17b8c9.js';
|
|
9
|
-
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-0e795cdd.js';
|
|
10
|
-
|
|
11
|
-
function usePortalForgotPassword(props) {
|
|
12
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
13
|
-
const [success, setSuccess] = useState(false);
|
|
14
|
-
const [error, setError] = useState("");
|
|
15
|
-
const [request, { loading, data, errors }] = un();
|
|
16
|
-
const urlParams = new URLSearchParams(jn.location.search);
|
|
17
|
-
const nextPage = urlParams.get("nextPage");
|
|
18
|
-
const submit = async (event) => {
|
|
19
|
-
var _a;
|
|
20
|
-
setError("");
|
|
21
|
-
setSuccess(false);
|
|
22
|
-
let formData = event.detail.formData;
|
|
23
|
-
formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
|
|
24
|
-
jsonpointer.set(formData, key, value);
|
|
25
|
-
});
|
|
26
|
-
const urlParams = nextPage ? { nextPage } : null;
|
|
27
|
-
const redirectPath = props.redirectPath;
|
|
28
|
-
const variables = { email: formData.email, urlParams, redirectPath };
|
|
29
|
-
const result = await request(variables);
|
|
30
|
-
if (result instanceof Error) {
|
|
31
|
-
if (result.message)
|
|
32
|
-
setError(props.networkErrorMessage);
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
if ((_a = result.requestManagedIdentityPasswordResetEmail) === null || _a === void 0 ? void 0 : _a.success) {
|
|
36
|
-
setSuccess(true);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
return {
|
|
40
|
-
states: {
|
|
41
|
-
loading,
|
|
42
|
-
error: ((_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) ||
|
|
43
|
-
error,
|
|
44
|
-
success,
|
|
45
|
-
loginPath: props.loginPath,
|
|
46
|
-
headerText: props.headerText,
|
|
47
|
-
loginText: props.loginText,
|
|
48
|
-
},
|
|
49
|
-
callbacks: {
|
|
50
|
-
submit,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const PortalForgotPassword = class {
|
|
56
|
-
constructor(hostRef) {
|
|
57
|
-
registerInstance(this, hostRef);
|
|
58
|
-
this.ignored = true;
|
|
59
|
-
/**
|
|
60
|
-
* Redirect participants to this page after they verify their email.
|
|
61
|
-
*
|
|
62
|
-
* @uiName Email redirect
|
|
63
|
-
* @uiWidget pageSelect
|
|
64
|
-
*/
|
|
65
|
-
this.redirectPath = "/resetPassword";
|
|
66
|
-
/**
|
|
67
|
-
* @uiName Email field label
|
|
68
|
-
*/
|
|
69
|
-
this.emailLabel = "Email";
|
|
70
|
-
/**
|
|
71
|
-
* @uiName Password reset button text
|
|
72
|
-
*/
|
|
73
|
-
this.submitLabel = "Request Password Reset";
|
|
74
|
-
/**
|
|
75
|
-
* @uiName Login redirect path
|
|
76
|
-
* @uiWidget pageSelect
|
|
77
|
-
*/
|
|
78
|
-
this.loginPath = "/login";
|
|
79
|
-
/**
|
|
80
|
-
* @uiName Header text
|
|
81
|
-
* @uiWidget textArea
|
|
82
|
-
*/
|
|
83
|
-
this.headerText = "Enter your email below to receive a password reset link.";
|
|
84
|
-
/**
|
|
85
|
-
* @uiName Sign in link text
|
|
86
|
-
*/
|
|
87
|
-
this.loginText = "Sign In";
|
|
88
|
-
/**
|
|
89
|
-
* Displayed when the forgot password action fails due to a network error. The participant can try refreshing the page.
|
|
90
|
-
* @uiName Network error message
|
|
91
|
-
*/
|
|
92
|
-
this.networkErrorMessage = "An error occurred while loading this page. Please refresh the page.";
|
|
93
|
-
/**
|
|
94
|
-
* @uiName Email verification sent text
|
|
95
|
-
*/
|
|
96
|
-
this.successAlertText = "If an account with that email exists, a password reset email will be sent.";
|
|
97
|
-
/**
|
|
98
|
-
* @uiName Background color
|
|
99
|
-
* @uiWidget color
|
|
100
|
-
*/
|
|
101
|
-
this.backgroundColor = "var(--sqm-portal-background, #ffffff)";
|
|
102
|
-
/**
|
|
103
|
-
* @uiName Border radius
|
|
104
|
-
* @uiWidget number
|
|
105
|
-
*/
|
|
106
|
-
this.borderRadius = "var(--sqm-border-radius-normal, 8px)";
|
|
107
|
-
/**
|
|
108
|
-
* @uiName Border style
|
|
109
|
-
* @uiWidget textArea
|
|
110
|
-
*/
|
|
111
|
-
this.border = "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color, #eaeaea)";
|
|
112
|
-
h(this);
|
|
113
|
-
}
|
|
114
|
-
disconnectedCallback() { }
|
|
115
|
-
render() {
|
|
116
|
-
const { states, callbacks } = isDemo()
|
|
117
|
-
? usePortalForgotPasswordDemo(this)
|
|
118
|
-
: usePortalForgotPassword(this);
|
|
119
|
-
const content = {
|
|
120
|
-
messageSlot: h$1("slot", { name: "messageSlot" }, this.headerText),
|
|
121
|
-
emailLabel: this.emailLabel,
|
|
122
|
-
submitLabel: this.submitLabel,
|
|
123
|
-
successAlertText: this.successAlertText,
|
|
124
|
-
loginText: this.loginText,
|
|
125
|
-
backgroundColor: this.backgroundColor,
|
|
126
|
-
borderRadius: this.borderRadius,
|
|
127
|
-
border: this.border,
|
|
128
|
-
};
|
|
129
|
-
return (h$1(PortalForgotPasswordView, { states: states, callbacks: callbacks, content: content }));
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
function usePortalForgotPasswordDemo(props) {
|
|
133
|
-
return cjs({
|
|
134
|
-
states: { error: "", loading: false, success: false },
|
|
135
|
-
callbacks: {
|
|
136
|
-
submit: async (_event) => { },
|
|
137
|
-
},
|
|
138
|
-
content: {
|
|
139
|
-
secondaryButton: (h$1("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", disabled: false, onClick: () => jn.push(props.loginPath) }, props.loginText)),
|
|
140
|
-
messageSlot: h$1("span", null, props.headerText),
|
|
141
|
-
emailLabel: props.emailLabel,
|
|
142
|
-
submitLabel: props.submitLabel,
|
|
143
|
-
successAlertText: props.successAlertText,
|
|
144
|
-
loginText: props.loginText,
|
|
145
|
-
backgroundColor: props.backgroundColor,
|
|
146
|
-
borderRadius: props.borderRadius,
|
|
147
|
-
border: props.border,
|
|
148
|
-
},
|
|
149
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export { PortalForgotPassword as sqm_portal_forgot_password };
|