@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,1018 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-ad175903.js');
|
|
6
|
-
require('./global-aae86f09.js');
|
|
7
|
-
const domContextHooks_module = require('./dom-context-hooks.module-baf97805.js');
|
|
8
|
-
const index_module = require('./index.module-0ec494e5.js');
|
|
9
|
-
require('./GoogleFonts-039d880f.js');
|
|
10
|
-
require('./jss-preset-default.esm-b48f0c33.js');
|
|
11
|
-
require('./JSS-518e9b4d.js');
|
|
12
|
-
require('./mixins-f51b04f1.js');
|
|
13
|
-
const utils = require('./utils-ebe923b6.js');
|
|
14
|
-
const cjs = require('./cjs-2bf512b9.js');
|
|
15
|
-
require('./copy-text-view-f0313f78.js');
|
|
16
|
-
const RewardExchangeListData = require('./RewardExchangeListData-a787ce54.js');
|
|
17
|
-
const parseStates = require('./parseStates-d1effc19.js');
|
|
18
|
-
|
|
19
|
-
// canvas-confetti v1.4.0 built on 2021-03-10T12:32:33.488Z
|
|
20
|
-
var module$1 = {};
|
|
21
|
-
|
|
22
|
-
// source content
|
|
23
|
-
(function main(global, module, isWorker, workerSize) {
|
|
24
|
-
var canUseWorker = !!(
|
|
25
|
-
global.Worker &&
|
|
26
|
-
global.Blob &&
|
|
27
|
-
global.Promise &&
|
|
28
|
-
global.OffscreenCanvas &&
|
|
29
|
-
global.OffscreenCanvasRenderingContext2D &&
|
|
30
|
-
global.HTMLCanvasElement &&
|
|
31
|
-
global.HTMLCanvasElement.prototype.transferControlToOffscreen &&
|
|
32
|
-
global.URL &&
|
|
33
|
-
global.URL.createObjectURL);
|
|
34
|
-
|
|
35
|
-
function noop() {}
|
|
36
|
-
|
|
37
|
-
// create a promise if it exists, otherwise, just
|
|
38
|
-
// call the function directly
|
|
39
|
-
function promise(func) {
|
|
40
|
-
var ModulePromise = module.exports.Promise;
|
|
41
|
-
var Prom = ModulePromise !== void 0 ? ModulePromise : global.Promise;
|
|
42
|
-
|
|
43
|
-
if (typeof Prom === 'function') {
|
|
44
|
-
return new Prom(func);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
func(noop, noop);
|
|
48
|
-
|
|
49
|
-
return null;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
var raf = (function () {
|
|
53
|
-
var TIME = Math.floor(1000 / 60);
|
|
54
|
-
var frame, cancel;
|
|
55
|
-
var frames = {};
|
|
56
|
-
var lastFrameTime = 0;
|
|
57
|
-
|
|
58
|
-
if (typeof requestAnimationFrame === 'function' && typeof cancelAnimationFrame === 'function') {
|
|
59
|
-
frame = function (cb) {
|
|
60
|
-
var id = Math.random();
|
|
61
|
-
|
|
62
|
-
frames[id] = requestAnimationFrame(function onFrame(time) {
|
|
63
|
-
if (lastFrameTime === time || lastFrameTime + TIME - 1 < time) {
|
|
64
|
-
lastFrameTime = time;
|
|
65
|
-
delete frames[id];
|
|
66
|
-
|
|
67
|
-
cb();
|
|
68
|
-
} else {
|
|
69
|
-
frames[id] = requestAnimationFrame(onFrame);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
return id;
|
|
74
|
-
};
|
|
75
|
-
cancel = function (id) {
|
|
76
|
-
if (frames[id]) {
|
|
77
|
-
cancelAnimationFrame(frames[id]);
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
} else {
|
|
81
|
-
frame = function (cb) {
|
|
82
|
-
return setTimeout(cb, TIME);
|
|
83
|
-
};
|
|
84
|
-
cancel = function (timer) {
|
|
85
|
-
return clearTimeout(timer);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return { frame: frame, cancel: cancel };
|
|
90
|
-
}());
|
|
91
|
-
|
|
92
|
-
var getWorker = (function () {
|
|
93
|
-
var worker;
|
|
94
|
-
var prom;
|
|
95
|
-
var resolves = {};
|
|
96
|
-
|
|
97
|
-
function decorate(worker) {
|
|
98
|
-
function execute(options, callback) {
|
|
99
|
-
worker.postMessage({ options: options || {}, callback: callback });
|
|
100
|
-
}
|
|
101
|
-
worker.init = function initWorker(canvas) {
|
|
102
|
-
var offscreen = canvas.transferControlToOffscreen();
|
|
103
|
-
worker.postMessage({ canvas: offscreen }, [offscreen]);
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
worker.fire = function fireWorker(options, size, done) {
|
|
107
|
-
if (prom) {
|
|
108
|
-
execute(options, null);
|
|
109
|
-
return prom;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
var id = Math.random().toString(36).slice(2);
|
|
113
|
-
|
|
114
|
-
prom = promise(function (resolve) {
|
|
115
|
-
function workerDone(msg) {
|
|
116
|
-
if (msg.data.callback !== id) {
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
delete resolves[id];
|
|
121
|
-
worker.removeEventListener('message', workerDone);
|
|
122
|
-
|
|
123
|
-
prom = null;
|
|
124
|
-
done();
|
|
125
|
-
resolve();
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
worker.addEventListener('message', workerDone);
|
|
129
|
-
execute(options, id);
|
|
130
|
-
|
|
131
|
-
resolves[id] = workerDone.bind(null, { data: { callback: id }});
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
return prom;
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
worker.reset = function resetWorker() {
|
|
138
|
-
worker.postMessage({ reset: true });
|
|
139
|
-
|
|
140
|
-
for (var id in resolves) {
|
|
141
|
-
resolves[id]();
|
|
142
|
-
delete resolves[id];
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return function () {
|
|
148
|
-
if (worker) {
|
|
149
|
-
return worker;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
if (!isWorker && canUseWorker) {
|
|
153
|
-
var code = [
|
|
154
|
-
'var CONFETTI, SIZE = {}, module = {};',
|
|
155
|
-
'(' + main.toString() + ')(this, module, true, SIZE);',
|
|
156
|
-
'onmessage = function(msg) {',
|
|
157
|
-
' if (msg.data.options) {',
|
|
158
|
-
' CONFETTI(msg.data.options).then(function () {',
|
|
159
|
-
' if (msg.data.callback) {',
|
|
160
|
-
' postMessage({ callback: msg.data.callback });',
|
|
161
|
-
' }',
|
|
162
|
-
' });',
|
|
163
|
-
' } else if (msg.data.reset) {',
|
|
164
|
-
' CONFETTI.reset();',
|
|
165
|
-
' } else if (msg.data.resize) {',
|
|
166
|
-
' SIZE.width = msg.data.resize.width;',
|
|
167
|
-
' SIZE.height = msg.data.resize.height;',
|
|
168
|
-
' } else if (msg.data.canvas) {',
|
|
169
|
-
' SIZE.width = msg.data.canvas.width;',
|
|
170
|
-
' SIZE.height = msg.data.canvas.height;',
|
|
171
|
-
' CONFETTI = module.exports.create(msg.data.canvas);',
|
|
172
|
-
' }',
|
|
173
|
-
'}',
|
|
174
|
-
].join('\n');
|
|
175
|
-
try {
|
|
176
|
-
worker = new Worker(URL.createObjectURL(new Blob([code])));
|
|
177
|
-
} catch (e) {
|
|
178
|
-
// eslint-disable-next-line no-console
|
|
179
|
-
typeof console !== undefined && typeof console.warn === 'function' ? console.warn('🎊 Could not load worker', e) : null;
|
|
180
|
-
|
|
181
|
-
return null;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
decorate(worker);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
return worker;
|
|
188
|
-
};
|
|
189
|
-
})();
|
|
190
|
-
|
|
191
|
-
var defaults = {
|
|
192
|
-
particleCount: 50,
|
|
193
|
-
angle: 90,
|
|
194
|
-
spread: 45,
|
|
195
|
-
startVelocity: 45,
|
|
196
|
-
decay: 0.9,
|
|
197
|
-
gravity: 1,
|
|
198
|
-
drift: 0,
|
|
199
|
-
ticks: 200,
|
|
200
|
-
x: 0.5,
|
|
201
|
-
y: 0.5,
|
|
202
|
-
shapes: ['square', 'circle'],
|
|
203
|
-
zIndex: 100,
|
|
204
|
-
colors: [
|
|
205
|
-
'#26ccff',
|
|
206
|
-
'#a25afd',
|
|
207
|
-
'#ff5e7e',
|
|
208
|
-
'#88ff5a',
|
|
209
|
-
'#fcff42',
|
|
210
|
-
'#ffa62d',
|
|
211
|
-
'#ff36ff'
|
|
212
|
-
],
|
|
213
|
-
// probably should be true, but back-compat
|
|
214
|
-
disableForReducedMotion: false,
|
|
215
|
-
scalar: 1
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
function convert(val, transform) {
|
|
219
|
-
return transform ? transform(val) : val;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
function isOk(val) {
|
|
223
|
-
return !(val === null || val === undefined);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
function prop(options, name, transform) {
|
|
227
|
-
return convert(
|
|
228
|
-
options && isOk(options[name]) ? options[name] : defaults[name],
|
|
229
|
-
transform
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
function onlyPositiveInt(number){
|
|
234
|
-
return number < 0 ? 0 : Math.floor(number);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
function randomInt(min, max) {
|
|
238
|
-
// [min, max)
|
|
239
|
-
return Math.floor(Math.random() * (max - min)) + min;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
function toDecimal(str) {
|
|
243
|
-
return parseInt(str, 16);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
function colorsToRgb(colors) {
|
|
247
|
-
return colors.map(hexToRgb);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
function hexToRgb(str) {
|
|
251
|
-
var val = String(str).replace(/[^0-9a-f]/gi, '');
|
|
252
|
-
|
|
253
|
-
if (val.length < 6) {
|
|
254
|
-
val = val[0]+val[0]+val[1]+val[1]+val[2]+val[2];
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
return {
|
|
258
|
-
r: toDecimal(val.substring(0,2)),
|
|
259
|
-
g: toDecimal(val.substring(2,4)),
|
|
260
|
-
b: toDecimal(val.substring(4,6))
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
function getOrigin(options) {
|
|
265
|
-
var origin = prop(options, 'origin', Object);
|
|
266
|
-
origin.x = prop(origin, 'x', Number);
|
|
267
|
-
origin.y = prop(origin, 'y', Number);
|
|
268
|
-
|
|
269
|
-
return origin;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
function setCanvasWindowSize(canvas) {
|
|
273
|
-
canvas.width = document.documentElement.clientWidth;
|
|
274
|
-
canvas.height = document.documentElement.clientHeight;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
function setCanvasRectSize(canvas) {
|
|
278
|
-
var rect = canvas.getBoundingClientRect();
|
|
279
|
-
canvas.width = rect.width;
|
|
280
|
-
canvas.height = rect.height;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
function getCanvas(zIndex) {
|
|
284
|
-
var canvas = document.createElement('canvas');
|
|
285
|
-
|
|
286
|
-
canvas.style.position = 'fixed';
|
|
287
|
-
canvas.style.top = '0px';
|
|
288
|
-
canvas.style.left = '0px';
|
|
289
|
-
canvas.style.pointerEvents = 'none';
|
|
290
|
-
canvas.style.zIndex = zIndex;
|
|
291
|
-
|
|
292
|
-
return canvas;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
function ellipse(context, x, y, radiusX, radiusY, rotation, startAngle, endAngle, antiClockwise) {
|
|
296
|
-
context.save();
|
|
297
|
-
context.translate(x, y);
|
|
298
|
-
context.rotate(rotation);
|
|
299
|
-
context.scale(radiusX, radiusY);
|
|
300
|
-
context.arc(0, 0, 1, startAngle, endAngle, antiClockwise);
|
|
301
|
-
context.restore();
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
function randomPhysics(opts) {
|
|
305
|
-
var radAngle = opts.angle * (Math.PI / 180);
|
|
306
|
-
var radSpread = opts.spread * (Math.PI / 180);
|
|
307
|
-
|
|
308
|
-
return {
|
|
309
|
-
x: opts.x,
|
|
310
|
-
y: opts.y,
|
|
311
|
-
wobble: Math.random() * 10,
|
|
312
|
-
velocity: (opts.startVelocity * 0.5) + (Math.random() * opts.startVelocity),
|
|
313
|
-
angle2D: -radAngle + ((0.5 * radSpread) - (Math.random() * radSpread)),
|
|
314
|
-
tiltAngle: Math.random() * Math.PI,
|
|
315
|
-
color: opts.color,
|
|
316
|
-
shape: opts.shape,
|
|
317
|
-
tick: 0,
|
|
318
|
-
totalTicks: opts.ticks,
|
|
319
|
-
decay: opts.decay,
|
|
320
|
-
drift: opts.drift,
|
|
321
|
-
random: Math.random() + 5,
|
|
322
|
-
tiltSin: 0,
|
|
323
|
-
tiltCos: 0,
|
|
324
|
-
wobbleX: 0,
|
|
325
|
-
wobbleY: 0,
|
|
326
|
-
gravity: opts.gravity * 3,
|
|
327
|
-
ovalScalar: 0.6,
|
|
328
|
-
scalar: opts.scalar
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
function updateFetti(context, fetti) {
|
|
333
|
-
fetti.x += Math.cos(fetti.angle2D) * fetti.velocity + fetti.drift;
|
|
334
|
-
fetti.y += Math.sin(fetti.angle2D) * fetti.velocity + fetti.gravity;
|
|
335
|
-
fetti.wobble += 0.1;
|
|
336
|
-
fetti.velocity *= fetti.decay;
|
|
337
|
-
fetti.tiltAngle += 0.1;
|
|
338
|
-
fetti.tiltSin = Math.sin(fetti.tiltAngle);
|
|
339
|
-
fetti.tiltCos = Math.cos(fetti.tiltAngle);
|
|
340
|
-
fetti.random = Math.random() + 5;
|
|
341
|
-
fetti.wobbleX = fetti.x + ((10 * fetti.scalar) * Math.cos(fetti.wobble));
|
|
342
|
-
fetti.wobbleY = fetti.y + ((10 * fetti.scalar) * Math.sin(fetti.wobble));
|
|
343
|
-
|
|
344
|
-
var progress = (fetti.tick++) / fetti.totalTicks;
|
|
345
|
-
|
|
346
|
-
var x1 = fetti.x + (fetti.random * fetti.tiltCos);
|
|
347
|
-
var y1 = fetti.y + (fetti.random * fetti.tiltSin);
|
|
348
|
-
var x2 = fetti.wobbleX + (fetti.random * fetti.tiltCos);
|
|
349
|
-
var y2 = fetti.wobbleY + (fetti.random * fetti.tiltSin);
|
|
350
|
-
|
|
351
|
-
context.fillStyle = 'rgba(' + fetti.color.r + ', ' + fetti.color.g + ', ' + fetti.color.b + ', ' + (1 - progress) + ')';
|
|
352
|
-
context.beginPath();
|
|
353
|
-
|
|
354
|
-
if (fetti.shape === 'circle') {
|
|
355
|
-
context.ellipse ?
|
|
356
|
-
context.ellipse(fetti.x, fetti.y, Math.abs(x2 - x1) * fetti.ovalScalar, Math.abs(y2 - y1) * fetti.ovalScalar, Math.PI / 10 * fetti.wobble, 0, 2 * Math.PI) :
|
|
357
|
-
ellipse(context, fetti.x, fetti.y, Math.abs(x2 - x1) * fetti.ovalScalar, Math.abs(y2 - y1) * fetti.ovalScalar, Math.PI / 10 * fetti.wobble, 0, 2 * Math.PI);
|
|
358
|
-
} else {
|
|
359
|
-
context.moveTo(Math.floor(fetti.x), Math.floor(fetti.y));
|
|
360
|
-
context.lineTo(Math.floor(fetti.wobbleX), Math.floor(y1));
|
|
361
|
-
context.lineTo(Math.floor(x2), Math.floor(y2));
|
|
362
|
-
context.lineTo(Math.floor(x1), Math.floor(fetti.wobbleY));
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
context.closePath();
|
|
366
|
-
context.fill();
|
|
367
|
-
|
|
368
|
-
return fetti.tick < fetti.totalTicks;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
function animate(canvas, fettis, resizer, size, done) {
|
|
372
|
-
var animatingFettis = fettis.slice();
|
|
373
|
-
var context = canvas.getContext('2d');
|
|
374
|
-
var animationFrame;
|
|
375
|
-
var destroy;
|
|
376
|
-
|
|
377
|
-
var prom = promise(function (resolve) {
|
|
378
|
-
function onDone() {
|
|
379
|
-
animationFrame = destroy = null;
|
|
380
|
-
|
|
381
|
-
context.clearRect(0, 0, size.width, size.height);
|
|
382
|
-
|
|
383
|
-
done();
|
|
384
|
-
resolve();
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
function update() {
|
|
388
|
-
if (isWorker && !(size.width === workerSize.width && size.height === workerSize.height)) {
|
|
389
|
-
size.width = canvas.width = workerSize.width;
|
|
390
|
-
size.height = canvas.height = workerSize.height;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
if (!size.width && !size.height) {
|
|
394
|
-
resizer(canvas);
|
|
395
|
-
size.width = canvas.width;
|
|
396
|
-
size.height = canvas.height;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
context.clearRect(0, 0, size.width, size.height);
|
|
400
|
-
|
|
401
|
-
animatingFettis = animatingFettis.filter(function (fetti) {
|
|
402
|
-
return updateFetti(context, fetti);
|
|
403
|
-
});
|
|
404
|
-
|
|
405
|
-
if (animatingFettis.length) {
|
|
406
|
-
animationFrame = raf.frame(update);
|
|
407
|
-
} else {
|
|
408
|
-
onDone();
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
animationFrame = raf.frame(update);
|
|
413
|
-
destroy = onDone;
|
|
414
|
-
});
|
|
415
|
-
|
|
416
|
-
return {
|
|
417
|
-
addFettis: function (fettis) {
|
|
418
|
-
animatingFettis = animatingFettis.concat(fettis);
|
|
419
|
-
|
|
420
|
-
return prom;
|
|
421
|
-
},
|
|
422
|
-
canvas: canvas,
|
|
423
|
-
promise: prom,
|
|
424
|
-
reset: function () {
|
|
425
|
-
if (animationFrame) {
|
|
426
|
-
raf.cancel(animationFrame);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
if (destroy) {
|
|
430
|
-
destroy();
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
function confettiCannon(canvas, globalOpts) {
|
|
437
|
-
var isLibCanvas = !canvas;
|
|
438
|
-
var allowResize = !!prop(globalOpts || {}, 'resize');
|
|
439
|
-
var globalDisableForReducedMotion = prop(globalOpts, 'disableForReducedMotion', Boolean);
|
|
440
|
-
var shouldUseWorker = canUseWorker && !!prop(globalOpts || {}, 'useWorker');
|
|
441
|
-
var worker = shouldUseWorker ? getWorker() : null;
|
|
442
|
-
var resizer = isLibCanvas ? setCanvasWindowSize : setCanvasRectSize;
|
|
443
|
-
var initialized = (canvas && worker) ? !!canvas.__confetti_initialized : false;
|
|
444
|
-
var preferLessMotion = typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion)').matches;
|
|
445
|
-
var animationObj;
|
|
446
|
-
|
|
447
|
-
function fireLocal(options, size, done) {
|
|
448
|
-
var particleCount = prop(options, 'particleCount', onlyPositiveInt);
|
|
449
|
-
var angle = prop(options, 'angle', Number);
|
|
450
|
-
var spread = prop(options, 'spread', Number);
|
|
451
|
-
var startVelocity = prop(options, 'startVelocity', Number);
|
|
452
|
-
var decay = prop(options, 'decay', Number);
|
|
453
|
-
var gravity = prop(options, 'gravity', Number);
|
|
454
|
-
var drift = prop(options, 'drift', Number);
|
|
455
|
-
var colors = prop(options, 'colors', colorsToRgb);
|
|
456
|
-
var ticks = prop(options, 'ticks', Number);
|
|
457
|
-
var shapes = prop(options, 'shapes');
|
|
458
|
-
var scalar = prop(options, 'scalar');
|
|
459
|
-
var origin = getOrigin(options);
|
|
460
|
-
|
|
461
|
-
var temp = particleCount;
|
|
462
|
-
var fettis = [];
|
|
463
|
-
|
|
464
|
-
var startX = canvas.width * origin.x;
|
|
465
|
-
var startY = canvas.height * origin.y;
|
|
466
|
-
|
|
467
|
-
while (temp--) {
|
|
468
|
-
fettis.push(
|
|
469
|
-
randomPhysics({
|
|
470
|
-
x: startX,
|
|
471
|
-
y: startY,
|
|
472
|
-
angle: angle,
|
|
473
|
-
spread: spread,
|
|
474
|
-
startVelocity: startVelocity,
|
|
475
|
-
color: colors[temp % colors.length],
|
|
476
|
-
shape: shapes[randomInt(0, shapes.length)],
|
|
477
|
-
ticks: ticks,
|
|
478
|
-
decay: decay,
|
|
479
|
-
gravity: gravity,
|
|
480
|
-
drift: drift,
|
|
481
|
-
scalar: scalar
|
|
482
|
-
})
|
|
483
|
-
);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
// if we have a previous canvas already animating,
|
|
487
|
-
// add to it
|
|
488
|
-
if (animationObj) {
|
|
489
|
-
return animationObj.addFettis(fettis);
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
animationObj = animate(canvas, fettis, resizer, size , done);
|
|
493
|
-
|
|
494
|
-
return animationObj.promise;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
function fire(options) {
|
|
498
|
-
var disableForReducedMotion = globalDisableForReducedMotion || prop(options, 'disableForReducedMotion', Boolean);
|
|
499
|
-
var zIndex = prop(options, 'zIndex', Number);
|
|
500
|
-
|
|
501
|
-
if (disableForReducedMotion && preferLessMotion) {
|
|
502
|
-
return promise(function (resolve) {
|
|
503
|
-
resolve();
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
if (isLibCanvas && animationObj) {
|
|
508
|
-
// use existing canvas from in-progress animation
|
|
509
|
-
canvas = animationObj.canvas;
|
|
510
|
-
} else if (isLibCanvas && !canvas) {
|
|
511
|
-
// create and initialize a new canvas
|
|
512
|
-
canvas = getCanvas(zIndex);
|
|
513
|
-
document.body.appendChild(canvas);
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
if (allowResize && !initialized) {
|
|
517
|
-
// initialize the size of a user-supplied canvas
|
|
518
|
-
resizer(canvas);
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
var size = {
|
|
522
|
-
width: canvas.width,
|
|
523
|
-
height: canvas.height
|
|
524
|
-
};
|
|
525
|
-
|
|
526
|
-
if (worker && !initialized) {
|
|
527
|
-
worker.init(canvas);
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
initialized = true;
|
|
531
|
-
|
|
532
|
-
if (worker) {
|
|
533
|
-
canvas.__confetti_initialized = true;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
function onResize() {
|
|
537
|
-
if (worker) {
|
|
538
|
-
// TODO this really shouldn't be immediate, because it is expensive
|
|
539
|
-
var obj = {
|
|
540
|
-
getBoundingClientRect: function () {
|
|
541
|
-
if (!isLibCanvas) {
|
|
542
|
-
return canvas.getBoundingClientRect();
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
resizer(obj);
|
|
548
|
-
|
|
549
|
-
worker.postMessage({
|
|
550
|
-
resize: {
|
|
551
|
-
width: obj.width,
|
|
552
|
-
height: obj.height
|
|
553
|
-
}
|
|
554
|
-
});
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
// don't actually query the size here, since this
|
|
559
|
-
// can execute frequently and rapidly
|
|
560
|
-
size.width = size.height = null;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
function done() {
|
|
564
|
-
animationObj = null;
|
|
565
|
-
|
|
566
|
-
if (allowResize) {
|
|
567
|
-
global.removeEventListener('resize', onResize);
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
if (isLibCanvas && canvas) {
|
|
571
|
-
document.body.removeChild(canvas);
|
|
572
|
-
canvas = null;
|
|
573
|
-
initialized = false;
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
if (allowResize) {
|
|
578
|
-
global.addEventListener('resize', onResize, false);
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
if (worker) {
|
|
582
|
-
return worker.fire(options, size, done);
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
return fireLocal(options, size, done);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
fire.reset = function () {
|
|
589
|
-
if (worker) {
|
|
590
|
-
worker.reset();
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
if (animationObj) {
|
|
594
|
-
animationObj.reset();
|
|
595
|
-
}
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
return fire;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
module.exports = confettiCannon(null, { useWorker: true, resize: true });
|
|
602
|
-
module.exports.create = confettiCannon;
|
|
603
|
-
}((function () {
|
|
604
|
-
if (typeof window !== 'undefined') {
|
|
605
|
-
return window;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
if (typeof self !== 'undefined') {
|
|
609
|
-
return self;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
return this || {};
|
|
613
|
-
})(), module$1, false));
|
|
614
|
-
|
|
615
|
-
// end source content
|
|
616
|
-
|
|
617
|
-
const confetti = module$1.exports;
|
|
618
|
-
var create = module$1.exports.create;
|
|
619
|
-
|
|
620
|
-
const GET_EXCHANGE_LIST = index_module.dist.gql `
|
|
621
|
-
query getExchangeList {
|
|
622
|
-
viewer {
|
|
623
|
-
... on User {
|
|
624
|
-
visibleRewardExchangeItems(limit: 20, offset: 0) {
|
|
625
|
-
data {
|
|
626
|
-
key
|
|
627
|
-
name
|
|
628
|
-
description
|
|
629
|
-
imageUrl
|
|
630
|
-
available
|
|
631
|
-
unavailableReasonCode
|
|
632
|
-
ruleType
|
|
633
|
-
sourceUnit
|
|
634
|
-
sourceValue
|
|
635
|
-
prettySourceValue
|
|
636
|
-
sourceMinValue
|
|
637
|
-
prettySourceMinValue
|
|
638
|
-
sourceMaxValue
|
|
639
|
-
prettySourceMaxValue
|
|
640
|
-
destinationMinValue
|
|
641
|
-
prettyDestinationMinValue
|
|
642
|
-
destinationMaxValue
|
|
643
|
-
prettyDestinationMaxValue
|
|
644
|
-
globalRewardKey
|
|
645
|
-
destinationUnit
|
|
646
|
-
steps {
|
|
647
|
-
sourceValue
|
|
648
|
-
prettySourceValue
|
|
649
|
-
destinationValue
|
|
650
|
-
prettyDestinationValue
|
|
651
|
-
available
|
|
652
|
-
globalRewardKey
|
|
653
|
-
unavailableReasonCode
|
|
654
|
-
rewardInput
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
totalCount
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
`;
|
|
663
|
-
const EXCHANGE = index_module.dist.gql `
|
|
664
|
-
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
665
|
-
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
666
|
-
reward {
|
|
667
|
-
id
|
|
668
|
-
fuelTankCode
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
`;
|
|
673
|
-
function useRewardExchangeList(props) {
|
|
674
|
-
var _a, _b, _c, _d, _e;
|
|
675
|
-
const [exchangeState, setExchangeState] = domContextHooks_module.useReducer((state, next) => ({
|
|
676
|
-
...state,
|
|
677
|
-
...next,
|
|
678
|
-
}), {
|
|
679
|
-
selectedItem: undefined,
|
|
680
|
-
selectedStep: undefined,
|
|
681
|
-
redeemStage: "chooseReward",
|
|
682
|
-
amount: 0,
|
|
683
|
-
exchangeError: false,
|
|
684
|
-
});
|
|
685
|
-
const [open, setOpen] = domContextHooks_module.useState(false);
|
|
686
|
-
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
687
|
-
const user = index_module.J();
|
|
688
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.$e(EXCHANGE);
|
|
689
|
-
const { data, loading, refetch, errors: queryError, } = index_module.wn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
690
|
-
domContextHooks_module.useEffect(() => {
|
|
691
|
-
var _a, _b;
|
|
692
|
-
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
693
|
-
setExchangeState({ redeemStage: "success", exchangeError: false });
|
|
694
|
-
}
|
|
695
|
-
if (!!errors) {
|
|
696
|
-
setExchangeState({ exchangeError: true });
|
|
697
|
-
}
|
|
698
|
-
}, [exchangeResponse, errors]);
|
|
699
|
-
const canvasRef = domContextHooks_module.useRef();
|
|
700
|
-
domContextHooks_module.useEffect(() => {
|
|
701
|
-
if (!canvasRef.current)
|
|
702
|
-
return;
|
|
703
|
-
const canvas = canvasRef.current;
|
|
704
|
-
canvas.confetti =
|
|
705
|
-
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
706
|
-
canvas.confetti();
|
|
707
|
-
}, [canvasRef.current]);
|
|
708
|
-
const { refresh } = index_module.Qe();
|
|
709
|
-
async function exchangeReward() {
|
|
710
|
-
if (!selectedItem)
|
|
711
|
-
return;
|
|
712
|
-
let exchangeVariables = {
|
|
713
|
-
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
714
|
-
userId: user.id,
|
|
715
|
-
};
|
|
716
|
-
switch (selectedItem.ruleType) {
|
|
717
|
-
case "FIXED_GLOBAL_REWARD":
|
|
718
|
-
exchangeVariables = {
|
|
719
|
-
...exchangeVariables,
|
|
720
|
-
redeemCreditInput: {
|
|
721
|
-
amount: selectedItem.sourceValue,
|
|
722
|
-
unit: selectedItem.sourceUnit,
|
|
723
|
-
},
|
|
724
|
-
globalRewardKey: selectedItem.globalRewardKey,
|
|
725
|
-
};
|
|
726
|
-
break;
|
|
727
|
-
case "STEPPED_FIXED_GLOBAL_REWARD":
|
|
728
|
-
exchangeVariables = {
|
|
729
|
-
...exchangeVariables,
|
|
730
|
-
redeemCreditInput: {
|
|
731
|
-
amount: selectedStep.sourceValue,
|
|
732
|
-
unit: selectedItem.sourceUnit,
|
|
733
|
-
},
|
|
734
|
-
globalRewardKey: selectedStep.globalRewardKey,
|
|
735
|
-
};
|
|
736
|
-
break;
|
|
737
|
-
case "VARIABLE_GLOBAL_REWARD":
|
|
738
|
-
exchangeVariables = {
|
|
739
|
-
...exchangeVariables,
|
|
740
|
-
redeemCreditInput: {
|
|
741
|
-
amount: amount,
|
|
742
|
-
unit: selectedItem.sourceUnit,
|
|
743
|
-
},
|
|
744
|
-
globalRewardKey: selectedItem.globalRewardKey,
|
|
745
|
-
rewardInput: selectedStep.rewardInput,
|
|
746
|
-
};
|
|
747
|
-
break;
|
|
748
|
-
case "VARIABLE_CREDIT_REWARD":
|
|
749
|
-
exchangeVariables = {
|
|
750
|
-
...exchangeVariables,
|
|
751
|
-
redeemCreditInput: {
|
|
752
|
-
amount: amount,
|
|
753
|
-
unit: selectedItem.sourceUnit,
|
|
754
|
-
},
|
|
755
|
-
rewardInput: {
|
|
756
|
-
type: "CREDIT",
|
|
757
|
-
unit: selectedItem.destinationUnit,
|
|
758
|
-
assignedCredit: selectedStep.destinationValue,
|
|
759
|
-
},
|
|
760
|
-
};
|
|
761
|
-
break;
|
|
762
|
-
default:
|
|
763
|
-
exchangeVariables = {
|
|
764
|
-
...exchangeVariables,
|
|
765
|
-
...selectedStep.rewardInput,
|
|
766
|
-
};
|
|
767
|
-
}
|
|
768
|
-
await exchange({ exchangeRewardInput: exchangeVariables });
|
|
769
|
-
refresh();
|
|
770
|
-
}
|
|
771
|
-
const resetState = (refresh) => {
|
|
772
|
-
refresh && refetch();
|
|
773
|
-
setExchangeState({
|
|
774
|
-
amount: 0,
|
|
775
|
-
selectedStep: undefined,
|
|
776
|
-
selectedItem: undefined,
|
|
777
|
-
exchangeError: false,
|
|
778
|
-
redeemStage: "chooseReward",
|
|
779
|
-
});
|
|
780
|
-
};
|
|
781
|
-
function setStage(stage) {
|
|
782
|
-
setExchangeState({ redeemStage: stage });
|
|
783
|
-
}
|
|
784
|
-
function copyFuelTankCode() {
|
|
785
|
-
var _a, _b;
|
|
786
|
-
navigator.clipboard.writeText((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.fuelTankCode);
|
|
787
|
-
setOpen(true);
|
|
788
|
-
setTimeout(() => setOpen(false), 1000);
|
|
789
|
-
}
|
|
790
|
-
return {
|
|
791
|
-
states: {
|
|
792
|
-
content: {
|
|
793
|
-
text: props,
|
|
794
|
-
},
|
|
795
|
-
selectedItem,
|
|
796
|
-
redeemStage,
|
|
797
|
-
amount,
|
|
798
|
-
selectedStep,
|
|
799
|
-
exchangeError,
|
|
800
|
-
queryError: !!queryError,
|
|
801
|
-
loading: loading || exchangeLoading,
|
|
802
|
-
open,
|
|
803
|
-
noExchangeOptions: ((_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.visibleRewardExchangeItems.totalCount) === 0,
|
|
804
|
-
},
|
|
805
|
-
data: {
|
|
806
|
-
exchangeList: (_c = (_b = data === null || data === void 0 ? void 0 : data.viewer) === null || _b === void 0 ? void 0 : _b.visibleRewardExchangeItems) === null || _c === void 0 ? void 0 : _c.data,
|
|
807
|
-
fuelTankCode: (_e = (_d = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _d === void 0 ? void 0 : _d.reward) === null || _e === void 0 ? void 0 : _e.fuelTankCode,
|
|
808
|
-
},
|
|
809
|
-
callbacks: {
|
|
810
|
-
exchangeReward,
|
|
811
|
-
setExchangeState,
|
|
812
|
-
setStage,
|
|
813
|
-
resetState,
|
|
814
|
-
copyFuelTankCode,
|
|
815
|
-
},
|
|
816
|
-
refs: {
|
|
817
|
-
canvasRef,
|
|
818
|
-
},
|
|
819
|
-
};
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
const SqmRewardExchangeList = class {
|
|
823
|
-
constructor(hostRef) {
|
|
824
|
-
index.registerInstance(this, hostRef);
|
|
825
|
-
this.ignored = true;
|
|
826
|
-
/**
|
|
827
|
-
* Error message shown when reward is not available
|
|
828
|
-
*
|
|
829
|
-
* @uiName Not available error
|
|
830
|
-
* @uiWidget textArea
|
|
831
|
-
*/
|
|
832
|
-
this.notAvailableError = "{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }";
|
|
833
|
-
/**
|
|
834
|
-
* @uiName Choose reward progress title
|
|
835
|
-
*/
|
|
836
|
-
this.chooseRewardTitle = "Rewards";
|
|
837
|
-
/**
|
|
838
|
-
* @uiName Choose amount progress title
|
|
839
|
-
*/
|
|
840
|
-
this.chooseAmountTitle = "Select";
|
|
841
|
-
/**
|
|
842
|
-
* @uiName Confirmation progress title
|
|
843
|
-
*/
|
|
844
|
-
this.confirmationTitle = "Confirm";
|
|
845
|
-
/**
|
|
846
|
-
* @uiName Reward title text
|
|
847
|
-
*/
|
|
848
|
-
this.rewardTitle = "Choose a reward";
|
|
849
|
-
/**
|
|
850
|
-
* @uiName Cancel button text
|
|
851
|
-
*/
|
|
852
|
-
this.cancelText = "Cancel";
|
|
853
|
-
/**
|
|
854
|
-
* @uiName Back button text
|
|
855
|
-
*/
|
|
856
|
-
this.backText = "Back";
|
|
857
|
-
/**
|
|
858
|
-
* @uiName Continue button text
|
|
859
|
-
*/
|
|
860
|
-
this.continueText = "Continue";
|
|
861
|
-
/**
|
|
862
|
-
* Displayed on the reward selection page.
|
|
863
|
-
* @uiName Continue to confirmation button text
|
|
864
|
-
*/
|
|
865
|
-
this.continueToConfirmationText = "Continue to confirmation";
|
|
866
|
-
/**
|
|
867
|
-
* @uiName Redeem button text
|
|
868
|
-
*/
|
|
869
|
-
this.redeemText = "Redeem";
|
|
870
|
-
/**
|
|
871
|
-
* Displayed as the header for the confirmation page.
|
|
872
|
-
*
|
|
873
|
-
* @uiName Confirmation title text
|
|
874
|
-
*/
|
|
875
|
-
this.redeemTitle = "Confirm and redeem";
|
|
876
|
-
/**
|
|
877
|
-
* Displayed on the success screen when a user successfully exchanges for a reward.
|
|
878
|
-
*
|
|
879
|
-
* @uiName Redemption success message
|
|
880
|
-
* @uiWidget textArea
|
|
881
|
-
*/
|
|
882
|
-
this.redemptionSuccessText = "Redeemed {sourceValue} for {destinationValue}";
|
|
883
|
-
/**
|
|
884
|
-
* Displayed on the reward exchange cards.
|
|
885
|
-
*
|
|
886
|
-
* @uiName Reward exchange amount text
|
|
887
|
-
* @uiWidget textArea
|
|
888
|
-
*/
|
|
889
|
-
this.sourceAmountMessage = "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}";
|
|
890
|
-
/**
|
|
891
|
-
* Shown when a user copies a fuel tank code
|
|
892
|
-
*
|
|
893
|
-
* @uiName Tooltip text
|
|
894
|
-
*/
|
|
895
|
-
this.tooltipText = "Copied";
|
|
896
|
-
/**
|
|
897
|
-
* @uiName Done text
|
|
898
|
-
*/
|
|
899
|
-
this.doneText = "Done";
|
|
900
|
-
/**
|
|
901
|
-
* @uiName Select amount text
|
|
902
|
-
* @uiWidget textArea
|
|
903
|
-
*/
|
|
904
|
-
this.selectText = "Select amount to receive";
|
|
905
|
-
/**
|
|
906
|
-
* Shown if an error occurs when loading the reward exchange.
|
|
907
|
-
*
|
|
908
|
-
* @uiName Reward list error message
|
|
909
|
-
* @uiWidget textArea
|
|
910
|
-
*/
|
|
911
|
-
this.queryError = "Unable to load reward exchange list. Please try again";
|
|
912
|
-
/**
|
|
913
|
-
* Shown if an error occurs during the reward exchange.
|
|
914
|
-
*
|
|
915
|
-
* @uiName Redemption error message
|
|
916
|
-
* @uiWidget textArea
|
|
917
|
-
*/
|
|
918
|
-
this.redemptionError = "An error occured trying to redeem this reward. Please try again";
|
|
919
|
-
/**
|
|
920
|
-
* @uiName Not enough error message
|
|
921
|
-
* @uiWidget textArea
|
|
922
|
-
*/
|
|
923
|
-
this.notEnoughError = "Not enough {sourceUnit} to redeem for this reward";
|
|
924
|
-
/**
|
|
925
|
-
* @uiName Reward redeemed text
|
|
926
|
-
*/
|
|
927
|
-
this.rewardRedeemedText = "Reward redeemed";
|
|
928
|
-
/**
|
|
929
|
-
* @uiName Promo code text
|
|
930
|
-
*/
|
|
931
|
-
this.promoCode = "Promo Code";
|
|
932
|
-
/**
|
|
933
|
-
* Set the number of placeholder cards to be shown in loading state.
|
|
934
|
-
*
|
|
935
|
-
* @uiName Loading cards
|
|
936
|
-
*/
|
|
937
|
-
this.skeletonCardNum = 8;
|
|
938
|
-
/**
|
|
939
|
-
* Shown in the confirmation state.
|
|
940
|
-
*
|
|
941
|
-
* @uiName Reward row title
|
|
942
|
-
*/
|
|
943
|
-
this.rewardNameTitle = "Reward";
|
|
944
|
-
/**
|
|
945
|
-
* Shown in the confirmation state.
|
|
946
|
-
*
|
|
947
|
-
* @uiName Reward amount row title
|
|
948
|
-
*/
|
|
949
|
-
this.rewardAmountTitle = "Reward Amount";
|
|
950
|
-
/**
|
|
951
|
-
* Shown in the confirmation state.
|
|
952
|
-
*
|
|
953
|
-
* @uiName Cost row title
|
|
954
|
-
*/
|
|
955
|
-
this.costTitle = "Cost to Redeem";
|
|
956
|
-
/**
|
|
957
|
-
* @componentState { "title": "Choose reward", "props": { "redeemStage": "chooseReward" }, "dependencies": ["sqm-reward-exchange-list"] }
|
|
958
|
-
* @componentState { "title": "Reward details", "props": { "redeemStage": "chooseAmount" }, "dependencies": ["sqm-reward-exchange-list"] }
|
|
959
|
-
* @componentState { "title": "Confirm exchange", "props": { "redeemStage": "confirmation" }, "dependencies": ["sqm-reward-exchange-list"] }
|
|
960
|
-
* @componentState { "title": "Exchange successful", "props": { "redeemStage": "success" }, "dependencies": ["sqm-reward-exchange-list"] }
|
|
961
|
-
*/
|
|
962
|
-
this.stateController = "{}";
|
|
963
|
-
domContextHooks_module.h$1(this);
|
|
964
|
-
}
|
|
965
|
-
disconnectedCallback() { }
|
|
966
|
-
render() {
|
|
967
|
-
const props = {
|
|
968
|
-
...utils.getProps(this),
|
|
969
|
-
empty: index.h(EmptySlot, null),
|
|
970
|
-
};
|
|
971
|
-
const { states, data, callbacks, refs } = index_module.isDemo()
|
|
972
|
-
? useRewardExchangeListDemo(props)
|
|
973
|
-
: useRewardExchangeList(props);
|
|
974
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h(RewardExchangeListData.RewardExchangeView, { states: states, data: data, callbacks: callbacks, refs: refs })));
|
|
975
|
-
}
|
|
976
|
-
static get assetsDirs() { return ["assets"]; }
|
|
977
|
-
};
|
|
978
|
-
function EmptySlot() {
|
|
979
|
-
return (index.h("slot", { name: "empty" }, index.h("sqm-empty", { emptyStateImage: "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_exchange2.png", emptyStateHeader: "Redeem rewards", emptyStateText: "Use your points to redeem rewards once they become available" })));
|
|
980
|
-
}
|
|
981
|
-
function useRewardExchangeListDemo(props) {
|
|
982
|
-
const states = parseStates.parseStates(props.stateController);
|
|
983
|
-
const formatted = Object.keys(states).reduce((prev, key) => key === "reward-exchange-list"
|
|
984
|
-
? { ...prev, ...states[key] }
|
|
985
|
-
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
986
|
-
return cjs.cjs({
|
|
987
|
-
states: {
|
|
988
|
-
content: {
|
|
989
|
-
text: props,
|
|
990
|
-
},
|
|
991
|
-
redeemStage: "chooseReward",
|
|
992
|
-
amount: 0,
|
|
993
|
-
selectedStep: undefined,
|
|
994
|
-
selectedItem: undefined,
|
|
995
|
-
open: false,
|
|
996
|
-
exchangeError: false,
|
|
997
|
-
queryError: false,
|
|
998
|
-
loading: false,
|
|
999
|
-
noExchangeOptions: false,
|
|
1000
|
-
},
|
|
1001
|
-
data: {
|
|
1002
|
-
// shareCode: "SHARECODE123",
|
|
1003
|
-
exchangeList: RewardExchangeListData.demoRewardExchange.data.exchangeList,
|
|
1004
|
-
},
|
|
1005
|
-
callbacks: {
|
|
1006
|
-
exchangeReward: () => { },
|
|
1007
|
-
setExchangeState: (_) => { },
|
|
1008
|
-
setStage: (_) => { },
|
|
1009
|
-
resetState: () => { },
|
|
1010
|
-
copyFuelTankCode: () => { },
|
|
1011
|
-
},
|
|
1012
|
-
refs: {
|
|
1013
|
-
canvasRef: {},
|
|
1014
|
-
},
|
|
1015
|
-
}, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
exports.sqm_reward_exchange_list = SqmRewardExchangeList;
|