@saasquatch/mint-components 2.5.5-1 → 2.5.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/AsYouType-5f15a922.js +4764 -0
- package/dist/cjs/{ErrorView-17578c10.js → ErrorView-8f6cf1cb.js} +1 -1
- package/dist/cjs/{GenericTableView-4c48c630.js → GenericTableView-12d35117.js} +17 -15
- package/dist/cjs/{JSS-8503a151.js → JSS-bf8078e9.js} +342 -338
- package/dist/cjs/{ShadowViewAddon-f57cb460.js → ShadowViewAddon-ee16ec1d.js} +312 -292
- package/dist/cjs/{copy-text-view-bb2c0ea7.js → copy-text-view-49517b2a.js} +2 -2
- package/dist/cjs/{data-ae38fa86.js → data-77273531.js} +5 -5
- package/dist/cjs/demoMerge-6f125494.js +203 -0
- package/dist/cjs/{dom-context-hooks.module-e7b6727c.js → dom-context-hooks.module-735c3942.js} +133 -76
- package/dist/cjs/{email-registration-view-306c8878.js → email-registration-view-36a74293.js} +10 -9
- package/dist/cjs/{global-3ba30270.js → global-973bc63c.js} +587 -583
- package/dist/cjs/{index.module-3221a469.js → index-8530c62f.js} +2911 -511
- package/dist/cjs/{index-8277cbb3.js → index-d41c2c94.js} +766 -340
- package/dist/cjs/{index-8c6255f5.js → index-f1dd6136.js} +47 -29
- package/dist/cjs/{jsonpointer-11327262.js → jsonpointer-0db21316.js} +8 -4
- package/dist/cjs/loader.cjs.js +6 -5
- package/dist/cjs/{luxon-c1ad356a.js → luxon-d3612a3d.js} +486 -299
- package/dist/cjs/mint-components.cjs.js +11 -7
- package/dist/cjs/{mockRewardData-ed603fca.js → mockRewardData-e6a0a048.js} +5 -3
- package/dist/cjs/{parseStates-d1effc19.js → parseStates-35013ba4.js} +3 -0
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-34b36aca.js → re-render-51c48d7c.js} +5 -5
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +399 -1395
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +818 -2891
- package/dist/cjs/{sqm-close-button-view-e9f2a454.js → sqm-close-button-view-74e5e1e9.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +6 -11
- package/dist/cjs/sqm-code-verification.cjs.entry.js +20 -47
- package/dist/cjs/sqm-context-router.cjs.entry.js +9 -8
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +71 -182
- package/dist/cjs/sqm-empty_4.cjs.entry.js +21 -58
- package/dist/cjs/sqm-form-message_2.cjs.entry.js +7 -19
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +10 -9
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +11 -10
- package/dist/cjs/sqm-header-logo.cjs.entry.js +4 -19
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +14 -89
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +6 -8
- package/dist/cjs/{sqm-lead-checkbox-field-view-d6df81c7.js → sqm-lead-checkbox-field-view-24ac7358.js} +12 -11
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +14 -30
- package/dist/cjs/sqm-lead-input-field-view-7dfbc714.js +52 -0
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +15 -31
- package/dist/cjs/{sqm-leaderboard-rank-view-67fd7934.js → sqm-leaderboard-rank-view-e992762c.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +25 -22
- package/dist/cjs/{sqm-logout-current-user-view-f330d641.js → sqm-logout-current-user-view-ebee238e.js} +2 -2
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +17 -28
- package/dist/cjs/{sqm-navigation-sidebar-item-view-9134e64e.js → sqm-navigation-sidebar-item-view-a2cab80e.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +23 -18
- package/dist/cjs/{sqm-navigation-sidebar-view-6616e3e0.js → sqm-navigation-sidebar-view-873e0c44.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +12 -17
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +40 -102
- package/dist/cjs/{sqm-partner-info-modal-view-6173c618.js → sqm-partner-info-modal-view-c8972001.js} +4 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +186 -86
- package/dist/cjs/sqm-popup-container.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-portal-container-view-757f921b.js → sqm-portal-container-view-c0cf9af9.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-38d8344c.js → sqm-portal-email-verification-view-92866725.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +22 -52
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +101 -429
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +7 -13
- package/dist/cjs/{sqm-portal-profile-view-062eda68.js → sqm-portal-profile-view-60e78cdb.js} +20 -17
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +20 -56
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -24
- package/dist/cjs/{sqm-portal-registration-form-view-a45f7a52.js → sqm-portal-registration-form-view-5473e24d.js} +26 -21
- package/dist/cjs/{sqm-portal-reset-password-view-b2c546bd.js → sqm-portal-reset-password-view-7a6f55c5.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +21 -89
- package/dist/cjs/{sqm-portal-verify-email-view-2a120d0a.js → sqm-portal-verify-email-view-7efa70c9.js} +48 -45
- package/dist/cjs/{sqm-qr-code-view-0d43424e.js → sqm-qr-code-view-70da70f9.js} +3 -3
- package/dist/cjs/sqm-qr-code.cjs.entry.js +22 -48
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +37 -140
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +5 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -7
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +98 -217
- package/dist/cjs/sqm-route.cjs.entry.js +2 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +12 -8
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2892 -2264
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +9 -8
- package/dist/cjs/{sqm-text-span-view-b9e10f5d.js → sqm-text-span-view-c6938acd.js} +2 -2
- package/dist/cjs/sqm-text-span.cjs.entry.js +8 -4
- package/dist/cjs/{sqm-user-info-form-view-aedca5fe.js → sqm-user-info-form-view-e878a9a3.js} +173 -163
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +6 -11
- package/dist/cjs/subregions-3dbacb18.js +1467 -0
- package/dist/cjs/{useChildElements-36f7e4bb.js → useChildElements-e5e26816.js} +3 -3
- package/dist/cjs/{useIndirectTaxForm-7656fc63.js → useIndirectTaxForm-691691c2.js} +42 -38
- package/dist/cjs/{useInstantAccessRegistration-43514e50.js → useInstantAccessRegistration-9201777d.js} +6 -6
- package/dist/cjs/{useLeadFormState-34f9834b.js → useLeadFormState-f5b768b9.js} +20 -20
- package/dist/cjs/{usePortalRegistrationForm-b18a1f6b.js → usePortalRegistrationForm-b3c0451b.js} +16 -13
- package/dist/cjs/{useReferralCodes-25d5320a.js → useReferralCodes-5794a177.js} +11 -11
- package/dist/cjs/{useReferralTable-ad86986b.js → useReferralTable-32b3541b.js} +19 -19
- package/dist/cjs/{useRegistrationFormState-ea81d55a.js → useRegistrationFormState-feccd2c8.js} +3 -3
- package/dist/cjs/{useVerificationEmail-70aad5f1.js → useVerificationEmail-f0807562.js} +17 -15
- package/dist/cjs/{utilities-dfc34bea.js → utilities-04345466.js} +3 -3
- package/dist/collection/ShadowViewAddon.js +1 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/raisins-plop-target/raisins-plop-target.js +36 -34
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +3 -7
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +11 -23
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +11 -27
- package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +2 -16
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +1 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +294 -298
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +3 -3
- package/dist/collection/components/sqm-brand/SqmBrand.stories.js +4 -72
- package/dist/collection/components/sqm-brand/sqm-brand.js +61 -58
- package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +43 -120
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +1 -5
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +55 -59
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +17 -22
- package/dist/collection/components/sqm-checkbox-field/UseCheckboxField.stories.js +5 -19
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +18 -21
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +167 -179
- package/dist/collection/components/sqm-close-button/CloseButton.stories.js +3 -5
- package/dist/collection/components/sqm-close-button/sqm-close-button-view.js +1 -5
- package/dist/collection/components/sqm-close-button/sqm-close-button.js +32 -35
- package/dist/collection/components/sqm-context-router/ContextRouter.js +4 -33
- package/dist/collection/components/sqm-context-router/sqm-context-router.js +39 -33
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +13 -13
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +1 -7
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +601 -695
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +10 -5
- package/dist/collection/components/sqm-divided-layout/DividedLayout.stories.js +19 -36
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +1 -5
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +129 -135
- package/dist/collection/components/sqm-dropdown-field/DropdownField.stories.js +7 -7
- package/dist/collection/components/sqm-dropdown-field/UseDropdownField.stories.js +3 -15
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +13 -15
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +128 -133
- package/dist/collection/components/sqm-edit-profile/EditProfileForm.stories.js +2 -2
- package/dist/collection/components/sqm-edit-profile/UseEditProfile.stories.js +9 -9
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +27 -45
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +272 -264
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +4 -3
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +4 -7
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +6 -12
- package/dist/collection/components/sqm-empty/sqm-empty.js +102 -95
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +9 -27
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +102 -108
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +61 -56
- package/dist/collection/components/sqm-graphql-client-provider/sqm-graphql-client-provider.js +32 -28
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +147 -161
- package/dist/collection/components/sqm-hero/Hero.stories.js +20 -54
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +5 -11
- package/dist/collection/components/sqm-hero/sqm-hero.js +177 -202
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +9 -26
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +533 -590
- package/dist/collection/components/sqm-hook-story-container/sqm-hook-story-container.js +28 -23
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -6
- package/dist/collection/components/sqm-image/sqm-image.js +131 -131
- package/dist/collection/components/sqm-input-field/InputField.stories.js +17 -17
- package/dist/collection/components/sqm-input-field/UseInputField.stories.js +7 -22
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +14 -15
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +156 -162
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +410 -481
- package/dist/collection/components/sqm-invoice-table/InvoiceTable.stories.js +2 -18
- package/dist/collection/components/sqm-invoice-table/UseInvoiceTable.stories.js +2 -14
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-data-cell.js +27 -23
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-date-cell.js +44 -40
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +29 -29
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +85 -80
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +68 -64
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +40 -39
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -8
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +287 -310
- package/dist/collection/components/sqm-invoice-table/useInvoiceTable.js +1 -3
- package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +7 -7
- package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +6 -10
- package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +10 -10
- package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +7 -7
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +20 -24
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +167 -179
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +13 -17
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +174 -189
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +22 -48
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +365 -420
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +13 -16
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +179 -191
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +3 -1
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +23 -29
- package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +3 -15
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +11 -35
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +553 -563
- package/dist/collection/components/sqm-leaderboard-rank/LeaderboardRank.stories.js +3 -12
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +200 -192
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +4 -3
- package/dist/collection/components/sqm-link-button/LinkButton.stories.js +2 -2
- package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +1 -6
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +73 -77
- package/dist/collection/components/sqm-logout-current-user/LogoutCurrentUser.stories.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user-view.js +1 -9
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +106 -115
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +104 -109
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +21 -20
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +104 -109
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu-view.js +6 -9
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +92 -82
- package/dist/collection/components/sqm-navigation-sidebar/NavigationSidebar.stories.js +1 -3
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +1 -8
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +71 -73
- package/dist/collection/components/sqm-navigation-sidebar-item/SidebarItem.stories.js +2 -2
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +1 -4
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +315 -308
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +1 -9
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +94 -100
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +13 -13
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +22 -54
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +515 -603
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +3 -3
- package/dist/collection/components/sqm-password-field/passwordValidation.js +8 -20
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +16 -18
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +197 -219
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -7
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -4
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +82 -84
- package/dist/collection/components/sqm-popup-container/PopupContainer.stories.js +1 -2
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +1 -5
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +161 -155
- package/dist/collection/components/sqm-portal-change-marketing/ChangeMarketing.stories.js +5 -5
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +8 -17
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +142 -154
- package/dist/collection/components/sqm-portal-change-password/ChangePassword.stories.js +6 -6
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -24
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +380 -436
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +5 -2
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +16 -119
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -5
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +280 -299
- package/dist/collection/components/sqm-portal-email-verification/PortalEmailVerification.stories.js +5 -5
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +13 -25
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +216 -243
- package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +6 -6
- package/dist/collection/components/sqm-portal-footer/PoweredByImg.js +1 -12
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -16
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +317 -351
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -14
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +279 -316
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +2 -1
- package/dist/collection/components/sqm-portal-frame/PortalFrame.stories.js +14 -55
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +1 -7
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +141 -158
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +295 -342
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +19 -26
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +645 -749
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -5
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -17
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +255 -292
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +33 -36
- package/dist/collection/components/sqm-portal-profile/PortalProfile.stories.js +6 -6
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +15 -26
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +282 -314
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +72 -82
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +8 -13
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +15 -28
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +525 -610
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -1
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +10 -15
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +20 -33
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +573 -663
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +5 -2
- package/dist/collection/components/sqm-portal-reset-password/PortalResetPassword.stories.js +6 -6
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +7 -29
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +449 -514
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +2 -1
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +2 -2
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +2 -14
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +196 -222
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +4 -2
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +20 -32
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -7
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +84 -78
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -10
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +231 -220
- package/dist/collection/components/sqm-program-menu/ProgramMenu.stories.js +8 -25
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +8 -9
- package/dist/collection/components/sqm-qr-code/QRCode.stories.js +8 -8
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -11
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +206 -230
- package/dist/collection/components/sqm-radio-card/RadioCard.stories.js +2 -2
- package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +1 -9
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +29 -86
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +3 -11
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +304 -335
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +14 -14
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +369 -410
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +3 -3
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +9 -36
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +3 -14
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +167 -175
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +2 -4
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -3
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +125 -132
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +9 -24
- package/dist/collection/components/sqm-referral-table/ReferralTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +5 -8
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +1 -1
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +30 -30
- package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +8 -30
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-cell.js +28 -23
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-date-cell.js +44 -40
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +219 -278
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +81 -76
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-user-cell.js +24 -20
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +65 -61
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +120 -139
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +260 -300
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +208 -225
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +124 -133
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +229 -253
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +1 -3
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +479 -557
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -26
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +8 -18
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +26 -28
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +96 -174
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +618 -726
- package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +16 -31
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +12 -15
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +11 -11
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +8 -30
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.js +45 -40
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +44 -40
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +97 -103
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +160 -156
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +336 -332
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +96 -105
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +67 -66
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +127 -135
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +173 -197
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +390 -463
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +4 -2
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +206 -219
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -3
- package/dist/collection/components/sqm-route/sqm-route.js +31 -26
- package/dist/collection/components/sqm-router/Router.stories.js +4 -33
- package/dist/collection/components/sqm-router/sqm-router.js +17 -14
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +6 -89
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +259 -255
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +12 -46
- package/dist/collection/components/sqm-share-button/UseShareButton.stories.js +2 -7
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -6
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +509 -521
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +13 -13
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +329 -360
- package/dist/collection/components/sqm-share-code/useShareCode.js +3 -3
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +85 -86
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +17 -20
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +21 -49
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +987 -1192
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -3
- package/dist/collection/components/sqm-skeleton/sqm-skeleton.js +55 -59
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +1 -5
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +162 -185
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +12 -15
- package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +1 -5
- package/dist/collection/components/sqm-stencilbook/HookStoryAddon.js +1 -2
- package/dist/collection/components/sqm-stencilbook/Matrix.js +4 -13
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -13
- package/dist/collection/components/sqm-tab/sqm-tab.js +27 -25
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +47 -49
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +27 -30
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +10 -17
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +62 -59
- package/dist/collection/components/sqm-tabs/useTabs.js +1 -2
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -7
- package/dist/collection/components/sqm-task-card/SVGs.js +3 -7
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +31 -277
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -17
- package/dist/collection/components/sqm-task-card/progress-bar/ProgressBar.stories.js +1 -1
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +2 -10
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +10 -13
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +56 -83
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +780 -860
- package/dist/collection/components/sqm-text/Text.stories.js +2 -4
- package/dist/collection/components/sqm-text/sqm-text.js +61 -57
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -5
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +109 -101
- package/dist/collection/components/sqm-timeline/SVGs.js +3 -9
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +5 -57
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +1 -16
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +178 -166
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +41 -45
- package/dist/collection/components/sqm-titled-section/TitledSection.stories.js +5 -206
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +1 -4
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +129 -148
- package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +4 -7
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +1 -3
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +146 -137
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +82 -84
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +6 -26
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +215 -240
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +12 -22
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +12 -30
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +177 -195
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +33 -41
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +776 -921
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +4 -2
- package/dist/collection/components/tax-and-cash/SVGs.js +1 -4
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -3
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +188 -198
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +34 -83
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1864 -2210
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -7
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +13 -31
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +26 -53
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +565 -660
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -3
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +24 -63
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +699 -816
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +11 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +1 -4
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +5 -20
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +130 -147
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +12 -33
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +910 -1035
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +1 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/LoadingView.js +2 -19
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +4760 -5686
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +89 -176
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +1857 -2159
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +27 -27
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +5 -9
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +24 -44
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/SlotViews.stories.js +6 -6
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +120 -157
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +713 -823
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +9 -7
- package/dist/collection/components/views/EmailRegistration.stories.js +60 -60
- package/dist/collection/components/views/copy-text-view.js +6 -17
- package/dist/collection/components/views/email-registration-view.js +14 -28
- package/dist/collection/global/styles.js +8 -4
- package/dist/collection/stories/NewPortal.stories.js +106 -178
- package/dist/collection/tables/GenericTableView.js +19 -27
- package/dist/collection/tables/TableSlots.js +5 -19
- package/dist/collection/utils/DefaultTemplateView.js +6 -24
- package/dist/collection/utils/RequiredPropsError.js +10 -24
- package/dist/collection/utils/TemplateView.js +1 -3
- package/dist/collection/utils/demoMerge.js +10 -0
- package/dist/esm/AsYouType-cc09fa68.js +4746 -0
- package/dist/esm/{ErrorView-c6fc1d9b.js → ErrorView-19af8137.js} +1 -1
- package/dist/esm/{GenericTableView-471a9386.js → GenericTableView-4f7ac63d.js} +17 -15
- package/dist/esm/{JSS-67b5cff8.js → JSS-e97b34f4.js} +341 -337
- package/dist/esm/{ShadowViewAddon-e1375e0d.js → ShadowViewAddon-0c8005bd.js} +284 -264
- package/dist/esm/{copy-text-view-87259b11.js → copy-text-view-e1c3f2cd.js} +2 -2
- package/dist/esm/{data-04d2da44.js → data-510cc9b7.js} +1 -1
- package/dist/esm/demoMerge-a0320a8e.js +201 -0
- package/dist/esm/{dom-context-hooks.module-50442785.js → dom-context-hooks.module-f88a3e54.js} +129 -72
- package/dist/esm/{email-registration-view-4cdb4129.js → email-registration-view-7a63a912.js} +10 -9
- package/dist/esm/{global-f019575d.js → global-cf0cc6b1.js} +586 -582
- package/dist/esm/{index-38ad4957.js → index-7a8b0c0b.js} +766 -341
- package/dist/esm/{index.module-cc08450c.js → index-b04013cc.js} +2873 -473
- package/dist/esm/{index-ffa26b43.js → index-e6f5153e.js} +47 -29
- package/dist/esm/{jsonpointer-388a7082.js → jsonpointer-c5423376.js} +8 -4
- package/dist/esm/loader.js +6 -5
- package/dist/esm/{luxon-1be92a8e.js → luxon-40b943cb.js} +486 -299
- package/dist/esm/mint-components.js +8 -7
- package/dist/esm/{mockRewardData-9b27d6f1.js → mockRewardData-2cceba7a.js} +5 -3
- package/dist/esm/{parseStates-ed75e224.js → parseStates-0c27f2de.js} +3 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-380499f8.js → re-render-e911a0f7.js} +5 -5
- package/dist/esm/sqm-banking-info-form_10.entry.js +381 -1377
- package/dist/esm/sqm-big-stat_47.entry.js +767 -2840
- package/dist/esm/{sqm-close-button-view-fd9012e7.js → sqm-close-button-view-1deb12b1.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -10
- package/dist/esm/sqm-code-verification.entry.js +19 -46
- package/dist/esm/sqm-context-router.entry.js +6 -5
- package/dist/esm/sqm-email-verification_2.entry.js +43 -154
- package/dist/esm/sqm-empty_4.entry.js +21 -58
- package/dist/esm/sqm-form-message_2.entry.js +7 -19
- package/dist/esm/sqm-google-sign-in.entry.js +4 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +9 -8
- package/dist/esm/sqm-header-logo.entry.js +4 -19
- package/dist/esm/sqm-instant-access-registration.entry.js +12 -87
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +6 -8
- package/dist/esm/{sqm-lead-checkbox-field-view-04aa32a7.js → sqm-lead-checkbox-field-view-d055e7bd.js} +12 -11
- package/dist/esm/sqm-lead-checkbox-field.entry.js +12 -28
- package/dist/esm/sqm-lead-input-field-view-b0d62f1c.js +50 -0
- package/dist/esm/sqm-lead-input-field.entry.js +13 -29
- package/dist/esm/{sqm-leaderboard-rank-view-7a682cc3.js → sqm-leaderboard-rank-view-cd52cc80.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +22 -19
- package/dist/esm/{sqm-logout-current-user-view-376c1bf6.js → sqm-logout-current-user-view-9bda187a.js} +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +12 -23
- package/dist/esm/{sqm-navigation-sidebar-item-view-40837457.js → sqm-navigation-sidebar-item-view-754b2484.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +21 -16
- package/dist/esm/{sqm-navigation-sidebar-view-2b66457a.js → sqm-navigation-sidebar-view-e2094399.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +11 -16
- package/dist/esm/sqm-pagination_3.entry.js +35 -97
- package/dist/esm/{sqm-partner-info-modal-view-e02fb63a.js → sqm-partner-info-modal-view-3b59be37.js} +4 -4
- package/dist/esm/sqm-password-field.entry.js +185 -85
- package/dist/esm/sqm-popup-container.entry.js +12 -12
- package/dist/esm/{sqm-portal-container-view-200c9df8.js → sqm-portal-container-view-fcd53673.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-3fa9587c.js → sqm-portal-email-verification-view-88fbf496.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +18 -48
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +73 -401
- package/dist/esm/sqm-portal-logout.entry.js +5 -11
- package/dist/esm/{sqm-portal-profile-view-41894261.js → sqm-portal-profile-view-f27adfba.js} +20 -17
- package/dist/esm/sqm-portal-profile.entry.js +16 -52
- package/dist/esm/sqm-portal-protected-route.entry.js +8 -21
- package/dist/esm/{sqm-portal-registration-form-view-79265df5.js → sqm-portal-registration-form-view-113e1969.js} +26 -21
- package/dist/esm/{sqm-portal-reset-password-view-c7dd1c01.js → sqm-portal-reset-password-view-f9fb6355.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +18 -86
- package/dist/esm/{sqm-portal-verify-email-view-c102aa7c.js → sqm-portal-verify-email-view-ee40e3f2.js} +48 -45
- package/dist/esm/{sqm-qr-code-view-dd46daa3.js → sqm-qr-code-view-f8de4606.js} +3 -3
- package/dist/esm/sqm-qr-code.entry.js +18 -44
- package/dist/esm/sqm-referral-table_11.entry.js +36 -139
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +5 -4
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -7
- package/dist/esm/sqm-rewards-table_9.entry.js +55 -174
- package/dist/esm/sqm-route.entry.js +2 -1
- package/dist/esm/sqm-scroll.entry.js +12 -8
- package/dist/esm/sqm-stencilbook.entry.js +4808 -4180
- package/dist/esm/sqm-tab.entry.js +5 -4
- package/dist/esm/sqm-tabs.entry.js +9 -8
- package/dist/esm/{sqm-text-span-view-72f43dff.js → sqm-text-span-view-ed92b3c6.js} +2 -2
- package/dist/esm/sqm-text-span.entry.js +8 -4
- package/dist/esm/{sqm-user-info-form-view-8a95c5eb.js → sqm-user-info-form-view-c044a385.js} +173 -163
- package/dist/esm/sqm-widget-verification-controller.entry.js +4 -9
- package/dist/esm/subregions-d9f177f6.js +1452 -0
- package/dist/esm/{useChildElements-aa9eb7c9.js → useChildElements-a69f208f.js} +3 -3
- package/dist/esm/{useIndirectTaxForm-8d2e873d.js → useIndirectTaxForm-64a3ca69.js} +32 -28
- package/dist/esm/{useInstantAccessRegistration-7b11eb02.js → useInstantAccessRegistration-8c678a5a.js} +6 -6
- package/dist/esm/{useLeadFormState-b67018f2.js → useLeadFormState-34e05463.js} +7 -7
- package/dist/esm/{usePortalRegistrationForm-91e5786d.js → usePortalRegistrationForm-c6519939.js} +14 -11
- package/dist/esm/{useReferralCodes-a0a271ca.js → useReferralCodes-d0a384e4.js} +9 -9
- package/dist/esm/{useReferralTable-670580ff.js → useReferralTable-214dff06.js} +11 -11
- package/dist/esm/{useRegistrationFormState-95a75c57.js → useRegistrationFormState-72b4786d.js} +3 -3
- package/dist/esm/{useVerificationEmail-99d9f705.js → useVerificationEmail-b2c349a3.js} +12 -10
- package/dist/esm/{utilities-23a276e0.js → utilities-ceab25cd.js} +2 -2
- package/dist/esm-es5/AsYouType-cc09fa68.js +1 -0
- package/dist/esm-es5/{ErrorView-c6fc1d9b.js → ErrorView-19af8137.js} +1 -1
- package/dist/esm-es5/GenericTableView-4f7ac63d.js +1 -0
- package/dist/esm-es5/JSS-e97b34f4.js +8 -0
- package/dist/esm-es5/ShadowViewAddon-0c8005bd.js +1 -0
- package/dist/esm-es5/copy-text-view-e1c3f2cd.js +1 -0
- package/dist/esm-es5/data-510cc9b7.js +1 -0
- package/dist/esm-es5/demoMerge-a0320a8e.js +1 -0
- package/dist/esm-es5/dom-context-hooks.module-f88a3e54.js +53 -0
- package/dist/esm-es5/email-registration-view-7a63a912.js +1 -0
- package/dist/esm-es5/global-cf0cc6b1.js +271 -0
- package/dist/esm-es5/imageUrl-4775f17b.js +1 -1
- package/dist/esm-es5/index-7a8b0c0b.js +2 -0
- package/dist/esm-es5/index-b04013cc.js +1 -0
- package/dist/esm-es5/index-e6f5153e.js +1 -0
- package/dist/esm-es5/jsonpointer-c5423376.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-40b943cb.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mockRewardData-2cceba7a.js +1 -0
- package/dist/esm-es5/parseStates-0c27f2de.js +1 -0
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/re-render-e911a0f7.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-fd9012e7.js → sqm-close-button-view-1deb12b1.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message_2.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-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-data-cell_5.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field-view-d055e7bd.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-input-field-view-b0d62f1c.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-7a682cc3.js → sqm-leaderboard-rank-view-cd52cc80.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-376c1bf6.js → sqm-logout-current-user-view-9bda187a.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-754b2484.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-e2094399.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-3b59be37.js +1 -0
- 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-container-view-fcd53673.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-3fa9587c.js → sqm-portal-email-verification-view-88fbf496.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-profile-view-f27adfba.js +1 -0
- 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-view-113e1969.js +1 -0
- package/dist/esm-es5/sqm-portal-reset-password-view-f9fb6355.js +1 -0
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-ee40e3f2.js +1 -0
- package/dist/esm-es5/{sqm-qr-code-view-dd46daa3.js → sqm-qr-code-view-f8de4606.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-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-route.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.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-view-ed92b3c6.js +1 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-c044a385.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/subregions-d9f177f6.js +1 -0
- package/dist/esm-es5/useChildElements-a69f208f.js +1 -0
- package/dist/esm-es5/useIndirectTaxForm-64a3ca69.js +6 -0
- package/dist/esm-es5/useInstantAccessRegistration-8c678a5a.js +1 -0
- package/dist/esm-es5/useLeadFormState-34e05463.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-c6519939.js +1 -0
- package/dist/esm-es5/useReferralCodes-d0a384e4.js +1 -0
- package/dist/esm-es5/useReferralTable-214dff06.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-72b4786d.js +1 -0
- package/dist/esm-es5/useVerificationEmail-b2c349a3.js +1 -0
- package/dist/esm-es5/utilities-ceab25cd.js +1 -0
- package/dist/esm-es5/utils-334c1e34.js +1 -1
- package/dist/loader/index.d.ts +9 -1
- package/dist/loader/package.json +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +2 -1
- package/dist/mint-components/p-029ee766.system.js +1 -0
- package/dist/mint-components/p-04eaa3bb.system.js +1 -0
- package/dist/mint-components/p-056845fb.js +56 -0
- package/dist/mint-components/p-05715d8c.system.entry.js +1 -0
- package/dist/mint-components/p-0650e0f1.system.js +1 -0
- package/dist/mint-components/p-09a6ab1f.entry.js +1 -0
- package/dist/mint-components/p-0a8c9f35.system.entry.js +1 -0
- package/dist/mint-components/{p-11c127f5.js → p-0b77b3fe.js} +1 -1
- package/dist/mint-components/p-0bc61e27.system.entry.js +1 -0
- package/dist/mint-components/p-0bdacc2d.system.js +1 -0
- package/dist/mint-components/p-0c81f11f.system.entry.js +1 -0
- package/dist/mint-components/p-0c97293e.entry.js +1 -0
- package/dist/mint-components/p-0d69fc17.system.entry.js +1 -0
- package/dist/mint-components/p-0daa339e.entry.js +1 -0
- package/dist/mint-components/p-0f65e4ad.system.js +1 -0
- package/dist/mint-components/p-11028f98.system.js +1 -0
- package/dist/mint-components/p-119b9680.system.js +1 -0
- package/dist/mint-components/{p-ed741b3b.js → p-125c5bec.js} +6 -6
- package/dist/mint-components/p-12ae9c97.entry.js +1 -0
- package/dist/mint-components/p-139825b2.entry.js +1 -0
- package/dist/mint-components/p-14f0af4c.system.entry.js +1 -0
- package/dist/mint-components/{p-1a3a57c0.js → p-159a9368.js} +1 -1
- package/dist/mint-components/{p-78e98761.js → p-15f170d4.js} +4 -4
- package/dist/mint-components/p-162e5426.system.js +1 -0
- package/dist/mint-components/p-1933e4cc.system.entry.js +1 -0
- package/dist/mint-components/p-1aa5cdff.entry.js +1 -0
- package/dist/mint-components/p-1b673705.system.js +1 -0
- package/dist/mint-components/p-1e1543c7.entry.js +1 -0
- package/dist/mint-components/p-201ae45a.js +1 -0
- package/dist/mint-components/p-20b90db3.system.entry.js +1 -0
- package/dist/mint-components/p-2380b28e.system.entry.js +1 -0
- package/dist/mint-components/p-258152c8.system.entry.js +1 -0
- package/dist/mint-components/p-29be0454.system.entry.js +1 -0
- package/dist/mint-components/p-2af001d4.system.js +1 -0
- package/dist/mint-components/{p-88e16945.js → p-2b052eed.js} +1 -1
- package/dist/mint-components/p-2b5c577a.system.js +1 -0
- package/dist/mint-components/p-2ff39583.entry.js +33 -0
- package/dist/mint-components/p-3104b4ba.entry.js +1 -0
- package/dist/mint-components/p-324dd9c9.system.entry.js +1 -0
- package/dist/mint-components/p-32b3c92e.system.entry.js +1 -0
- package/dist/mint-components/{p-c813ec64.js → p-3595dbe3.js} +1 -1
- package/dist/mint-components/p-384d4366.system.entry.js +1 -0
- package/dist/mint-components/{p-a417a4c7.js → p-388fdcdc.js} +1 -1
- package/dist/mint-components/{p-acaf505d.entry.js → p-39e59497.entry.js} +1 -1
- package/dist/mint-components/p-3a8fa8df.system.entry.js +1 -0
- package/dist/mint-components/{p-456ccda6.system.js → p-3aab5e80.system.js} +1 -1
- package/dist/mint-components/p-3b7eac48.js +1 -0
- package/dist/mint-components/p-3f9d4025.js +254 -0
- package/dist/mint-components/p-4639a9ed.entry.js +1 -0
- package/dist/mint-components/p-483c2ce0.system.entry.js +1 -0
- package/dist/mint-components/p-487dac4b.system.js +271 -0
- package/dist/mint-components/p-49ca1533.system.entry.js +1 -0
- package/dist/mint-components/p-49d4188a.system.js +1 -0
- package/dist/mint-components/p-4be3689e.system.entry.js +1 -0
- package/dist/mint-components/p-4d690bf1.system.js +1 -0
- package/dist/mint-components/p-4ea630ba.system.js +1 -0
- package/dist/mint-components/p-5a1be3aa.entry.js +83 -0
- package/dist/mint-components/p-5a2c495f.js +1 -0
- package/dist/mint-components/p-5b043988.system.entry.js +1 -0
- package/dist/mint-components/p-5bacacba.entry.js +13 -0
- package/dist/mint-components/p-5e7e4e54.system.entry.js +1 -0
- package/dist/mint-components/p-6333265f.system.js +1 -1
- package/dist/mint-components/p-643a756b.system.js +53 -0
- package/dist/mint-components/p-647ca265.entry.js +1 -0
- package/dist/mint-components/p-647ffff2.entry.js +1 -0
- package/dist/mint-components/p-64c93b03.system.js +1 -0
- package/dist/mint-components/p-6708043c.entry.js +1 -0
- package/dist/mint-components/p-6a7c9ae4.system.entry.js +1 -0
- package/dist/mint-components/p-6a7cd966.system.js +1 -0
- package/dist/mint-components/p-6b9ff091.system.js +1 -0
- package/dist/mint-components/p-6be0e0a7.system.entry.js +1 -0
- package/dist/mint-components/p-6ccdf33a.js +1 -0
- package/dist/mint-components/p-6cdde5e8.system.js +1 -0
- package/dist/mint-components/p-6cfca206.js +1 -0
- package/dist/mint-components/{p-d276468c.js → p-6e00edce.js} +1 -1
- package/dist/mint-components/p-6eb14db9.system.entry.js +1 -0
- package/dist/mint-components/p-6f3ba1ad.system.js +1 -0
- package/dist/mint-components/p-6f66bb97.system.js +1 -0
- package/dist/mint-components/p-7127e360.system.entry.js +1 -0
- package/dist/mint-components/{p-d0559e66.js → p-71759064.js} +1 -1
- package/dist/mint-components/p-72f11f03.js +1 -0
- package/dist/mint-components/p-732ac03d.js +1 -0
- package/dist/mint-components/p-74f50554.js +1 -0
- package/dist/mint-components/p-7558fe46.js +499 -0
- package/dist/mint-components/{p-c43e1d3b.js → p-75b7496e.js} +1 -1
- package/dist/mint-components/p-76d36b05.js +1 -0
- package/dist/mint-components/p-7a8ed2f3.system.entry.js +1 -0
- package/dist/mint-components/{p-3390f1f2.system.js → p-7d992af1.system.js} +2 -2
- package/dist/mint-components/p-7f71b56b.system.entry.js +1 -0
- package/dist/mint-components/p-81b63e83.system.entry.js +1 -0
- package/dist/mint-components/p-83330731.system.js +1 -0
- package/dist/mint-components/p-834cd992.js +2 -0
- package/dist/mint-components/p-843c9997.system.js +1 -0
- package/dist/mint-components/{p-956f9479.system.js → p-8680e52b.system.js} +1 -1
- package/dist/mint-components/p-8740794e.system.js +2 -0
- package/dist/mint-components/p-885630e6.entry.js +1 -0
- package/dist/mint-components/p-8886a874.system.js +1 -0
- package/dist/mint-components/p-88b65807.system.js +1 -0
- package/dist/mint-components/p-89b410d5.system.entry.js +1 -0
- package/dist/mint-components/p-89eef397.entry.js +1 -0
- package/dist/mint-components/p-8aae5dba.system.entry.js +1 -0
- package/dist/mint-components/p-8ba39302.entry.js +1 -0
- package/dist/mint-components/{p-c2254b88.js → p-8d85f34c.js} +1 -1
- package/dist/mint-components/p-8f67c580.js +1 -0
- package/dist/mint-components/p-8fa1f8e3.entry.js +1 -0
- package/dist/mint-components/p-930cc94f.system.js +1 -0
- package/dist/mint-components/p-94f3e0a2.js +1 -0
- package/dist/mint-components/p-96e332db.entry.js +17 -0
- package/dist/mint-components/p-9755e82a.system.entry.js +1 -0
- package/dist/mint-components/p-9a7f186b.entry.js +1 -0
- package/dist/mint-components/p-9c2e286c.entry.js +11 -0
- package/dist/mint-components/{p-e30abc44.js → p-9cabd2d1.js} +1 -1
- package/dist/mint-components/p-9d06abb3.entry.js +13 -0
- package/dist/mint-components/p-9d1659c4.entry.js +308 -0
- package/dist/mint-components/p-9d6ef5ca.entry.js +11 -0
- package/dist/mint-components/p-a0e6ccbc.system.js +1 -0
- package/dist/mint-components/p-a35191ca.system.js +1 -0
- package/dist/mint-components/p-a3d1c665.system.entry.js +1 -0
- package/dist/mint-components/p-a43a9fa9.system.js +1 -1
- package/dist/mint-components/{p-04da3964.system.js → p-a6c96b8a.system.js} +1 -1
- package/dist/mint-components/p-a75748c4.js +13 -0
- package/dist/mint-components/{p-f9fcc772.js → p-a7a74002.js} +1 -1
- package/dist/mint-components/{p-3484f1c1.js → p-a8e2f45b.js} +1 -1
- package/dist/mint-components/p-a976d930.system.entry.js +1 -0
- package/dist/mint-components/p-aadbe44d.js +1 -0
- package/dist/mint-components/p-aaf15612.entry.js +1 -0
- package/dist/mint-components/p-ab1e96ea.system.js +1 -0
- package/dist/mint-components/p-abd9e52b.system.entry.js +1 -0
- package/dist/mint-components/{p-19aebd7d.js → p-ac32d96a.js} +1 -1
- package/dist/mint-components/{p-381af581.js → p-acd3e9e3.js} +1 -1
- package/dist/mint-components/{p-9a69f781.system.js → p-ae5f7df6.system.js} +1 -1
- package/dist/mint-components/p-af9d3491.js +1 -0
- package/dist/mint-components/p-b1f880ee.entry.js +1 -0
- package/dist/mint-components/p-b492fd4b.system.entry.js +1 -0
- package/dist/mint-components/p-b652d3b3.js +1 -0
- package/dist/mint-components/p-b6f5ab75.system.entry.js +1 -0
- package/dist/mint-components/p-b907384d.entry.js +1 -0
- package/dist/mint-components/p-bbb494a8.system.js +1 -0
- package/dist/mint-components/p-bd1a14ba.js +1 -0
- package/dist/mint-components/p-bd66c171.js +1 -0
- package/dist/mint-components/p-be38ae67.js +1 -0
- package/dist/mint-components/p-c30dfd5d.entry.js +92 -0
- package/dist/mint-components/p-c380988f.system.js +1 -0
- package/dist/mint-components/{p-104f6ced.entry.js → p-c3a07f51.entry.js} +1 -1
- package/dist/mint-components/p-c50c206e.system.js +1 -0
- package/dist/mint-components/p-c6d2a452.js +1 -0
- package/dist/mint-components/p-c7dd2eaa.system.entry.js +1 -0
- package/dist/mint-components/p-c8f697e4.system.js +1 -0
- package/dist/mint-components/p-c980e369.entry.js +1 -0
- package/dist/mint-components/p-cb714df1.system.js +1 -0
- package/dist/mint-components/p-cdf099fe.js +108 -0
- package/dist/mint-components/p-ce06d498.js +52 -0
- package/dist/mint-components/p-d08ebaa9.js +1 -0
- package/dist/mint-components/p-d8fac546.entry.js +1 -0
- package/dist/mint-components/p-d91a97d2.js +1 -0
- package/dist/mint-components/p-da6cb2c3.system.entry.js +1 -0
- package/dist/mint-components/p-dd7e8c95.system.js +8 -0
- package/dist/mint-components/p-dd82a675.system.entry.js +1 -0
- package/dist/mint-components/p-df1206f0.entry.js +1 -0
- package/dist/mint-components/p-df45273e.js +1 -0
- package/dist/mint-components/p-df531a5d.entry.js +1 -0
- package/dist/mint-components/p-e1c55f04.system.entry.js +1 -0
- package/dist/mint-components/p-e33839b3.system.js +1 -0
- package/dist/mint-components/p-e389aded.entry.js +1 -0
- package/dist/mint-components/p-e73e0fc4.system.js +1 -0
- package/dist/mint-components/p-e7f7b9c6.entry.js +1 -0
- package/dist/mint-components/{p-b47e3740.system.js → p-e9942aae.system.js} +1 -1
- package/dist/mint-components/p-eac100d1.system.js +1 -0
- package/dist/mint-components/p-eb47b174.entry.js +1 -0
- package/dist/mint-components/p-eba82926.js +1 -0
- package/dist/mint-components/p-ec00bb5f.js +1 -0
- package/dist/mint-components/p-edc8d9bc.system.js +1 -0
- package/dist/mint-components/p-f0e1d538.entry.js +147 -0
- package/dist/mint-components/{p-ff75998a.system.entry.js → p-f53c7a87.system.entry.js} +1 -1
- package/dist/mint-components/p-f686c142.system.js +1 -0
- package/dist/mint-components/{p-5b0de730.js → p-fa2edc58.js} +152 -152
- package/dist/mint-components/p-fab41ea8.system.entry.js +1 -0
- package/dist/mint-components/p-fd14377b.entry.js +1 -0
- package/dist/mint-components/p-ff1336b3.entry.js +148 -0
- package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -1
- package/dist/types/components/sqm-context-router/useContextRouter.d.ts +1 -1
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -1
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -1
- package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +2 -2
- package/dist/types/components/sqm-lead-form/useLeadFormState.d.ts +3 -3
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +2 -2
- package/dist/types/components/sqm-pagination/usePagination.d.ts +1 -1
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +3 -3
- package/dist/types/components/sqm-popup-container/sqm-popup-container-view.d.ts +1 -1
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
- package/dist/types/components/sqm-portal-footer/PoweredByImg.d.ts +1 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +1 -1
- package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -1
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +1 -1
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +3 -3
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +2 -2
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +1 -1
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +2 -2
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +5 -5
- package/dist/types/components/sqm-router/useRouter.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +1 -1
- package/dist/types/components/sqm-stencilbook/Matrix.d.ts +1 -1
- package/dist/types/components/sqm-tab/sqm-tab-view.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
- package/dist/types/components/sqm-widget-verification/getVerificationStep.d.ts +2 -2
- package/dist/types/components/tax-and-cash/data.d.ts +13 -13
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/mockData.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -5
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +6 -6
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +5 -5
- package/dist/types/components/tax-and-cash/subregions.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components.d.ts +3771 -3
- package/dist/types/global/mixins.d.ts +5 -5
- package/dist/types/stencil-public-runtime.d.ts +275 -193
- package/dist/types/utils/RequiredPropsError.d.ts +1 -1
- package/dist/types/utils/demoMerge.d.ts +8 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/stats.json +120116 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +34 -45
- package/dist/cjs/AsYouType-d15caac8.js +0 -4128
- package/dist/cjs/cjs-1066ec21.js +0 -135
- package/dist/cjs/eventKeys-7af4df4d.js +0 -5
- package/dist/cjs/sqm-lead-input-field-view-cd3f8076.js +0 -51
- package/dist/cjs/subregions-36662566.js +0 -1101
- package/dist/esm/AsYouType-2d56519e.js +0 -4108
- package/dist/esm/cjs-bdfb4486.js +0 -133
- package/dist/esm/eventKeys-f76b6a03.js +0 -3
- package/dist/esm/sqm-lead-input-field-view-919dc0a9.js +0 -49
- package/dist/esm/subregions-16dc47a9.js +0 -1086
- package/dist/esm-es5/AsYouType-2d56519e.js +0 -1
- package/dist/esm-es5/GenericTableView-471a9386.js +0 -1
- package/dist/esm-es5/JSS-67b5cff8.js +0 -8
- package/dist/esm-es5/ShadowViewAddon-e1375e0d.js +0 -1
- package/dist/esm-es5/cjs-bdfb4486.js +0 -1
- package/dist/esm-es5/copy-text-view-87259b11.js +0 -1
- package/dist/esm-es5/data-04d2da44.js +0 -1
- package/dist/esm-es5/dom-context-hooks.module-50442785.js +0 -53
- package/dist/esm-es5/email-registration-view-4cdb4129.js +0 -1
- package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
- package/dist/esm-es5/global-f019575d.js +0 -271
- package/dist/esm-es5/index-38ad4957.js +0 -1
- package/dist/esm-es5/index-ffa26b43.js +0 -1
- package/dist/esm-es5/index.module-cc08450c.js +0 -1
- package/dist/esm-es5/jsonpointer-388a7082.js +0 -1
- package/dist/esm-es5/luxon-1be92a8e.js +0 -1
- package/dist/esm-es5/mockRewardData-9b27d6f1.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/re-render-380499f8.js +0 -1
- package/dist/esm-es5/sqm-lead-checkbox-field-view-04aa32a7.js +0 -1
- package/dist/esm-es5/sqm-lead-input-field-view-919dc0a9.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-40837457.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-2b66457a.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-e02fb63a.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-41894261.js +0 -1
- package/dist/esm-es5/sqm-portal-registration-form-view-79265df5.js +0 -1
- package/dist/esm-es5/sqm-portal-reset-password-view-c7dd1c01.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-c102aa7c.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-72f43dff.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-8a95c5eb.js +0 -1
- package/dist/esm-es5/subregions-16dc47a9.js +0 -1
- package/dist/esm-es5/useChildElements-aa9eb7c9.js +0 -1
- package/dist/esm-es5/useIndirectTaxForm-8d2e873d.js +0 -6
- package/dist/esm-es5/useInstantAccessRegistration-7b11eb02.js +0 -1
- package/dist/esm-es5/useLeadFormState-b67018f2.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-91e5786d.js +0 -1
- package/dist/esm-es5/useReferralCodes-a0a271ca.js +0 -1
- package/dist/esm-es5/useReferralTable-670580ff.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-95a75c57.js +0 -1
- package/dist/esm-es5/useVerificationEmail-99d9f705.js +0 -1
- package/dist/esm-es5/utilities-23a276e0.js +0 -1
- package/dist/mint-components/p-0306ce68.js +0 -1
- package/dist/mint-components/p-03361685.system.entry.js +0 -1
- package/dist/mint-components/p-036b876f.system.js +0 -1
- package/dist/mint-components/p-083180bf.js +0 -1
- package/dist/mint-components/p-08f36275.entry.js +0 -92
- package/dist/mint-components/p-08f82f9e.system.entry.js +0 -1
- package/dist/mint-components/p-092305db.entry.js +0 -1
- package/dist/mint-components/p-0ac8d8f4.system.js +0 -1
- package/dist/mint-components/p-0b1e90fe.system.js +0 -1
- package/dist/mint-components/p-0dca7884.entry.js +0 -148
- package/dist/mint-components/p-0ec9eb9b.entry.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-128610fb.system.js +0 -1
- package/dist/mint-components/p-13d1b10d.entry.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-16bd4751.system.entry.js +0 -1
- package/dist/mint-components/p-1a673057.system.js +0 -8
- package/dist/mint-components/p-1cf59d96.system.js +0 -1
- package/dist/mint-components/p-1ee1dd9c.system.entry.js +0 -1
- package/dist/mint-components/p-1f292473.entry.js +0 -1
- package/dist/mint-components/p-220cd813.system.entry.js +0 -1
- package/dist/mint-components/p-2392aabe.entry.js +0 -1
- package/dist/mint-components/p-263ca1be.system.js +0 -1
- package/dist/mint-components/p-274816ae.entry.js +0 -1
- package/dist/mint-components/p-2786819c.js +0 -1
- package/dist/mint-components/p-28ed2ae9.js +0 -1
- package/dist/mint-components/p-28fa5159.entry.js +0 -1
- package/dist/mint-components/p-290314a6.js +0 -52
- package/dist/mint-components/p-2cc01e0a.system.js +0 -1
- package/dist/mint-components/p-319bf866.system.entry.js +0 -1
- package/dist/mint-components/p-31b7d861.entry.js +0 -1
- package/dist/mint-components/p-31c5f477.entry.js +0 -1
- package/dist/mint-components/p-31cfa118.system.entry.js +0 -1
- package/dist/mint-components/p-3268c98c.system.entry.js +0 -1
- package/dist/mint-components/p-34917ee4.system.js +0 -1
- package/dist/mint-components/p-34bea1be.system.js +0 -1
- package/dist/mint-components/p-3db7a3c0.system.entry.js +0 -1
- package/dist/mint-components/p-429fa431.js +0 -1
- package/dist/mint-components/p-44ce74b6.js +0 -1
- package/dist/mint-components/p-45be99ae.system.js +0 -1
- package/dist/mint-components/p-47dc2362.system.entry.js +0 -1
- package/dist/mint-components/p-48b25874.system.js +0 -1
- package/dist/mint-components/p-4bd679a7.system.js +0 -1
- package/dist/mint-components/p-4ca6cc3c.system.entry.js +0 -1
- package/dist/mint-components/p-51d06654.system.js +0 -1
- package/dist/mint-components/p-5218d9dd.system.entry.js +0 -1
- package/dist/mint-components/p-5264ea68.js +0 -1
- package/dist/mint-components/p-5300edb5.js +0 -1
- package/dist/mint-components/p-556338c3.system.js +0 -1
- package/dist/mint-components/p-573ea3fd.system.entry.js +0 -1
- package/dist/mint-components/p-57c693ef.system.entry.js +0 -1
- package/dist/mint-components/p-59d5f239.system.entry.js +0 -1
- package/dist/mint-components/p-5c3cdefe.entry.js +0 -1
- package/dist/mint-components/p-5cda271c.system.entry.js +0 -1
- package/dist/mint-components/p-5d99dbc9.js +0 -1
- package/dist/mint-components/p-641f968d.system.js +0 -1
- package/dist/mint-components/p-686dd5eb.system.js +0 -1
- package/dist/mint-components/p-6b5528b1.entry.js +0 -33
- package/dist/mint-components/p-6c3a1d86.js +0 -1
- package/dist/mint-components/p-6c8758ac.entry.js +0 -1
- package/dist/mint-components/p-6dffb326.entry.js +0 -13
- package/dist/mint-components/p-6e9738a4.js +0 -1
- package/dist/mint-components/p-6f8dde97.system.js +0 -1
- package/dist/mint-components/p-7010498f.js +0 -1
- package/dist/mint-components/p-7062154c.system.js +0 -1
- package/dist/mint-components/p-717fa601.js +0 -1
- package/dist/mint-components/p-732907b1.system.entry.js +0 -1
- package/dist/mint-components/p-7562cd98.system.js +0 -1
- package/dist/mint-components/p-7ae8fb53.system.js +0 -1
- package/dist/mint-components/p-808f7f22.entry.js +0 -1
- package/dist/mint-components/p-80cee817.system.js +0 -1
- package/dist/mint-components/p-8452837a.system.js +0 -1
- package/dist/mint-components/p-85996c52.system.entry.js +0 -1
- package/dist/mint-components/p-8629d0be.system.entry.js +0 -1
- package/dist/mint-components/p-86c430f8.system.entry.js +0 -1
- package/dist/mint-components/p-8707c7fb.entry.js +0 -1
- package/dist/mint-components/p-8899ff38.system.entry.js +0 -1
- package/dist/mint-components/p-88a5350b.entry.js +0 -11
- package/dist/mint-components/p-8d363802.js +0 -1
- package/dist/mint-components/p-93e4954e.entry.js +0 -308
- package/dist/mint-components/p-952eefec.system.js +0 -1
- package/dist/mint-components/p-95f82a6f.entry.js +0 -9
- package/dist/mint-components/p-9715be5b.entry.js +0 -1
- package/dist/mint-components/p-97b8073f.system.js +0 -1
- package/dist/mint-components/p-99f7e6f1.js +0 -1
- package/dist/mint-components/p-9f517f81.entry.js +0 -1
- package/dist/mint-components/p-9f7d1197.system.entry.js +0 -1
- package/dist/mint-components/p-a04be06d.system.entry.js +0 -1
- package/dist/mint-components/p-a08157c4.js +0 -1
- package/dist/mint-components/p-a495e3a5.entry.js +0 -1
- package/dist/mint-components/p-a52a961e.entry.js +0 -1
- package/dist/mint-components/p-a6920cc9.system.entry.js +0 -1
- package/dist/mint-components/p-a7fc1e02.js +0 -42
- package/dist/mint-components/p-ab8a551f.system.entry.js +0 -1
- package/dist/mint-components/p-ac65d2c1.entry.js +0 -1
- package/dist/mint-components/p-ad9ea625.system.entry.js +0 -1
- package/dist/mint-components/p-b0aa9348.entry.js +0 -1
- package/dist/mint-components/p-b2295bc5.system.js +0 -1
- package/dist/mint-components/p-b56f3e55.js +0 -1
- package/dist/mint-components/p-b61be711.entry.js +0 -1
- package/dist/mint-components/p-b6504987.system.js +0 -53
- package/dist/mint-components/p-b69dbed8.system.js +0 -1
- package/dist/mint-components/p-b6b5fa4f.system.entry.js +0 -1
- package/dist/mint-components/p-bc625793.system.js +0 -1
- package/dist/mint-components/p-bee4af5d.js +0 -1
- package/dist/mint-components/p-c03131dd.js +0 -1
- package/dist/mint-components/p-c09ae087.system.js +0 -1
- package/dist/mint-components/p-c1086930.js +0 -1
- package/dist/mint-components/p-c50e77ad.entry.js +0 -1
- package/dist/mint-components/p-c5698ef9.system.js +0 -1
- package/dist/mint-components/p-ca872769.system.entry.js +0 -1
- package/dist/mint-components/p-ca90ea64.js +0 -499
- package/dist/mint-components/p-cdf5354f.entry.js +0 -1
- package/dist/mint-components/p-cef45012.js +0 -1
- package/dist/mint-components/p-d028db52.system.entry.js +0 -1
- package/dist/mint-components/p-d0318b41.entry.js +0 -13
- package/dist/mint-components/p-d0ce74bd.system.js +0 -1
- package/dist/mint-components/p-d267f4bb.system.js +0 -1
- package/dist/mint-components/p-d26df2da.entry.js +0 -1
- package/dist/mint-components/p-d3b1ab20.system.entry.js +0 -1
- package/dist/mint-components/p-d463fa82.system.js +0 -1
- package/dist/mint-components/p-d46a048d.system.entry.js +0 -1
- package/dist/mint-components/p-d533ff7b.system.js +0 -271
- package/dist/mint-components/p-d6a7f402.entry.js +0 -1
- package/dist/mint-components/p-d9dbbf22.system.entry.js +0 -1
- package/dist/mint-components/p-db30fbd1.js +0 -13
- package/dist/mint-components/p-de8d7e90.entry.js +0 -17
- package/dist/mint-components/p-df28013f.system.entry.js +0 -1
- package/dist/mint-components/p-dffad4a8.entry.js +0 -1
- package/dist/mint-components/p-e006b6ad.entry.js +0 -1
- package/dist/mint-components/p-e0578030.system.js +0 -1
- package/dist/mint-components/p-e31c7242.system.entry.js +0 -1
- package/dist/mint-components/p-e4eac70d.js +0 -108
- package/dist/mint-components/p-e506bf7f.entry.js +0 -1
- package/dist/mint-components/p-e66187b6.system.entry.js +0 -1
- package/dist/mint-components/p-e7cf6632.js +0 -1
- package/dist/mint-components/p-e7d6e1e0.entry.js +0 -11
- package/dist/mint-components/p-e7e129ac.js +0 -1
- package/dist/mint-components/p-eb992f94.js +0 -1
- package/dist/mint-components/p-ec3e44c8.system.js +0 -1
- package/dist/mint-components/p-ec58040a.system.js +0 -1
- package/dist/mint-components/p-eedda43c.system.js +0 -1
- package/dist/mint-components/p-f0b63c48.entry.js +0 -83
- package/dist/mint-components/p-f1584abb.system.entry.js +0 -1
- package/dist/mint-components/p-f381533a.js +0 -1
- package/dist/mint-components/p-f45e076d.system.js +0 -1
- package/dist/mint-components/p-f507b364.system.entry.js +0 -1
- package/dist/mint-components/p-f69a4eb1.system.entry.js +0 -1
- package/dist/mint-components/p-f89c6a57.system.js +0 -1
- package/dist/mint-components/p-f982278b.entry.js +0 -1
- package/dist/mint-components/p-fbdd8c2a.system.entry.js +0 -1
- package/dist/mint-components/p-fdc4f293.system.entry.js +0 -1
- package/dist/mint-components/p-ff1a5481.system.js +0 -1
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import{r as t,h as e,c as i}from"./p-834cd992.js";import{i as r,x as o,d as a,b as n,a as s,c as l,f as d,e as c,q as u,v as h,y as m,n as p,L as v,t as f,h as g,D as b,M as y,k as x,N as w,O as k,K as C}from"./p-3f9d4025.js";import{n as E,j as _,f as F,k as I,m as S,u as T,b as R,i as q}from"./p-056845fb.js";import{u as A,W as N,B as M,C as D,d as L,e as P,D as B,E as z,H as V,I as O,U as j,Q as $,X as U,L as Y,N as H,f as W,P as G,g as K,h as J,c as Z,R as X,i as Q,Y as tt,G as et,a as it,K as rt,J as ot,S as at,T as nt}from"./p-7558fe46.js";import{b as st,i as lt}from"./p-fa2edc58.js";import{g as dt,a as ct}from"./p-9ec99ced.js";import{d as ut}from"./p-df45273e.js";import{R as ht,L as mt,u as pt}from"./p-bd66c171.js";import{R as vt,a as ft}from"./p-6ccdf33a.js";import{c as gt}from"./p-af9d3491.js";import{i as bt}from"./p-74f50554.js";import{o as yt}from"./p-f75de169.js";import{j as xt}from"./p-c6d2a452.js";import{A as wt}from"./p-aadbe44d.js";import{u as kt,C as Ct}from"./p-cdf099fe.js";import{p as Et}from"./p-76d36b05.js";import{P as _t}from"./p-732ac03d.js";import{u as Ft}from"./p-a75748c4.js";import{u as It}from"./p-bd1a14ba.js";import{u as St}from"./p-8f67c580.js";import{E as Tt}from"./p-3b7eac48.js";import{p as Rt}from"./p-5a2c495f.js";import{C as qt}from"./p-6e00edce.js";import{E as At}from"./p-8d85f34c.js";import{g as Nt,i as Mt,L as Dt}from"./p-b652d3b3.js";import{T as Lt,a as Pt,U as Bt,C as zt,b as Vt,S as Ot,c as jt,G as $t,d as Ut,e as Yt,f as Ht,g as Wt,h as Gt,i as Kt}from"./p-75b7496e.js";import{a as Jt}from"./p-be38ae67.js";import{l as Zt}from"./p-eba82926.js";import{S as Xt,a as Qt,V as te,b as ee,P as ie}from"./p-4f9dc974.js";import"./p-49b20dae.js";import"./p-9cabd2d1.js";import"./p-3595dbe3.js";import"./p-ce06d498.js";const re={main:{brandFont:"Netflix Sans, Arial, sans-serif",brandColor:"#E50914"},border:{borderColor:"#333333",borderRadius:4,borderThickness:1},color:{loadingSkeleton:{background:"#272727",animationBackground:"#E50914"},textColorShades:{mainText:"white",subduedText:"#B3B3B3"},backgroundColor:"#101010",accentColorShades:{text:"#E50914",icon:"#E50914",border:"#E50914",background:"#300609"},success:{text:"#66BB6A",border:"#4CAF50",background:"#1B5E20",iconAndBadge:"#4CAF50"},warning:{text:"#FFCA28",border:"#FFA726",background:"#F57C00",iconAndBadge:"#FFA726"},critical:{text:"#EF9A9A",border:"#E50914",background:"#B71C1C",iconAndBadge:"#E50914"},informative:{text:"#64B5F6",border:"#42A5F5",background:"#1976D2",iconAndBadge:"#42A5F5"},neutral:{text:"white",iconAndBadge:"#B3B3B3",border:"#333333",background:"#222222"}},primaryButton:{buttonColor:{background:"#E50914",border:"transparent",label:"#FFFFFF"},buttonHoverColor:{background:"#CC0000",border:"transparent",label:"#FFFFFF"},borderRadius:4},secondaryButton:{buttonColor:{background:"transparent",border:"#B3B3B3",label:"#FFFFFF"},buttonHoverColor:{background:"#333333",border:"#B3B3B3",label:"#FFFFFF"},borderRadius:4},formFields:{formFieldColor:{background:"#222222",border:"#B3B3B3",inputText:"#B3B3B3"},hoverStateColor:"#777777",selectedStateColor:"#E50914",borderRadius:4}},oe=Object.freeze({__proto__:null,Default:null,Netflix:re,Amazon:{main:{brandFont:"Amazon Ember, Arial, sans-serif",brandColor:"#FF9900"},border:{borderColor:"#D5D9D9",borderRadius:4,borderThickness:1},color:{backgroundColor:"#ffffff",loadingSkeleton:{background:"hsl(240 4.8% 95.9%)",animationBackground:"#FF9900"},textColorShades:{mainText:"#2f2f2f",subduedText:"#565959"},accentColorShades:{text:"#FF9900",icon:"#FF9900",border:"#FFBF66",background:"#FFF4DD"},success:{text:"#198754",border:"#BCE8B2",background:"#D4EDDA",iconAndBadge:"#28A745"},warning:{text:"#856404",border:"#FFEBA2",background:"#FFF3CD",iconAndBadge:"#FFC107"},critical:{text:"#721C24",border:"#F5C6CB",background:"#F8D7DA",iconAndBadge:"#DC3545"},informative:{text:"#004085",border:"#B8DAFF",background:"#CCE5FF",iconAndBadge:"#007BFF"},neutral:{text:"#232F3E",iconAndBadge:"#565959",border:"#D5D9D9",background:"#F0F2F2"}},primaryButton:{buttonColor:{background:"#FF9900",border:"transparent",label:"#FFFFFF"},buttonHoverColor:{background:"#EB9100",border:"transparent",label:"#FFFFFF"},borderRadius:4},secondaryButton:{buttonColor:{background:"#FFFFFF",border:"#888C8C",label:"#232F3E"},buttonHoverColor:{background:"#F0F2F2",border:"#888C8C",label:"#232F3E"},borderRadius:4},formFields:{formFieldColor:{background:"#FFFFFF",border:"#D5D9D9",inputText:"#2f2f2f"},borderRadius:4,hoverStateColor:"#A2A2A2",selectedStateColor:"#007185"}},Spotify:{main:{brandColor:"#1ed760"},border:{borderColor:"#f4f4f4",borderRadius:18,borderThickness:1},color:{loadingSkeleton:{background:"#282928",animationBackground:"#1ed760"},textColorShades:{mainText:"white",subduedText:"white"},backgroundColor:"#121212",accentColorShades:{icon:"#1ed760"}},primaryButton:{buttonColor:{background:"#1ed760",border:"transparent",label:"#121212"},buttonHoverColor:{background:"#1DB954",border:"transparent",label:"#121212"},borderRadius:30},secondaryButton:{buttonColor:{background:"#191414",border:"#FFFFFF",label:"#FFFFFF"},buttonHoverColor:{background:"#282828",border:"#FFFFFF",label:"#121212"},borderRadius:30},formFields:{formFieldColor:{background:"#121212",border:"#7c7c7c",inputText:"#fff"},borderRadius:30,hoverStateColor:"white",selectedStateColor:"white"}},Google:{main:{brandColor:"#4285F4",brandFont:"Roboto, Arial, sans-serif"},border:{borderColor:"#DADCE0",borderRadius:4,borderThickness:1},color:{textColorShades:{mainText:"#212124",subduedText:"#5F6368"},backgroundColor:"#FFFFFF",accentColorShades:{text:"#1A73E8",border:"#8AB4F8",background:"#E8F0FE",icon:"#4285F4"},success:{text:"#044e1d",border:"#A8DCD7",background:"#E6F4EA",iconAndBadge:"#34A853"},warning:{text:"#996a3d",border:"#FCD667",background:"#FFF7EE",iconAndBadge:"#FBBC04"},critical:{text:"#760b09",border:"#F28B82",background:"#FCE8E6",iconAndBadge:"#EA4335"},informative:{text:"#01368c",border:"#BFDBFE",background:"#E8F0FE",iconAndBadge:"#4285F4"},neutral:{text:"#202124",border:"#DADCE0",background:"#F8F9FA",iconAndBadge:"#5F6368"}},primaryButton:{buttonColor:{background:"#4285F4",border:"transparent",label:"#FFFFFF"},buttonHoverColor:{background:"#3C7CD1",border:"transparent",label:"#FFFFFF"},borderRadius:4},secondaryButton:{buttonColor:{background:"#FFFFFF",border:"#DADCE0",label:"#4285F4"},buttonHoverColor:{background:"#E8F0FE",border:"#DADCE0",label:"#4285F4"},borderRadius:4},formFields:{formFieldColor:{background:"#FFFFFF",border:"#DADCE0",inputText:"#202124"},borderRadius:4,hoverStateColor:"#9AA0A6",selectedStateColor:"#4285F4"}}}),ae=class{constructor(e){t(this,e),this.statType=void 0,this.flexReverse=!1,this.alignment="center",this.programId=void 0,this.statTextColor=void 0,this.statFontSize=void 0,this.statFontWeight=void 0,this.descriptionTextColor=void 0,this.descriptionFontSize=void 0,this.demoData=void 0,this.ignored=!0,E(this)}disconnectedCallback(){}render(){var t;const{props:i,label:a}=r()?A(this):N(this),n=!!(null===(t=o().innerHTML)||void 0===t?void 0:t.trim()),s=e("slot",{name:"label"},n?e("slot",null):a);return e(M,{...i,labelSlot:s})}};function ne(t,e,i){return Math.min(Math.max(t,i),e)}class se extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function le(t){if("string"!=typeof t)throw new se(t);if("transparent"===t.trim().toLowerCase())return[0,0,0,0];let e=t.trim();e=fe.test(t)?function(t){const e=t.toLowerCase().trim(),i=ce[function(t){let e=5381,i=t.length;for(;i;)e=33*e^t.charCodeAt(--i);return(e>>>0)%2341}(e)];if(!i)throw new se(t);return`#${i}`}(t):t;const i=he.exec(e);if(i){const t=Array.from(i).slice(1);return[...t.slice(0,3).map((t=>parseInt(ue(t,2),16))),parseInt(ue(t[3]||"f",2),16)/255]}const r=me.exec(e);if(r){const t=Array.from(r).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,16))),parseInt(t[3]||"ff",16)/255]}const o=pe.exec(e);if(o){const t=Array.from(o).slice(1);return[...t.slice(0,3).map((t=>parseInt(t,10))),parseFloat(t[3]||"1")]}const a=ve.exec(e);if(a){const[e,i,r,o]=Array.from(a).slice(1).map(parseFloat);if(ne(0,100,i)!==i)throw new se(t);if(ne(0,100,r)!==r)throw new se(t);return[...be(e,i,r),o||1]}throw new se(t)}const de=t=>parseInt(t.replace(/_/g,""),36),ce="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((t,e)=>{const i=de(e.substring(0,3)),r=de(e.substring(3)).toString(16);let o="";for(let t=0;t<6-r.length;t++)o+="0";return t[i]=`${o}${r}`,t}),{}),ue=(t,e)=>Array.from(Array(e)).map((()=>t)).join(""),he=new RegExp(`^#${ue("([a-f0-9])",3)}([a-f0-9])?$`,"i"),me=new RegExp(`^#${ue("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),pe=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ue(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ve=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,fe=/^[a-z]+$/i,ge=t=>Math.round(255*t),be=(t,e,i)=>{let r=i/100;if(0===e)return[r,r,r].map(ge);const o=(t%360+360)%360/60,a=(1-Math.abs(2*r-1))*(e/100),n=a*(1-Math.abs(o%2-1));let s=0,l=0,d=0;o>=0&&o<1?(s=a,l=n):o>=1&&o<2?(s=n,l=a):o>=2&&o<3?(l=a,d=n):o>=3&&o<4?(l=n,d=a):o>=4&&o<5?(s=n,d=a):o>=5&&o<6&&(s=a,d=n);const c=r-a/2;return[s+c,l+c,d+c].map(ge)},ye=[50,100,200,300,400,500,600,700,800,900,950],xe=[.95,.86,.76,.66,.56,.46,.39,.32,.25,.18,.15],we=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;function ke(t,e="primary"){const[i,r,o,a]=function(t){const e=t.trim(),i=we.exec(e);if(i){const[e,r,o,a]=Array.from(i).slice(1).map(parseFloat);if(ne(0,100,r)!==r)throw new se(t);if(ne(0,100,o)!==o)throw new se(t);return[e,r/100,o,a||1]}return function(t){const[e,i,r,o]=le(t).map(((t,e)=>3===e?t:t/255)),a=Math.max(e,i,r),n=Math.min(e,i,r),s=(a+n)/2;if(a===n)return[0,0,s,o];const l=a-n;return[60*(e===a?(i-r)/l+(i<r?6:0):i===a?(r-e)/l+2:(e-i)/l+4),s>.5?l/(2-a-n):l/(a+n),s,o]}(t)}(t);return xe.map((t=>function(t,e,i,r){return`hsla(${(t%360).toFixed()}, ${ne(0,100,100*e).toFixed()}%, ${ne(0,100,100*i).toFixed()}%, ${parseFloat(ne(0,1,r).toFixed(3))})`}(i,r,t,a))).map(((t,i)=>`--sl-color-${e}-${ye[i]}: ${t};\n`))}const Ce=class{constructor(e){t(this,e),this.brandColor=void 0,this.brandFont=void 0,E(this)}disconnectedCallback(){}render(){var t,r,o,a,n,s;const l=null===(r=null===(t=window.SquatchBrandingConfig)||void 0===t?void 0:t.main)||void 0===r?void 0:r.brandFont,d=(null===(a=null===(o=window.SquatchBrandingConfig)||void 0===o?void 0:o.main)||void 0===a?void 0:a.brandColor)?"":null!==(n=function(t){if(t)try{return function(t,e="primary"){return ke(t,e).join("\n")}(t)}catch{}}(this.brandColor))&&void 0!==n?n:"",c=(null!==(s=this.brandFont)&&void 0!==s?s:"Nunito Sans").trim()||void 0;_((()=>{if(!c||l)return;const t=document.createElement("link");return t.setAttribute("href",st(c)),t.setAttribute("rel","stylesheet"),document.head.appendChild(t),()=>document.head.removeChild(t)}),[c]);const u=null!=c?c:"";return e(i,null,e("style",null,`\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n\n ${l?"":`\n ::slotted(*) {\n --sl-font-sans: "${u}", arial;\n --sl-input-font-family: "${u}", arial;\n --sl-tooltip-font-family: "${u}", arial;\n font-family: "${u}", arial;\n\t\t\t\n ${d}\n `}\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }`),e("slot",null))}},Ee="localStorageBrandKey",_e=class{constructor(e){t(this,e),this.brands=[{name:"Netflix",logoUrl:"https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803365/netflix_ftjbrr.png"},{name:"Amazon",logoUrl:"https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803366/amazon_mc22fr.png"},{name:"Spotify",logoUrl:"https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803510/spotify_j5qi1r.png"},{name:"Google",logoUrl:"https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803168/pngimg.com_-_google_PNG19644_jvypwl.png"}],this.selectedBrand="Netflix";const i=localStorage.getItem(Ee);this.selectedBrand=i,window.SquatchBrandingConfig=oe[i]||re;const r=new CustomEvent("brandingConfigUpdated",{detail:window.SquatchBrandingConfig});window.dispatchEvent(r)}componentDidLoad(){const t=localStorage.getItem(Ee);this.selectedBrand=t}disconnectedCallback(){}updateBrand(t){this.selectedBrand=t;const e=oe[t]||re,i=JSON.stringify(e);localStorage.setItem(Ee,t),localStorage.setItem("localStorageBrandConfigKey",i),window.SquatchBrandingConfig=e,window.location.reload();const r=new CustomEvent("brandingConfigUpdated",{detail:window.SquatchBrandingConfig});window.dispatchEvent(r)}render(){return e(i,null,e("style",null,"\n @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');\n\n :host {\n display: block; /* Ensure the custom element itself is a block-level element */\n font-family: 'Inter', sans-serif;\n }\n\n .card-container {\n background-color: #fff !important; \n border-radius: 18px; \n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); \n width: 100%;\n max-width: 350px;\n overflow: hidden;\n padding: 10px;\n position: fixed;\n bottom: 0;\n right: 0;\n z-index: 999999;\n border: 1px solid #ccc;\n margin: 10px;\n }\n\n .card-heading {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-bottom: 10px;\n color: black;\n margin: 0;\n font-size: 16px;\n }\n\n .segmented-control-container {\n display: flex;\n background-color: #e5e7eb !important; \n border-radius: 9999px; \n padding: 0.25rem; \n margin-left: auto;\n margin-right: auto;\n max-width: 28rem;\n box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05); \n }\n\n .brand-segment {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n flex: 1;\n padding: 0px 8px; \n cursor: pointer;\n transition: all 300ms ease-in-out;\n border-radius: 9999px;\n color: #4b5563; \n cursor: pointer;\n }\n\n .brand-segment:hover {\n background-color: #f3f4f6 !important;\n }\n\n .brand-segment.active {\n background-color: #fff !important;\n color: #1f2937; \n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);\n }\n\n .brand-logo {\n height: 40px;\n width: 40px; \n object-fit: contain;\n }\n\n .brand-name {\n font-size: 0.75rem; \n line-height: 1rem; \n font-weight: 600; \n color: #4b5563;\n }\n\n .brand-segment.active .brand-name {\n color: #1f2937; \n }\n\n .content-area {\n padding: 2rem; \n }\n\n .selected-text {\n color: #4b5563; \n text-align: center;\n font-size: 1.125rem; \n line-height: 1.75rem; \n }\n\n .selected-brand-name {\n font-weight: 700; /* font-bold */\n color: #6d28d9; /* text-purple-700 */\n }\n\n .dynamic-content-box {\n margin-top: 1.5rem; /* mt-6 */\n padding: 1rem; /* p-4 */\n background-color: #f9fafb; /* bg-gray-50 */\n border-radius: 0.5rem; /* rounded-lg */\n color: #374151; /* text-gray-700 */\n font-size: 0.875rem; /* text-sm */\n line-height: 1.25rem; /* text-sm */\n font-style: italic;\n }\n\n /* Responsive adjustments for smaller screens if needed */\n @media (max-width: 640px) {\n .segmented-control-container {\n max-width: 100%; /* Allows it to take full width on small screens */\n padding: 0.15rem; /* Slightly less padding */\n }\n .brand-segment {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n }\n .brand-logo {\n height: 1.8rem; /* Slightly smaller on mobile */\n }\n }\n "),e("div",{class:"card-container"},e("h2",{class:"card-heading"},"Select Branding"),e("div",{class:"segmented-control-container"},this.brands.map((t=>e("div",{key:t.name,class:"brand-segment "+(this.selectedBrand===t.name?"active":""),onClick:()=>this.updateBrand(t.name)},e("img",{src:t.logoUrl,alt:`${t.name} Logo`,class:"brand-logo",onError:t=>{t.target.src="https://placehold.co/80x40/cccccc/000000?text=Logo"}})))))))}},Fe=class{constructor(e){t(this,e),this.ignored=!0,this.width=347,this.gap=24,E(this)}disconnectedCallback(){}render(){return e(D,{...dt(this)},e("slot",null))}};function Ie(t){var e;const i=F(vt),[r,o]=I(!1);return _((()=>{var e,r;(null===(e=null==i?void 0:i.initialData)||void 0===e?void 0:e[t.checkboxName])&&o(!!(null===(r=null==i?void 0:i.initialData)||void 0===r?void 0:r[t.checkboxName]))}),[null===(e=null==i?void 0:i.initialData)||void 0===e?void 0:e[t.checkboxName]]),{states:{registrationFormState:i,checked:r},callbacks:{setChecked:o}}}const Se=class{constructor(e){t(this,e),this.ignored=!0,this.checkboxName=void 0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=ct([{attribute:"checkbox-name",value:this.checkboxName}]);if(!r()&&t)return e(ht,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const i={...dt(this)},{states:o,callbacks:a}=r()?ut({states:{registrationFormState:{},checked:!1},callbacks:{setChecked:()=>{}}},this.demoData||{}):Ie(this);return e(L,{states:o,content:i,callbacks:a})}},Te=a.gql`
|
|
2
|
+
query fuelTankRewardsQuery($programId: ID!) {
|
|
3
|
+
user: viewer {
|
|
4
|
+
... on User {
|
|
5
|
+
instantAccessRewards(
|
|
6
|
+
filter: { type_eq: FUELTANK, programId_eq: $programId }
|
|
7
|
+
) {
|
|
8
|
+
data {
|
|
9
|
+
fuelTankCode
|
|
10
|
+
fuelTankType
|
|
11
|
+
statuses
|
|
12
|
+
dateGiven
|
|
13
|
+
dateExpires
|
|
14
|
+
dateRedeemed
|
|
15
|
+
dateCancelled
|
|
16
|
+
dateScheduledFor
|
|
17
|
+
datePendingForUnhandledError
|
|
18
|
+
pendingReasons
|
|
19
|
+
}
|
|
20
|
+
count
|
|
21
|
+
totalCount
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`,Re=a.gql`
|
|
27
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
28
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
29
|
+
}
|
|
30
|
+
`;const qe=class{constructor(e){t(this,e),this.programId=void 0,this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,this.textAlign="left",this.copyButtonLabel="Copy Coupon",this.buttonStyle="icon",this.couponCodeLabel="Your coupon code:",this.cancelledErrorText="This code has been cancelled. Please reach out to the Support team for help resolving this issue.",this.redeemedErrorText="Looks like you’ve already redeemed this code.",this.expiredErrorText="Looks like this code has expired. Please reach out to the Support team for help resolving this issue.",this.fullfillmentErrorText="We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue.",this.pendingErrorText="Your code will be available on {unpendDate}. Mark your calendar and come back then to redeem your reward!",this.codeSyncErrorRetryText="We're experiencing an issue generating your coupon code. If it doesn't appear shortly, please contact {supportEmail}. Retrying in {timeRemaining} seconds.",this.codeSyncErrorText="We're still experiencing an issue generating your coupon code. Please contact {supportEmail} for assistance.",this.genericErrorText="We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue.",this.couponCodePlaceholder="...",this.borderColor=void 0,this.textColor=void 0,this.borderRadius=void 0,this.buttonType="primary",this.backgroundColor=void 0,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=dt(this),i=r()?function(t){const[e,i]=I(!1),r="THANKSJANE125uv125";return ut({copyString:r,tooltiptext:t.tooltiptext,textAlign:t.textAlign,buttonStyle:t.buttonStyle,copyButtonLabel:t.copyButtonLabel,error:!1,couponCodePlaceholder:t.couponCodePlaceholder,couponCodeLabel:t.couponCodeLabel,borderColor:t.borderColor,backgroundColor:t.backgroundColor,textColor:t.textColor,borderRadius:t.borderRadius,buttonType:t.buttonType,codeSyncErrorText:t.codeSyncErrorText,codeSyncErrorRetryText:t.codeSyncErrorRetryText,open:e,onClick:()=>{navigator.clipboard.writeText(r),i(!0),setTimeout((()=>i(!1)),t.tooltiplifespan)}},t.demoData||{})}(t):function(t){var e,i,r;const o=n(),a=s(),u=l(),[h]=d(Re),[m,p]=I(!1),[v,f]=I(60),g=S(void 0),b=S(void 0),{data:y,loading:x,refetch:w}=c(Te,{programId:a},!(null==o?void 0:o.jwt));async function k(){var t,e,i,r,o;const a=await w();if(p(!0),!(null===(o=null===(r=null===(i=null===(e=null===(t=null==a?void 0:a.user)||void 0===t?void 0:t.instantAccessRewards)||void 0===e?void 0:e.data)||void 0===i?void 0:i[0])||void 0===r?void 0:r.pendingReasons)||void 0===o?void 0:o.includes("ERROR_SYNCING_FUEL_TANK_CODE")))return clearInterval(g.current)}const C=null===(r=null===(i=null===(e=null==y?void 0:y.user)||void 0===e?void 0:e.instantAccessRewards)||void 0===i?void 0:i.data)||void 0===r?void 0:r[0],E=(t=61e3)=>setInterval(k,t);_((()=>{var t,e;return!g.current&&(null===(t=null==C?void 0:C.statuses)||void 0===t?void 0:t.includes("PENDING"))&&(null===(e=null==C?void 0:C.pendingReasons)||void 0===e?void 0:e.includes("ERROR_SYNCING_FUEL_TANK_CODE"))&&(g.current=E()),()=>{clearInterval(g.current)}}),[]),_((()=>{var t,e;return v>0&&(null===(t=null==C?void 0:C.statuses)||void 0===t?void 0:t.includes("PENDING"))&&(null===(e=null==C?void 0:C.pendingReasons)||void 0===e?void 0:e.includes("ERROR_SYNCING_FUEL_TANK_CODE"))&&(clearInterval(b.current),b.current=(t=>setInterval((()=>f(t)),1e3))(v-1)),()=>{clearInterval(b.current)}}),[v,C]),_((()=>{var t,e;(null===(t=null==C?void 0:C.statuses)||void 0===t?void 0:t.includes("PENDING"))&&(null===(e=null==C?void 0:C.pendingReasons)||void 0===e?void 0:e.includes("ERROR_SYNCING_FUEL_TANK_CODE"))&&E()}),[C]);const F=(t=>{if(!t||!t.statuses)return"ERROR";const e=t.statuses[t.statuses.length-1];return"PENDING"===e&&t.pendingReasons.includes("ERROR_SYNCING_FUEL_TANK_CODE")?"ERROR_SYNCING_FUEL_TANK_CODE":"PENDING"===e&&null===t.dateScheduledFor?"EMPTY_TANK":e})(C),T="PENDING"===F&&C.dateScheduledFor?new Date(C.dateScheduledFor).toLocaleDateString("default",{day:"numeric",month:"long",year:"numeric"}):void 0,R=(null==C?void 0:C.fuelTankCode)||"...",[q,A]=I(!1),N=(e=>{switch(e){case"CANCELLED":return t.cancelledErrorText;case"EXPIRED":return t.expiredErrorText;case"EMPTY_TANK":return t.fullfillmentErrorText;case"ERROR_SYNCING_FUEL_TANK_CODE":return m?lt.formatMessage({id:"codeSyncErrorText",defaultMessage:t.codeSyncErrorText},{supportEmail:"advocate-support@impact.com"}):lt.formatMessage({id:"codeSyncErrorText",defaultMessage:t.codeSyncErrorRetryText},{supportEmail:"advocate-support@impact.com",timeRemaining:v});case"PENDING":return t.pendingErrorText.replace("{unpendDate}",T);case"REDEEMED":return t.redeemedErrorText;case"AVAILABLE":return"";default:return t.genericErrorText}})(F),M=(t=>{switch(t){case"EXPIRED":case"EMPTY_TANK":case"CANCELLED":case"ERROR":case"ERROR_SYNCING_FUEL_TANK_CODE":return"warning";case"PENDING":return"info";case"REDEEMED":return"success";default:return}})(F),D="AVAILABLE"!==F;return{...t,onClick:function(){navigator.clipboard.writeText(R),A(!0),setTimeout((()=>A(!1)),t.tooltiplifespan),h({eventMeta:{programId:a,id:null==o?void 0:o.id,accountId:null==o?void 0:o.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:u,shareMedium:"DIRECT"}}})},open:q,copyString:R,error:D,errorText:N,dateAvailable:T,loading:x,errorType:M,buttonType:t.buttonType||"primary"}}(t);return e(P,{...i})}};function Ae(t,i){const r=()=>"row"===t.direction?{"border-right":t.borderless?"none":`var(--sqm-border-thickness) solid ${t.borderColor||"var(--sqm-border-color)"}`}:{"border-bottom":t.borderless?"none":`var(--sqm-border-thickness) solid ${t.borderColor||"var(--sqm-border-color)"}`},o={LayoutContainer:{background:t.backgroundColor,display:"contents","& > :not(:last-child)":{...r()},"& > ::slotted(*:not(:last-child))":{...r()}}},a=`\n display: flex;\n flex: 1;\n box-sizing: border-box;\n flex-direction: ${t.direction};\n background-color: var(--sqm-portal-background);\n color: var(--sqm-text);\n overflow-x: clip;\n ${"column"===t.direction?"width: 100%; max-width: 100%":""}\n ${null!==t.contentAreaWidth?`max-width: ${t.contentAreaWidth} !important;`:""}\n `,n=`\n :host{\n ${a}\n }\n @media screen and (max-width: 570px) {\n :host {\n display: flex;\n flex-direction: column;\n }\n }\n sqm-divided-layout {\n ${a}\n }\n `,s=gt(o),l=s.toString();return e("div",{class:s.classes.LayoutContainer,part:"sqm-base"},e("style",{type:"text/css"},n,l),i)}const Ne=class{constructor(e){t(this,e),this.direction=void 0,this.contentAreaWidth=void 0,this.dividerStyle="var(--sqm-border-thickness) solid var(--sqm-border-color)",this.backgroundColor="#FFFFFF",this.borderColor=void 0,E(this)}disconnectedCallback(){}render(){return e(Ae,{...dt(this)},e("slot",null))}},Me=class{constructor(e){t(this,e),this.ignored=!0,this.dropdownName=void 0,this.dropdownLabel="Select an option",this.errorMessage="Select an option",this.dropdownOptional=!1,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=ct([{attribute:"dropdown-name",value:this.dropdownName}]);if(!r()&&t)return e(ht,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this drop down field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"},e("slot",null));const i={...dt(this),selectOptions:e("slot",null)},{states:o}=r()?ut({states:{registrationFormState:{}}},this.demoData||{}):{states:{registrationFormState:F(vt)}};return e(B,{states:o,content:i})}},De=a.gql`
|
|
31
|
+
query {
|
|
32
|
+
viewer {
|
|
33
|
+
... on User {
|
|
34
|
+
id
|
|
35
|
+
accountId
|
|
36
|
+
firstName
|
|
37
|
+
lastName
|
|
38
|
+
email
|
|
39
|
+
countryCode
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`,Le=a.gql`
|
|
44
|
+
mutation (
|
|
45
|
+
$id: String!
|
|
46
|
+
$accountId: String!
|
|
47
|
+
$firstName: String!
|
|
48
|
+
$lastName: String!
|
|
49
|
+
) {
|
|
50
|
+
upsertUser(
|
|
51
|
+
userInput: {
|
|
52
|
+
id: $id
|
|
53
|
+
accountId: $accountId
|
|
54
|
+
firstName: $firstName
|
|
55
|
+
lastName: $lastName
|
|
56
|
+
}
|
|
57
|
+
) {
|
|
58
|
+
firstName
|
|
59
|
+
lastName
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`,Pe={currentRegion:"",firstName:"",lastName:"",errors:{},error:""},Be=class{constructor(e){t(this,e),this.ignored=!0,this.editprofileheader=void 0,this.editprofiletext=void 0,this.canceltext=void 0,this.updatetext=void 0,this.firstnametext=void 0,this.lastnametext=void 0,this.currentregiontext=void 0,this.showregion=void 0,this.networkErrorMessage="Network request failed.",this.fieldEmptyText="Cannot be empty",this.formErrorText="Please correct the errors below to update your profile.",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=r()?function(t){return ut({states:{loading:!1,submitDisabled:!1,formState:{currentRegion:"Canada",firstName:"Bill",lastName:"Bob",errors:{},error:"An error string"},user:{firstName:"Bill",lastName:"Bob",email:"billbob@example.com"},showEdit:!1,text:{editprofileheader:t.editprofileheader?t.editprofileheader:"Edit Profile",editprofiletext:t.editprofiletext?t.editprofiletext:"Update your profile.",firstnametext:t.firstnametext?t.firstnametext:"First Name",lastnametext:t.lastnametext?t.lastnametext:"Last Name",canceltext:t.canceltext?t.canceltext:"Cancel",updatetext:t.updatetext?t.updatetext:"Update",currentregiontext:t.currentregiontext?t.currentregiontext:"Region",showregion:!0,fieldEmptyText:t.fieldEmptyText}},callbacks:{onSubmit:t=>{console.log(t)},resetForm:()=>{console.log("reset")},onChange:()=>{console.log("change")},setShowEdit:t=>{console.log(t)}}},t.demoData||{})}(dt(this)):function(t){const e=n(),[i,r]=I(!1);I("");const[o,a]=I(void 0),[s,l]=I(Pe),u=c(De,{},!(null==e?void 0:e.jwt)),[h,m]=d(Le);return _((()=>{!(null==m?void 0:m.loading)&&i&&((null==m?void 0:m.errors)?l((t=>{var e,i,r;return{...t,error:null===(r=null===(i=null===(e=null==m?void 0:m.errors)||void 0===e?void 0:e.response)||void 0===i?void 0:i.errors)||void 0===r?void 0:r[0].message}})):(a((t=>{var e;return{...t,...null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.upsertUser}})),r(!1)))}),[null==m?void 0:m.loading]),_((()=>{a((t=>{var e;return{...t,...null===(e=null==u?void 0:u.data)||void 0===e?void 0:e.viewer}}))}),[null==u?void 0:u.data]),_((()=>{var e;(null===(e=null==m?void 0:m.errors)||void 0===e?void 0:e.message)&&l((e=>({...e,error:t.networkErrorMessage})))}),[null==m?void 0:m.errors]),{states:{loading:(null==u?void 0:u.loading)||m.loading,submitDisabled:!1,formState:s,user:o,showEdit:i,text:{editprofileheader:t.editprofileheader,editprofiletext:t.editprofiletext,firstnametext:t.firstnametext,lastnametext:t.lastnametext,canceltext:t.canceltext,updatetext:t.updatetext,currentregiontext:t.currentregiontext,showregion:t.showregion,fieldEmptyText:t.fieldEmptyText}},callbacks:{onSubmit:()=>{if(s.firstName&&s.lastName)return h({id:null==e?void 0:e.id,accountId:null==e?void 0:e.accountId,firstName:s.firstName,lastName:s.lastName}),void l((t=>({...t,errors:{}})));const i={};s.firstName||(i.firstName={message:t.fieldEmptyText}),s.lastName||(i.lastName={message:t.fieldEmptyText}),bt(i)||l((e=>({...e,error:t.formErrorText}))),l((t=>({...t,errors:i})))},resetForm:()=>{var t,e,i,r,o,n;const s=(null===(e=null===(t=null==u?void 0:u.data)||void 0===t?void 0:t.viewer)||void 0===e?void 0:e.countryCode)?lt.formatDisplayName(u.data.viewer.countryCode,{type:"region"}):"";a({...null===(i=u.data)||void 0===i?void 0:i.viewer,...null===(r=m.data)||void 0===r?void 0:r.upsertUser}),l({...Pe,...null===(o=u.data)||void 0===o?void 0:o.viewer,...null===(n=m.data)||void 0===n?void 0:n.upsertUser,currentRegion:s})},onChange:t=>{const{name:e,value:i}=t.target;l((t=>({...t,[e]:i})))},setShowEdit:r}}}(dt(this));return e(z,{...t})}};Be.style=".ErrorStyles::part(base){background:var(--sl-color-danger-10);border-color:var(--sl-color-danger-500);outline:var(--sl-color-danger-500)}.ErrorStyles:host{--something-random:red;--focus-ring:0 0 0 var(--sl-focus-ring-width) red !important}.ErrorStyles::part(input){color:var(--sl-color-danger-500)}.ErrorStyles::part(input):-webkit-autofill,.ErrorStyles::part(input):-webkit-autofill:hover,.ErrorStyles::part(input):-webkit-autofill:focus,.ErrorStyles::part(input):-webkit-autofill:active{-webkit-box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;-webkit-text-fill-color:var(--sl-color-danger-500)}.ErrorStyles::part(help-text){color:var(--sl-color-danger-500)}:host{display:block}:host([hidden]){display:none}.FormWrapper>:not(:first-child){margin-top:54px}.FormSection{width:100%}.FormSection>:not(:first-child){margin-top:16px}.ButtonWrapper{display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-pack:end;justify-content:flex-end}.ButtonWrapper>:not(:first-child){margin-left:var(--sl-font-size-x-small)}.CardWrapper{-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--sl-color-white);padding:40px 30px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width: 499px){.CardWrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}}@media screen and (max-width: 880px){.CardWrapper.ShowEdit{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}}";const ze=class{constructor(e){t(this,e),this.columns=1,this.minHeight=200,this.background=void 0,this.paddingSize="large",this.secondaryBackground=void 0,this.wrapDirection="wrap",this.columnToHideInMobile=null,E(this)}disconnectedCallback(){}render(){const t={states:{...dt(this)},content:{primaryColumn:e("slot",null),secondaryColumn:e("slot",{name:"secondary-column"})}};return e(V,{...t})}};function Ve(t,i){const r={Container:{position:"relative","&:before":{content:Boolean((t.header||t.description||t.buttonText)&&"overlay"===t.layout)?'""':"",width:"100%",height:"100%",position:"absolute",background:t.overlayColor||"var(--sl-color-black)",opacity:t.overlayOpacity}},Image:{display:"block",width:"100%",height:"100%",objectFit:"cover"},Background:{backgroundImage:`url(${yt(t.imageUrl)})`,backgroundSize:"cover",backgroundPosition:t.imagePos||"center",display:"flex",justifyContent:"center",alignItems:"center"},Overlay:{zIndex:"1",padding:"calc(var(--sl-spacing-"+t.paddingText+") + var(--sl-spacing-"+t.paddingImage+"))",textAlign:"center",color:t.textColor||"var(--sqm-text)",lineHeight:"var(--sl-line-height-dense)","@media (max-width: 599px)":{padding:"var(--sl-spacing-"+t.paddingText+")"}},Column:{display:"flex",background:t.backgroundColor||"",flexDirection:"right"===t.imagePos?"row-reverse":"row",lineHeight:"var(--sl-line-height-dense)",color:t.textColor||"var(--sqm-text)",minHeight:t.minHeight?t.minHeight+"px":void 0,"& .image-area":{width:t.imagePercentage?t.imagePercentage+"%":"50%",padding:"var(--sl-spacing-"+t.paddingImage+")",boxSizing:"border-box",display:"flex",justifyContent:"center",alignItems:"center",minHeight:t.minHeight?t.minHeight+"px":void 0,"@media (max-width: 599px)":{width:"100%"}},"& .text-area":{width:t.imagePercentage?100-t.imagePercentage+"%":"50%",padding:"var(--sl-spacing-"+t.paddingText+")",alignSelf:"center",boxSizing:"border-box","@media (max-width: 599px)":{width:"100%",textAlign:"center",padding:"calc(0.5*var(--sl-spacing-"+t.paddingText+"))"}},"@media (max-width: 599px)":{flexDirection:"bottom"===t.imageMobilePos?"column-reverse":"column"}},Header:{fontSize:"var(--sl-font-size-xxx-large)",fontWeight:"var(--sl-font-weight-bold)","@media (max-width: 599px)":{fontSize:"var(--sl-font-size-xx-large)"}},Description:{fontSize:"var(--sl-font-size-x-large)",margin:"var(--sl-spacing-small) 0","@media (max-width: 599px)":{fontSize:"var(--sl-font-size-large)"}},Button:{marginTop:"var(--sl-spacing-medium)","&::part(base)":{padding:"0 var(--sl-spacing-x-large)",color:"var(--sqm-primary-button-color)",backgroundColor:"var(--sqm-primary-button-background)",border:"var(--sqm-primary-button-color-border)"},"@media (max-width: 599px)":{width:"100%"}}},o=gt(r),a=o.toString();return e("div",{class:o.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},"\n :host{\n display: block;\n }",a),"overlay"===t.layout&&e("div",{class:o.classes.Background},e("div",{class:o.classes.Overlay,part:"sqm-overlay"},t.header&&e("div",{class:o.classes.Header},t.header),t.description&&e("div",{class:o.classes.Description},t.description),t.buttonText&&e("sl-button",{class:o.classes.Button,type:"primary",exportparts:`base: ${t.buttonType}button-base`,onClick:()=>t.buttonNewTab?window.open(t.buttonLink):window.open(t.buttonLink,"_parent")},t.buttonText),i&&i)),"columns"===t.layout&&e("div",null,e("div",{class:o.classes.Column},e("div",{class:"image-area"},e("img",{class:o.classes.Image,src:yt(t.imageUrl),alt:t.imageAlt||"",loading:"eager",decoding:"async",fetchpriority:"high",part:"sqm-columns-image"})),e("div",{class:"text-area",part:"sqm-columns-text-area"},t.header&&e("div",{class:o.classes.Header,part:"sqm-columns-header"},t.header),t.description&&e("div",{class:o.classes.Description,part:"sqm-columns-description"},t.description),t.buttonText&&e("sl-button",{exportparts:"base: sqm-hero-image-button",class:o.classes.Button,type:"primary",onClick:()=>t.buttonNewTab?window.open(t.buttonLink):window.open(t.buttonLink,"_parent")},t.buttonText)))))}const Oe=class{constructor(e){t(this,e),this.imageUrl=void 0,this.overlayColor=void 0,this.overlayOpacity="0.75",this.textColor=void 0,this.backgroundColor=void 0,this.layout="overlay",this.imagePercentage=50,this.imagePos="center",this.imageMobilePos="top",this.header=void 0,this.description=void 0,this.buttonText=void 0,this.buttonLink=void 0,this.buttonNewTab=!1,this.paddingText="xxxx-large",this.paddingImage="none",this.buttonType="primary",this.minHeight=400,this.imageAlt="",E(this)}disconnectedCallback(){}render(){return e(Ve,{...dt(this)},e("slot",null))}},je=class{constructor(e){t(this,e),this.ignored=!0,this.hookStory=void 0,E(this)}disconnectedCallback(){}render(){return e(this.hookStory,null)}};function $e(t){const i=gt({Container:{display:"flex",width:"100%",justifyContent:t.alignment||"center",background:t.backgroundColor||""},Image:{minHeight:t.minHeight||"100%",width:t.width||"100%",maxWidth:"max-content",objectFit:"cover"}}),r=i.toString();return e("div",null,e("style",{type:"text/css"},r,"\n :host{\n display: block; \n }\n "),e("div",{class:i.classes.Container,part:"sqm-base"},e("img",{part:"sqm-image",src:yt(t.imageUrl),class:i.classes.Image,decoding:"async"})))}const Ue=class{constructor(e){t(this,e),this.imageUrl=void 0,this.alignment="center",this.backgroundColor=void 0,this.minHeight=void 0,this.width=void 0}render(){return e($e,{...dt(this)})}},Ye=class{constructor(e){t(this,e),this.ignored=!0,this.fieldName=void 0,this.fieldLabel=void 0,this.fieldType="text",this.errorMessage="Cannot be empty",this.fieldOptional=!1,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t={...dt(this)},i=ct([{attribute:"field-name",value:this.fieldName}]);if(!r()&&i)return e(ht,{missingProps:i,heading:"An error occured while loading this form",subheading:"A technical problem prevented this input field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const{states:o}=r()?ut({states:{registrationFormState:{}}},this.demoData||{}):{states:{registrationFormState:F(vt)}};return e(O,{states:o,content:t})}},He=class{constructor(e){t(this,e),this.ignored=!0,this.dropdownName=void 0,this.dropdownLabel="Select an option",this.requiredFieldErrorMessage="Please select a {dropdownLabel}",this.optionalLabel="(optional)",this.dropdownOptional=!1,this.multiple=!1,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=ct([{attribute:"dropdown-name",value:this.dropdownName}]);if(!r()&&t)return e(ht,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this drop down field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"},e("slot",null));const i={...dt(this),selectOptions:e("slot",null)},{states:o}=r()?ut({states:{leadFormState:{}},content:{dropdownName:(a=this).dropdownName,dropdownLabel:a.dropdownLabel,requiredFieldErrorMessage:a.requiredFieldErrorMessage,dropdownOptional:a.dropdownOptional}},a.demoData||{}):{states:{leadFormState:F(mt)}};var a;return e(j,{states:o,content:i})}},We=a.gql`
|
|
63
|
+
mutation submitForm($formSubmissionInput: FormSubmissionInput!) {
|
|
64
|
+
submitForm(formSubmissionInput: $formSubmissionInput) {
|
|
65
|
+
success
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`,Ge=a.gql`
|
|
69
|
+
query getUser($programId: ID) {
|
|
70
|
+
viewer {
|
|
71
|
+
... on User {
|
|
72
|
+
referralCode(programId: $programId)
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`,Ke=class{constructor(e){t(this,e),this.ignored=!0,this.emailLabel="Email",this.firstNameLabel="First name",this.lastNameLabel="Last name",this.submitLabel="Submit",this.resubmitFormLabel="Refer Another Friend",this.pageLabel="Refer your friend",this.formKey="lead-form",this.supportLinkText="Support",this.submitSuccessHeader="Lead submitted",this.submitSuccessDescription="Our team will contact your friend to see if they’re a good fit. In the meantime, you can track this referral on Activity page.",this.submitErrorHeader="An error occurred while submitting",this.submitErrorDescription="Please try again later. If the problem continues, contact {supportLink}",this.requiredFieldErrorMessage="Please enter a valid {fieldLabel}",this.networkErrorMessage="Network request failed.",this.invalidEmailErrorMessage="Must be a valid email address",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const{states:t,callbacks:i,refs:o}=r()?ut({states:{error:"",loading:!1,success:!1},callbacks:{submit:async()=>{console.log("submit")},inputFunction:()=>{},resetForm:()=>{}},refs:{formRef:{}}},this.demoData||{}):function(t){var e,i,r,o,a,l,h,m,p,v;const f=S(null),{leadFormState:g,setLeadFormState:b}=pt({}),y=s(),x=n(),{data:w}=c(Ge,{programId:y},!(null==x?void 0:x.jwt)||!y),[k,{loading:C,errors:E}]=d(We),[F,T]=I(!1);_((()=>{if(!f.current)return;const t=f.current;return t.addEventListener("sl-input",R),()=>{t.removeEventListener("sl-input",R)}}),[f.current]);const R=u((t=>{var e,i;if("tel"!==(null===(i=null===(e=t.target)||void 0===e?void 0:e.type)||void 0===i?void 0:i.toLowerCase()))return;const r=new wt("US");t.target.value=r.input(t.target.value)}),[]);let q="";return q=(null===(e=null==E?void 0:E.response)||void 0===e?void 0:e.error)||(null==E?void 0:E.message)&&!(null===(i=null==E?void 0:E.response)||void 0===i?void 0:i.errors.length)?t.networkErrorMessage:(null===(l=null===(a=null===(o=null===(r=null==E?void 0:E.response)||void 0===r?void 0:r.errors)||void 0===o?void 0:o[0])||void 0===a?void 0:a.extensions)||void 0===l?void 0:l.message)||(null===(p=null===(m=null===(h=null==E?void 0:E.response)||void 0===h?void 0:h.errors)||void 0===m?void 0:m[0])||void 0===p?void 0:p.message)||(null==g?void 0:g.error),{states:{loading:C,error:q,success:F,leadFormState:g,referralCode:(null===(v=null==w?void 0:w.viewer)||void 0===v?void 0:v.referralCode)||""},callbacks:{submit:async e=>{var i;let r=e.target.getFormControls(),o={},a={};if(null==r||r.forEach((e=>{if(!e.name)return;const i=e.name,r=e.value;if(xt.set(o,i,r),e.required&&!r&&xt.set(a,i,t.requiredFieldErrorMessage),"function"==typeof e.validationError){const t=(0,e.validationError)({control:e,key:i,value:r});t&&xt.set(a,i,t)}})),Object.keys(a).length)return void b({loading:!1,error:"",validationErrors:a});b({loading:!0,error:"",validationErrors:{}});const n={key:t.formKey,formData:o};try{const t=await k({formSubmissionInput:n});if(t instanceof Error)throw t;b({loading:!1,error:"",validationErrors:{}}),(null===(i=null==t?void 0:t.submitForm)||void 0===i?void 0:i.success)&&T(!0)}catch(e){b({loading:!1,error:t.networkErrorMessage,validationErrors:{}})}},inputFunction:R,resetForm:function(){var t,e;b({loading:!1,error:"",validationErrors:{}}),null===(e=null===(t=f.current)||void 0===t?void 0:t.getFormControls())||void 0===e||e.forEach((t=>{var e;"checkbox"===(null===(e=t.input)||void 0===e?void 0:e.type)?(t.checked=!1,t.value=!1):t.value=""})),T(!1)}},refs:{formRef:f}}}(this),a={formData:e("slot",{name:"formData"}),emailLabel:this.emailLabel,submitLabel:this.submitLabel,resubmitFormLabel:this.resubmitFormLabel,pageLabel:this.pageLabel,supportLinkText:this.supportLinkText,submitSuccessHeader:this.submitSuccessHeader,submitSuccessDescription:this.submitSuccessDescription,submitErrorHeader:this.submitErrorHeader,submitErrorDescription:this.submitErrorDescription,invalidEmailErrorMessage:this.invalidEmailErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel};return e($,{states:t,callbacks:i,content:a,refs:o})}},Je=a.gql`
|
|
77
|
+
query (
|
|
78
|
+
$type: String!
|
|
79
|
+
$filter: UserLeaderboardFilterInput
|
|
80
|
+
$locale: RSLocale
|
|
81
|
+
$limit: Int!
|
|
82
|
+
) {
|
|
83
|
+
userLeaderboard(type: $type, filter: $filter) {
|
|
84
|
+
dateModified
|
|
85
|
+
rows(limit: $limit) {
|
|
86
|
+
textValue(locale: $locale)
|
|
87
|
+
firstName
|
|
88
|
+
lastInitial
|
|
89
|
+
rank {
|
|
90
|
+
rank
|
|
91
|
+
denseRank
|
|
92
|
+
rowNumber
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
`,Ze=a.gql`
|
|
98
|
+
query (
|
|
99
|
+
$type: String!
|
|
100
|
+
$filter: UserLeaderboardFilterInput
|
|
101
|
+
$locale: RSLocale
|
|
102
|
+
$limit: Int!
|
|
103
|
+
) {
|
|
104
|
+
userLeaderboard(type: $type, filter: $filter) {
|
|
105
|
+
dateModified
|
|
106
|
+
rows(limit: $limit) {
|
|
107
|
+
textValue(locale: $locale)
|
|
108
|
+
rank {
|
|
109
|
+
rank
|
|
110
|
+
denseRank
|
|
111
|
+
rowNumber
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
`,Xe=a.gql`
|
|
117
|
+
query (
|
|
118
|
+
$type: String!
|
|
119
|
+
$filter: UserLeaderboardFilterInput
|
|
120
|
+
$locale: RSLocale
|
|
121
|
+
) {
|
|
122
|
+
viewer {
|
|
123
|
+
... on User {
|
|
124
|
+
firstName
|
|
125
|
+
lastInitial
|
|
126
|
+
leaderboardRank(type: $type, filter: $filter) {
|
|
127
|
+
textValue(locale: $locale)
|
|
128
|
+
rank
|
|
129
|
+
denseRank
|
|
130
|
+
rowNumber
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
`,Qe=a.gql`
|
|
136
|
+
query (
|
|
137
|
+
$type: String!
|
|
138
|
+
$filter: UserLeaderboardFilterInput
|
|
139
|
+
$locale: RSLocale
|
|
140
|
+
) {
|
|
141
|
+
viewer {
|
|
142
|
+
... on User {
|
|
143
|
+
leaderboardRank(type: $type, filter: $filter) {
|
|
144
|
+
textValue(locale: $locale)
|
|
145
|
+
rank
|
|
146
|
+
denseRank
|
|
147
|
+
rowNumber
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
`,ti=class{constructor(e){t(this,e),this.programId=void 0,this.usersheading=void 0,this.statsheading=void 0,this.rankheading=void 0,this.showRank=void 0,this.width="100%",this.rankSuffix=void 0,this.viewingUserText="You",this.hideNames=!1,this.rankType=void 0,this.leaderboardType=void 0,this.anonymousUser="Anonymous User",this.interval=void 0,this.maxRows=10,this.hideViewer=!1,this.viewingUserHighlightColor=void 0,this.viewingUserHighlightTextColor=void 0,this.background=void 0,this.borderColor=void 0,this.textColor=void 0,this.borderRadius=void 0,this.demoData=void 0,this.ignored=!0,E(this),U(this)}disconnectedCallback(){}render(){const t={empty:e(ei,null),usersheading:this.usersheading,statsheading:this.statsheading,rankheading:this.rankheading,rankType:this.rankType,leaderboardType:this.leaderboardType,maxRows:this.maxRows,programId:this.programId,anonymousUser:this.anonymousUser,interval:this.interval,hideViewer:this.hideViewer,viewingUserText:this.viewingUserText,hideNames:this.hideNames,showRank:this.showRank,rankSuffix:this.rankSuffix,width:this.width,viewingUserHighlightColor:this.viewingUserHighlightColor,viewingUserHighlightTextColor:this.viewingUserHighlightTextColor,background:this.background,borderColor:this.borderColor,textColor:this.textColor,borderRadius:this.borderRadius},i={...t,demoData:this.demoData},o=r()?function(t){var i,r;const o=(null===(r=null===(i=t.demoData)||void 0===i?void 0:i.data)||void 0===r?void 0:r.leaderboard)||[{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1},{firstName:"MF",lastInitial:"D",textValue:"73",rank:2,rowNumber:2},{firstName:"Freddie",lastInitial:"G",textValue:"64",rank:3,rowNumber:3},{firstName:"Benny",lastInitial:"B",textValue:"55",rank:4,rowNumber:4},{textValue:"46",rank:5,rowNumber:5}];return ut({states:{loading:!1,hasLeaders:!0,isEssentials:!1,styles:{usersheading:t.usersheading?t.usersheading:"Top referrers",statsheading:t.statsheading?t.statsheading:"New customers",rankheading:t.rankheading?t.rankheading:"Rank",anonymousUser:t.anonymousUser?t.anonymousUser:"Anonymous User",showRank:t.showRank,hideViewer:t.hideViewer,viewingUserText:t.viewingUserText,hideNames:t.hideNames,rankSuffix:t.rankSuffix,width:t.width,viewingUserHighlightColor:t.viewingUserHighlightColor,viewingUserHighlightTextColor:t.viewingUserHighlightTextColor,background:t.background,borderColor:t.borderColor,textColor:t.textColor,borderRadius:t.borderRadius}},data:{rankType:"rowNumber",leaderboard:o},elements:{empty:e(ei,null)}},t.demoData||{})}(i):function(t){var e,i,r,o,a,l,d,u,m,p;const v=s(),f=null!==(e=t.programId)&&void 0!==e?e:v,g=n(),b=h(),y=f?{type:t.leaderboardType,filter:{programId_eq:f}}:{type:t.leaderboardType,filter:{}};t.interval&&(y.filter.interval=t.interval),b&&(y.locale=b),t.maxRows>0&&(y.limit=t.maxRows);const{data:x,loading:w,errors:k}=c(t.hideNames?Ze:Je,y,!(null==g?void 0:g.jwt),{batch:!1}),{data:C}=c(t.hideNames?Qe:Xe,y,!(null==g?void 0:g.jwt)),E=null==(S=null===(i=null==x?void 0:x.userLeaderboard)||void 0===i?void 0:i.rows)?void 0:S.flatMap((e=>{var i,r;return{textValue:e.textValue,firstName:e.firstName,lastInitial:e.lastInitial,rank:null===(i=e.rank)||void 0===i?void 0:i[t.rankType],rowNumber:null===(r=e.rank)||void 0===r?void 0:r.rowNumber}})),_=null==E?void 0:E.sort((function(t,e){return t.rank-e.rank})),F={textValue:null===(o=null===(r=null==C?void 0:C.viewer)||void 0===r?void 0:r.leaderboardRank)||void 0===o?void 0:o.textValue,firstName:null===(a=null==C?void 0:C.viewer)||void 0===a?void 0:a.firstName,lastInitial:null===(l=null==C?void 0:C.viewer)||void 0===l?void 0:l.lastInitial,rank:null===(u=null===(d=null==C?void 0:C.viewer)||void 0===d?void 0:d.leaderboardRank)||void 0===u?void 0:u[t.rankType],rowNumber:null===(p=null===(m=null==C?void 0:C.viewer)||void 0===m?void 0:m.leaderboardRank)||void 0===p?void 0:p.rowNumber},I=T((()=>{var t,e;return!!(null===(e=null===(t=null==k?void 0:k.response)||void 0===t?void 0:t.errors)||void 0===e?void 0:e.find((t=>{var e,i;return 403===(null===(i=null===(e=null==t?void 0:t.extensions)||void 0===e?void 0:e.apiError)||void 0===i?void 0:i.statusCode)})))}),[k]);var S;return{states:{loading:w,isEssentials:I,hasLeaders:(null==_?void 0:_.length)>0,styles:t},data:{leaderboard:_,rankType:t.rankType,viewerRank:F},elements:{empty:t.empty}}}(t);return e(Y,{...o})}};function ei(){return e("slot",{name:"empty"},e("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png","empty-state-header":"View your rank in the leaderboard","empty-state-text":"Be the first to refer a friend and reach the top of the leaderboard"}))}const ii=gt({Container:{display:"contents"},Link:{textDecoration:"none",color:"inherit"}}),ri=ii.toString();function oi(t){const{onClick:i,buttonText:r}=t;return e("span",{class:ii.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},ri,"\n:host{\n display: inline; \n}\n"),e("sl-button",{onClick:i,type:"primary",exportparts:"base: primarybutton-base"},e("a",{class:ii.classes.Link,part:"sqm-link"},r)))}const ai=class{constructor(e){t(this,e),this.link=void 0,this.openInNewTab=!1,this.buttonText="Click here"}render(){return e(oi,{...{...dt(this),onClick:()=>{window.open(this.link,this.openInNewTab?"_blank":"_parent")}}})}},ni=class{constructor(e){t(this,e),this.ignored=!0,this.checkboxLabel="I would like to receive marketing and promotional emails for this referral program",this.checkboxName="marketingEmailOptIn",this.checkboxOptional=!1,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t={...dt(this)},{states:i,callbacks:o}=r()?ut({states:{registrationFormState:{},checked:!1},callbacks:{setChecked:()=>{}}},this.demoData||{}):Ie(this);return e(L,{states:i,content:t,callbacks:o})}},si=class{constructor(e){t(this,e),this.ignored=!0,this.firstNameLabel="First Name",this.lastNameLabel="Last Name",this.optional=!1,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const{states:t}=r()?ut({states:{optional:(i=this).optional,validationErrors:[],content:{firstNameLabel:i.firstNameLabel,lastNameLabel:i.lastNameLabel}}},i.demoData||{}):function(t){const e=F(vt);return{states:{optional:t.optional,registrationFormState:e,content:{lastNameLabel:t.lastNameLabel,firstNameLabel:t.firstNameLabel}}}}(this);var i;return e(H,{states:t})}};function li(t){const{states:i}=t,{styles:r}=i;return i.includeDropdown?e("sl-dropdown",{style:"margin-bottom: var(--sl-spacing-large)"},e("sl-button",{slot:"trigger",caret:!0,onClick:t.callbacks.rerender,exportparts:"base: dropdownbutton-base"},r.menuLabel),e("sl-menu",{ref:e=>{void 0===t.ref.current&&(t.ref.current=e,t.callbacks.rerender())}},e("slot",null))):""}const di=class{constructor(e){t(this,e),this.ignored=!0,this.includeDropdown=void 0,this.menuLabel=void 0,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=r()?function(t){return ut({states:{includeDropdown:!0,styles:{...t,menuLabel:"Menu"}},callbacks:{rerender:()=>{}},ref:{current:void 0}},t.demoData||{})}(dt(this)):function(t){const e=S(),[,i]=m(),r=n();return _((()=>{var t;null===(t=e.current)||void 0===t||t.addEventListener("sl-select",(t=>function(t){p.push(t.detail.item.value)}(t)))}),[e.current]),{states:{includeDropdown:void 0!==((null==r?void 0:r.id)||(null==r?void 0:r.accountId)||(null==r?void 0:r.jwt)),styles:{menuLabel:t.menuLabel}},callbacks:{rerender:i},ref:e}}(dt(this));return e(i,{slot:"sqm-navigation-menu"},e(li,{...t}))}};di.style=":host{display:block}:host([hidden]){display:none}.HeaderWrapper{width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--sl-spacing-small) var(--sl-spacing-large);-ms-flex-align:center;align-items:center;background-color:var(--sqm-header-background)}@media screen and (max-width: 499px){.HeaderWrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end;padding:0 var(--sl-spacing-x-small)}}";const ci=gt({Wrapper:{maxWidth:"200px",marginLeft:"auto"},PayoutButtonDescription:{color:"var(--sqm-text-subdued)",fontSize:"var(--sl-font-size-small)",margin:"0"}}),ui=ci.toString();function hi(t){const{text:i,states:r}=t;return r.payoutSettingsComplete?e("div",{class:ci.classes.Wrapper},e("style",{type:"text/css"},ui),e("sqm-scroll",{"scroll-tag-name":"sqm-tabs","button-text":i.payoutButtonText,"scroll-animation":"smooth"}),e("p",{class:ci.classes.PayoutButtonDescription},i.payoutButtonDescription)):e("div",null)}const mi=a.gql`
|
|
153
|
+
query getPayoutDetails {
|
|
154
|
+
user: viewer {
|
|
155
|
+
... on User {
|
|
156
|
+
id
|
|
157
|
+
impactConnection {
|
|
158
|
+
connected
|
|
159
|
+
publisher {
|
|
160
|
+
id
|
|
161
|
+
payoutsAccount {
|
|
162
|
+
hold
|
|
163
|
+
balance
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
`,pi=class{constructor(e){t(this,e),this.payoutButtonText="Payouts & Tax Settings",this.payoutButtonDescription="Check your payout settings to see when you’ll get paid out next",this.demoData=void 0,this.ignored=!0,E(this)}disconnectedCallback(){}getTextProps(){return dt(this)}render(){const t=r()?function(t){return ut({states:{payoutSettingsComplete:!1},text:t.getTextProps()},t.demoData||{})}(this):function(t){var e,i,r;const{data:o,refetch:a}=c(mi,{});return _((()=>{const t=()=>a();return window.addEventListener("sqm:tax-form-updated",t),()=>window.removeEventListener("sqm:tax-form-updated",t)}),[]),{states:{payoutSettingsComplete:!!(null===(r=null===(i=null===(e=null==o?void 0:o.user)||void 0===e?void 0:e.impactConnection)||void 0===i?void 0:i.publisher)||void 0===r?void 0:r.payoutsAccount)},text:t.getTextProps()}}(this);return e(hi,{...t})}},vi=gt({ButtonContainer:{display:"flex",gap:"var(--sl-spacing-medium)",marginTop:"var(--sl-spacing-medium)",flexWrap:"wrap"},SkeletonOne:{width:"50%",height:"16px"},AlertDescriptionText:{margin:"0",marginBottom:"var(--sl-spacing-small)"},Dialog:{"&::part(panel)":{height:"600px"},"&::part(close-button)":{marginBottom:"var(--sl-spacing-xx-large)"},"&::part(title)":{display:"none"},"&::part(header)":{},"&::part(body)":{padding:"0"},"&::part(footer)":{}}}),fi=vi.toString();function gi(t){const{text:i,states:r,data:o,callbacks:a}=t,n=function(t){if(r.error)return{header:i.errorHeader,description:i.errorDescription,buttonText:null,alertType:"error"};switch(t){case"INFORMATION_REQUIRED":return{header:i.informationRequiredHeader,description:i.informationRequiredDescription,buttonText:i.informationRequiredButtonText,alertType:"info"};case"VERIFICATION:REQUIRED":return{header:i.verificationRequiredHeader,description:lt.formatMessage({id:"verificationRequiredDescription",defaultMessage:i.verificationRequiredDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),buttonText:i.verificationRequiredButtonText,alertType:"warning"};case"VERIFICATION:INTERNAL":return{header:i.verificationRequiredInternalHeader,description:lt.formatMessage({id:"verificationRequiredInternalDescription",defaultMessage:i.verificationRequiredInternalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),alertType:"warning"};case"VERIFICATION:REVIEW":return{header:i.verificationReviewInternalHeader,description:lt.formatMessage({id:"verificationReviewInternalDescription",defaultMessage:i.verificationReviewInternalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),alertType:"warning"};case"VERIFICATION:FAILED":return{header:i.verificationFailedInternalHeader,description:lt.formatMessage({id:"verificationFailedInternalDescription",defaultMessage:i.verificationFailedInternalDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),alertType:"error"};case"OVER_W9_THRESHOLD":return"CASH_ONLY_DEFER_W9"===r.enforceUsTaxComplianceOption?{header:i.w9RequiredHeader,description:lt.formatMessage({id:"w9RequiredDescription",defaultMessage:i.w9RequiredDescription},{termsAndConditions:e("a",{target:"_blank",href:"https://terms.advocate.impact.com/PayoutTermsAndConditions.html"},i.termsAndConditions)}),buttonText:i.w9RequiredButtonText,alertType:"warning",icon:"exclamation-triangle"}:{header:i.holdHeader,description:lt.formatMessage({id:"holdDescription",defaultMessage:i.holdDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),buttonText:null,alertType:"warning",icon:"exclamation-triangle"};case"NEW_PAYEE_REVIEW":return{header:i.accountReviewHeader,description:lt.formatMessage({id:"accountReviewDescription",defaultMessage:i.accountReviewDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),buttonText:null,alertType:"warning",icon:"exclamation-triangle"};case"PAYMENT_HOLD_ON_CHANGE":return{header:i.paymentHoldOnChangeHeader,description:lt.formatMessage({id:"accountReviewDescription",defaultMessage:i.paymentHoldOnChangeDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),buttonText:null,alertType:"warning",icon:"exclamation-triangle"};case"BENEFICIARY_NAME_INVALID":return{header:i.beneficiaryNameInvalidHeader,description:lt.formatMessage({id:"accountReviewDescription",defaultMessage:i.beneficiaryNameInvalidDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),button:e("div",{class:vi.classes.ButtonContainer},e("sl-button",{disabled:r.loading,type:"primary",exportparts:"base: primarybutton-base",onClick:a.onPaymentInfoClick},i.editPaymentInformationButton),e("sl-button",{disabled:r.loading,type:"secondary",exportparts:"base: secondarybutton-base",onClick:a.onNewFormClick},i.newFormButton)),alertType:"warning",icon:"exclamation-triangle"};case"BENEFICIARY_NAME_MISMATCH":return{header:i.beneficiaryNameMismatchHeader,description:lt.formatMessage({id:"accountReviewDescription",defaultMessage:i.beneficiaryNameMismatchDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),button:e("div",{class:vi.classes.ButtonContainer},e("sl-button",{disabled:r.loading,type:"primary",exportparts:"base: primarybutton-base",onClick:a.onPaymentInfoClick},i.editPaymentInformationButton),e("sl-button",{disabled:r.loading,type:"secondary",exportparts:"base: secondarybutton-base",onClick:a.onNewFormClick},i.newFormButton)),alertType:"warning",icon:"exclamation-triangle"};case"BANK_TAX_NAME_MISMATCH":return{header:i.bankTaxNameMismatchHeader,description:lt.formatMessage({id:"accountReviewDescription",defaultMessage:i.bankTaxNameMismatchDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),button:e("div",{class:vi.classes.ButtonContainer},e("sl-button",{disabled:r.loading,type:"primary",exportparts:"base: primarybutton-base",onClick:a.onPaymentInfoClick},i.editPaymentInformationButton),e("sl-button",{disabled:r.loading,type:"secondary",exportparts:"base: secondarybutton-base",onClick:a.onNewFormClick},i.newFormButton)),alertType:"warning",icon:"exclamation-triangle"};case"WITHDRAWAL_SETTINGS_INVALID":return{header:i.withdrawalSettingsInvalidHeader,description:lt.formatMessage({id:"accountReviewDescription",defaultMessage:i.withdrawalSettingsInvalidDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),button:e("div",{class:vi.classes.ButtonContainer},e("sl-button",{disabled:r.loading,type:"primary",exportparts:"base: primarybutton-base",onClick:a.onPaymentInfoClick},i.editPaymentInformationButton)),alertType:"warning",icon:"exclamation-triangle"};case"PAYMENT_RETURNED":return{header:i.paymentReturnedHeader,description:lt.formatMessage({id:"accountReviewDescription",defaultMessage:i.paymentReturnedDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),button:e("div",{class:vi.classes.ButtonContainer},e("sl-button",{disabled:r.loading,type:"primary",exportparts:"base: primarybutton-base",onClick:a.onPaymentInfoClick},i.editPaymentInformationButton)),alertType:"error",icon:"exclamation-triangle"};case"HOLD":return{header:i.holdHeader,description:lt.formatMessage({id:"holdDescription",defaultMessage:i.holdDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},i.supportLink)}),buttonText:null,alertType:"warning"};default:return}}(r.status),s="DONE"!==r.status&&!!n;return s||r.belowPayoutThreshold?e("div",{part:"sqm-base"},e("style",{type:"text/css"},fi),e("style",{type:"text/css"},"\n a {\n color: inherit;\n text-decoration: underline;\n cursor: pointer;\n }\n"),r.belowPayoutThreshold&&e("sqm-form-message",{loading:r.loading,type:"info"},e("p",{part:"alert-title"},i.balanceUnderThresholdHeader),e("p",{part:"alert-description"},lt.formatMessage({id:"balanceUnderThresholdDescription",defaultMessage:i.balanceUnderThresholdDescription},{minPayoutAmount:r.minPayoutAmount}))),s&&e("sqm-form-message",{loading:r.loading,type:n.alertType},e("p",{part:"alert-title"},n.header),e("p",{part:"alert-description"},n.description),function(t){switch(t){case"OVER_W9_THRESHOLD":if("CASH_ONLY"===r.enforceUsTaxComplianceOption)return;return"SquatchJS2"===o.type?e("sqm-scroll",{"scroll-tag-name":"sqm-tabs","button-text":i.w9RequiredButtonText,"scroll-animation":"smooth"}):e("sl-button","SquatchPortal"===o.type?{type:"primary",exportparts:"base: primarybutton-base",onClick:a.onTermsClick}:{type:"primary",exportparts:"base: primarybutton-base"},i.w9RequiredButtonText);case"INFORMATION_REQUIRED":return e("div",{style:{paddingTop:"10px"}},"SquatchJS2"===o.type?e("sqm-scroll",{"scroll-tag-name":"sqm-tabs","button-text":i.informationRequiredButtonText,"scroll-animation":"smooth"}):e("sl-button","SquatchPortal"===o.type?{type:"secondary",exportparts:"base: secondarybutton-base",onClick:a.onTermsClick}:{type:"secondary",exportparts:"base: secondarybutton-base"},i.informationRequiredButtonText));case"VERIFICATION:REQUIRED":return e("div",{style:{paddingTop:"10px"}},e("sl-button",{type:"secondary",exportparts:"base: secondarybutton-base",loading:r.veriffLoading,onClick:a.onClick},i.verificationRequiredButtonText));default:return n.button?n.button:void 0}}(r.status))):e("div",null)}const bi=class{constructor(e){t(this,e),this.informationRequiredHeader="Payout and tax information required",this.editPaymentInformationButton="Edit Payout Information",this.newFormButton="Submit new tax form",this.informationRequiredDescription="Submit your banking details and tax documents to receive your rewards.",this.informationRequiredButtonText="Payouts & Tax Settings",this.verificationRequiredHeader="Verify your identity",this.verificationRequiredDescription="It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.",this.verificationRequiredButtonText="Start Verification",this.verificationRequiredInternalHeader="Identity Verification in progress",this.verificationRequiredInternalDescription="Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.",this.verificationReviewInternalHeader="Identity Verification under review",this.verificationReviewInternalDescription="Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.",this.verificationFailedInternalHeader="Identity verification unsuccessful",this.verificationFailedInternalDescription="Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.",this.accountReviewHeader="Your account is under review",this.accountReviewDescription="This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.",this.balanceUnderThresholdHeader="Your balance is under the minimum payout",this.balanceUnderThresholdDescription="Your total balance is under {minPayoutAmount}, the minimum required for payout.",this.paymentHoldOnChangeHeader="We are reviewing your new payout settings",this.paymentHoldOnChangeDescription="Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.",this.beneficiaryNameInvalidHeader="Your payment information does not match your tax form",this.beneficiaryNameInvalidDescription="The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",this.beneficiaryNameMismatchHeader="Your payment information does not match your tax form",this.beneficiaryNameMismatchDescription="The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",this.bankTaxNameMismatchHeader="Your payment information does not match your tax form",this.bankTaxNameMismatchDescription="The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",this.withdrawalSettingsInvalidHeader="Your payment information is incomplete or includes invalid characters",this.withdrawalSettingsInvalidDescription="There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.",this.paymentReturnedHeader="Payout unsuccessful",this.paymentReturnedDescription="Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.",this.w9RequiredHeader="Your next payout is on hold",this.w9RequiredDescription="You have surpassed the $2000 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.",this.w9RequiredButtonText="Submit W-9",this.holdHeader="Your payouts and account are on hold",this.holdDescription="Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to our {supportLink}.",this.cashPayoutsPageUrl="/taxAndCash",this.supportLink="support team",this.termsAndConditions="Terms and Conditions",this.errorHeader="Could not determine payout status.",this.errorDescription="There was an error with determining your payout status.",this.stateController="{}",this.demoData=void 0,E(this)}disconnectedCallback(){}getTextProps(){return dt(this)}render(){const t=r()?function(t){const e=Et(t.stateController),i=Object.keys(e).reduce(((t,i)=>"sqm-payout-status-alert"===i?{...t,...e[i]}:{...t,[`${i}_stateController`]:e[i]}),{});return ut({states:{error:!1,status:e.status,loading:!1,veriffLoading:!1},data:{type:"SquatchAdmin"},text:t.getTextProps(),callbacks:{onTermsClick:()=>{},onClick:()=>console.log("show"),onPaymentInfoClick:()=>{},onNewFormClick:()=>{}}},t.demoData||i||{})}(this):kt(this);return e(gi,{...t})}},yi=a.gql`
|
|
171
|
+
query {
|
|
172
|
+
viewer {
|
|
173
|
+
... on User {
|
|
174
|
+
id
|
|
175
|
+
accountId
|
|
176
|
+
marketingEmailOptIn
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`,xi=a.gql`
|
|
181
|
+
mutation ($userInput: UserInput!) {
|
|
182
|
+
upsertUser(userInput: $userInput) {
|
|
183
|
+
id
|
|
184
|
+
marketingEmailOptIn
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
`,wi={marketingEmailOptIn:!1,errors:{},error:""},ki=class{constructor(e){t(this,e),this.ignored=!0,this.emailPreferencesHeader="Email preferences",this.marketingCheckboxLabel="I want to receive marketing emails and promotions for this referral program from impact.com",this.submitChangeButtonText="Save",this.networkRequestMessage="An error occurred while loading this page. Please refresh the page.",this.successMessage="Opt-in preference has been changed.",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=r()?function(t){return ut({states:{success:!1,loading:!1,submitDisabled:!1,user:{id:"01",accountId:"111100000",marketingEmailOptIn:!1},text:{emailPreferencesHeader:t.emailPreferencesHeader,marketingCheckboxLabel:t.marketingCheckboxLabel,submitChangeButtonText:t.submitChangeButtonText,successMessage:t.successMessage},formState:{marketingEmailOptIn:!1,errors:null,error:""}},callbacks:{onSubmit:t=>console.log(t),setChecked:()=>{}}},t.demoData||{})}(dt(this)):function(t){const e=n(),[i,r]=I(!1),[o,a]=I(void 0),[s,l]=I(wi),u=c(yi,{},!(null==e?void 0:e.jwt)),[h,m]=d(xi);return _((()=>{(null==m?void 0:m.loading)||((null==m?void 0:m.errors)?l((t=>{var e,i,r;return{...t,error:null===(r=null===(i=null===(e=null==m?void 0:m.errors)||void 0===e?void 0:e.response)||void 0===i?void 0:i.errors)||void 0===r?void 0:r[0].message}})):(a((t=>{var e;return{...t,...null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.upsertUser}})),(null==m?void 0:m.data)&&r(!0)))}),[null==m?void 0:m.loading]),_((()=>{var t,e;a((t=>{var e;return{...t,...null===(e=null==u?void 0:u.data)||void 0===e?void 0:e.viewer}})),l({...wi,...null===(t=u.data)||void 0===t?void 0:t.viewer,...null===(e=m.data)||void 0===e?void 0:e.upsertUser})}),[null==u?void 0:u.data]),_((()=>{var e,i;(null===(e=null==m?void 0:m.errors)||void 0===e?void 0:e.message)&&l({...null===(i=u.data)||void 0===i?void 0:i.viewer,error:t.networkRequestMessage})}),[null==m?void 0:m.errors]),{states:{success:i,loading:(null==u?void 0:u.loading)||m.loading,submitDisabled:!1,formState:s,user:o,text:{emailPreferencesHeader:t.emailPreferencesHeader,marketingCheckboxLabel:t.marketingCheckboxLabel,submitChangeButtonText:t.submitChangeButtonText,successMessage:t.successMessage}},callbacks:{onSubmit:t=>{var i;r(!1);const o=null===(i=t.detail)||void 0===i?void 0:i.formData;null==o||o.forEach(((t,e)=>{xt.set(o,e,t)})),h({userInput:{id:null==e?void 0:e.id,accountId:null==e?void 0:e.accountId,marketingEmailOptIn:Boolean(o.marketingEmailOptIn)}}),l((t=>({...t,errors:{},error:""})))},setChecked:t=>l({...s,marketingEmailOptIn:t})}}}(dt(this));return e(W,{...t})}},Ci=class{constructor(e){t(this,e),this.ignored=!0,this.modalChangePasswordHeader="Change Password",this.cancelText="Cancel",this.changePasswordButtonText="Change Password",this.passwordFieldLabel="New Password",this.confirmPasswordFieldLabel="Confirm New Password",this.successMessage="Your password has been updated.",this.portalChangePasswordHeader="Password",this.portalChangePasswordButtonText="Change your password...",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.nonMatchingPasswordErrorText="contain at least 1 lowercase character",this.invalidSessionErrorText="Please log in again to change your password.",this.hasErrorText="contain at least 1 number or symbol",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const{states:t,callbacks:i}=r()?function(t){const[e,i]=I(!1);return ut({states:{open:e,error:"",content:{modalChangePasswordHeader:t.modalChangePasswordHeader,cancelText:t.cancelText,changePasswordButtonText:t.changePasswordButtonText,passwordFieldLabel:t.passwordFieldLabel,confirmPasswordFieldLabel:t.confirmPasswordFieldLabel,successMessage:t.successMessage,portalChangePasswordHeader:t.portalChangePasswordHeader,portalChangePasswordButtonText:t.portalChangePasswordButtonText,meetsRequirementsText:t.meetsRequirementsText,doesNotMeetRequirementsText:t.doesNotMeetRequirementsText,minErrorText:t.minErrorText,uppercaseErrorText:t.uppercaseErrorText,lowercaseErrorText:t.lowercaseErrorText,hasErrorText:t.hasErrorText}},callbacks:{setOpen:t=>i(t),submit:t=>console.log("Submit",t)}},t.demoData||{})}(this):function(t){var e,i,r,o,a,s,l;const[d,{loading:c,errors:u}]=v(),[h,m]=I(!1),[p,f]=I(""),[g,b]=I(!1),y=n();return{states:{open:h,loading:c,success:g,error:p||(null===(o=null===(r=null===(i=null===(e=null==u?void 0:u.response)||void 0===e?void 0:e.errors)||void 0===i?void 0:i[0])||void 0===r?void 0:r.extensions)||void 0===o?void 0:o.message)||(null===(l=null===(s=null===(a=null==u?void 0:u.response)||void 0===a?void 0:a.errors)||void 0===s?void 0:s[0])||void 0===l?void 0:l.message),content:{modalChangePasswordHeader:t.modalChangePasswordHeader,cancelText:t.cancelText,changePasswordButtonText:t.changePasswordButtonText,passwordFieldLabel:t.passwordFieldLabel,confirmPasswordFieldLabel:t.confirmPasswordFieldLabel,successMessage:t.successMessage,portalChangePasswordHeader:t.portalChangePasswordHeader,portalChangePasswordButtonText:t.portalChangePasswordButtonText,meetsRequirementsText:t.meetsRequirementsText,doesNotMeetRequirementsText:t.doesNotMeetRequirementsText,minErrorText:t.minErrorText,uppercaseErrorText:t.uppercaseErrorText,lowercaseErrorText:t.lowercaseErrorText,hasErrorText:t.hasErrorText}},data:{},callbacks:{setOpen:m,submit:async e=>{var i,r;b(!1);const o=null===(i=e.detail)||void 0===i?void 0:i.formData;if(null==o||o.forEach(((t,e)=>{xt.set(o,e,t)})),!(null==y?void 0:y.jwt))return void f(t.invalidSessionErrorText);if(o.password!==o.confirmPassword)return void f(t.nonMatchingPasswordErrorText);f("");const a={password:o.password},n=await d(a);n instanceof Error||!(null===(r=n.changeManagedIdentityPassword)||void 0===r?void 0:r.success)||b(!0)}}}}(this);return e(G,{states:t,callbacks:i})}},Ei=class{constructor(e){t(this,e),this.ignored=!0,this.hideSupportText=!1,this.supportEmail="support@example.com",this.supportText="For program support, contact {email}",this.termsLink=void 0,this.termsText=void 0,this.faqLink=void 0,this.faqText=void 0,this.hidePoweredBy=!1,this.poweredByLink="https://impact.com/advocate/",this.paddingTop="large",this.paddingRight="large",this.paddingBottom="large",this.paddingLeft="large",E(this)}disconnectedCallback(){}render(){return e(K,{...dt(this)})}static get assetsDirs(){return["../../assets"]}},_i=class{constructor(e){t(this,e),this.ignored=!0,this.notFullScreen=!1,this.backgroundColor="var(--sqm-portal-background, #fff)",this.border="var(--sqm-border-thickness, 1px) solid var(--sqm-border-color, #eaeaea)",this.headerAndFooterBackgroundColor="var(--sqm-portal-background, #fff)",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=e("slot",{name:"footer"}),i=e("slot",{name:"header"}),o=r()?function(t,i,r){return ut({notFullScreen:!0,backgroundColor:r.backgroundColor,headerAndFooterBackgroundColor:r.headerAndFooterBackgroundColor,border:r.border,data:{footer:t||e("span",null,"example@example.com"),header:i||e("div",{style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal"))},callbacks:{rerender:()=>{}}},r.demoData||{})}(t,i,this):function(t,e,i){const[,r]=m();return{data:{footer:t,header:e},callbacks:{rerender:r},backgroundColor:i.backgroundColor,border:i.border,headerAndFooterBackgroundColor:i.headerAndFooterBackgroundColor}}(t,i,this);return e(J,{...o},e("slot",null))}};class Fi extends Error{}function Ii(t){const[e,i]=ft(),[r,o]=I({mode:"base"});return{registrationFormState:e,showRegistrationForm:r,validationErrors:e.validationErrors,handleGoogleInit:t=>{var r;if(null===(r=t.detail)||void 0===r?void 0:r.credential)try{const r=function(t,e){if("string"!=typeof t)throw new Fi("Invalid token specified: must be a string");e||(e={});const i=!0===e.header?0:1,r=t.split(".")[i];if("string"!=typeof r)throw new Fi(`Invalid token specified: missing part #${i+1}`);let o;try{o=function(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(t){return decodeURIComponent(atob(t).replace(/(.)/g,((t,e)=>{let i=e.charCodeAt(0).toString(16).toUpperCase();return i.length<2&&(i="0"+i),"%"+i})))}(e)}catch(t){return atob(e)}}(r)}catch(t){throw new Fi(`Invalid token specified: invalid base64 for part #${i+1} (${t.message})`)}try{return JSON.parse(o)}catch(t){throw new Fi(`Invalid token specified: invalid json for part #${i+1} (${t.message})`)}}(t.detail.credential);i({...e,_googleOAuthIdToken:t.detail.credential,initialData:{email:r.email,firstName:r.given_name,lastName:r.family_name}}),o({mode:"google"})}catch(t){console.error("Failed to decode Google Sign In credential JWT:",t)}},handleEmailSubmit:async r=>{const a=r.target.getFormControls();let n={},s={};a.forEach((e=>{if(!e.name)return;const i=e.name,r=e.value;if(xt.set(n,i,r),e.required&&!r&&xt.set(s,i,t.requiredFieldErrorMessage),"function"==typeof e.validationError){const t=(0,e.validationError)({control:e,key:i,value:r});t&&xt.set(s,i,t)}})),Object.keys(s).length?i({...e,loading:!1,error:"",validationErrors:s}):(i({...e,validationErrors:{},initialData:{...null==e?void 0:e.initialData,...n}}),o({mode:"manual"}))}}}Fi.prototype.name="InvalidTokenError";const Si=class{constructor(e){t(this,e),this.ignored=!0,this.nextPage="/",this.redirectPath="/verifyEmail",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Register",this.loginLabel="Sign in",this.confirmPasswordLabel="Confirm Password",this.confirmPassword=!1,this.disablePasswordValidation=!1,this.hideInputs=!1,this.pageLabel="Register",this.loginPath="/login",this.loginCTA="Already have an account?",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",this.formKey=void 0,this.googleButtonText="signup_with",this.demoData=void 0,this.demoGoogleData=void 0,E(this)}disconnectedCallback(){}render(){const{states:t,callbacks:i,refs:o}=r()?ut({states:{error:"",loading:!1,confirmPassword:this.confirmPassword,hideInputs:this.hideInputs||!1,customPasswordField:!1,loginPath:"/login"},callbacks:{handleGoogleInit:()=>{},setShowRegistrationForm:()=>{},submit:async()=>{console.log("submit")},inputFunction:()=>{}},content:{pageLabel:"Register",formData:null,passwordField:null},refs:{formRef:{}}},this.demoData||{}):Ft(this);const a=gt({LoginButton:{"&::part(label)":{padding:"0"}}}),n=a.toString(),{handleGoogleInit:s,handleEmailSubmit:l,showRegistrationForm:d,validationErrors:c}=r()?function(t){const[e,i]=I({mode:"base"});return ut({validationErrors:{},handleEmailSubmit:()=>i({mode:"manual"}),showRegistrationForm:e,handleGoogleInit:()=>i({mode:"google"})},t.demoGoogleData||{})}(this):Ii(this),u={formData:e("slot",{name:"formData"}),googleButton:e("sqm-google-sign-in",{text:this.googleButtonText,onInitComplete:s}),secondaryButton:e("slot",{name:"secondaryButton"},e("style",null,n),e("span",null,this.loginCTA," ",e("sl-button",{size:"large",type:"text",disabled:t.loading,onClick:()=>p.push(t.loginPath),className:a.classes.LoginButton},this.loginLabel)," ")),terms:e("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"base"===d.mode?e(Z,{states:{validationErrors:c},callbacks:{handleEmailSubmit:l},content:u}):e(_t,{states:{...t,emailDisabled:!0,hidePasswords:"google"===d.mode},callbacks:i,content:u,refs:o})}};function Ti(t,i){const r=gt({Container:{color:t.textColor||"var(--sqm-text)",background:t.backgroundColor||""},Header:{fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-bold)",lineHeight:"var(--sl-line-height-dense)",marginBottom:"var(--sl-spacing-large)",textAlign:"center"},Grid:{display:"flex",flexDirection:"row",gap:"var(--sl-spacing-large)","@media (max-width: 499px)":{flexDirection:"column"}}}),o=r.toString();return e("div",{class:r.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},o,"\n ::slotted(*){\n display: flex;\n width: 100%;\n }\n @media (max-width: 499px) {\n ::slotted(*){\n display: block;\n }\n }"),e("div",{class:r.classes.Header},e("div",{class:r.classes.Header,part:"sqm-header"},t.header)),e("div",{class:r.classes.Grid,part:"sqm-grid-container"},i))}const Ri=class{constructor(e){t(this,e),this.ignored=!0,this.header=void 0,this.textColor=void 0,this.backgroundColor=void 0,E(this)}disconnectedCallback(){}render(){return e(Ti,{...dt(this)},e("slot",null))}};function qi(t){const i=gt({Container:{display:"flex",flexDirection:"column",width:"100%",padding:"var(--sl-spacing-x-large)",lineHeight:"var(--sl-line-height-dense)",borderRadius:t.borderRadius?`${t.borderRadius}px`:"var(--sqm-border-radius-normal)",color:t.textColor||"var(--sqm-text)",background:t.backgroundColor||"var(--sqm-accent-color-background)","@media (max-width: 499px)":{flexDirection:"row",width:"auto",paddingBottom:"var(--sl-spacing-large)"}},Text:{"@media (max-width: 499px)":{marginLeft:"var(--sl-spacing-large)"}},Header:{color:t.textColor||"var(--sqm-text)",fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-bold)",marginTop:"var(--sl-spacing-x-large)","@media (max-width: 499px)":{margin:"0"}},Description:{color:t.textColor||"var(--sqm-text)",fontSize:"var(--sl-font-size-medium)",marginTop:"var(--sl-spacing-small)","@media (max-width: 499px)":{marginTop:"var(--sl-spacing-x-small)"}},Media:{width:"64px",height:"64px",borderRadius:"100%",objectFit:"cover",userSelect:"none",background:t.iconBackgroundColor||"var(--sl-color-white)",color:t.iconColor||"var(--sqm-accent-color-icon)",fontSize:"26px",textAlign:"center",lineHeight:"72px",display:"flex",alignItems:"center",justifyContent:"center"}}),r=i.toString();return e("div",{class:i.classes.Container,part:"sqm-base"},e("style",{type:"text/css"},r),e("div",null,t.imageUrl?e("img",{class:i.classes.Media,src:yt(t.imageUrl,{width:128,height:128}),part:"sqm-media",decoding:"async"}):e("div",{class:i.classes.Media,part:"sqm-media"},e("sl-icon",{name:t.icon}))),e("div",{class:i.classes.Text},e("div",{class:i.classes.Header,part:"sqm-header"},t.header),e("div",{class:i.classes.Description,part:"sqm-description"},t.description)))}const Ai=class{constructor(e){t(this,e),this.header=void 0,this.description=void 0,this.textColor=void 0,this.backgroundColor=void 0,this.borderRadius=void 0,this.iconBackgroundColor=void 0,this.iconColor=void 0,this.imageUrl=void 0,this.icon=void 0,E(this)}disconnectedCallback(){}render(){return e(qi,{...dt(this)})}},Ni=R("sq:useProgramMenu"),Mi=class{constructor(e){t(this,e),this.ignored=!0,E(this)}disconnectedCallback(){}render(){const{data:t,ref:r}=function(t){const e=s(),i=o();Ni({programId:e,props:t});const r=S(),[,a]=m();return _((()=>{var t;null===(t=r.current)||void 0===t||t.addEventListener("sl-select",(t=>{i.dispatchEvent(new CustomEvent("sq:update-program-id",{detail:t.detail.item.value,bubbles:!0,composed:!0}))}))}),[r.current]),{data:{programId:e},callbacks:{rerender:a},ref:r}}(dt(this));return e(i,{style:{display:"contents"}},e("style",null,"\n sqm-program-menu sl-select::part(base) {\n color: var(--sqm-input-color);\n }\n "),e("sl-select",{style:{paddingBottom:"var(--sl-spacing-large)"},value:t.programId,ref:t=>r.current=t},e("slot",null)))}};function Di(t){const i=gt({Container:{borderRadius:t.borderRadius||"var(--sqm-border-radius-normal)",color:t.textColor||"var(--sqm-text)",background:t.backgroundColor||"var(--sqm-portal-background)",display:"flex",flexDirection:"column",rowGap:"var(--sl-spacing-large)"},EndContainer:{display:"flex",flexDirection:"column",alignItems:"center"},ColumnContainer:{"& p":{margin:"0"},display:"grid",gridAutoColumns:"minmax(0, 1fr)",gridAutoFlow:"column",gap:"calc(2 * var(--sl-spacing-medium))","@media (max-width: 499px)":{gridAutoFlow:"unset",gridAutoColumns:"unset",gridTemplateColumns:"1fr",border:"none"}}}),r=i.toString();return e("div",{part:"sqm-base",class:i.classes.Container,style:{border:t.hideBorder?"none":`var(--sqm-border-thickness) solid ${t.borderColor||"var(--sqm-border-color)"}`,"padding-top":`var(--sl-spacing-${t.paddingTop})`,"padding-right":`var(--sl-spacing-${t.paddingRight})`,"padding-bottom":`var(--sl-spacing-${t.paddingBottom})`,"padding-left":`var(--sl-spacing-${t.paddingLeft})`,backgroundColor:t.backgroundColor,maxWidth:t.limitWidth?"600px":"none",margin:t.limitWidth?"auto":"none"}},e("style",{type:"text/css"},r,"\n :host{\n display: block; \n }\n "),t.hasHeader&&e("div",{class:i.classes.EndContainer},t.slots.header),e("div",{part:"sqm-column-container",class:i.classes.ColumnContainer,style:{alignItems:t.verticalAlignment}},t.slots.left,t.slots.right),t.hasFooter&&e("div",{class:i.classes.EndContainer},t.slots.footer))}const Li=class{constructor(e){t(this,e),this.ignored=!0,this.verticalAlignment="start",this.hideBorder=!1,this.paddingTop="large",this.paddingRight="large",this.paddingBottom="large",this.paddingLeft="large",this.backgroundColor=void 0,this.borderColor=void 0,this.textColor=void 0,this.borderRadius=void 0,this.limitWidth=!1,E(this)}disconnectedCallback(){}render(){const t={left:e("slot",{name:"left"}),right:e("slot",{name:"right"}),header:e("slot",{name:"header"}),footer:e("slot",{name:"footer"})},i=It(),r=i.findIndex((t=>"header"===t.slot))>-1,o=i.findIndex((t=>"footer"===t.slot))>-1;return e(Di,{...dt(this),slots:t,hasHeader:r,hasFooter:o},e("slot",null))}},Pi=a.gql`
|
|
188
|
+
query getUser($programId: ID) {
|
|
189
|
+
viewer {
|
|
190
|
+
... on User {
|
|
191
|
+
referralCode(programId: $programId)
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
`,Bi=class{constructor(e){t(this,e),this.ignored=!0,this.iframeSrc=void 0,this.iframeHeight="100%",this.iframeWidth="100%",this.codeParam="rsCode",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=ct([{attribute:"iframe-src",value:this.iframeSrc}]);if(t)return e(ht,{missingProps:t,heading:"An error occured while loading this page",subheading:"A technical problem prevented this iframe from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const{states:o,data:a}=r()?(l=dt(this),ut({states:{content:{iframeSrc:"https://example.com",...l}},data:{shareCode:"SHARECODE123"}},l.demoData||{})):function(t){var e;const i=s(),r=n(),{data:o}=c(Pi,{programId:i},!(null==r?void 0:r.jwt)||!i);return{states:{content:t},data:{shareCode:null===(e=null==o?void 0:o.viewer)||void 0===e?void 0:e.referralCode}}}(dt(this));var l;return e(i,{style:{display:"contents"}},e(X,{data:a,states:o}))}},zi=class{constructor(e){t(this,e),this.ignored=!0,this.emailLabel="Email",this.firstNameLabel="First Name",this.lastNameLabel="Last Name",this.registerLabel="Claim Your Reward",this.includeName=!1,this.hideBorder=!1,this.requiredFieldErrorMessage="Cannot be empty",this.invalidEmailErrorMessage="Please enter a valid email address",this.networkErrorMessage="There was a problem signing you in. Please wait a moment and try again. If this problem continues, contact Support for help resolving this issue.",this.fraudErrorMessage="Our team will review this referral. If approved, you and your friend will receive your rewards. Need help? Reach out to our Support team.",this.fraudErrorMessageTitle="Looks like you tried referring yourself",this.paddingTop="large",this.paddingRight="large",this.paddingBottom="large",this.paddingLeft="large",this.backgroundColor=void 0,this.includeCookies=!0,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const{states:t,callbacks:i}=r()?ut({states:{error:"",loading:!1},callbacks:{submit:async()=>{f({id:"referrer@example.com",accountId:"referrer@example.com",jwt:"eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg"})}}},this.demoData||{}):St(this),o={fraudErrorMessage:this.fraudErrorMessage,fraudErrorMessageTitle:this.fraudErrorMessageTitle,emailLabel:this.emailLabel,registerLabel:this.registerLabel,firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel,includeName:this.includeName,hideBorder:this.hideBorder,invalidEmailErrorMessage:this.invalidEmailErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,paddingTop:this.paddingTop,paddingBottom:this.paddingBottom,paddingLeft:this.paddingLeft,paddingRight:this.paddingRight,backgroundColor:this.backgroundColor,topSlot:e("slot",{name:"top"}),bottomSlot:e("slot",{name:"bottom"})};return e(Tt,{states:t,callbacks:i,content:o})}};var Vi={};!function t(e,i,r,o){var a=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL),n="function"==typeof Path2D&&"function"==typeof DOMMatrix,s=function(){if(!e.OffscreenCanvas)return!1;try{var t=new OffscreenCanvas(1,1),i=t.getContext("2d");i.fillRect(0,0,1,1);var r=t.transferToImageBitmap();i.createPattern(r,"no-repeat")}catch(t){return!1}return!0}();function l(){}function d(t){var r=i.exports.Promise,o=void 0!==r?r:e.Promise;return"function"==typeof o?new o(t):(t(l,l),null)}var c,u,h,m,p,v,f,g,b,y,x,w=(c=s,u=new Map,{transform:function(t){if(c)return t;if(u.has(t))return u.get(t);var e=new OffscreenCanvas(t.width,t.height);return e.getContext("2d").drawImage(t,0,0),u.set(t,e),e},clear:function(){u.clear()}}),k=(p=Math.floor(1e3/60),v={},f=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(h=function(t){var e=Math.random();return v[e]=requestAnimationFrame((function i(r){f===r||f+p-1<r?(f=r,delete v[e],t()):v[e]=requestAnimationFrame(i)})),e},m=function(t){v[t]&&cancelAnimationFrame(v[t])}):(h=function(t){return setTimeout(t,p)},m=function(t){return clearTimeout(t)}),{frame:h,cancel:m}),C=(y={},function(){if(g)return g;if(!r&&a){var e=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{g=new Worker(URL.createObjectURL(new Blob([e])))}catch(t){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",t),null}!function(t){function e(e,i){t.postMessage({options:e||{},callback:i})}t.init=function(e){var i=e.transferControlToOffscreen();t.postMessage({canvas:i},[i])},t.fire=function(i,r,o){if(b)return e(i,null),b;var a=Math.random().toString(36).slice(2);return b=d((function(r){function n(e){e.data.callback===a&&(delete y[a],t.removeEventListener("message",n),b=null,w.clear(),o(),r())}t.addEventListener("message",n),e(i,a),y[a]=n.bind(null,{data:{callback:a}})}))},t.reset=function(){for(var e in t.postMessage({reset:!0}),y)y[e](),delete y[e]}}(g)}return g}),E={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function _(t,e,i){return function(t,e){return e?e(t):t}(t&&null!=t[e]?t[e]:E[e],i)}function F(t){return t<0?0:Math.floor(t)}function I(t){return parseInt(t,16)}function S(t){return t.map(T)}function T(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:I(e.substring(0,2)),g:I(e.substring(2,4)),b:I(e.substring(4,6))}}function R(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function q(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function A(t,i){var s,l=!t,c=!!_(i||{},"resize"),u=!1,h=_(i,"disableForReducedMotion",Boolean),m=a&&_(i||{},"useWorker")?C():null,p=l?R:q,v=!(!t||!m||!t.__confetti_initialized),f="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function g(e,i,a){for(var l,c,u,h,m=_(e,"particleCount",F),v=_(e,"angle",Number),f=_(e,"spread",Number),g=_(e,"startVelocity",Number),b=_(e,"decay",Number),y=_(e,"gravity",Number),x=_(e,"drift",Number),C=_(e,"colors",S),E=_(e,"ticks",Number),I=_(e,"shapes"),T=_(e,"scalar"),R=!!_(e,"flat"),q=function(t){var e=_(t,"origin",Object);return e.x=_(e,"x",Number),e.y=_(e,"y",Number),e}(e),A=m,N=[],M=t.width*q.x,D=t.height*q.y;A--;)N.push((void 0,void 0,c=(l={x:M,y:D,angle:v,spread:f,startVelocity:g,color:C[A%C.length],shape:I[(0,h=I.length,Math.floor(Math.random()*(h-0))+0)],ticks:E,decay:b,gravity:y,drift:x,scalar:T,flat:R}).angle*(Math.PI/180),u=l.spread*(Math.PI/180),{x:l.x,y:l.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*l.startVelocity+Math.random()*l.startVelocity,angle2D:-c+(.5*u-Math.random()*u),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:l.color,shape:l.shape,tick:0,totalTicks:l.ticks,decay:l.decay,drift:l.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*l.gravity,ovalScalar:.6,scalar:l.scalar,flat:l.flat}));return s?s.addFettis(N):(s=function(t,e,i,a,s){var l,c,u=e.slice(),h=t.getContext("2d"),m=d((function(e){function d(){l=c=null,h.clearRect(0,0,a.width,a.height),w.clear(),s(),e()}l=k.frame((function e(){!r||a.width===o.width&&a.height===o.height||(a.width=t.width=o.width,a.height=t.height=o.height),a.width||a.height||(i(t),a.width=t.width,a.height=t.height),h.clearRect(0,0,a.width,a.height),(u=u.filter((function(t){return function(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);var i=e.tick++/e.totalTicks,r=e.x+e.random*e.tiltCos,o=e.y+e.random*e.tiltSin,a=e.wobbleX+e.random*e.tiltCos,s=e.wobbleY+e.random*e.tiltSin;if(t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-i)+")",t.beginPath(),n&&"path"===e.shape.type&&"string"==typeof e.shape.path&&Array.isArray(e.shape.matrix))t.fill(function(t,e,i,r,o,a,n){var s=new Path2D(t),l=new Path2D;l.addPath(s,new DOMMatrix(e));var d=new Path2D;return d.addPath(l,new DOMMatrix([Math.cos(n)*o,Math.sin(n)*o,-Math.sin(n)*a,Math.cos(n)*a,i,r])),d}(e.shape.path,e.shape.matrix,e.x,e.y,.1*Math.abs(a-r),.1*Math.abs(s-o),Math.PI/10*e.wobble));else if("bitmap"===e.shape.type){var l=Math.PI/10*e.wobble,d=.1*Math.abs(a-r),c=.1*Math.abs(s-o),u=e.shape.bitmap.width*e.scalar,h=e.shape.bitmap.height*e.scalar,m=new DOMMatrix([Math.cos(l)*d,Math.sin(l)*d,-Math.sin(l)*c,Math.cos(l)*c,e.x,e.y]);m.multiplySelf(new DOMMatrix(e.shape.matrix));var p=t.createPattern(w.transform(e.shape.bitmap),"no-repeat");p.setTransform(m),t.globalAlpha=1-i,t.fillStyle=p,t.fillRect(e.x-u/2,e.y-h/2,u,h),t.globalAlpha=1}else if("circle"===e.shape)t.ellipse?t.ellipse(e.x,e.y,Math.abs(a-r)*e.ovalScalar,Math.abs(s-o)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):function(t,e,i,r,o,a,n,s){t.save(),t.translate(e,i),t.rotate(a),t.scale(r,o),t.arc(0,0,1,0,s,void 0),t.restore()}(t,e.x,e.y,Math.abs(a-r)*e.ovalScalar,Math.abs(s-o)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI);else if("star"===e.shape)for(var v=Math.PI/2*3,f=4*e.scalar,g=8*e.scalar,b=e.x,y=e.y,x=5,k=Math.PI/x;x--;)b=e.x+Math.cos(v)*g,y=e.y+Math.sin(v)*g,t.lineTo(b,y),v+=k,b=e.x+Math.cos(v)*f,y=e.y+Math.sin(v)*f,t.lineTo(b,y),v+=k;else t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(o)),t.lineTo(Math.floor(a),Math.floor(s)),t.lineTo(Math.floor(r),Math.floor(e.wobbleY));return t.closePath(),t.fill(),e.tick<e.totalTicks}(h,t)}))).length?l=k.frame(e):d()})),c=d}));return{addFettis:function(t){return u=u.concat(t),m},canvas:t,promise:m,reset:function(){l&&k.cancel(l),c&&c()}}}(t,N,p,i,a),s.promise)}function b(i){var r=h||_(i,"disableForReducedMotion",Boolean),o=_(i,"zIndex",Number);if(r&&f)return d((function(t){t()}));l&&s?t=s.canvas:l&&!t&&(t=function(t){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=t,e}(o),document.body.appendChild(t)),c&&!v&&p(t);var a={width:t.width,height:t.height};function n(){if(m){var e={getBoundingClientRect:function(){if(!l)return t.getBoundingClientRect()}};return p(e),void m.postMessage({resize:{width:e.width,height:e.height}})}a.width=a.height=null}function b(){s=null,c&&(u=!1,e.removeEventListener("resize",n)),l&&t&&(document.body.contains(t)&&document.body.removeChild(t),t=null,v=!1)}return m&&!v&&m.init(t),v=!0,m&&(t.__confetti_initialized=!0),c&&!u&&(u=!0,e.addEventListener("resize",n,!1)),m?m.fire(i,a,b):g(i,a,b)}return b.reset=function(){m&&m.reset(),s&&s.reset()},b}function N(){return x||(x=A(null,{useWorker:!0,resize:!0})),x}i.exports=function(){return N().apply(this,arguments)},i.exports.reset=function(){N().reset()},i.exports.create=A,i.exports.shapeFromPath=function(t){if(!n)throw new Error("path confetti are not supported in this browser");var e,i;"string"==typeof t?e=t:(e=t.path,i=t.matrix);var r=new Path2D(e),o=document.createElement("canvas").getContext("2d");if(!i){for(var a,s,l=1e3,d=l,c=l,u=0,h=0,m=0;m<l;m+=2)for(var p=0;p<l;p+=2)o.isPointInPath(r,m,p,"nonzero")&&(d=Math.min(d,m),c=Math.min(c,p),u=Math.max(u,m),h=Math.max(h,p));a=u-d,s=h-c;var v=Math.min(10/a,10/s);i=[v,0,0,v,-Math.round(a/2+d)*v,-Math.round(s/2+c)*v]}return{type:"path",path:e,matrix:i}},i.exports.shapeFromText=function(t){var e,i=1,r="#000000",o='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof t?e=t:(e=t.text,i="scalar"in t?t.scalar:i,o="fontFamily"in t?t.fontFamily:o,r="color"in t?t.color:r);var a=10*i,n=a+"px "+o,s=new OffscreenCanvas(a,a),l=s.getContext("2d");l.font=n;var d=l.measureText(e),c=Math.ceil(d.actualBoundingBoxRight+d.actualBoundingBoxLeft),u=Math.ceil(d.actualBoundingBoxAscent+d.actualBoundingBoxDescent),h=d.actualBoundingBoxLeft+2,m=d.actualBoundingBoxAscent+2;c+=4,u+=4,(l=(s=new OffscreenCanvas(c,u)).getContext("2d")).font=n,l.fillStyle=r,l.fillText(e,h,m);var p=1/i;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[p,0,0,p,-c*p/2,-u*p/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Vi,!1);const Oi=Vi.exports,ji=a.gql`
|
|
196
|
+
query getExchangeList {
|
|
197
|
+
viewer {
|
|
198
|
+
... on User {
|
|
199
|
+
visibleRewardExchangeItems(limit: 20, offset: 0) {
|
|
200
|
+
data {
|
|
201
|
+
key
|
|
202
|
+
name
|
|
203
|
+
description
|
|
204
|
+
imageUrl
|
|
205
|
+
available
|
|
206
|
+
unavailableReasonCode
|
|
207
|
+
ruleType
|
|
208
|
+
sourceUnit
|
|
209
|
+
sourceValue
|
|
210
|
+
prettySourceValue
|
|
211
|
+
sourceMinValue
|
|
212
|
+
prettySourceMinValue
|
|
213
|
+
sourceMaxValue
|
|
214
|
+
prettySourceMaxValue
|
|
215
|
+
destinationMinValue
|
|
216
|
+
prettyDestinationMinValue
|
|
217
|
+
destinationMaxValue
|
|
218
|
+
prettyDestinationMaxValue
|
|
219
|
+
globalRewardKey
|
|
220
|
+
destinationUnit
|
|
221
|
+
steps {
|
|
222
|
+
sourceValue
|
|
223
|
+
prettySourceValue
|
|
224
|
+
destinationValue
|
|
225
|
+
prettyDestinationValue
|
|
226
|
+
available
|
|
227
|
+
globalRewardKey
|
|
228
|
+
unavailableReasonCode
|
|
229
|
+
rewardInput
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
totalCount
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
`,$i=a.gql`
|
|
238
|
+
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
239
|
+
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
240
|
+
reward {
|
|
241
|
+
id
|
|
242
|
+
fuelTankCode
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
`,Ui=class{constructor(e){t(this,e),this.ignored=!0,this.notAvailableError="{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }",this.chooseRewardTitle="Rewards",this.chooseAmountTitle="Select",this.confirmationTitle="Confirm",this.rewardTitle="Choose a reward",this.cancelText="Cancel",this.backText="Back",this.continueText="Continue",this.continueToConfirmationText="Continue to confirmation",this.redeemText="Redeem",this.redeemTitle="Confirm and redeem",this.redemptionSuccessText="Redeemed {sourceValue} for {destinationValue}",this.sourceAmountMessage="{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}",this.tooltipText="Copied",this.doneText="Done",this.selectText="Select amount to receive",this.queryError="Unable to load reward exchange list. Please try again",this.redemptionError="An error occured trying to redeem this reward. Please try again",this.notEnoughError="Not enough {sourceUnit} to redeem for this reward",this.rewardRedeemedText="Reward redeemed",this.promoCode="Promo Code",this.skeletonCardNum=8,this.rewardNameTitle="Reward",this.rewardAmountTitle="Reward Amount",this.costTitle="Cost to Redeem",this.stateController="{}",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t={...dt(this),empty:e(Yi,null)},{states:o,data:a,callbacks:s,refs:l}=r()?function(t){const e=Et(t.stateController),i=Object.keys(e).reduce(((t,i)=>"sqm-reward-exchange-list"===i?{...t,...e[i]}:{...t,[`${i}_stateController`]:e[i]}),{});return ut({...tt,content:{text:t}},t.demoData||i||{})}(t):function(t){var e,i,r,o,a;const[s,l]=q(((t,e)=>({...t,...e})),{selectedItem:void 0,selectedStep:void 0,redeemStage:"chooseReward",amount:0,exchangeError:!1}),[u,h]=I(!1),{selectedItem:m,selectedStep:p,redeemStage:v,amount:f,exchangeError:b}=s,y=n(),[x,{data:w,loading:k,errors:C}]=d($i),{data:E,loading:F,refetch:T,errors:R}=c(ji,{},!(null==y?void 0:y.jwt));_((()=>{var t,e;(null===(e=null===(t=null==w?void 0:w.exchangeReward)||void 0===t?void 0:t.reward)||void 0===e?void 0:e.id)&&l({redeemStage:"success",exchangeError:!1}),C&&l({exchangeError:!0})}),[w,C]);const A=S();_((()=>{if(!A.current)return;const t=A.current;t.confetti=t.confetti||Oi.create(t,{resize:!0}),t.confetti()}),[A.current]);const{refresh:N}=g();return{states:{content:{text:t},selectedItem:m,redeemStage:v,amount:f,selectedStep:p,exchangeError:b,queryError:!!R,loading:F||k,open:u,noExchangeOptions:0===(null===(e=null==E?void 0:E.viewer)||void 0===e?void 0:e.visibleRewardExchangeItems.totalCount)},data:{exchangeList:null===(r=null===(i=null==E?void 0:E.viewer)||void 0===i?void 0:i.visibleRewardExchangeItems)||void 0===r?void 0:r.data,fuelTankCode:null===(a=null===(o=null==w?void 0:w.exchangeReward)||void 0===o?void 0:o.reward)||void 0===a?void 0:a.fuelTankCode},callbacks:{exchangeReward:async function(){if(!m)return;let t={accountId:null==y?void 0:y.accountId,userId:y.id};switch(m.ruleType){case"FIXED_GLOBAL_REWARD":t={...t,redeemCreditInput:{amount:m.sourceValue,unit:m.sourceUnit},globalRewardKey:m.globalRewardKey};break;case"STEPPED_FIXED_GLOBAL_REWARD":t={...t,redeemCreditInput:{amount:p.sourceValue,unit:m.sourceUnit},globalRewardKey:p.globalRewardKey};break;case"VARIABLE_GLOBAL_REWARD":t={...t,redeemCreditInput:{amount:f,unit:m.sourceUnit},globalRewardKey:m.globalRewardKey,rewardInput:p.rewardInput};break;case"VARIABLE_CREDIT_REWARD":t={...t,redeemCreditInput:{amount:f,unit:m.sourceUnit},rewardInput:{type:"CREDIT",unit:m.destinationUnit,assignedCredit:p.destinationValue}};break;default:t={...t,...p.rewardInput}}await x({exchangeRewardInput:t}),N()},setExchangeState:l,setStage:function(t){l({redeemStage:t})},resetState:t=>{t&&T(),l({amount:0,selectedStep:void 0,selectedItem:void 0,exchangeError:!1,redeemStage:"chooseReward"})},copyFuelTankCode:function(){var t,e;navigator.clipboard.writeText(null===(e=null===(t=null==w?void 0:w.exchangeReward)||void 0===t?void 0:t.reward)||void 0===e?void 0:e.fuelTankCode),h(!0),setTimeout((()=>h(!1)),1e3)}},refs:{canvasRef:A}}}(t);return e(i,{style:{display:"contents"}},e(Q,{states:o,data:a,callbacks:s,refs:l}))}static get assetsDirs(){return["assets"]}};function Yi(){return e("slot",{name:"empty"},e("sqm-empty",{emptyStateImage:"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_exchange2.png",emptyStateHeader:"Redeem rewards",emptyStateText:"Use your points to redeem rewards once they become available"}))}const Hi=R("sq:useRouter");function Wi(t,e){if(t)return Rt(t).exec(e)}const Gi=class{constructor(e){t(this,e),this.ignored=!0,E(this)}disconnectedCallback(){}render(){const{callbacks:t}=function(){const t=b(),e=o(),[i,r]=I(void 0),[a,n]=I(void 0),s=t.pathname;return _((()=>{const t=e.querySelectorAll("sqm-route");Array.from(t).forEach((t=>{const e=document.createElement("template");e.setAttribute("path",t.path),e.innerHTML=t.innerHTML,t.parentNode.appendChild(e),t.parentNode.removeChild(t)}))}),[]),_((()=>{var t,e;if(!a||!i)return void Hi("DOM not ready for navigation rendering on:",s);const r=i.querySelectorAll("template"),o=Array.from(r).find((t=>{var e,i,r;if(null===(r=Wi(null===(i=null===(e=t.attributes)||void 0===e?void 0:e.path)||void 0===i?void 0:i.nodeValue,s))||void 0===r?void 0:r.length)return t})),n=null===(e=null===(t=null==o?void 0:o.attributes)||void 0===t?void 0:t.path)||void 0===e?void 0:e.nodeValue;if(Hi({containerDatasetPage:a.dataset.page,templatePath:n,page:s}),!o)return Hi("No matching page found for ",s,", so render nothing"),a.innerHTML="",void(a.dataset.page=s);Hi("Page updated to ",s,o),Wi(n,a.dataset.page)?Hi("don't rerender"):o&&(a.innerHTML=o.innerHTML,a.dataset.page=s)}),[i,a,s]),{callbacks:{setSlot:r,setContainer:n}}}();return e(i,null,e("div",{ref:t.setSlot,style:{display:"none"}},e("slot",null)),e("div",{style:{display:"contents"},ref:t.setContainer}))}};Gi.style="sqm-router{display:contents}";const Ki=class{constructor(e){t(this,e),this.medium=void 0,this.programId=void 0,this.borderradius=void 0,this.backgroundcolor=void 0,this.border=void 0,this.textcolor=void 0,this.pill=void 0,this.disabled=void 0,this.type="default",this.size=void 0,this.iconslot="prefix",this.icon=void 0,this.hideicon=!1,this.hidetext=!1,this.sharetitle=void 0,this.sharetext=void 0,this.undefinedLinkText="Error: message link undefined!",this.unsupportedPlatformText="Error: not on a supported device",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=dt(this),i=r()?function(t){return ut({...t,loading:!1,hide:!1,onClick:()=>{}},t.demoData||{})}(t):et(t);return e(it,{...i},e("slot",null))}};Ki.style=":host{display:block}:host([hidden]){display:none}sl-button{display:block}";const Ji=a.gql`
|
|
247
|
+
query ($programId: ID) {
|
|
248
|
+
user: viewer {
|
|
249
|
+
... on User {
|
|
250
|
+
referralCode(programId: $programId)
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
`,Zi=a.gql`
|
|
255
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
256
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
257
|
+
}
|
|
258
|
+
`,Xi=class{constructor(e){t(this,e),this.programId=void 0,this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,this.textAlign="left",this.backgroundColor=void 0,this.textColor=void 0,this.borderRadius=void 0,this.copyButtonLabel="Copy Code",this.buttonStyle="icon",this.buttonType="primary",this.borderColor=void 0,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=dt(this),i=r()?function(t){const[e,i]=I(!1),r="SHARECODE001";return ut({copyString:r,tooltiptext:t.tooltiptext,textAlign:t.textAlign,copyButtonLabel:t.copyButtonLabel,buttonStyle:t.buttonStyle,backgroundColor:t.backgroundColor,textColor:t.textColor,borderRadius:t.borderRadius,borderColor:t.borderColor,buttonType:t.buttonType,open:e,onClick:()=>{navigator.clipboard.writeText(r),i(!0),setTimeout((()=>i(!1)),t.tooltiplifespan)}},t.demoData||{})}(t):function(t){var e,i;const{programId:r=s()}=t,o=n(),a=l(),{data:u}=c(Ji,{programId:r},!(null==o?void 0:o.jwt)),[h]=d(Zi),m=null!==(i=null===(e=null==u?void 0:u.user)||void 0===e?void 0:e.referralCode)&&void 0!==i?i:"...",[p,v]=I(!1);return{...t,onClick:function(){navigator.clipboard.writeText(m),v(!0),setTimeout((()=>v(!1)),t.tooltiplifespan),h({eventMeta:{programId:r,id:null==o?void 0:o.id,accountId:null==o?void 0:o.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:a,shareMedium:"DIRECT"}}})},open:p,copyString:m}}(t);return e(qt,{...i})}},Qi=class{constructor(e){t(this,e),this.programId=void 0,this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,this.textAlign="left",this.copyButtonLabel="Copy Link",this.backgroundColor=void 0,this.borderColor=void 0,this.textColor=void 0,this.borderRadius=void 0,this.buttonType="primary",this.buttonStyle="icon",this.allowCustomization=!1,this.cancelLabelText="Cancel",this.customizeDisabledTooltip="Link customization is not available.",this.customizeLinkButtonLabel="Customize Link",this.editLimitReachedText="5 edit limit reached. To make more changes, please contact {supportLink}.",this.editLimitText="You can edit your link up to {editsRemaining} more time(s).",this.invalidCharactersErrorDescription="Special characters can break the link when sharing.",this.invalidCharactersErrorTitle="Please use only letters, numbers, dashes and underscores",this.linkTakenErrorDescription="Try adding numbers, a dash or underscore to create a unique link.",this.linkTakenErrorTitle="This link is already taken",this.restrictedWordsErrorDescription="This link contains a restricted word.",this.restrictedWordsErrorTitle="Please try a different link",this.saveLabelText="Save",this.savingLabelText="Saving...",this.editLabelText="Enter your link",this.charactersRemainingText="Characters remaining: {charactersRemaining}",this.validatingLabelText="Validating...",this.minCharactersText="Minimum 3 characters.",this.supportLinkText="Support",this.saveErrorTitle="Error",this.saveErrorDescription="Failed to save custom link. Please try again.",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=dt(this),i=r()?function(t){var e;const[i,r]=I(!1),[o,a]=I(!1),[n,s]=I(""),l="https://www.example.com/sharelink/abc",d={copyTextViewProps:{copyString:l,tooltiptext:t.tooltiptext,textAlign:t.textAlign,buttonStyle:t.buttonStyle,backgroundColor:t.backgroundColor,textColor:t.textColor,borderRadius:t.borderRadius,buttonType:t.buttonType,copyButtonLabel:t.copyButtonLabel,borderColor:t.borderColor,open:i,onClick:()=>{navigator.clipboard.writeText(l),r(!0),setTimeout((()=>r(!1)),t.tooltiplifespan)}},allowCustomization:t.allowCustomization,customizeLinkLabel:t.customizeLinkButtonLabel,saveLabelText:t.saveLabelText,savingLabelText:t.savingLabelText,cancelLabelText:t.cancelLabelText,editLabelText:t.editLabelText,charactersRemainingText:t.charactersRemainingText,validatingLabelText:t.validatingLabelText,isEditing:o,editValue:n,domainPrefix:"https://www.example.com/",editsRemaining:5,maxEdits:5,limitReached:!1,validationError:null,isValidating:!1,isSaving:!1,characterLimit:30,minCharacters:3,charactersRemaining:30-n.length,editLimitText:t.editLimitText,editLimitReachedText:t.editLimitReachedText,supportLinkText:t.supportLinkText,minCharactersText:t.minCharactersText,customizeDisabled:!1,customizeDisabledTooltip:null!==(e=t.customizeDisabledTooltip)&&void 0!==e?e:"Link customization is not available.",onCustomizeClick:()=>{a(!0),s("")},onEditValueChange:t=>{s(t)},onSave:()=>{a(!1)},onCancel:()=>{a(!1),s("")}};return ut(d,t.demoData||{})}(t):rt(t);return e(ot,{...i})}},tr=class{constructor(e){t(this,e),this.ignored=!0,this.space="xxx-large",this.display="flex",this.hideBorder=void 0,this.alignment="center",this.gap="x-large",E(this)}disconnectedCallback(){}render(){return e(at,{...dt(this)},e("slot",null))}},er=a.gql`
|
|
259
|
+
mutation taskCardEvent($userEventInput: UserEventInput!) {
|
|
260
|
+
logUserEvent(userEventInput: $userEventInput) {
|
|
261
|
+
userId
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
`,ir=class{constructor(e){t(this,e),this.ignored=!0,this.rewardAmount="0",this.rewardUnit="Points",this.cardTitle="Title Text",this.description="",this.repeatable=!1,this.finite=0,this.showProgressBar=!1,this.goal=1,this.steps=!1,this.progressBarUnit="",this.expiryMessage="Ends {endDate}",this.rewardDuration=void 0,this.startsOnMessage="Starts {startDate}",this.displayDuration=void 0,this.endedMessage="Ended {endDate}",this.completedText="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",this.buttonText="Complete Action",this.buttonLink=void 0,this.openNewTab=!1,this.statType=void 0,this.eventKey=void 0,this.programId=void 0,this.hideButton=!1,this.backgroundColor=void 0,this.textColor=void 0,this.borderColor=void 0,this.borderRadius=void 0,this.buttonType="primary",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const{props:t}=r()?A(dt(this)):N({...dt(this),programId:this.programId}),{value:i,loading:o}=t,{states:a,callbacks:s}=r()?function(t){return ut({content:{...t},states:{loadingEvent:!1,locale:"en"},callbacks:{sendEvent:t=>console.log(t),onClick:()=>console.log("clicked")}},t.demoData||{})}(dt(this)):function(t){const e=n(),i=h(),[r,{data:o,loading:a}]=d(er),{refresh:s}=g();function l(){t.openNewTab?window.open(t.buttonLink):window.open(t.buttonLink,"_parent")}function c(t){r({userEventInput:{userId:null==e?void 0:e.id,accountId:null==e?void 0:e.accountId,events:[{key:t,fields:{}}]}})}return _((()=>{o&&(s(),l())}),[o]),{states:{loadingEvent:a,locale:i},styles:{card:{backgroundColor:t.backgroundColor,textColor:t.textColor,borderColor:t.borderColor,borderRadius:t.borderRadius,buttonType:t.buttonType}},callbacks:{sendEvent:c,onClick:function(){t.eventKey?c(t.eventKey):l()}}}}(this);return e(nt,{callbacks:s,states:{loading:o,loadingEvent:a.loadingEvent,progress:i,locale:a.locale},content:{...dt(this)}})}};function rr(t,e){return Object.keys(t).filter((t=>t.startsWith(e))).reduce(((i,r)=>({...i,[r.replace(e,"")]:t[r]})),{})}const or=class{constructor(e){t(this,e),this.step1_firstName="First name",this.step1_lastName="Last name",this.step1_email="Email",this.step1_country="Country",this.step1_phoneNumber="Phone number",this.step1_address="Address",this.step1_city="City",this.step1_state="State",this.step1_province="Province",this.step1_region="Region",this.step1_postalCode="Postal code",this.step1_currency="Currency",this.step1_allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information",this.step1_personalInformation="Personal Information",this.step1_termsAndConditionsLabel="terms and conditions",this.step1_termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html",this.step1_searchForCurrencyText="Search for currency..",this.step2_indirectTax="Indirect Tax",this.step2_indirectTaxDescription="Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.",this.step2_indirectTaxDetails="Indirect tax details",this.step2_otherRegion="Registered for indirect tax",this.step2_otherRegionSubtext="If you’ve registered with your tax authority, add your information to stay tax compliant.",this.step2_notRegistered="Not registered for indirect tax",this.step2_notRegisteredSubtext="If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.",this.step2_selectedRegion="Country / region of indirect tax",this.step2_indirectTaxNumber="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}",this.step2_province="Province",this.step2_indirectTaxNumberError="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required",this.step2_qstNumber="QST number",this.step2_isRegisteredQST="I am registered for QST Tax",this.step2_isRegisteredSubRegionIncomeTax="I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.",this.step2_subRegion="Sub-region",this.step2_subRegionTaxNumberLabel="Income Tax Number",this.step2_cannotChangeInfoAlert="Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.",this.step3_taxForm="Tax form",this.step3_taxFormLabel="{documentType} Tax Form",this.step3_participantType="Participant type",this.step3_businessEntity="I represent a business",this.step3_individualParticipant="I am an individual participant",this.step3_taxFormDescription="Participants based in the US need to submit a {documentType} form.",this.step3_taxFormDescriptionIndividualParticipant="Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.",this.step3_taxFormDescriptionBusinessEntity="Participants residing outside of the US working with a US Brand need to submit a {documentType} form.",this.step3_docusignExpired="For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.",this.step3_docusignSessionWarning="For your security, we automatically end your session when you have not interacted with the form after 20 minutes.",this.step3_docusignError="There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.",this.step3_refreshButton="Refresh Page",this.step3_exitButton="Exit",this.step3_modalTitle="Important Note",this.step3_modalDescription="Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.",this.step3_modalButtonText="I understand",this.step4_taxAndPayouts="Payouts",this.step4_directlyToBankAccount="Directly to my bank account",this.step4_toPayPalAccount="PayPal (2% processing fee capped to {feeCap})",this.step4_paymentScheduleBalanceThreshold="Pay me when my balance reaches a threshold",this.step4_paymentScheduleFixedDay="Pay me on a fixed day of the month",this.step4_paymentDaySelectLabel="Payment Day",this.step4_paymentThresholdSelectLabel="Payment threshold",this.step4_paymentDayFirstOfMonthLabelText="1st of the month",this.step4_paymentDayFifteenthOfMonthLabelText="15th of the month",this.step4_paymentMethod="Payment method",this.step4_paymentSchedule="Payment schedule",this.step4_paymentMethodSubtext="Payouts will be sent from our referral program provider, impact.com.",this.step4_payPalInputLabel="PayPal email",this.step4_bankLocationLabel="Bank country location",this.step4_beneficiaryAccountNameLabel="Account holder name",this.step4_beneficiaryAccountNameDescription="The beneficiary name of your bank account. Ensure this matches the name on your tax form.",this.step4_bankAccountTypeLabel="Bank account type",this.step4_checkingSelectItemLabel="Checking",this.step4_savingsSelectItemLabel="Savings",this.step4_bankAccountNumberLabel="Bank account number",this.step4_ibanLabel="IBAN",this.step4_swiftCodeLabel="SWIFT code",this.step4_routingCodeLabel="{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }",this.step4_bankNameLabel="Bank name",this.step4_classificationEntityLabel="Classification entity",this.step4_businessSelectItemLabel="Business",this.step4_individualSelectItemLabel="Individual",this.step4_foreignSelectItemLabel="Foreign",this.step4_classificationCPFLabel="Classification CPF",this.step4_patronymicNameLabel="Patronymic name",this.step4_voCodeLabel="VO code",this.step4_agencyCodeLabel="Agency code",this.step4_branchCodeLabel="Branch code",this.step4_branchNameLabel="Branch name",this.step4_classificationLabel="Classification",this.step4_classificationCodeLabel="KBE code",this.step4_taxPayerIdLabel="Beneficiary INN",this.step4_bankAddressLabel="Bank address",this.step4_bankCityLabel="Bank city",this.step4_bankStateLabel="Bank Province / State",this.step4_bankPostalCodeLabel="Bank postal code",this.step4_eftWithdrawalLabel="EFT Withdrawal (free)",this.step4_fxWireProcessingFeeLabel="FX Wire (Processing Fee {currency}{defaultFxFee}.00)",this.step4_verifyEmailHeaderText="Verify your email",this.step4_verifyEmailDescriptionText="Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.",this.step4_modalTitle="Important Note",this.step4_modalDescription="Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.",this.step4_modalButtonText="I understand, update my information",this.dashboard_statusTextActive="Active",this.dashboard_statusTextNotActive="Invalid Tax Form",this.dashboard_statusTextNotVerified="Not Verified",this.dashboard_statusTextRequired="Required",this.dashboard_requiredTaxForm="Your payouts are on hold until you submit a {taxFormType} tax form.",this.dashboard_badgeTextSubmittedOn="Submitted on {dateSubmitted}.",this.dashboard_badgeTextSubmittedOnW8="Submitted on {dateSubmitted}. Valid for three years after submission.",this.dashboard_badgeTextAwaitingReview="Awaiting review. Submitted on {dateSubmitted}.",this.dashboard_taxAlertHeaderNotActiveW9="Your W-9 tax form has personal information that doesn’t match your profile",this.dashboard_taxAlertHeaderNotActiveW8="{documentType} tax form is invalid",this.dashboard_taxAlertNotActiveMessageW9="Please resubmit a new {documentType} form.",this.dashboard_taxAlertNotActiveMessageW8="Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.",this.dashboard_invalidForm="Make sure your information is correct and submit new form.",this.dashboard_bankingInformationSectionHeader="Payout Information",this.dashboard_taxDocumentSectionHeader="Tax documents",this.dashboard_taxDocumentSectionSubHeader="{documentType} tax form",this.dashboard_noFormNeededSubtext="Tax documents are only required if you are based in the US or joining the referral program of a US based brand.",this.dashboard_indirectTaxInfoSectionHeader="Indirect tax",this.dashboard_indirectTaxInfoCanada="Registered in {province}, {country}",this.dashboard_indirectTaxInfoOtherCountry="Registered in {country}",this.dashboard_indirectTaxInfoSpain="Registered in {country}, {subRegion}",this.dashboard_indirectTaxTooltipSupport="To make changes to your indirect tax information, please contact our {supportLink}.",this.dashboard_indirectTaxDetails="{indirectTaxType} number: {indirectTaxNumber}",this.dashboard_newFormButton="Submit new tax form",this.dashboard_editPaymentInformationButton="Edit payout information",this.dashboard_notRegisteredForTax="Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.",this.dashboard_qstNumber="QST number: {qstNumber}",this.dashboard_subRegionTaxNumber="Income tax number: {subRegionTaxNumber}",this.dashboard_statusBadgeText="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }",this.dashboard_thresholdPayoutText="Next payout occurs when balance is {thresholdBalance}",this.dashboard_accountText="Account",this.dashboard_invoiceColumnTitle="Invoice",this.dashboard_dateColumnTitle="Date",this.dashboard_earningsColumnTitle="Earnings",this.dashboard_indirectTaxColumnTitle="Indirect tax",this.dashboard_payoutFromImpact="Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.",this.dashboard_earningsAfterTaxColumnTitle="Earnings after tax",this.dashboard_payoutHoldAlertHeader="Your payout is on hold",this.dashboard_payoutHoldAlertDescription="Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.",this.dashboard_payoutMissingInformationText="Missing banking information, go to Impact.com to resolve.",this.dashboard_invoiceDescription="View and download your invoices to report your earnings and stay tax compliant.",this.dashboard_invoicePrevLabel="Prev",this.dashboard_invoiceMoreLabel="Next",this.dashboard_invoiceHeader="Invoices",this.dashboard_invoiceEmptyStateHeader="View your invoice details",this.dashboard_invoiceEmptyStateText="Refer a friend to view the status of your invoices and rewards earned",this.dashboard_replaceTaxFormModalHeader="Replace existing tax form",this.dashboard_replaceTaxFormModalBodyText="Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.",this.dashboard_verificationRequiredHeader="Verify your identity",this.dashboard_verificationRequiredDescription="Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.",this.dashboard_verificationRequiredInternalHeader="Identity verification in progress",this.dashboard_verificationRequiredInternalDescription="Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.",this.dashboard_verificationReviewInternalHeader="Identity verification under review",this.dashboard_verificationReviewInternalDescription="Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.",this.dashboard_verificationFailedInternalHeader="Identity verification usuccessful",this.dashboard_verificationFailedInternalDescription="Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.",this.dashboard_verificationRequiredButtonText="Start Verification",this.dashboard_w9RequiredHeader="Your next payout is on hold",this.dashboard_w9RequiredDescription="You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.",this.dashboard_accountReviewHeader="Your account is under review",this.dashboard_accountReviewDescription="This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.",this.dashboard_balanceUnderThresholdHeader="Your balance is under the minimum payout",this.dashboard_balanceUnderThresholdDescription="Your total balance is under {minPayoutAmount}, the minimum required for payout.",this.dashboard_paymentOnHoldHeader="We are reviewing your new payout settings",this.dashboard_paymentOnHoldDescription="Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.",this.dashboard_beneficiaryNameInvalidHeader="Your payment information does not match your tax form",this.dashboard_beneficiaryNameInvalidDescription="The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",this.dashboard_beneficiaryNameMismatchHeader="Your payment information does not match your tax form",this.dashboard_beneficiaryNameMismatchDescription="The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",this.dashboard_bankNameMismatchHeader="Your payment information does not match your tax form",this.dashboard_bankNameMismatchDescription="The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",this.dashboard_withdrawalSettingsInvalidHeader="Your payment information is incomplete or includes invalid characters",this.dashboard_withdrawalSettingsInvalidDescription="There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.",this.dashboard_paymentReturnedHeader="Payout unsuccessful",this.dashboard_paymentReturnedDescription="Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.",this.dashboard_termsAndConditions="Terms and Conditions",this.dashboard_w9RequiredButtonText="Submit W-9",this.formStep="Step {step} of {count}",this.generalErrorTitle="There was a problem submitting your information",this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.",this.fieldRequiredError="{fieldName} is required",this.invalidCharacterError="{fieldName} includes characters that aren't supported.",this.fieldInvalidError="{fieldName} is invalid",this.continueButton="Continue",this.backButton="Back",this.cancelButton="Cancel",this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com",this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.",this.searchForCountryText="Search for country..",this.loadingErrorAlertHeader="There was a problem loading your form",this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.",this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.",this.supportLink="support team",this.termsAndConditions="Terms and Conditions",this.stateController="{}",this.demoData=void 0,E(this)}disconnectedCallback(){}getGeneralStepTextProps(t){const e=dt(this);return{...rr(e,t),generalErrorTitle:e.generalErrorTitle,generalErrorDescription:e.generalErrorDescription,fieldRequiredError:e.fieldRequiredError,invalidCharacterError:e.invalidCharacterError,fieldInvalidError:e.fieldInvalidError,continueButton:e.continueButton,backButton:e.backButton,cancelButton:e.cancelButton,isPartnerAlertHeader:e.isPartnerAlertHeader,isPartnerAlertDescription:e.isPartnerAlertDescription,loadingErrorAlertHeader:e.loadingErrorAlertHeader,loadingErrorAlertDescription:e.loadingErrorAlertDescription,taxAndPayoutsDescription:e.taxAndPayoutsDescription,searchForCountryText:e.searchForCountryText,formStep:e.formStep,supportLink:e.supportLink}}render(){var t,i;const a=r()?function(t){const[e,i]=x({namespace:Lt,initialValue:"/1"}),r=Et(t.stateController),o=Object.keys(r).reduce(((t,e)=>"sqm-tax-and-cash"===e?{...t,...r[e]}:{...t,[`${e}_stateController`]:r[e]}),{});return ut({step:e,setStep:i},t.demoData||o||{})}(this):function(){var t,e,i,r,a;const s=o(),l=n(),c=h(),[u]=d(Ct),[m,p]=x({namespace:Lt,initialValue:"/loading"}),[v,f]=x({namespace:Pt,initialValue:{}}),[g,b]=x({namespace:Bt,initialValue:{firstName:void 0,lastName:void 0,email:void 0,countryCode:void 0,currency:void 0}}),[k,C]=x({namespace:zt,initialValue:[]});x({namespace:Vt,initialValue:[]});const[E,F]=x({namespace:Ot,initialValue:[]}),{data:I,errors:S}=w({namespace:jt,query:$t,skip:!l,options:{batch:!1}}),R=(null===(i=null===(e=null===(t=null==I?void 0:I.user)||void 0===t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)||void 0===i?void 0:i.countryCode)||g.countryCode;w({namespace:Ut,query:Yt,skip:!l});const{data:q,refetch:A}=w({namespace:Ht,query:Wt,skip:!l,variables:{filter:function(){var t,e,i;return"/1"===m?{}:"/4"===m?{currency_eq:null===(i=null===(e=null===(t=null==I?void 0:I.user)||void 0===t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)||void 0===i?void 0:i.currency}:R?{countryCode_eq:R}:{}}()}}),{data:N}=w({namespace:Gt,query:Kt,skip:!l,variables:{locale:c}}),M=T((()=>{var t,e;return null===(e=null===(t=null==q?void 0:q.impactFinanceNetworkSettings)||void 0===t?void 0:t.data)||void 0===e?void 0:e.reduce(((t,e)=>{var i,r;const o=null===(r=null===(i=null==N?void 0:N.currencies)||void 0===i?void 0:i.data)||void 0===r?void 0:r.find((t=>t.currencyCode===e.currency));return o?t.find((t=>t.currencyCode===e.currency))||g.countryCode&&e.countryCode!==R?t:[...t,o]:t}),[])}),[q,R]),D=(null==c?void 0:c.replace("_","-"))||"en",L=(t,e)=>t.displayName<e.displayName?-1:1,P=null===(r=null==q?void 0:q.impactFinanceNetworkSettings)||void 0===r?void 0:r.data,B=T((()=>new Set(null==P?void 0:P.map((t=>t.countryCode)).filter((t=>t)))),[P]),z=["CA","GB","US"],V=T((()=>Array.from(B).map((t=>Nt({countryCode:t,locale:D}))).sort(L).reduce(((t,e)=>z.includes(e.countryCode)?[e,...t]:[...t,e]),[])),[B]);return _((()=>{V&&F(V)}),[V]),_((()=>{M&&C(M)}),[M]),_((()=>{if(S)p("/error");else if(s&&l&&I){const t=null==I?void 0:I.user;if(!t||"/loading"!==m)return;!async function(){var e;(null===(e=null==t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher)&&"STARTED"===(null==t?void 0:t.impactConnection.connectionStatus)&&(await async function(t){var e,i,r,o,a,n;const s=null===(e=null==t?void 0:t.impactConnection)||void 0===e?void 0:e.publisher;if(s.billingAddress&&s.billingCity&&s.billingCountryCode&&s.billingPostalCode&&s.phoneNumberCountryCode&&s.phoneNumber&&Mt(s.phoneNumberCountryCode,s.phoneNumber)&&"STARTED"===(null===(i=null==t?void 0:t.impactConnection)||void 0===i?void 0:i.connectionStatus)){const t={user:{id:null===(r=null==I?void 0:I.user)||void 0===r?void 0:r.id,accountId:null===(o=null==I?void 0:I.user)||void 0===o?void 0:o.accountId},firstName:null===(a=null==I?void 0:I.user)||void 0===a?void 0:a.firstName,lastName:null===(n=null==I?void 0:I.user)||void 0===n?void 0:n.lastName,countryCode:s.billingCountryCode,currency:s.currency,address:s.billingAddress,city:s.billingCity,state:s.billingState,postalCode:s.billingPostalCode,phoneNumber:s.phoneNumber,phoneNumberCountryCode:s.phoneNumberCountryCode};await u({vars:t})}}(t),await A());const i=function(t){var e,i;if(!(null===(e=t.impactConnection)||void 0===e?void 0:e.connected)||!(null===(i=t.impactConnection)||void 0===i?void 0:i.publisher))return"/1";const{requiredTaxDocumentType:r,currentTaxDocument:o,withdrawalSettings:a,brandedSignup:n,payoutsAccount:s,billingAddress:l,billingCity:d,billingCountryCode:c,billingPostalCode:u,phoneNumber:h,phoneNumberCountryCode:m}=t.impactConnection.publisher;return"COMPLETED"===t.impactConnection.connectionStatus||l&&d&&c&&u&&m&&h&&Mt(m,h)?r&&!o?s.hold&&s.holdReasons.includes("NO_W9_DOCUMENT")?"/dashboard":"/3":!a&&n?"/4":"/dashboard":"/1"}(t);p(i)}()}}),[s,l,null===(a=null==I?void 0:I.user)||void 0===a?void 0:a.email,S]),{step:m,setStep:p,context:v,namespace:y(Lt),loading:"/loading"===m}}();if(null===(t=this.demoData)||void 0===t?void 0:t.showTextProps){const t=dt(this);return e("div",null,null===(i=Object.keys(t))||void 0===i?void 0:i.map((t=>{if("demoData"!==t)return e("div",null,e("b",null,t,":")," ",this[t],e("hr",null))})))}switch(a.step){case"/1":return e("sqm-user-info-form",{exportparts:"form-container: container",...this.getGeneralStepTextProps("step1_")});case"/2":return e("sqm-indirect-tax-form",{exportparts:"form-container: container",...this.getGeneralStepTextProps("step2_")});case"/3":return e("sqm-docusign-form",{...this.getGeneralStepTextProps("step3_")});case"/4":return e("sqm-banking-info-form",{...this.getGeneralStepTextProps("step4_")});case"/dashboard":return e("sqm-tax-and-cash-dashboard",{exportparts:"dashboard-container: container",...this.getGeneralStepTextProps("dashboard_"),stateController:a["sqm-tax-and-cash-dashboard_stateController"]||"{}"});case"/error":return e(At,{loadingErrorAlertHeader:this.loadingErrorAlertHeader,loadingErrorAlertDescription:lt.formatMessage({id:"loadingErrorAlertDescription",defaultMessage:this.loadingErrorAlertDescription},{supportLink:e("a",{target:"_blank",href:"mailto:advocate-payment-support@impact.com"},this.supportLink)})})}return e(Dt,null)}},ar=class{constructor(e){t(this,e),this.ignored=!0,this.icon="gift",E(this)}disconnectedCallback(){}render(){return It().forEach((t=>{try{t.setIcon(this.icon)}catch{}})),e("div",null,e("style",{type:"text/css"},"\n\t\t:host{\n\t\t\tdisplay: block; \n\t\t}\n\n\t\t::slotted(*:not(:only-child):not(:last-child)) {\n\t\t\tmargin-bottom: var(--sl-spacing-xx-large);\n\t\t}\n\t"),e("slot",null))}},nr=()=>e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M22.5 7.5H18.6761H13.5V24H20.75C21.3023 24 21.75 23.5523 21.75 23V22.5V13.5H22.5H23C23.5523 13.5 24 13.0523 24 12.5V12V9V8.5C24 7.94772 23.5523 7.5 23 7.5H22.5Z",fill:"#F2C94C"}),e("path",{d:"M2.25 22.5V23C2.25 23.5523 2.69772 24 3.25 24H10.5V7.5H6.96363H1.5H1C0.447715 7.5 0 7.94772 0 8.5V9V12V12.5C0 13.0523 0.447715 13.5 1 13.5H1.5H2.25V22.5Z",fill:"#F2C94C"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.25 13.5V15H21.75V13.5H2.25Z",fill:"#BE9720"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 4.06424C21 5.39348 19.0041 7.4062 18 7.5H13.5V24H10.5027V7.5H6.88188C4.8187 7.05273 3 5.46806 3 3.78109C3 2.1371 3.71404 0.835051 5.01276 0.273062C6.25382 -0.26398 7.68678 0.0304991 8.81964 0.817C10.2101 1.78237 10.9902 3.59446 11.6978 5.2384C11.7599 5.38268 11.8215 5.52566 11.8828 5.66667C11.9426 5.53298 12.0028 5.3969 12.0638 5.25912C12.7649 3.67422 13.5654 1.86488 14.9106 0.893444C16.0997 0.0347157 17.6114 -0.289736 18.9181 0.298417C20.2693 0.906596 21 2.3018 21 4.06424ZM15.9185 2.25C16.6392 1.72957 17.502 1.63518 18.2396 2.25C18.8819 2.78542 18.9162 3.03745 18.9987 3.64389L19.0133 3.75C19.0133 4.64776 18.2396 6 17.4659 6C16.9177 6 16.4871 5.99537 16.0836 5.99103C15.3479 5.98312 14.702 5.97618 13.5974 6C13.808 5.59179 13.9761 5.20003 14.1365 4.82641C14.5654 3.82715 14.9386 2.95763 15.9185 2.25ZM7.40792 2.25C7.05911 2.00783 6.25921 2.11591 5.92748 2.25945C5.65341 2.37805 5.24403 2.73987 5.24403 3.78109C5.24403 4.79286 6.88188 5.66667 6.88188 5.66667C6.88188 5.66667 8.18161 6 10.5027 6C9.71258 4.04177 8.59336 3.073 7.40792 2.25Z",fill:"#EB5757"})),sr=()=>e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("circle",{cx:"12",cy:"12",r:"9",fill:"currentColor",stroke:"currentColor","stroke-width":"2"}));function lr(t){var i;const r=null!==(i=t.icon)&&void 0!==i?i:t.iconState,o=gt({TimelineReward:{color:t.textColor||"var(--sqm-text)",lineHeight:"var(--sl-line-height-dense)","& .container":{display:"flex"},"& .line":{display:"none",color:"transparent",userSelect:"none",background:t.lineColor||"var(--sqm-accent-color-icon)",width:"4px",borderRadius:"4px",margin:"-2px",position:"relative",left:"12px",top:"34px"},"& .step":{display:"flex"},"& .icon":{position:"relative",top:"4px",zIndex:"1",color:t.lineColor||"var(--sqm-accent-color-icon)",marginRight:"var(--sl-spacing-large)"},"& .reward":{marginRight:"var(--sl-spacing-x-small)",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)"},"& .unit":{textTransform:"uppercase",fontSize:"var(--sl-font-size-small)"},"& .description":{fontSize:"var(--sl-font-size-medium)"}}}),a=o.toString();return e("div",{class:o.classes.TimelineReward,part:"sqm-base"},e("style",{type:"text/css"},a,"\n\t:host{\n\t\tdisplay: block; \n\t}\n\n\t:host(:not(:last-of-type)) .line {\n\t\tdisplay: block; \n\t}\n\t"),e("div",{class:"container",part:"sqm-entry-container"},e("div",{class:"line"},"/"),e("div",{class:"step"},"gift"===r&&e("div",{class:"icon"},e(nr,null)),"circle"===r&&e("div",{class:"icon"},e(sr,null)),e("div",null,e("div",null,e("span",{class:"reward",part:"sqm-reward"},t.reward),e("span",{class:"unit",part:"sqm-unit"},t.unit)),e("div",{class:"description",part:"sqm-description"},t.desc)))))}const dr=class{async setIcon(t){this.iconState=t}constructor(e){t(this,e),this.ignored=!0,this.textColor=void 0,this.lineColor=void 0,this.reward=void 0,this.unit=void 0,this.desc=void 0,this.icon=void 0,this.iconState="gift",E(this)}disconnectedCallback(){}render(){return Jt([this.reward]),e(lr,{...dt(this)})}};function cr(t){const r=gt({P:{margin:"0",padding:"0",fontSize:t.fontSize?`${t.fontSize}px`:"inherit",fontWeight:t.fontWeight||"inherit",color:t.color||"var(--sqm-text)"}}),o=r.toString(),a=e("sqm-skeleton",{width:"200px",height:"20px"});return e(i,null,e("style",null,o),e("p",{class:r.classes.P,part:"sqm-base"},t.loading?a:t.value))}const ur=a.gql`
|
|
265
|
+
query getCustomFields {
|
|
266
|
+
viewer {
|
|
267
|
+
... on User {
|
|
268
|
+
customFields
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
`,hr=class{constructor(e){t(this,e),this.ignored=!0,this.value=void 0,this.fontSize=void 0,this.color=void 0,this.fontWeight=void 0,this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=r()?function(t){return ut({loading:!1,value:"Custom Field Value",fontSize:t.fontSize,color:t.color,fontWeight:t.fontWeight},t.demoData||{})}(this):function(t){var e,i;const r=n(),o=c(ur,{},!(null==r?void 0:r.jwt)),a=o.loading,s=null===(i=null===(e=o.data)||void 0===e?void 0:e.viewer)||void 0===i?void 0:i.customFields;let l=null==s?void 0:s[t.value];return"lastSeenDate"===t.value&&"number"==typeof l&&(l=Zt.DateTime.fromMillis(l).toLocaleString(Zt.DateTime.DATE_MED)),{loading:a,value:l,fontSize:t.fontSize,color:t.color,fontWeight:t.fontWeight}}(this);return null==t.value?e(i,{style:{display:"none"}}):e(cr,{...t})}};function mr(t){return e(i,null,t.loading?t.loadingText:t.username)}const pr=a.gql`
|
|
273
|
+
query getUserName {
|
|
274
|
+
viewer {
|
|
275
|
+
... on User {
|
|
276
|
+
firstName
|
|
277
|
+
lastName
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
`,vr=class{constructor(e){t(this,e),this.ignored=!0,this.fallback="Anonymous User",this.loadingText="...",this.demoData=void 0,E(this)}disconnectedCallback(){}render(){const t=r()?function(t){return ut({loading:!1,loadingText:"...",username:"John Smith"},t.demoData||{})}(this):function(t){var e,i,r,o,a,s,l,d;const u=n(),h=c(pr,{},!(null==u?void 0:u.jwt)),m=(null===(i=null===(e=h.data)||void 0===e?void 0:e.viewer)||void 0===i?void 0:i.firstName)||(null===(o=null===(r=h.data)||void 0===r?void 0:r.viewer)||void 0===o?void 0:o.lastName)?`${null===(s=null===(a=h.data)||void 0===a?void 0:a.viewer)||void 0===s?void 0:s.firstName} ${null===(d=null===(l=h.data)||void 0===l?void 0:l.viewer)||void 0===d?void 0:d.lastName}`:t.fallback;return{loadingText:t.loadingText,loading:h.loading,username:m}}(this);return e(mr,{...t})}};function fr(t){var e,i,r;if(null===(e=null==t?void 0:t.impactConnection)||void 0===e?void 0:e.connected)return"content";if(!(null==t?void 0:t.emailVerified)&&!(null===(i=null==t?void 0:t.managedIdentity)||void 0===i?void 0:i.emailVerified))return"verify";const o=null===(r=null==t?void 0:t.cashRewards)||void 0===r?void 0:r.totalCount;return null==o||o>0?"partner":"content"}const gr=a.gql`
|
|
282
|
+
query checkUserVerification {
|
|
283
|
+
viewer {
|
|
284
|
+
... on User {
|
|
285
|
+
id
|
|
286
|
+
accountId
|
|
287
|
+
email
|
|
288
|
+
emailVerified
|
|
289
|
+
managedIdentity {
|
|
290
|
+
email
|
|
291
|
+
emailVerified
|
|
292
|
+
}
|
|
293
|
+
impactConnection {
|
|
294
|
+
connected
|
|
295
|
+
}
|
|
296
|
+
cashRewards: rewards(
|
|
297
|
+
limit: 1
|
|
298
|
+
filter: {
|
|
299
|
+
rewardedCash_eq: true
|
|
300
|
+
statuses_nin: [{ status: CANCELLED }, { status: EXPIRED }]
|
|
301
|
+
}
|
|
302
|
+
) {
|
|
303
|
+
totalCount
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
`;const br=gt({Dialog:{"&::part(base)":{alignItems:"flex-start"},"&::part(panel)":{maxWidth:"480px",marginTop:"var(--sl-spacing-x-large)"},"&::part(body)":{padding:"0 var(--sl-spacing-x-large)",fontSize:"var(--sl-font-size-small)",overflow:"visible"},"&::part(footer)":{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-small)"},"&::part(overlay)":{background:"rgba(0, 0, 0, 0.5)"}},DialogTitle:{fontSize:"var(--sl-font-size-x-large)",fontWeight:"600",padding:"var(--sl-spacing-x-large) 0 0 0",margin:"0"}}),yr=br.toString(),xr=class{constructor(e){t(this,e),this.general_widgetHeaderWithPartnerCreation="Let's get you ready for rewards",this.emailStep_verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.",this.emailStep_sendCodeErrorHeader="There was an error sending your code.",this.emailStep_sendCodeErrorDescription="Please try again. If this problem continues, contact our program support team.",this.emailStep_emailLabel="Email",this.emailStep_sendCodeText="Send code",this.emailStep_emailValidationErrorText="Please enter a valid email",this.codeStep_verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_resendCodeText="Didn't receive your code? {resendCodeLink}",this.codeStep_resendCodeLabel="Resend code",this.codeStep_codeResentSuccessfullyText="Another code has been sent to {email}",this.codeStep_invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.",this.codeStep_verifyText="Verify",this.codeStep_networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.",this.createPartnerStep_modalHeader="Let's get you ready for rewards",this.createPartnerStep_modalHeaderExistingPartner="We found an existing account",this.createPartnerStep_descriptionNewPartner="Confirm your country and currency now to get your future rewards faster.",this.createPartnerStep_descriptionExistingPartner="We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.",this.createPartnerStep_supportDescriptionExistingPartner="If this is a mistake, please contact Support or sign up for this referral program with a different email.",this.createPartnerStep_countryLabel="Country",this.createPartnerStep_currencyLabel="Currency",this.createPartnerStep_submitButtonLabel="Submit",this.createPartnerStep_confirmButtonLabel="Confirm",this.createPartnerStep_searchCountryPlaceholder="Search for a country",this.createPartnerStep_searchCurrencyPlaceholder="Search for a currency",this.createPartnerStep_networkErrorText="An error occurred. Please try again.",this.createPartnerStep_emailVerificationErrorText="Please log in to {loginLinkText} to review your account status. You may need to complete email verification or other pending steps. Once resolved, refresh this page to proceed.",this.createPartnerStep_missingFieldsErrorText="Please select both a country and currency.",this.stateController="{}",E(this)}disconnectedCallback(){}getStepTextProps(t){return rr(dt(this),t)}render(){var t;const i=r()?function(t){const[e,i]=x({namespace:Xt,initialValue:!1});x({namespace:Qt,initialValue:void 0});const r=k(te),o=Et(t.stateController),a=Object.keys(o).reduce(((t,e)=>"sqm-widget-verification"===e?{...t,...o[e]}:{...t,[`${e}_stateController`]:o[e]}),{});return ut({showCode:e,showPartnerModal:!1,onVerification:()=>{r(!0)},onPartnerModalComplete:()=>{},onInitialFocus:t=>t.preventDefault(),loading:!1},a||{})}(this):function(){const[t]=x({namespace:Xt,initialValue:!1});x({namespace:Qt,initialValue:void 0});const e=k(te),[i,r]=I(!0),[o,a]=x({namespace:ee,initialValue:!1}),[n,s]=x({namespace:ie,initialValue:!1}),[l]=C(gr);_((()=>{(async()=>{try{const t=await l({});if(!t||t instanceof Error)throw new Error;const i=fr(t.viewer);"content"===i?e(!0):"partner"===i&&a(!0)}catch(t){console.error("Could not fetch user information:",t)}finally{r(!1)}})()}),[]);const d=()=>{a(!1),s(!1),e(!0)};return _((()=>{n&&d()}),[n]),{showCode:t,showPartnerModal:o,onVerification:async()=>{const t=await l({});var i;"partner"==(i=!t||t instanceof Error?void 0:t.viewer,"partner"===fr({...i,emailVerified:!0})?"partner":"content")?a(!0):e(!0)},onPartnerModalComplete:d,loading:i}}();if(i.loading)return e("sl-spinner",null);const o="string"==typeof i["sqm-partner-info-modal_stateController"]?Et(i["sqm-partner-info-modal_stateController"]):i["sqm-partner-info-modal_stateController"];if(i.showPartnerModal&&!1===(null===(t=null==o?void 0:o.states)||void 0===t?void 0:t.open))return e("div",null);const a=this.getStepTextProps("createPartnerStep_"),n=this.general_widgetHeaderWithPartnerCreation;return e("div",null,e("style",{type:"text/css"},yr),e("sl-dialog",{class:br.classes.Dialog,noHeader:!0,open:!0,label:n,"onSl-request-close":t=>{t.preventDefault()},"onSl-hide":t=>{var e;"SL-DIALOG"===(null===(e=t.target)||void 0===e?void 0:e.tagName)&&t.preventDefault()},"onSl-initial-focus":t=>{var e;null===(e=i.onInitialFocus)||void 0===e||e.call(i,t)}},e("h2",{class:br.classes.DialogTitle},n),(()=>i.showPartnerModal?e("sqm-partner-info-modal",{inModal:!0,...a,stateController:i["sqm-partner-info-modal_stateController"]||"{}",exportparts:"sqm-base: step-base, primarybutton-base"}):i.showCode?e("sqm-code-verification",{onVerification:i.onVerification,...this.getStepTextProps("codeStep_"),...rr(i,"sqm-code-verification_"),exportparts:"sqm-base: step-base, primarybutton-base"}):e("sqm-email-verification",{...this.getStepTextProps("emailStep_"),...rr(i,"sqm-email-verification_"),exportparts:"sqm-base: step-base, primarybutton-base"}))()))}};export{ae as sqm_big_stat,Ce as sqm_brand,_e as sqm_brand_selector,Fe as sqm_card_feed,Se as sqm_checkbox_field,qe as sqm_coupon_code,Ne as sqm_divided_layout,Me as sqm_dropdown_field,Be as sqm_edit_profile,ze as sqm_hero,Oe as sqm_hero_image,je as sqm_hook_story_container,Ue as sqm_image,Ye as sqm_input_field,He as sqm_lead_dropdown_field,Ke as sqm_lead_form,ti as sqm_leaderboard,ai as sqm_link_button,ni as sqm_marketing_emails_checkbox,si as sqm_name_fields,di as sqm_navigation_menu,pi as sqm_payout_button_scroll,bi as sqm_payout_status_alert,ki as sqm_portal_change_marketing,Ci as sqm_portal_change_password,Ei as sqm_portal_footer,_i as sqm_portal_frame,Si as sqm_portal_google_registration_form,Ri as sqm_program_explainer,Ai as sqm_program_explainer_step,Mi as sqm_program_menu,Li as sqm_referral_card,Bi as sqm_referral_iframe,zi as sqm_referred_registration,Ui as sqm_reward_exchange_list,Gi as sqm_router,Ki as sqm_share_button,Xi as sqm_share_code,Qi as sqm_share_link,tr as sqm_stat_container,ir as sqm_task_card,or as sqm_tax_and_cash,ar as sqm_timeline,dr as sqm_timeline_entry,hr as sqm_user_attribute,vr as sqm_user_name,xr as sqm_widget_verification}
|