@saasquatch/mint-components 1.10.1 → 1.10.2-5
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-721bb748.js → ShadowViewAddon-a982f064.js} +40 -36
- package/dist/cjs/{global-02e50f09.js → global-975908ec.js} +161 -10
- package/dist/cjs/index-56d1fa5b.js +2227 -0
- package/dist/cjs/{index.module-df530553.js → index.module-b1f9bdb8.js} +1398 -227
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-05098e19.js → luxon-20eafbd9.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-3c470512.js} +1 -1
- package/dist/cjs/{re-render-1976e05e.js → re-render-95d86b86.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +411 -410
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +113 -64
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
- package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-invoice-table-view-28b14d28.js → sqm-invoice-table-view-c3a5024d.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -8
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +8 -7
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a125ec5f.js → sqm-navigation-sidebar-item-view-d8a21014.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-email-verification-view-292b5bf4.js → sqm-portal-email-verification-view-72dca980.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-c3754c1c.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -11
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -6
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +62 -61
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +46 -14
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-a5a04d8a.js} +1 -4
- package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-91b9f4ff.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-610f4be8.js} +3 -3
- package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-4756d4fc.js} +14 -13
- package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-49251027.js} +2 -2
- package/dist/cjs/{utilities-cec9dd36.js → utilities-42a1810d.js} +2 -2
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +30 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +7 -4
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +37 -3
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -2
- package/dist/esm/{ShadowViewAddon-31eb5b16.js → ShadowViewAddon-6c6e73dc.js} +14 -10
- package/dist/esm/{global-04c7d3b5.js → global-8a95a0d3.js} +161 -10
- package/dist/esm/index-0c7b14c5.js +2225 -0
- package/dist/esm/{index.module-def4aec5.js → index.module-f9338fc3.js} +1396 -222
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
- package/dist/esm/{re-render-12fd274a.js → re-render-f023c070.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +10 -9
- package/dist/esm/sqm-big-stat_38.entry.js +62 -13
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
- package/dist/esm/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-4ee8e011.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +4 -3
- package/dist/esm/sqm-logout-current-user.entry.js +3 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-60ef06cc.js → sqm-navigation-sidebar-item-view-05fa5ccd.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-de203924.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-0a31702e.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +6 -5
- package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +5 -4
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +9 -8
- package/dist/esm/sqm-referred-registration.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +9 -8
- package/dist/esm/sqm-stencilbook.entry.js +44 -12
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
- package/dist/esm/{useChildElements-32e1bda1.js → useChildElements-e32fe084.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-59d8b278.js} +3 -3
- package/dist/esm/{useReferralTable-f4de0650.js → useReferralTable-34d7f6ee.js} +5 -4
- package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-a140a962.js} +2 -2
- package/dist/esm/{utilities-3f5bba22.js → utilities-c197ef25.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-6c6e73dc.js +1 -0
- package/dist/esm-es5/global-8a95a0d3.js +285 -0
- package/dist/esm-es5/index-0c7b14c5.js +1 -0
- package/dist/esm-es5/index.module-f9338fc3.js +53 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
- package/dist/esm-es5/{re-render-12fd274a.js → re-render-f023c070.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-4ee8e011.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-05fa5ccd.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-de203924.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-0a31702e.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.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-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
- package/dist/esm-es5/useChildElements-e32fe084.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-59d8b278.js +1 -0
- package/dist/esm-es5/useReferralTable-34d7f6ee.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-a140a962.js +1 -0
- package/dist/esm-es5/{utilities-3f5bba22.js → utilities-c197ef25.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-0043bc3c.js +1 -0
- package/dist/mint-components/{p-6cef104b.entry.js → p-00d12178.entry.js} +1 -1
- package/dist/mint-components/{p-be4b748a.system.entry.js → p-022d8077.system.entry.js} +1 -1
- package/dist/mint-components/{p-ed095674.system.js → p-02acb970.system.js} +1 -1
- package/dist/mint-components/{p-dd7ee007.system.js → p-07957c5a.system.js} +1 -1
- package/dist/mint-components/p-08bf5051.system.entry.js +1 -0
- package/dist/mint-components/{p-2a414b2e.system.js → p-0979f82e.system.js} +2 -2
- package/dist/mint-components/p-098b5cef.system.entry.js +1 -0
- package/dist/mint-components/{p-3d4656bb.system.js → p-0ad02032.system.js} +1 -1
- package/dist/mint-components/{p-2ee2ebba.js → p-0d77f228.js} +4 -4
- package/dist/mint-components/{p-bc51264d.system.js → p-105d3cea.system.js} +1 -1
- package/dist/mint-components/p-118c20e6.system.entry.js +1 -0
- package/dist/mint-components/{p-b23d5520.js → p-1426f887.js} +1 -1
- package/dist/mint-components/{p-88aac6a9.system.entry.js → p-14beec1b.system.entry.js} +1 -1
- package/dist/mint-components/{p-41f15489.entry.js → p-15399c43.entry.js} +1 -1
- package/dist/mint-components/p-17554cca.system.entry.js +1 -0
- package/dist/mint-components/{p-58ef25d3.system.entry.js → p-183c8ecc.system.entry.js} +1 -1
- package/dist/mint-components/{p-86990110.entry.js → p-1948d476.entry.js} +1 -1
- package/dist/mint-components/p-1975adfc.entry.js +1 -0
- package/dist/mint-components/{p-fd2c5407.js → p-1b24bb52.js} +1 -1
- package/dist/mint-components/{p-34fd1229.system.entry.js → p-1b5eeaa4.system.entry.js} +1 -1
- package/dist/mint-components/{p-137ea86e.entry.js → p-1e0a0f60.entry.js} +1 -1
- package/dist/mint-components/{p-eba44835.system.entry.js → p-208cf52b.system.entry.js} +1 -1
- package/dist/mint-components/{p-4d233cd4.js → p-21b00d45.js} +1 -1
- package/dist/mint-components/p-269fbf0d.entry.js +1 -0
- package/dist/mint-components/{p-0b9fa97f.js → p-2755b7e6.js} +1 -1
- package/dist/mint-components/{p-ed17e637.system.js → p-2932de37.system.js} +1 -1
- package/dist/mint-components/{p-b45ba369.entry.js → p-2b4fbcf7.entry.js} +9 -9
- package/dist/mint-components/{p-56f14840.entry.js → p-2cc82672.entry.js} +1 -1
- package/dist/mint-components/p-2db204e7.entry.js +1 -0
- package/dist/mint-components/{p-02424350.system.js → p-2e6e8fc0.system.js} +1 -1
- package/dist/mint-components/p-3030c6ba.system.js +1 -0
- package/dist/mint-components/{p-ce621bcc.js → p-350f61cd.js} +1 -1
- package/dist/mint-components/{p-7731f793.system.entry.js → p-37f67540.system.entry.js} +1 -1
- package/dist/mint-components/p-38211322.system.entry.js +1 -0
- package/dist/mint-components/p-3bd60021.system.js +53 -0
- package/dist/mint-components/{p-af062c8f.system.entry.js → p-3c9b7cf5.system.entry.js} +1 -1
- package/dist/mint-components/{p-fb20eb5e.system.entry.js → p-43701d0d.system.entry.js} +1 -1
- package/dist/mint-components/p-4414e194.system.entry.js +1 -0
- package/dist/mint-components/{p-b12f7281.system.entry.js → p-4519b7a5.system.entry.js} +1 -1
- package/dist/mint-components/{p-fe5675b3.entry.js → p-45e6592d.entry.js} +1 -1
- package/dist/mint-components/p-48409171.entry.js +33 -0
- package/dist/mint-components/{p-f3053c61.js → p-48704504.js} +1 -1
- package/dist/mint-components/{p-1fe65a36.entry.js → p-4e792e17.entry.js} +1 -1
- package/dist/mint-components/{p-7f088154.entry.js → p-545402ff.entry.js} +1 -1
- package/dist/mint-components/p-55d7380c.entry.js +13 -0
- package/dist/mint-components/p-5873fc01.js +1 -0
- package/dist/mint-components/{p-dd0d79bf.entry.js → p-5c602e84.entry.js} +1 -1
- package/dist/mint-components/p-6fbfd683.js +1 -0
- package/dist/mint-components/{p-8704937c.js → p-70890ada.js} +153 -153
- package/dist/mint-components/p-755073e7.entry.js +1 -0
- package/dist/mint-components/{p-4edde470.entry.js → p-76b4892f.entry.js} +1 -1
- package/dist/mint-components/{p-61eab172.js → p-773cead3.js} +1 -1
- package/dist/mint-components/{p-fbdf0738.entry.js → p-79097c07.entry.js} +1 -1
- package/dist/mint-components/{p-f0806232.system.entry.js → p-7ab14d4b.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce5afa40.entry.js → p-7c4879fd.entry.js} +1 -1
- package/dist/mint-components/{p-b6fc1227.system.entry.js → p-8369d5c3.system.entry.js} +1 -1
- package/dist/mint-components/p-858a87ce.entry.js +1 -0
- package/dist/mint-components/p-85c56a32.system.entry.js +1 -0
- package/dist/mint-components/{p-eaada4da.js → p-86ba3785.js} +1 -1
- package/dist/mint-components/{p-59fe4ad1.system.js → p-87165876.system.js} +22 -22
- package/dist/mint-components/p-89669879.system.js +1 -0
- package/dist/mint-components/{p-4df8f1d2.system.js → p-8dd1b127.system.js} +1 -1
- package/dist/mint-components/{p-251e7567.js → p-9223640e.js} +1 -1
- package/dist/mint-components/{p-5f1c4160.system.entry.js → p-9396fa35.system.entry.js} +1 -1
- package/dist/mint-components/{p-6afb4f48.system.entry.js → p-95af445c.system.entry.js} +1 -1
- package/dist/mint-components/p-9a8180f3.entry.js +1 -0
- package/dist/mint-components/p-a06ac84d.entry.js +1 -0
- package/dist/mint-components/p-a252acc8.system.entry.js +1 -0
- package/dist/mint-components/p-a2f24cea.system.js +1 -0
- package/dist/mint-components/p-a3e853b9.entry.js +1 -0
- package/dist/mint-components/p-a716994f.entry.js +13 -0
- package/dist/mint-components/p-a8fe13f1.system.entry.js +1 -0
- package/dist/mint-components/p-af4357ee.system.js +1 -0
- package/dist/mint-components/{p-4502ed11.system.entry.js → p-af870849.system.entry.js} +1 -1
- package/dist/mint-components/{p-5cac90e8.system.entry.js → p-b30636fc.system.entry.js} +1 -1
- package/dist/mint-components/{p-8679ed9f.system.entry.js → p-b5db456f.system.entry.js} +1 -1
- package/dist/mint-components/p-bc9b2c8b.entry.js +1 -0
- package/dist/mint-components/p-bd124285.system.entry.js +1 -0
- package/dist/mint-components/{p-a9050eb0.entry.js → p-bd229b60.entry.js} +1 -1
- package/dist/mint-components/{p-3223ba7b.entry.js → p-bd25d190.entry.js} +1 -1
- package/dist/mint-components/p-bd648bfa.entry.js +223 -0
- package/dist/mint-components/p-c176d02b.js +42 -0
- package/dist/mint-components/{p-d6474614.js → p-c30f7385.js} +24 -24
- package/dist/mint-components/p-c5cf5623.system.entry.js +1 -0
- package/dist/mint-components/p-c7572e7e.system.entry.js +1 -0
- package/dist/mint-components/{p-b4c52c5a.entry.js → p-c96b66e0.entry.js} +3 -3
- package/dist/mint-components/p-cac64545.system.entry.js +1 -0
- package/dist/mint-components/{p-370a1a73.system.js → p-cb45d0a8.system.js} +1 -1
- package/dist/mint-components/{p-e3735866.entry.js → p-cb550bef.entry.js} +2 -2
- package/dist/mint-components/{p-178d2d2e.entry.js → p-cdd04337.entry.js} +1 -1
- package/dist/mint-components/p-d6dd11db.system.entry.js +1 -0
- package/dist/mint-components/{p-41a11a7f.js → p-d7bc0a83.js} +1 -1
- package/dist/mint-components/p-db39e02a.entry.js +1 -0
- package/dist/mint-components/{p-cf690d55.system.entry.js → p-dd18c75b.system.entry.js} +1 -1
- package/dist/mint-components/{p-07f675ab.system.entry.js → p-de1ab7b7.system.entry.js} +1 -1
- package/dist/mint-components/{p-bf723ae9.entry.js → p-e493aa4f.entry.js} +2 -2
- package/dist/mint-components/{p-ce9e7c98.system.js → p-e5299352.system.js} +1 -1
- package/dist/mint-components/{p-afd366ae.system.entry.js → p-e6024536.system.entry.js} +1 -1
- package/dist/mint-components/{p-674a64fe.system.js → p-f9780efd.system.js} +1 -1
- package/dist/mint-components/{p-0d8c53ac.system.js → p-fc5fa9b1.system.js} +1 -1
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +8 -1
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +1 -0
- package/dist/types/components.d.ts +14 -2
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-31eb5b16.js +0 -1
- package/dist/esm-es5/global-04c7d3b5.js +0 -285
- package/dist/esm-es5/index.module-def4aec5.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +0 -1
- package/dist/esm-es5/useChildElements-32e1bda1.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +0 -1
- package/dist/esm-es5/useReferralTable-f4de0650.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +0 -1
- package/dist/mint-components/p-01cfff8a.system.entry.js +0 -1
- package/dist/mint-components/p-0d39c815.system.entry.js +0 -1
- package/dist/mint-components/p-10e89d0a.entry.js +0 -1
- package/dist/mint-components/p-1c857edb.entry.js +0 -33
- package/dist/mint-components/p-1dd69917.system.entry.js +0 -1
- package/dist/mint-components/p-27bd5535.entry.js +0 -187
- package/dist/mint-components/p-2dd67762.entry.js +0 -1
- package/dist/mint-components/p-32d1d162.entry.js +0 -1
- package/dist/mint-components/p-35d84041.system.entry.js +0 -1
- package/dist/mint-components/p-3ec16698.entry.js +0 -13
- package/dist/mint-components/p-4ea58025.system.entry.js +0 -1
- package/dist/mint-components/p-51f517a2.js +0 -1
- package/dist/mint-components/p-5be235f9.entry.js +0 -1
- package/dist/mint-components/p-7049e9b0.entry.js +0 -1
- package/dist/mint-components/p-733825fa.system.entry.js +0 -1
- package/dist/mint-components/p-770368bc.system.js +0 -1
- package/dist/mint-components/p-79191f88.entry.js +0 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +0 -1
- package/dist/mint-components/p-8e907ac7.system.entry.js +0 -1
- package/dist/mint-components/p-91669312.entry.js +0 -1
- package/dist/mint-components/p-9c310991.system.entry.js +0 -1
- package/dist/mint-components/p-a1dba9a1.system.entry.js +0 -1
- package/dist/mint-components/p-a6a7dcaa.js +0 -1
- package/dist/mint-components/p-a8f7cb95.js +0 -1
- package/dist/mint-components/p-aad11a68.entry.js +0 -1
- package/dist/mint-components/p-b370fca8.system.js +0 -1
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +0 -1
- package/dist/mint-components/p-b567780d.system.js +0 -1
- package/dist/mint-components/p-b5861974.system.entry.js +0 -1
- package/dist/mint-components/p-c34a507e.system.entry.js +0 -1
- package/dist/mint-components/p-c84659a3.system.js +0 -1
- package/dist/mint-components/p-c8878e79.entry.js +0 -1
- package/dist/mint-components/p-cfb48ad2.system.entry.js +0 -1
- package/dist/mint-components/p-e5a0c50e.entry.js +0 -13
- package/dist/mint-components/p-f1a1e7f3.system.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-0979f82e.system.js","./p-3bd60021.system.js"],(function(t){"use strict";var n,e,s,i,o;return{setters:[function(t){n=t.r},function(t){e=t.j},function(t){s=t.s;i=t.$;o=t.i}],execute:function(){function r(t){var n=t.nextPage;s(undefined);i.push({pathname:n,search:""})}var u=t("sqm_portal_logout",function(){function t(t){n(this,t);this.ignored=true;this.nextPage="/";e(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){o()?c():r(this)};return t}());function c(t){}}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as e,r as t,c as a}from"./p-64c3217a.js";import{b as s,
|
|
1
|
+
import{h as e,r as t,c as a}from"./p-64c3217a.js";import{b as s,h as r,d as l,j as i,u as n}from"./p-1b24bb52.js";import{i as o}from"./p-70890ada.js";import{Q as d,H as c,L as u,y as h,k as p,i as m}from"./p-c176d02b.js";import{c as v}from"./p-c1086930.js";import"./p-02be1a88.js";import{c as E}from"./p-cef45012.js";import{G as y}from"./p-c5d2e4ba.js";import{u as f,a as g}from"./p-d7bc0a83.js";import{u as w}from"./p-0043bc3c.js";import{l as b}from"./p-9223640e.js";import{m as x}from"./p-48704504.js";import{d as A}from"./p-6fbfd683.js";import{g as D}from"./p-0d77f228.js";import{l as N}from"./p-9ec99ced.js";const R=s("sq:useRewardsTable"),T=A.gql`
|
|
2
2
|
query getRewards(
|
|
3
3
|
$limit: Int!
|
|
4
4
|
$offset: Int!
|
|
@@ -113,7 +113,7 @@ import{h as e,r as t,c as a}from"./p-64c3217a.js";import{b as s,j as r,f as l,n
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
`,_=
|
|
116
|
+
`,_=A.gql`
|
|
117
117
|
query getImpactTax {
|
|
118
118
|
viewer {
|
|
119
119
|
... on User {
|
|
@@ -141,4 +141,4 @@ import{h as e,r as t,c as a}from"./p-64c3217a.js";import{b as s,j as r,f as l,n
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
`;async function I(t,a){const s=t.tagName.toLowerCase();let r;await customElements.whenDefined(s);try{r=a()}catch(t){return R("label promise failed",t),e("span",null)}try{return await r}catch(t){R("Error rendering label",t);const a=D(t);return e("details",null,e("summary",null,"Error"),a)}}const P=class{constructor(e){t(this,e),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,i(this)}disconnectedCallback(){}render(){const t=e(C,null),a=e(S,null),{states:s,data:i,callbacks:o,elements:d}=v()?function(e,t,a){const[s,i]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),o=g(),{data:d}=n((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||A(e.perPage)}),[e.perPage]),c=b();return l((()=>{i({loading:!0}),d&&async function(t){let a=d;a=d.slice(0,e.perPage);const s=t.filter((e=>{var t,a;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot"))})),r=null==s?void 0:s.map((async(e,t)=>{var a;const s=null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==s&&"empty"!==s){e.style.position="absolute",e.setAttribute("slot","column-"+t);const a=e.firstElementChild.childNodes[1];return a.innerHTML="+",a.style.lineHeight="20px",I(e,(()=>e.renderLabel(t)))}return I(e,(()=>e.renderLabel()))})),l=null==a?void 0:a.map((async e=>{const t=null==s?void 0:s.map((async t=>I(t,(()=>t.renderCell(e,void 0,{})))));return await Promise.all(t)})),n=l&&(await Promise.all(l)).filter((e=>e));i({rows:n});const o=r&&await Promise.all(r);i({columns:o,loading:!1,page:0})}(c)}),[d,c,o]),E({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:s.columns,rows:s.rows,emptyElement:t,loadingElement:a}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,t,a):function(t,a,s){var i,n,o;const d=c(),v=u(),E=h(),f=null!==(i=t.programId)&&void 0!==i?i:v,y={userId_eq:null==d?void 0:d.id,accountId_eq:null==d?void 0:d.accountId,...f?"classic"===f?{programId_exists:!1}:{programId_eq:f}:{}},[w,x]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{data:A,loading:D}=p(_,{},!(null==d?void 0:d.jwt)),{envelope:N,states:R,callbacks:P}=m(T,(e=>{var t;return null===(t=null==e?void 0:e.viewer)||void 0===t?void 0:t.rewards}),{limit:t.perPage,offset:0},{rewardFilter:y,locale:E},!(null==d?void 0:d.jwt)),C=g(),S=b(),L=null==N?void 0:N.data,U=null===(n=null==A?void 0:A.viewer)||void 0===n?void 0:n.impactConnection;l((()=>{x({loading:!0}),N&&async function(t){const a=t.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),s=null==a?void 0:a.map((async e=>I(e,(()=>e.renderLabel())))),r=null==L?void 0:L.map((async t=>{const s=null==a?void 0:a.map((async a=>I(a,(()=>a.renderCell(t,{locale:E,taxConnection:U},e)))));return await Promise.all(s)})),l=r&&(await Promise.all(r)).filter((e=>e));x({rows:l});const i=s&&await Promise.all(s);x({columns:i,loading:!1,page:R.currentPage})}(S)}),[N,S,C]);const k=!(null===(o=null==w?void 0:w.rows)||void 0===o?void 0:o.length)&&!(null==L?void 0:L.length);return{states:{hasNext:R.currentPage<R.pageCount-1,hasPrev:R.currentPage>0,show:R.loading||w.loading||D?"loading":k?"empty":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:!t.hideLabels,prevLabel:t.prevLabel,moreLabel:t.moreLabel},hiddenColumns:t.hiddenColumns,smBreakpoint:t.smBreakpoint,mdBreakpoint:t.mdBreakpoint},elements:{columns:w.columns,rows:w.rows,emptyElement:a,loadingElement:s},callbacks:{nextPage:()=>{P.setCurrentPage(R.currentPage+1)},prevPage:()=>{P.setCurrentPage(R.currentPage-1)}}}}(this,t,a);return w([this.perPage]),e(y,{states:s,data:i,callbacks:o,elements:d})}};function C(){return e("slot",{name:"empty"},e("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png","empty-state-header":"View your rewards","empty-state-text":"Refer friends and complete tasks to view the details of your rewards"}))}function S(){return e("slot",{name:"loading"},e(L,null),e(L,null),e(L,null),e(L,null))}function L(){return e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null)))}const U=class{constructor(e){t(this,e),this.ignored=!0,this.locale="en",i(this)}disconnectedCallback(){}render(){var e,t;return this.date?null===(t=null===(e=x.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(N(this.locale)))||void 0===t?void 0:t.toLocaleString(x.DateTime.DATE_MED):"-"}},k=class{constructor(e){t(this,e),this.columnTitle="Date received",this.dateShown="dateGiven",i(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-date-cell",{date:t[this.dateShown],locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}render(){return w([this.dateShown,this.columnTitle]),e(a,{style:{display:"none"}})}},O=f({DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},Fueltank:{"& .code":{display:"flex",cursor:"pointer",userSelect:"none",color:"var(--sl-color-neutral-500)","&:hover":{color:"var(--sl-color-sky-500)"}},"& .text":{maxWidth:"90%",overflow:"hidden",textOverflow:"ellipsis",color:"inherit",fontSize:"var(--sl-font-size-small)",fontWeight:"var(--sl-font-weight-bold)"},"& .icon":{position:"relative",top:"1px",marginLeft:"var(--sl-spacing-x-small)",color:"inherit"}}}),q=O.toString(),F=class{constructor(e){t(this,e)}render(){return o.locale=this.locale,e("div",{style:{display:"contents"}},e("style",{type:"text/css"},q),e((({reward:t})=>{var a;const s="CENTS"===t.unit?t.prettyValue.replace(/USD/gi,"$"):null!==(a=t.prettyValue)&&void 0!==a?a:"-",r="1"===t.prettyValueNumber||t.dateRedeemed&&"0"===t.prettyAvailableNumber;if("FUELTANK"===t.type)return e("div",{class:O.classes.Fueltank},t.prettyValue,t.fuelTankCode&&e("div",{class:"code",onClick:()=>navigator.clipboard.writeText(t.fuelTankCode)},e("sl-tooltip",{trigger:"click",placement:"top",distance:5,skidding:11,content:this.copyText,"onSl-show":e=>setTimeout((()=>e.path[0].hide()),1e3)},e("span",{class:"text"},t.fuelTankCode),e("span",{class:"icon"},e("sl-icon",{name:"files"})))));if("CREDIT"===t.type&&!r){const a=parseFloat(t.prettyValueNumber)-parseFloat(t.prettyRedeemedNumber),r=Math.round(a/parseFloat(t.prettyValueNumber)*100),l=t.statuses.includes("EXPIRED")||t.statuses.includes("CANCELLED")?e("div",null,o.formatMessage({id:"redeemedText",defaultMessage:this.redeemedText},{redeemedAmount:t.prettyRedeemedCredit})):e("div",null,o.formatMessage({id:"availableText",defaultMessage:this.availableText},{availableAmount:t.statuses.includes("PENDING")?t.prettyAssignedCredit:t.prettyAvailableValue})),i=f({Progress:{height:"3px",width:"100%",margin:"var(--sl-spacing-xx-small) 0",background:"var(--sl-color-neutral-200)","&:after":{content:'""',display:"block",background:"var(--sl-color-primary-300)",borderRadius:"100px",width:`${r}%`,height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",width:"150px",whiteSpace:"break",overflow:"hidden",textOverflow:"ellipsis"},Text:{fontSize:"var(--sl-font-size-medium)",color:"var(--sl-color-gray-800)"},Subtext:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}}),n=i.toString();return e("div",null,e("style",{type:"text/css"},n),e("div",{class:i.classes.Container},e("span",{part:"sqm-reward-cell-value"},s+" "),e("br",null)," ",e("div",{part:"sqm-reward-cell-progress",class:i.classes.Progress}),e("span",{part:"sqm-reward-cell-subtext",class:i.classes.Subtext},l)))}return e("div",null,s)}),{reward:this.reward}))}},M=class{constructor(e){t(this,e),this.columnTitle="Reward",this.redeemedText="{redeemedAmount} redeemed",this.availableText="{availableAmount} remaining",this.copyText="Copied!",i(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-reward-cell",{reward:t,redeemedText:this.redeemedText,availableText:this.availableText,copyText:this.copyText,locale:null==a?void 0:a.locale,exportparts:"sqm-rewards-cell-value, sqm-rewards-cell-progress-bar, sqm-rewards-cell-subtext"})}async renderLabel(){return this.columnTitle}render(){return w([this.columnTitle,this.redeemedText,this.availableText,this.copyText]),e(a,{style:{display:"none"}})}},V=class{constructor(e){t(this,e),this.locale="en"}render(){o.locale=this.locale;const t=({reward:t})=>{var a;return e("span",null,o.formatMessage({id:"rewardSourceText",defaultMessage:this.rewardSourceText},{rewardSource:t.rewardSource,programName:null===(a=null==t?void 0:t.program)||void 0===a?void 0:a.name}))},a=({reward:t})=>{var a;const s=e("div",null,e("span",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},this.rewardExchangeText),e("br",null),null===(a=t.exchangedRewardRedemptionTransaction)||void 0===a?void 0:a.prettyRedeemedCredit," → ",t.prettyValue);return t.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+t.prettyValue.length<21?s:e("div",{style:{display:"inline-block",verticalAlign:"top"}},s)},s=e=>e?e.firstName||e.lastName?e.firstName?e.lastName?`${e.firstName} ${e.lastName}`:`${e.firstName}`:`${e.lastName}`:this.anonymousUserText:this.deletedUserText;return e((()=>"FRIEND_SIGNUP"===this.reward.rewardSource||"REFERRED"===this.reward.rewardSource?null===this.reward.referral?e("p",{style:{color:"var(--sl-color-gray-400)"}},this.deletedReferralText):e("div",null,e("div",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},o.formatMessage({id:"referralText",defaultMessage:this.referralText},{rewardSource:this.reward.rewardSource})),e("div",null,s("FRIEND_SIGNUP"==this.reward.rewardSource?this.reward.referral.referredUser:this.reward.referral.referrerUser))):e(this.reward.exchangedRewardRedemptionTransaction?a:t,{reward:this.reward})),null)}},G=class{constructor(e){t(this,e),this.columnTitle="Source",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",this.rewardExchangeText="Reward Exchange",this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}",this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}",i(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-source-cell",{reward:t,anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText,locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}render(){return w([this.deletedUser,this.anonymousUser,this.columnTitle,this.rewardExchangeText,this.referralText,this.rewardSourceText]),e(a,{style:{display:"none"}})}},$=f({Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",paddingLeft:"10px",whiteSpace:"pre-line"}},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",background:"var(--sl-color-blue-600)"}},Date:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}}),B=$.toString(),j=class{constructor(e){t(this,e),this.expiryText="Expires",this.locale="en",this.pendingUsTax="W-9 required",this.pendingTaxReview="Awaiting tax form review.",this.pendingNewTaxForm="Invalid tax form. Submit a new form to receive your rewards.",this.pendingTaxSubmission="Submit your tax documents to receive your rewards.",this.pendingPartnerCreation="Complete your tax and cash payout setup to receive your rewards.",this.pendingScheduled="Until",this.pendingUnhandled="Fulfillment error",this.pendingReviewText="Awaiting review",this.deniedText="Detected self-referral",this.payoutFailed="Payout failed due to a fulfillment issue and is current being retried.",this.payoutApproved="Reward approved for payout and was scheduled for payment based on your settings.",this.payoutCancelled="If you think this is a mistake, contact our Support team."}rewardStatus(e){var t,a,s,r,l,i,n,o,d;const c=null===(t=e.statuses)||void 0===t?void 0:t.includes("EXPIRED"),u=null===(a=e.statuses)||void 0===a?void 0:a.includes("PENDING"),h="INTEGRATION"===e.type||"FUELTANK"===e.type,p=null===(r=null===(s=e.referral)||void 0===s?void 0:s.fraudData)||void 0===r?void 0:r.moderationStatus;if("DENIED"===p)return"DENIED";if("PENDING"===p)return"PENDING_REVIEW";const m=null===(l=e.partnerFundsTransfer)||void 0===l?void 0:l.status;return"TRANSFERRED"===m||"NOT_YET_DUE"===m?"PAYOUT_APPROVED":"OVERDUE"===m?"PAYOUT_FAILED":"REVERSED"===m?"PAYOUT_CANCELLED":e.dateCancelled?"CANCELLED":c?"EXPIRED":u?"PENDING":"CREDIT"===e.type?(null===(i=e.statuses)||void 0===i?void 0:i.includes("REDEEMED"))?"REDEEMED":"AVAILABLE":"PCT_DISCOUNT"===e.type&&(null===(n=e.statuses)||void 0===n?void 0:n.includes("AVAILABLE"))?"AVAILABLE":h&&u?"PENDING":h&&(null===(o=e.statuses)||void 0===o?void 0:o.includes("CANCELLED"))?"CANCELLED":h&&(null===(d=e.statuses)||void 0===d?void 0:d.includes("AVAILABLE"))?"AVAILABLE":""}getTaxPendingReasons(e,t){var a,s,r,l,i;if(null===(a=null==e?void 0:e.pendingReasons)||void 0===a?void 0:a.includes("US_TAX")){if(!(null==t?void 0:t.taxHandlingEnabled))return this.pendingUsTax;if(!(null==t?void 0:t.connected))return this.pendingPartnerCreation;if(null===(s=null==t?void 0:t.publisher)||void 0===s?void 0:s.requiredTaxDocumentType){if(!(null===(r=null==t?void 0:t.publisher)||void 0===r?void 0:r.currentTaxDocument))return this.pendingTaxSubmission;const e=t.publisher.currentTaxDocument.status;if("INACTIVE"===e)return this.pendingNewTaxForm;if("NOT_VERIFIED"===e)return this.pendingTaxReview}if(!(null===(l=null==t?void 0:t.publisher)||void 0===l?void 0:l.withdrawalSettings))return this.pendingPartnerCreation}return(null===(i=null==e?void 0:e.pendingReasons)||void 0===i?void 0:i.includes("PAYOUT_CONFIGURATION_MISSING"))?this.pendingPartnerCreation:""}getBadgeType(e){switch(e){case"AVAILABLE":return"success";case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"PENDING":case"PENDING_REVIEW":return"warning";default:return"danger"}}getPayoutStatusText(e){switch(e){case"US_TAX":return this.pendingUsTax;case"PAYOUT_APPROVED":return this.payoutApproved;case"PAYOUT_FAILED":return this.payoutFailed;case"PAYOUT_CANCELLED":return this.payoutCancelled;case"PENDING_TAX_REVIEW":return this.pendingTaxReview;case"PENDING_NEW_TAX_FORM":return this.pendingNewTaxForm;case"PENDING_TAX_SUBMISSION":return this.pendingTaxSubmission;case"PENDING_PARTNER_CREATION":return this.pendingPartnerCreation}}render(){var t;o.locale=this.locale;const a=this.rewardStatus(this.reward),s=o.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:a}),r=this.getBadgeType(a),l=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"",i=l&&`${"AVAILABLE"===a&&this.reward.dateExpires?this.expiryText+" ":""}${null===(t=x.DateTime.fromMillis(l))||void 0===t?void 0:t.setLocale(N(N(this.locale))).toLocaleString(x.DateTime.DATE_MED)}`,n="PENDING"===a?this.getTaxPendingReasons(this.reward,this.taxConnection)||function(e){var t;const a={SCHEDULED:e.reward.dateScheduledFor&&e.pendingScheduled+" "+(null===(t=x.DateTime.fromMillis(e.reward.dateScheduledFor))||void 0===t?void 0:t.setLocale(N(N(e.locale||"en"))).toLocaleString(x.DateTime.DATE_MED)),UNHANDLED_ERROR:e.pendingUnhandled,SUSPECTED_FRAUD:e.pendingReview},s=e.getTaxPendingReasons(e.reward,e.taxConnection);return[...s?[s]:[],...e.reward.pendingReasons.map((e=>{var t;return null!==(t=a[e])&&void 0!==t?t:e}))].join(", ")}(this):null,d="PENDING_REVIEW"===a?this.pendingReviewText:"DENIED"===a?this.deniedText:null;return e("div",{style:{display:"contents"}},e("style",{type:"text/css"},B),e("sl-badge",{type:r,pill:!0,class:"REDEEMED"===a||"PAYOUT_APPROVED"===a?$.classes.RedeemBadge:$.classes.Badge},s),e("p",{class:$.classes.Date},d||n||this.getPayoutStatusText(a)||i))}},z=class{constructor(e){t(this,e),this.columnTitle="Status",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }",this.expiryText="Expires on ",this.pendingUsTax="W-9 required",this.pendingScheduled="Until",this.pendingUnhandled="Fulfillment error",this.pendingReviewText="Awaiting review",this.deniedText="Detected self-referral",this.pendingTaxReview="Awaiting tax form review.",this.pendingNewTaxForm="Invalid tax form. Submit a new form to receive your rewards.",this.pendingTaxSubmission="Submit your tax documents to receive your rewards.",this.pendingPartnerCreation="Complete your tax and cash payout setup to receive your rewards.",this.payoutFailed="Payout failed due to a fulfillment issue and is current being retried.",this.payoutCancelled="If you think this is a mistake, contact our Support team.",this.payoutApproved="Reward approved for payout and was scheduled for payment based on your settings.",i(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:t,taxConnection:null==a?void 0:a.taxConnection,expiryText:this.expiryText,pendingScheduled:this.pendingScheduled,pendingUsTax:this.pendingUsTax,pendingUnhandled:this.pendingUnhandled,pendingReviewText:this.pendingReviewText,payoutFailed:this.payoutFailed,payoutApproved:this.payoutApproved,payoutCancelled:this.payoutCancelled,deniedText:this.deniedText,locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}render(){return w([this.columnTitle,this.statusText,this.expiryText,this.pendingReviewText,this.pendingScheduled,this.pendingUsTax,this.pendingUnhandled]),e(a,{style:{display:"none"}})}};export{P as sqm_rewards_table,U as sqm_rewards_table_date_cell,k as sqm_rewards_table_date_column,F as sqm_rewards_table_reward_cell,M as sqm_rewards_table_reward_column,V as sqm_rewards_table_source_cell,G as sqm_rewards_table_source_column,j as sqm_rewards_table_status_cell,z as sqm_rewards_table_status_column}
|
|
144
|
+
`;async function I(t,a){const s=t.tagName.toLowerCase();let r;await customElements.whenDefined(s);try{r=a()}catch(t){return R("label promise failed",t),e("span",null)}try{return await r}catch(t){R("Error rendering label",t);const a=D(t);return e("details",null,e("summary",null,"Error"),a)}}const P=class{constructor(e){t(this,e),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,i(this)}disconnectedCallback(){}render(){const t=e(C,null),a=e(S,null),{states:s,data:i,callbacks:o,elements:E}=m()?function(e,t,a){const[s,i]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),o=f(),{data:d}=n((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||x(e.perPage)}),[e.perPage]),c=w();return l((()=>{i({loading:!0}),d&&async function(t){let a=d;a=d.slice(0,e.perPage);const s=t.filter((e=>{var t,a;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot"))})),r=null==s?void 0:s.map((async(e,t)=>{var a;const s=null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==s&&"empty"!==s){e.style.position="absolute",e.setAttribute("slot","column-"+t);const a=e.firstElementChild.childNodes[1];return a.innerHTML="+",a.style.lineHeight="20px",I(e,(()=>e.renderLabel(t)))}return I(e,(()=>e.renderLabel()))})),l=null==a?void 0:a.map((async e=>{const t=null==s?void 0:s.map((async t=>I(t,(()=>t.renderCell(e,void 0,{})))));return await Promise.all(t)})),n=l&&(await Promise.all(l)).filter((e=>e));i({rows:n});const o=r&&await Promise.all(r);i({columns:o,loading:!1,page:0})}(c)}),[d,c,o]),v({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:s.columns,rows:s.rows,emptyElement:t,loadingElement:a}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,t,a):function(t,a,s){var i,n,o;const m=d(),v=c(),E=u(),y=null!==(i=t.programId)&&void 0!==i?i:v,g={userId_eq:null==m?void 0:m.id,accountId_eq:null==m?void 0:m.accountId,...y?"classic"===y?{programId_exists:!1}:{programId_eq:y}:{}},[b,x]=r(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{data:A,loading:D}=h(_,{},!(null==m?void 0:m.jwt)),{envelope:N,states:R,callbacks:P}=p(T,(e=>{var t;return null===(t=null==e?void 0:e.viewer)||void 0===t?void 0:t.rewards}),{limit:t.perPage,offset:0},{rewardFilter:g,locale:E},!(null==m?void 0:m.jwt)),C=f(),S=w(),L=null==N?void 0:N.data,U=null===(n=null==A?void 0:A.viewer)||void 0===n?void 0:n.impactConnection;l((()=>{x({loading:!0}),N&&async function(t){const a=t.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),s=null==a?void 0:a.map((async e=>I(e,(()=>e.renderLabel())))),r=null==L?void 0:L.map((async t=>{const s=null==a?void 0:a.map((async a=>I(a,(()=>a.renderCell(t,{locale:E,taxConnection:U},e)))));return await Promise.all(s)})),l=r&&(await Promise.all(r)).filter((e=>e));x({rows:l});const i=s&&await Promise.all(s);x({columns:i,loading:!1,page:R.currentPage})}(S)}),[N,S,C]);const k=!(null===(o=null==b?void 0:b.rows)||void 0===o?void 0:o.length)&&!(null==L?void 0:L.length);return{states:{hasNext:R.currentPage<R.pageCount-1,hasPrev:R.currentPage>0,show:R.loading||b.loading||D?"loading":k?"empty":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:!t.hideLabels,prevLabel:t.prevLabel,moreLabel:t.moreLabel},hiddenColumns:t.hiddenColumns,smBreakpoint:t.smBreakpoint,mdBreakpoint:t.mdBreakpoint},elements:{columns:b.columns,rows:b.rows,emptyElement:a,loadingElement:s},callbacks:{nextPage:()=>{P.setCurrentPage(R.currentPage+1)},prevPage:()=>{P.setCurrentPage(R.currentPage-1)}}}}(this,t,a);return g([this.perPage]),e(y,{states:s,data:i,callbacks:o,elements:E})}};function C(){return e("slot",{name:"empty"},e("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png","empty-state-header":"View your rewards","empty-state-text":"Refer friends and complete tasks to view the details of your rewards"}))}function S(){return e("slot",{name:"loading"},e(L,null),e(L,null),e(L,null),e(L,null))}function L(){return e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null)))}const U=class{constructor(e){t(this,e),this.ignored=!0,this.locale="en",i(this)}disconnectedCallback(){}render(){var e,t;return this.date?null===(t=null===(e=b.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(N(this.locale)))||void 0===t?void 0:t.toLocaleString(b.DateTime.DATE_MED):"-"}},k=class{constructor(e){t(this,e),this.columnTitle="Date received",this.dateShown="dateGiven",i(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-date-cell",{date:t[this.dateShown],locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}render(){return g([this.dateShown,this.columnTitle]),e(a,{style:{display:"none"}})}},O=E({DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},Fueltank:{"& .code":{display:"flex",cursor:"pointer",userSelect:"none",color:"var(--sl-color-neutral-500)","&:hover":{color:"var(--sl-color-sky-500)"}},"& .text":{maxWidth:"90%",overflow:"hidden",textOverflow:"ellipsis",color:"inherit",fontSize:"var(--sl-font-size-small)",fontWeight:"var(--sl-font-weight-bold)"},"& .icon":{position:"relative",top:"1px",marginLeft:"var(--sl-spacing-x-small)",color:"inherit"}}}),q=O.toString(),F=class{constructor(e){t(this,e)}render(){return o.locale=this.locale,e("div",{style:{display:"contents"}},e("style",{type:"text/css"},q),e((({reward:t})=>{var a;const s="CENTS"===t.unit?t.prettyValue.replace(/USD/gi,"$"):null!==(a=t.prettyValue)&&void 0!==a?a:"-",r="1"===t.prettyValueNumber||t.dateRedeemed&&"0"===t.prettyAvailableNumber;if("FUELTANK"===t.type)return e("div",{class:O.classes.Fueltank},t.prettyValue,t.fuelTankCode&&e("div",{class:"code",onClick:()=>navigator.clipboard.writeText(t.fuelTankCode)},e("sl-tooltip",{trigger:"click",placement:"top",distance:5,skidding:11,content:this.copyText,"onSl-show":e=>setTimeout((()=>e.path[0].hide()),1e3)},e("span",{class:"text"},t.fuelTankCode),e("span",{class:"icon"},e("sl-icon",{name:"files"})))));if("CREDIT"===t.type&&!r){const a=parseFloat(t.prettyValueNumber)-parseFloat(t.prettyRedeemedNumber),r=Math.round(a/parseFloat(t.prettyValueNumber)*100),l=t.statuses.includes("EXPIRED")||t.statuses.includes("CANCELLED")?e("div",null,o.formatMessage({id:"redeemedText",defaultMessage:this.redeemedText},{redeemedAmount:t.prettyRedeemedCredit})):e("div",null,o.formatMessage({id:"availableText",defaultMessage:this.availableText},{availableAmount:t.statuses.includes("PENDING")?t.prettyAssignedCredit:t.prettyAvailableValue})),i=E({Progress:{height:"3px",width:"100%",margin:"var(--sl-spacing-xx-small) 0",background:"var(--sl-color-neutral-200)","&:after":{content:'""',display:"block",background:"var(--sl-color-primary-300)",borderRadius:"100px",width:`${r}%`,height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",width:"150px",whiteSpace:"break",overflow:"hidden",textOverflow:"ellipsis"},Text:{fontSize:"var(--sl-font-size-medium)",color:"var(--sl-color-gray-800)"},Subtext:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}}),n=i.toString();return e("div",null,e("style",{type:"text/css"},n),e("div",{class:i.classes.Container},e("span",{part:"sqm-reward-cell-value"},s+" "),e("br",null)," ",e("div",{part:"sqm-reward-cell-progress",class:i.classes.Progress}),e("span",{part:"sqm-reward-cell-subtext",class:i.classes.Subtext},l)))}return e("div",null,s)}),{reward:this.reward}))}},M=class{constructor(e){t(this,e),this.columnTitle="Reward",this.redeemedText="{redeemedAmount} redeemed",this.availableText="{availableAmount} remaining",this.copyText="Copied!",i(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-reward-cell",{reward:t,redeemedText:this.redeemedText,availableText:this.availableText,copyText:this.copyText,locale:null==a?void 0:a.locale,exportparts:"sqm-rewards-cell-value, sqm-rewards-cell-progress-bar, sqm-rewards-cell-subtext"})}async renderLabel(){return this.columnTitle}render(){return g([this.columnTitle,this.redeemedText,this.availableText,this.copyText]),e(a,{style:{display:"none"}})}},V=class{constructor(e){t(this,e),this.locale="en"}render(){o.locale=this.locale;const t=({reward:t})=>{var a;return e("span",null,o.formatMessage({id:"rewardSourceText",defaultMessage:this.rewardSourceText},{rewardSource:t.rewardSource,programName:null===(a=null==t?void 0:t.program)||void 0===a?void 0:a.name}))},a=({reward:t})=>{var a;const s=e("div",null,e("span",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},this.rewardExchangeText),e("br",null),null===(a=t.exchangedRewardRedemptionTransaction)||void 0===a?void 0:a.prettyRedeemedCredit," → ",t.prettyValue);return t.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+t.prettyValue.length<21?s:e("div",{style:{display:"inline-block",verticalAlign:"top"}},s)},s=e=>e?e.firstName||e.lastName?e.firstName?e.lastName?`${e.firstName} ${e.lastName}`:`${e.firstName}`:`${e.lastName}`:this.anonymousUserText:this.deletedUserText;return e((()=>"FRIEND_SIGNUP"===this.reward.rewardSource||"REFERRED"===this.reward.rewardSource?null===this.reward.referral?e("p",{style:{color:"var(--sl-color-gray-400)"}},this.deletedReferralText):e("div",null,e("div",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},o.formatMessage({id:"referralText",defaultMessage:this.referralText},{rewardSource:this.reward.rewardSource})),e("div",null,s("FRIEND_SIGNUP"==this.reward.rewardSource?this.reward.referral.referredUser:this.reward.referral.referrerUser))):e(this.reward.exchangedRewardRedemptionTransaction?a:t,{reward:this.reward})),null)}},G=class{constructor(e){t(this,e),this.columnTitle="Source",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",this.rewardExchangeText="Reward Exchange",this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}",this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}",i(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-source-cell",{reward:t,anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText,locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}render(){return g([this.deletedUser,this.anonymousUser,this.columnTitle,this.rewardExchangeText,this.referralText,this.rewardSourceText]),e(a,{style:{display:"none"}})}},$=E({Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",paddingLeft:"10px",whiteSpace:"pre-line"}},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",background:"var(--sl-color-blue-600)"}},Date:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}}),B=$.toString(),j=class{constructor(e){t(this,e),this.expiryText="Expires",this.locale="en",this.pendingUsTax="W-9 required",this.pendingTaxReview="Awaiting tax form review.",this.pendingNewTaxForm="Invalid tax form. Submit a new form to receive your rewards.",this.pendingTaxSubmission="Submit your tax documents to receive your rewards.",this.pendingPartnerCreation="Complete your tax and cash payout setup to receive your rewards.",this.pendingScheduled="Until",this.pendingUnhandled="Fulfillment error",this.pendingReviewText="Awaiting review",this.deniedText="Detected self-referral",this.payoutFailed="Payout failed due to a fulfillment issue and is current being retried.",this.payoutApproved="Reward approved for payout and was scheduled for payment based on your settings.",this.payoutCancelled="If you think this is a mistake, contact our Support team."}rewardStatus(e){var t,a,s,r,l,i,n,o,d;const c=null===(t=e.statuses)||void 0===t?void 0:t.includes("EXPIRED"),u=null===(a=e.statuses)||void 0===a?void 0:a.includes("PENDING"),h="INTEGRATION"===e.type||"FUELTANK"===e.type,p=null===(r=null===(s=e.referral)||void 0===s?void 0:s.fraudData)||void 0===r?void 0:r.moderationStatus;if("DENIED"===p)return"DENIED";if("PENDING"===p)return"PENDING_REVIEW";const m=null===(l=e.partnerFundsTransfer)||void 0===l?void 0:l.status;return"TRANSFERRED"===m||"NOT_YET_DUE"===m?"PAYOUT_APPROVED":"OVERDUE"===m?"PAYOUT_FAILED":"REVERSED"===m?"PAYOUT_CANCELLED":e.dateCancelled?"CANCELLED":c?"EXPIRED":u?"PENDING":"CREDIT"===e.type?(null===(i=e.statuses)||void 0===i?void 0:i.includes("REDEEMED"))?"REDEEMED":"AVAILABLE":"PCT_DISCOUNT"===e.type&&(null===(n=e.statuses)||void 0===n?void 0:n.includes("AVAILABLE"))?"AVAILABLE":h&&u?"PENDING":h&&(null===(o=e.statuses)||void 0===o?void 0:o.includes("CANCELLED"))?"CANCELLED":h&&(null===(d=e.statuses)||void 0===d?void 0:d.includes("AVAILABLE"))?"AVAILABLE":""}getTaxPendingReasons(e,t){var a,s,r,l,i;if(null===(a=null==e?void 0:e.pendingReasons)||void 0===a?void 0:a.includes("US_TAX")){if(!(null==t?void 0:t.taxHandlingEnabled))return this.pendingUsTax;if(!(null==t?void 0:t.connected))return this.pendingPartnerCreation;if(null===(s=null==t?void 0:t.publisher)||void 0===s?void 0:s.requiredTaxDocumentType){if(!(null===(r=null==t?void 0:t.publisher)||void 0===r?void 0:r.currentTaxDocument))return this.pendingTaxSubmission;const e=t.publisher.currentTaxDocument.status;if("INACTIVE"===e)return this.pendingNewTaxForm;if("NOT_VERIFIED"===e)return this.pendingTaxReview}if(!(null===(l=null==t?void 0:t.publisher)||void 0===l?void 0:l.withdrawalSettings))return this.pendingPartnerCreation}return(null===(i=null==e?void 0:e.pendingReasons)||void 0===i?void 0:i.includes("PAYOUT_CONFIGURATION_MISSING"))?this.pendingPartnerCreation:""}getBadgeType(e){switch(e){case"AVAILABLE":return"success";case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"PENDING":case"PENDING_REVIEW":return"warning";default:return"danger"}}getPayoutStatusText(e){switch(e){case"US_TAX":return this.pendingUsTax;case"PAYOUT_APPROVED":return this.payoutApproved;case"PAYOUT_FAILED":return this.payoutFailed;case"PAYOUT_CANCELLED":return this.payoutCancelled;case"PENDING_TAX_REVIEW":return this.pendingTaxReview;case"PENDING_NEW_TAX_FORM":return this.pendingNewTaxForm;case"PENDING_TAX_SUBMISSION":return this.pendingTaxSubmission;case"PENDING_PARTNER_CREATION":return this.pendingPartnerCreation}}render(){var t;o.locale=this.locale;const a=this.rewardStatus(this.reward),s=o.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:a}),r=this.getBadgeType(a),l=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"",i=l&&`${"AVAILABLE"===a&&this.reward.dateExpires?this.expiryText+" ":""}${null===(t=b.DateTime.fromMillis(l))||void 0===t?void 0:t.setLocale(N(N(this.locale))).toLocaleString(b.DateTime.DATE_MED)}`,n="PENDING"===a?this.getTaxPendingReasons(this.reward,this.taxConnection)||function(e){var t;const a={SCHEDULED:e.reward.dateScheduledFor&&e.pendingScheduled+" "+(null===(t=b.DateTime.fromMillis(e.reward.dateScheduledFor))||void 0===t?void 0:t.setLocale(N(N(e.locale||"en"))).toLocaleString(b.DateTime.DATE_MED)),UNHANDLED_ERROR:e.pendingUnhandled,SUSPECTED_FRAUD:e.pendingReview},s=e.getTaxPendingReasons(e.reward,e.taxConnection);return[...s?[s]:[],...e.reward.pendingReasons.map((e=>{var t;return null!==(t=a[e])&&void 0!==t?t:e}))].join(", ")}(this):null,d="PENDING_REVIEW"===a?this.pendingReviewText:"DENIED"===a?this.deniedText:null;return e("div",{style:{display:"contents"}},e("style",{type:"text/css"},B),e("sl-badge",{type:r,pill:!0,class:"REDEEMED"===a||"PAYOUT_APPROVED"===a?$.classes.RedeemBadge:$.classes.Badge},s),e("p",{class:$.classes.Date},d||n||this.getPayoutStatusText(a)||i))}},z=class{constructor(e){t(this,e),this.columnTitle="Status",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }",this.expiryText="Expires on ",this.pendingUsTax="W-9 required",this.pendingScheduled="Until",this.pendingUnhandled="Fulfillment error",this.pendingReviewText="Awaiting review",this.deniedText="Detected self-referral",this.pendingTaxReview="Awaiting tax form review.",this.pendingNewTaxForm="Invalid tax form. Submit a new form to receive your rewards.",this.pendingTaxSubmission="Submit your tax documents to receive your rewards.",this.pendingPartnerCreation="Complete your tax and cash payout setup to receive your rewards.",this.payoutFailed="Payout failed due to a fulfillment issue and is current being retried.",this.payoutCancelled="If you think this is a mistake, contact our Support team.",this.payoutApproved="Reward approved for payout and was scheduled for payment based on your settings.",i(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:t,taxConnection:null==a?void 0:a.taxConnection,expiryText:this.expiryText,pendingScheduled:this.pendingScheduled,pendingUsTax:this.pendingUsTax,pendingUnhandled:this.pendingUnhandled,pendingReviewText:this.pendingReviewText,payoutFailed:this.payoutFailed,payoutApproved:this.payoutApproved,payoutCancelled:this.payoutCancelled,deniedText:this.deniedText,locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}render(){return g([this.columnTitle,this.statusText,this.expiryText,this.pendingReviewText,this.pendingScheduled,this.pendingUsTax,this.pendingUnhandled]),e(a,{style:{display:"none"}})}};export{P as sqm_rewards_table,U as sqm_rewards_table_date_cell,k as sqm_rewards_table_date_column,F as sqm_rewards_table_reward_cell,M as sqm_rewards_table_reward_column,V as sqm_rewards_table_source_cell,G as sqm_rewards_table_source_column,j as sqm_rewards_table_status_cell,z as sqm_rewards_table_status_column}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-0979f82e.system.js","./p-1a673057.system.js","./p-4f775e84.system.js"],(function(t){"use strict";var e,n,s,o;return{setters:[function(t){e=t.r;n=t.h},function(t){s=t.j},function(){},function(t){o=t.T}],execute:function(){var i=t("sqm_text_span",function(){function t(t){e(this,t);this.ignored=true;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.componentWillLoad=function(){};t.prototype.render=function(){return n(o,{type:this.type},this.text)};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(a){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))a[n]=e[n]}return a};return __assign.apply(this,arguments)};var __spreadArrays=this&&this.__spreadArrays||function(){for(var a=0,e=0,r=arguments.length;e<r;e++)a+=arguments[e].length;for(var t=Array(a),n=0,e=0;e<r;e++)for(var o=arguments[e],l=0,d=o.length;l<d;l++,n++)t[n]=o[l];return t};System.register(["./p-
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(a){for(var e,r=1,t=arguments.length;r<t;r++){e=arguments[r];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))a[n]=e[n]}return a};return __assign.apply(this,arguments)};var __spreadArrays=this&&this.__spreadArrays||function(){for(var a=0,e=0,r=arguments.length;e<r;e++)a+=arguments[e].length;for(var t=Array(a),n=0,e=0;e<r;e++)for(var o=arguments[e],l=0,d=o.length;l<d;l++,n++)t[n]=o[l];return t};System.register(["./p-e5299352.system.js"],(function(a){"use strict";var e;return{setters:[function(a){e=a.l}],execute:function(){var r=a("m",(function(a,e){if(a===void 0){a=4}if(e===void 0){e=undefined}var r=__spreadArrays(Array(a)).map((function(){return u(e)}));return{data:r}}));var t=["POINT","TICKET","GIFT"];var n=["Points","Tickets","Gifts"];var o=["AVAILABLE","PENDING","CANCELLED","EXPIRED","REDEEMED"];var l=["US_TAX","SCHEDULED","UNHANDLED_ERROR"];var d=["PENDING","IN_PROGRESS","FAILED","UNCLAIMED","ONHOLD","REFUNDED","RETURNED","REVERSED","BLOCKED","DENIED"];function i(a){if(a)return"SUCCESS";var e=Math.floor(Math.random()*10);var r=d[e];return r}var s=a("g",(function(){var a,r;var t=Math.floor(Math.random()*10)>=5?(a=e.DateTime.now())===null||a===void 0?void 0:a.minus({day:1}):null;var n=Math.floor(Math.random()*10)>=5?(r=e.DateTime.now())===null||r===void 0?void 0:r.minus({day:1}):null;var o=i(t);var l=o==="DENIED"?"WARN":!!t?"SUCCESS":Math.floor(Math.random()*10)>=8?"ERROR":"SUCCESS";return{status:l,customMeta:{datePaidOut:t,dateLastAttempted:n,dateFirstAttempted:n,rawPayPalInfo:{transaction_status:o}}}}));var u=function(a){var r=false;var d=0;var i;var u;var E;var v;var f=e.DateTime.now();var m=Math.floor(Math.random()*3);var M=a||o[Math.floor(Math.random()*5)];var h=t[m];var D=n[m];var R=Math.floor(Math.random()*100)+2;if(M==="AVAILABLE"){d=Math.floor(Math.random()*R);v=Math.floor(Math.random()*10)<3?f.plus({days:7}).toMillis():null}else if(M==="EXPIRED"){r=true;d=Math.floor(Math.random()*R);v=f.minus({days:1}).toMillis()}else if(M==="PENDING"){var p=l[Math.floor(Math.random()*3)];i=[p];if(p==="SCHEDULED"){u=f.plus({days:6}).toMillis()}}else if(M==="REDEEMED"){r=true}else{r=true;E=f.minus({days:2}).toMillis()}var y=Math.floor(Math.random()*3);return{id:"61f7878e096c9265de88b46f",type:"CREDIT",value:R,unit:h,name:null,dateGiven:f.minus({days:3}).toMillis(),dateExpires:v,dateCancelled:E,dateRedeemed:M==="REDEEMED"?f.plus({days:2}).toMillis():null,dateScheduledFor:u,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:R+" "+D,prettyValueNumber:""+R,prettyAvailableNumber:r?"0":""+(R-d),prettyRedeemedNumber:r&&!d?"0":""+d,programId:y===1?"program-id":null,program:{name:"My Program"},meta:__assign({},s()),statuses:[M],pendingReasons:i,globalRewardKey:null,programRewardKey:null,rewardSource:y===1?"AUTOMATED":"MANUAL",prettyRedeemedCredit:d+" "+D,prettyAssignedCredit:R+" "+D,prettyAvailableValue:r?"0 "+D:R-d+" "+D,exchangedRewardRedemptionTransaction:y===2?{id:"61f7878e096c9265de88b414",creditRedeemed:50,prettyRedeemedCredit:"50 Tokens",unit:"TOKEN",dateRedeemed:1643612046258,exchangedRewards:[],redeemedRewards:[]}:null,referral:null,rewardRedemptionTransactions:{data:[]}}}}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,h as t}from"./p-64c3217a.js";import{
|
|
1
|
+
import{r as i,h as t}from"./p-64c3217a.js";import{j as r}from"./p-1b24bb52.js";import{Q as o,y as e,s,i as a}from"./p-c176d02b.js";import{c}from"./p-c1086930.js";import"./p-cef45012.js";import{d as n}from"./p-6fbfd683.js";import{g as l}from"./p-9ec99ced.js";import{L as m}from"./p-e3e16c36.js";const d=n.gql`
|
|
2
2
|
query getUserDetails {
|
|
3
3
|
viewer {
|
|
4
4
|
... on User {
|
|
@@ -8,4 +8,4 @@ import{r as i,h as t}from"./p-64c3217a.js";import{n as r}from"./p-fd2c5407.js";i
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,
|
|
11
|
+
`,p=class{constructor(t){i(this,t),this.userIdentificationText="{email}",this.switchUserText="not you?",this.emailErrorText="Error fetching email",r(this)}disconnectedCallback(){}render(){const i=a()?function(i){return c({onSwitchClick:()=>s(void 0),filledInEmailText:"john@example.com",switchUserText:i.switchUserText,emailErrorText:i.emailErrorText,loading:!1},i.demoData||{},{arrayMerge:(i,t)=>t})}(this):function(i){var t,r;const a=o(),{loading:c,data:n}=e(d,{},!a);return{loading:c,onSwitchClick:()=>{s(void 0)},filledInEmailText:null===(t=i.userIdentificationText)||void 0===t?void 0:t.replace("{email}",null===(r=null==n?void 0:n.viewer)||void 0===r?void 0:r.email),...i}}(l(this));return t(m,Object.assign({},i,{userIdentificationText:this.userIdentificationText,switchUserText:this.switchUserText,emailErrorText:this.emailErrorText}))}};export{p as sqm_logout_current_user}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t,c as i}from"./p-64c3217a.js";import{
|
|
1
|
+
import{r as s,h as t,c as i}from"./p-64c3217a.js";import{j as r}from"./p-1b24bb52.js";const h=class{constructor(t){s(this,t),this.nextPage="/",this.height=60,r(this)}disconnectedCallback(){}render(){return t(i,null,t("a",{href:this.nextPage,part:"sqm-link"},t("img",{style:{height:`${null==this?void 0:this.height}px`},src:null==this?void 0:this.imageUrl})))}};export{h as sqm_header_logo}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,r){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:r})}else{e.raw=r}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var r,i=1,t=arguments.length;i<t;i++){r=arguments[i];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))e[s]=r[s]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,r,i,t){function s(e){return e instanceof i?e:new i((function(r){r(e)}))}return new(i||(i=Promise))((function(i,a){function o(e){try{l(t.next(e))}catch(e){a(e)}}function n(e){try{l(t["throw"](e))}catch(e){a(e)}}function l(e){e.done?i(e.value):s(e.value).then(o,n)}l((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,s,a,o;return o={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function n(e){return function(r){return l([e,r])}}function l(o){if(t)throw new TypeError("Generator is already executing.");while(i)try{if(t=1,s&&(a=o[0]&2?s["return"]:o[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,o[1])).done)return a;if(s=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;s=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(o[0]===6&&i.label<a[1]){i.label=a[1];a=o;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(o);break}if(a[2])i.ops.pop();i.trys.pop();continue}o=r.call(e,i)}catch(e){o=[6,e];s=0}finally{t=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-0979f82e.system.js","./p-3bd60021.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-89669879.system.js","./p-4f775e84.system.js","./p-b2295bc5.system.js","./p-2e6e8fc0.system.js","./p-9d362d44.system.js"],(function(e){"use strict";var r,i,t,s,a,o,n,l,d,u,v,m,c,f,g,p,h,b,E,w,y,_,x;return{setters:[function(e){r=e.h;i=e.r},function(e){t=e.e;s=e.d;a=e.j},function(e){o=e.L;n=e.W;l=e.y;d=e.$;u=e.u;v=e.i},function(e){m=e.c},function(e){c=e.A;f=e.a;g=e.H;p=e.b;h=e.E},function(e){b=e.c},function(e){E=e.d},function(e){w=e.T},function(e){y=e.j},function(e){_=e.u},function(e){x=e.A}],execute:function(){var M={Wrapper:__assign(__assign({},c),{"max-width":"600px"}),Column:f,HostBlock:g,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:p,ErrorStyle:h};var P="\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n";var T=b(M);var k=T.toString();function F(e){var i,t,s,a,o,n,l,d,u,v,m,c,f,g,p,h,b,E,y,_;var x=e.states,M=e.refs,F=e.callbacks,q=e.content;if(x.error){window.scrollTo({top:0,left:0,behavior:"smooth"})}return r("div",{class:T.classes.Wrapper,part:"sqm-base"},r("style",{type:"text/css"},P,k),r(w,{type:"h3"},q.pageLabel),r("sl-form",{class:T.classes.Column,"onSl-submit":F.submit,ref:function(e){return M.formRef.current=e},novalidate:true},((i=x.registrationFormState)===null||i===void 0?void 0:i.disabled)?r("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},r("div",{part:"erroralert-text"},x.registrationFormState.disabledMessage)):x.error&&r("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},r("div",{part:"erroralert-text"},e.states.error)),q.formData,!x.hideInputs&&r("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"email",name:"/email",label:q.emailLabel||"Email",disabled:x.loading||((t=x.registrationFormState)===null||t===void 0?void 0:t.disabled),required:true,validationError:function(e){var r=e.value;if(!r){return q.requiredFieldErrorMessage}if(!r.includes("@")){return q.invalidEmailErrorMessage}}},((a=(s=x.registrationFormState)===null||s===void 0?void 0:s.initialData)===null||a===void 0?void 0:a.email)?{value:(n=(o=x.registrationFormState)===null||o===void 0?void 0:o.initialData)===null||n===void 0?void 0:n.email}:{},((d=(l=x.registrationFormState)===null||l===void 0?void 0:l.validationErrors)===null||d===void 0?void 0:d.email)?{class:T.classes.ErrorStyle,helpText:((v=(u=x.registrationFormState)===null||u===void 0?void 0:u.validationErrors)===null||v===void 0?void 0:v.email)||q.requiredFieldErrorMessage}:[])),!x.hideInputs&&r("sqm-password-field",{fieldLabel:q.passwordLabel,"disable-validation":!x.enablePasswordValidation,meetsRequirementsText:q.meetsRequirementsText,doesNotMeetRequirementsText:q.doesNotMeetRequirementsText,minErrorText:q.minErrorText,uppercaseErrorText:q.uppercaseErrorText,lowercaseErrorText:q.lowercaseErrorText,hasErrorText:q.hasErrorText}),q.passwordField,!x.hideInputs&&x.confirmPassword&&r("sl-input",Object.assign({exportparts:"label: input-label, base: input-base",type:"password",name:"/confirmPassword",label:q.confirmPasswordLabel,disabled:x.loading||((m=x.registrationFormState)===null||m===void 0?void 0:m.disabled),required:true},((f=(c=x.registrationFormState)===null||c===void 0?void 0:c.initialData)===null||f===void 0?void 0:f.confirmPassword)?{value:(p=(g=x.registrationFormState)===null||g===void 0?void 0:g.initialData)===null||p===void 0?void 0:p.confirmPassword}:{},((b=(h=x.registrationFormState)===null||h===void 0?void 0:h.validationErrors)===null||b===void 0?void 0:b.confirmPassword)?{class:T.classes.ErrorStyle,helpText:((y=(E=x.registrationFormState)===null||E===void 0?void 0:E.validationErrors)===null||y===void 0?void 0:y.confirmPassword)||q.requiredFieldErrorMessage}:[])),q.terms,r("div",{class:T.classes.ButtonsContainer},r("sl-button",{submit:true,loading:x.loading,disabled:(_=x.registrationFormState)===null||_===void 0?void 0:_.disabled,exportparts:"base: primarybutton-base",type:"primary"},q.submitLabel||"Register"),q.secondaryButton)))}var q=E.gql(__makeTemplateObject(["\n query RegistrationFormQuery($key: String!) {\n form(key: $key) {\n key\n type\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"],["\n query RegistrationFormQuery($key: String!) {\n form(key: $key) {\n key\n type\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]));function S(e){var r=this;var i,a,v,m,c,f,g,p,h;var b=t(null);var E=o();var w=_({}),M=w.registrationFormState,P=w.setRegistrationFormState;var T=n(),k=T[0],F=T[1],S=F.loading,L=F.errors,D=F.data,j=F.formError;var R=l(q,{key:e.formKey});var O=S||R.loading;s((function(){var r,i,t;var s=(r=R===null||R===void 0?void 0:R.data)===null||r===void 0?void 0:r.form.initialData.initialData;var a=((i=R===null||R===void 0?void 0:R.data)===null||i===void 0?void 0:i.form.initialData.isEnabled)===false;var o=((t=R===null||R===void 0?void 0:R.data)===null||t===void 0?void 0:t.form.initialData.isEnabledErrorMessage)||e.formDisabledErrorMessage;var n={loading:O,disabled:a,disabledMessage:o,initialData:s};P(n)}),[(i=R===null||R===void 0?void 0:R.data)===null||i===void 0?void 0:i.form.initialData]);s((function(){if(!b.current)return;var e=b.current;e.addEventListener("sl-input",I);return function(){e.removeEventListener("sl-input",I)}}),[b.current]);var C=function(i){return __awaiter(r,void 0,void 0,(function(){var r,t,s,a,o,n,l,u,v,m,c,f,g,p,h,b,w,_,x,T,F,q,S,L,D,j,R,O;return __generator(this,(function(C){switch(C.label){case 0:x=i.target.getFormControls();T={};F={};x===null||x===void 0?void 0:x.forEach((function(r){if(!r.name)return;var i=r.name;var t=r.value;y.set(T,i,t);if(r.required&&!t){y.set(F,i,e.requiredFieldErrorMessage)}if(typeof r.validationError==="function"){var s=r.validationError;var a=s({control:r,key:i,value:t});if(a)y.set(F,i,a)}}));if((e.confirmPassword||T.confirmPassword)&&T.password!==T.confirmPassword){F=__assign(__assign({},F),{confirmPassword:e.passwordMismatchErrorMessage})}if(Object.keys(F).length){P(__assign(__assign({},M),{loading:false,error:"",validationErrors:F}));return[2]}P(__assign(__assign({},M),{loading:true,error:"",validationErrors:{}}));q=T.email,S=T.password;delete T.email;delete T.password;delete T.confirmPassword;L=e.redirectPath;D={key:e.formKey,formData:__assign({locale:E,email:q,password:S,redirectPath:L},T)};C.label=1;case 1:C.trys.push([1,3,,4]);return[4,k(D)];case 2:j=C.sent();if(j instanceof Error){throw j}P(__assign(__assign({},M),{loading:false,error:"",validationErrors:{}}));R=(r=j.submitForm)===null||r===void 0?void 0:r.results.find((function(e){var r;return((r=e===null||e===void 0?void 0:e.formHandler)===null||r===void 0?void 0:r.namespace)==="identity"}));if(R&&R.result.results.length&&R.result.results[0].success&&R.result.results[0].data.token){d.push(e.nextPage)}else if(((t=j.submitForm)===null||t===void 0?void 0:t.results.length)===1&&((n=(o=(a=(s=j.submitForm)===null||s===void 0?void 0:s.results[0])===null||a===void 0?void 0:a.result)===null||o===void 0?void 0:o.results)===null||n===void 0?void 0:n.length)===1&&((c=(m=(v=(u=(l=j.submitForm)===null||l===void 0?void 0:l.results[0])===null||u===void 0?void 0:u.result)===null||v===void 0?void 0:v.results)===null||m===void 0?void 0:m[0])===null||c===void 0?void 0:c.success)===false&&((w=(b=(h=(p=(g=(f=j.submitForm)===null||f===void 0?void 0:f.results[0])===null||g===void 0?void 0:g.result)===null||p===void 0?void 0:p.results)===null||h===void 0?void 0:h[0])===null||b===void 0?void 0:b.message)===null||w===void 0?void 0:w.startsWith("Blocked email"))){P(__assign(__assign({},M),{loading:false,error:"",validationErrors:{email:e.invalidEmailErrorMessage}}))}return[3,4];case 3:O=C.sent();if((_=O===null||O===void 0?void 0:O.message)===null||_===void 0?void 0:_.includes("is not a valid email address")){P(__assign(__assign({},M),{loading:false,error:"",validationErrors:{email:e.invalidEmailErrorMessage}}))}else{P(__assign(__assign({},M),{loading:false,error:e.networkErrorMessage,validationErrors:{}}))}return[3,4];case 4:return[2]}}))}))};var I=u((function(e){var r,i;var t=(i=(r=e.target)===null||r===void 0?void 0:r.type)===null||i===void 0?void 0:i.toLowerCase();if(t!=="tel")return;var s=new x("US");e.target.value=s.input(e.target.value)}),[]);var B="";if(((a=R===null||R===void 0?void 0:R.data)===null||a===void 0?void 0:a.form.initialData.isEnabled)===false){B=((v=R===null||R===void 0?void 0:R.data)===null||v===void 0?void 0:v.form.initialData.isEnabledErrorMessage)||e.formDisabledErrorMessage}else if((m=L===null||L===void 0?void 0:L.response)===null||m===void 0?void 0:m["error"]){B=e.networkErrorMessage}else if((L===null||L===void 0?void 0:L.message)&&!((c=L===null||L===void 0?void 0:L.response)===null||c===void 0?void 0:c.errors.length)){B=e.networkErrorMessage}else{B=j||((h=(p=(g=(f=R===null||R===void 0?void 0:R.errors)===null||f===void 0?void 0:f.response)===null||g===void 0?void 0:g.errors)===null||p===void 0?void 0:p[0])===null||h===void 0?void 0:h.message)||(M===null||M===void 0?void 0:M.error)}return{states:{loading:S||R.loading,error:B,registrationFormState:M,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs,loginPath:e.loginPath,enablePasswordValidation:!e.disablePasswordValidation},callbacks:{submit:C,inputFunction:I},refs:{formRef:b}}}var L=e("sqm_portal_registration_form",function(){function e(e){i(this,e);this.ignored=true;this.nextPage="/";this.redirectPath="/verifyEmail";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Register";this.loginLabel="Sign in";this.confirmPasswordLabel="Confirm Password";this.confirmPassword=false;this.disablePasswordValidation=false;this.hideInputs=false;this.pageLabel="Register";this.loginPath="/login";this.requiredFieldErrorMessage="Cannot be empty";this.networkErrorMessage="Network request failed.";this.passwordMismatchErrorMessage="Passwords do not match.";this.invalidEmailErrorMessage="Must be a valid email address";this.formDisabledErrorMessage="The registration form is currently disabled.";this.meetsRequirementsText="Password has met all requirements";this.doesNotMeetRequirementsText="Password must meet the following requirements:";this.minErrorText="be a minimum of 8 characters";this.uppercaseErrorText="contain at least 1 uppercase character";this.lowercaseErrorText="contain at least 1 lowercase character";this.hasErrorText="contain at least 1 number or symbol";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=v()?D(this):S(this),i=e.states,t=e.callbacks,s=e.refs;var a={formData:r("slot",{name:"formData"}),secondaryButton:r("slot",{name:"secondaryButton"},r("sl-button",{type:"text",disabled:i.loading,onClick:function(){return d.push(i.loginPath)}},this.loginLabel)),terms:r("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel,networkErrorMessage:this.networkErrorMessage,passwordMismatchErrorMessage:this.passwordMismatchErrorMessage,invalidEmailErrorMessage:this.invalidEmailErrorMessage,formDisabledErrorMessage:this.formDisabledErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,meetsRequirementsText:this.meetsRequirementsText,doesNotMeetRequirementsText:this.doesNotMeetRequirementsText,minErrorText:this.minErrorText,uppercaseErrorText:this.uppercaseErrorText,lowercaseErrorText:this.lowercaseErrorText,hasErrorText:this.hasErrorText};return r(F,{states:i,callbacks:t,content:a,refs:s})};return e}());function D(e){var r=this;return m({states:{error:"",loading:false,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs||false,customPasswordField:false,loginPath:"/login"},callbacks:{submit:function(e){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(e){console.log("submit");return[2]}))}))},inputFunction:function(){}},refs:{formRef:{}}},e.demoData||{},{arrayMerge:function(e,r){return r}})}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as e}from"./p-1b24bb52.js";import{_ as r,g as s}from"./p-c176d02b.js";function t(s){const t=r();e((()=>{t.dispatchEvent(new CustomEvent("sqm:request-rerender",{detail:!0,bubbles:!0,composed:!0}))}),s)}function n(){const t=r(),[n,o]=s();return e((()=>{const e=e=>{e.stopPropagation(),o()};return t.addEventListener("sqm:request-rerender",e),()=>{t.removeEventListener("sqm:request-rerender",e)}}),[]),n}export{t as a,n as u}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as s,c as r,r as t}from"./p-64c3217a.js";import{j as o}from"./p-1b24bb52.js";import"./p-c176d02b.js";import{a}from"./p-d7bc0a83.js";const c=({},t)=>s(r,null,t),l=class{constructor(s){t(this,s),o(this)}disconnectedCallback(){}render(){return a([this.header]),s(c,null,s("slot",null))}};export{l as sqm_tab}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?e(t.value):i(t.value).then(u,a)}c((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(n){return c([t,n])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(e)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1];o=u;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(u);break}if(o[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?e(t.value):i(t.value).then(u,a)}c((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(n){return c([t,n])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(e)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1];o=u;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(u);break}if(o[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-0979f82e.system.js","./p-3bd60021.system.js"],(function(t){"use strict";var n,e,r,i,o,u,a,c,s,l;return{setters:[function(t){n=t.r;e=t.h;r=t.c},function(t){i=t.m;o=t.d;u=t.j},function(t){a=t.J;c=t.E;s=t.z;l=t.P}],execute:function(){function f(t){var n=t.domain;return __awaiter(this,void 0,void 0,(function(){var t,e,r,u,f,h;return __generator(this,(function(p){t=a();e=n;r=s();u=c(e,r,t);f=i(l,u),h=f[1];o((function(){h(u)}),[u]);return[2]}))}))}var h=t("sqm_graphql_client_provider",function(){function t(t){n(this,t);this.ignored=true;u(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){f(this);return e(r,{style:{display:"contents"}},e("slot",null))};return t}())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,e=1,n=arguments.length;e<n;e++){s=arguments[e];for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a))t[a]=s[a]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,e=1,n=arguments.length;e<n;e++){s=arguments[e];for(var a in s)if(Object.prototype.hasOwnProperty.call(s,a))t[a]=s[a]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-0979f82e.system.js","./p-3bd60021.system.js","./p-6333265f.system.js"],(function(t){"use strict";var s,e,n,a,o,r;return{setters:[function(t){s=t.h;e=t.c;n=t.r},function(t){a=t.j},function(t){o=t.B},function(t){r=t.g}],execute:function(){var c=function(t){var n=t.states,a=t.callbacks;var o=n.styles;return s(e,{class:"squatch-container"},s("div",{style:{padding:t.states.styles.padding},part:"sqm-base"},o.closeButton&&s("span",{part:"sqm-close-button",class:"close squatch-header-close","data-close-panel":"#squatch-panel",onClick:function(){return a.closePopup()}},o.closeButtonText),s("slot",null),o.poweredBy?s("a",{class:"sqh-attribution",href:"https://impact.com/advocate/",target:"_blank"},o.poweredByText):""))};function i(t){var s=o();function e(){var t;if(o()==="POPUP"){(t=window.frameElement["squatchJsApi"])===null||t===void 0?void 0:t.close()}}var n=t.popupPadding?t.popupPadding==="none"?"0":"var(--sl-spacing-"+t.popupPadding+")":"var(--sl-spacing-medium)";var a=t.embedPadding?t.embedPadding==="none"?"0":"var(--sl-spacing-"+t.embedPadding+")":"0";var r=o()==="POPUP"?n:a;return{states:{showCloseButton:t.closeButton&&s==="POPUP",styles:__assign(__assign({},t),{padding:r,closeButtonText:t.closeButtonText?t.closeButtonText:"X",poweredByText:t.poweredByText})},data:{},callbacks:{closePopup:e}}}var p=".squatch-header-close{position:absolute;right:20px;top:10px;cursor:pointer}.squatch-container{background-color:var(--widget-background-color);display:block}";var u=t("sqm_popup_container",function(){function t(t){n(this,t);this.poweredByText="Powered By";a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r(this);return s(c,Object.assign({},i(t)))};return t}());u.style=p}}}));
|