@saasquatch/mint-components 1.11.1-0 → 1.12.0-0
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-2c6026c3.js → ShadowViewAddon-88821c64.js} +229 -154
- package/dist/cjs/{global-02e50f09.js → global-c3637175.js} +2 -2
- package/dist/cjs/{index.module-df530553.js → index.module-b8d9d0ba.js} +55 -18
- package/dist/cjs/keys-cff24974.js +11 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-1976e05e.js → re-render-5bde3d2e.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +211 -105
- package/dist/cjs/{sqm-big-stat_38.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +278 -178
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
- package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
- package/dist/cjs/sqm-email-verification.cjs.entry.js +137 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-invoice-table-view-e3b03a00.js → sqm-invoice-table-view-ce9a34ac.js} +20 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-item-view-4e90b6f5.js → sqm-navigation-sidebar-item-view-a2135064.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- 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 +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-bff9783d.js → sqm-portal-email-verification-view-050dbe0f.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-d97086bc.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -9
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -8
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +13 -13
- package/dist/cjs/sqm-scroll.cjs.entry.js +109 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +225 -272
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +33 -0
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +127 -0
- package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-410d2435.js} +2 -2
- package/dist/cjs/useEmailVerification-30a1c7f6.js +75 -0
- package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-ccf81eae.js} +3 -3
- package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-824ac152.js} +9 -9
- package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-f9ce55be.js} +2 -2
- package/dist/cjs/{utilities-cec9dd36.js → utilities-f7de6c04.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -10
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +9 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +22 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +105 -0
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +44 -0
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +0 -20
- package/dist/collection/components/sqm-share-button/useShareButton.js +16 -15
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -5
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -6
- package/dist/collection/components/sqm-widget-verification/keys.js +4 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +29 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +118 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +330 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +144 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +22 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +78 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +172 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +70 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +27 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +132 -0
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +3 -0
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +18 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +4 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +94 -38
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +16 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +12 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +72 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +217 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +50 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +16 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +80 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
- package/dist/collection/components/views/copy-text-view.js +2 -16
- package/dist/esm/{ShadowViewAddon-5bb2b69a.js → ShadowViewAddon-65c8679e.js} +227 -153
- package/dist/esm/{global-b89b6edc.js → global-6306a9b8.js} +2 -2
- package/dist/esm/{index.module-f122af7b.js → index.module-6c840c4e.js} +40 -3
- package/dist/esm/keys-a1496e39.js +6 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-c64289f3.js → re-render-1bcfd0de.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +211 -105
- package/dist/esm/{sqm-big-stat_38.entry.js → sqm-big-stat_39.entry.js} +275 -176
- package/dist/esm/sqm-close-button.entry.js +3 -3
- package/dist/esm/sqm-code-verification.entry.js +348 -0
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-email-verification.entry.js +133 -0
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
- package/dist/esm/{sqm-invoice-table-view-09cc28d6.js → sqm-invoice-table-view-08c03ba7.js} +20 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/{sqm-navigation-sidebar-item-view-14114804.js → sqm-navigation-sidebar-item-view-f8e78810.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-c6ac5430.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-15ddbec8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +9 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +9 -9
- package/dist/esm/sqm-portal-verify-email.entry.js +9 -9
- package/dist/esm/sqm-referral-table_11.entry.js +8 -8
- package/dist/esm/sqm-referred-registration.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 +13 -13
- package/dist/esm/sqm-scroll.entry.js +105 -0
- package/dist/esm/sqm-stencilbook.entry.js +212 -259
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/sqm-widget-verification-internal.entry.js +29 -0
- package/dist/esm/sqm-widget-verification.entry.js +123 -0
- package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm/{useChildElements-37daf533.js → useChildElements-fc84e640.js} +2 -2
- package/dist/esm/useEmailVerification-7135732c.js +72 -0
- package/dist/esm/{useInstantAccessRegistration-9d4cb797.js → useInstantAccessRegistration-8b0a4556.js} +3 -3
- package/dist/esm/{useReferralTable-42f99ea2.js → useReferralTable-f6ffa103.js} +9 -9
- package/dist/esm/{useRegistrationFormState-53c71782.js → useRegistrationFormState-849e27f7.js} +2 -2
- package/dist/esm/{utilities-18d10876.js → utilities-443732be.js} +1 -1
- package/dist/esm-es5/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-65c8679e.js +1 -0
- package/dist/esm-es5/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm-es5/{global-b89b6edc.js → global-6306a9b8.js} +2 -2
- package/dist/esm-es5/index.module-6c840c4e.js +1 -0
- package/dist/esm-es5/keys-a1496e39.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-c64289f3.js → re-render-1bcfd0de.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -0
- package/dist/esm-es5/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-08c03ba7.js +1 -0
- 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-14114804.js → sqm-navigation-sidebar-item-view-f8e78810.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-c6ac5430.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.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-d72dd5ac.js → sqm-portal-profile-view-15ddbec8.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-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.entry.js +1 -0
- 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-widget-verification-internal.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm-es5/{useChildElements-37daf533.js → useChildElements-fc84e640.js} +1 -1
- package/dist/esm-es5/useEmailVerification-7135732c.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +1 -0
- package/dist/esm-es5/{useReferralTable-42f99ea2.js → useReferralTable-f6ffa103.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +1 -0
- package/dist/esm-es5/{utilities-18d10876.js → utilities-443732be.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-0121e044.js +1 -0
- package/dist/mint-components/{p-12c56ba6.entry.js → p-012daf3c.entry.js} +1 -1
- package/dist/mint-components/{p-1b1d10e5.entry.js → p-03dbe2ce.entry.js} +1 -1
- package/dist/mint-components/{p-8077e9c6.js → p-04348a9b.js} +1 -1
- package/dist/mint-components/{p-8c97bfb1.system.entry.js → p-04ced592.system.entry.js} +1 -1
- package/dist/mint-components/{p-7962ab58.system.entry.js → p-0527d90b.system.entry.js} +1 -1
- package/dist/mint-components/{p-01434e4a.entry.js → p-0893073b.entry.js} +1 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +1 -0
- package/dist/mint-components/p-117b4705.system.js +1 -0
- package/dist/mint-components/p-11d1b212.js +1 -0
- package/dist/mint-components/{p-dc41ff27.entry.js → p-1b861be5.entry.js} +1 -1
- package/dist/mint-components/{p-32cf8417.js → p-1b9e6fc6.js} +1 -1
- package/dist/mint-components/p-1bd0cda8.system.entry.js +1 -0
- package/dist/mint-components/{p-991c9787.js → p-1d27da33.js} +2 -2
- package/dist/mint-components/p-1ee62d9f.system.entry.js +1 -0
- package/dist/mint-components/{p-de2a8fae.system.entry.js → p-1f7d7524.system.entry.js} +1 -1
- package/dist/mint-components/p-1f9a9b70.system.entry.js +1 -0
- package/dist/mint-components/{p-5c845bc2.system.entry.js → p-22425c71.system.entry.js} +1 -1
- package/dist/mint-components/p-23fdd44e.entry.js +1 -0
- package/dist/mint-components/{p-3373d84e.js → p-2816bf6a.js} +1 -1
- package/dist/mint-components/p-2868f475.entry.js +1 -0
- package/dist/mint-components/p-2a414b2e.system.js +2 -2
- package/dist/mint-components/{p-a474b0ec.system.entry.js → p-36e9296e.system.entry.js} +1 -1
- package/dist/mint-components/p-36f7caec.system.entry.js +1 -0
- package/dist/mint-components/{p-b334bde8.entry.js → p-3925bcd6.entry.js} +2 -2
- package/dist/mint-components/p-39397731.entry.js +1 -0
- package/dist/mint-components/p-39af4acd.entry.js +240 -0
- package/dist/mint-components/{p-e2bb72eb.system.entry.js → p-3e7ec0f3.system.entry.js} +1 -1
- package/dist/mint-components/{p-59c141a2.system.js → p-3ed71bef.system.js} +1 -1
- package/dist/mint-components/{p-bf834367.system.js → p-43621f12.system.js} +1 -1
- package/dist/mint-components/{p-110dddfe.entry.js → p-4671e644.entry.js} +1 -1
- package/dist/mint-components/{p-0f028514.system.js → p-4babe350.system.js} +1 -1
- package/dist/mint-components/p-4c9b6fbe.system.js +1 -0
- package/dist/mint-components/p-4e373c3d.system.js +1 -0
- package/dist/mint-components/{p-03a647c2.system.js → p-4e48267b.system.js} +1 -1
- package/dist/mint-components/{p-9deac406.system.js → p-4eae91a9.system.js} +1 -1
- package/dist/mint-components/{p-0806343b.js → p-509e29e6.js} +1 -1
- package/dist/mint-components/{p-53ff8bd0.system.entry.js → p-51d53165.system.entry.js} +1 -1
- package/dist/mint-components/{p-246a2827.entry.js → p-5291891c.entry.js} +2 -2
- package/dist/mint-components/{p-c1ba2ad0.system.entry.js → p-59818690.system.entry.js} +1 -1
- package/dist/mint-components/{p-55588b46.system.js → p-5becb2ff.system.js} +1 -1
- package/dist/mint-components/{p-c39f9dc1.system.entry.js → p-5fba1a04.system.entry.js} +1 -1
- package/dist/mint-components/{p-22de9f73.system.entry.js → p-64491210.system.entry.js} +1 -1
- package/dist/mint-components/p-65e2c043.system.js +1 -0
- package/dist/mint-components/p-663303b7.entry.js +8 -0
- package/dist/mint-components/p-66a04cca.system.entry.js +1 -0
- package/dist/mint-components/{p-1df19ea2.js → p-68747d88.js} +1 -1
- package/dist/mint-components/{p-96cb9c17.entry.js → p-6c928c7d.entry.js} +1 -1
- package/dist/mint-components/p-6cae44d7.js +1 -0
- package/dist/mint-components/{p-b0ce005d.entry.js → p-721a89c6.entry.js} +2 -2
- package/dist/mint-components/{p-6e62f207.entry.js → p-76392386.entry.js} +1 -1
- package/dist/mint-components/{p-bb6f6681.system.js → p-7d5e0645.system.js} +1 -1
- package/dist/mint-components/{p-daba8cd2.system.entry.js → p-7dd1ff31.system.entry.js} +1 -1
- package/dist/mint-components/p-7f5c7bf7.system.entry.js +1 -0
- package/dist/mint-components/{p-ec8a9e91.system.entry.js → p-83c9f37b.system.entry.js} +1 -1
- package/dist/mint-components/{p-d3d281ff.entry.js → p-84b25a46.entry.js} +1 -1
- package/dist/mint-components/{p-82e09b8d.system.entry.js → p-88bf51b7.system.entry.js} +1 -1
- package/dist/mint-components/p-8a337864.js +7 -0
- package/dist/mint-components/{p-73decce7.system.js → p-8d554a89.system.js} +1 -1
- package/dist/mint-components/p-93576222.system.js +1 -0
- package/dist/mint-components/p-94454880.entry.js +1 -0
- package/dist/mint-components/p-947fe79b.entry.js +1 -0
- package/dist/mint-components/p-99c15c5e.entry.js +1 -0
- package/dist/mint-components/{p-9288cca6.system.entry.js → p-9cdbd1ac.system.entry.js} +1 -1
- package/dist/mint-components/p-9d34f4f0.entry.js +33 -0
- package/dist/mint-components/p-9e0230c3.entry.js +1 -0
- package/dist/mint-components/{p-476182e7.system.entry.js → p-9ec008cb.system.entry.js} +1 -1
- package/dist/mint-components/p-a02afa72.system.js +1 -0
- package/dist/mint-components/p-a4282d02.system.entry.js +1 -0
- package/dist/mint-components/{p-798ed3a2.entry.js → p-a45b03d2.entry.js} +1 -1
- package/dist/mint-components/{p-523ed056.system.js → p-a51533cb.system.js} +1 -1
- package/dist/mint-components/p-a5a9aa07.entry.js +189 -0
- package/dist/mint-components/p-a85f57bb.entry.js +1 -0
- package/dist/mint-components/{p-21d4f6ce.system.js → p-ac51940e.system.js} +1 -1
- package/dist/mint-components/p-b1e8a802.entry.js +1 -0
- package/dist/mint-components/{p-fec0ac31.js → p-b651706a.js} +24 -24
- package/dist/mint-components/{p-14dac608.system.entry.js → p-bc826117.system.entry.js} +1 -1
- package/dist/mint-components/p-bdd6bb13.js +1 -0
- package/dist/mint-components/{p-67846dce.system.entry.js → p-be1ae1ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-3cc5474d.entry.js → p-bee1e573.entry.js} +1 -1
- package/dist/mint-components/{p-fb2c0ce4.system.entry.js → p-c1f4fb6d.system.entry.js} +1 -1
- package/dist/mint-components/p-c3b37bbf.js +1 -0
- package/dist/mint-components/{p-ff41c804.system.entry.js → p-c3babfa4.system.entry.js} +1 -1
- package/dist/mint-components/{p-18a19cb5.system.js → p-c5577dd7.system.js} +1 -1
- package/dist/mint-components/{p-02f6cda4.js → p-c5d2e4ba.js} +1 -1
- package/dist/mint-components/p-c763c0b2.js +1 -0
- package/dist/mint-components/{p-ed161025.js → p-c8610d0c.js} +1 -1
- package/dist/mint-components/p-c92a743e.entry.js +1 -0
- package/dist/mint-components/p-c9fb6102.entry.js +1 -0
- package/dist/mint-components/p-ca809fdd.system.js +1 -0
- package/dist/mint-components/{p-f52c3aec.system.entry.js → p-cb433855.system.entry.js} +1 -1
- package/dist/mint-components/{p-f44d88fa.system.js → p-cd44de66.system.js} +1 -1
- package/dist/mint-components/p-d35d8c06.entry.js +11 -0
- package/dist/mint-components/{p-cfbe2f86.entry.js → p-d468925f.entry.js} +1 -1
- package/dist/mint-components/{p-15dee492.js → p-d49e2f7a.js} +1 -1
- package/dist/mint-components/{p-9c3d78e9.js → p-d83b0cf3.js} +1 -1
- package/dist/mint-components/{p-6e7e8af6.system.js → p-def516b8.system.js} +1 -1
- package/dist/mint-components/{p-e41cb11f.js → p-e0e7635a.js} +1 -1
- package/dist/mint-components/{p-a1150633.system.entry.js → p-e12d3414.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce746af8.system.js → p-e8dde8f4.system.js} +1 -1
- package/dist/mint-components/p-e93e5740.entry.js +1 -0
- package/dist/mint-components/p-e9ca48fc.system.entry.js +1 -0
- package/dist/mint-components/p-ead27698.system.entry.js +1 -0
- package/dist/mint-components/{p-1c6e4a5f.entry.js → p-f36e33ff.entry.js} +2 -2
- package/dist/mint-components/{p-1ce4fa30.system.entry.js → p-f450654b.system.entry.js} +1 -1
- package/dist/mint-components/{p-1c710e16.entry.js → p-f4cbbe47.entry.js} +1 -1
- package/dist/mint-components/{p-d68ed4a6.system.entry.js → p-f531a5c9.system.entry.js} +1 -1
- package/dist/mint-components/{p-acc93caa.system.entry.js → p-f56348dc.system.entry.js} +1 -1
- package/dist/mint-components/p-f655a7df.js +1 -0
- package/dist/mint-components/{p-855ae1b5.js → p-fb93c962.js} +1 -1
- package/dist/mint-components/{p-46ca288c.system.js → p-fc422446.system.js} +1 -1
- package/dist/mint-components/{p-fae82751.entry.js → p-fd21ae8f.entry.js} +1 -1
- package/dist/mint-components/p-fd2c5407.js +2 -2
- package/dist/types/components/{sqm-pagination/Pagination.stories.d.ts → sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts} +1 -0
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +10 -0
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +19 -0
- package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +7 -0
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +0 -1
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +0 -1
- package/dist/types/components/sqm-widget-verification/keys.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +26 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +60 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +23 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +7 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +16 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +32 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +9 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +18 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +21 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +9 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +16 -0
- package/dist/types/components/views/copy-text-view.d.ts +0 -2
- package/dist/types/components.d.ts +296 -164
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/copy-text-view-a22ad7e7.js +0 -173
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +0 -313
- package/dist/collection/components/sqm-pagination/Pagination.stories.js +0 -12
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +0 -30
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +0 -85
- package/dist/collection/components/sqm-pagination/usePagination.js +0 -8
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -60
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +0 -315
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +0 -51
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -35
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +0 -59
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +0 -93
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +0 -75
- package/dist/esm/copy-text-view-bf55abeb.js +0 -168
- package/dist/esm/sqm-pagination_3.entry.js +0 -307
- package/dist/esm-es5/ShadowViewAddon-5bb2b69a.js +0 -1
- package/dist/esm-es5/copy-text-view-bf55abeb.js +0 -1
- package/dist/esm-es5/index.module-f122af7b.js +0 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-09cc28d6.js +0 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-9d4cb797.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-53c71782.js +0 -1
- package/dist/mint-components/p-00be5090.js +0 -1
- package/dist/mint-components/p-1099290c.system.js +0 -1
- package/dist/mint-components/p-1537b6ef.system.entry.js +0 -1
- package/dist/mint-components/p-18a7f543.system.entry.js +0 -1
- package/dist/mint-components/p-26306ac4.system.entry.js +0 -1
- package/dist/mint-components/p-2e16db11.entry.js +0 -1
- package/dist/mint-components/p-41499327.entry.js +0 -1
- package/dist/mint-components/p-43a990b6.system.js +0 -1
- package/dist/mint-components/p-4856b234.system.entry.js +0 -1
- package/dist/mint-components/p-48b7d703.entry.js +0 -174
- package/dist/mint-components/p-494e407e.entry.js +0 -1
- package/dist/mint-components/p-5b7e2d53.entry.js +0 -1
- package/dist/mint-components/p-5d37482d.entry.js +0 -1
- package/dist/mint-components/p-5fc8d87c.system.js +0 -1
- package/dist/mint-components/p-646d302a.system.js +0 -1
- package/dist/mint-components/p-6628bc0e.system.js +0 -1
- package/dist/mint-components/p-66aac0fb.entry.js +0 -13
- package/dist/mint-components/p-6b0e6a6c.js +0 -1
- package/dist/mint-components/p-73c6b26d.entry.js +0 -223
- package/dist/mint-components/p-89a760ea.js +0 -1
- package/dist/mint-components/p-942d1c22.entry.js +0 -33
- package/dist/mint-components/p-b4eb9c46.entry.js +0 -11
- package/dist/mint-components/p-b5176703.entry.js +0 -1
- package/dist/mint-components/p-b71c0e2d.system.entry.js +0 -1
- package/dist/mint-components/p-bd4e9c2b.js +0 -1
- package/dist/mint-components/p-c37137cd.js +0 -2
- package/dist/mint-components/p-c7ce2c1e.system.js +0 -1
- package/dist/mint-components/p-ca17d998.entry.js +0 -1
- package/dist/mint-components/p-d666b326.js +0 -1
- package/dist/mint-components/p-ea88142c.js +0 -1
- package/dist/mint-components/p-ecefeaa9.system.entry.js +0 -1
- package/dist/mint-components/p-f1ec1180.entry.js +0 -1
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -7
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +0 -17
- package/dist/types/components/sqm-pagination/usePagination.d.ts +0 -15
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -18
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -70
- package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +0 -9
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -9
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -10
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -18
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +0 -59
- package/dist/cjs/{GenericTableView-a3f48e15.js → GenericTableView-80d7642e.js} +1 -1
- package/dist/cjs/{email-registration-view-4c5d9379.js → email-registration-view-248652bb.js} +1 -1
- package/dist/cjs/{sqm-close-button-view-217239b7.js → sqm-close-button-view-fd6e8f60.js} +1 -1
- package/dist/cjs/{sqm-portal-forgot-password-view-3cd69fe7.js → sqm-portal-forgot-password-view-969c49ed.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-34771d2c.js → sqm-portal-reset-password-view-96f329ed.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-c8f91506.js → sqm-portal-verify-email-view-7ffcc0d4.js} +1 -1
- package/dist/esm/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.js} +1 -1
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
5
|
-
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
6
|
-
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
7
|
-
import { a as REFERRAL_CODES_NAMESPACE, C as CopyTextView } from './copy-text-view-bf55abeb.js';
|
|
3
|
+
import { i as intl } from './global-6306a9b8.js';
|
|
4
|
+
import { d as dist, z as z$1, K, E as En, c as xe, n as ne, g as getEnvironmentSDK, Q } from './index.module-6c840c4e.js';
|
|
8
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
9
6
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
10
|
-
import {
|
|
7
|
+
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
8
|
+
import { u as useChildElements } from './useChildElements-fc84e640.js';
|
|
11
9
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
10
|
+
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
12
11
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
13
12
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
14
|
-
import { a as isValidColor, b as isMobile } from './utilities-
|
|
13
|
+
import { a as isValidColor, b as isMobile } from './utilities-443732be.js';
|
|
15
14
|
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-6c582684.js';
|
|
16
15
|
|
|
17
16
|
const medium = {
|
|
@@ -217,6 +216,80 @@ function LeaderboardView(props) {
|
|
|
217
216
|
h("td", { class: "Score" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.textValue) || "0"))))));
|
|
218
217
|
}
|
|
219
218
|
|
|
219
|
+
const style$2 = {
|
|
220
|
+
HostBlock: HostBlock,
|
|
221
|
+
inputStyle: {
|
|
222
|
+
"&::part(input)": { textOverflow: "ellipsis", width: "100%" },
|
|
223
|
+
"&::part(base)": { cursor: "pointer", overflow: "visible" },
|
|
224
|
+
width: "100%",
|
|
225
|
+
},
|
|
226
|
+
inputErrorStyle: {
|
|
227
|
+
"&::part(base)": {
|
|
228
|
+
border: "2px solid red",
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
containerStyle: {
|
|
232
|
+
display: "flex",
|
|
233
|
+
alignItems: "center",
|
|
234
|
+
gap: "var(--sl-spacing-x-small)",
|
|
235
|
+
width: "100%",
|
|
236
|
+
},
|
|
237
|
+
errorTextStyle: {
|
|
238
|
+
margin: "0",
|
|
239
|
+
color: "var(--sl-color-danger-500)",
|
|
240
|
+
},
|
|
241
|
+
};
|
|
242
|
+
const vanillaStyle$1 = `
|
|
243
|
+
:host{
|
|
244
|
+
display: block;
|
|
245
|
+
width: 100%;
|
|
246
|
+
}
|
|
247
|
+
`;
|
|
248
|
+
const textAlignStyle = {
|
|
249
|
+
right: `
|
|
250
|
+
sl-input::part(input){
|
|
251
|
+
text-align: right;
|
|
252
|
+
}`,
|
|
253
|
+
center: `
|
|
254
|
+
sl-input::part(input){
|
|
255
|
+
text-align: center;
|
|
256
|
+
}`,
|
|
257
|
+
left: ``,
|
|
258
|
+
};
|
|
259
|
+
const disabledStyles = `
|
|
260
|
+
sl-input::part(input){
|
|
261
|
+
cursor: default;
|
|
262
|
+
}
|
|
263
|
+
`;
|
|
264
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
265
|
+
const styleString$2 = sheet$2.toString();
|
|
266
|
+
function CopyTextView(props) {
|
|
267
|
+
const { buttonStyle = "icon" } = props;
|
|
268
|
+
const error = !props.loading && props.error;
|
|
269
|
+
const inputText = error ? props.inputPlaceholderText : props.copyString;
|
|
270
|
+
const disabled = error || props.loading || props.disabled;
|
|
271
|
+
const tooltipPlacement = props.buttonStyle === "button-below"
|
|
272
|
+
? "bottom"
|
|
273
|
+
: props.buttonStyle === "button-outside"
|
|
274
|
+
? "top"
|
|
275
|
+
: "top-end";
|
|
276
|
+
const copyButton = (h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: tooltipPlacement, disabled: props.disabled, open: props.open, skidding: props.buttonStyle === "icon" ? -5 : 0, slot: "suffix" }, buttonStyle === "icon" ? (h("sl-icon-button", { exportparts: "base: icon-button-base", onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, name: "files", disabled: disabled })) : (h("sl-button", { exportparts: "base: copy-button-base", onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, size: "medium", style: { width: `${buttonStyle === "button-below" && "100%"}` }, disabled: disabled, type: "primary" }, props.copyButtonLabel || "Copy"))));
|
|
277
|
+
return (h("div", null,
|
|
278
|
+
h("style", { type: "text/css" },
|
|
279
|
+
styleString$2,
|
|
280
|
+
vanillaStyle$1,
|
|
281
|
+
textAlignStyle[props.textAlign],
|
|
282
|
+
disabled && disabledStyles),
|
|
283
|
+
h("div", { class: sheet$2.classes.containerStyle, style: {
|
|
284
|
+
flexDirection: `${buttonStyle === "button-below" ? "column" : "row"}`,
|
|
285
|
+
} },
|
|
286
|
+
h("sl-input", { class: `${sheet$2.classes.inputStyle} ${error ? sheet$2.classes.inputErrorStyle : ""}`, exportparts: "base: input-base, input: input-label", value: props.loading ? "Loading..." : inputText, readonly: true, disabled: disabled },
|
|
287
|
+
buttonStyle === "icon" && copyButton,
|
|
288
|
+
error && (h("p", { slot: "help-text", class: sheet$2.classes.errorTextStyle }, props.errorText))),
|
|
289
|
+
(buttonStyle === "button-outside" || buttonStyle === "button-below") &&
|
|
290
|
+
copyButton)));
|
|
291
|
+
}
|
|
292
|
+
|
|
220
293
|
function BigStatView(props) {
|
|
221
294
|
const { statvalue, flexReverse, alignment } = props;
|
|
222
295
|
// Dependent on props, not feasiable to move out
|
|
@@ -252,7 +325,7 @@ function BigStatView(props) {
|
|
|
252
325
|
h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
|
|
253
326
|
}
|
|
254
327
|
|
|
255
|
-
const style$
|
|
328
|
+
const style$3 = {
|
|
256
329
|
HostBlock: HostBlock,
|
|
257
330
|
Frame: {
|
|
258
331
|
display: "flex",
|
|
@@ -286,17 +359,17 @@ const style$2 = {
|
|
|
286
359
|
},
|
|
287
360
|
},
|
|
288
361
|
};
|
|
289
|
-
const sheet$
|
|
290
|
-
const styleString$
|
|
362
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
363
|
+
const styleString$3 = sheet$3.toString();
|
|
291
364
|
function PortalFrameView(props, children) {
|
|
292
365
|
const { data, notFullScreen } = props;
|
|
293
|
-
return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$
|
|
294
|
-
h("style", { type: "text/css" }, styleString$
|
|
295
|
-
h("div", { class: sheet$
|
|
366
|
+
return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$3.classes.Frame, part: "sqm-base" },
|
|
367
|
+
h("style", { type: "text/css" }, styleString$3),
|
|
368
|
+
h("div", { class: sheet$3.classes.HeaderWrapper, part: "sqm-header" },
|
|
296
369
|
data.header,
|
|
297
370
|
h("slot", { name: "sqm-navigation-menu" })),
|
|
298
371
|
children,
|
|
299
|
-
h("div", { class: sheet$
|
|
372
|
+
h("div", { class: sheet$3.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
|
|
300
373
|
}
|
|
301
374
|
|
|
302
375
|
const EditProfileView = (props) => {
|
|
@@ -373,13 +446,12 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
373
446
|
`;
|
|
374
447
|
function useShareLink(props) {
|
|
375
448
|
var _a, _b;
|
|
376
|
-
const { programId =
|
|
377
|
-
const user =
|
|
378
|
-
const engagementMedium =
|
|
379
|
-
const
|
|
380
|
-
const
|
|
381
|
-
const
|
|
382
|
-
const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
|
|
449
|
+
const { programId = z$1() } = props;
|
|
450
|
+
const user = K();
|
|
451
|
+
const engagementMedium = ne();
|
|
452
|
+
const { data } = En(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
453
|
+
const [sendLoadEvent] = xe(WIDGET_ENGAGEMENT_EVENT);
|
|
454
|
+
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
|
|
383
455
|
// Shown during loading
|
|
384
456
|
"...";
|
|
385
457
|
const [open, setOpen] = useState(false);
|
|
@@ -442,49 +514,51 @@ function NativeShare(props, directLink, undefinedErrorText, unsupportedPlatformT
|
|
|
442
514
|
alert(unsupportedPlatformText);
|
|
443
515
|
}
|
|
444
516
|
}
|
|
445
|
-
function FacebookShare(directLink,
|
|
446
|
-
|
|
517
|
+
function FacebookShare(directLink, res, errorText) {
|
|
518
|
+
var _a, _b;
|
|
519
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink) === "undefined" ||
|
|
520
|
+
directLink === "undefined") {
|
|
447
521
|
return alert(errorText);
|
|
448
522
|
}
|
|
449
523
|
if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
|
|
450
|
-
return SquatchAndroid.shareOnFacebook(directLink, messageLink);
|
|
524
|
+
return SquatchAndroid.shareOnFacebook(directLink, res.data.viewer.messageLink);
|
|
451
525
|
}
|
|
452
526
|
else {
|
|
453
|
-
return GenericShare(
|
|
527
|
+
return GenericShare(res, errorText);
|
|
454
528
|
}
|
|
455
529
|
}
|
|
456
|
-
function GenericShare(
|
|
457
|
-
|
|
530
|
+
function GenericShare(res, errorText) {
|
|
531
|
+
var _a, _b;
|
|
532
|
+
return ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink) ? window.open(res.data.viewer.messageLink)
|
|
533
|
+
: alert(errorText);
|
|
458
534
|
}
|
|
459
535
|
function useShareButton(props) {
|
|
460
|
-
var _a, _b
|
|
536
|
+
var _a, _b;
|
|
461
537
|
const { sharetitle, sharetext, medium } = props;
|
|
462
|
-
const programId = props.programId ? props.programId :
|
|
463
|
-
const user =
|
|
538
|
+
const programId = props.programId ? props.programId : z$1();
|
|
539
|
+
const user = K();
|
|
464
540
|
const variables = {
|
|
465
|
-
engagementMedium:
|
|
541
|
+
engagementMedium: ne(),
|
|
466
542
|
programId: programId,
|
|
467
543
|
shareMedium: medium.toUpperCase(),
|
|
468
544
|
};
|
|
469
|
-
const data = In(REFERRAL_CODES_NAMESPACE);
|
|
470
545
|
// only queries if a programId is available
|
|
471
|
-
const res =
|
|
472
|
-
const directLink = (
|
|
546
|
+
const res = En(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
547
|
+
const directLink = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink;
|
|
473
548
|
const environment = getEnvironmentSDK();
|
|
474
549
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
475
550
|
window.orientation === undefined) ||
|
|
476
551
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
477
552
|
function onClick() {
|
|
478
|
-
var _a, _b, _c, _d, _e, _f;
|
|
479
553
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
480
554
|
environment.type === "SquatchAndroid") {
|
|
481
|
-
FacebookShare(directLink,
|
|
555
|
+
FacebookShare(directLink, res, props.errorText);
|
|
482
556
|
}
|
|
483
557
|
else if (medium.toLocaleUpperCase() === "DIRECT") {
|
|
484
558
|
NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
|
|
485
559
|
}
|
|
486
560
|
else {
|
|
487
|
-
GenericShare(
|
|
561
|
+
GenericShare(res, props.errorText);
|
|
488
562
|
}
|
|
489
563
|
}
|
|
490
564
|
return { ...props, loading: res.loading, onClick, hide };
|
|
@@ -493,7 +567,7 @@ function useShareButton(props) {
|
|
|
493
567
|
const debug = browser("sq:useBigStat");
|
|
494
568
|
const LOADING = "...";
|
|
495
569
|
const debugQuery = (query, variables, getStat) => {
|
|
496
|
-
const res =
|
|
570
|
+
const res = En(query, variables);
|
|
497
571
|
if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
|
|
498
572
|
console.error("issue getting stat:", res);
|
|
499
573
|
}
|
|
@@ -904,7 +978,7 @@ const rewardsRedeemedWeekQuery = (programId, locale, type, unit, global = "") =>
|
|
|
904
978
|
locale: $locale
|
|
905
979
|
formatType: UNIT_FORMATTED
|
|
906
980
|
)}`;
|
|
907
|
-
const result =
|
|
981
|
+
const result = En(query, {
|
|
908
982
|
value: redeemedTotal,
|
|
909
983
|
unit,
|
|
910
984
|
locale,
|
|
@@ -963,7 +1037,7 @@ const rewardsRedeemedMonthQuery = (programId, locale, type, unit, global = "") =
|
|
|
963
1037
|
locale: $locale
|
|
964
1038
|
formatType: UNIT_FORMATTED
|
|
965
1039
|
)}`;
|
|
966
|
-
const result =
|
|
1040
|
+
const result = En(query, {
|
|
967
1041
|
value: redeemedTotal,
|
|
968
1042
|
unit,
|
|
969
1043
|
locale,
|
|
@@ -1359,11 +1433,11 @@ const StatPaths = [
|
|
|
1359
1433
|
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
1360
1434
|
function useBigStat(props) {
|
|
1361
1435
|
var _a;
|
|
1362
|
-
const { statType, flexReverse, alignment, programId =
|
|
1436
|
+
const { statType, flexReverse, alignment, programId = z$1(), } = props;
|
|
1363
1437
|
// triggers a re-render if the label is manually changed
|
|
1364
1438
|
useChildElements();
|
|
1365
|
-
const locale =
|
|
1366
|
-
const userIdent =
|
|
1439
|
+
const locale = Q();
|
|
1440
|
+
const userIdent = K();
|
|
1367
1441
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1368
1442
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1369
1443
|
return {
|
|
@@ -1560,7 +1634,7 @@ function PortalChangePasswordView(props) {
|
|
|
1560
1634
|
h("style", { type: "text/css" }, styleString))));
|
|
1561
1635
|
}
|
|
1562
1636
|
|
|
1563
|
-
const style$
|
|
1637
|
+
const style$4 = {
|
|
1564
1638
|
Wrapper: AuthWrapper,
|
|
1565
1639
|
Column: AuthColumn,
|
|
1566
1640
|
ForgotButtonContainer: {
|
|
@@ -1573,7 +1647,7 @@ const style$3 = {
|
|
|
1573
1647
|
},
|
|
1574
1648
|
ButtonsContainer: AuthButtonsContainer,
|
|
1575
1649
|
};
|
|
1576
|
-
const vanillaStyle$
|
|
1650
|
+
const vanillaStyle$2 = `
|
|
1577
1651
|
:host {
|
|
1578
1652
|
display: block;
|
|
1579
1653
|
}
|
|
@@ -1581,28 +1655,28 @@ const vanillaStyle$1 = `
|
|
|
1581
1655
|
display: none;
|
|
1582
1656
|
}
|
|
1583
1657
|
`;
|
|
1584
|
-
const sheet$
|
|
1585
|
-
const styleString$
|
|
1658
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
1659
|
+
const styleString$4 = sheet$4.toString();
|
|
1586
1660
|
function PortalLoginView(props) {
|
|
1587
1661
|
const { states, callbacks, content } = props;
|
|
1588
|
-
return (h("div", { class: sheet$
|
|
1662
|
+
return (h("div", { class: sheet$4.classes.Wrapper, part: "sqm-base" },
|
|
1589
1663
|
h("style", { type: "text/css" },
|
|
1590
|
-
vanillaStyle$
|
|
1591
|
-
styleString$
|
|
1664
|
+
vanillaStyle$2,
|
|
1665
|
+
styleString$4),
|
|
1592
1666
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1593
|
-
h("sl-form", { class: sheet$
|
|
1667
|
+
h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit },
|
|
1594
1668
|
props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1595
1669
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1596
1670
|
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
1597
1671
|
h("div", null,
|
|
1598
1672
|
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
1599
|
-
h("div", { class: sheet$
|
|
1600
|
-
h("div", { class: sheet$
|
|
1673
|
+
h("div", { class: sheet$4.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
1674
|
+
h("div", { class: sheet$4.classes.ButtonsContainer },
|
|
1601
1675
|
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
1602
1676
|
content.secondaryButton))));
|
|
1603
1677
|
}
|
|
1604
1678
|
|
|
1605
|
-
const style$
|
|
1679
|
+
const style$5 = {
|
|
1606
1680
|
Wrapper: { ...AuthWrapper, "max-width": "600px" },
|
|
1607
1681
|
Column: AuthColumn,
|
|
1608
1682
|
HostBlock: HostBlock,
|
|
@@ -1613,7 +1687,7 @@ const style$4 = {
|
|
|
1613
1687
|
ButtonsContainer: AuthButtonsContainer,
|
|
1614
1688
|
ErrorStyle: ErrorStyles,
|
|
1615
1689
|
};
|
|
1616
|
-
const vanillaStyle$
|
|
1690
|
+
const vanillaStyle$3 = `
|
|
1617
1691
|
sqm-portal-register {
|
|
1618
1692
|
margin: 0 auto;
|
|
1619
1693
|
width: 100%;
|
|
@@ -1628,20 +1702,20 @@ sqm-portal-register {
|
|
|
1628
1702
|
display: none;
|
|
1629
1703
|
}
|
|
1630
1704
|
`;
|
|
1631
|
-
const sheet$
|
|
1632
|
-
const styleString$
|
|
1705
|
+
const sheet$5 = createStyleSheet(style$5);
|
|
1706
|
+
const styleString$5 = sheet$5.toString();
|
|
1633
1707
|
function PortalRegisterView(props) {
|
|
1634
1708
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1635
1709
|
const { states, refs, callbacks, content } = props;
|
|
1636
1710
|
if (states.error) {
|
|
1637
1711
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
1638
1712
|
}
|
|
1639
|
-
return (h("div", { class: sheet$
|
|
1713
|
+
return (h("div", { class: sheet$5.classes.Wrapper, part: "sqm-base" },
|
|
1640
1714
|
h("style", { type: "text/css" },
|
|
1641
|
-
vanillaStyle$
|
|
1642
|
-
styleString$
|
|
1715
|
+
vanillaStyle$3,
|
|
1716
|
+
styleString$5),
|
|
1643
1717
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1644
|
-
h("sl-form", { class: sheet$
|
|
1718
|
+
h("sl-form", { class: sheet$5.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1645
1719
|
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1646
1720
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1647
1721
|
content.formData,
|
|
@@ -1654,7 +1728,7 @@ function PortalRegisterView(props) {
|
|
|
1654
1728
|
return content.invalidEmailErrorMessage;
|
|
1655
1729
|
}
|
|
1656
1730
|
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1657
|
-
class: sheet$
|
|
1731
|
+
class: sheet$5.classes.ErrorStyle,
|
|
1658
1732
|
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1659
1733
|
content.requiredFieldErrorMessage,
|
|
1660
1734
|
}
|
|
@@ -1662,17 +1736,17 @@ function PortalRegisterView(props) {
|
|
|
1662
1736
|
!states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
|
|
1663
1737
|
content.passwordField,
|
|
1664
1738
|
!states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
|
|
1665
|
-
class: sheet$
|
|
1739
|
+
class: sheet$5.classes.ErrorStyle,
|
|
1666
1740
|
helpText: ((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) || content.requiredFieldErrorMessage,
|
|
1667
1741
|
}
|
|
1668
1742
|
: [])))),
|
|
1669
1743
|
content.terms,
|
|
1670
|
-
h("div", { class: sheet$
|
|
1744
|
+
h("div", { class: sheet$5.classes.ButtonsContainer },
|
|
1671
1745
|
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
1672
1746
|
content.secondaryButton))));
|
|
1673
1747
|
}
|
|
1674
1748
|
|
|
1675
|
-
const style$
|
|
1749
|
+
const style$6 = {
|
|
1676
1750
|
Description: {
|
|
1677
1751
|
"& input[type=checkbox]": {
|
|
1678
1752
|
display: "none",
|
|
@@ -1711,13 +1785,13 @@ const style$5 = {
|
|
|
1711
1785
|
},
|
|
1712
1786
|
},
|
|
1713
1787
|
};
|
|
1714
|
-
const sheet$
|
|
1715
|
-
const styleString$
|
|
1788
|
+
const sheet$6 = createStyleSheet(style$6);
|
|
1789
|
+
const styleString$6 = sheet$6.toString();
|
|
1716
1790
|
function Details(props) {
|
|
1717
1791
|
const rid = Math.random().toString(36).slice(2);
|
|
1718
1792
|
return (h("div", { style: { opacity: props.opacity } },
|
|
1719
|
-
h("style", { type: "text/css" }, styleString$
|
|
1720
|
-
h("span", { class: sheet$
|
|
1793
|
+
h("style", { type: "text/css" }, styleString$6),
|
|
1794
|
+
h("span", { class: sheet$6.classes.Description },
|
|
1721
1795
|
h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1722
1796
|
h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1723
1797
|
h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
@@ -1739,7 +1813,7 @@ const GreyGift = () => {
|
|
|
1739
1813
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#828282" })));
|
|
1740
1814
|
};
|
|
1741
1815
|
|
|
1742
|
-
const style$
|
|
1816
|
+
const style$7 = {
|
|
1743
1817
|
ProgressBar: {
|
|
1744
1818
|
"& .progress-bar": {
|
|
1745
1819
|
height: "0",
|
|
@@ -1851,14 +1925,14 @@ const style$6 = {
|
|
|
1851
1925
|
},
|
|
1852
1926
|
},
|
|
1853
1927
|
};
|
|
1854
|
-
const sheet$
|
|
1855
|
-
const styleString$
|
|
1928
|
+
const sheet$7 = createStyleSheet(style$7, { classNamePrefix: "sqm-prog-bar" });
|
|
1929
|
+
const styleString$7 = sheet$7.toString();
|
|
1856
1930
|
function ProgressBarView(props) {
|
|
1857
1931
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1858
1932
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1859
1933
|
const { columns, items } = aggregate;
|
|
1860
|
-
return (h("div", { class: sheet$
|
|
1861
|
-
h("style", { type: "text/css" }, styleString$
|
|
1934
|
+
return (h("div", { class: sheet$7.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
1935
|
+
h("style", { type: "text/css" }, styleString$7),
|
|
1862
1936
|
h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1863
1937
|
(Boolean(finite) && progress > 2 * goal)
|
|
1864
1938
|
? "progress-bar repeatable-steps"
|
|
@@ -2149,7 +2223,7 @@ const arrow_left_right = () => {
|
|
|
2149
2223
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
|
|
2150
2224
|
};
|
|
2151
2225
|
|
|
2152
|
-
const style$
|
|
2226
|
+
const style$8 = {
|
|
2153
2227
|
TaskCard: {
|
|
2154
2228
|
display: "inline-block",
|
|
2155
2229
|
width: "100%",
|
|
@@ -2303,8 +2377,8 @@ const style$7 = {
|
|
|
2303
2377
|
},
|
|
2304
2378
|
},
|
|
2305
2379
|
};
|
|
2306
|
-
const sheet$
|
|
2307
|
-
const styleString$
|
|
2380
|
+
const sheet$8 = createStyleSheet(style$8);
|
|
2381
|
+
const styleString$8 = sheet$8.toString();
|
|
2308
2382
|
function TaskCardView(props) {
|
|
2309
2383
|
var _a, _b;
|
|
2310
2384
|
const { callbacks, states, content } = props;
|
|
@@ -2340,11 +2414,11 @@ function TaskCardView(props) {
|
|
|
2340
2414
|
}
|
|
2341
2415
|
|
|
2342
2416
|
`;
|
|
2343
|
-
return (h("div", { class: sheet$
|
|
2417
|
+
return (h("div", { class: sheet$8.classes.TaskCard, part: "sqm-base" },
|
|
2344
2418
|
h("style", { type: "text/css" },
|
|
2345
|
-
styleString$
|
|
2419
|
+
styleString$8,
|
|
2346
2420
|
vanillaStyle),
|
|
2347
|
-
!states.loading && taskNotStarted && (h("div", { class: sheet$
|
|
2421
|
+
!states.loading && taskNotStarted && (h("div", { class: sheet$8.classes.NotStarted },
|
|
2348
2422
|
h("span", { class: "icon" },
|
|
2349
2423
|
h("sl-icon", { name: "info-circle-fill" })),
|
|
2350
2424
|
intl.formatMessage({
|
|
@@ -2355,7 +2429,7 @@ function TaskCardView(props) {
|
|
|
2355
2429
|
.setLocale(luxonLocale(states.locale))
|
|
2356
2430
|
.toLocaleString(luxon.DateTime.DATETIME_MED),
|
|
2357
2431
|
}))),
|
|
2358
|
-
!states.loading && taskEnded && (h("div", { class: sheet$
|
|
2432
|
+
!states.loading && taskEnded && (h("div", { class: sheet$8.classes.Ended },
|
|
2359
2433
|
h("span", { class: "icon" },
|
|
2360
2434
|
h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2361
2435
|
intl.formatMessage({
|
|
@@ -2375,7 +2449,7 @@ function TaskCardView(props) {
|
|
|
2375
2449
|
? "main complete"
|
|
2376
2450
|
: "main" },
|
|
2377
2451
|
h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2378
|
-
h("div", { class: sheet$
|
|
2452
|
+
h("div", { class: sheet$8.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
2379
2453
|
showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2380
2454
|
h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2381
2455
|
h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
@@ -2391,7 +2465,7 @@ function TaskCardView(props) {
|
|
|
2391
2465
|
} }, content.cardTitle)),
|
|
2392
2466
|
states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
|
|
2393
2467
|
content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.45" : "1", complete: taskComplete, expired: taskUnavailable })))),
|
|
2394
|
-
h("div", { class: sheet$
|
|
2468
|
+
h("div", { class: sheet$8.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
2395
2469
|
h("span", { class: "text" },
|
|
2396
2470
|
content.repeatable && (h("div", null,
|
|
2397
2471
|
h("span", { class: repetitions > 0
|
|
@@ -2462,7 +2536,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
|
|
|
2462
2536
|
h("path", { d: "M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z", fill: color })));
|
|
2463
2537
|
}
|
|
2464
2538
|
|
|
2465
|
-
const vanillaStyle$
|
|
2539
|
+
const vanillaStyle$4 = `
|
|
2466
2540
|
:host{
|
|
2467
2541
|
margin: 0 auto;
|
|
2468
2542
|
width: 100%;
|
|
@@ -2518,7 +2592,7 @@ function PortalFooterView(props) {
|
|
|
2518
2592
|
const styleString = sheet.toString();
|
|
2519
2593
|
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2520
2594
|
h("style", { type: "text/css" },
|
|
2521
|
-
vanillaStyle$
|
|
2595
|
+
vanillaStyle$4,
|
|
2522
2596
|
styleString),
|
|
2523
2597
|
h("div", { class: sheet.classes.RowContainer },
|
|
2524
2598
|
props.faqLink && (h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
@@ -2690,7 +2764,7 @@ function ReferralIframeView(props) {
|
|
|
2690
2764
|
h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2691
2765
|
}
|
|
2692
2766
|
|
|
2693
|
-
const style$
|
|
2767
|
+
const style$9 = {
|
|
2694
2768
|
ErrorStyle: ErrorStyles,
|
|
2695
2769
|
FieldsContainer: {
|
|
2696
2770
|
"& sl-input": {
|
|
@@ -2698,7 +2772,7 @@ const style$8 = {
|
|
|
2698
2772
|
},
|
|
2699
2773
|
},
|
|
2700
2774
|
};
|
|
2701
|
-
const vanillaStyle$
|
|
2775
|
+
const vanillaStyle$5 = `
|
|
2702
2776
|
:host {
|
|
2703
2777
|
margin: 0 auto;
|
|
2704
2778
|
width: 100%;
|
|
@@ -2710,21 +2784,21 @@ sl-input::part(label){
|
|
|
2710
2784
|
font-weight: var(--sl-font-weight-semibold);
|
|
2711
2785
|
}
|
|
2712
2786
|
`;
|
|
2713
|
-
const sheet$
|
|
2714
|
-
const styleString$
|
|
2787
|
+
const sheet$9 = createStyleSheet(style$9);
|
|
2788
|
+
const styleString$9 = sheet$9.toString();
|
|
2715
2789
|
function NameFieldsView(props) {
|
|
2716
2790
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2717
2791
|
const { states } = props;
|
|
2718
2792
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2719
|
-
return (h("div", { class: sheet$
|
|
2793
|
+
return (h("div", { class: sheet$9.classes.FieldsContainer },
|
|
2720
2794
|
h("style", { type: "text/css" },
|
|
2721
|
-
vanillaStyle$
|
|
2722
|
-
styleString$
|
|
2795
|
+
vanillaStyle$5,
|
|
2796
|
+
styleString$9),
|
|
2723
2797
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
|
|
2724
2798
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2725
2799
|
}
|
|
2726
2800
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2727
|
-
class: sheet$
|
|
2801
|
+
class: sheet$9.classes.ErrorStyle,
|
|
2728
2802
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2729
2803
|
}
|
|
2730
2804
|
: []))),
|
|
@@ -2732,13 +2806,13 @@ function NameFieldsView(props) {
|
|
|
2732
2806
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2733
2807
|
}
|
|
2734
2808
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2735
|
-
class: sheet$
|
|
2809
|
+
class: sheet$9.classes.ErrorStyle,
|
|
2736
2810
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2737
2811
|
}
|
|
2738
2812
|
: [])))));
|
|
2739
2813
|
}
|
|
2740
2814
|
|
|
2741
|
-
const style$
|
|
2815
|
+
const style$a = {
|
|
2742
2816
|
ErrorStyle: {
|
|
2743
2817
|
"&::part(control)": {
|
|
2744
2818
|
background: "var(--sl-color-danger-10)",
|
|
@@ -2761,7 +2835,7 @@ const style$9 = {
|
|
|
2761
2835
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2762
2836
|
},
|
|
2763
2837
|
};
|
|
2764
|
-
const vanillaStyle$
|
|
2838
|
+
const vanillaStyle$6 = `
|
|
2765
2839
|
:host {
|
|
2766
2840
|
margin: 0 auto;
|
|
2767
2841
|
width: 100%;
|
|
@@ -2777,22 +2851,22 @@ sl-checkbox::part(base){
|
|
|
2777
2851
|
}
|
|
2778
2852
|
`;
|
|
2779
2853
|
jss.setup(create());
|
|
2780
|
-
const sheet$
|
|
2781
|
-
const styleString$
|
|
2854
|
+
const sheet$a = jss.createStyleSheet(style$a);
|
|
2855
|
+
const styleString$a = sheet$a.toString();
|
|
2782
2856
|
function CheckboxFieldView(props) {
|
|
2783
2857
|
var _a, _b, _c;
|
|
2784
2858
|
const { states, content, callbacks } = props;
|
|
2785
2859
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2786
|
-
return (h("div", { class: sheet$
|
|
2860
|
+
return (h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
|
|
2787
2861
|
h("style", { type: "text/css" },
|
|
2788
|
-
vanillaStyle$
|
|
2789
|
-
styleString$
|
|
2862
|
+
vanillaStyle$6,
|
|
2863
|
+
styleString$a),
|
|
2790
2864
|
h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2791
2865
|
e.target.value = e.target.checked;
|
|
2792
2866
|
callbacks.setChecked(e.target.value);
|
|
2793
2867
|
} }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
2794
2868
|
? {
|
|
2795
|
-
class: sheet$
|
|
2869
|
+
class: sheet$a.classes.ErrorStyle,
|
|
2796
2870
|
}
|
|
2797
2871
|
: [])),
|
|
2798
2872
|
intl.formatMessage({
|
|
@@ -2801,13 +2875,13 @@ function CheckboxFieldView(props) {
|
|
|
2801
2875
|
}, {
|
|
2802
2876
|
labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
2803
2877
|
}),
|
|
2804
|
-
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$
|
|
2878
|
+
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$a.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
2805
2879
|
id: `errorMessage-${content.checkboxName}`,
|
|
2806
2880
|
defaultMessage: content.errorMessage,
|
|
2807
2881
|
}))))));
|
|
2808
2882
|
}
|
|
2809
2883
|
|
|
2810
|
-
const style$
|
|
2884
|
+
const style$b = {
|
|
2811
2885
|
ErrorStyle: {
|
|
2812
2886
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2813
2887
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2823,7 +2897,7 @@ const style$a = {
|
|
|
2823
2897
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2824
2898
|
},
|
|
2825
2899
|
};
|
|
2826
|
-
const vanillaStyle$
|
|
2900
|
+
const vanillaStyle$7 = `
|
|
2827
2901
|
:host {
|
|
2828
2902
|
margin: 0 auto;
|
|
2829
2903
|
width: 100%;
|
|
@@ -2835,36 +2909,36 @@ sl-select::part(label){
|
|
|
2835
2909
|
}
|
|
2836
2910
|
`;
|
|
2837
2911
|
jss.setup(create());
|
|
2838
|
-
const sheet$
|
|
2839
|
-
const styleString$
|
|
2912
|
+
const sheet$b = jss.createStyleSheet(style$b);
|
|
2913
|
+
const styleString$b = sheet$b.toString();
|
|
2840
2914
|
function DropdownFieldView(props) {
|
|
2841
2915
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2842
2916
|
const { states, content } = props;
|
|
2843
2917
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2844
|
-
return (h("div", { class: sheet$
|
|
2918
|
+
return (h("div", { class: sheet$b.classes.FieldContainer, part: "sqm-base" },
|
|
2845
2919
|
h("style", { type: "text/css" },
|
|
2846
|
-
vanillaStyle$
|
|
2847
|
-
styleString$
|
|
2920
|
+
vanillaStyle$7,
|
|
2921
|
+
styleString$b),
|
|
2848
2922
|
h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
|
|
2849
2923
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2850
2924
|
}
|
|
2851
2925
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2852
|
-
class: sheet$
|
|
2926
|
+
class: sheet$b.classes.ErrorStyle,
|
|
2853
2927
|
}
|
|
2854
2928
|
: [])), content.selectOptions),
|
|
2855
|
-
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$
|
|
2929
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$b.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
2856
2930
|
id: `errorMessage-${content.dropdownName}`,
|
|
2857
2931
|
defaultMessage: content.errorMessage,
|
|
2858
2932
|
})))));
|
|
2859
2933
|
}
|
|
2860
2934
|
|
|
2861
|
-
const style$
|
|
2935
|
+
const style$c = {
|
|
2862
2936
|
ErrorStyle: ErrorStyles,
|
|
2863
2937
|
FieldContainer: {
|
|
2864
2938
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2865
2939
|
},
|
|
2866
2940
|
};
|
|
2867
|
-
const vanillaStyle$
|
|
2941
|
+
const vanillaStyle$8 = `
|
|
2868
2942
|
:host {
|
|
2869
2943
|
margin: 0 auto;
|
|
2870
2944
|
width: 100%;
|
|
@@ -2872,21 +2946,21 @@ const vanillaStyle$7 = `
|
|
|
2872
2946
|
}
|
|
2873
2947
|
`;
|
|
2874
2948
|
jss.setup(create());
|
|
2875
|
-
const sheet$
|
|
2876
|
-
const styleString$
|
|
2949
|
+
const sheet$c = jss.createStyleSheet(style$c);
|
|
2950
|
+
const styleString$c = sheet$c.toString();
|
|
2877
2951
|
function InputFieldView(props) {
|
|
2878
2952
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2879
2953
|
const { states, content } = props;
|
|
2880
2954
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2881
|
-
return (h("div", { class: sheet$
|
|
2955
|
+
return (h("div", { class: sheet$c.classes.FieldContainer, part: "sqm-base" },
|
|
2882
2956
|
h("style", { type: "text/css" },
|
|
2883
|
-
vanillaStyle$
|
|
2884
|
-
styleString$
|
|
2957
|
+
vanillaStyle$8,
|
|
2958
|
+
styleString$c),
|
|
2885
2959
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
|
|
2886
2960
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2887
2961
|
}
|
|
2888
2962
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2889
|
-
class: sheet$
|
|
2963
|
+
class: sheet$c.classes.ErrorStyle,
|
|
2890
2964
|
helpText: intl.formatMessage({
|
|
2891
2965
|
id: `errorMessage-${content.fieldName}`,
|
|
2892
2966
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -2981,7 +3055,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
2981
3055
|
return (h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
|
|
2982
3056
|
}
|
|
2983
3057
|
|
|
2984
|
-
const style$
|
|
3058
|
+
const style$d = {
|
|
2985
3059
|
HostBlock: HostBlock,
|
|
2986
3060
|
Container: {
|
|
2987
3061
|
minWidth: "300px",
|
|
@@ -3332,8 +3406,8 @@ const style$c = {
|
|
|
3332
3406
|
},
|
|
3333
3407
|
};
|
|
3334
3408
|
// JSS config
|
|
3335
|
-
const sheet$
|
|
3336
|
-
const styleString$
|
|
3409
|
+
const sheet$d = createStyleSheet(style$d);
|
|
3410
|
+
const styleString$d = sheet$d.toString();
|
|
3337
3411
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3338
3412
|
function RewardExchangeView(props) {
|
|
3339
3413
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3356,7 +3430,7 @@ function RewardExchangeView(props) {
|
|
|
3356
3430
|
sourceUnit: item.sourceUnit,
|
|
3357
3431
|
})));
|
|
3358
3432
|
}
|
|
3359
|
-
return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$
|
|
3433
|
+
return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$d.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3360
3434
|
var _a, _b, _c, _d, _e;
|
|
3361
3435
|
return callbacks.setExchangeState({
|
|
3362
3436
|
amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
|
|
@@ -3364,7 +3438,7 @@ function RewardExchangeView(props) {
|
|
|
3364
3438
|
});
|
|
3365
3439
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3366
3440
|
var _a, _b;
|
|
3367
|
-
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3441
|
+
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$d.classes.SelectItem },
|
|
3368
3442
|
step.prettyDestinationValue,
|
|
3369
3443
|
h("br", null),
|
|
3370
3444
|
h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3383,8 +3457,8 @@ function RewardExchangeView(props) {
|
|
|
3383
3457
|
var _a;
|
|
3384
3458
|
return [
|
|
3385
3459
|
h("div", { part: "choose-reward-container" },
|
|
3386
|
-
h("div", { class: sheet$
|
|
3387
|
-
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$
|
|
3460
|
+
h("div", { class: sheet$d.classes.Title }, states.content.text.rewardTitle),
|
|
3461
|
+
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$d.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3388
3462
|
var _a, _b, _c, _d, _e;
|
|
3389
3463
|
const style = {
|
|
3390
3464
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3393,7 +3467,7 @@ function RewardExchangeView(props) {
|
|
|
3393
3467
|
borderRadius: "4px",
|
|
3394
3468
|
};
|
|
3395
3469
|
return (h("div", { key: item.key, style: style },
|
|
3396
|
-
h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3470
|
+
h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$d.classes.Card, style: {
|
|
3397
3471
|
cursor: item.unavailableReasonCode
|
|
3398
3472
|
? "not-allowed"
|
|
3399
3473
|
: "pointer",
|
|
@@ -3410,14 +3484,14 @@ function RewardExchangeView(props) {
|
|
|
3410
3484
|
? "rgba(0, 0, 0, 0.05)"
|
|
3411
3485
|
: "rgba(0, 0, 0, 0)",
|
|
3412
3486
|
} },
|
|
3413
|
-
h("div", { class: sheet$
|
|
3487
|
+
h("div", { class: sheet$d.classes.Image, style: {
|
|
3414
3488
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3415
3489
|
} },
|
|
3416
3490
|
h("img", { class: item.unavailableReasonCode
|
|
3417
3491
|
? "image subdued"
|
|
3418
3492
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3419
3493
|
getAssetPath("./assets/Reward-image.png") })),
|
|
3420
|
-
h("div", { class: sheet$
|
|
3494
|
+
h("div", { class: sheet$d.classes.TextArea, style: {
|
|
3421
3495
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3422
3496
|
} },
|
|
3423
3497
|
h("div", { class: "title", style: {
|
|
@@ -3450,7 +3524,7 @@ function RewardExchangeView(props) {
|
|
|
3450
3524
|
item.prettySourceMinValue,
|
|
3451
3525
|
}))))))));
|
|
3452
3526
|
}))),
|
|
3453
|
-
h("div", { class: sheet$
|
|
3527
|
+
h("div", { class: sheet$d.classes.Button },
|
|
3454
3528
|
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
3455
3529
|
];
|
|
3456
3530
|
}
|
|
@@ -3461,7 +3535,7 @@ function RewardExchangeView(props) {
|
|
|
3461
3535
|
? false
|
|
3462
3536
|
: input && !states.amount;
|
|
3463
3537
|
return (h("div", null,
|
|
3464
|
-
h("div", { class: sheet$
|
|
3538
|
+
h("div", { class: sheet$d.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3465
3539
|
h("div", { class: "wrapper" },
|
|
3466
3540
|
h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3467
3541
|
getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3470,7 +3544,7 @@ function RewardExchangeView(props) {
|
|
|
3470
3544
|
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "points" }, input)) : (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
3471
3545
|
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (h("div", null, input)),
|
|
3472
3546
|
h("div", { class: "space" }))),
|
|
3473
|
-
h("div", { class: sheet$
|
|
3547
|
+
h("div", { class: sheet$d.classes.Button },
|
|
3474
3548
|
h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3475
3549
|
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3476
3550
|
}
|
|
@@ -3478,8 +3552,8 @@ function RewardExchangeView(props) {
|
|
|
3478
3552
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3479
3553
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3480
3554
|
return (h("div", null,
|
|
3481
|
-
h("div", { class: sheet$
|
|
3482
|
-
h("div", { class: sheet$
|
|
3555
|
+
h("div", { class: sheet$d.classes.Confirmation, part: "confirmation-container" },
|
|
3556
|
+
h("div", { class: sheet$d.classes.Title }, states.content.text.redeemTitle),
|
|
3483
3557
|
h("div", { class: "wrapper" },
|
|
3484
3558
|
h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3485
3559
|
h("div", { class: "reward-item-container" },
|
|
@@ -3494,13 +3568,13 @@ function RewardExchangeView(props) {
|
|
|
3494
3568
|
h("div", { class: "wrapper top-border padding" },
|
|
3495
3569
|
h("div", { class: "field" }, states.content.text.costTitle),
|
|
3496
3570
|
h("div", { class: "value" }, cost)),
|
|
3497
|
-
h("div", { class: sheet$
|
|
3571
|
+
h("div", { class: sheet$d.classes.Button },
|
|
3498
3572
|
h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3499
3573
|
h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3500
3574
|
}
|
|
3501
3575
|
function success() {
|
|
3502
3576
|
var _a, _b, _c, _d, _e, _f;
|
|
3503
|
-
return (h("div", { class: sheet$
|
|
3577
|
+
return (h("div", { class: sheet$d.classes.Success, part: "success-container" },
|
|
3504
3578
|
h(Gift$1, null),
|
|
3505
3579
|
h(Confetti, null),
|
|
3506
3580
|
h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3515,7 +3589,7 @@ function RewardExchangeView(props) {
|
|
|
3515
3589
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { class: "promo" },
|
|
3516
3590
|
states.content.text.promoCode,
|
|
3517
3591
|
h(CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
3518
|
-
h("div", { class: sheet$
|
|
3592
|
+
h("div", { class: sheet$d.classes.Button },
|
|
3519
3593
|
h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3520
3594
|
}
|
|
3521
3595
|
const stages = {
|
|
@@ -3527,7 +3601,7 @@ function RewardExchangeView(props) {
|
|
|
3527
3601
|
const currentStage = stages[states.redeemStage];
|
|
3528
3602
|
function stageMap() {
|
|
3529
3603
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3530
|
-
return (h("div", { class: sheet$
|
|
3604
|
+
return (h("div", { class: sheet$d.classes.ProgressBar },
|
|
3531
3605
|
h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3532
3606
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3533
3607
|
return h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3539,10 +3613,10 @@ function RewardExchangeView(props) {
|
|
|
3539
3613
|
h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3540
3614
|
}
|
|
3541
3615
|
function loading() {
|
|
3542
|
-
return (h("div", { class: sheet$
|
|
3616
|
+
return (h("div", { class: sheet$d.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3543
3617
|
return (h("div", null,
|
|
3544
|
-
h("sl-card", { class: sheet$
|
|
3545
|
-
h("div", { class: sheet$
|
|
3618
|
+
h("sl-card", { class: sheet$d.classes.Card },
|
|
3619
|
+
h("div", { class: sheet$d.classes.CardLayout },
|
|
3546
3620
|
h("div", null,
|
|
3547
3621
|
h("sl-skeleton", { style: {
|
|
3548
3622
|
width: "100px",
|
|
@@ -3574,12 +3648,12 @@ function RewardExchangeView(props) {
|
|
|
3574
3648
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3575
3649
|
return;
|
|
3576
3650
|
refs.canvasRef.current = canvas;
|
|
3577
|
-
}, id: "my-canvas", class: sheet$
|
|
3651
|
+
}, id: "my-canvas", class: sheet$d.classes.Confetti }));
|
|
3578
3652
|
}
|
|
3579
3653
|
if (states.noExchangeOptions)
|
|
3580
3654
|
return states.content.text.empty;
|
|
3581
|
-
return (h("div", { class: sheet$
|
|
3582
|
-
h("style", { type: "text/css" }, styleString$
|
|
3655
|
+
return (h("div", { class: sheet$d.classes.Container, part: "sqm-base" },
|
|
3656
|
+
h("style", { type: "text/css" }, styleString$d),
|
|
3583
3657
|
h("div", null,
|
|
3584
3658
|
stageMap(),
|
|
3585
3659
|
states.exchangeError && errorMessage(),
|
|
@@ -3995,7 +4069,7 @@ function CardFeedView(props, children) {
|
|
|
3995
4069
|
h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
3996
4070
|
}
|
|
3997
4071
|
|
|
3998
|
-
const style$
|
|
4072
|
+
const style$e = {
|
|
3999
4073
|
HostBlock: HostBlock,
|
|
4000
4074
|
couponCodeLabel: {
|
|
4001
4075
|
margin: "var(--sl-spacing-x-small) 0",
|
|
@@ -4003,21 +4077,21 @@ const style$d = {
|
|
|
4003
4077
|
fontSize: "var(--sl-font-size-small)",
|
|
4004
4078
|
},
|
|
4005
4079
|
};
|
|
4006
|
-
const vanillaStyle$
|
|
4080
|
+
const vanillaStyle$9 = `
|
|
4007
4081
|
:host{
|
|
4008
4082
|
display: block;
|
|
4009
4083
|
width: 100%;
|
|
4010
4084
|
}
|
|
4011
4085
|
`;
|
|
4012
|
-
const sheet$
|
|
4013
|
-
const styleString$
|
|
4086
|
+
const sheet$e = createStyleSheet(style$e);
|
|
4087
|
+
const styleString$e = sheet$e.toString();
|
|
4014
4088
|
function CouponCodeView(props) {
|
|
4015
4089
|
const error = !props.loading && props.error;
|
|
4016
4090
|
return (h("div", null,
|
|
4017
4091
|
h("style", { type: "text/css" },
|
|
4018
|
-
styleString$
|
|
4019
|
-
vanillaStyle$
|
|
4020
|
-
h("p", { class: sheet$
|
|
4092
|
+
styleString$e,
|
|
4093
|
+
vanillaStyle$9),
|
|
4094
|
+
h("p", { class: sheet$e.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4021
4095
|
error ? (h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4022
4096
|
h("div", { part: "erroralert-text" }, props.errorText))) : (h(CopyTextView, Object.assign({}, props)))));
|
|
4023
4097
|
}
|
|
@@ -4107,4 +4181,4 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
4107
4181
|
h(TagName, { "stencilbook-shadow-view": randomInt })));
|
|
4108
4182
|
};
|
|
4109
4183
|
|
|
4110
|
-
export {
|
|
4184
|
+
export { successVariable as A, BigStatView as B, CopyTextView as C, DropdownFieldView as D, EditProfileView as E, loading as F, empty as G, HeroView as H, InputFieldView as I, rewardExchange as J, CardFeedView as K, LeaderboardView as L, CouponCodeView as M, NameFieldsView as N, ProgressBar as O, PortalFrameView as P, autoColorScaleCss as Q, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, ShadowViewAddon as U, useBigStat as V, withShadowView as W, demoRewardExchange as X, useShareButton as a, useDemoBigStat as b, StatContainerView as c, PortalChangePasswordView as d, PortalLoginView as e, PortalRegisterView as f, ProgressBarView as g, PoweredByImg as h, PortalFooterView as i, CheckboxFieldView as j, RewardExchangeView as k, rewardExchangeLongText as l, rewardExchangeSelected as m, chooseAmountFixed as n, chooseAmountFixedNoDescription as o, chooseAmountVariable as p, chooseAmountVariableNoDescription as q, rewardExchangeCustomErrorMsg as r, chooseAmountVariableDisabled as s, chooseAmountVariableUnavailable as t, useShareLink as u, confirmFixed as v, confirmVariable as w, redemptionError as x, queryError as y, success as z };
|