@saasquatch/mint-components 1.15.0-99 → 1.16.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ErrorView-b2fcf954.js +35 -0
- package/dist/cjs/{GenericTableView-a9845e80.js → GenericTableView-a9f4ba75.js} +8 -8
- package/dist/cjs/{ShadowViewAddon-c06b2910.js → ShadowViewAddon-28865623.js} +1531 -1495
- package/dist/cjs/copy-text-view-c85acaaa.js +96 -0
- package/dist/cjs/{email-registration-view-ace50780.js → email-registration-view-55b378dc.js} +3 -5
- package/dist/cjs/{global-4cd8623e.js → global-e31dc4f5.js} +10494 -10772
- package/dist/cjs/{index-a43a63b4.js → index-a29c60ef.js} +0 -4
- package/dist/cjs/{index.module-4f54e412.js → index.module-ee84433d.js} +191 -191
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-949beaf2.js → luxon-2926d85f.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mixins-4761d472.js → mixins-f7e0377a.js} +6 -6
- package/dist/cjs/{mockRewardData-df37c8a3.js → mockRewardData-7815f10f.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-d516138a.js → re-render-b324deab.js} +4 -4
- package/dist/cjs/sqm-asset-card-view-21ddf04f.js +51 -0
- package/dist/cjs/sqm-asset-card.cjs.entry.js +45 -0
- package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +2504 -706
- package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-8a2c8763.js} +3 -3
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +783 -1273
- package/dist/cjs/{sqm-close-button-view-5e85ac51.js → sqm-close-button-view-ea3fa23b.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
- package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
- package/dist/cjs/sqm-email-verification.cjs.entry.js +28 -152
- package/dist/cjs/sqm-empty_4.cjs.entry.js +63 -58
- package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
- package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
- package/dist/cjs/sqm-invoice-table-view-5c74607f.js +2074 -0
- package/dist/cjs/sqm-lead-checkbox-field-view-34d94919.js +83 -0
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +81 -0
- package/dist/cjs/sqm-lead-input-field-view-89308aab.js +51 -0
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +88 -0
- package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +10 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-logout-current-user-view-b61c8bdf.js → sqm-logout-current-user-view-11d57c12.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +45 -0
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +8 -31
- package/dist/cjs/{sqm-navigation-sidebar-view-de90ef03.js → sqm-navigation-sidebar-view-17111896.js} +8 -18
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +9 -25
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +70 -97
- package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
- package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-container-view-07e4343f.js → sqm-portal-container-view-4f15143a.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-5a22b152.js → sqm-portal-email-verification-view-7ebb426a.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-forgot-password-view-0a8d3243.js → sqm-portal-forgot-password-view-78f19ef9.js} +16 -24
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +10 -39
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
- package/dist/cjs/{sqm-portal-login-view-bb50304c.js → sqm-portal-login-view-761a4d8e.js} +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-4dbfeaeb.js → sqm-portal-profile-view-33164798.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-registration-form-view-5a96c2f5.js → sqm-portal-registration-form-view-637a4bf4.js} +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-reset-password-view-25eb2099.js → sqm-portal-reset-password-view-fe602822.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-verify-email-view-1c4e781f.js → sqm-portal-verify-email-view-7b678f34.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-qr-code-view-0c3b2f48.js → sqm-qr-code-view-15dfc0b6.js} +10 -10
- package/dist/cjs/sqm-qr-code.cjs.entry.js +13 -12
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +47 -132
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +178 -0
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +36 -83
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-scroll.cjs.entry.js +3 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +14117 -15117
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +13 -27
- package/dist/cjs/sqm-text-span-view-0aa82125.js +62 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -19
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +13 -25
- package/dist/cjs/{dom-context-hooks.module-7fa676ae.js → stencil-hooks.module-3a336b0f.js} +18 -18
- package/dist/cjs/{useChildElements-966c9041.js → useChildElements-1b35d945.js} +5 -5
- package/dist/cjs/{useInstantAccessRegistration-08bcb487.js → useInstantAccessRegistration-0537e28e.js} +4 -4
- package/dist/cjs/useLeadFormState-c83d2034.js +72 -0
- package/dist/cjs/{usePayoutStatus-3b34dab1.js → usePayoutStatus-c84a7d98.js} +13 -10
- package/dist/cjs/{usePortalLogin-6aa864ef.js → usePortalLogin-63d896d1.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-75b647fe.js → usePortalRegistrationForm-f25d89e7.js} +6 -6
- package/dist/cjs/{useReferralCodes-11cdf43b.js → useReferralCodes-82e8797b.js} +3 -3
- package/dist/cjs/{useReferralTable-90d4d6e9.js → useReferralTable-7c3f9600.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-bbee6e7b.js → useRegistrationFormState-7b820f0c.js} +6 -6
- package/dist/cjs/{useVerificationEmail-9dd3997a.js → useVerificationEmail-95a82767.js} +6 -6
- package/dist/cjs/{utilities-9a0c5e91.js → utilities-78f5e169.js} +4 -4
- package/dist/cjs/{utils-7cbd60cc.js → utils-6847bc06.js} +0 -5
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +29 -0
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +46 -0
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +107 -0
- package/dist/collection/components/sqm-asset-card/useAssetCard.js +9 -0
- package/dist/collection/components/sqm-big-stat/BigStat.stories.js +0 -13
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +8 -15
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +4 -171
- package/dist/collection/components/sqm-big-stat/useBigStat.js +8 -127
- package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +5 -14
- package/dist/collection/components/sqm-brand/sqm-brand.js +4 -12
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +0 -2
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +11 -4
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +0 -1
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +0 -4
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +48 -145
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +65 -3
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +6 -14
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +3 -62
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +16 -8
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +11 -50
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +0 -1
- package/dist/collection/components/sqm-hero/Hero.stories.js +0 -11
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +6 -13
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -30
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +4 -4
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +0 -80
- package/dist/collection/components/sqm-image/sqm-image.js +0 -1
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -4
- package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +1 -2
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
- package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +3 -6
- package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +44 -0
- package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +93 -0
- package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +62 -0
- package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +49 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +79 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +234 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +65 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +251 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +123 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +495 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +47 -0
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +251 -0
- package/dist/collection/components/sqm-lead-form/useCheckboxField.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadDropdownField.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +155 -0
- package/dist/collection/components/sqm-lead-form/useLeadFormState.js +10 -0
- package/dist/collection/components/sqm-lead-form/useLeadInputField.js +10 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +0 -37
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +54 -60
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +36 -202
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +0 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +3 -28
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +0 -1
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +0 -1
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +7 -17
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +5 -85
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +7 -18
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -233
- package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +1 -9
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +2 -43
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +4 -8
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +8 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +0 -1
- 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 +13 -21
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -103
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +36 -41
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +2 -102
- package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +1 -4
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +5 -10
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -2
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +0 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +0 -1
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +0 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +3 -1
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +0 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +0 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -12
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +2 -77
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +0 -1
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +7 -2
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +0 -1
- package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +31 -34
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +10 -81
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -3
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -170
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -6
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +1 -29
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +20 -53
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +7 -62
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -4
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +3 -6
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +3 -6
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +2 -4
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -4
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +10 -3
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +5 -31
- package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +42 -39
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +7 -50
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +5 -6
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +4 -5
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +7 -56
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +3 -5
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +2 -4
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
- package/dist/collection/components/sqm-route/sqm-route.js +0 -1
- package/dist/collection/components/sqm-router/sqm-router.js +0 -2
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +0 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -3
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +22 -23
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +10 -57
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -170
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +1 -13
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +3 -172
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +9 -21
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +2 -112
- package/dist/collection/components/sqm-stencilbook/Themes.js +33 -325
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +107 -81
- package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +0 -7
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +2 -16
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -30
- package/dist/collection/components/sqm-task-card/DetailsView.js +2 -8
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +2 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +157 -139
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -147
- package/dist/collection/components/sqm-task-card/useTaskCard.js +0 -10
- package/dist/collection/components/sqm-text/sqm-text.js +48 -101
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +43 -44
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +2 -52
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +1 -8
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +0 -52
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +1 -3
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +2 -12
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +14 -138
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +7 -39
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +8 -45
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +26 -13
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +69 -19
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +76 -21
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +71 -54
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +27 -24
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -26
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +62 -19
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +76 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +27 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +180 -77
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +8 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +111 -98
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +134 -80
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +54 -167
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/components/views/copy-text-view.js +38 -69
- package/dist/collection/components/views/email-registration-view.js +1 -3
- package/dist/collection/global/global.js +12 -27
- package/dist/collection/global/mixins.js +8 -8
- package/dist/collection/global/styles.js +99 -330
- package/dist/collection/global/styles.ts +100 -419
- package/dist/collection/stories/PortalTemplates.stories.js +30 -22
- package/dist/collection/tables/GenericTableView.js +6 -6
- package/dist/collection/utils/utils.js +0 -4
- package/dist/esm/ErrorView-48e2b969.js +33 -0
- package/dist/esm/{GenericTableView-e43d310f.js → GenericTableView-7b9087af.js} +8 -8
- package/dist/esm/{ShadowViewAddon-cf7c03a0.js → ShadowViewAddon-f2176779.js} +1525 -1492
- package/dist/esm/copy-text-view-782137ba.js +94 -0
- package/dist/esm/{email-registration-view-1f587f8b.js → email-registration-view-a7818cf2.js} +3 -5
- package/dist/esm/{global-f97ae778.js → global-be1f9992.js} +8276 -8553
- package/dist/esm/{index-b3a06de8.js → index-91e7729f.js} +0 -4
- package/dist/esm/{index.module-38dad6c9.js → index.module-89a79f66.js} +153 -153
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-bbf75a9d.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mixins-f750863a.js → mixins-83f90fa1.js} +6 -6
- package/dist/esm/{mockRewardData-96a2d26d.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-9c90767d.js → re-render-cc945f38.js} +2 -2
- package/dist/esm/sqm-asset-card-view-fe5db3c0.js +49 -0
- package/dist/esm/sqm-asset-card.entry.js +41 -0
- package/dist/esm/{sqm-banking-info-form_10.entry.js → sqm-banking-info-form_17.entry.js} +2342 -551
- package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-593d4ac3.js} +3 -3
- package/dist/esm/sqm-big-stat_43.entry.js +691 -1181
- package/dist/esm/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-f9819751.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -5
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-email-verification.entry.js +21 -145
- package/dist/esm/sqm-empty_4.entry.js +60 -55
- package/dist/esm/sqm-form-message.entry.js +7 -7
- package/dist/esm/sqm-google-sign-in.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
- package/dist/esm/sqm-invoice-table-view-3491dd80.js +2058 -0
- package/dist/esm/sqm-lead-checkbox-field-view-a8c1c78e.js +81 -0
- package/dist/esm/sqm-lead-checkbox-field.entry.js +77 -0
- package/dist/esm/sqm-lead-input-field-view-4ede5d7f.js +49 -0
- package/dist/esm/sqm-lead-input-field.entry.js +84 -0
- package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +8 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
- package/dist/esm/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +43 -0
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -30
- package/dist/esm/{sqm-navigation-sidebar-view-0a2ec560.js → sqm-navigation-sidebar-view-9d802b78.js} +8 -18
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -22
- package/dist/esm/sqm-pagination_3.entry.js +64 -91
- package/dist/esm/sqm-password-field.entry.js +6 -6
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-container-view-176e92e3.js → sqm-portal-container-view-1683ae32.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-98fc3374.js → sqm-portal-email-verification-view-35b4353b.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
- package/dist/esm/{sqm-portal-forgot-password-view-0e795cdd.js → sqm-portal-forgot-password-view-3d3182f1.js} +16 -24
- package/dist/esm/sqm-portal-forgot-password.entry.js +7 -36
- package/dist/esm/sqm-portal-google-login.entry.js +8 -8
- package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
- package/dist/esm/{sqm-portal-login-view-7670cd86.js → sqm-portal-login-view-7e49609a.js} +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-25b3250a.js → sqm-portal-profile-view-93003974.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +8 -8
- package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
- package/dist/esm/{sqm-portal-registration-form-view-8bdc3804.js → sqm-portal-registration-form-view-3c1f6000.js} +3 -3
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-54a8651f.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
- package/dist/esm/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-b12cb894.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/{sqm-qr-code-view-97124a66.js → sqm-qr-code-view-f1d0763b.js} +9 -9
- package/dist/esm/sqm-qr-code.entry.js +7 -6
- package/dist/esm/sqm-referral-table_11.entry.js +36 -121
- package/dist/esm/sqm-referred-registration.entry.js +174 -0
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +24 -71
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-scroll.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +14111 -15111
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +10 -24
- package/dist/esm/sqm-text-span-view-ca32495e.js +60 -0
- package/dist/esm/sqm-text-span.entry.js +6 -6
- package/dist/esm/sqm-widget-verification-controller.entry.js +6 -14
- package/dist/esm/sqm-widget-verification.entry.js +10 -22
- package/dist/esm/{dom-context-hooks.module-63370afd.js → stencil-hooks.module-4bc38af4.js} +13 -13
- package/dist/esm/{useChildElements-4e70ac0e.js → useChildElements-7945ae56.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-0f04459e.js → useInstantAccessRegistration-dc4ad9f2.js} +3 -3
- package/dist/esm/useLeadFormState-9016d812.js +68 -0
- package/dist/esm/{usePayoutStatus-7eeec61b.js → usePayoutStatus-f07bcf90.js} +10 -7
- package/dist/esm/{usePortalLogin-d0720c81.js → usePortalLogin-ef647a50.js} +3 -3
- package/dist/esm/{usePortalRegistrationForm-afc0171e.js → usePortalRegistrationForm-4b35a357.js} +3 -3
- package/dist/esm/{useReferralCodes-311e6d72.js → useReferralCodes-8f75921a.js} +2 -2
- package/dist/esm/{useReferralTable-65a01a6a.js → useReferralTable-b3876ed6.js} +5 -5
- package/dist/esm/{useRegistrationFormState-18c2cea7.js → useRegistrationFormState-d6f33135.js} +2 -2
- package/dist/esm/{useVerificationEmail-f9413de9.js → useVerificationEmail-edc318cb.js} +2 -2
- package/dist/esm/{utilities-ad9c2893.js → utilities-5b0ca040.js} +2 -2
- package/dist/esm/{utils-03188de2.js → utils-334c1e34.js} +1 -5
- package/dist/esm-es5/ErrorView-48e2b969.js +1 -0
- package/dist/esm-es5/GenericTableView-7b9087af.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-f2176779.js +1 -0
- package/dist/esm-es5/copy-text-view-782137ba.js +1 -0
- package/dist/esm-es5/email-registration-view-a7818cf2.js +1 -0
- package/dist/esm-es5/{global-f97ae778.js → global-be1f9992.js} +5 -5
- package/dist/esm-es5/{index-b3a06de8.js → index-91e7729f.js} +1 -1
- package/dist/esm-es5/index.module-89a79f66.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/luxon-8d51c92b.js +1 -0
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/mixins-83f90fa1.js +1 -0
- package/dist/esm-es5/{mockRewardData-96a2d26d.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/re-render-cc945f38.js +1 -0
- package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +1 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
- package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-593d4ac3.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-f9819751.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-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-view-3491dd80.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field-view-a8c1c78e.js +1 -0
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field-view-4ede5d7f.js +1 -0
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.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-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-176e92e3.js → sqm-portal-container-view-1683ae32.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-98fc3374.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +1 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-25b3250a.js → sqm-portal-profile-view-93003974.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-8bdc3804.js → sqm-portal-registration-form-view-3c1f6000.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-54a8651f.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-b12cb894.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-qr-code-view-f1d0763b.js +1 -0
- 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-referred-registration.entry.js +1 -0
- 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-ca32495e.js +1 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +53 -0
- package/dist/esm-es5/useChildElements-7945ae56.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +1 -0
- package/dist/esm-es5/useLeadFormState-9016d812.js +1 -0
- package/dist/esm-es5/{usePayoutStatus-7eeec61b.js → usePayoutStatus-f07bcf90.js} +2 -2
- package/dist/esm-es5/usePortalLogin-ef647a50.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +1 -0
- package/dist/esm-es5/useReferralCodes-8f75921a.js +1 -0
- package/dist/esm-es5/useReferralTable-b3876ed6.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-d6f33135.js +1 -0
- package/dist/esm-es5/useVerificationEmail-edc318cb.js +1 -0
- package/dist/esm-es5/utilities-5b0ca040.js +1 -0
- package/dist/esm-es5/utils-334c1e34.js +1 -0
- package/dist/mint-components/global/styles.ts +100 -419
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-00658daa.entry.js +205 -0
- package/dist/mint-components/p-00df0cac.js +1 -0
- package/dist/mint-components/p-00ed4c2e.entry.js +1 -0
- package/dist/mint-components/p-01dd541f.system.js +1 -0
- package/dist/mint-components/p-04a6e457.entry.js +1 -0
- package/dist/mint-components/{p-f307b716.js → p-05f29f64.js} +1 -1
- package/dist/mint-components/p-08090b99.entry.js +144 -0
- package/dist/mint-components/p-0b4cac9f.system.entry.js +1 -0
- package/dist/mint-components/p-0c78815e.system.entry.js +1 -0
- package/dist/mint-components/{p-fa6fba34.system.js → p-0c9debc1.system.js} +2 -2
- package/dist/mint-components/{p-bb12b845.system.js → p-0d182dc1.system.js} +1 -1
- package/dist/mint-components/{p-8dc1cd0f.entry.js → p-0d2d0b6d.entry.js} +1 -1
- package/dist/mint-components/p-0d939b73.system.js +1 -0
- package/dist/mint-components/p-0ebab63e.system.js +1 -0
- package/dist/mint-components/{p-e0f9a395.entry.js → p-10d17989.entry.js} +1 -1
- package/dist/mint-components/{p-a6f4fb03.system.js → p-127e66c2.system.js} +1 -1
- package/dist/mint-components/p-12bba567.entry.js +1 -0
- package/dist/mint-components/{p-3dc34570.system.js → p-13ed8586.system.js} +1 -1
- package/dist/mint-components/p-141bf5c1.system.entry.js +1 -0
- package/dist/mint-components/p-14a65f29.system.js +1 -0
- package/dist/mint-components/p-1513309d.entry.js +1 -0
- package/dist/mint-components/{p-0cba75e6.system.entry.js → p-164a9103.system.entry.js} +1 -1
- package/dist/mint-components/{p-910f56ca.system.entry.js → p-18425f38.system.entry.js} +1 -1
- package/dist/mint-components/{p-fb2976fc.system.entry.js → p-19bc3406.system.entry.js} +1 -1
- package/dist/mint-components/p-19ccb4ce.js +1 -0
- package/dist/mint-components/{p-b9bccc55.entry.js → p-1a6b7d2a.entry.js} +1 -1
- package/dist/mint-components/p-1b3ab15a.system.entry.js +1 -0
- package/dist/mint-components/p-1d704c40.system.js +1 -0
- package/dist/mint-components/p-1fa9ed0d.system.entry.js +1 -0
- package/dist/mint-components/p-21620f81.system.entry.js +1 -0
- package/dist/mint-components/p-229f797b.js +1 -0
- package/dist/mint-components/p-24db5c70.js +1 -0
- package/dist/mint-components/{p-00791abc.js → p-266a8b4d.js} +1 -1
- package/dist/mint-components/p-275b4767.entry.js +1 -0
- package/dist/mint-components/{p-0b0f49ad.entry.js → p-284e4ed5.entry.js} +1 -1
- package/dist/mint-components/{p-711bc624.entry.js → p-2ae0e06a.entry.js} +1 -1
- package/dist/mint-components/p-2bbff88f.entry.js +1 -0
- package/dist/mint-components/{p-91014439.system.js → p-2d52e2d7.system.js} +1 -1
- package/dist/mint-components/p-2da21ba4.entry.js +1 -0
- package/dist/mint-components/p-2dca9e1a.system.js +1 -0
- package/dist/mint-components/{p-d5f1df29.entry.js → p-2f101bae.entry.js} +1 -1
- package/dist/mint-components/{p-485e2d9f.system.entry.js → p-301ddcaa.system.entry.js} +1 -1
- package/dist/mint-components/p-31015791.js +1 -0
- package/dist/mint-components/p-33c96e14.entry.js +16 -0
- package/dist/mint-components/{p-a45680fe.js → p-35b475bf.js} +1 -1
- package/dist/mint-components/{p-0d22c0e5.system.entry.js → p-36ffebd8.system.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -0
- package/dist/mint-components/p-380bfde1.entry.js +1 -0
- package/dist/mint-components/p-38e5c429.system.js +1 -0
- package/dist/mint-components/p-38fc919b.entry.js +1 -0
- package/dist/mint-components/p-3a62a7e2.system.js +1 -0
- package/dist/mint-components/p-3b90e01b.system.js +1 -0
- package/dist/mint-components/p-3db34d68.js +1 -0
- package/dist/mint-components/p-3f6e0197.system.entry.js +1 -0
- package/dist/mint-components/{p-862845d7.js → p-3f7b81b8.js} +2 -2
- package/dist/mint-components/p-420554af.system.entry.js +1 -0
- package/dist/mint-components/p-42187319.system.entry.js +1 -0
- package/dist/mint-components/p-43b4bb99.entry.js +1 -0
- package/dist/mint-components/p-4428294b.entry.js +1 -0
- package/dist/mint-components/p-4465b8e0.system.entry.js +1 -0
- package/dist/mint-components/{p-c3884e55.entry.js → p-44891949.entry.js} +1 -1
- package/dist/mint-components/p-4794641c.system.js +1 -0
- package/dist/mint-components/p-48135f99.system.js +53 -0
- package/dist/mint-components/p-48c69c2d.entry.js +1 -0
- package/dist/mint-components/p-492b70db.system.js +1 -0
- package/dist/mint-components/p-49932f12.system.js +1 -0
- package/dist/mint-components/{p-4204a6e3.entry.js → p-4b6dc0e5.entry.js} +1 -1
- package/dist/mint-components/{p-fb5be0c5.js → p-4e451f75.js} +1 -1
- package/dist/mint-components/{p-5ed49bf2.js → p-4e526a94.js} +1 -1
- package/dist/mint-components/p-4e5af50c.js +1 -0
- package/dist/mint-components/{p-3d05ebb1.system.entry.js → p-50c902ca.system.entry.js} +1 -1
- package/dist/mint-components/{p-82505f6e.system.js → p-527216de.system.js} +1 -1
- package/dist/mint-components/{p-bb627d95.entry.js → p-53730ffe.entry.js} +3 -3
- package/dist/mint-components/{p-9fb8b33a.system.js → p-5488fdd9.system.js} +1 -1
- package/dist/mint-components/{p-578a27c8.system.js → p-59274a91.system.js} +1 -1
- package/dist/mint-components/{p-08700497.js → p-5bedb58c.js} +1 -1
- package/dist/mint-components/{p-ebb487d0.system.entry.js → p-5c28406d.system.entry.js} +1 -1
- package/dist/mint-components/p-5cb7f9fc.system.entry.js +1 -0
- package/dist/mint-components/p-6055eb4c.system.js +1 -0
- package/dist/mint-components/p-626e9e84.js +1 -0
- package/dist/mint-components/p-6333265f.system.js +1 -0
- package/dist/mint-components/p-635d5ef2.system.js +1 -0
- package/dist/mint-components/{p-750e7b01.js → p-63a75798.js} +1 -1
- package/dist/mint-components/p-6427e963.entry.js +1 -0
- package/dist/mint-components/p-65069b66.js +1248 -0
- package/dist/mint-components/p-653f963f.entry.js +13 -0
- package/dist/mint-components/p-65ba9e94.entry.js +1 -0
- package/dist/mint-components/{p-42b62299.system.entry.js → p-6a8d9def.system.entry.js} +1 -1
- package/dist/mint-components/p-6b7a595f.system.js +1 -0
- package/dist/mint-components/p-6ba44ca9.js +1 -0
- package/dist/mint-components/{p-0e59a91e.js → p-6bb25c02.js} +3 -3
- package/dist/mint-components/p-6cd4f2b1.system.js +1 -0
- package/dist/mint-components/{p-4d19270b.js → p-6d2f5a1d.js} +2 -2
- package/dist/mint-components/{p-7159c51c.system.js → p-6d9e52c7.system.js} +1 -1
- package/dist/mint-components/p-6eaf9c57.entry.js +1 -0
- package/dist/mint-components/p-775f3ded.entry.js +1 -0
- package/dist/mint-components/p-7846937e.entry.js +13 -0
- package/dist/mint-components/{p-3eba9036.js → p-7a9290ba.js} +1 -1
- package/dist/mint-components/p-7ab21e4d.entry.js +1 -0
- package/dist/mint-components/{p-15012f59.system.js → p-7c2b9fe4.system.js} +1 -1
- package/dist/mint-components/{p-eea87fdc.system.entry.js → p-7dabdca6.system.entry.js} +1 -1
- package/dist/mint-components/{p-94f9fbf7.entry.js → p-7f80a9d7.entry.js} +1 -1
- package/dist/mint-components/{p-a148663a.system.js → p-8175e85f.system.js} +1 -1
- package/dist/mint-components/{p-ac2fdad8.system.entry.js → p-8362cb4c.system.entry.js} +1 -1
- package/dist/mint-components/p-837a0fdd.js +1 -0
- package/dist/mint-components/p-85671c3d.system.entry.js +1 -0
- package/dist/mint-components/p-8abfeff8.entry.js +1 -0
- package/dist/mint-components/p-8c0b7881.system.entry.js +1 -0
- package/dist/mint-components/p-8c23d1b8.js +1 -0
- package/dist/mint-components/p-8d9d04b7.system.entry.js +1 -0
- package/dist/mint-components/p-8e478d2c.system.entry.js +1 -0
- package/dist/mint-components/{p-258f4e5e.system.entry.js → p-90fc6774.system.entry.js} +1 -1
- package/dist/mint-components/p-91521e9d.js +1 -0
- package/dist/mint-components/{p-ddf3c05e.js → p-91959fbe.js} +1 -1
- package/dist/mint-components/{p-68043f30.js → p-91ab3da1.js} +1 -1
- package/dist/mint-components/p-92816d1f.js +1 -0
- package/dist/mint-components/{p-da6fe95f.system.entry.js → p-9386ad84.system.entry.js} +1 -1
- package/dist/mint-components/{p-460155de.js → p-938f64d9.js} +1 -1
- package/dist/mint-components/p-94a876b9.js +1 -0
- package/dist/mint-components/p-95b88eb6.system.js +1 -0
- package/dist/mint-components/{p-c3dce602.system.entry.js → p-96431b4f.system.entry.js} +1 -1
- package/dist/mint-components/p-97d4d651.system.js +1 -0
- package/dist/mint-components/p-98698131.js +1 -0
- package/dist/mint-components/{p-64997b59.system.js → p-99ad7d56.system.js} +1 -1
- package/dist/mint-components/p-9acb5038.js +1 -0
- package/dist/mint-components/{p-002e6205.system.entry.js → p-9b6a0152.system.entry.js} +1 -1
- package/dist/mint-components/{p-b3da317b.system.entry.js → p-9bfd9bed.system.entry.js} +1 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +1 -0
- package/dist/mint-components/{p-6951663b.js → p-9ec99ced.js} +1 -1
- package/dist/mint-components/{p-22c11f0e.entry.js → p-a2fde301.entry.js} +1 -1
- package/dist/mint-components/{p-d399162b.system.js → p-a71b9154.system.js} +1 -1
- package/dist/mint-components/{p-9580aac3.js → p-a9f4ddb1.js} +1 -1
- package/dist/mint-components/p-aad32fb6.system.js +1 -0
- package/dist/mint-components/{p-8e28333b.system.js → p-ae1ea5ac.system.js} +1 -1
- package/dist/mint-components/p-b207beeb.entry.js +1 -0
- package/dist/mint-components/{p-e55f3eb6.system.entry.js → p-b287833c.system.entry.js} +1 -1
- package/dist/mint-components/{p-6578ea31.system.js → p-b75bb6e3.system.js} +1 -1
- package/dist/mint-components/{p-7059ee40.system.entry.js → p-b7d1469d.system.entry.js} +1 -1
- package/dist/mint-components/p-b82e1935.system.entry.js +1 -0
- package/dist/mint-components/p-b94ffed3.entry.js +273 -0
- package/dist/mint-components/{p-6ef73224.js → p-bbcd824a.js} +1 -1
- package/dist/mint-components/{p-f1f20fdf.system.js → p-bdb7d451.system.js} +22 -22
- package/dist/mint-components/p-bfc7cfc0.system.js +1 -0
- package/dist/mint-components/p-c060f770.system.entry.js +1 -0
- package/dist/mint-components/{p-3787a4d6.js → p-c0f19490.js} +1 -1
- package/dist/mint-components/p-c1b074b6.js +394 -0
- package/dist/mint-components/{p-dbe29e53.system.entry.js → p-c2fdd608.system.entry.js} +1 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +1 -0
- package/dist/mint-components/p-c9f1dde7.js +1 -0
- package/dist/mint-components/p-cb7bdbe4.entry.js +1 -0
- package/dist/mint-components/p-cbbfac66.entry.js +25 -0
- package/dist/mint-components/p-cd1d497f.system.js +1 -0
- package/dist/mint-components/{p-a392912a.system.js → p-cd569259.system.js} +1 -1
- package/dist/mint-components/p-cd651f81.js +42 -0
- package/dist/mint-components/{p-9aadc253.entry.js → p-d07f3090.entry.js} +1 -1
- package/dist/mint-components/{p-b22b7891.js → p-d6831af5.js} +1 -1
- package/dist/mint-components/{p-e27ff213.entry.js → p-da7708a7.entry.js} +1 -1
- package/dist/mint-components/{p-1c1f4ce7.system.js → p-dbc0e4f8.system.js} +1 -1
- package/dist/mint-components/p-dbcb5359.js +1 -0
- package/dist/mint-components/p-dcc81e90.entry.js +1 -0
- package/dist/mint-components/p-e07bc6c4.system.js +1 -0
- package/dist/mint-components/p-e2f1dd8e.entry.js +9 -0
- package/dist/mint-components/p-e5a5ae7f.system.entry.js +1 -0
- package/dist/mint-components/{p-b6911812.system.js → p-e5d0375e.system.js} +1 -1
- package/dist/mint-components/p-e6f50ffd.entry.js +1 -0
- package/dist/mint-components/p-e8e48982.js +1 -0
- package/dist/mint-components/{p-5e0af707.entry.js → p-e8ffcc68.entry.js} +2 -2
- package/dist/mint-components/p-ef75f3a9.system.entry.js +1 -0
- package/dist/mint-components/{p-a2533860.system.entry.js → p-f0772618.system.entry.js} +1 -1
- package/dist/mint-components/p-f26aedcd.system.js +1 -0
- package/dist/mint-components/p-f2d8d3d3.system.entry.js +1 -0
- package/dist/mint-components/{p-4271f436.system.entry.js → p-f4a72903.system.entry.js} +1 -1
- package/dist/mint-components/{p-22d20816.system.entry.js → p-f4a8ee29.system.entry.js} +1 -1
- package/dist/mint-components/p-f56bedd5.js +1 -0
- package/dist/mint-components/p-f708da7b.js +1 -0
- package/dist/mint-components/p-f7c99803.system.js +1 -0
- package/dist/mint-components/{p-07dc6d68.js → p-f940190a.js} +1 -1
- package/dist/mint-components/p-f98a4354.js +1 -0
- package/dist/mint-components/{p-7af4fba0.system.entry.js → p-fa37513e.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7ee19dc.entry.js → p-faba3198.entry.js} +1 -1
- package/dist/mint-components/p-fc7a2647.system.entry.js +1 -0
- package/dist/mint-components/p-fe7af690.system.entry.js +1 -0
- package/dist/mint-components/p-ff8b8067.entry.js +33 -0
- package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +7 -0
- package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +8 -0
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +24 -0
- package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +7 -0
- package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +0 -2
- package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -5
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +1 -47
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +0 -2
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +0 -1
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +0 -2
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +16 -43
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +3 -2
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +1 -4
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +0 -15
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +1 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +0 -1
- package/dist/types/components/sqm-hero/Hero.stories.d.ts +0 -1
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +0 -1
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +1 -6
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +0 -1
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +0 -20
- package/dist/types/components/sqm-image/sqm-image.d.ts +0 -1
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -2
- package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +0 -1
- package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +0 -3
- package/dist/types/components/sqm-lead-form/LeadCheckboxField.stories.d.ts +28 -0
- package/dist/types/components/sqm-lead-form/LeadForm.stories.d.ts +10 -0
- package/dist/types/components/sqm-lead-form/LeadFormDropdownField.stories.d.ts +10 -0
- package/dist/types/components/sqm-lead-form/LeadInputField.stories.d.ts +8 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field-view.d.ts +15 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field.d.ts +46 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +17 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +49 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +36 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +93 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +15 -0
- package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +51 -0
- package/dist/types/components/sqm-lead-form/useCheckboxField.d.ts +6 -0
- package/dist/types/components/sqm-lead-form/useLeadDropdownField.d.ts +6 -0
- package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +28 -0
- package/dist/types/components/sqm-lead-form/useLeadFormState.d.ts +19 -0
- package/dist/types/components/sqm-lead-form/useLeadInputField.d.ts +6 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +0 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +0 -6
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +11 -53
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +0 -6
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +0 -1
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +0 -1
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +0 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +0 -1
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +0 -16
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +0 -8
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +0 -57
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -1
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +2 -9
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +0 -2
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +0 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +0 -1
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -5
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +0 -15
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +0 -3
- package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +0 -19
- package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +1 -2
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +0 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -1
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +0 -1
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +0 -1
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +0 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +0 -2
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +0 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -20
- package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +0 -1
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +0 -1
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +2 -5
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +2 -25
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -1
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -43
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -1
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -1
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -7
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +0 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +0 -3
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -2
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +437 -457
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +1 -10
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +0 -2
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
- package/dist/types/components/sqm-route/sqm-route.d.ts +0 -1
- package/dist/types/components/sqm-router/sqm-router.d.ts +0 -2
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +0 -1
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +1 -2
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +6 -19
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +0 -43
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +0 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -44
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +0 -3
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +0 -25
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
- package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +0 -1
- package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +0 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +0 -10
- package/dist/types/components/sqm-task-card/DetailsView.d.ts +0 -6
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +0 -5
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +4 -33
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +0 -9
- package/dist/types/components/sqm-text/sqm-text.d.ts +0 -13
- package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +2 -4
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -14
- package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +0 -1
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +0 -2
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +0 -14
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +1 -3
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +0 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +2 -5
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +2 -6
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +12 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +34 -11
- 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/sqm-tax-and-cash-dashboard-view.d.ts +6 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +24 -12
- 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 +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components/views/copy-text-view.d.ts +0 -5
- package/dist/types/components.d.ts +633 -1223
- package/dist/types/global/global.d.ts +2 -2
- package/dist/types/global/mixins.d.ts +12 -12
- package/dist/types/global/styles.d.ts +2 -10
- package/dist/types/saasquatch.d.ts +7 -143
- package/dist/types/utils/utils.d.ts +0 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -3
- package/dist/cjs/IndirectTaxDetailsView-282c1fda.js +0 -646
- package/dist/cjs/copy-text-view-97ae8a48.js +0 -127
- package/dist/cjs/data-d4339c2e.js +0 -137
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -352
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +0 -84
- package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +0 -10
- package/dist/cjs/sqm-navigation-sidebar-item-view-ec7a5c53.js +0 -56
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1254
- package/dist/cjs/sqm-text-span-view-7a61ae4c.js +0 -63
- package/dist/cjs/utils-aacb4233.js +0 -105
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +0 -198
- package/dist/collection/components/sqm-text/Text.stories.js +0 -12
- package/dist/collection/insertfont.js +0 -18
- package/dist/collection/utils/parseStates.js +0 -12
- package/dist/esm/IndirectTaxDetailsView-5e60d91f.js +0 -639
- package/dist/esm/copy-text-view-ab2fda20.js +0 -125
- package/dist/esm/data-ee3ae298.js +0 -121
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-code-verification.entry.js +0 -348
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +0 -76
- package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +0 -8
- package/dist/esm/sqm-navigation-sidebar-item-view-797601b0.js +0 -54
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1250
- package/dist/esm/sqm-text-span-view-4c17b8c9.js +0 -61
- package/dist/esm/utils-e1cdc479.js +0 -97
- package/dist/esm-es5/GenericTableView-e43d310f.js +0 -1
- package/dist/esm-es5/IndirectTaxDetailsView-5e60d91f.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-cf7c03a0.js +0 -1
- package/dist/esm-es5/copy-text-view-ab2fda20.js +0 -1
- package/dist/esm-es5/data-ee3ae298.js +0 -1
- package/dist/esm-es5/dom-context-hooks.module-63370afd.js +0 -53
- package/dist/esm-es5/email-registration-view-1f587f8b.js +0 -1
- package/dist/esm-es5/index.module-38dad6c9.js +0 -1
- package/dist/esm-es5/luxon-bbf75a9d.js +0 -1
- package/dist/esm-es5/mixins-f750863a.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/re-render-9c90767d.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-797601b0.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +0 -1
- package/dist/esm-es5/sqm-qr-code-view-97124a66.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +0 -1
- package/dist/esm-es5/useChildElements-4e70ac0e.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-0f04459e.js +0 -1
- package/dist/esm-es5/usePortalLogin-d0720c81.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-afc0171e.js +0 -1
- package/dist/esm-es5/useReferralCodes-311e6d72.js +0 -1
- package/dist/esm-es5/useReferralTable-65a01a6a.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-18c2cea7.js +0 -1
- package/dist/esm-es5/useVerificationEmail-f9413de9.js +0 -1
- package/dist/esm-es5/utilities-ad9c2893.js +0 -1
- package/dist/esm-es5/utils-03188de2.js +0 -1
- package/dist/esm-es5/utils-e1cdc479.js +0 -1
- package/dist/mint-components/p-000c91b1.js +0 -1
- package/dist/mint-components/p-0935f9b7.system.js +0 -1
- package/dist/mint-components/p-0bb21f5b.system.entry.js +0 -1
- package/dist/mint-components/p-0e532b53.entry.js +0 -1
- package/dist/mint-components/p-0ea61502.system.js +0 -1
- package/dist/mint-components/p-100c878b.system.entry.js +0 -1
- package/dist/mint-components/p-11500698.entry.js +0 -25
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-1337f47c.entry.js +0 -1
- package/dist/mint-components/p-1363c4ab.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-14128c84.system.entry.js +0 -1
- package/dist/mint-components/p-14959d73.system.entry.js +0 -1
- package/dist/mint-components/p-15bfd7e2.system.js +0 -1
- package/dist/mint-components/p-1a278658.entry.js +0 -1
- package/dist/mint-components/p-1c727332.entry.js +0 -1
- package/dist/mint-components/p-1cd0e1e9.system.js +0 -1
- package/dist/mint-components/p-1ee5070b.system.entry.js +0 -1
- package/dist/mint-components/p-204861a6.js +0 -1
- package/dist/mint-components/p-209ea185.js +0 -1
- package/dist/mint-components/p-21e3cac4.js +0 -1
- package/dist/mint-components/p-2403c6e1.system.js +0 -1
- package/dist/mint-components/p-240bec23.js +0 -1
- package/dist/mint-components/p-274ea2c4.entry.js +0 -9
- package/dist/mint-components/p-2f2bff39.entry.js +0 -1
- package/dist/mint-components/p-3285a6b3.system.entry.js +0 -1
- package/dist/mint-components/p-3836d1e2.entry.js +0 -1
- package/dist/mint-components/p-38a03a10.system.js +0 -1
- package/dist/mint-components/p-3cb249c3.js +0 -1
- package/dist/mint-components/p-3d1b91a1.system.entry.js +0 -1
- package/dist/mint-components/p-3d99fa43.entry.js +0 -1
- package/dist/mint-components/p-3ea3f5e3.system.entry.js +0 -1
- package/dist/mint-components/p-40c01a5a.system.js +0 -1
- package/dist/mint-components/p-42da8239.system.js +0 -1
- package/dist/mint-components/p-49b20dae.js +0 -1
- package/dist/mint-components/p-4f5329a2.system.js +0 -53
- package/dist/mint-components/p-51b8979d.js +0 -448
- package/dist/mint-components/p-57970440.js +0 -1233
- package/dist/mint-components/p-587115cb.system.entry.js +0 -1
- package/dist/mint-components/p-59b028db.system.js +0 -1
- package/dist/mint-components/p-5aca73f7.entry.js +0 -13
- package/dist/mint-components/p-5ff2da11.js +0 -1
- package/dist/mint-components/p-63e29387.js +0 -42
- package/dist/mint-components/p-66c14cb2.system.entry.js +0 -1
- package/dist/mint-components/p-672d144e.entry.js +0 -1
- package/dist/mint-components/p-67ad2252.system.js +0 -1
- package/dist/mint-components/p-6906ef5d.system.entry.js +0 -1
- package/dist/mint-components/p-692bacf3.js +0 -1
- package/dist/mint-components/p-6ad674c2.js +0 -103
- package/dist/mint-components/p-6b076bae.system.entry.js +0 -1
- package/dist/mint-components/p-6d290019.js +0 -1
- package/dist/mint-components/p-6e069052.entry.js +0 -1
- package/dist/mint-components/p-71271fbd.system.js +0 -1
- package/dist/mint-components/p-75584f9e.entry.js +0 -11
- package/dist/mint-components/p-77d2244b.system.js +0 -1
- package/dist/mint-components/p-7970e73a.js +0 -1
- package/dist/mint-components/p-797fd8d9.system.js +0 -1
- package/dist/mint-components/p-7b8d29bb.entry.js +0 -1
- package/dist/mint-components/p-7c17e06f.system.entry.js +0 -1
- package/dist/mint-components/p-7e13424d.system.js +0 -1
- package/dist/mint-components/p-88b63a7c.entry.js +0 -93
- package/dist/mint-components/p-8a6494c7.system.js +0 -1
- package/dist/mint-components/p-8caef004.js +0 -1
- package/dist/mint-components/p-8e2bead4.js +0 -1
- package/dist/mint-components/p-901cb538.system.entry.js +0 -1
- package/dist/mint-components/p-9049b387.entry.js +0 -1
- package/dist/mint-components/p-916100a9.js +0 -1
- package/dist/mint-components/p-926f17f9.system.js +0 -1
- package/dist/mint-components/p-9374b5bb.system.entry.js +0 -1
- package/dist/mint-components/p-9e297104.entry.js +0 -1
- package/dist/mint-components/p-9f3e7e48.entry.js +0 -13
- package/dist/mint-components/p-9f82e69d.entry.js +0 -1
- package/dist/mint-components/p-a5c9ce6c.entry.js +0 -1
- package/dist/mint-components/p-abd33116.system.entry.js +0 -1
- package/dist/mint-components/p-b065215a.entry.js +0 -1
- package/dist/mint-components/p-b1a2a83b.entry.js +0 -144
- package/dist/mint-components/p-ba4a5fed.entry.js +0 -258
- package/dist/mint-components/p-bab57520.system.entry.js +0 -1
- package/dist/mint-components/p-bad50dc1.entry.js +0 -1
- package/dist/mint-components/p-be88596c.system.js +0 -1
- package/dist/mint-components/p-c0d48b64.system.entry.js +0 -1
- package/dist/mint-components/p-c4886223.entry.js +0 -1
- package/dist/mint-components/p-c726f778.system.entry.js +0 -1
- package/dist/mint-components/p-c7965639.entry.js +0 -1
- package/dist/mint-components/p-c79bb1c6.entry.js +0 -16
- package/dist/mint-components/p-c7c11325.js +0 -1
- package/dist/mint-components/p-cab1f502.js +0 -1
- package/dist/mint-components/p-d785a297.system.entry.js +0 -1
- package/dist/mint-components/p-d821418e.system.js +0 -1
- package/dist/mint-components/p-d8c5b80a.system.js +0 -1
- package/dist/mint-components/p-da3ffd4e.system.entry.js +0 -1
- package/dist/mint-components/p-e539fed3.entry.js +0 -1
- package/dist/mint-components/p-e57d61af.system.js +0 -1
- package/dist/mint-components/p-eaeddfe2.system.js +0 -1
- package/dist/mint-components/p-ecc5faba.entry.js +0 -33
- package/dist/mint-components/p-f0e0d0b9.system.entry.js +0 -1
- package/dist/mint-components/p-f0ebccea.system.entry.js +0 -1
- package/dist/mint-components/p-f1dc581f.js +0 -1
- package/dist/mint-components/p-f6baa0c9.system.js +0 -1
- package/dist/mint-components/p-f9c7248e.js +0 -1
- package/dist/mint-components/p-fb77f662.entry.js +0 -1
- package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +0 -9
- package/dist/types/components/sqm-text/Text.stories.d.ts +0 -6
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/insertfont.d.ts +0 -1
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
- package/dist/types/utils/parseStates.d.ts +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
- /package/dist/collection/components/tax-and-cash/{data.js → sqm-tax-and-cash/data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{data.d.ts → sqm-tax-and-cash/data.d.ts} +0 -0
|
@@ -1,376 +1,28 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as isDemo, _
|
|
1
|
+
import { r as registerInstance, h as h$1, c as Host } from './index-91e7729f.js';
|
|
2
|
+
import { n as h, f as useEffect, i as d, k as useState, m as useRef, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-be1f9992.js';
|
|
4
|
+
import { i as isDemo, _, d as dist, J, H, $ as $e, w as wn, B, u as useCallback, L, y as yn, j as jn, r as Ue, V as Ve, Q as Qe, k as kn } from './index.module-89a79f66.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
|
-
import { g as getProps, a as getMissingProps } from './utils-
|
|
7
|
+
import { g as getProps, a as getMissingProps } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import './useReferralCodes-
|
|
10
|
-
import './mixins-
|
|
11
|
-
import { C as CopyTextView } from './copy-text-view-
|
|
12
|
-
import { a as useRequestRerender } from './re-render-
|
|
13
|
-
import { u as useChildElements } from './useChildElements-
|
|
14
|
-
import './luxon-
|
|
15
|
-
import './sqm-text-span-view-
|
|
9
|
+
import './useReferralCodes-8f75921a.js';
|
|
10
|
+
import './mixins-83f90fa1.js';
|
|
11
|
+
import { C as CopyTextView } from './copy-text-view-782137ba.js';
|
|
12
|
+
import { a as useRequestRerender } from './re-render-cc945f38.js';
|
|
13
|
+
import { u as useChildElements } from './useChildElements-7945ae56.js';
|
|
14
|
+
import './luxon-8d51c92b.js';
|
|
15
|
+
import './sqm-text-span-view-ca32495e.js';
|
|
16
16
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
17
|
-
import {
|
|
18
|
-
import { R as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { u as usePortalLogin } from './usePortalLogin-d0720c81.js';
|
|
17
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-d6f33135.js';
|
|
18
|
+
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-9016d812.js';
|
|
19
|
+
import { P as PortalLoginView } from './sqm-portal-login-view-7e49609a.js';
|
|
20
|
+
import { u as usePortalLogin } from './usePortalLogin-ef647a50.js';
|
|
22
21
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
23
|
-
import { i as isEmpty } from './utilities-
|
|
24
|
-
import {
|
|
25
|
-
import './sqm-portal-container-view-
|
|
26
|
-
import {
|
|
27
|
-
import { u as usePayoutStatus } from './usePayoutStatus-7eeec61b.js';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* Themes
|
|
32
|
-
*
|
|
33
|
-
* Export only valid CSS. Those will be injected into style tags.
|
|
34
|
-
*
|
|
35
|
-
* Useful links:
|
|
36
|
-
* - https://brandcolors.net/
|
|
37
|
-
* - Shoelace color generator: https://codepen.io/claviska/full/QWveRgL
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
// @ts-nocheck
|
|
41
|
-
const Default = null;
|
|
42
|
-
const Netflix = {
|
|
43
|
-
main: {
|
|
44
|
-
brandFont: "Netflix Sans, Arial, sans-serif",
|
|
45
|
-
brandColor: "#E50914",
|
|
46
|
-
},
|
|
47
|
-
border: {
|
|
48
|
-
borderColor: "#333333",
|
|
49
|
-
borderRadius: 4,
|
|
50
|
-
borderThickness: 1,
|
|
51
|
-
},
|
|
52
|
-
color: {
|
|
53
|
-
textColorShades: {
|
|
54
|
-
mainText: "white",
|
|
55
|
-
subduedText: "#B3B3B3",
|
|
56
|
-
},
|
|
57
|
-
backgroundColor: "#101010",
|
|
58
|
-
accentColorShades: {
|
|
59
|
-
text: "#E50914",
|
|
60
|
-
icon: "#E50914",
|
|
61
|
-
border: "#E50914",
|
|
62
|
-
background: "#300609",
|
|
63
|
-
},
|
|
64
|
-
success: {
|
|
65
|
-
text: "#66BB6A",
|
|
66
|
-
border: "#4CAF50",
|
|
67
|
-
background: "#1B5E20",
|
|
68
|
-
iconAndBadge: "#4CAF50",
|
|
69
|
-
},
|
|
70
|
-
warning: {
|
|
71
|
-
text: "#FFCA28",
|
|
72
|
-
border: "#FFA726",
|
|
73
|
-
background: "#F57C00",
|
|
74
|
-
iconAndBadge: "#FFA726",
|
|
75
|
-
},
|
|
76
|
-
critical: {
|
|
77
|
-
text: "#EF9A9A",
|
|
78
|
-
border: "#E50914",
|
|
79
|
-
background: "#B71C1C",
|
|
80
|
-
iconAndBadge: "#E50914",
|
|
81
|
-
},
|
|
82
|
-
informative: {
|
|
83
|
-
text: "#64B5F6",
|
|
84
|
-
border: "#42A5F5",
|
|
85
|
-
background: "#1976D2",
|
|
86
|
-
iconAndBadge: "#42A5F5",
|
|
87
|
-
},
|
|
88
|
-
neutral: {
|
|
89
|
-
text: "white",
|
|
90
|
-
iconAndBadge: "#B3B3B3",
|
|
91
|
-
border: "#333333",
|
|
92
|
-
background: "#222222",
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
primaryButton: {
|
|
96
|
-
buttonColor: {
|
|
97
|
-
background: "#E50914",
|
|
98
|
-
border: "transparent",
|
|
99
|
-
label: "#FFFFFF",
|
|
100
|
-
},
|
|
101
|
-
buttonHoverColor: {
|
|
102
|
-
background: "#CC0000",
|
|
103
|
-
border: "transparent",
|
|
104
|
-
label: "#FFFFFF",
|
|
105
|
-
},
|
|
106
|
-
borderRadius: 4,
|
|
107
|
-
},
|
|
108
|
-
secondaryButton: {
|
|
109
|
-
buttonColor: {
|
|
110
|
-
background: "transparent",
|
|
111
|
-
border: "#B3B3B3",
|
|
112
|
-
label: "#FFFFFF",
|
|
113
|
-
},
|
|
114
|
-
buttonHoverColor: {
|
|
115
|
-
background: "#333333",
|
|
116
|
-
border: "#B3B3B3",
|
|
117
|
-
label: "#FFFFFF",
|
|
118
|
-
},
|
|
119
|
-
borderRadius: 4,
|
|
120
|
-
},
|
|
121
|
-
formFields: {
|
|
122
|
-
formFieldColor: {
|
|
123
|
-
background: "#222222",
|
|
124
|
-
border: "#B3B3B3",
|
|
125
|
-
inputText: "#B3B3B3",
|
|
126
|
-
},
|
|
127
|
-
hoverStateColor: "#777777",
|
|
128
|
-
selectedStateColor: "#E50914",
|
|
129
|
-
borderRadius: 4,
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
const Amazon = {
|
|
133
|
-
main: {
|
|
134
|
-
brandFont: "Amazon Ember, Arial, sans-serif",
|
|
135
|
-
brandColor: "#FF9900",
|
|
136
|
-
},
|
|
137
|
-
border: {
|
|
138
|
-
borderColor: "#D5D9D9",
|
|
139
|
-
borderRadius: 4,
|
|
140
|
-
borderThickness: 1,
|
|
141
|
-
},
|
|
142
|
-
color: {
|
|
143
|
-
backgroundColor: "#ffffff",
|
|
144
|
-
textColorShades: {
|
|
145
|
-
mainText: "#2f2f2f",
|
|
146
|
-
subduedText: "#565959",
|
|
147
|
-
},
|
|
148
|
-
accentColorShades: {
|
|
149
|
-
text: "#FF9900",
|
|
150
|
-
icon: "#FF9900",
|
|
151
|
-
border: "#FFBF66",
|
|
152
|
-
background: "#FFF4DD",
|
|
153
|
-
},
|
|
154
|
-
success: {
|
|
155
|
-
text: "#198754",
|
|
156
|
-
border: "#BCE8B2",
|
|
157
|
-
background: "#D4EDDA",
|
|
158
|
-
iconAndBadge: "#28A745",
|
|
159
|
-
},
|
|
160
|
-
warning: {
|
|
161
|
-
text: "#856404",
|
|
162
|
-
border: "#FFEBA2",
|
|
163
|
-
background: "#FFF3CD",
|
|
164
|
-
iconAndBadge: "#FFC107",
|
|
165
|
-
},
|
|
166
|
-
critical: {
|
|
167
|
-
text: "#721C24",
|
|
168
|
-
border: "#F5C6CB",
|
|
169
|
-
background: "#F8D7DA",
|
|
170
|
-
iconAndBadge: "#DC3545",
|
|
171
|
-
},
|
|
172
|
-
informative: {
|
|
173
|
-
text: "#004085",
|
|
174
|
-
border: "#B8DAFF",
|
|
175
|
-
background: "#CCE5FF",
|
|
176
|
-
iconAndBadge: "#007BFF",
|
|
177
|
-
},
|
|
178
|
-
neutral: {
|
|
179
|
-
text: "#232F3E",
|
|
180
|
-
iconAndBadge: "#565959",
|
|
181
|
-
border: "#D5D9D9",
|
|
182
|
-
background: "#F0F2F2",
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
primaryButton: {
|
|
186
|
-
buttonColor: {
|
|
187
|
-
background: "#FF9900",
|
|
188
|
-
border: "transparent",
|
|
189
|
-
label: "#FFFFFF",
|
|
190
|
-
},
|
|
191
|
-
buttonHoverColor: {
|
|
192
|
-
background: "#EB9100",
|
|
193
|
-
border: "transparent",
|
|
194
|
-
label: "#FFFFFF",
|
|
195
|
-
},
|
|
196
|
-
borderRadius: 4,
|
|
197
|
-
},
|
|
198
|
-
secondaryButton: {
|
|
199
|
-
buttonColor: {
|
|
200
|
-
background: "#FFFFFF",
|
|
201
|
-
border: "#888C8C",
|
|
202
|
-
label: "#232F3E",
|
|
203
|
-
},
|
|
204
|
-
buttonHoverColor: {
|
|
205
|
-
background: "#F0F2F2",
|
|
206
|
-
border: "#888C8C",
|
|
207
|
-
label: "#232F3E",
|
|
208
|
-
},
|
|
209
|
-
borderRadius: 4,
|
|
210
|
-
},
|
|
211
|
-
formFields: {
|
|
212
|
-
formFieldColor: {
|
|
213
|
-
background: "#FFFFFF",
|
|
214
|
-
border: "#D5D9D9",
|
|
215
|
-
inputText: "#2f2f2f",
|
|
216
|
-
},
|
|
217
|
-
borderRadius: 4,
|
|
218
|
-
hoverStateColor: "#A2A2A2",
|
|
219
|
-
selectedStateColor: "#007185",
|
|
220
|
-
},
|
|
221
|
-
};
|
|
222
|
-
const Spotify = {
|
|
223
|
-
main: {
|
|
224
|
-
brandColor: "#1ed760",
|
|
225
|
-
},
|
|
226
|
-
border: {
|
|
227
|
-
borderColor: "#f4f4f4",
|
|
228
|
-
borderRadius: 18,
|
|
229
|
-
borderThickness: 1,
|
|
230
|
-
},
|
|
231
|
-
color: {
|
|
232
|
-
textColorShades: {
|
|
233
|
-
mainText: "white",
|
|
234
|
-
subduedText: "white",
|
|
235
|
-
},
|
|
236
|
-
backgroundColor: "#121212",
|
|
237
|
-
accentColorShades: {
|
|
238
|
-
icon: "#1ed760",
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
primaryButton: {
|
|
242
|
-
buttonColor: {
|
|
243
|
-
background: "#1ed760",
|
|
244
|
-
border: "transparent",
|
|
245
|
-
label: "#121212",
|
|
246
|
-
},
|
|
247
|
-
buttonHoverColor: {
|
|
248
|
-
background: "#1DB954",
|
|
249
|
-
border: "transparent",
|
|
250
|
-
label: "#121212",
|
|
251
|
-
},
|
|
252
|
-
borderRadius: 30,
|
|
253
|
-
},
|
|
254
|
-
secondaryButton: {
|
|
255
|
-
buttonColor: {
|
|
256
|
-
background: "#191414",
|
|
257
|
-
border: "#FFFFFF",
|
|
258
|
-
label: "#FFFFFF",
|
|
259
|
-
},
|
|
260
|
-
buttonHoverColor: {
|
|
261
|
-
background: "#282828",
|
|
262
|
-
border: "#FFFFFF",
|
|
263
|
-
label: "#121212",
|
|
264
|
-
},
|
|
265
|
-
borderRadius: 30,
|
|
266
|
-
},
|
|
267
|
-
formFields: {
|
|
268
|
-
formFieldColor: {
|
|
269
|
-
background: "#121212",
|
|
270
|
-
border: "#7c7c7c",
|
|
271
|
-
inputText: "#fff",
|
|
272
|
-
},
|
|
273
|
-
borderRadius: 30,
|
|
274
|
-
hoverStateColor: "white",
|
|
275
|
-
selectedStateColor: "white",
|
|
276
|
-
},
|
|
277
|
-
};
|
|
278
|
-
const Google = {
|
|
279
|
-
main: { brandColor: "#4285F4", brandFont: "Roboto, Arial, sans-serif" },
|
|
280
|
-
border: {
|
|
281
|
-
borderColor: "#DADCE0",
|
|
282
|
-
borderRadius: 4,
|
|
283
|
-
borderThickness: 1,
|
|
284
|
-
},
|
|
285
|
-
color: {
|
|
286
|
-
textColorShades: {
|
|
287
|
-
mainText: "#212124",
|
|
288
|
-
subduedText: "#5F6368",
|
|
289
|
-
},
|
|
290
|
-
backgroundColor: "#FFFFFF",
|
|
291
|
-
accentColorShades: {
|
|
292
|
-
text: "#1A73E8",
|
|
293
|
-
border: "#8AB4F8",
|
|
294
|
-
background: "#E8F0FE",
|
|
295
|
-
icon: "#4285F4",
|
|
296
|
-
},
|
|
297
|
-
success: {
|
|
298
|
-
text: "#044e1d",
|
|
299
|
-
border: "#A8DCD7",
|
|
300
|
-
background: "#E6F4EA",
|
|
301
|
-
iconAndBadge: "#34A853",
|
|
302
|
-
},
|
|
303
|
-
warning: {
|
|
304
|
-
text: "#996a3d",
|
|
305
|
-
border: "#FCD667",
|
|
306
|
-
background: "#FFF7EE",
|
|
307
|
-
iconAndBadge: "#FBBC04",
|
|
308
|
-
},
|
|
309
|
-
critical: {
|
|
310
|
-
text: "#760b09",
|
|
311
|
-
border: "#F28B82",
|
|
312
|
-
background: "#FCE8E6",
|
|
313
|
-
iconAndBadge: "#EA4335",
|
|
314
|
-
},
|
|
315
|
-
informative: {
|
|
316
|
-
text: "#01368c",
|
|
317
|
-
border: "#BFDBFE",
|
|
318
|
-
background: "#E8F0FE",
|
|
319
|
-
iconAndBadge: "#4285F4",
|
|
320
|
-
},
|
|
321
|
-
neutral: {
|
|
322
|
-
text: "#202124",
|
|
323
|
-
border: "#DADCE0",
|
|
324
|
-
background: "#F8F9FA",
|
|
325
|
-
iconAndBadge: "#5F6368",
|
|
326
|
-
},
|
|
327
|
-
},
|
|
328
|
-
primaryButton: {
|
|
329
|
-
buttonColor: {
|
|
330
|
-
background: "#4285F4",
|
|
331
|
-
border: "transparent",
|
|
332
|
-
label: "#FFFFFF",
|
|
333
|
-
},
|
|
334
|
-
buttonHoverColor: {
|
|
335
|
-
background: "#3C7CD1",
|
|
336
|
-
border: "transparent",
|
|
337
|
-
label: "#FFFFFF",
|
|
338
|
-
},
|
|
339
|
-
borderRadius: 4,
|
|
340
|
-
},
|
|
341
|
-
secondaryButton: {
|
|
342
|
-
buttonColor: {
|
|
343
|
-
background: "#FFFFFF",
|
|
344
|
-
border: "#DADCE0",
|
|
345
|
-
label: "#4285F4",
|
|
346
|
-
},
|
|
347
|
-
buttonHoverColor: {
|
|
348
|
-
background: "#E8F0FE",
|
|
349
|
-
border: "#DADCE0",
|
|
350
|
-
label: "#4285F4",
|
|
351
|
-
},
|
|
352
|
-
borderRadius: 4,
|
|
353
|
-
},
|
|
354
|
-
formFields: {
|
|
355
|
-
formFieldColor: {
|
|
356
|
-
background: "#FFFFFF",
|
|
357
|
-
border: "#DADCE0",
|
|
358
|
-
inputText: "#202124",
|
|
359
|
-
},
|
|
360
|
-
borderRadius: 4,
|
|
361
|
-
hoverStateColor: "#9AA0A6",
|
|
362
|
-
selectedStateColor: "#4285F4",
|
|
363
|
-
},
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
const Themes = /*#__PURE__*/Object.freeze({
|
|
367
|
-
__proto__: null,
|
|
368
|
-
Default: Default,
|
|
369
|
-
Netflix: Netflix,
|
|
370
|
-
Amazon: Amazon,
|
|
371
|
-
Spotify: Spotify,
|
|
372
|
-
Google: Google
|
|
373
|
-
});
|
|
22
|
+
import { i as isEmpty } from './utilities-5b0ca040.js';
|
|
23
|
+
import { b as useDemoBigStat, W as useBigStat, B as BigStatView, U as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, C as ChangeMarktingView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, Y as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-f2176779.js';
|
|
24
|
+
import './sqm-portal-container-view-1683ae32.js';
|
|
25
|
+
import { u as usePayoutStatus } from './usePayoutStatus-f07bcf90.js';
|
|
374
26
|
|
|
375
27
|
const BigStat = class {
|
|
376
28
|
constructor(hostRef) {
|
|
@@ -380,19 +32,8 @@ const BigStat = class {
|
|
|
380
32
|
*
|
|
381
33
|
* @uiName Flex reverse
|
|
382
34
|
* @default
|
|
383
|
-
* @uiGroup Additional Settings
|
|
384
35
|
*/
|
|
385
36
|
this.flexReverse = false;
|
|
386
|
-
/**
|
|
387
|
-
* Controls the alignment of the flexbox
|
|
388
|
-
*
|
|
389
|
-
* @uiName Alignment
|
|
390
|
-
* @uiType string
|
|
391
|
-
* @uiEnum ["left", "right", "center"]
|
|
392
|
-
* @uiEnumNames ["Left", "Right", "Center"]
|
|
393
|
-
* @uiGroup Additional Settings
|
|
394
|
-
*/
|
|
395
|
-
this.alignment = "center";
|
|
396
37
|
this.ignored = true;
|
|
397
38
|
h(this);
|
|
398
39
|
}
|
|
@@ -400,62 +41,24 @@ const BigStat = class {
|
|
|
400
41
|
render() {
|
|
401
42
|
var _a;
|
|
402
43
|
const { props, label } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
403
|
-
const host = _
|
|
44
|
+
const host = _();
|
|
404
45
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
405
46
|
const labelSlot = h$1("slot", { name: "label" }, hasLabel ? h$1("slot", null) : label);
|
|
406
47
|
return h$1(BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
407
48
|
}
|
|
408
49
|
};
|
|
409
50
|
|
|
410
|
-
function t(t,n,r){return Math.min(Math.max(t,r),n)}class n extends Error{constructor(t){super(`Failed to parse color: "${t}"`);}}function r(r){if("string"!=typeof r)throw new n(r);if("transparent"===r.trim().toLowerCase())return [0,0,0,0];let e=r.trim();e=u.test(r)?function(t){const r=t.toLowerCase().trim(),e=o[function(t){let n=5381,r=t.length;for(;r;)n=33*n^t.charCodeAt(--r);return (n>>>0)%2341}(r)];if(!e)throw new n(t);return `#${e}`}(r):r;const f=s.exec(e);if(f){const t=Array.from(f).slice(1);return [...t.slice(0,3).map(t=>parseInt(_(t,2),16)),parseInt(_(t[3]||"f",2),16)/255]}const p=i.exec(e);if(p){const t=Array.from(p).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,16)),parseInt(t[3]||"ff",16)/255]}const z=a.exec(e);if(z){const t=Array.from(z).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,10)),parseFloat(t[3]||"1")]}const h=c.exec(e);if(h){const[e,o,_,s]=Array.from(h).slice(1).map(parseFloat);if(t(0,100,o)!==o)throw new n(r);if(t(0,100,_)!==_)throw new n(r);return [...l(e,o,_),s||1]}throw new n(r)}const e=t=>parseInt(t.replace(/_/g,""),36),o="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,n)=>{const r=e(n.substring(0,3)),o=e(n.substring(3)).toString(16);let _="";for(let t=0;t<6-o.length;t++)_+="0";return t[r]=`${_}${o}`,t},{}),_=(t,n)=>Array.from(Array(n)).map(()=>t).join(""),s=new RegExp(`^#${_("([a-f0-9])",3)}([a-f0-9])?$`,"i"),i=new RegExp(`^#${_("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),a=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${_(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),c=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,u=/^[a-z]+$/i,f=t=>Math.round(255*t),l=(t,n,r)=>{let e=r/100;if(0===n)return [e,e,e].map(f);const o=(t%360+360)%360/60,_=(1-Math.abs(2*e-1))*(n/100),s=_*(1-Math.abs(o%2-1));let i=0,a=0,c=0;o>=0&&o<1?(i=_,a=s):o>=1&&o<2?(i=s,a=_):o>=2&&o<3?(a=_,c=s):o>=3&&o<4?(a=s,c=_):o>=4&&o<5?(i=s,c=_):o>=5&&o<6&&(i=_,c=s);const u=e-_/2;return [i+u,a+u,c+u].map(f)};function p(t){const[n,e,o,_]=r(t).map((t,n)=>3===n?t:t/255),s=Math.max(n,e,o),i=Math.min(n,e,o),a=(s+i)/2;if(s===i)return [0,0,a,_];const c=s-i;return [60*(n===s?(e-o)/c+(e<o?6:0):e===s?(o-n)/c+2:(n-e)/c+4),a>.5?c/(2-s-i):c/(s+i),a,_]}function z(n,r,e,o){return `hsla(${(n%360).toFixed()}, ${t(0,100,100*r).toFixed()}%, ${t(0,100,100*e).toFixed()}%, ${parseFloat(t(0,1,o).toFixed(3))})`}
|
|
411
|
-
|
|
412
|
-
const colorScale = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
413
|
-
const lScale = [
|
|
414
|
-
0.95,
|
|
415
|
-
0.86,
|
|
416
|
-
0.76,
|
|
417
|
-
0.66,
|
|
418
|
-
0.56,
|
|
419
|
-
0.46,
|
|
420
|
-
0.39,
|
|
421
|
-
0.32,
|
|
422
|
-
0.25,
|
|
423
|
-
0.18,
|
|
424
|
-
0.15,
|
|
425
|
-
];
|
|
426
|
-
// https://github.com/ricokahler/color2k/blob/main/src/parseToRgba.ts
|
|
427
|
-
const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
|
|
428
|
-
function niceParseToHsla(color) {
|
|
429
|
-
const normalizedColor = color.trim();
|
|
430
|
-
const hslaMatch = hslaRegex.exec(normalizedColor);
|
|
431
|
-
if (hslaMatch) {
|
|
432
|
-
const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
|
|
433
|
-
if (t(0, 100, s) !== s)
|
|
434
|
-
throw new n(color);
|
|
435
|
-
if (t(0, 100, l) !== l)
|
|
436
|
-
throw new n(color);
|
|
437
|
-
return [h, s / 100, l, a || 1];
|
|
438
|
-
}
|
|
439
|
-
// Warning -- converts to RGB first, so is lossy
|
|
440
|
-
return p(color);
|
|
441
|
-
}
|
|
442
|
-
function generateScale(color, name = "primary") {
|
|
443
|
-
const [h, s, l, a] = niceParseToHsla(color);
|
|
444
|
-
return lScale
|
|
445
|
-
.map((l) => z(h, s, l, a))
|
|
446
|
-
.map((color, index) => {
|
|
447
|
-
return `--sl-color-${name}-${colorScale[index]}: ${color};\n`;
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
51
|
/**
|
|
451
|
-
*
|
|
52
|
+
* Build a font CSS URL using the Google Fonts CSS API
|
|
452
53
|
*
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
* @
|
|
54
|
+
* Docs: https://developers.google.com/fonts/docs/css2
|
|
55
|
+
*
|
|
56
|
+
* @param fonts - the font family or families to load
|
|
57
|
+
* @returns url to a .css file
|
|
456
58
|
*/
|
|
457
|
-
function
|
|
458
|
-
|
|
59
|
+
function buildFontsCssUrl(...fonts) {
|
|
60
|
+
const queryString = fonts.map(f => `family=${encodeURIComponent(f)}`).join("&");
|
|
61
|
+
return `https://fonts.googleapis.com/css2?${queryString}`;
|
|
459
62
|
}
|
|
460
63
|
|
|
461
64
|
const BrandComponent = class {
|
|
@@ -465,7 +68,7 @@ const BrandComponent = class {
|
|
|
465
68
|
}
|
|
466
69
|
disconnectedCallback() { }
|
|
467
70
|
render() {
|
|
468
|
-
var _a, _b
|
|
71
|
+
var _a, _b;
|
|
469
72
|
function getCss(brandColor) {
|
|
470
73
|
if (brandColor) {
|
|
471
74
|
try {
|
|
@@ -475,14 +78,11 @@ const BrandComponent = class {
|
|
|
475
78
|
}
|
|
476
79
|
return undefined;
|
|
477
80
|
}
|
|
478
|
-
const
|
|
479
|
-
const
|
|
480
|
-
: (_e = getCss(this.brandColor)) !== null && _e !== void 0 ? _e : "";
|
|
481
|
-
const sanitizedFont = ((_f = this.brandFont) !== null && _f !== void 0 ? _f : "Nunito Sans").trim() || undefined;
|
|
81
|
+
const css = (_a = getCss(this.brandColor)) !== null && _a !== void 0 ? _a : "";
|
|
82
|
+
const sanitizedFont = ((_b = this.brandFont) !== null && _b !== void 0 ? _b : "Nunito Sans").trim() || undefined;
|
|
482
83
|
useEffect(() => {
|
|
483
|
-
if (!sanitizedFont
|
|
84
|
+
if (!sanitizedFont) {
|
|
484
85
|
// Nothing required in default case.
|
|
485
|
-
// Don't add font if it's set in the global config
|
|
486
86
|
return;
|
|
487
87
|
}
|
|
488
88
|
const sheet = document.createElement("link");
|
|
@@ -502,10 +102,6 @@ const BrandComponent = class {
|
|
|
502
102
|
- resets css variable inheritence for fonts
|
|
503
103
|
|
|
504
104
|
*/
|
|
505
|
-
|
|
506
|
-
${brandingConfigFont
|
|
507
|
-
? ``
|
|
508
|
-
: `
|
|
509
105
|
::slotted(*) {
|
|
510
106
|
--sl-font-sans: "${font}", arial;
|
|
511
107
|
--sl-input-font-family: "${font}", arial;
|
|
@@ -513,7 +109,6 @@ const BrandComponent = class {
|
|
|
513
109
|
font-family: "${font}", arial;
|
|
514
110
|
|
|
515
111
|
${css}
|
|
516
|
-
`}
|
|
517
112
|
|
|
518
113
|
--sl-focus-ring-color-primary: var(--sl-color-primary-100);
|
|
519
114
|
--sl-input-border-color-focus: var(--sl-color-primary-500);
|
|
@@ -522,195 +117,6 @@ const BrandComponent = class {
|
|
|
522
117
|
}
|
|
523
118
|
};
|
|
524
119
|
|
|
525
|
-
const LOCAL_STORAGE_BRAND_KEY = "localStorageBrandKey";
|
|
526
|
-
const LOCAL_STORAGE_BRAND_CONFIG_KEY = "localStorageBrandConfigKey";
|
|
527
|
-
const SqmBrandSelector = class {
|
|
528
|
-
constructor(hostRef) {
|
|
529
|
-
registerInstance(this, hostRef);
|
|
530
|
-
this.selectedBrand = "Netflix";
|
|
531
|
-
this.brands = [
|
|
532
|
-
{
|
|
533
|
-
name: "Netflix",
|
|
534
|
-
logoUrl: "https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803365/netflix_ftjbrr.png",
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
name: "Amazon",
|
|
538
|
-
logoUrl: "https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803366/amazon_mc22fr.png",
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
name: "Spotify",
|
|
542
|
-
logoUrl: "https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803510/spotify_j5qi1r.png",
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
name: "Google",
|
|
546
|
-
logoUrl: "https://res.cloudinary.com/saasquatch-staging/image/upload/v1750803168/pngimg.com_-_google_PNG19644_jvypwl.png",
|
|
547
|
-
},
|
|
548
|
-
];
|
|
549
|
-
const storedBrand = localStorage.getItem(LOCAL_STORAGE_BRAND_KEY);
|
|
550
|
-
const initialBrandName = storedBrand;
|
|
551
|
-
this.selectedBrand = initialBrandName;
|
|
552
|
-
// Initialize window.SquatchBrandingConfig based on the loaded brand
|
|
553
|
-
const initialConfig = Themes[initialBrandName] || Netflix;
|
|
554
|
-
window.SquatchBrandingConfig = initialConfig;
|
|
555
|
-
const event = new CustomEvent("brandingConfigUpdated", {
|
|
556
|
-
detail: window.SquatchBrandingConfig,
|
|
557
|
-
});
|
|
558
|
-
window.dispatchEvent(event);
|
|
559
|
-
}
|
|
560
|
-
componentDidLoad() {
|
|
561
|
-
const storedBrand = localStorage.getItem(LOCAL_STORAGE_BRAND_KEY);
|
|
562
|
-
const initialBrandName = storedBrand;
|
|
563
|
-
this.selectedBrand = initialBrandName;
|
|
564
|
-
}
|
|
565
|
-
disconnectedCallback() { }
|
|
566
|
-
updateBrand(brandName) {
|
|
567
|
-
this.selectedBrand = brandName;
|
|
568
|
-
const configToSet = Themes[brandName] || Netflix;
|
|
569
|
-
const brandConfigString = JSON.stringify(configToSet);
|
|
570
|
-
localStorage.setItem(LOCAL_STORAGE_BRAND_KEY, brandName);
|
|
571
|
-
localStorage.setItem(LOCAL_STORAGE_BRAND_CONFIG_KEY, brandConfigString);
|
|
572
|
-
window.SquatchBrandingConfig = configToSet;
|
|
573
|
-
window.location.reload();
|
|
574
|
-
const event = new CustomEvent("brandingConfigUpdated", {
|
|
575
|
-
detail: window.SquatchBrandingConfig,
|
|
576
|
-
});
|
|
577
|
-
window.dispatchEvent(event);
|
|
578
|
-
}
|
|
579
|
-
render() {
|
|
580
|
-
return (h$1(Host, null, h$1("style", null, `
|
|
581
|
-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
|
|
582
|
-
|
|
583
|
-
:host {
|
|
584
|
-
display: block; /* Ensure the custom element itself is a block-level element */
|
|
585
|
-
font-family: 'Inter', sans-serif;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
.card-container {
|
|
589
|
-
background-color: #fff !important;
|
|
590
|
-
border-radius: 18px;
|
|
591
|
-
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
592
|
-
width: 100%;
|
|
593
|
-
max-width: 350px;
|
|
594
|
-
overflow: hidden;
|
|
595
|
-
padding: 10px;
|
|
596
|
-
position: fixed;
|
|
597
|
-
bottom: 0;
|
|
598
|
-
right: 0;
|
|
599
|
-
z-index: 999999;
|
|
600
|
-
border: 1px solid #ccc;
|
|
601
|
-
margin: 10px;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
.card-heading {
|
|
605
|
-
display: flex;
|
|
606
|
-
align-items: center;
|
|
607
|
-
justify-content: center;
|
|
608
|
-
padding-bottom: 10px;
|
|
609
|
-
color: black;
|
|
610
|
-
margin: 0;
|
|
611
|
-
font-size: 16px;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
.segmented-control-container {
|
|
615
|
-
display: flex;
|
|
616
|
-
background-color: #e5e7eb !important;
|
|
617
|
-
border-radius: 9999px;
|
|
618
|
-
padding: 0.25rem;
|
|
619
|
-
margin-left: auto;
|
|
620
|
-
margin-right: auto;
|
|
621
|
-
max-width: 28rem;
|
|
622
|
-
box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
.brand-segment {
|
|
626
|
-
display: flex;
|
|
627
|
-
flex-direction: column;
|
|
628
|
-
align-items: center;
|
|
629
|
-
justify-content: center;
|
|
630
|
-
flex: 1;
|
|
631
|
-
padding: 0px 8px;
|
|
632
|
-
cursor: pointer;
|
|
633
|
-
transition: all 300ms ease-in-out;
|
|
634
|
-
border-radius: 9999px;
|
|
635
|
-
color: #4b5563;
|
|
636
|
-
cursor: pointer;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
.brand-segment:hover {
|
|
640
|
-
background-color: #f3f4f6 !important;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
.brand-segment.active {
|
|
644
|
-
background-color: #fff !important;
|
|
645
|
-
color: #1f2937;
|
|
646
|
-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
.brand-logo {
|
|
650
|
-
height: 40px;
|
|
651
|
-
width: 40px;
|
|
652
|
-
object-fit: contain;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
.brand-name {
|
|
656
|
-
font-size: 0.75rem;
|
|
657
|
-
line-height: 1rem;
|
|
658
|
-
font-weight: 600;
|
|
659
|
-
color: #4b5563;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
.brand-segment.active .brand-name {
|
|
663
|
-
color: #1f2937;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
.content-area {
|
|
667
|
-
padding: 2rem;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
.selected-text {
|
|
671
|
-
color: #4b5563;
|
|
672
|
-
text-align: center;
|
|
673
|
-
font-size: 1.125rem;
|
|
674
|
-
line-height: 1.75rem;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
.selected-brand-name {
|
|
678
|
-
font-weight: 700; /* font-bold */
|
|
679
|
-
color: #6d28d9; /* text-purple-700 */
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
.dynamic-content-box {
|
|
683
|
-
margin-top: 1.5rem; /* mt-6 */
|
|
684
|
-
padding: 1rem; /* p-4 */
|
|
685
|
-
background-color: #f9fafb; /* bg-gray-50 */
|
|
686
|
-
border-radius: 0.5rem; /* rounded-lg */
|
|
687
|
-
color: #374151; /* text-gray-700 */
|
|
688
|
-
font-size: 0.875rem; /* text-sm */
|
|
689
|
-
line-height: 1.25rem; /* text-sm */
|
|
690
|
-
font-style: italic;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
/* Responsive adjustments for smaller screens if needed */
|
|
694
|
-
@media (max-width: 640px) {
|
|
695
|
-
.segmented-control-container {
|
|
696
|
-
max-width: 100%; /* Allows it to take full width on small screens */
|
|
697
|
-
padding: 0.15rem; /* Slightly less padding */
|
|
698
|
-
}
|
|
699
|
-
.brand-segment {
|
|
700
|
-
padding-left: 0.5rem;
|
|
701
|
-
padding-right: 0.5rem;
|
|
702
|
-
}
|
|
703
|
-
.brand-logo {
|
|
704
|
-
height: 1.8rem; /* Slightly smaller on mobile */
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
`), h$1("div", { class: "card-container" }, h$1("h2", { class: "card-heading" }, "Select Branding"), h$1("div", { class: "segmented-control-container" }, this.brands.map((brand) => (h$1("div", { key: brand.name, class: `brand-segment ${this.selectedBrand === brand.name ? "active" : ""}`, onClick: () => this.updateBrand(brand.name) }, h$1("img", { src: brand.logoUrl, alt: `${brand.name} Logo`, class: "brand-logo", onError: (e) => {
|
|
708
|
-
e.target.src =
|
|
709
|
-
"https://placehold.co/80x40/cccccc/000000?text=Logo";
|
|
710
|
-
} }))))))));
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
|
|
714
120
|
const CardFeed = class {
|
|
715
121
|
constructor(hostRef) {
|
|
716
122
|
registerInstance(this, hostRef);
|
|
@@ -732,58 +138,6 @@ const CardFeed = class {
|
|
|
732
138
|
}
|
|
733
139
|
};
|
|
734
140
|
|
|
735
|
-
const style = {
|
|
736
|
-
IconStyle: {
|
|
737
|
-
display: "block",
|
|
738
|
-
position: "absolute",
|
|
739
|
-
top: "23px",
|
|
740
|
-
},
|
|
741
|
-
DivStyle: {
|
|
742
|
-
marginLeft: "28px",
|
|
743
|
-
},
|
|
744
|
-
Details: {
|
|
745
|
-
marginLeft: "28px",
|
|
746
|
-
},
|
|
747
|
-
Heading: {
|
|
748
|
-
display: "inline-block",
|
|
749
|
-
},
|
|
750
|
-
Children: {
|
|
751
|
-
display: "none",
|
|
752
|
-
},
|
|
753
|
-
};
|
|
754
|
-
const sheet = createStyleSheet(style);
|
|
755
|
-
const styleString = sheet.toString();
|
|
756
|
-
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
757
|
-
if (!missingProps)
|
|
758
|
-
return false;
|
|
759
|
-
const host = _$1();
|
|
760
|
-
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
761
|
-
return (h$1("sl-alert", { type: "danger", open: true },
|
|
762
|
-
h$1("style", { type: "text/css" }, styleString),
|
|
763
|
-
h$1("div", { slot: "icon", class: sheet.classes.IconStyle },
|
|
764
|
-
h$1("sl-icon", { name: "exclamation-octagon" })),
|
|
765
|
-
h$1("div", { class: sheet.classes.DivStyle },
|
|
766
|
-
h$1("h2", { class: sheet.classes.Heading }, intl.formatMessage({
|
|
767
|
-
id: `error-heading`,
|
|
768
|
-
defaultMessage: heading,
|
|
769
|
-
})),
|
|
770
|
-
h$1("p", null, intl.formatMessage({
|
|
771
|
-
id: `error-subheading`,
|
|
772
|
-
defaultMessage: subheading,
|
|
773
|
-
}))),
|
|
774
|
-
h$1("details", { class: sheet.classes.Details },
|
|
775
|
-
h$1("summary", { onClick: () => setDetailsOpen(!detailsOpen) },
|
|
776
|
-
detailsOpen ? "Less" : "More",
|
|
777
|
-
" details"),
|
|
778
|
-
h$1("p", null, intl.formatMessage({
|
|
779
|
-
id: `error-description`,
|
|
780
|
-
defaultMessage: description,
|
|
781
|
-
}, { tagName: host.tagName.toLowerCase() })),
|
|
782
|
-
h$1("ul", null, missingProps.map((prop) => (h$1("li", null,
|
|
783
|
-
h$1("strong", null, prop.attribute)))))),
|
|
784
|
-
h$1("div", { class: sheet.classes.Children }, children)));
|
|
785
|
-
}
|
|
786
|
-
|
|
787
141
|
function useCheckboxField(props) {
|
|
788
142
|
var _a;
|
|
789
143
|
const registrationFormState = d(REGISTRATION_FORM_STATE_CONTEXT);
|
|
@@ -883,6 +237,7 @@ const FuelTankRewardsQuery = dist.gql `
|
|
|
883
237
|
dateCancelled
|
|
884
238
|
dateScheduledFor
|
|
885
239
|
datePendingForUnhandledError
|
|
240
|
+
pendingReasons
|
|
886
241
|
}
|
|
887
242
|
count
|
|
888
243
|
totalCount
|
|
@@ -902,16 +257,61 @@ function useCouponCode(props) {
|
|
|
902
257
|
const programId = H();
|
|
903
258
|
const engagementMedium = B();
|
|
904
259
|
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
260
|
+
const [retried, setRetried] = useState(false);
|
|
261
|
+
const [countdown, setCountdown] = useState(60);
|
|
262
|
+
const timerRef = useRef(undefined);
|
|
263
|
+
const countdownRef = useRef(undefined);
|
|
905
264
|
const { data, loading, refetch, errors } = wn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
265
|
+
async function checkReward() {
|
|
266
|
+
var _a, _b, _c, _d, _e, _f;
|
|
267
|
+
const data = await refetch();
|
|
268
|
+
setRetried(true);
|
|
269
|
+
if (!((_f = (_e = (_d = (_c = (_b = (_a = data) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.instantAccessRewards) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.pendingReasons) === null || _f === void 0 ? void 0 : _f.includes("ERROR_SYNCING_FUEL_TANK_CODE"))) {
|
|
270
|
+
return clearInterval(timerRef.current);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
const reward = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.instantAccessRewards) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[0];
|
|
274
|
+
const startTimer = (countdown = 61000) => setInterval(checkReward, countdown);
|
|
275
|
+
const startCountdown = (countdown) => setInterval(() => setCountdown(countdown), 1000);
|
|
276
|
+
// Refetch reward status timer
|
|
277
|
+
useEffect(() => {
|
|
278
|
+
var _a, _b;
|
|
279
|
+
if (!timerRef.current && ((_a = reward === null || reward === void 0 ? void 0 : reward.statuses) === null || _a === void 0 ? void 0 : _a.includes("PENDING")) && ((_b = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _b === void 0 ? void 0 : _b.includes("ERROR_SYNCING_FUEL_TANK_CODE"))) {
|
|
280
|
+
timerRef.current = startTimer();
|
|
281
|
+
}
|
|
282
|
+
return () => {
|
|
283
|
+
clearInterval(timerRef.current);
|
|
284
|
+
};
|
|
285
|
+
}, []);
|
|
286
|
+
// Countdown timer
|
|
287
|
+
useEffect(() => {
|
|
288
|
+
var _a, _b;
|
|
289
|
+
if (countdown > 0 && ((_a = reward === null || reward === void 0 ? void 0 : reward.statuses) === null || _a === void 0 ? void 0 : _a.includes("PENDING")) && ((_b = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _b === void 0 ? void 0 : _b.includes("ERROR_SYNCING_FUEL_TANK_CODE"))) {
|
|
290
|
+
clearInterval(countdownRef.current);
|
|
291
|
+
countdownRef.current = startCountdown(countdown - 1);
|
|
292
|
+
}
|
|
293
|
+
return () => {
|
|
294
|
+
clearInterval(countdownRef.current);
|
|
295
|
+
};
|
|
296
|
+
}, [countdown, reward]);
|
|
297
|
+
useEffect(() => {
|
|
298
|
+
var _a, _b;
|
|
299
|
+
// Retry after a minute if the reward is pending and has an error syncing the fuel tank code
|
|
300
|
+
if (((_a = reward === null || reward === void 0 ? void 0 : reward.statuses) === null || _a === void 0 ? void 0 : _a.includes("PENDING")) && ((_b = reward === null || reward === void 0 ? void 0 : reward.pendingReasons) === null || _b === void 0 ? void 0 : _b.includes("ERROR_SYNCING_FUEL_TANK_CODE"))) {
|
|
301
|
+
startTimer();
|
|
302
|
+
}
|
|
303
|
+
}, [reward]);
|
|
906
304
|
const getStatus = (reward) => {
|
|
907
305
|
if (!reward || !reward.statuses)
|
|
908
306
|
return "ERROR";
|
|
909
307
|
const state = reward.statuses[reward.statuses.length - 1];
|
|
308
|
+
if (state === "PENDING" &&
|
|
309
|
+
reward.pendingReasons.includes("ERROR_SYNCING_FUEL_TANK_CODE"))
|
|
310
|
+
return "ERROR_SYNCING_FUEL_TANK_CODE";
|
|
910
311
|
if (state === "PENDING" && reward.dateScheduledFor === null)
|
|
911
312
|
return "EMPTY_TANK";
|
|
912
313
|
return state;
|
|
913
314
|
};
|
|
914
|
-
const reward = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.instantAccessRewards) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[0];
|
|
915
315
|
const rewardStatus = getStatus(reward);
|
|
916
316
|
const dateAvailable = rewardStatus === "PENDING" && reward.dateScheduledFor
|
|
917
317
|
? new Date(reward.dateScheduledFor).toLocaleDateString("default", {
|
|
@@ -949,6 +349,21 @@ function useCouponCode(props) {
|
|
|
949
349
|
return props.expiredErrorText;
|
|
950
350
|
case "EMPTY_TANK":
|
|
951
351
|
return props.fullfillmentErrorText;
|
|
352
|
+
case "ERROR_SYNCING_FUEL_TANK_CODE":
|
|
353
|
+
return retried
|
|
354
|
+
? intl.formatMessage({
|
|
355
|
+
id: "codeSyncErrorText",
|
|
356
|
+
defaultMessage: props.codeSyncErrorText,
|
|
357
|
+
}, {
|
|
358
|
+
supportEmail: "advocate-support@impact.com",
|
|
359
|
+
})
|
|
360
|
+
: intl.formatMessage({
|
|
361
|
+
id: "codeSyncErrorText",
|
|
362
|
+
defaultMessage: props.codeSyncErrorRetryText,
|
|
363
|
+
}, {
|
|
364
|
+
supportEmail: "advocate-support@impact.com",
|
|
365
|
+
timeRemaining: countdown,
|
|
366
|
+
});
|
|
952
367
|
case "PENDING":
|
|
953
368
|
return props.pendingErrorText.replace("{unpendDate}", dateAvailable);
|
|
954
369
|
case "REDEEMED":
|
|
@@ -965,6 +380,7 @@ function useCouponCode(props) {
|
|
|
965
380
|
case "EMPTY_TANK":
|
|
966
381
|
case "CANCELLED":
|
|
967
382
|
case "ERROR":
|
|
383
|
+
case "ERROR_SYNCING_FUEL_TANK_CODE":
|
|
968
384
|
return "warning";
|
|
969
385
|
case "PENDING":
|
|
970
386
|
return "info";
|
|
@@ -987,7 +403,6 @@ function useCouponCode(props) {
|
|
|
987
403
|
dateAvailable,
|
|
988
404
|
loading,
|
|
989
405
|
errorType,
|
|
990
|
-
buttonType: props.buttonType || "primary",
|
|
991
406
|
};
|
|
992
407
|
}
|
|
993
408
|
|
|
@@ -1011,7 +426,6 @@ const CouponCode = class {
|
|
|
1011
426
|
* @uiType string
|
|
1012
427
|
* @uiEnum ["left", "center", "right"]
|
|
1013
428
|
* @uiEnumNames ["Left", "Center", "Right"]
|
|
1014
|
-
* @uiGroup Style
|
|
1015
429
|
*/
|
|
1016
430
|
this.textAlign = "left";
|
|
1017
431
|
/**
|
|
@@ -1025,7 +439,6 @@ const CouponCode = class {
|
|
|
1025
439
|
* @uiType string
|
|
1026
440
|
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
1027
441
|
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
1028
|
-
* @uiGroup Style
|
|
1029
442
|
*/
|
|
1030
443
|
this.buttonStyle = "icon";
|
|
1031
444
|
/**
|
|
@@ -1072,6 +485,22 @@ const CouponCode = class {
|
|
|
1072
485
|
* @uiGroup Coupon code error
|
|
1073
486
|
*/
|
|
1074
487
|
this.pendingErrorText = "Your code will be available on {unpendDate}. Mark your calendar and come back then to redeem your reward!";
|
|
488
|
+
/**
|
|
489
|
+
* Display this message when the code fails to load before retrying.
|
|
490
|
+
*
|
|
491
|
+
* @uiWidget textArea
|
|
492
|
+
* @uiName Code sync error retry message
|
|
493
|
+
* @uiGroup Coupon code error
|
|
494
|
+
*/
|
|
495
|
+
this.codeSyncErrorRetryText = "We're experiencing an issue generating your coupon code. If it doesn't appear shortly, please contact {supportEmail}. Retrying in {timeRemaining} seconds.";
|
|
496
|
+
/**
|
|
497
|
+
* Display this message when the code fails to load after retrying.
|
|
498
|
+
*
|
|
499
|
+
* @uiWidget textArea
|
|
500
|
+
* @uiName Code sync error message
|
|
501
|
+
* @uiGroup Coupon code error
|
|
502
|
+
*/
|
|
503
|
+
this.codeSyncErrorText = "We're still experiencing an issue generating your coupon code. Please contact {supportEmail} for assistance.";
|
|
1075
504
|
/**
|
|
1076
505
|
* Display this message when the code fails to load due to an unspecified error.
|
|
1077
506
|
*
|
|
@@ -1087,15 +516,6 @@ const CouponCode = class {
|
|
|
1087
516
|
* @uiGroup Coupon code error
|
|
1088
517
|
*/
|
|
1089
518
|
this.couponCodePlaceholder = "...";
|
|
1090
|
-
/**
|
|
1091
|
-
* The type of the button (primary or secondary) that will be used to copy the link.
|
|
1092
|
-
* @uiName Button Type
|
|
1093
|
-
* @uiType string
|
|
1094
|
-
* @uiEnum ["primary", "secondary"]
|
|
1095
|
-
* @uiEnumNames ["Primary", "Secondary"]
|
|
1096
|
-
* @uiGroup Style
|
|
1097
|
-
*/
|
|
1098
|
-
this.buttonType = "primary";
|
|
1099
519
|
h(this);
|
|
1100
520
|
}
|
|
1101
521
|
disconnectedCallback() { }
|
|
@@ -1119,11 +539,8 @@ function useDemoCouponCode(props) {
|
|
|
1119
539
|
error: false,
|
|
1120
540
|
couponCodePlaceholder: props.couponCodePlaceholder,
|
|
1121
541
|
couponCodeLabel: props.couponCodeLabel,
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
textColor: props.textColor,
|
|
1125
|
-
borderRadius: props.borderRadius,
|
|
1126
|
-
buttonType: props.buttonType,
|
|
542
|
+
codeSyncErrorText: props.codeSyncErrorText,
|
|
543
|
+
codeSyncErrorRetryText: props.codeSyncErrorRetryText,
|
|
1127
544
|
open,
|
|
1128
545
|
onClick: () => {
|
|
1129
546
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
@@ -1138,23 +555,14 @@ function useDemoCouponCode(props) {
|
|
|
1138
555
|
function DividedLayoutView(props, children) {
|
|
1139
556
|
const getBorder = () => {
|
|
1140
557
|
if (props.direction === "row") {
|
|
1141
|
-
return {
|
|
1142
|
-
"border-right": props.borderless
|
|
1143
|
-
? "none"
|
|
1144
|
-
: `var(--sqm-border-thickness) solid ${props.borderColor || "var(--sqm-border-color)"}`,
|
|
1145
|
-
};
|
|
558
|
+
return { "border-right": props.dividerStyle || "1px solid #EAEAEA" };
|
|
1146
559
|
}
|
|
1147
560
|
else {
|
|
1148
|
-
return {
|
|
1149
|
-
"border-bottom": props.borderless
|
|
1150
|
-
? "none"
|
|
1151
|
-
: `var(--sqm-border-thickness) solid ${props.borderColor || "var(--sqm-border-color)"}`,
|
|
1152
|
-
};
|
|
561
|
+
return { "border-bottom": props.dividerStyle || "1px solid #EAEAEA" };
|
|
1153
562
|
}
|
|
1154
563
|
};
|
|
1155
564
|
const style = {
|
|
1156
565
|
LayoutContainer: {
|
|
1157
|
-
background: props.backgroundColor,
|
|
1158
566
|
display: "contents",
|
|
1159
567
|
// First style applies when shadow DOM is disabled, second applies when shadow DOM is enabled
|
|
1160
568
|
"& > :not(:last-child)": {
|
|
@@ -1170,10 +578,11 @@ function DividedLayoutView(props, children) {
|
|
|
1170
578
|
flex: 1;
|
|
1171
579
|
box-sizing: border-box;
|
|
1172
580
|
flex-direction: ${props.direction};
|
|
1173
|
-
background-color: var(--sqm-
|
|
1174
|
-
color: var(--sqm-text);
|
|
581
|
+
background-color: var(--sqm-content-background);
|
|
1175
582
|
overflow-x: clip;
|
|
1176
|
-
${props.direction === "column"
|
|
583
|
+
${props.direction === "column"
|
|
584
|
+
? "width: 100%; max-width: var(--sqm-portal-main-width);"
|
|
585
|
+
: ""}
|
|
1177
586
|
${props.contentAreaWidth !== null
|
|
1178
587
|
? `max-width: ${props.contentAreaWidth} !important;`
|
|
1179
588
|
: ""}
|
|
@@ -1205,17 +614,10 @@ const DividedLayout = class {
|
|
|
1205
614
|
constructor(hostRef) {
|
|
1206
615
|
registerInstance(this, hostRef);
|
|
1207
616
|
/**
|
|
1208
|
-
* @undocumented
|
|
1209
617
|
* Uses Shorthand CSS border syntax allowing specification of thickness, fill style and color.
|
|
1210
618
|
* @uiName Border style
|
|
1211
619
|
*/
|
|
1212
|
-
this.dividerStyle = "
|
|
1213
|
-
/**
|
|
1214
|
-
* Background color of the divider
|
|
1215
|
-
* @uiName Divider Background Color
|
|
1216
|
-
* @uiWidget color
|
|
1217
|
-
*/
|
|
1218
|
-
this.backgroundColor = "#FFFFFF";
|
|
620
|
+
this.dividerStyle = "1px solid #EAEAEA";
|
|
1219
621
|
h(this);
|
|
1220
622
|
}
|
|
1221
623
|
disconnectedCallback() { }
|
|
@@ -1536,12 +938,12 @@ const Hero = class {
|
|
|
1536
938
|
*/
|
|
1537
939
|
this.minHeight = 200;
|
|
1538
940
|
/**
|
|
1539
|
-
*
|
|
941
|
+
* Can be an image url, colour or Shoelace variable.
|
|
1540
942
|
*
|
|
1541
943
|
* @uiName Background
|
|
1542
944
|
* @uiWidget Background
|
|
1543
945
|
*/
|
|
1544
|
-
this.background = "
|
|
946
|
+
this.background = "var(--sl-color-gray-50)";
|
|
1545
947
|
/**
|
|
1546
948
|
* @uiName Padding size
|
|
1547
949
|
* @uiEnum ["none", "small", "medium","large"]
|
|
@@ -1556,10 +958,6 @@ const Hero = class {
|
|
|
1556
958
|
* @uiEnumNames ["Wrap", "Wrap Reverse"]
|
|
1557
959
|
*/
|
|
1558
960
|
this.wrapDirection = "wrap";
|
|
1559
|
-
/**
|
|
1560
|
-
* @uiName Hide the column in mobile view (can only be used when two columns are present)
|
|
1561
|
-
*/
|
|
1562
|
-
this.columnToHideInMobile = null;
|
|
1563
961
|
h(this);
|
|
1564
962
|
}
|
|
1565
963
|
disconnectedCallback() { }
|
|
@@ -1588,7 +986,7 @@ function HeroImageView(props, children) {
|
|
|
1588
986
|
width: "100%",
|
|
1589
987
|
height: "100%",
|
|
1590
988
|
position: "absolute",
|
|
1591
|
-
background: props.overlayColor || "var(--sl-color-
|
|
989
|
+
background: props.overlayColor || "var(--sl-color-primary-900)",
|
|
1592
990
|
opacity: props.overlayOpacity,
|
|
1593
991
|
},
|
|
1594
992
|
},
|
|
@@ -1614,7 +1012,7 @@ function HeroImageView(props, children) {
|
|
|
1614
1012
|
props.paddingImage +
|
|
1615
1013
|
"))",
|
|
1616
1014
|
textAlign: "center",
|
|
1617
|
-
color: props.textColor || "var(--
|
|
1015
|
+
color: props.textColor || "var(--sl-color-neutral-0)",
|
|
1618
1016
|
lineHeight: "var(--sl-line-height-dense)",
|
|
1619
1017
|
"@media (max-width: 599px)": {
|
|
1620
1018
|
padding: "var(--sl-spacing-" + props.paddingText + ")",
|
|
@@ -1625,7 +1023,7 @@ function HeroImageView(props, children) {
|
|
|
1625
1023
|
background: props.backgroundColor || "",
|
|
1626
1024
|
flexDirection: props.imagePos === "right" ? "row-reverse" : "row",
|
|
1627
1025
|
lineHeight: "var(--sl-line-height-dense)",
|
|
1628
|
-
color: props.textColor || "var(--
|
|
1026
|
+
color: props.textColor || "var(--sl-color-neutral-900)",
|
|
1629
1027
|
"& .image-area": {
|
|
1630
1028
|
width: props.imagePercentage ? props.imagePercentage + "%" : "50%",
|
|
1631
1029
|
padding: "var(--sl-spacing-" + props.paddingImage + ")",
|
|
@@ -1695,7 +1093,7 @@ function HeroImageView(props, children) {
|
|
|
1695
1093
|
h$1("div", { class: sheet.classes.Overlay, part: "sqm-overlay" },
|
|
1696
1094
|
props.header && (h$1("div", { class: sheet.classes.Header }, props.header)),
|
|
1697
1095
|
props.description && (h$1("div", { class: sheet.classes.Description }, props.description)),
|
|
1698
|
-
props.buttonText && (h$1("sl-button", { class: sheet.classes.Button, type: "primary",
|
|
1096
|
+
props.buttonText && (h$1("sl-button", { class: sheet.classes.Button, type: "primary", onClick: () => props.buttonNewTab
|
|
1699
1097
|
? window.open(props.buttonLink)
|
|
1700
1098
|
: window.open(props.buttonLink, "_parent") }, props.buttonText)),
|
|
1701
1099
|
children && children)));
|
|
@@ -1719,7 +1117,6 @@ const HeroImage = class {
|
|
|
1719
1117
|
registerInstance(this, hostRef);
|
|
1720
1118
|
/**
|
|
1721
1119
|
* @uiName Overlay opacity
|
|
1722
|
-
* @uiGroup Style
|
|
1723
1120
|
*/
|
|
1724
1121
|
this.overlayOpacity = "0.75";
|
|
1725
1122
|
/**
|
|
@@ -1727,13 +1124,11 @@ const HeroImage = class {
|
|
|
1727
1124
|
* @uiType string
|
|
1728
1125
|
* @uiEnum ["overlay", "columns"]
|
|
1729
1126
|
* @uiEnumNames ["Overlay", "Two-column"]
|
|
1730
|
-
* @uiGroup Style
|
|
1731
1127
|
*/
|
|
1732
1128
|
this.layout = "overlay";
|
|
1733
1129
|
/**
|
|
1734
1130
|
* @uiName Image percentage
|
|
1735
1131
|
* @uiType number
|
|
1736
|
-
* @uiGroup Style
|
|
1737
1132
|
*/
|
|
1738
1133
|
this.imagePercentage = 50;
|
|
1739
1134
|
/**
|
|
@@ -1741,7 +1136,6 @@ const HeroImage = class {
|
|
|
1741
1136
|
* @uiType string
|
|
1742
1137
|
* @uiEnum ["left", "center", "right"]
|
|
1743
1138
|
* @uiEnumNames ["Left", "Center", "Right"]
|
|
1744
|
-
* @uiGroup Style
|
|
1745
1139
|
*/
|
|
1746
1140
|
this.imagePos = "center";
|
|
1747
1141
|
/**
|
|
@@ -1749,7 +1143,6 @@ const HeroImage = class {
|
|
|
1749
1143
|
* @uiType string
|
|
1750
1144
|
* @uiEnum ["top", "bottom"]
|
|
1751
1145
|
* @uiEnumNames ["Top", "Bottom"]
|
|
1752
|
-
* @uiGroup Style
|
|
1753
1146
|
*/
|
|
1754
1147
|
this.imageMobilePos = "top";
|
|
1755
1148
|
/**
|
|
@@ -1762,7 +1155,6 @@ const HeroImage = class {
|
|
|
1762
1155
|
* @uiType string
|
|
1763
1156
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
1764
1157
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
1765
|
-
* @uiGroup Style
|
|
1766
1158
|
*/
|
|
1767
1159
|
this.paddingText = "xxxx-large";
|
|
1768
1160
|
/**
|
|
@@ -1770,18 +1162,8 @@ const HeroImage = class {
|
|
|
1770
1162
|
* @uiType string
|
|
1771
1163
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
1772
1164
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
1773
|
-
* @uiGroup Style
|
|
1774
1165
|
*/
|
|
1775
1166
|
this.paddingImage = "none";
|
|
1776
|
-
/**
|
|
1777
|
-
* The type of the button that is used (primary or secondary).
|
|
1778
|
-
* @uiName Button Type
|
|
1779
|
-
* @uiType string
|
|
1780
|
-
* @uiEnum ["primary", "secondary"]
|
|
1781
|
-
* @uiEnumNames ["Primary", "Secondary"]
|
|
1782
|
-
* @uiGroup Style
|
|
1783
|
-
*/
|
|
1784
|
-
this.buttonType = "primary";
|
|
1785
1167
|
h(this);
|
|
1786
1168
|
}
|
|
1787
1169
|
disconnectedCallback() { }
|
|
@@ -1907,6 +1289,356 @@ function useInputFieldDemo(props) {
|
|
|
1907
1289
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1908
1290
|
}
|
|
1909
1291
|
|
|
1292
|
+
function useLeadDropdownField() {
|
|
1293
|
+
const leadFormState = d(LEAD_FORM_STATE_CONTEXT);
|
|
1294
|
+
return {
|
|
1295
|
+
states: {
|
|
1296
|
+
leadFormState,
|
|
1297
|
+
},
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
const LeadDropdownField = class {
|
|
1302
|
+
constructor(hostRef) {
|
|
1303
|
+
registerInstance(this, hostRef);
|
|
1304
|
+
this.ignored = true;
|
|
1305
|
+
/**
|
|
1306
|
+
* @uiName Dropdown label
|
|
1307
|
+
*/
|
|
1308
|
+
this.dropdownLabel = "Select an option";
|
|
1309
|
+
/**
|
|
1310
|
+
* The message to be displayed when a required field is not filled.
|
|
1311
|
+
*
|
|
1312
|
+
* @uiName Required field message
|
|
1313
|
+
* @uiWidget textArea
|
|
1314
|
+
*/
|
|
1315
|
+
this.requiredFieldErrorMessage = "Please select a {dropdownLabel}";
|
|
1316
|
+
/**
|
|
1317
|
+
* @uiName Optional label
|
|
1318
|
+
*/
|
|
1319
|
+
this.optionalLabel = "(optional)";
|
|
1320
|
+
/**
|
|
1321
|
+
* @uiName Optional
|
|
1322
|
+
* @default
|
|
1323
|
+
*/
|
|
1324
|
+
this.dropdownOptional = false;
|
|
1325
|
+
/**
|
|
1326
|
+
* @uiName Multiple selection
|
|
1327
|
+
* @default
|
|
1328
|
+
*/
|
|
1329
|
+
this.multiple = false;
|
|
1330
|
+
h(this);
|
|
1331
|
+
}
|
|
1332
|
+
disconnectedCallback() { }
|
|
1333
|
+
render() {
|
|
1334
|
+
const missingProps = getMissingProps([
|
|
1335
|
+
{
|
|
1336
|
+
attribute: "dropdown-name",
|
|
1337
|
+
value: this.dropdownName,
|
|
1338
|
+
},
|
|
1339
|
+
]);
|
|
1340
|
+
if (!isDemo() && missingProps) {
|
|
1341
|
+
return (h$1(RequiredPropsError, { missingProps: missingProps, 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:" }, h$1("slot", null)));
|
|
1342
|
+
}
|
|
1343
|
+
const content = {
|
|
1344
|
+
...getProps(this),
|
|
1345
|
+
selectOptions: h$1("slot", null),
|
|
1346
|
+
};
|
|
1347
|
+
const { states } = isDemo()
|
|
1348
|
+
? useLeadDropdownFieldDemo(this)
|
|
1349
|
+
: useLeadDropdownField();
|
|
1350
|
+
return (h$1(LeadDropdownFieldView, { states: states, content: content }));
|
|
1351
|
+
}
|
|
1352
|
+
};
|
|
1353
|
+
function useLeadDropdownFieldDemo(props) {
|
|
1354
|
+
return cjs({
|
|
1355
|
+
states: {
|
|
1356
|
+
leadFormState: {},
|
|
1357
|
+
},
|
|
1358
|
+
content: {
|
|
1359
|
+
dropdownName: props.dropdownName,
|
|
1360
|
+
dropdownLabel: props.dropdownLabel,
|
|
1361
|
+
requiredFieldErrorMessage: props.requiredFieldErrorMessage,
|
|
1362
|
+
dropdownOptional: props.dropdownOptional,
|
|
1363
|
+
},
|
|
1364
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
const SUBMIT_LEAD = dist.gql `
|
|
1368
|
+
mutation submitForm($formSubmissionInput: FormSubmissionInput!) {
|
|
1369
|
+
submitForm(formSubmissionInput: $formSubmissionInput) {
|
|
1370
|
+
success
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
`;
|
|
1374
|
+
const GET_USER_DETAILS = dist.gql `
|
|
1375
|
+
query getUser($programId: ID) {
|
|
1376
|
+
viewer {
|
|
1377
|
+
... on User {
|
|
1378
|
+
referralCode(programId: $programId)
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
`;
|
|
1383
|
+
function useLeadForm(props) {
|
|
1384
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1385
|
+
const formRef = useRef(null);
|
|
1386
|
+
const { leadFormState, setLeadFormState } = useLeadFormState({});
|
|
1387
|
+
const programId = H();
|
|
1388
|
+
const user = J();
|
|
1389
|
+
const { data: userDetails } = wn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
1390
|
+
const [submitLead, { loading, errors, data }] = $e(SUBMIT_LEAD);
|
|
1391
|
+
const [success, setSuccess] = useState(false);
|
|
1392
|
+
useEffect(() => {
|
|
1393
|
+
if (!formRef.current)
|
|
1394
|
+
return;
|
|
1395
|
+
const form = formRef.current;
|
|
1396
|
+
form.addEventListener("sl-input", inputFunction);
|
|
1397
|
+
return () => {
|
|
1398
|
+
form.removeEventListener("sl-input", inputFunction);
|
|
1399
|
+
};
|
|
1400
|
+
}, [formRef.current]);
|
|
1401
|
+
const submit = async (event) => {
|
|
1402
|
+
var _a;
|
|
1403
|
+
let formControls = event.target.getFormControls();
|
|
1404
|
+
let formData = {};
|
|
1405
|
+
let validationErrors = {};
|
|
1406
|
+
formControls === null || formControls === void 0 ? void 0 : formControls.forEach((control) => {
|
|
1407
|
+
if (!control.name)
|
|
1408
|
+
return;
|
|
1409
|
+
const key = control.name;
|
|
1410
|
+
const value = control.value;
|
|
1411
|
+
jsonpointer.set(formData, key, value);
|
|
1412
|
+
// required validation
|
|
1413
|
+
if (control.required && !value) {
|
|
1414
|
+
jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
|
|
1415
|
+
}
|
|
1416
|
+
// custom validation
|
|
1417
|
+
if (typeof control.validationError === "function") {
|
|
1418
|
+
const validate = control.validationError;
|
|
1419
|
+
const validationError = validate({ control, key, value });
|
|
1420
|
+
if (validationError)
|
|
1421
|
+
jsonpointer.set(validationErrors, key, validationError);
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1424
|
+
if (Object.keys(validationErrors).length) {
|
|
1425
|
+
setLeadFormState({ loading: false, error: "", validationErrors });
|
|
1426
|
+
// early return for validation errors
|
|
1427
|
+
return;
|
|
1428
|
+
}
|
|
1429
|
+
setLeadFormState({
|
|
1430
|
+
loading: true,
|
|
1431
|
+
error: "",
|
|
1432
|
+
validationErrors: {},
|
|
1433
|
+
});
|
|
1434
|
+
const variables = {
|
|
1435
|
+
key: props.formKey,
|
|
1436
|
+
formData,
|
|
1437
|
+
};
|
|
1438
|
+
try {
|
|
1439
|
+
const result = await submitLead({ formSubmissionInput: variables });
|
|
1440
|
+
if (result instanceof Error) {
|
|
1441
|
+
throw result;
|
|
1442
|
+
}
|
|
1443
|
+
setLeadFormState({
|
|
1444
|
+
loading: false,
|
|
1445
|
+
error: "",
|
|
1446
|
+
validationErrors: {},
|
|
1447
|
+
});
|
|
1448
|
+
if ((_a = result === null || result === void 0 ? void 0 : result.submitForm) === null || _a === void 0 ? void 0 : _a.success) {
|
|
1449
|
+
setSuccess(true);
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
catch (error) {
|
|
1453
|
+
setLeadFormState({
|
|
1454
|
+
loading: false,
|
|
1455
|
+
error: props.networkErrorMessage,
|
|
1456
|
+
validationErrors: {},
|
|
1457
|
+
});
|
|
1458
|
+
}
|
|
1459
|
+
};
|
|
1460
|
+
const inputFunction = useCallback((e) => {
|
|
1461
|
+
var _a, _b;
|
|
1462
|
+
const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
1463
|
+
if (name !== "tel")
|
|
1464
|
+
return;
|
|
1465
|
+
const asYouType = new AsYouType("US");
|
|
1466
|
+
e.target.value = asYouType.input(e.target.value);
|
|
1467
|
+
}, []);
|
|
1468
|
+
function resetForm() {
|
|
1469
|
+
var _a, _b;
|
|
1470
|
+
setLeadFormState({
|
|
1471
|
+
loading: false,
|
|
1472
|
+
error: "",
|
|
1473
|
+
validationErrors: {},
|
|
1474
|
+
});
|
|
1475
|
+
(_b = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.getFormControls()) === null || _b === void 0 ? void 0 : _b.forEach((c) => {
|
|
1476
|
+
var _a;
|
|
1477
|
+
if (((_a = c.input) === null || _a === void 0 ? void 0 : _a.type) === "checkbox") {
|
|
1478
|
+
c.checked = false;
|
|
1479
|
+
c.value = false;
|
|
1480
|
+
}
|
|
1481
|
+
else {
|
|
1482
|
+
c.value = "";
|
|
1483
|
+
}
|
|
1484
|
+
});
|
|
1485
|
+
setSuccess(false);
|
|
1486
|
+
}
|
|
1487
|
+
let errorMessage = "";
|
|
1488
|
+
if ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"]) {
|
|
1489
|
+
errorMessage = props.networkErrorMessage;
|
|
1490
|
+
}
|
|
1491
|
+
else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors.length)) {
|
|
1492
|
+
errorMessage = props.networkErrorMessage;
|
|
1493
|
+
}
|
|
1494
|
+
else {
|
|
1495
|
+
errorMessage =
|
|
1496
|
+
((_f = (_e = (_d = (_c = errors === null || errors === void 0 ? void 0 : errors.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.message) || ((_j = (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) || (leadFormState === null || leadFormState === void 0 ? void 0 : leadFormState.error);
|
|
1497
|
+
}
|
|
1498
|
+
return {
|
|
1499
|
+
states: {
|
|
1500
|
+
loading,
|
|
1501
|
+
error: errorMessage,
|
|
1502
|
+
success,
|
|
1503
|
+
leadFormState,
|
|
1504
|
+
referralCode: ((_k = userDetails === null || userDetails === void 0 ? void 0 : userDetails.viewer) === null || _k === void 0 ? void 0 : _k.referralCode) || "",
|
|
1505
|
+
},
|
|
1506
|
+
callbacks: {
|
|
1507
|
+
submit,
|
|
1508
|
+
inputFunction,
|
|
1509
|
+
resetForm,
|
|
1510
|
+
},
|
|
1511
|
+
refs: {
|
|
1512
|
+
formRef,
|
|
1513
|
+
},
|
|
1514
|
+
};
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
const LeadForm = class {
|
|
1518
|
+
constructor(hostRef) {
|
|
1519
|
+
registerInstance(this, hostRef);
|
|
1520
|
+
this.ignored = true;
|
|
1521
|
+
/**
|
|
1522
|
+
* @uiName Email field label
|
|
1523
|
+
*/
|
|
1524
|
+
this.emailLabel = "Email";
|
|
1525
|
+
/**
|
|
1526
|
+
* @uiName First Name field label
|
|
1527
|
+
*/
|
|
1528
|
+
this.firstNameLabel = "First name";
|
|
1529
|
+
/**
|
|
1530
|
+
* @uiName Last Name field label
|
|
1531
|
+
*/
|
|
1532
|
+
this.lastNameLabel = "Last name";
|
|
1533
|
+
/**
|
|
1534
|
+
* @uiName Submit button text
|
|
1535
|
+
*/
|
|
1536
|
+
this.submitLabel = "Submit";
|
|
1537
|
+
/**
|
|
1538
|
+
* @uiName Submit another form button label
|
|
1539
|
+
*/
|
|
1540
|
+
this.resubmitFormLabel = "Refer Another Friend";
|
|
1541
|
+
/**
|
|
1542
|
+
* @uiName Header text
|
|
1543
|
+
*/
|
|
1544
|
+
this.pageLabel = "Refer your friend";
|
|
1545
|
+
/**
|
|
1546
|
+
* Key of the form to connect to. Create and manage forms in the /advocate dashboard under Data > Forms.
|
|
1547
|
+
* @uiName Form key
|
|
1548
|
+
*/
|
|
1549
|
+
this.formKey = "lead-form";
|
|
1550
|
+
/**
|
|
1551
|
+
* Optional support link text for error messages.
|
|
1552
|
+
* @uiName Support link text
|
|
1553
|
+
*/
|
|
1554
|
+
this.supportLinkText = "Support";
|
|
1555
|
+
/**
|
|
1556
|
+
* Header text shown on successful lead submission.
|
|
1557
|
+
* @uiName Submit success header
|
|
1558
|
+
*/
|
|
1559
|
+
this.submitSuccessHeader = "Lead submitted";
|
|
1560
|
+
/**
|
|
1561
|
+
* Description text shown on successful lead submission.
|
|
1562
|
+
* @uiName Submit success description
|
|
1563
|
+
*/
|
|
1564
|
+
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.";
|
|
1565
|
+
/**
|
|
1566
|
+
* Header text shown if an error occurs.
|
|
1567
|
+
* @uiName Submit error header
|
|
1568
|
+
*/
|
|
1569
|
+
this.submitErrorHeader = "An error occurred while submitting";
|
|
1570
|
+
/**
|
|
1571
|
+
* Description text shown if an error occurs.
|
|
1572
|
+
* @uiName Submit error description
|
|
1573
|
+
*/
|
|
1574
|
+
this.submitErrorDescription = "Please try again later. If the problem continues, contact {supportLink}";
|
|
1575
|
+
/**
|
|
1576
|
+
* The message to be displayed if a required field is not filled.
|
|
1577
|
+
*
|
|
1578
|
+
* @uiName Required field message
|
|
1579
|
+
* @uiWidget textArea
|
|
1580
|
+
*/
|
|
1581
|
+
this.requiredFieldErrorMessage = "Please enter a valid {fieldLabel}";
|
|
1582
|
+
/**
|
|
1583
|
+
* The message to be displayed if a the form submission fails unexpectedly.
|
|
1584
|
+
*
|
|
1585
|
+
* @uiName Network error message
|
|
1586
|
+
* @uiWidget textArea
|
|
1587
|
+
*/
|
|
1588
|
+
this.networkErrorMessage = "Network request failed.";
|
|
1589
|
+
/**
|
|
1590
|
+
* The message to be displayed if the email used is invalid.
|
|
1591
|
+
*
|
|
1592
|
+
* @uiName Invalid email message
|
|
1593
|
+
* @uiWidget textArea
|
|
1594
|
+
*/
|
|
1595
|
+
this.invalidEmailErrorMessage = "Must be a valid email address";
|
|
1596
|
+
h(this);
|
|
1597
|
+
}
|
|
1598
|
+
disconnectedCallback() { }
|
|
1599
|
+
render() {
|
|
1600
|
+
const { states, callbacks, refs } = isDemo()
|
|
1601
|
+
? useRegisterDemo(this)
|
|
1602
|
+
: useLeadForm(this);
|
|
1603
|
+
const content = {
|
|
1604
|
+
formData: h$1("slot", { name: "formData" }),
|
|
1605
|
+
emailLabel: this.emailLabel,
|
|
1606
|
+
submitLabel: this.submitLabel,
|
|
1607
|
+
resubmitFormLabel: this.resubmitFormLabel,
|
|
1608
|
+
pageLabel: this.pageLabel,
|
|
1609
|
+
supportLinkText: this.supportLinkText,
|
|
1610
|
+
submitSuccessHeader: this.submitSuccessHeader,
|
|
1611
|
+
submitSuccessDescription: this.submitSuccessDescription,
|
|
1612
|
+
submitErrorHeader: this.submitErrorHeader,
|
|
1613
|
+
submitErrorDescription: this.submitErrorDescription,
|
|
1614
|
+
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
1615
|
+
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
1616
|
+
firstNameLabel: this.firstNameLabel,
|
|
1617
|
+
lastNameLabel: this.lastNameLabel,
|
|
1618
|
+
};
|
|
1619
|
+
return (h$1(LeadFormView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
1620
|
+
}
|
|
1621
|
+
};
|
|
1622
|
+
function useRegisterDemo(props) {
|
|
1623
|
+
return cjs({
|
|
1624
|
+
states: {
|
|
1625
|
+
error: "",
|
|
1626
|
+
loading: false,
|
|
1627
|
+
success: false,
|
|
1628
|
+
},
|
|
1629
|
+
callbacks: {
|
|
1630
|
+
submit: async (_event) => {
|
|
1631
|
+
console.log("submit");
|
|
1632
|
+
},
|
|
1633
|
+
inputFunction: () => { },
|
|
1634
|
+
resetForm: () => { },
|
|
1635
|
+
},
|
|
1636
|
+
refs: {
|
|
1637
|
+
formRef: {},
|
|
1638
|
+
},
|
|
1639
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1910
1642
|
const GET_LEADERBOARD = dist.gql `
|
|
1911
1643
|
query (
|
|
1912
1644
|
$type: String!
|
|
@@ -2070,6 +1802,13 @@ const Leaderboard = class {
|
|
|
2070
1802
|
* @uiName Width
|
|
2071
1803
|
*/
|
|
2072
1804
|
this.width = "100%";
|
|
1805
|
+
/**
|
|
1806
|
+
* Hide the viewer's leaderboard row if not in the top results.
|
|
1807
|
+
*
|
|
1808
|
+
* @uiName Hide viewing user
|
|
1809
|
+
* @default
|
|
1810
|
+
*/
|
|
1811
|
+
this.hideViewer = false;
|
|
2073
1812
|
/**
|
|
2074
1813
|
* @uiName Viewing user text
|
|
2075
1814
|
*/
|
|
@@ -2092,13 +1831,6 @@ const Leaderboard = class {
|
|
|
2092
1831
|
* @uiName Maximum rows number
|
|
2093
1832
|
*/
|
|
2094
1833
|
this.maxRows = 10;
|
|
2095
|
-
/**
|
|
2096
|
-
* Hide the viewer's leaderboard row if not in the top results.
|
|
2097
|
-
*
|
|
2098
|
-
* @uiName Hide viewing user
|
|
2099
|
-
* @default
|
|
2100
|
-
*/
|
|
2101
|
-
this.hideViewer = false;
|
|
2102
1834
|
this.ignored = true;
|
|
2103
1835
|
h(this);
|
|
2104
1836
|
withShadowView(this);
|
|
@@ -2122,12 +1854,6 @@ const Leaderboard = class {
|
|
|
2122
1854
|
showRank: this.showRank,
|
|
2123
1855
|
rankSuffix: this.rankSuffix,
|
|
2124
1856
|
width: this.width,
|
|
2125
|
-
viewingUserHighlightColor: this.viewingUserHighlightColor,
|
|
2126
|
-
viewingUserHighlightTextColor: this.viewingUserHighlightTextColor,
|
|
2127
|
-
background: this.background,
|
|
2128
|
-
borderColor: this.borderColor,
|
|
2129
|
-
textColor: this.textColor,
|
|
2130
|
-
borderRadius: this.borderRadius,
|
|
2131
1857
|
};
|
|
2132
1858
|
const demoProps = { ...props, demoData: this.demoData };
|
|
2133
1859
|
const viewprops = isDemo()
|
|
@@ -2198,12 +1924,6 @@ function useLeaderboardDemo(props) {
|
|
|
2198
1924
|
hideNames: props.hideNames,
|
|
2199
1925
|
rankSuffix: props.rankSuffix,
|
|
2200
1926
|
width: props.width,
|
|
2201
|
-
viewingUserHighlightColor: props.viewingUserHighlightColor,
|
|
2202
|
-
viewingUserHighlightTextColor: props.viewingUserHighlightTextColor,
|
|
2203
|
-
background: props.background,
|
|
2204
|
-
borderColor: props.borderColor,
|
|
2205
|
-
textColor: props.textColor,
|
|
2206
|
-
borderRadius: props.borderRadius,
|
|
2207
1927
|
},
|
|
2208
1928
|
},
|
|
2209
1929
|
data: {
|
|
@@ -2216,7 +1936,7 @@ function useLeaderboardDemo(props) {
|
|
|
2216
1936
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2217
1937
|
}
|
|
2218
1938
|
|
|
2219
|
-
const style
|
|
1939
|
+
const style = {
|
|
2220
1940
|
Container: { display: "contents" },
|
|
2221
1941
|
Link: {
|
|
2222
1942
|
textDecoration: "none",
|
|
@@ -2228,16 +1948,16 @@ const vanillaStyle = `
|
|
|
2228
1948
|
display: inline;
|
|
2229
1949
|
}
|
|
2230
1950
|
`;
|
|
2231
|
-
const sheet
|
|
2232
|
-
const styleString
|
|
1951
|
+
const sheet = createStyleSheet(style);
|
|
1952
|
+
const styleString = sheet.toString();
|
|
2233
1953
|
function LinkButtonView(props) {
|
|
2234
1954
|
const { onClick, buttonText } = props;
|
|
2235
|
-
return (h$1("span", { class: sheet
|
|
1955
|
+
return (h$1("span", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2236
1956
|
h$1("style", { type: "text/css" },
|
|
2237
|
-
styleString
|
|
1957
|
+
styleString,
|
|
2238
1958
|
vanillaStyle),
|
|
2239
1959
|
h$1("sl-button", { onClick: onClick, type: "primary", exportparts: "base: primarybutton-base" },
|
|
2240
|
-
h$1("a", { class: sheet
|
|
1960
|
+
h$1("a", { class: sheet.classes.Link, part: "sqm-link" }, buttonText))));
|
|
2241
1961
|
}
|
|
2242
1962
|
|
|
2243
1963
|
const LinkButton = class {
|
|
@@ -2418,27 +2138,27 @@ function useNavigationMenuDemo(props) {
|
|
|
2418
2138
|
}
|
|
2419
2139
|
NavigationMenu.style = sqmNavigationMenuCss;
|
|
2420
2140
|
|
|
2421
|
-
const style$
|
|
2141
|
+
const style$1 = {
|
|
2422
2142
|
Wrapper: {
|
|
2423
2143
|
maxWidth: "200px",
|
|
2424
2144
|
marginLeft: "auto",
|
|
2425
2145
|
},
|
|
2426
2146
|
PayoutButtonDescription: {
|
|
2427
|
-
color: "var(--
|
|
2147
|
+
color: "var(--sl-color-neutral-500)",
|
|
2428
2148
|
fontSize: "var(--sl-font-size-small)",
|
|
2429
2149
|
margin: "0",
|
|
2430
2150
|
},
|
|
2431
2151
|
};
|
|
2432
|
-
const sheet$
|
|
2433
|
-
const styleString$
|
|
2152
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
2153
|
+
const styleString$1 = sheet$1.toString();
|
|
2434
2154
|
function PayoutButtonScrollView(props) {
|
|
2435
2155
|
const { text, states } = props;
|
|
2436
2156
|
if (!states.payoutSettingsComplete)
|
|
2437
2157
|
return h$1("div", null);
|
|
2438
|
-
return (h$1("div", { class: sheet$
|
|
2439
|
-
h$1("style", { type: "text/css" }, styleString$
|
|
2158
|
+
return (h$1("div", { class: sheet$1.classes.Wrapper },
|
|
2159
|
+
h$1("style", { type: "text/css" }, styleString$1),
|
|
2440
2160
|
h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.payoutButtonText, "scroll-animation": "smooth" }),
|
|
2441
|
-
h$1("p", { class: sheet$
|
|
2161
|
+
h$1("p", { class: sheet$1.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
|
|
2442
2162
|
}
|
|
2443
2163
|
|
|
2444
2164
|
const GET_PAYOUT_DETAILS = dist.gql `
|
|
@@ -2511,7 +2231,7 @@ function useDemoPayoutButtonScroll(props) {
|
|
|
2511
2231
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2512
2232
|
}
|
|
2513
2233
|
|
|
2514
|
-
const style$
|
|
2234
|
+
const style$2 = {
|
|
2515
2235
|
SkeletonOne: {
|
|
2516
2236
|
width: "50%",
|
|
2517
2237
|
height: "16px",
|
|
@@ -2520,6 +2240,33 @@ const style$3 = {
|
|
|
2520
2240
|
margin: "0",
|
|
2521
2241
|
marginBottom: "var(--sl-spacing-small)",
|
|
2522
2242
|
},
|
|
2243
|
+
ErrorAlertContainer: {
|
|
2244
|
+
"&::part(base)": {
|
|
2245
|
+
backgroundColor: "var(--sl-color-red-100)",
|
|
2246
|
+
borderTop: "none",
|
|
2247
|
+
},
|
|
2248
|
+
"& sl-icon::part(base)": {
|
|
2249
|
+
color: "var(--sl-color-danger-500)",
|
|
2250
|
+
},
|
|
2251
|
+
},
|
|
2252
|
+
WarningAlertContainer: {
|
|
2253
|
+
"&::part(base)": {
|
|
2254
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
2255
|
+
borderTop: "none",
|
|
2256
|
+
},
|
|
2257
|
+
"& sl-icon::part(base)": {
|
|
2258
|
+
color: "var(--sl-color-danger-500)",
|
|
2259
|
+
},
|
|
2260
|
+
},
|
|
2261
|
+
InfoAlertContainer: {
|
|
2262
|
+
"&::part(base)": {
|
|
2263
|
+
backgroundColor: "var(--sl-color-sky-100)",
|
|
2264
|
+
borderTop: "none",
|
|
2265
|
+
},
|
|
2266
|
+
"& sl-icon::part(base)": {
|
|
2267
|
+
color: "var(--sl-color-blue-500)",
|
|
2268
|
+
},
|
|
2269
|
+
},
|
|
2523
2270
|
Dialog: {
|
|
2524
2271
|
"&::part(panel)": {
|
|
2525
2272
|
height: "600px",
|
|
@@ -2535,15 +2282,8 @@ const style$3 = {
|
|
|
2535
2282
|
"&::part(footer)": {},
|
|
2536
2283
|
},
|
|
2537
2284
|
};
|
|
2538
|
-
const
|
|
2539
|
-
|
|
2540
|
-
color: inherit;
|
|
2541
|
-
text-decoration: underline;
|
|
2542
|
-
cursor: pointer;
|
|
2543
|
-
}
|
|
2544
|
-
`;
|
|
2545
|
-
const sheet$3 = createStyleSheet(style$3);
|
|
2546
|
-
const styleString$3 = sheet$3.toString();
|
|
2285
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2286
|
+
const styleString$2 = sheet$2.toString();
|
|
2547
2287
|
function PayoutStatusAlertView(props) {
|
|
2548
2288
|
const { text, states, data, callbacks } = props;
|
|
2549
2289
|
function getAlert(status) {
|
|
@@ -2553,6 +2293,8 @@ function PayoutStatusAlertView(props) {
|
|
|
2553
2293
|
description: text.errorDescription,
|
|
2554
2294
|
buttonText: null,
|
|
2555
2295
|
alertType: "critical",
|
|
2296
|
+
icon: "exclamation-triangle",
|
|
2297
|
+
class: sheet$2.classes.ErrorAlertContainer,
|
|
2556
2298
|
};
|
|
2557
2299
|
switch (status) {
|
|
2558
2300
|
case "INFORMATION_REQUIRED":
|
|
@@ -2561,6 +2303,8 @@ function PayoutStatusAlertView(props) {
|
|
|
2561
2303
|
description: text.informationRequiredDescription,
|
|
2562
2304
|
buttonText: text.informationRequiredButtonText,
|
|
2563
2305
|
alertType: "info",
|
|
2306
|
+
icon: "info-circle",
|
|
2307
|
+
class: sheet$2.classes.InfoAlertContainer,
|
|
2564
2308
|
};
|
|
2565
2309
|
case "VERIFICATION:REQUIRED":
|
|
2566
2310
|
return {
|
|
@@ -2573,6 +2317,8 @@ function PayoutStatusAlertView(props) {
|
|
|
2573
2317
|
}),
|
|
2574
2318
|
buttonText: text.verificationRequiredButtonText,
|
|
2575
2319
|
alertType: "warning",
|
|
2320
|
+
icon: "exclamation-triangle",
|
|
2321
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2576
2322
|
};
|
|
2577
2323
|
case "VERIFICATION:INTERNAL":
|
|
2578
2324
|
return {
|
|
@@ -2584,6 +2330,8 @@ function PayoutStatusAlertView(props) {
|
|
|
2584
2330
|
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2585
2331
|
}),
|
|
2586
2332
|
alertType: "warning",
|
|
2333
|
+
icon: "exclamation-triangle",
|
|
2334
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2587
2335
|
};
|
|
2588
2336
|
case "VERIFICATION:REVIEW":
|
|
2589
2337
|
return {
|
|
@@ -2595,6 +2343,8 @@ function PayoutStatusAlertView(props) {
|
|
|
2595
2343
|
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2596
2344
|
}),
|
|
2597
2345
|
alertType: "warning",
|
|
2346
|
+
icon: "exclamation-triangle",
|
|
2347
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2598
2348
|
};
|
|
2599
2349
|
case "VERIFICATION:FAILED":
|
|
2600
2350
|
return {
|
|
@@ -2606,6 +2356,17 @@ function PayoutStatusAlertView(props) {
|
|
|
2606
2356
|
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2607
2357
|
}),
|
|
2608
2358
|
alertType: "critical",
|
|
2359
|
+
icon: "exclamation-octagon",
|
|
2360
|
+
class: sheet$2.classes.ErrorAlertContainer,
|
|
2361
|
+
};
|
|
2362
|
+
case "OVER_W9_THRESHOLD":
|
|
2363
|
+
return {
|
|
2364
|
+
header: text.w9RequiredHeader,
|
|
2365
|
+
description: text.w9RequiredDescription,
|
|
2366
|
+
buttonText: text.w9RequiredButtonText,
|
|
2367
|
+
alertType: "warning",
|
|
2368
|
+
icon: "exclamation-triangle",
|
|
2369
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2609
2370
|
};
|
|
2610
2371
|
case "HOLD":
|
|
2611
2372
|
return {
|
|
@@ -2618,6 +2379,8 @@ function PayoutStatusAlertView(props) {
|
|
|
2618
2379
|
}),
|
|
2619
2380
|
buttonText: null,
|
|
2620
2381
|
alertType: "warning",
|
|
2382
|
+
icon: "exclamation-triangle",
|
|
2383
|
+
class: sheet$2.classes.WarningAlertContainer,
|
|
2621
2384
|
};
|
|
2622
2385
|
default:
|
|
2623
2386
|
return;
|
|
@@ -2625,33 +2388,33 @@ function PayoutStatusAlertView(props) {
|
|
|
2625
2388
|
}
|
|
2626
2389
|
function getButton(status) {
|
|
2627
2390
|
switch (status) {
|
|
2391
|
+
case "OVER_W9_THRESHOLD":
|
|
2392
|
+
return data.type === "SquatchJS2" ? (h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.w9RequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h$1("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.w9RequiredButtonText)) : (
|
|
2393
|
+
// Demo case
|
|
2394
|
+
h$1("sl-button", { type: "default" }, text.w9RequiredButtonText));
|
|
2628
2395
|
case "INFORMATION_REQUIRED":
|
|
2629
|
-
return data.type === "SquatchJS2" ? (h$1("
|
|
2630
|
-
h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" }))) : data.type === "SquatchPortal" ? (h$1("div", { style: { paddingTop: "10px" } },
|
|
2631
|
-
h$1("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText))) : (
|
|
2396
|
+
return data.type === "SquatchJS2" ? (h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h$1("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (
|
|
2632
2397
|
// Demo case
|
|
2633
|
-
h$1("
|
|
2634
|
-
h$1("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base" }, text.informationRequiredButtonText)));
|
|
2398
|
+
h$1("sl-button", { type: "default" }, text.informationRequiredButtonText));
|
|
2635
2399
|
case "VERIFICATION:REQUIRED":
|
|
2636
|
-
return (h$1("
|
|
2637
|
-
h$1("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText)));
|
|
2400
|
+
return (h$1("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
|
|
2638
2401
|
default:
|
|
2639
2402
|
return;
|
|
2640
2403
|
}
|
|
2641
2404
|
}
|
|
2642
2405
|
if (states.loading) {
|
|
2643
|
-
return h$1("sl-skeleton", { class: sheet$
|
|
2406
|
+
return h$1("sl-skeleton", { class: sheet$2.classes.SkeletonOne });
|
|
2644
2407
|
}
|
|
2645
2408
|
const alertDetails = getAlert(states.status);
|
|
2646
2409
|
if (states.status === "DONE" || !alertDetails) {
|
|
2647
2410
|
return h$1("div", null);
|
|
2648
2411
|
}
|
|
2649
2412
|
return (h$1("div", { part: "sqm-base" },
|
|
2650
|
-
h$1("style", { type: "text/css" }, styleString$
|
|
2651
|
-
h$1("
|
|
2652
|
-
|
|
2653
|
-
h$1("
|
|
2654
|
-
h$1("p", {
|
|
2413
|
+
h$1("style", { type: "text/css" }, styleString$2),
|
|
2414
|
+
h$1("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: alertDetails.alertType, class: alertDetails.class, open: true },
|
|
2415
|
+
h$1("sl-icon", { slot: "icon", name: alertDetails.icon }),
|
|
2416
|
+
h$1("strong", null, alertDetails.header),
|
|
2417
|
+
h$1("p", { class: sheet$2.classes.AlertDescriptionText }, alertDetails.description),
|
|
2655
2418
|
getButton(states.status))));
|
|
2656
2419
|
}
|
|
2657
2420
|
|
|
@@ -2706,6 +2469,18 @@ const PayoutStatusAlert = class {
|
|
|
2706
2469
|
* @uiName Verification failed internal alert description
|
|
2707
2470
|
*/
|
|
2708
2471
|
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}.";
|
|
2472
|
+
/**
|
|
2473
|
+
* @uiName W9 payment threshold alert header
|
|
2474
|
+
*/
|
|
2475
|
+
this.w9RequiredHeader = "Your next payout is on hold";
|
|
2476
|
+
/**
|
|
2477
|
+
* @uiName W9 payment threshold alert description
|
|
2478
|
+
*/
|
|
2479
|
+
this.w9RequiredDescription = "To remove the hold, you need to submit a W9 tax form as outlines in our Terms and Conditions. Please click 'Submit W9' to start the process.";
|
|
2480
|
+
/**
|
|
2481
|
+
* @uiName W9 payment threshold alert button text
|
|
2482
|
+
*/
|
|
2483
|
+
this.w9RequiredButtonText = "Submit W9";
|
|
2709
2484
|
/**
|
|
2710
2485
|
* @uiName Payout on hold alert header
|
|
2711
2486
|
*/
|
|
@@ -3185,7 +2960,7 @@ const PortalFooter = class {
|
|
|
3185
2960
|
static get assetsDirs() { return ["../../assets"]; }
|
|
3186
2961
|
};
|
|
3187
2962
|
|
|
3188
|
-
function usePortalFrame(footerContent, headerContent
|
|
2963
|
+
function usePortalFrame(footerContent, headerContent) {
|
|
3189
2964
|
const [, rerender] = yn();
|
|
3190
2965
|
return {
|
|
3191
2966
|
data: {
|
|
@@ -3195,9 +2970,6 @@ function usePortalFrame(footerContent, headerContent, props) {
|
|
|
3195
2970
|
callbacks: {
|
|
3196
2971
|
rerender,
|
|
3197
2972
|
},
|
|
3198
|
-
backgroundColor: props.backgroundColor,
|
|
3199
|
-
border: props.border,
|
|
3200
|
-
headerAndFooterBackgroundColor: props.headerAndFooterBackgroundColor,
|
|
3201
2973
|
};
|
|
3202
2974
|
}
|
|
3203
2975
|
|
|
@@ -3209,25 +2981,6 @@ const PortalFrame = class {
|
|
|
3209
2981
|
* @undocumented
|
|
3210
2982
|
*/
|
|
3211
2983
|
this.notFullScreen = false;
|
|
3212
|
-
/**
|
|
3213
|
-
* @uiName Background color
|
|
3214
|
-
* @uiWidget color
|
|
3215
|
-
* @uiType string
|
|
3216
|
-
*/
|
|
3217
|
-
this.backgroundColor = "var(--sqm-portal-background, #fff)";
|
|
3218
|
-
/**
|
|
3219
|
-
* Borders placed to seperate the header and footer from the body content.
|
|
3220
|
-
* @uiName Border
|
|
3221
|
-
* @uiType string
|
|
3222
|
-
*/
|
|
3223
|
-
this.border = "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color, #eaeaea)";
|
|
3224
|
-
/**
|
|
3225
|
-
* Background color for the header and footer.
|
|
3226
|
-
* @uiName Header and Footer Background Color
|
|
3227
|
-
* @uiWidget color
|
|
3228
|
-
* @uiType string
|
|
3229
|
-
*/
|
|
3230
|
-
this.headerAndFooterBackgroundColor = "var(--sqm-portal-background, #fff)";
|
|
3231
2984
|
h(this);
|
|
3232
2985
|
}
|
|
3233
2986
|
disconnectedCallback() { }
|
|
@@ -3236,16 +2989,13 @@ const PortalFrame = class {
|
|
|
3236
2989
|
const headerContent = h$1("slot", { name: "header" });
|
|
3237
2990
|
const props = isDemo()
|
|
3238
2991
|
? usePortalFrameDemo(footerContent, headerContent, this)
|
|
3239
|
-
: usePortalFrame(footerContent, headerContent
|
|
2992
|
+
: usePortalFrame(footerContent, headerContent);
|
|
3240
2993
|
return (h$1(PortalFrameView, Object.assign({}, props), h$1("slot", null)));
|
|
3241
2994
|
}
|
|
3242
2995
|
};
|
|
3243
2996
|
function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
3244
2997
|
return cjs({
|
|
3245
2998
|
notFullScreen: true,
|
|
3246
|
-
backgroundColor: props.backgroundColor,
|
|
3247
|
-
headerAndFooterBackgroundColor: props.headerAndFooterBackgroundColor,
|
|
3248
|
-
border: props.border,
|
|
3249
2999
|
data: {
|
|
3250
3000
|
footer: footerContent ? (footerContent) : (h$1("span", null, "example@example.com")),
|
|
3251
3001
|
header: headerContent ? (headerContent) : (h$1("div", { style: { display: "flex", flexDirection: "column" } }, h$1("span", { style: {
|
|
@@ -3335,7 +3085,7 @@ const PortalLogin = class {
|
|
|
3335
3085
|
const content = {
|
|
3336
3086
|
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => jn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
3337
3087
|
googleButton: null,
|
|
3338
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("style", null, styleString), h$1("sl-button", {
|
|
3088
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("style", null, styleString), h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => jn.push(states.registerPath) }, this.registerLabel))),
|
|
3339
3089
|
emailLabel: this.emailLabel,
|
|
3340
3090
|
passwordLabel: this.passwordLabel,
|
|
3341
3091
|
submitLabel: this.submitLabel,
|
|
@@ -3497,7 +3247,7 @@ function usePortalRegister(props) {
|
|
|
3497
3247
|
const PortalRegister = class {
|
|
3498
3248
|
constructor(hostRef) {
|
|
3499
3249
|
registerInstance(this, hostRef);
|
|
3500
|
-
this.ignored =
|
|
3250
|
+
this.ignored = true;
|
|
3501
3251
|
/**
|
|
3502
3252
|
* Redirect participants to this page from their verification email
|
|
3503
3253
|
*
|
|
@@ -3614,7 +3364,7 @@ const PortalRegister = class {
|
|
|
3614
3364
|
disconnectedCallback() { }
|
|
3615
3365
|
render() {
|
|
3616
3366
|
const { states, callbacks, refs } = isDemo()
|
|
3617
|
-
? useRegisterDemo(this)
|
|
3367
|
+
? useRegisterDemo$1(this)
|
|
3618
3368
|
: usePortalRegister(this);
|
|
3619
3369
|
const content = {
|
|
3620
3370
|
formData: h$1("slot", { name: "formData" }),
|
|
@@ -3637,7 +3387,7 @@ const PortalRegister = class {
|
|
|
3637
3387
|
return (h$1(PortalRegisterView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
3638
3388
|
}
|
|
3639
3389
|
};
|
|
3640
|
-
function useRegisterDemo(props) {
|
|
3390
|
+
function useRegisterDemo$1(props) {
|
|
3641
3391
|
return cjs({
|
|
3642
3392
|
states: {
|
|
3643
3393
|
error: "",
|
|
@@ -3663,7 +3413,7 @@ function useRegisterDemo(props) {
|
|
|
3663
3413
|
function ProgramExplainerView(props, children) {
|
|
3664
3414
|
const style = {
|
|
3665
3415
|
Container: {
|
|
3666
|
-
color: props.textColor || "var(--
|
|
3416
|
+
color: props.textColor || "var(--sl-color-neutral-900)",
|
|
3667
3417
|
background: props.backgroundColor || "",
|
|
3668
3418
|
},
|
|
3669
3419
|
Header: {
|
|
@@ -3723,11 +3473,8 @@ function ProgramExplainerStepView(props) {
|
|
|
3723
3473
|
width: "100%",
|
|
3724
3474
|
padding: "var(--sl-spacing-x-large)",
|
|
3725
3475
|
lineHeight: "var(--sl-line-height-dense)",
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
: "var(--sqm-border-radius-normal)",
|
|
3729
|
-
color: props.textColor || "var(--sqm-text)",
|
|
3730
|
-
background: props.backgroundColor || "var(--sqm-accent-color-background)",
|
|
3476
|
+
color: props.textColor || "var(--sl-color-neutral-900)",
|
|
3477
|
+
background: props.backgroundColor || "var(--sl-color-primary-50)",
|
|
3731
3478
|
"@media (max-width: 499px)": {
|
|
3732
3479
|
flexDirection: "row",
|
|
3733
3480
|
width: "auto",
|
|
@@ -3740,7 +3487,6 @@ function ProgramExplainerStepView(props) {
|
|
|
3740
3487
|
},
|
|
3741
3488
|
},
|
|
3742
3489
|
Header: {
|
|
3743
|
-
color: props.textColor || "var(--sqm-text)",
|
|
3744
3490
|
fontSize: "var(--sl-font-size-large)",
|
|
3745
3491
|
fontWeight: "var(--sl-font-weight-bold)",
|
|
3746
3492
|
marginTop: "var(--sl-spacing-x-large)",
|
|
@@ -3749,7 +3495,6 @@ function ProgramExplainerStepView(props) {
|
|
|
3749
3495
|
},
|
|
3750
3496
|
},
|
|
3751
3497
|
Description: {
|
|
3752
|
-
color: props.textColor || "var(--sqm-text)",
|
|
3753
3498
|
fontSize: "var(--sl-font-size-medium)",
|
|
3754
3499
|
marginTop: "var(--sl-spacing-small)",
|
|
3755
3500
|
"@media (max-width: 499px)": {
|
|
@@ -3762,14 +3507,11 @@ function ProgramExplainerStepView(props) {
|
|
|
3762
3507
|
borderRadius: "100%",
|
|
3763
3508
|
objectFit: "cover",
|
|
3764
3509
|
userSelect: "none",
|
|
3765
|
-
background:
|
|
3766
|
-
color:
|
|
3510
|
+
background: "#FFF",
|
|
3511
|
+
color: "var(--sl-color-primary-300)",
|
|
3767
3512
|
fontSize: "26px",
|
|
3768
3513
|
textAlign: "center",
|
|
3769
3514
|
lineHeight: "72px",
|
|
3770
|
-
display: "flex",
|
|
3771
|
-
alignItems: "center",
|
|
3772
|
-
justifyContent: "center",
|
|
3773
3515
|
},
|
|
3774
3516
|
};
|
|
3775
3517
|
const sheet = createStyleSheet(style);
|
|
@@ -3798,7 +3540,7 @@ const debug = browser("sq:useProgramMenu");
|
|
|
3798
3540
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
3799
3541
|
function useProgramMenu(props) {
|
|
3800
3542
|
const programId = H();
|
|
3801
|
-
const host = _
|
|
3543
|
+
const host = _();
|
|
3802
3544
|
debug({ programId, props });
|
|
3803
3545
|
const ref = useRef();
|
|
3804
3546
|
const [, rerender] = yn();
|
|
@@ -3838,47 +3580,44 @@ const ProgramMenu = class {
|
|
|
3838
3580
|
}
|
|
3839
3581
|
};
|
|
3840
3582
|
|
|
3841
|
-
const
|
|
3583
|
+
const style$3 = {
|
|
3584
|
+
Container: {
|
|
3585
|
+
borderRadius: "var(--sl-border-radius-large)",
|
|
3586
|
+
color: "var(--sl-color-neutral-900)",
|
|
3587
|
+
background: "var(--sl-color-neutral-0)",
|
|
3588
|
+
display: "flex",
|
|
3589
|
+
flexDirection: "column",
|
|
3590
|
+
rowGap: "var(--sl-spacing-large)",
|
|
3591
|
+
},
|
|
3592
|
+
EndContainer: {
|
|
3593
|
+
display: "flex",
|
|
3594
|
+
flexDirection: "column",
|
|
3595
|
+
alignItems: "center",
|
|
3596
|
+
},
|
|
3597
|
+
ColumnContainer: {
|
|
3598
|
+
"& p": { margin: "0" },
|
|
3599
|
+
display: "grid",
|
|
3600
|
+
gridAutoColumns: "minmax(0, 1fr)",
|
|
3601
|
+
gridAutoFlow: "column",
|
|
3602
|
+
gap: "calc(2 * var(--sl-spacing-medium))",
|
|
3603
|
+
"@media (max-width: 499px)": {
|
|
3604
|
+
gridAutoFlow: "unset",
|
|
3605
|
+
gridAutoColumns: "unset",
|
|
3606
|
+
gridTemplateColumns: "1fr",
|
|
3607
|
+
border: "none",
|
|
3608
|
+
},
|
|
3609
|
+
},
|
|
3610
|
+
};
|
|
3611
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
3612
|
+
const styleString$3 = sheet$3.toString();
|
|
3613
|
+
const vanillaStyle$1 = `
|
|
3842
3614
|
:host{
|
|
3843
3615
|
display: block;
|
|
3844
3616
|
}
|
|
3845
3617
|
`;
|
|
3846
3618
|
function ReferralCardView(props) {
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
borderRadius: props.borderRadius || "var(--sqm-border-radius-normal)",
|
|
3850
|
-
color: props.textColor || "var(--sqm-text)",
|
|
3851
|
-
background: props.backgroundColor || "var(--sqm-portal-background)",
|
|
3852
|
-
display: "flex",
|
|
3853
|
-
flexDirection: "column",
|
|
3854
|
-
rowGap: "var(--sl-spacing-large)",
|
|
3855
|
-
},
|
|
3856
|
-
EndContainer: {
|
|
3857
|
-
display: "flex",
|
|
3858
|
-
flexDirection: "column",
|
|
3859
|
-
alignItems: "center",
|
|
3860
|
-
},
|
|
3861
|
-
ColumnContainer: {
|
|
3862
|
-
"& p": { margin: "0" },
|
|
3863
|
-
display: "grid",
|
|
3864
|
-
gridAutoColumns: "minmax(0, 1fr)",
|
|
3865
|
-
gridAutoFlow: "column",
|
|
3866
|
-
gap: "calc(2 * var(--sl-spacing-medium))",
|
|
3867
|
-
"@media (max-width: 499px)": {
|
|
3868
|
-
gridAutoFlow: "unset",
|
|
3869
|
-
gridAutoColumns: "unset",
|
|
3870
|
-
gridTemplateColumns: "1fr",
|
|
3871
|
-
border: "none",
|
|
3872
|
-
},
|
|
3873
|
-
},
|
|
3874
|
-
};
|
|
3875
|
-
const sheet = createStyleSheet(style);
|
|
3876
|
-
const styleString = sheet.toString();
|
|
3877
|
-
const borderColor = props.borderColor || "var(--sqm-border-color)";
|
|
3878
|
-
return (h$1("div", { part: "sqm-base", class: sheet.classes.Container, style: {
|
|
3879
|
-
border: `${props.hideBorder
|
|
3880
|
-
? "none"
|
|
3881
|
-
: `var(--sqm-border-thickness) solid ${borderColor}`}`,
|
|
3619
|
+
return (h$1("div", { part: "sqm-base", class: sheet$3.classes.Container, style: {
|
|
3620
|
+
border: `${props.hideBorder ? "none" : "1px solid var(--sl-color-neutral-300)"}`,
|
|
3882
3621
|
"padding-top": `var(--sl-spacing-${props.paddingTop})`,
|
|
3883
3622
|
"padding-right": `var(--sl-spacing-${props.paddingRight})`,
|
|
3884
3623
|
"padding-bottom": `var(--sl-spacing-${props.paddingBottom})`,
|
|
@@ -3888,15 +3627,15 @@ function ReferralCardView(props) {
|
|
|
3888
3627
|
margin: `${props.limitWidth ? "auto" : "none"}`,
|
|
3889
3628
|
} },
|
|
3890
3629
|
h$1("style", { type: "text/css" },
|
|
3891
|
-
styleString,
|
|
3892
|
-
vanillaStyle$
|
|
3893
|
-
props.hasHeader && (h$1("div", { class: sheet.classes.EndContainer }, props.slots.header)),
|
|
3894
|
-
h$1("div", { part: "sqm-column-container", class: sheet.classes.ColumnContainer, style: {
|
|
3630
|
+
styleString$3,
|
|
3631
|
+
vanillaStyle$1),
|
|
3632
|
+
props.hasHeader && (h$1("div", { class: sheet$3.classes.EndContainer }, props.slots.header)),
|
|
3633
|
+
h$1("div", { part: "sqm-column-container", class: sheet$3.classes.ColumnContainer, style: {
|
|
3895
3634
|
alignItems: props.verticalAlignment,
|
|
3896
3635
|
} },
|
|
3897
3636
|
props.slots.left,
|
|
3898
3637
|
props.slots.right),
|
|
3899
|
-
props.hasFooter && (h$1("div", { class: sheet.classes.EndContainer }, props.slots.footer))));
|
|
3638
|
+
props.hasFooter && (h$1("div", { class: sheet$3.classes.EndContainer }, props.slots.footer))));
|
|
3900
3639
|
}
|
|
3901
3640
|
|
|
3902
3641
|
const ReferralCard = class {
|
|
@@ -3943,6 +3682,12 @@ const ReferralCard = class {
|
|
|
3943
3682
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
3944
3683
|
*/
|
|
3945
3684
|
this.paddingLeft = "large";
|
|
3685
|
+
/**
|
|
3686
|
+
* @uiName Background color
|
|
3687
|
+
* @uiWidget color
|
|
3688
|
+
* @uiType string
|
|
3689
|
+
*/
|
|
3690
|
+
this.backgroundColor = "#ffffff";
|
|
3946
3691
|
/**
|
|
3947
3692
|
* @uiName Limit width
|
|
3948
3693
|
* @uiType boolean
|
|
@@ -3965,7 +3710,7 @@ const ReferralCard = class {
|
|
|
3965
3710
|
}
|
|
3966
3711
|
};
|
|
3967
3712
|
|
|
3968
|
-
const GET_USER_DETAILS = dist.gql `
|
|
3713
|
+
const GET_USER_DETAILS$1 = dist.gql `
|
|
3969
3714
|
query getUser($programId: ID) {
|
|
3970
3715
|
viewer {
|
|
3971
3716
|
... on User {
|
|
@@ -3978,7 +3723,7 @@ function useReferralIframe(props) {
|
|
|
3978
3723
|
var _a;
|
|
3979
3724
|
const programId = H();
|
|
3980
3725
|
const user = J();
|
|
3981
|
-
const { data } = wn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
3726
|
+
const { data } = wn(GET_USER_DETAILS$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
3982
3727
|
return {
|
|
3983
3728
|
states: {
|
|
3984
3729
|
content: props,
|
|
@@ -4036,161 +3781,6 @@ function useReferralIframeDemo(props) {
|
|
|
4036
3781
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4037
3782
|
}
|
|
4038
3783
|
|
|
4039
|
-
const ReferredRegistration = class {
|
|
4040
|
-
constructor(hostRef) {
|
|
4041
|
-
registerInstance(this, hostRef);
|
|
4042
|
-
this.ignored = true;
|
|
4043
|
-
/**
|
|
4044
|
-
* @uiName Email field label
|
|
4045
|
-
*/
|
|
4046
|
-
this.emailLabel = "Email";
|
|
4047
|
-
/**
|
|
4048
|
-
* @uiName First name field label
|
|
4049
|
-
*/
|
|
4050
|
-
this.firstNameLabel = "First Name";
|
|
4051
|
-
/**
|
|
4052
|
-
* @uiName Last name field label
|
|
4053
|
-
*/
|
|
4054
|
-
this.lastNameLabel = "Last Name";
|
|
4055
|
-
/**
|
|
4056
|
-
* @uiName Register button text
|
|
4057
|
-
*/
|
|
4058
|
-
this.registerLabel = "Start Referring";
|
|
4059
|
-
/**
|
|
4060
|
-
* Require your participants to enter their first and last name.
|
|
4061
|
-
*
|
|
4062
|
-
* @uiName Include name fields
|
|
4063
|
-
*/
|
|
4064
|
-
this.includeName = false;
|
|
4065
|
-
/**
|
|
4066
|
-
* @uiName Hide border
|
|
4067
|
-
* @uiGroup Card style
|
|
4068
|
-
*/
|
|
4069
|
-
this.hideBorder = false;
|
|
4070
|
-
/**
|
|
4071
|
-
* Display this message when a required field has not been filled out.
|
|
4072
|
-
*
|
|
4073
|
-
* @uiName Required field message
|
|
4074
|
-
* @uiWidget textArea
|
|
4075
|
-
* @uiGroup Error messages
|
|
4076
|
-
*/
|
|
4077
|
-
this.requiredFieldErrorMessage = "Cannot be empty";
|
|
4078
|
-
/**
|
|
4079
|
-
* Display this message when the given email is invalid.
|
|
4080
|
-
*
|
|
4081
|
-
* @uiName Invalid email message
|
|
4082
|
-
* @uiWidget textArea
|
|
4083
|
-
* @uiGroup Error messages
|
|
4084
|
-
*/
|
|
4085
|
-
this.invalidEmailErrorMessage = "Please enter a valid email address";
|
|
4086
|
-
/**
|
|
4087
|
-
* Display this message when the form submission unexpectedly fails.
|
|
4088
|
-
*
|
|
4089
|
-
* @uiName Network error message
|
|
4090
|
-
* @uiWidget textArea
|
|
4091
|
-
* @uiGroup Error messages
|
|
4092
|
-
*/
|
|
4093
|
-
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.";
|
|
4094
|
-
/**
|
|
4095
|
-
* Display this message when there is suspected fraud.
|
|
4096
|
-
*
|
|
4097
|
-
* @uiName Fraud error message
|
|
4098
|
-
* @uiWidget textArea
|
|
4099
|
-
* @uiGroup Error messages
|
|
4100
|
-
*/
|
|
4101
|
-
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.";
|
|
4102
|
-
/**
|
|
4103
|
-
* Display this message when there is suspected fraud.
|
|
4104
|
-
*
|
|
4105
|
-
* @uiName Fraud error message title
|
|
4106
|
-
* @uiWidget textArea
|
|
4107
|
-
* @uiGroup Error messages
|
|
4108
|
-
*/
|
|
4109
|
-
this.fraudErrorMessageTitle = "Looks like you tried referring yourself";
|
|
4110
|
-
/**
|
|
4111
|
-
* @uiName Top padding
|
|
4112
|
-
* @uiGroup Card style
|
|
4113
|
-
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
4114
|
-
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
4115
|
-
*/
|
|
4116
|
-
this.paddingTop = "large";
|
|
4117
|
-
/**
|
|
4118
|
-
* @uiName Right padding
|
|
4119
|
-
* @uiGroup Card style
|
|
4120
|
-
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
4121
|
-
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
4122
|
-
*/
|
|
4123
|
-
this.paddingRight = "large";
|
|
4124
|
-
/**
|
|
4125
|
-
* @uiName Bottom padding
|
|
4126
|
-
* @uiGroup Card style
|
|
4127
|
-
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
4128
|
-
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
4129
|
-
*/
|
|
4130
|
-
this.paddingBottom = "large";
|
|
4131
|
-
/**
|
|
4132
|
-
* @uiName Left padding
|
|
4133
|
-
* @uiGroup Card style
|
|
4134
|
-
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
4135
|
-
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
4136
|
-
*/
|
|
4137
|
-
this.paddingLeft = "large";
|
|
4138
|
-
/**
|
|
4139
|
-
* @undocumented
|
|
4140
|
-
* @uiType boolean
|
|
4141
|
-
*/
|
|
4142
|
-
this.includeCookies = true;
|
|
4143
|
-
h(this);
|
|
4144
|
-
}
|
|
4145
|
-
disconnectedCallback() { }
|
|
4146
|
-
render() {
|
|
4147
|
-
const { states, callbacks } = isDemo()
|
|
4148
|
-
? useRegistrationDemo(this)
|
|
4149
|
-
: useInstantAccessRegistration(this);
|
|
4150
|
-
const content = {
|
|
4151
|
-
fraudErrorMessage: this.fraudErrorMessage,
|
|
4152
|
-
fraudErrorMessageTitle: this.fraudErrorMessageTitle,
|
|
4153
|
-
emailLabel: this.emailLabel,
|
|
4154
|
-
registerLabel: this.registerLabel,
|
|
4155
|
-
firstNameLabel: this.firstNameLabel,
|
|
4156
|
-
lastNameLabel: this.lastNameLabel,
|
|
4157
|
-
includeName: this.includeName,
|
|
4158
|
-
hideBorder: this.hideBorder,
|
|
4159
|
-
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
4160
|
-
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
4161
|
-
paddingTop: this.paddingTop,
|
|
4162
|
-
paddingBottom: this.paddingBottom,
|
|
4163
|
-
paddingLeft: this.paddingLeft,
|
|
4164
|
-
paddingRight: this.paddingRight,
|
|
4165
|
-
backgroundColor: this.backgroundColor,
|
|
4166
|
-
// slots
|
|
4167
|
-
topSlot: h$1("slot", { name: "top" }),
|
|
4168
|
-
bottomSlot: h$1("slot", { name: "bottom" }),
|
|
4169
|
-
};
|
|
4170
|
-
return (h$1(EmailRegistrationView, { states: states, callbacks: callbacks, content: content }));
|
|
4171
|
-
}
|
|
4172
|
-
};
|
|
4173
|
-
function useRegistrationDemo(props) {
|
|
4174
|
-
const onSubmit = () => {
|
|
4175
|
-
setUserIdentity({
|
|
4176
|
-
id: "referrer@example.com",
|
|
4177
|
-
accountId: "referrer@example.com",
|
|
4178
|
-
jwt: "eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg",
|
|
4179
|
-
});
|
|
4180
|
-
};
|
|
4181
|
-
return cjs({
|
|
4182
|
-
states: {
|
|
4183
|
-
error: "",
|
|
4184
|
-
loading: false,
|
|
4185
|
-
},
|
|
4186
|
-
callbacks: {
|
|
4187
|
-
submit: async (_event) => {
|
|
4188
|
-
onSubmit();
|
|
4189
|
-
},
|
|
4190
|
-
},
|
|
4191
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4192
|
-
}
|
|
4193
|
-
|
|
4194
3784
|
// canvas-confetti v1.4.0 built on 2021-03-10T12:32:33.488Z
|
|
4195
3785
|
var module = {};
|
|
4196
3786
|
|
|
@@ -5127,13 +4717,6 @@ const SqmRewardExchangeList = class {
|
|
|
5127
4717
|
* @uiName Cost row title
|
|
5128
4718
|
*/
|
|
5129
4719
|
this.costTitle = "Cost to Redeem";
|
|
5130
|
-
/**
|
|
5131
|
-
* @componentState { "title": "Choose reward", "props": { "redeemStage": "chooseReward" }, "dependencies": ["sqm-reward-exchange-list"] }
|
|
5132
|
-
* @componentState { "title": "Reward details", "props": { "redeemStage": "chooseAmount" }, "dependencies": ["sqm-reward-exchange-list"] }
|
|
5133
|
-
* @componentState { "title": "Confirm exchange", "props": { "redeemStage": "confirmation" }, "dependencies": ["sqm-reward-exchange-list"] }
|
|
5134
|
-
* @componentState { "title": "Exchange successful", "props": { "redeemStage": "success" }, "dependencies": ["sqm-reward-exchange-list"] }
|
|
5135
|
-
*/
|
|
5136
|
-
this.stateController = "{}";
|
|
5137
4720
|
h(this);
|
|
5138
4721
|
}
|
|
5139
4722
|
disconnectedCallback() { }
|
|
@@ -5153,10 +4736,6 @@ function EmptySlot$1() {
|
|
|
5153
4736
|
return (h$1("slot", { name: "empty" }, h$1("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" })));
|
|
5154
4737
|
}
|
|
5155
4738
|
function useRewardExchangeListDemo(props) {
|
|
5156
|
-
const states = parseStates(props.stateController);
|
|
5157
|
-
const formatted = Object.keys(states).reduce((prev, key) => key === "reward-exchange-list"
|
|
5158
|
-
? { ...prev, ...states[key] }
|
|
5159
|
-
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
5160
4739
|
return cjs({
|
|
5161
4740
|
states: {
|
|
5162
4741
|
content: {
|
|
@@ -5171,9 +4750,10 @@ function useRewardExchangeListDemo(props) {
|
|
|
5171
4750
|
queryError: false,
|
|
5172
4751
|
loading: false,
|
|
5173
4752
|
noExchangeOptions: false,
|
|
4753
|
+
empty: EmptySlot$1(),
|
|
5174
4754
|
},
|
|
5175
4755
|
data: {
|
|
5176
|
-
|
|
4756
|
+
shareCode: "SHARECODE123",
|
|
5177
4757
|
exchangeList: demoRewardExchange.data.exchangeList,
|
|
5178
4758
|
},
|
|
5179
4759
|
callbacks: {
|
|
@@ -5186,7 +4766,7 @@ function useRewardExchangeListDemo(props) {
|
|
|
5186
4766
|
refs: {
|
|
5187
4767
|
canvasRef: {},
|
|
5188
4768
|
},
|
|
5189
|
-
}, props.demoData ||
|
|
4769
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5190
4770
|
}
|
|
5191
4771
|
|
|
5192
4772
|
const debug$1 = browser("sq:useRouter");
|
|
@@ -5198,7 +4778,7 @@ function matchPath(pattern, page) {
|
|
|
5198
4778
|
}
|
|
5199
4779
|
function useRouter() {
|
|
5200
4780
|
const location = kn();
|
|
5201
|
-
const host = _
|
|
4781
|
+
const host = _();
|
|
5202
4782
|
const [slot, setSlot] = useState(undefined);
|
|
5203
4783
|
const [container, setContainer] = useState(undefined);
|
|
5204
4784
|
const page = location.pathname;
|
|
@@ -5289,8 +4869,8 @@ const ShareButton = class {
|
|
|
5289
4869
|
/**
|
|
5290
4870
|
* @uiType string
|
|
5291
4871
|
* @uiName Button style
|
|
5292
|
-
* @uiEnum ["primary"
|
|
5293
|
-
* @uiEnumNames ["Primary", "
|
|
4872
|
+
* @uiEnum ["primary" , "success", "info", "warning", "danger", "default", "text" ]
|
|
4873
|
+
* @uiEnumNames ["Primary", "Success", "Info", "Warning", "Danger", "Default", "Text"]
|
|
5294
4874
|
*/
|
|
5295
4875
|
this.type = "default";
|
|
5296
4876
|
/**
|
|
@@ -5302,13 +4882,11 @@ const ShareButton = class {
|
|
|
5302
4882
|
this.iconslot = "prefix";
|
|
5303
4883
|
/**
|
|
5304
4884
|
* @uiName Hide icon
|
|
5305
|
-
* @uiGroup Style
|
|
5306
4885
|
* @default
|
|
5307
4886
|
*/
|
|
5308
4887
|
this.hideicon = false;
|
|
5309
4888
|
/**
|
|
5310
4889
|
* @uiName Hide text
|
|
5311
|
-
* @uiGroup Style
|
|
5312
4890
|
* @default
|
|
5313
4891
|
*/
|
|
5314
4892
|
this.hidetext = false;
|
|
@@ -5414,7 +4992,6 @@ const ShareCode = class {
|
|
|
5414
4992
|
* @uiType string
|
|
5415
4993
|
* @uiEnum ["left", "center", "right"]
|
|
5416
4994
|
* @uiEnumNames ["Left", "Center", "Right"]
|
|
5417
|
-
* @uiGroup Style
|
|
5418
4995
|
*/
|
|
5419
4996
|
this.textAlign = "left";
|
|
5420
4997
|
/**
|
|
@@ -5428,18 +5005,8 @@ const ShareCode = class {
|
|
|
5428
5005
|
* @uiType string
|
|
5429
5006
|
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
5430
5007
|
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
5431
|
-
* @uiGroup Style
|
|
5432
5008
|
*/
|
|
5433
5009
|
this.buttonStyle = "icon";
|
|
5434
|
-
/**
|
|
5435
|
-
* The type of the button that is used (primary or secondary).
|
|
5436
|
-
* @uiName Button Type
|
|
5437
|
-
* @uiType string
|
|
5438
|
-
* @uiEnum ["primary", "secondary"]
|
|
5439
|
-
* @uiEnumNames ["Primary", "Secondary"]
|
|
5440
|
-
* @uiGroup Style
|
|
5441
|
-
*/
|
|
5442
|
-
this.buttonType = "primary";
|
|
5443
5010
|
h(this);
|
|
5444
5011
|
}
|
|
5445
5012
|
disconnectedCallback() { }
|
|
@@ -5460,11 +5027,6 @@ function useDemoShareCode(props) {
|
|
|
5460
5027
|
textAlign: props.textAlign,
|
|
5461
5028
|
copyButtonLabel: props.copyButtonLabel,
|
|
5462
5029
|
buttonStyle: props.buttonStyle,
|
|
5463
|
-
backgroundColor: props.backgroundColor,
|
|
5464
|
-
textColor: props.textColor,
|
|
5465
|
-
borderRadius: props.borderRadius,
|
|
5466
|
-
borderColor: props.borderColor,
|
|
5467
|
-
buttonType: props.buttonType,
|
|
5468
5030
|
rewardStatus: "AVAILABLE",
|
|
5469
5031
|
open,
|
|
5470
5032
|
onClick: () => {
|
|
@@ -5499,30 +5061,19 @@ const ShareLink = class {
|
|
|
5499
5061
|
* @uiType string
|
|
5500
5062
|
* @uiEnum ["left", "center", "right"]
|
|
5501
5063
|
* @uiEnumNames ["Left", "Center", "Right"]
|
|
5502
|
-
* @uiGroup Style
|
|
5503
5064
|
*/
|
|
5504
5065
|
this.textAlign = "left";
|
|
5505
5066
|
/**
|
|
5506
5067
|
* @uiName Copy button label
|
|
5507
5068
|
*/
|
|
5508
5069
|
this.copyButtonLabel = "Copy Link";
|
|
5509
|
-
/**
|
|
5510
|
-
* The type of the button that is used (primary or secondary).
|
|
5511
|
-
* @uiName Button Type
|
|
5512
|
-
* @uiType string
|
|
5513
|
-
* @uiEnum ["primary", "secondary"]
|
|
5514
|
-
* @uiEnumNames ["Primary", "Secondary"]
|
|
5515
|
-
* @uiGroup Style
|
|
5516
|
-
*/
|
|
5517
|
-
this.buttonType = "primary";
|
|
5518
5070
|
/**
|
|
5519
5071
|
* Set the copy button style and placement
|
|
5520
5072
|
*
|
|
5521
|
-
* @uiName
|
|
5073
|
+
* @uiName Style
|
|
5522
5074
|
* @uiType string
|
|
5523
5075
|
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
5524
5076
|
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
5525
|
-
* @uiGroup Style
|
|
5526
5077
|
*/
|
|
5527
5078
|
this.buttonStyle = "icon";
|
|
5528
5079
|
h(this);
|
|
@@ -5544,12 +5095,7 @@ function useDemoShareLink(props) {
|
|
|
5544
5095
|
tooltiptext: props.tooltiptext,
|
|
5545
5096
|
textAlign: props.textAlign,
|
|
5546
5097
|
buttonStyle: props.buttonStyle,
|
|
5547
|
-
backgroundColor: props.backgroundColor,
|
|
5548
|
-
textColor: props.textColor,
|
|
5549
|
-
borderRadius: props.borderRadius,
|
|
5550
|
-
buttonType: props.buttonType,
|
|
5551
5098
|
copyButtonLabel: props.copyButtonLabel,
|
|
5552
|
-
borderColor: props.borderColor,
|
|
5553
5099
|
rewardStatus: "AVAILABLE",
|
|
5554
5100
|
open,
|
|
5555
5101
|
onClick: () => {
|
|
@@ -5574,29 +5120,12 @@ const StatContainer = class {
|
|
|
5574
5120
|
*/
|
|
5575
5121
|
this.space = "xxx-large";
|
|
5576
5122
|
/**
|
|
5577
|
-
* @undocumented
|
|
5578
5123
|
* @uiName Display
|
|
5579
5124
|
* @uiType string
|
|
5580
5125
|
* @uiEnum ["grid", "flex"]
|
|
5581
5126
|
* @uiEnumNames ["Grid", "Flex"]
|
|
5582
5127
|
*/
|
|
5583
|
-
this.display = "
|
|
5584
|
-
/**
|
|
5585
|
-
* Controls the alignment of the flexbox
|
|
5586
|
-
*
|
|
5587
|
-
* @uiName Alignment
|
|
5588
|
-
* @uiType string
|
|
5589
|
-
* @uiEnum ["left", "right", "center"]
|
|
5590
|
-
* @uiEnumNames ["Left", "Right", "Center"]
|
|
5591
|
-
*/
|
|
5592
|
-
this.alignment = "center";
|
|
5593
|
-
/**
|
|
5594
|
-
* @uiName Gap
|
|
5595
|
-
* @uiType string
|
|
5596
|
-
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
5597
|
-
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
5598
|
-
*/
|
|
5599
|
-
this.gap = "x-large";
|
|
5128
|
+
this.display = "grid";
|
|
5600
5129
|
h(this);
|
|
5601
5130
|
}
|
|
5602
5131
|
disconnectedCallback() { }
|
|
@@ -5640,18 +5169,8 @@ function useTaskCard(props) {
|
|
|
5640
5169
|
function onClick() {
|
|
5641
5170
|
props.eventKey ? sendEvent(props.eventKey) : openLink();
|
|
5642
5171
|
}
|
|
5643
|
-
const styles = {
|
|
5644
|
-
card: {
|
|
5645
|
-
backgroundColor: props.backgroundColor,
|
|
5646
|
-
textColor: props.textColor,
|
|
5647
|
-
borderColor: props.borderColor,
|
|
5648
|
-
borderRadius: props.borderRadius,
|
|
5649
|
-
buttonType: props.buttonType,
|
|
5650
|
-
},
|
|
5651
|
-
};
|
|
5652
5172
|
return {
|
|
5653
5173
|
states: { loadingEvent, locale },
|
|
5654
|
-
styles,
|
|
5655
5174
|
callbacks: { sendEvent, onClick },
|
|
5656
5175
|
};
|
|
5657
5176
|
}
|
|
@@ -5765,14 +5284,6 @@ const TaskCard = class {
|
|
|
5765
5284
|
* @uiGroup Button
|
|
5766
5285
|
*/
|
|
5767
5286
|
this.hideButton = false;
|
|
5768
|
-
/**
|
|
5769
|
-
* @uiName Button Style
|
|
5770
|
-
* @uiType string
|
|
5771
|
-
* @uiEnum ["primary", "secondary"]
|
|
5772
|
-
* @uiEnumNames ["Primary", "Secondary"]
|
|
5773
|
-
* @uiGroup Style
|
|
5774
|
-
*/
|
|
5775
|
-
this.buttonType = "primary";
|
|
5776
5287
|
h(this);
|
|
5777
5288
|
}
|
|
5778
5289
|
disconnectedCallback() { }
|
|
@@ -5794,7 +5305,6 @@ const TaskCard = class {
|
|
|
5794
5305
|
};
|
|
5795
5306
|
function useTaskCardDemo(props) {
|
|
5796
5307
|
return cjs({
|
|
5797
|
-
content: { ...props },
|
|
5798
5308
|
states: { loadingEvent: false, locale: "en" },
|
|
5799
5309
|
callbacks: {
|
|
5800
5310
|
sendEvent: (event) => console.log(event),
|
|
@@ -5848,7 +5358,52 @@ const Gift = () => (h$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24"
|
|
|
5848
5358
|
const Circle = () => (h$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
5849
5359
|
h$1("circle", { cx: "12", cy: "12", r: "9", fill: "currentColor", stroke: "currentColor", "stroke-width": "2" })));
|
|
5850
5360
|
|
|
5851
|
-
const
|
|
5361
|
+
const style$4 = {
|
|
5362
|
+
TimelineReward: {
|
|
5363
|
+
color: "var(--sl-color-neutral-900)",
|
|
5364
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
5365
|
+
"& .container": {
|
|
5366
|
+
display: "flex",
|
|
5367
|
+
},
|
|
5368
|
+
"& .line": {
|
|
5369
|
+
display: "none",
|
|
5370
|
+
color: "transparent",
|
|
5371
|
+
userSelect: "none",
|
|
5372
|
+
background: "var(--sl-color-primary-300)",
|
|
5373
|
+
width: "4px",
|
|
5374
|
+
borderRadius: "4px",
|
|
5375
|
+
margin: "-2px",
|
|
5376
|
+
position: "relative",
|
|
5377
|
+
left: "12px",
|
|
5378
|
+
top: "34px",
|
|
5379
|
+
},
|
|
5380
|
+
"& .step": {
|
|
5381
|
+
display: "flex",
|
|
5382
|
+
},
|
|
5383
|
+
"& .icon": {
|
|
5384
|
+
position: "relative",
|
|
5385
|
+
top: "4px",
|
|
5386
|
+
zIndex: "1",
|
|
5387
|
+
color: "var(--sl-color-primary-300)",
|
|
5388
|
+
marginRight: "var(--sl-spacing-large)",
|
|
5389
|
+
},
|
|
5390
|
+
"& .reward": {
|
|
5391
|
+
marginRight: "var(--sl-spacing-x-small)",
|
|
5392
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
5393
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
5394
|
+
},
|
|
5395
|
+
"& .unit": {
|
|
5396
|
+
textTransform: "uppercase",
|
|
5397
|
+
fontSize: "var(--sl-font-size-small)",
|
|
5398
|
+
},
|
|
5399
|
+
"& .description": {
|
|
5400
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
5401
|
+
},
|
|
5402
|
+
},
|
|
5403
|
+
};
|
|
5404
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
5405
|
+
const styleString$4 = sheet$4.toString();
|
|
5406
|
+
const vanillaStyle$2 = `
|
|
5852
5407
|
:host{
|
|
5853
5408
|
display: block;
|
|
5854
5409
|
}
|
|
@@ -5860,55 +5415,10 @@ const vanillaStyle$3 = `
|
|
|
5860
5415
|
function TimelineEntryView(props) {
|
|
5861
5416
|
var _a;
|
|
5862
5417
|
const timeline_icon = (_a = props.icon) !== null && _a !== void 0 ? _a : props.iconState;
|
|
5863
|
-
|
|
5864
|
-
TimelineReward: {
|
|
5865
|
-
color: props.textColor || "var(--sqm-text)",
|
|
5866
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
5867
|
-
"& .container": {
|
|
5868
|
-
display: "flex",
|
|
5869
|
-
},
|
|
5870
|
-
"& .line": {
|
|
5871
|
-
display: "none",
|
|
5872
|
-
color: "transparent",
|
|
5873
|
-
userSelect: "none",
|
|
5874
|
-
background: props.lineColor || "var(--sqm-accent-color-icon)",
|
|
5875
|
-
width: "4px",
|
|
5876
|
-
borderRadius: "4px",
|
|
5877
|
-
margin: "-2px",
|
|
5878
|
-
position: "relative",
|
|
5879
|
-
left: "12px",
|
|
5880
|
-
top: "34px",
|
|
5881
|
-
},
|
|
5882
|
-
"& .step": {
|
|
5883
|
-
display: "flex",
|
|
5884
|
-
},
|
|
5885
|
-
"& .icon": {
|
|
5886
|
-
position: "relative",
|
|
5887
|
-
top: "4px",
|
|
5888
|
-
zIndex: "1",
|
|
5889
|
-
color: props.lineColor || "var(--sqm-accent-color-icon)",
|
|
5890
|
-
marginRight: "var(--sl-spacing-large)",
|
|
5891
|
-
},
|
|
5892
|
-
"& .reward": {
|
|
5893
|
-
marginRight: "var(--sl-spacing-x-small)",
|
|
5894
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
5895
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
5896
|
-
},
|
|
5897
|
-
"& .unit": {
|
|
5898
|
-
textTransform: "uppercase",
|
|
5899
|
-
fontSize: "var(--sl-font-size-small)",
|
|
5900
|
-
},
|
|
5901
|
-
"& .description": {
|
|
5902
|
-
fontSize: "var(--sl-font-size-medium)",
|
|
5903
|
-
},
|
|
5904
|
-
},
|
|
5905
|
-
};
|
|
5906
|
-
const sheet = createStyleSheet(style);
|
|
5907
|
-
const styleString = sheet.toString();
|
|
5908
|
-
return (h$1("div", { class: sheet.classes.TimelineReward, part: "sqm-base" },
|
|
5418
|
+
return (h$1("div", { class: sheet$4.classes.TimelineReward, part: "sqm-base" },
|
|
5909
5419
|
h$1("style", { type: "text/css" },
|
|
5910
|
-
styleString,
|
|
5911
|
-
vanillaStyle$
|
|
5420
|
+
styleString$4,
|
|
5421
|
+
vanillaStyle$2),
|
|
5912
5422
|
h$1("div", { class: "container", part: "sqm-entry-container" },
|
|
5913
5423
|
h$1("div", { class: "line" }, "/"),
|
|
5914
5424
|
h$1("div", { class: "step" },
|
|
@@ -5998,4 +5508,4 @@ function useUserNameDemo(props) {
|
|
|
5998
5508
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5999
5509
|
}
|
|
6000
5510
|
|
|
6001
|
-
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand,
|
|
5511
|
+
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, LeadDropdownField as sqm_lead_dropdown_field, LeadForm as sqm_lead_form, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, MarketingEmailsCheckbox as sqm_marketing_emails_checkbox, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PayoutButtonScroll as sqm_payout_button_scroll, PayoutStatusAlert as sqm_payout_status_alert, PortalChangeMarketing as sqm_portal_change_marketing, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };
|