@saasquatch/mint-components 1.12.0-13 → 1.12.0-15
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +182 -56
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +84 -15
- package/dist/cjs/sqm-email-verification.cjs.entry.js +15 -7
- package/dist/cjs/{sqm-invoice-table-view-e92c557a.js → sqm-invoice-table-view-b0602970.js} +16 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +41 -18
- package/dist/cjs/{usePayoutStatus-5ac536a3.js → usePayoutStatus-8f924372.js} +1 -1
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +7 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +5 -1
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +3 -10
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +7 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -4
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +7 -12
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +9 -5
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +29 -4
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +15 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +12 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +29 -4
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +3 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +12 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +31 -6
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +26 -8
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +33 -8
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +34 -6
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +41 -16
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +49 -16
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +51 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +43 -18
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +31 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +182 -56
- package/dist/esm/sqm-big-stat_39.entry.js +84 -15
- package/dist/esm/sqm-email-verification.entry.js +15 -7
- package/dist/esm/{sqm-invoice-table-view-c184248a.js → sqm-invoice-table-view-b1ac1bfc.js} +16 -1
- package/dist/esm/sqm-stencilbook.entry.js +41 -18
- package/dist/esm/{usePayoutStatus-d613ff10.js → usePayoutStatus-0bc0380f.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_39.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-b1ac1bfc.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-d613ff10.js → usePayoutStatus-0bc0380f.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-158568e5.system.entry.js +1 -0
- package/dist/mint-components/{p-2c99add0.js → p-47b47e3b.js} +1 -1
- package/dist/mint-components/p-7789349d.system.js +1 -0
- package/dist/mint-components/p-9e788a1a.js +1 -0
- package/dist/mint-components/p-a5c96f2a.entry.js +195 -0
- package/dist/mint-components/p-a8e79cad.entry.js +9 -0
- package/dist/mint-components/p-b99108a6.system.entry.js +1 -0
- package/dist/mint-components/{p-209eab38.system.js → p-bd1372d2.system.js} +1 -1
- package/dist/mint-components/p-bfd92031.system.entry.js +1 -0
- package/dist/mint-components/p-c58250e6.system.entry.js +1 -0
- package/dist/mint-components/p-ca809fdd.system.js +1 -1
- package/dist/mint-components/p-e11b605d.entry.js +25 -0
- package/dist/mint-components/{p-b9e863d0.entry.js → p-fc17c2d2.entry.js} +30 -12
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +4 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +6 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +12 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -0
- package/dist/types/components.d.ts +72 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-c184248a.js +0 -1
- package/dist/mint-components/p-13ce67a3.js +0 -1
- package/dist/mint-components/p-4e21de5f.entry.js +0 -9
- package/dist/mint-components/p-8c26c4ce.entry.js +0 -195
- package/dist/mint-components/p-9266a8fc.system.entry.js +0 -1
- package/dist/mint-components/p-a567ba84.system.entry.js +0 -1
- package/dist/mint-components/p-a9b7e11f.entry.js +0 -25
- package/dist/mint-components/p-b7836281.system.js +0 -1
- package/dist/mint-components/p-c520d10d.system.entry.js +0 -1
- package/dist/mint-components/p-c5d26757.system.entry.js +0 -1
- package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
- package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
|
@@ -17,7 +17,7 @@ import { i as isEmpty } from './utilities-443732be.js';
|
|
|
17
17
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
18
18
|
import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, k as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-69b61037.js';
|
|
19
19
|
import './sqm-portal-container-view-6c582684.js';
|
|
20
|
-
import { u as usePayoutStatus } from './usePayoutStatus-
|
|
20
|
+
import { u as usePayoutStatus } from './usePayoutStatus-0bc0380f.js';
|
|
21
21
|
|
|
22
22
|
const BigStat = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -1720,6 +1720,7 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
1720
1720
|
const style$2 = {
|
|
1721
1721
|
Wrapper: {
|
|
1722
1722
|
maxWidth: "200px",
|
|
1723
|
+
border: "1px solid black",
|
|
1723
1724
|
},
|
|
1724
1725
|
PayoutButtonDescription: {
|
|
1725
1726
|
color: "var(--sl-color-neutral-500)",
|
|
@@ -1739,6 +1740,41 @@ function PayoutButtonScrollView(props) {
|
|
|
1739
1740
|
h$1("p", { class: sheet$2.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
|
|
1740
1741
|
}
|
|
1741
1742
|
|
|
1743
|
+
const GET_PAYOUT_DETAILS = dist.gql `
|
|
1744
|
+
query getPayoutDetails {
|
|
1745
|
+
user: viewer {
|
|
1746
|
+
... on User {
|
|
1747
|
+
id
|
|
1748
|
+
impactConnection {
|
|
1749
|
+
connected
|
|
1750
|
+
publisher {
|
|
1751
|
+
id
|
|
1752
|
+
payoutsAccount {
|
|
1753
|
+
hold
|
|
1754
|
+
balance
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
`;
|
|
1762
|
+
function usePayoutButton(props) {
|
|
1763
|
+
var _a, _b, _c;
|
|
1764
|
+
const { data, refetch } = En(GET_PAYOUT_DETAILS, {});
|
|
1765
|
+
useEffect(() => {
|
|
1766
|
+
const cb = () => refetch();
|
|
1767
|
+
window.addEventListener("sqm:tax-form-updated", cb);
|
|
1768
|
+
return () => window.removeEventListener("sqm:tax-form-updated", cb);
|
|
1769
|
+
}, []);
|
|
1770
|
+
return {
|
|
1771
|
+
states: {
|
|
1772
|
+
payoutSettingsComplete: !!((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.payoutsAccount),
|
|
1773
|
+
},
|
|
1774
|
+
text: props.getTextProps(),
|
|
1775
|
+
};
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1742
1778
|
const PayoutButtonScroll = class {
|
|
1743
1779
|
constructor(hostRef) {
|
|
1744
1780
|
registerInstance(this, hostRef);
|
|
@@ -1759,7 +1795,9 @@ const PayoutButtonScroll = class {
|
|
|
1759
1795
|
return getProps(this);
|
|
1760
1796
|
}
|
|
1761
1797
|
render() {
|
|
1762
|
-
const props =
|
|
1798
|
+
const props = isDemo()
|
|
1799
|
+
? useDemoPayoutButtonScroll(this)
|
|
1800
|
+
: usePayoutButton(this);
|
|
1763
1801
|
return h$1(PayoutButtonScrollView, Object.assign({}, props));
|
|
1764
1802
|
}
|
|
1765
1803
|
};
|
|
@@ -1857,7 +1895,12 @@ function PayoutStatusAlertView(props) {
|
|
|
1857
1895
|
case "VERIFICATION:REQUIRED":
|
|
1858
1896
|
return {
|
|
1859
1897
|
header: text.verificationRequiredHeader,
|
|
1860
|
-
description:
|
|
1898
|
+
description: intl.formatMessage({
|
|
1899
|
+
id: "verificationRequiredDescription",
|
|
1900
|
+
defaultMessage: text.verificationRequiredDescription,
|
|
1901
|
+
}, {
|
|
1902
|
+
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
1903
|
+
}),
|
|
1861
1904
|
buttonText: text.verificationRequiredButtonText,
|
|
1862
1905
|
alertType: "warning",
|
|
1863
1906
|
icon: "exclamation-triangle",
|
|
@@ -1866,7 +1909,12 @@ function PayoutStatusAlertView(props) {
|
|
|
1866
1909
|
case "VERIFICATION:INTERNAL":
|
|
1867
1910
|
return {
|
|
1868
1911
|
header: text.verificationRequiredInternalHeader,
|
|
1869
|
-
description:
|
|
1912
|
+
description: intl.formatMessage({
|
|
1913
|
+
id: "verificationRequiredInternalDescription",
|
|
1914
|
+
defaultMessage: text.verificationRequiredInternalDescription,
|
|
1915
|
+
}, {
|
|
1916
|
+
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
1917
|
+
}),
|
|
1870
1918
|
alertType: "warning",
|
|
1871
1919
|
icon: "exclamation-triangle",
|
|
1872
1920
|
class: sheet$3.classes.WarningAlertContainer,
|
|
@@ -1874,7 +1922,12 @@ function PayoutStatusAlertView(props) {
|
|
|
1874
1922
|
case "VERIFICATION:REVIEW":
|
|
1875
1923
|
return {
|
|
1876
1924
|
header: text.verificationReviewInternalHeader,
|
|
1877
|
-
description:
|
|
1925
|
+
description: intl.formatMessage({
|
|
1926
|
+
id: "verificationReviewInternalDescription",
|
|
1927
|
+
defaultMessage: text.verificationReviewInternalDescription,
|
|
1928
|
+
}, {
|
|
1929
|
+
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
1930
|
+
}),
|
|
1878
1931
|
alertType: "warning",
|
|
1879
1932
|
icon: "exclamation-triangle",
|
|
1880
1933
|
class: sheet$3.classes.WarningAlertContainer,
|
|
@@ -1882,7 +1935,12 @@ function PayoutStatusAlertView(props) {
|
|
|
1882
1935
|
case "VERIFICATION:FAILED":
|
|
1883
1936
|
return {
|
|
1884
1937
|
header: text.verificationFailedInternalHeader,
|
|
1885
|
-
description:
|
|
1938
|
+
description: intl.formatMessage({
|
|
1939
|
+
id: "verificationFailedInternalDescription",
|
|
1940
|
+
defaultMessage: text.verificationFailedInternalDescription,
|
|
1941
|
+
}, {
|
|
1942
|
+
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
1943
|
+
}),
|
|
1886
1944
|
alertType: "critical",
|
|
1887
1945
|
icon: "exclamation-octagon",
|
|
1888
1946
|
class: sheet$3.classes.ErrorAlertContainer,
|
|
@@ -1890,7 +1948,12 @@ function PayoutStatusAlertView(props) {
|
|
|
1890
1948
|
case "HOLD":
|
|
1891
1949
|
return {
|
|
1892
1950
|
header: text.holdHeader,
|
|
1893
|
-
description:
|
|
1951
|
+
description: intl.formatMessage({
|
|
1952
|
+
id: "holdDescription",
|
|
1953
|
+
defaultMessage: text.holdDescription,
|
|
1954
|
+
}, {
|
|
1955
|
+
supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
1956
|
+
}),
|
|
1894
1957
|
buttonText: null,
|
|
1895
1958
|
alertType: "warning",
|
|
1896
1959
|
icon: "exclamation-triangle",
|
|
@@ -1903,7 +1966,9 @@ function PayoutStatusAlertView(props) {
|
|
|
1903
1966
|
function getButton(status) {
|
|
1904
1967
|
switch (status) {
|
|
1905
1968
|
case "INFORMATION_REQUIRED":
|
|
1906
|
-
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)) : (
|
|
1969
|
+
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)) : (
|
|
1970
|
+
// Demo case
|
|
1971
|
+
h$1("sl-button", { type: "default" }, text.informationRequiredButtonText));
|
|
1907
1972
|
case "VERIFICATION:REQUIRED":
|
|
1908
1973
|
return (h$1("sl-button", { type: "default", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText));
|
|
1909
1974
|
default:
|
|
@@ -1941,7 +2006,7 @@ const PayoutStatusAlert = class {
|
|
|
1941
2006
|
/**
|
|
1942
2007
|
* @uiName Verification required alert description
|
|
1943
2008
|
*/
|
|
1944
|
-
this.verificationRequiredDescription = "
|
|
2009
|
+
this.verificationRequiredDescription = "It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
|
|
1945
2010
|
/**
|
|
1946
2011
|
* @uiName Verification required alert button text
|
|
1947
2012
|
*/
|
|
@@ -1953,7 +2018,7 @@ const PayoutStatusAlert = class {
|
|
|
1953
2018
|
/**
|
|
1954
2019
|
* @uiName Verification required internal alert description
|
|
1955
2020
|
*/
|
|
1956
|
-
this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley.";
|
|
2021
|
+
this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortley. If you don't hear from us contact our {supportLink}.";
|
|
1957
2022
|
/**
|
|
1958
2023
|
* @uiName Verification review internal alert header
|
|
1959
2024
|
*/
|
|
@@ -1961,7 +2026,7 @@ const PayoutStatusAlert = class {
|
|
|
1961
2026
|
/**
|
|
1962
2027
|
* @uiName Verification review internal alert description
|
|
1963
2028
|
*/
|
|
1964
|
-
this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly.";
|
|
2029
|
+
this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
|
|
1965
2030
|
/**
|
|
1966
2031
|
* @uiName Verification failed internal alert header
|
|
1967
2032
|
*/
|
|
@@ -1969,7 +2034,7 @@ const PayoutStatusAlert = class {
|
|
|
1969
2034
|
/**
|
|
1970
2035
|
* @uiName Verification failed internal alert description
|
|
1971
2036
|
*/
|
|
1972
|
-
this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information.";
|
|
2037
|
+
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}.";
|
|
1973
2038
|
/**
|
|
1974
2039
|
* @uiName Payout on hold alert header
|
|
1975
2040
|
*/
|
|
@@ -1978,11 +2043,15 @@ const PayoutStatusAlert = class {
|
|
|
1978
2043
|
* @uiName Payout on hold alert description
|
|
1979
2044
|
* AL: TODO copy not finalized for support section
|
|
1980
2045
|
*/
|
|
1981
|
-
this.holdDescription = "Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to our
|
|
2046
|
+
this.holdDescription = "Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to our {supportLink}.";
|
|
2047
|
+
/**
|
|
2048
|
+
* @uiName Cash & Payouts Microsite Page (only set if alert is used in a microsite)
|
|
2049
|
+
*/
|
|
2050
|
+
this.cashPayoutsPageUrl = "/cash";
|
|
1982
2051
|
/**
|
|
1983
|
-
* @uiName
|
|
2052
|
+
* @uiName Support link text
|
|
1984
2053
|
*/
|
|
1985
|
-
this.
|
|
2054
|
+
this.supportLink = "support team";
|
|
1986
2055
|
/**
|
|
1987
2056
|
* @uiName Error header
|
|
1988
2057
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, f as useEffect, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
+
import { i as intl } from './global-6306a9b8.js';
|
|
3
4
|
import { d as dist, M as Mn, E as En, K, c as xe, i as isDemo, S as Sn } from './index.module-6c840c4e.js';
|
|
4
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
6
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
@@ -149,10 +150,7 @@ const style = {
|
|
|
149
150
|
backgroundColor: "var(--sl-color-red-100)",
|
|
150
151
|
borderTop: "none",
|
|
151
152
|
},
|
|
152
|
-
"&::part(message)": {
|
|
153
|
-
display: "flex",
|
|
154
|
-
flexDirection: "column",
|
|
155
|
-
},
|
|
153
|
+
"&::part(message)": {},
|
|
156
154
|
},
|
|
157
155
|
ContinueButton: {
|
|
158
156
|
width: "100%",
|
|
@@ -205,7 +203,13 @@ function WidgetEmailVerificationView(props) {
|
|
|
205
203
|
states.sendCodeError && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet.classes.ErrorAlertContainer, open: true },
|
|
206
204
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
207
205
|
h("b", null, text.sendCodeErrorHeader),
|
|
208
|
-
|
|
206
|
+
h("br", null),
|
|
207
|
+
intl.formatMessage({
|
|
208
|
+
id: "sendCodeErrorDescription",
|
|
209
|
+
defaultMessage: text.sendCodeErrorDescription,
|
|
210
|
+
}, {
|
|
211
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
212
|
+
}))),
|
|
209
213
|
states.initialLoading ? (renderLoadingSkeleton()) : (h("div", { class: sheet.classes.Wrapper },
|
|
210
214
|
h(TextSpanView, { type: "p" }, text.verifyEmailHeaderText),
|
|
211
215
|
h("sl-form", { "onSl-submit": callbacks.submitEmail },
|
|
@@ -229,11 +233,15 @@ const WidgetEmailVerification = class {
|
|
|
229
233
|
/**
|
|
230
234
|
* @uiName Send code to email alert header
|
|
231
235
|
*/
|
|
232
|
-
this.sendCodeErrorHeader = "There was an error sending your code
|
|
236
|
+
this.sendCodeErrorHeader = "There was an error sending your code";
|
|
237
|
+
/**
|
|
238
|
+
* @uiName Support link text
|
|
239
|
+
*/
|
|
240
|
+
this.supportLink = "support team";
|
|
233
241
|
/**
|
|
234
242
|
* @uiName Send code to email alert description
|
|
235
243
|
*/
|
|
236
|
-
this.sendCodeErrorDescription = "Please try again. If this problem continues, contact our program
|
|
244
|
+
this.sendCodeErrorDescription = "Please try again. If this problem continues, contact our program {supportLink}.";
|
|
237
245
|
/**
|
|
238
246
|
* @uiName Email input label
|
|
239
247
|
*/
|
|
@@ -777,7 +777,7 @@ const GeneralLoadingView = () => {
|
|
|
777
777
|
return h(LoadingView, null);
|
|
778
778
|
};
|
|
779
779
|
const GeneralErrorView = () => {
|
|
780
|
-
return (h(ErrorView, { loadingErrorAlertHeader: "There was a problem loading your form", loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact
|
|
780
|
+
return (h(ErrorView, { loadingErrorAlertHeader: "There was a problem loading your form", loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact our support team." }));
|
|
781
781
|
};
|
|
782
782
|
// STEP ONE
|
|
783
783
|
const StepOne = () => {
|
|
@@ -1261,6 +1261,20 @@ const StepFourToPaypalChecked = () => {
|
|
|
1261
1261
|
},
|
|
1262
1262
|
} }));
|
|
1263
1263
|
};
|
|
1264
|
+
const StepFourReVerifyEmail = () => {
|
|
1265
|
+
return (h("sqm-banking-info-form", { demoData: {
|
|
1266
|
+
...stepFourProps,
|
|
1267
|
+
states: {
|
|
1268
|
+
...stepFourProps.states,
|
|
1269
|
+
showVerification: true,
|
|
1270
|
+
isPartner: true,
|
|
1271
|
+
formState: {
|
|
1272
|
+
...stepFourProps.states.formState,
|
|
1273
|
+
paymentMethodChecked: "toPayPalAccount",
|
|
1274
|
+
},
|
|
1275
|
+
},
|
|
1276
|
+
} }));
|
|
1277
|
+
};
|
|
1264
1278
|
const TaxAndCashDashboardActiveW9Form = () => {
|
|
1265
1279
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1266
1280
|
...dashboardProps,
|
|
@@ -1754,6 +1768,7 @@ const TaxForm = /*#__PURE__*/Object.freeze({
|
|
|
1754
1768
|
StepFourIsPartner: StepFourIsPartner,
|
|
1755
1769
|
StepFourDirectToBankChecked: StepFourDirectToBankChecked,
|
|
1756
1770
|
StepFourToPaypalChecked: StepFourToPaypalChecked,
|
|
1771
|
+
StepFourReVerifyEmail: StepFourReVerifyEmail,
|
|
1757
1772
|
TaxAndCashDashboardActiveW9Form: TaxAndCashDashboardActiveW9Form,
|
|
1758
1773
|
TaxAndCashDashboardActiveW8BENForm: TaxAndCashDashboardActiveW8BENForm,
|
|
1759
1774
|
TaxAndCashDashboardActiveW8BENEForm: TaxAndCashDashboardActiveW8BENEForm,
|
|
@@ -26,7 +26,7 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-7
|
|
|
26
26
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-d7ea2c56.js';
|
|
27
27
|
import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, j as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, k as RewardExchangeView, r as rewardExchangeCustomErrorMsg, l as rewardExchangeLongText, m as rewardExchangeSelected, n as chooseAmountFixed, o as chooseAmountFixedNoDescription, p as chooseAmountVariable, q as chooseAmountVariableNoDescription, s as chooseAmountVariableDisabled, t as chooseAmountVariableUnavailable, v as confirmFixed, w as confirmVariable, x as redemptionError, y as queryError, z as success, A as successVariable, F as loading, G as empty$1, J as rewardExchange, K as CardFeedView, M as CouponCodeView, O as ProgressBar$2, Q as autoColorScaleCss, U as ShadowViewAddon } from './ShadowViewAddon-69b61037.js';
|
|
28
28
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
|
|
29
|
-
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-
|
|
29
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-b1ac1bfc.js';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -8434,6 +8434,9 @@ const deniedReward = {
|
|
|
8434
8434
|
const payoutFailedReward = {
|
|
8435
8435
|
statuses: ["PAYOUT_FAILED"],
|
|
8436
8436
|
};
|
|
8437
|
+
const payoutCancelledReward = {
|
|
8438
|
+
statuses: ["PAYOUT_CANCELLED"],
|
|
8439
|
+
};
|
|
8437
8440
|
const pendingReviewReward = {
|
|
8438
8441
|
statuses: ["PENDING_REVIEW"],
|
|
8439
8442
|
};
|
|
@@ -8513,8 +8516,8 @@ function getMonths() {
|
|
|
8513
8516
|
function getYears() {
|
|
8514
8517
|
return luxon.DateTime.now().toMillis() + 200000000000;
|
|
8515
8518
|
}
|
|
8516
|
-
const statusText = "{status, select, AVAILABLE {Available}
|
|
8517
|
-
const statusLongText = "{status, select, AVAILABLE {Reward expiring on}
|
|
8519
|
+
const statusText = "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";
|
|
8520
|
+
const statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";
|
|
8518
8521
|
const PendingNoUnpend = () => {
|
|
8519
8522
|
return (h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...pendingReward, ...nullScheduledFor }], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
8520
8523
|
};
|
|
@@ -8597,8 +8600,7 @@ const PayoutFailed = () => {
|
|
|
8597
8600
|
},
|
|
8598
8601
|
], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
8599
8602
|
};
|
|
8600
|
-
|
|
8601
|
-
const PayoutCancelled = () => {
|
|
8603
|
+
const PayoutDenied = () => {
|
|
8602
8604
|
return (h("sqm-referral-table-rewards-cell", { rewards: [
|
|
8603
8605
|
{
|
|
8604
8606
|
...cashPayoutSentReward,
|
|
@@ -8608,6 +8610,16 @@ const PayoutCancelled = () => {
|
|
|
8608
8610
|
},
|
|
8609
8611
|
], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
8610
8612
|
};
|
|
8613
|
+
const PayoutCancelled = () => {
|
|
8614
|
+
return (h("sqm-referral-table-rewards-cell", { rewards: [
|
|
8615
|
+
{
|
|
8616
|
+
...cashPayoutSentReward,
|
|
8617
|
+
...payoutCancelledReward,
|
|
8618
|
+
datePayoutRetried: getDays(),
|
|
8619
|
+
dateGiven: null,
|
|
8620
|
+
},
|
|
8621
|
+
], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
8622
|
+
};
|
|
8611
8623
|
const PendingReview = () => {
|
|
8612
8624
|
return (h("sqm-referral-table-rewards-cell", { rewards: [{ ...baseReward, ...pendingReviewReward }], statusText: statusText, statusLongText: statusLongText, fuelTankText: "Your code is", rewardReceivedText: "Reward received on", expiringText: "Expiring in", pendingForText: "{status} for {date}", deniedHelpText: "Contact support if you think this is a mistake." }));
|
|
8613
8625
|
};
|
|
@@ -8665,6 +8677,7 @@ const ReferralTableRewardsCell = /*#__PURE__*/Object.freeze({
|
|
|
8665
8677
|
Expired: Expired,
|
|
8666
8678
|
Denied: Denied,
|
|
8667
8679
|
PayoutFailed: PayoutFailed,
|
|
8680
|
+
PayoutDenied: PayoutDenied,
|
|
8668
8681
|
PayoutCancelled: PayoutCancelled,
|
|
8669
8682
|
PendingReview: PendingReview,
|
|
8670
8683
|
PendingTaxReview: PendingTaxReview,
|
|
@@ -8895,6 +8908,12 @@ const simpleUserTableProps = {
|
|
|
8895
8908
|
h(DateCell, null),
|
|
8896
8909
|
h(PayoutFailed, null),
|
|
8897
8910
|
],
|
|
8911
|
+
[
|
|
8912
|
+
h("sqm-referral-table-user-cell", { name: "Sarah Joseph" }),
|
|
8913
|
+
h(Converted, null),
|
|
8914
|
+
h(DateCell, null),
|
|
8915
|
+
h(PayoutCancelled, null),
|
|
8916
|
+
],
|
|
8898
8917
|
[
|
|
8899
8918
|
h("sqm-referral-table-user-cell", { name: "Sarah Joseph" }),
|
|
8900
8919
|
h(Converted, null),
|
|
@@ -12012,24 +12031,16 @@ const StatusCellExpired = () => {
|
|
|
12012
12031
|
const pending = {
|
|
12013
12032
|
statuses: ["PENDING"],
|
|
12014
12033
|
};
|
|
12015
|
-
// const pendingTaxReview = {
|
|
12016
|
-
// statuses: ["PENDING_TAX_REVIEW"],
|
|
12017
|
-
// };
|
|
12018
|
-
// const pendingNewTaxForm = {
|
|
12019
|
-
// statuses: ["PENDING_NEW_TAX_FORM"],
|
|
12020
|
-
// };
|
|
12021
|
-
// const pendingTaxSubmission = {
|
|
12022
|
-
// statuses: ["PENDING_TAX_SUBMISSION"],
|
|
12023
|
-
// };
|
|
12024
|
-
// const pendingPartnerCreation = {
|
|
12025
|
-
// statuses: ["PENDING_PARTNER_CREATION"],
|
|
12026
|
-
// };
|
|
12027
12034
|
const payoutSent = {
|
|
12028
12035
|
statuses: ["PAYOUT_SENT"],
|
|
12029
12036
|
};
|
|
12030
12037
|
const payoutFailed = {
|
|
12031
12038
|
statuses: ["PAYOUT_FAILED"],
|
|
12032
12039
|
};
|
|
12040
|
+
const payoutCancelled = {
|
|
12041
|
+
statuses: ["PAYOUT_CANCELLED"],
|
|
12042
|
+
dateCancelled: 1355612521321,
|
|
12043
|
+
};
|
|
12033
12044
|
const us_tax = {
|
|
12034
12045
|
pendingReasons: ["US_TAX"],
|
|
12035
12046
|
};
|
|
@@ -12091,6 +12102,9 @@ const StatusCellPayoutSent = () => {
|
|
|
12091
12102
|
const StatusCellPayoutFailed = () => {
|
|
12092
12103
|
return (h("sqm-rewards-table-status-cell", { statusText: "Payout Failed", reward: { ...rewardsData$1, ...payoutFailed } }));
|
|
12093
12104
|
};
|
|
12105
|
+
const StatusCellPayoutCancelled = () => {
|
|
12106
|
+
return (h("sqm-rewards-table-status-cell", { statusText: "Payout Cancelled", reward: { ...rewardsData$1, ...payoutCancelled } }));
|
|
12107
|
+
};
|
|
12094
12108
|
const StatusCellPendingWithLongText = () => {
|
|
12095
12109
|
return (h("div", { style: { width: "200px" } },
|
|
12096
12110
|
h("sqm-rewards-table-status-cell", { statusText: "Pending for 300,000,000 months and some change", reward: { ...rewardsData$1, ...pending } })));
|
|
@@ -12194,6 +12208,7 @@ const RewardsTableCell = /*#__PURE__*/Object.freeze({
|
|
|
12194
12208
|
StatusCellPendingPartnerCreation: StatusCellPendingPartnerCreation,
|
|
12195
12209
|
StatusCellPayoutSent: StatusCellPayoutSent,
|
|
12196
12210
|
StatusCellPayoutFailed: StatusCellPayoutFailed,
|
|
12211
|
+
StatusCellPayoutCancelled: StatusCellPayoutCancelled,
|
|
12197
12212
|
StatusCellPendingWithLongText: StatusCellPendingWithLongText,
|
|
12198
12213
|
StatusCellPendingUsTax: StatusCellPendingUsTax,
|
|
12199
12214
|
StatusCellPendingScheduled: StatusCellPendingScheduled,
|
|
@@ -15090,11 +15105,19 @@ const defaultProps$m = {
|
|
|
15090
15105
|
payoutSettingsComplete: true,
|
|
15091
15106
|
};
|
|
15092
15107
|
const CompletedTaxForm = () => (h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$m, payoutSettingsComplete: true } } }));
|
|
15108
|
+
const CompletedTaxFormWithStatsContainer = () => (h("sqm-portal-container", { display: "flex", maxWidth: "100%", minWidth: "100%", "justify-content": "space-between", flexWrap: "nowrap" },
|
|
15109
|
+
h("sqm-portal-container", { display: "flex", "max-width": "fit-content" },
|
|
15110
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/referralsCount" },
|
|
15111
|
+
h("p", null, "Referrals")),
|
|
15112
|
+
h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/payoutBalance" },
|
|
15113
|
+
h("p", null, "Cash Balance"))),
|
|
15114
|
+
h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$m, payoutSettingsComplete: true } } })));
|
|
15093
15115
|
|
|
15094
15116
|
const PayoutButtonScroll = /*#__PURE__*/Object.freeze({
|
|
15095
15117
|
__proto__: null,
|
|
15096
15118
|
'default': PayoutButtonScroll_stories,
|
|
15097
|
-
CompletedTaxForm: CompletedTaxForm
|
|
15119
|
+
CompletedTaxForm: CompletedTaxForm,
|
|
15120
|
+
CompletedTaxFormWithStatsContainer: CompletedTaxFormWithStatsContainer
|
|
15098
15121
|
});
|
|
15099
15122
|
|
|
15100
15123
|
const PayoutStatusAlert_stories = {
|
|
@@ -1030,7 +1030,7 @@ function usePayoutStatus(props) {
|
|
|
1030
1030
|
data: { type },
|
|
1031
1031
|
text: props.getTextProps(),
|
|
1032
1032
|
callbacks: {
|
|
1033
|
-
onTermsClick: () => window.open(props.
|
|
1033
|
+
onTermsClick: () => window.open(props.cashPayoutsPageUrl, "_blank").focus(),
|
|
1034
1034
|
onClick: render,
|
|
1035
1035
|
},
|
|
1036
1036
|
};
|