@saasquatch/mint-components 1.10.2 → 1.11.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-b2621f27.js → ShadowViewAddon-21aa34f8.js} +29 -52
- package/dist/cjs/{email-registration-view-248652bb.js → email-registration-view-5170d9f1.js} +1 -1
- package/dist/cjs/{global-02e50f09.js → global-4a59a374.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +108 -124
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +15 -70
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -9
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-invoice-table-view-28b14d28.js → sqm-invoice-table-view-1ea0d1fe.js} +2 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +10 -9
- package/dist/cjs/{sqm-portal-container-view-990a85a3.js → sqm-portal-container-view-5fb2ad49.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-292b5bf4.js → sqm-portal-email-verification-view-07161940.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-07b99f80.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +41 -165
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image.js +0 -20
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +9 -116
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +26 -51
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +16 -118
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +3 -40
- package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +10 -9
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +7 -19
- 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 +0 -37
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +2 -2
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +1 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +18 -11
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +3 -19
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +5 -3
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +49 -33
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +32 -55
- package/dist/collection/components/views/email-registration-view.js +1 -1
- package/dist/collection/global/global.js +1 -1
- package/dist/collection/stories/NewPortal.stories.js +1 -1
- package/dist/esm/{ShadowViewAddon-04640297.js → ShadowViewAddon-90897c22.js} +29 -52
- package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-07d80492.js} +1 -1
- package/dist/esm/{global-04c7d3b5.js → global-e7bb0343.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +108 -124
- package/dist/esm/sqm-big-stat_38.entry.js +15 -70
- package/dist/esm/sqm-empty_4.entry.js +2 -9
- package/dist/esm/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-6945ea24.js} +2 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +10 -9
- package/dist/esm/{sqm-portal-container-view-6c582684.js → sqm-portal-container-view-ab89c6cc.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-0b32261f.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-03026a5e.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-referred-registration.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +41 -165
- package/dist/esm-es5/ShadowViewAddon-90897c22.js +1 -0
- package/dist/esm-es5/email-registration-view-07d80492.js +1 -0
- package/dist/esm-es5/{global-04c7d3b5.js → global-e7bb0343.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-6945ea24.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-ab89c6cc.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-0b32261f.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-03026a5e.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-007383e1.entry.js +9 -0
- package/dist/mint-components/p-03deaf76.entry.js +9 -0
- package/dist/mint-components/{p-d3348267.js → p-05948592.js} +20 -20
- package/dist/mint-components/{p-4d233cd4.js → p-0e556260.js} +1 -1
- package/dist/mint-components/p-10036f16.js +1 -0
- package/dist/mint-components/p-445ffcfd.system.entry.js +1 -0
- package/dist/mint-components/{p-b6fc1227.system.entry.js → p-4864ed8a.system.entry.js} +1 -1
- package/dist/mint-components/{p-01cfff8a.system.entry.js → p-55a782cf.system.entry.js} +1 -1
- package/dist/mint-components/{p-59fe4ad1.system.js → p-573fab0f.system.js} +1 -1
- package/dist/mint-components/{p-56f14840.entry.js → p-57e4ef5f.entry.js} +1 -1
- package/dist/mint-components/p-5956a47e.entry.js +1 -0
- package/dist/mint-components/{p-7049e9b0.entry.js → p-5d485450.entry.js} +1 -1
- package/dist/mint-components/p-64491c96.system.entry.js +1 -0
- package/dist/mint-components/{p-ce621bcc.js → p-66172a05.js} +1 -1
- package/dist/mint-components/p-6bf41e0d.system.js +1 -0
- package/dist/mint-components/{p-b4c52c5a.entry.js → p-7a572b34.entry.js} +1 -1
- package/dist/mint-components/p-869c4ee1.system.entry.js +1 -0
- package/dist/mint-components/{p-be4b748a.system.entry.js → p-8fe21979.system.entry.js} +1 -1
- package/dist/mint-components/p-922578e4.system.js +1 -0
- package/dist/mint-components/p-956cd716.system.js +1 -0
- package/dist/mint-components/{p-3ec16698.entry.js → p-956ed10a.entry.js} +1 -1
- package/dist/mint-components/p-97198e2c.system.js +1 -0
- package/dist/mint-components/{p-4ea58025.system.entry.js → p-973f6501.system.entry.js} +1 -1
- package/dist/mint-components/{p-8704937c.js → p-9774fbc5.js} +1 -1
- package/dist/mint-components/{p-35d84041.system.entry.js → p-a61e6394.system.entry.js} +1 -1
- package/dist/mint-components/{p-1dd69917.system.entry.js → p-b8dbb809.system.entry.js} +1 -1
- package/dist/mint-components/p-be38de26.system.js +1 -0
- package/dist/mint-components/{p-b23d5520.js → p-bfdd2042.js} +1 -1
- package/dist/mint-components/{p-31e810e9.entry.js → p-c6c63bc0.entry.js} +7 -6
- package/dist/mint-components/{p-ed095674.system.js → p-c7a3fd1b.system.js} +1 -1
- package/dist/mint-components/p-cf158064.entry.js +33 -0
- package/dist/mint-components/p-d51eb656.entry.js +187 -0
- package/dist/mint-components/{p-4df8f1d2.system.js → p-d7df3dfd.system.js} +1 -1
- package/dist/mint-components/{p-32d1d162.entry.js → p-dab544d9.entry.js} +1 -1
- package/dist/mint-components/p-e566b746.system.entry.js +1 -0
- package/dist/mint-components/{p-c7fd9e16.js → p-e704842c.js} +1 -1
- package/dist/mint-components/{p-8679ed9f.system.entry.js → p-e84a74fe.system.entry.js} +1 -1
- package/dist/mint-components/{p-7f088154.entry.js → p-ebcec043.entry.js} +1 -1
- package/dist/mint-components/p-f8f6c99d.system.entry.js +1 -0
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +0 -1
- package/dist/types/components/sqm-image/sqm-image.d.ts +0 -5
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +0 -4
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +3 -6
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +4 -28
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +1 -4
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +0 -1
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +0 -7
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +2 -2
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +6 -3
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -1
- package/dist/types/components.d.ts +4 -68
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/ShadowViewAddon-04640297.js +0 -1
- package/dist/esm-es5/email-registration-view-a89a88bf.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-6c582684.js +0 -1
- package/dist/mint-components/p-1c0be73e.entry.js +0 -223
- package/dist/mint-components/p-1c857edb.entry.js +0 -33
- package/dist/mint-components/p-293b71ba.system.entry.js +0 -1
- package/dist/mint-components/p-509e29e6.js +0 -1
- package/dist/mint-components/p-59d740b3.entry.js +0 -9
- package/dist/mint-components/p-5de21018.system.entry.js +0 -1
- package/dist/mint-components/p-65d430d4.system.entry.js +0 -1
- package/dist/mint-components/p-9f0629ba.system.entry.js +0 -1
- package/dist/mint-components/p-a1dba9a1.system.entry.js +0 -1
- package/dist/mint-components/p-a51533cb.system.js +0 -1
- package/dist/mint-components/p-bc51264d.system.js +0 -1
- package/dist/mint-components/p-d8d2de11.entry.js +0 -1
- package/dist/mint-components/p-dbc2167e.system.js +0 -1
- package/dist/mint-components/p-e3735866.entry.js +0 -11
- package/dist/mint-components/p-ed17e637.system.js +0 -1
- package/dist/mint-components/p-ed6ebd60.system.js +0 -1
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-4a59a374.js');
|
|
8
8
|
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
@@ -16,7 +16,7 @@ const useChildElements = require('./useChildElements-e0d44916.js');
|
|
|
16
16
|
const luxon = require('./luxon-05098e19.js');
|
|
17
17
|
const useReferralTable = require('./useReferralTable-a76adb0d.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
19
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-1ea0d1fe.js');
|
|
20
20
|
|
|
21
21
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
22
22
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -749,8 +749,7 @@ const style = {
|
|
|
749
749
|
background: "var(--sl-color-gray-200)",
|
|
750
750
|
},
|
|
751
751
|
LargeSkeleton: {
|
|
752
|
-
width: "
|
|
753
|
-
maxWidth: "320px",
|
|
752
|
+
width: "320px",
|
|
754
753
|
height: "40px",
|
|
755
754
|
borderRadius: "50px",
|
|
756
755
|
background: "var(--sl-color-gray-200)",
|
|
@@ -1636,6 +1635,7 @@ const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
|
1636
1635
|
createImpactPublisherTaxDocumentInput: $vars
|
|
1637
1636
|
) {
|
|
1638
1637
|
documentUrl
|
|
1638
|
+
returnUrl
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
1641
|
`;
|
|
@@ -1646,9 +1646,8 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1646
1646
|
"fax_pending",
|
|
1647
1647
|
];
|
|
1648
1648
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1649
|
-
const DOCUSIGN_SUCCESS_STATES = ["signing_complete", "viewing_complete"];
|
|
1650
1649
|
function useDocusignForm(props) {
|
|
1651
|
-
var _a, _b, _c, _d, _e;
|
|
1650
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1652
1651
|
const user = index_module.Q();
|
|
1653
1652
|
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1654
1653
|
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
@@ -1675,15 +1674,9 @@ function useDocusignForm(props) {
|
|
|
1675
1674
|
}
|
|
1676
1675
|
}, [existingDocumentType]);
|
|
1677
1676
|
stencilHooks_module.useEffect(() => {
|
|
1678
|
-
var _a;
|
|
1679
1677
|
// Skip if no publisher info
|
|
1680
1678
|
if (!user || !publisher)
|
|
1681
1679
|
return;
|
|
1682
|
-
// Skip on initial load of W8 case
|
|
1683
|
-
if (((_a = publisher.requiredTaxDocumentType) === null || _a === void 0 ? void 0 : _a.startsWith("W8")) &&
|
|
1684
|
-
!publisher.currentTaxDocument &&
|
|
1685
|
-
!participantType)
|
|
1686
|
-
return;
|
|
1687
1680
|
const fetchDocument = async () => {
|
|
1688
1681
|
try {
|
|
1689
1682
|
const result = await createTaxDocument({
|
|
@@ -1706,33 +1699,52 @@ function useDocusignForm(props) {
|
|
|
1706
1699
|
};
|
|
1707
1700
|
fetchDocument();
|
|
1708
1701
|
}, [user, publisher, participantType]);
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
}
|
|
1725
|
-
finally {
|
|
1726
|
-
setLoading(false);
|
|
1727
|
-
}
|
|
1728
|
-
};
|
|
1729
|
-
// Handled in view
|
|
1730
|
-
if (DOCUSIGN_ERROR_STATES.includes(docusignStatus))
|
|
1731
|
-
return;
|
|
1732
|
-
if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
|
|
1733
|
-
onSubmit();
|
|
1702
|
+
const progressStep = async () => {
|
|
1703
|
+
// TODO: Needs graphql call to determine status of document
|
|
1704
|
+
try {
|
|
1705
|
+
setLoading(true);
|
|
1706
|
+
await refetch();
|
|
1707
|
+
// Skip banking info form if it already is saved
|
|
1708
|
+
// or if brandedSignup is false
|
|
1709
|
+
setStep(context.overrideNextStep ||
|
|
1710
|
+
!!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
|
|
1711
|
+
!(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
|
|
1712
|
+
? "/dashboard"
|
|
1713
|
+
: "/4");
|
|
1714
|
+
}
|
|
1715
|
+
catch (e) {
|
|
1716
|
+
setErrors({ general: true });
|
|
1734
1717
|
}
|
|
1735
|
-
|
|
1718
|
+
finally {
|
|
1719
|
+
setLoading(false);
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1722
|
+
// useEffect(() => {
|
|
1723
|
+
// const onSubmit = async () => {
|
|
1724
|
+
// try {
|
|
1725
|
+
// setLoading(true);
|
|
1726
|
+
// await refetch();
|
|
1727
|
+
// // Skip banking info form if it already is saved
|
|
1728
|
+
// // or if brandedSignup is false
|
|
1729
|
+
// setStep(
|
|
1730
|
+
// context.overrideNextStep ||
|
|
1731
|
+
// !!publisher?.withdrawalSettings ||
|
|
1732
|
+
// !publisher?.brandedSignup
|
|
1733
|
+
// ? "/dashboard"
|
|
1734
|
+
// : "/4"
|
|
1735
|
+
// );
|
|
1736
|
+
// } catch (e) {
|
|
1737
|
+
// setErrors({ general: true });
|
|
1738
|
+
// } finally {
|
|
1739
|
+
// setLoading(false);
|
|
1740
|
+
// }
|
|
1741
|
+
// };
|
|
1742
|
+
// // Handled in view
|
|
1743
|
+
// if (DOCUSIGN_ERROR_STATES.includes(docusignStatus)) return;
|
|
1744
|
+
// if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
|
|
1745
|
+
// onSubmit();
|
|
1746
|
+
// }
|
|
1747
|
+
// }, [docusignStatus, refetch]);
|
|
1736
1748
|
const allLoading = userLoading || documentLoading || loading;
|
|
1737
1749
|
return {
|
|
1738
1750
|
states: {
|
|
@@ -1755,9 +1767,11 @@ function useDocusignForm(props) {
|
|
|
1755
1767
|
data: {
|
|
1756
1768
|
taxForm: actualDocumentType,
|
|
1757
1769
|
documentUrl: (_e = document === null || document === void 0 ? void 0 : document.createImpactPublisherTaxDocument) === null || _e === void 0 ? void 0 : _e.documentUrl,
|
|
1770
|
+
returnUrl: (_f = document === null || document === void 0 ? void 0 : document.createImpactPublisherTaxDocument) === null || _f === void 0 ? void 0 : _f.returnUrl,
|
|
1758
1771
|
},
|
|
1759
1772
|
callbacks: {
|
|
1760
1773
|
setDocusignStatus,
|
|
1774
|
+
progressStep,
|
|
1761
1775
|
setParticipantType,
|
|
1762
1776
|
},
|
|
1763
1777
|
text: props.getTextProps(),
|
|
@@ -1775,7 +1789,8 @@ function getDocumentType(p) {
|
|
|
1775
1789
|
const style$1 = {
|
|
1776
1790
|
DocusignStatusContainer: {
|
|
1777
1791
|
width: "100%",
|
|
1778
|
-
|
|
1792
|
+
minHeight: "600px",
|
|
1793
|
+
height: "900px",
|
|
1779
1794
|
display: "flex",
|
|
1780
1795
|
flexDirection: "column",
|
|
1781
1796
|
alignItems: "center",
|
|
@@ -1829,21 +1844,26 @@ const DocusignLoadingView = () => {
|
|
|
1829
1844
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1830
1845
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1831
1846
|
};
|
|
1832
|
-
const DocusignIframe = ({ states, callbacks, text, }) => {
|
|
1847
|
+
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1833
1848
|
if (states.urlLoading)
|
|
1834
1849
|
return index.h(DocusignLoadingView, null);
|
|
1850
|
+
// TODO: Confirm impact domain before launch
|
|
1851
|
+
const allowedDomains = [
|
|
1852
|
+
"referralsaasquatch.com",
|
|
1853
|
+
"impacttech.complysandbox.com",
|
|
1854
|
+
];
|
|
1835
1855
|
const callback = index_module.useCallback((e) => {
|
|
1836
|
-
var _a;
|
|
1837
|
-
if (!
|
|
1856
|
+
const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
|
|
1857
|
+
if (!allowed)
|
|
1838
1858
|
return;
|
|
1839
|
-
if (
|
|
1840
|
-
|
|
1841
|
-
|
|
1859
|
+
if (e.data === "Complyexchange Thank you page Exit") {
|
|
1860
|
+
callbacks.progressStep();
|
|
1861
|
+
}
|
|
1842
1862
|
}, []);
|
|
1843
1863
|
stencilHooks_module.useEffect(() => {
|
|
1844
|
-
window.addEventListener("message", callback);
|
|
1864
|
+
window.addEventListener("message", callback, false);
|
|
1845
1865
|
return () => {
|
|
1846
|
-
window.removeEventListener("message", callback);
|
|
1866
|
+
window.removeEventListener("message", callback, false);
|
|
1847
1867
|
};
|
|
1848
1868
|
}, []);
|
|
1849
1869
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
@@ -1851,8 +1871,9 @@ const DocusignIframe = ({ states, callbacks, text, }) => {
|
|
|
1851
1871
|
}
|
|
1852
1872
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1853
1873
|
return index.h(DocusignExpiredView, { text: text });
|
|
1854
|
-
return (index.h("iframe", { frameBorder: "0", src:
|
|
1874
|
+
return (index.h("iframe", { frameBorder: "0", src: data.documentUrl, width: "100%", height: "1000px" }));
|
|
1855
1875
|
};
|
|
1876
|
+
// NWH4QF
|
|
1856
1877
|
|
|
1857
1878
|
const style$2 = {
|
|
1858
1879
|
FormWrapper: {
|
|
@@ -1992,7 +2013,7 @@ const vanillaStyle$1 = `
|
|
|
1992
2013
|
|
|
1993
2014
|
`;
|
|
1994
2015
|
const DocusignFormView = (props) => {
|
|
1995
|
-
var _a
|
|
2016
|
+
var _a;
|
|
1996
2017
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
1997
2018
|
const { classes } = sheet$2;
|
|
1998
2019
|
return (index.h("div", { class: classes.Container },
|
|
@@ -2018,23 +2039,7 @@ const DocusignFormView = (props) => {
|
|
|
2018
2039
|
index.h("strong", null, text.error.generalTitle),
|
|
2019
2040
|
index.h("br", null),
|
|
2020
2041
|
text.error.generalDescription)),
|
|
2021
|
-
|
|
2022
|
-
index.h("p", { class: classes.BoldText }, text.participantType),
|
|
2023
|
-
states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", { style: { display: "flex", flexDirection: "column" } },
|
|
2024
|
-
index.h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
2025
|
-
if (states.disabled || states.participantTypeDisabled)
|
|
2026
|
-
return;
|
|
2027
|
-
callbacks.setParticipantType("individualParticipant");
|
|
2028
|
-
} },
|
|
2029
|
-
index.h("span", { class: classes.RadioText }, text.individualParticipant)),
|
|
2030
|
-
index.h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
2031
|
-
if (states.disabled || states.participantTypeDisabled)
|
|
2032
|
-
return;
|
|
2033
|
-
callbacks.setParticipantType("businessEntity");
|
|
2034
|
-
} },
|
|
2035
|
-
index.h("span", { class: classes.RadioText }, text.businessEntity)))),
|
|
2036
|
-
((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.participantType) && (index.h("p", { class: classes.ErrorText }, text.error.participantType)))),
|
|
2037
|
-
(states.documentType === "W9" || formState.participantType) && (index.h("div", null,
|
|
2042
|
+
index.h("div", null,
|
|
2038
2043
|
index.h("div", null,
|
|
2039
2044
|
index.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
2040
2045
|
index.h("p", null, global.intl.formatMessage({
|
|
@@ -2049,7 +2054,7 @@ const DocusignFormView = (props) => {
|
|
|
2049
2054
|
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2050
2055
|
index.h("sl-icon", { class: classes.InfoIcon, slot: "icon", name: "info-circle" }),
|
|
2051
2056
|
text.docusignSessionWarning),
|
|
2052
|
-
slots.docusignIframeSlot))))
|
|
2057
|
+
slots.docusignIframeSlot))));
|
|
2053
2058
|
};
|
|
2054
2059
|
|
|
2055
2060
|
const DocusignForm = class {
|
|
@@ -2172,12 +2177,14 @@ const DocusignForm = class {
|
|
|
2172
2177
|
const _isDemo = index_module.isDemo();
|
|
2173
2178
|
const props = _isDemo ? useDocusignFormDemo(this) : useDocusignForm(this);
|
|
2174
2179
|
const docusignIframeSlot = (index.h(DocusignIframe, { states: {
|
|
2175
|
-
url: props.data.documentUrl,
|
|
2176
2180
|
status: props.states.docusignStatus,
|
|
2177
2181
|
loading: props.states.loading,
|
|
2178
2182
|
urlLoading: props.states.urlLoading,
|
|
2183
|
+
}, data: {
|
|
2184
|
+
documentUrl: props.data.documentUrl,
|
|
2185
|
+
returnUrl: props.data.returnUrl,
|
|
2179
2186
|
}, callbacks: {
|
|
2180
|
-
|
|
2187
|
+
progressStep: props.callbacks.progressStep,
|
|
2181
2188
|
}, text: props.text }));
|
|
2182
2189
|
return (index.h(index.Host, null, index.h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
2183
2190
|
docusignIframeSlot: _isDemo
|
|
@@ -6600,27 +6607,6 @@ const style$6 = {
|
|
|
6600
6607
|
color: "var(--sl-color-neutral-500)",
|
|
6601
6608
|
fontSize: "var(--sl-font-size-medium)",
|
|
6602
6609
|
},
|
|
6603
|
-
PhoneInputsSection: {
|
|
6604
|
-
display: "flex",
|
|
6605
|
-
alignItems: "flex-start",
|
|
6606
|
-
flexDirection: "column",
|
|
6607
|
-
gap: "4px",
|
|
6608
|
-
"& p": {
|
|
6609
|
-
fontSize: "var(--sl-font-size-small)",
|
|
6610
|
-
color: "var(--sl-input-label-color)",
|
|
6611
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
6612
|
-
},
|
|
6613
|
-
},
|
|
6614
|
-
PhoneInputsContainer: {
|
|
6615
|
-
display: "flex",
|
|
6616
|
-
alignItems: "flex-start",
|
|
6617
|
-
gap: "4px",
|
|
6618
|
-
width: "100%",
|
|
6619
|
-
"& #phoneNumber": {
|
|
6620
|
-
width: "100%",
|
|
6621
|
-
minWidth: "0px",
|
|
6622
|
-
},
|
|
6623
|
-
},
|
|
6624
6610
|
};
|
|
6625
6611
|
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
6626
6612
|
const styleString$5 = sheet$5.toString();
|
|
@@ -6646,7 +6632,7 @@ const vanillaStyle$3 = `
|
|
|
6646
6632
|
}
|
|
6647
6633
|
|
|
6648
6634
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
6649
|
-
|
|
6635
|
+
width: 450px;
|
|
6650
6636
|
}
|
|
6651
6637
|
`;
|
|
6652
6638
|
const UserInfoFormView = (props) => {
|
|
@@ -6729,39 +6715,37 @@ const UserInfoFormView = (props) => {
|
|
|
6729
6715
|
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
6730
6716
|
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
6731
6717
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6732
|
-
index.h("div", {
|
|
6733
|
-
index.h("
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
}
|
|
6764
|
-
: {}), { required: true })))),
|
|
6718
|
+
index.h("div", { style: { display: "flex", gap: "4px" } },
|
|
6719
|
+
index.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", label: text.phoneNumber, style: { minWidth: "140px" }, value: formState.phoneNumberCountryCode, disabled: states.disabled || states.isPartner, ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
|
|
6720
|
+
class: classes.ErrorInput,
|
|
6721
|
+
}
|
|
6722
|
+
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
|
|
6723
|
+
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6724
|
+
// Stop shoelace intercepting key presses
|
|
6725
|
+
e.stopPropagation();
|
|
6726
|
+
}, "onSl-input": (e) => {
|
|
6727
|
+
callbacks.setPhoneCountrySearch(e.target.value);
|
|
6728
|
+
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
6729
|
+
_h.map((c) => {
|
|
6730
|
+
var _a, _b;
|
|
6731
|
+
return (index.h("sl-menu-item", { style: { width: "500px" }, value: c.countryCode },
|
|
6732
|
+
index.h("div", { slot: "prefix", style: { marginRight: "8px" } }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6733
|
+
_b.dial_code));
|
|
6734
|
+
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
6735
|
+
_j.map((c) => {
|
|
6736
|
+
var _a, _b;
|
|
6737
|
+
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
6738
|
+
index.h("div", { slot: "prefix", style: { marginRight: "8px" } }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6739
|
+
_b.dial_code));
|
|
6740
|
+
})),
|
|
6741
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: " ", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, style: { marginTop: "2px", width: "362px" }, validationError: ({ value }) =>
|
|
6742
|
+
// Naive phone number validation
|
|
6743
|
+
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
6744
|
+
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
6745
|
+
class: classes.ErrorInput,
|
|
6746
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6747
|
+
}
|
|
6748
|
+
: {}), { required: true }))),
|
|
6765
6749
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6766
6750
|
// Checks for non-ASCII characters
|
|
6767
6751
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-4a59a374.js');
|
|
8
8
|
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
@@ -19,8 +19,8 @@ const index$1 = require('./index-8c6255f5.js');
|
|
|
19
19
|
const useRegistrationFormState = require('./useRegistrationFormState-876ed65d.js');
|
|
20
20
|
const utilities = require('./utilities-cec9dd36.js');
|
|
21
21
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
22
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
23
|
-
require('./sqm-portal-container-view-
|
|
22
|
+
const ShadowViewAddon = require('./ShadowViewAddon-21aa34f8.js');
|
|
23
|
+
require('./sqm-portal-container-view-5fb2ad49.js');
|
|
24
24
|
|
|
25
25
|
const BigStat = class {
|
|
26
26
|
constructor(hostRef) {
|
|
@@ -1160,7 +1160,7 @@ function ImageView(props) {
|
|
|
1160
1160
|
},
|
|
1161
1161
|
Image: {
|
|
1162
1162
|
minHeight: props.minHeight || "100%",
|
|
1163
|
-
width:
|
|
1163
|
+
width: "100%",
|
|
1164
1164
|
maxWidth: "max-content",
|
|
1165
1165
|
objectFit: "cover",
|
|
1166
1166
|
},
|
|
@@ -1275,26 +1275,6 @@ const GET_LEADERBOARD = index_module.dist.gql `
|
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
1277
|
`;
|
|
1278
|
-
const GET_LEADERBOARD_WITHOUT_NAMES = index_module.dist.gql `
|
|
1279
|
-
query (
|
|
1280
|
-
$type: String!
|
|
1281
|
-
$filter: UserLeaderboardFilterInput
|
|
1282
|
-
$locale: RSLocale
|
|
1283
|
-
$limit: Int!
|
|
1284
|
-
) {
|
|
1285
|
-
userLeaderboard(type: $type, filter: $filter) {
|
|
1286
|
-
dateModified
|
|
1287
|
-
rows(limit: $limit) {
|
|
1288
|
-
textValue(locale: $locale)
|
|
1289
|
-
rank {
|
|
1290
|
-
rank
|
|
1291
|
-
denseRank
|
|
1292
|
-
rowNumber
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
`;
|
|
1298
1278
|
const GET_RANK = index_module.dist.gql `
|
|
1299
1279
|
query (
|
|
1300
1280
|
$type: String!
|
|
@@ -1315,24 +1295,6 @@ const GET_RANK = index_module.dist.gql `
|
|
|
1315
1295
|
}
|
|
1316
1296
|
}
|
|
1317
1297
|
`;
|
|
1318
|
-
const GET_RANK_WITHOUT_NAMES = index_module.dist.gql `
|
|
1319
|
-
query (
|
|
1320
|
-
$type: String!
|
|
1321
|
-
$filter: UserLeaderboardFilterInput
|
|
1322
|
-
$locale: RSLocale
|
|
1323
|
-
) {
|
|
1324
|
-
viewer {
|
|
1325
|
-
... on User {
|
|
1326
|
-
leaderboardRank(type: $type, filter: $filter) {
|
|
1327
|
-
textValue(locale: $locale)
|
|
1328
|
-
rank
|
|
1329
|
-
denseRank
|
|
1330
|
-
rowNumber
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
`;
|
|
1336
1298
|
function useLeaderboard(props) {
|
|
1337
1299
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1338
1300
|
const programIdContext = index_module.H();
|
|
@@ -1358,8 +1320,8 @@ function useLeaderboard(props) {
|
|
|
1358
1320
|
if (props.maxRows > 0) {
|
|
1359
1321
|
variables["limit"] = props.maxRows;
|
|
1360
1322
|
}
|
|
1361
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = index_module.yn(
|
|
1362
|
-
const { data: rankData } = index_module.yn(
|
|
1323
|
+
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = index_module.yn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
|
|
1324
|
+
const { data: rankData } = index_module.yn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1363
1325
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1364
1326
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1365
1327
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1404,6 +1366,7 @@ function useLeaderboard(props) {
|
|
|
1404
1366
|
elements: {
|
|
1405
1367
|
empty: props.empty,
|
|
1406
1368
|
essentials: props.essentials,
|
|
1369
|
+
loadingstate: props.loadingstate,
|
|
1407
1370
|
},
|
|
1408
1371
|
};
|
|
1409
1372
|
}
|
|
@@ -1411,12 +1374,6 @@ function useLeaderboard(props) {
|
|
|
1411
1374
|
const Leaderboard = class {
|
|
1412
1375
|
constructor(hostRef) {
|
|
1413
1376
|
index.registerInstance(this, hostRef);
|
|
1414
|
-
/**
|
|
1415
|
-
* Restrict the width of the leaderboard (Can be a pixel value or a percentage i.e. "500px", "33%", etc.)
|
|
1416
|
-
*
|
|
1417
|
-
* @uiName Width
|
|
1418
|
-
*/
|
|
1419
|
-
this.width = "100%";
|
|
1420
1377
|
/**
|
|
1421
1378
|
* Hide the viewer's leaderboard row if not in the top results.
|
|
1422
1379
|
*
|
|
@@ -1424,21 +1381,10 @@ const Leaderboard = class {
|
|
|
1424
1381
|
* @default
|
|
1425
1382
|
*/
|
|
1426
1383
|
this.hideViewer = false;
|
|
1427
|
-
/**
|
|
1428
|
-
* @uiName Viewing user text
|
|
1429
|
-
*/
|
|
1430
|
-
this.viewingUserText = "You";
|
|
1431
|
-
/**
|
|
1432
|
-
* Hide the Names of users to protect personal identifiable information
|
|
1433
|
-
*
|
|
1434
|
-
* @uiName Hide users names
|
|
1435
|
-
* @default
|
|
1436
|
-
*/
|
|
1437
|
-
this.hideNames = false;
|
|
1438
1384
|
/**
|
|
1439
1385
|
* Hides the leaderboard if user is on Essentials plan
|
|
1440
1386
|
*
|
|
1441
|
-
* @uiName Hide
|
|
1387
|
+
* @uiName Hide viewing user
|
|
1442
1388
|
* @default
|
|
1443
1389
|
*/
|
|
1444
1390
|
this.isEssentials = false;
|
|
@@ -1462,6 +1408,7 @@ const Leaderboard = class {
|
|
|
1462
1408
|
const props = {
|
|
1463
1409
|
empty: index.h(EmptySlot, null),
|
|
1464
1410
|
essentials: index.h(EssentialsSlot, null),
|
|
1411
|
+
loadingstate: index.h(LoadingSlot, null),
|
|
1465
1412
|
usersheading: this.usersheading,
|
|
1466
1413
|
statsheading: this.statsheading,
|
|
1467
1414
|
rankheading: this.rankheading,
|
|
@@ -1472,12 +1419,8 @@ const Leaderboard = class {
|
|
|
1472
1419
|
anonymousUser: this.anonymousUser,
|
|
1473
1420
|
interval: this.interval,
|
|
1474
1421
|
hideViewer: this.hideViewer,
|
|
1475
|
-
viewingUserText: this.viewingUserText,
|
|
1476
|
-
hideNames: this.hideNames,
|
|
1477
1422
|
showRank: this.showRank,
|
|
1478
1423
|
isEssentials: this.isEssentials,
|
|
1479
|
-
rankSuffix: this.rankSuffix,
|
|
1480
|
-
width: this.width,
|
|
1481
1424
|
};
|
|
1482
1425
|
const demoProps = { ...props, demoData: this.demoData };
|
|
1483
1426
|
const viewprops = index_module.isDemo()
|
|
@@ -1492,6 +1435,11 @@ function EmptySlot() {
|
|
|
1492
1435
|
function EssentialsSlot() {
|
|
1493
1436
|
return (index.h("slot", { name: "essentials" }, index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg", "empty-state-header": "Leaderboards aren\u2019t available on your plan", "empty-state-text": "Contact {supportText} to upgrade your plan and start leveraging gamification in your program.", "support-text": "Support", "missing-feature": "Leaderboards" })));
|
|
1494
1437
|
}
|
|
1438
|
+
function LoadingSlot() {
|
|
1439
|
+
return (index.h("slot", { name: "loading" }, index.h("table", null, [...Array(10)].map(() => {
|
|
1440
|
+
return (index.h("tr", null, index.h("td", null, index.h("sl-skeleton", null))));
|
|
1441
|
+
}))));
|
|
1442
|
+
}
|
|
1495
1443
|
function useLeaderboardDemo(props) {
|
|
1496
1444
|
var _a, _b;
|
|
1497
1445
|
const data = ((_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.leaderboard) || [
|
|
@@ -1547,10 +1495,6 @@ function useLeaderboardDemo(props) {
|
|
|
1547
1495
|
: "Anonymous User",
|
|
1548
1496
|
showRank: props.showRank,
|
|
1549
1497
|
hideViewer: props.hideViewer,
|
|
1550
|
-
viewingUserText: props.viewingUserText,
|
|
1551
|
-
hideNames: props.hideNames,
|
|
1552
|
-
rankSuffix: props.rankSuffix,
|
|
1553
|
-
width: props.width,
|
|
1554
1498
|
},
|
|
1555
1499
|
},
|
|
1556
1500
|
data: {
|
|
@@ -1560,6 +1504,7 @@ function useLeaderboardDemo(props) {
|
|
|
1560
1504
|
elements: {
|
|
1561
1505
|
empty: index.h(EmptySlot, null),
|
|
1562
1506
|
essentials: index.h(EssentialsSlot, null),
|
|
1507
|
+
loadingstate: index.h(LoadingSlot, null),
|
|
1563
1508
|
},
|
|
1564
1509
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1565
1510
|
}
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-4a59a374.js');
|
|
8
8
|
require('./index.module-df530553.js');
|
|
9
9
|
require('./JSS-8503a151.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
|
-
const sqmPortalContainerView = require('./sqm-portal-container-view-
|
|
11
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-5fb2ad49.js');
|
|
12
12
|
|
|
13
13
|
function EmptyStateView(props) {
|
|
14
14
|
const { emptyStateHeader, emptyStateImage, emptyStateText, supportText, missingFeature = "", } = props;
|
|
@@ -71,13 +71,6 @@ const PortalContainer = class {
|
|
|
71
71
|
* @uiName Maximum width
|
|
72
72
|
*/
|
|
73
73
|
this.maxWidth = "100%";
|
|
74
|
-
/**
|
|
75
|
-
* @uiName Flex wrap behavior
|
|
76
|
-
* @uiType string
|
|
77
|
-
* @uiEnum ["wrap", "nowrap"]
|
|
78
|
-
* @uiEnumNames ["Wrap", "No Wrap"]
|
|
79
|
-
*/
|
|
80
|
-
this.flexWrap = "wrap";
|
|
81
74
|
/**
|
|
82
75
|
* @uiName Background color
|
|
83
76
|
* @uiWidget color
|
|
@@ -9,7 +9,7 @@ require('./jsonpointer-11327262.js');
|
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
|
-
const emailRegistrationView = require('./email-registration-view-
|
|
12
|
+
const emailRegistrationView = require('./email-registration-view-5170d9f1.js');
|
|
13
13
|
require('./useRegistrationFormState-876ed65d.js');
|
|
14
14
|
const useInstantAccessRegistration = require('./useInstantAccessRegistration-bbe746d1.js');
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
|
-
const global = require('./global-
|
|
4
|
+
const global = require('./global-4a59a374.js');
|
|
5
5
|
const JSS = require('./JSS-8503a151.js');
|
|
6
6
|
|
|
7
7
|
const INDIRECT_TAX_PROVINCES = [
|
|
@@ -743,6 +743,7 @@ const docusignFormProps = {
|
|
|
743
743
|
},
|
|
744
744
|
},
|
|
745
745
|
callbacks: {
|
|
746
|
+
progressStep: async () => { },
|
|
746
747
|
setParticipantType: (p) => console.log({ p }),
|
|
747
748
|
setDocusignStatus: (status) => console.log(status),
|
|
748
749
|
},
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-4a59a374.js');
|
|
8
8
|
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
|
|
@@ -11,24 +11,25 @@ const utils = require('./utils-6847bc06.js');
|
|
|
11
11
|
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-c9f18d96.js');
|
|
12
12
|
|
|
13
13
|
const GET_USER_DETAILS = index_module.dist.gql `
|
|
14
|
-
query getUserDetails {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
email
|
|
20
|
-
}
|
|
14
|
+
query getUserDetails($id: String!, $accountId: String!) {
|
|
15
|
+
user(id: $id, accountId: $accountId) {
|
|
16
|
+
id
|
|
17
|
+
accountId
|
|
18
|
+
email
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
`;
|
|
24
22
|
function useLogoutCurrentUser(props) {
|
|
25
23
|
var _a, _b;
|
|
26
24
|
const user = index_module.Q();
|
|
27
|
-
const { loading, data } = index_module.yn(GET_USER_DETAILS, {
|
|
25
|
+
const { loading, data } = index_module.yn(GET_USER_DETAILS, {
|
|
26
|
+
id: user === null || user === void 0 ? void 0 : user.id,
|
|
27
|
+
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
28
|
+
}, !user);
|
|
28
29
|
const onSwitchClick = () => {
|
|
29
30
|
index_module.setUserIdentity(undefined);
|
|
30
31
|
};
|
|
31
|
-
const filledInEmailText = (_a = props.userIdentificationText) === null || _a === void 0 ? void 0 : _a.replace("{email}", (_b = data === null || data === void 0 ? void 0 : data.
|
|
32
|
+
const filledInEmailText = (_a = props.userIdentificationText) === null || _a === void 0 ? void 0 : _a.replace("{email}", (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.email);
|
|
32
33
|
return {
|
|
33
34
|
loading,
|
|
34
35
|
onSwitchClick,
|