@saasquatch/mint-components 1.15.1 → 1.15.2-1

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.
Files changed (24) hide show
  1. package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +10 -1
  2. package/dist/cjs/sqm-big-stat_43.cjs.entry.js +1 -1
  3. package/dist/cjs/{usePayoutStatus-d459ddde.js → usePayoutStatus-733ef29a.js} +20 -9
  4. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +20 -9
  5. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +9 -0
  6. package/dist/esm/sqm-banking-info-form_17.entry.js +10 -1
  7. package/dist/esm/sqm-big-stat_43.entry.js +1 -1
  8. package/dist/esm/{usePayoutStatus-4a7625b9.js → usePayoutStatus-b89e8c49.js} +20 -9
  9. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
  10. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
  11. package/dist/esm-es5/{usePayoutStatus-4a7625b9.js → usePayoutStatus-b89e8c49.js} +2 -2
  12. package/dist/mint-components/mint-components.esm.js +1 -1
  13. package/dist/mint-components/{p-3b2f1211.js → p-021b0540.js} +11 -2
  14. package/dist/mint-components/p-37996351.system.js +1 -1
  15. package/dist/mint-components/{p-457fb652.entry.js → p-3d73cd84.entry.js} +10 -1
  16. package/dist/mint-components/{p-d78e7323.entry.js → p-945a5883.entry.js} +1 -1
  17. package/dist/mint-components/p-a6494752.system.js +6 -0
  18. package/dist/mint-components/{p-6122bf99.system.entry.js → p-c1fc4838.system.entry.js} +1 -1
  19. package/dist/mint-components/p-e64e8354.system.entry.js +1 -0
  20. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +9 -0
  21. package/docs/docs.docx +0 -0
  22. package/package.json +1 -1
  23. package/dist/mint-components/p-9f22f58a.system.js +0 -6
  24. package/dist/mint-components/p-b965147c.system.entry.js +0 -1
@@ -21,7 +21,7 @@ const ErrorView = require('./ErrorView-b2fcf954.js');
21
21
  const sqmInvoiceTableView = require('./sqm-invoice-table-view-5c74607f.js');
22
22
  const extractProps = require('./extractProps-fd93ba62.js');
23
23
  const keys = require('./keys-cff24974.js');
24
- const usePayoutStatus = require('./usePayoutStatus-d459ddde.js');
24
+ const usePayoutStatus = require('./usePayoutStatus-733ef29a.js');
25
25
  const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
26
26
 
27
27
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
@@ -44,6 +44,15 @@ const GET_USER = index_module.dist.gql `
44
44
  email
45
45
  countryCode
46
46
  customFields
47
+ rewards(limit: 1000) {
48
+ data {
49
+ statuses
50
+ partnerFundsTransfer {
51
+ id
52
+ status
53
+ }
54
+ }
55
+ }
47
56
  managedIdentity {
48
57
  uid
49
58
  email
@@ -26,7 +26,7 @@ const AsYouType = require('./AsYouType-6788393a.js');
26
26
  const utilities = require('./utilities-78f5e169.js');
27
27
  const ShadowViewAddon = require('./ShadowViewAddon-28865623.js');
28
28
  require('./sqm-portal-container-view-4f15143a.js');
29
- const usePayoutStatus = require('./usePayoutStatus-d459ddde.js');
29
+ const usePayoutStatus = require('./usePayoutStatus-733ef29a.js');
30
30
 
31
31
  const BigStat = class {
32
32
  constructor(hostRef) {
@@ -981,6 +981,15 @@ const GET_USER_STATUS = index_module.dist.gql `
981
981
  }
982
982
  }
983
983
  }
984
+ rewards(limit: 1000) {
985
+ data {
986
+ statuses
987
+ partnerFundsTransfer {
988
+ id
989
+ status
990
+ }
991
+ }
992
+ }
984
993
  }
985
994
  }
986
995
  }
@@ -993,22 +1002,24 @@ const GET_TAX_SETTING = index_module.dist.gql `
993
1002
  }
994
1003
  `;
995
1004
  function getStatus(data) {
996
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1005
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
997
1006
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
998
- if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
1007
+ const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
1008
+ reward.partnerFundsTransfer.status === "TRANSFERRED");
1009
+ if (!((_g = (_f = data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.connected) || !account)
999
1010
  return "INFORMATION_REQUIRED";
1000
- const currentTaxDocument = (_f = (_e = data.user.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.currentTaxDocument;
1001
- if (((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
1011
+ const currentTaxDocument = (_j = (_h = data.user.impactConnection) === null || _h === void 0 ? void 0 : _h.publisher) === null || _j === void 0 ? void 0 : _j.currentTaxDocument;
1012
+ if (((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
1002
1013
  return "OVER_W9_THRESHOLD";
1003
- if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED"))
1014
+ if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_REQUIRED"))
1004
1015
  return "VERIFICATION:REQUIRED";
1005
- if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REQUIRED_INTERNAL"))
1016
+ if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("IDV_CHECK_REQUIRED_INTERNAL"))
1006
1017
  return "VERIFICATION:INTERNAL";
1007
- if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_REVIEW_INTERNAL"))
1018
+ if ((_o = account.holdReasons) === null || _o === void 0 ? void 0 : _o.includes("IDV_CHECK_REVIEW_INTERNAL"))
1008
1019
  return "VERIFICATION:REVIEW";
1009
- if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_FAILED_INTERNAL"))
1020
+ if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
1010
1021
  return "VERIFICATION:FAILED";
1011
- if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("NEW_PAYEE_REVIEW"))
1022
+ if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
1012
1023
  return "ACCOUNT_REVIEW";
1013
1024
  if (account.hold)
1014
1025
  return "HOLD";
@@ -18,6 +18,15 @@ const GET_USER_STATUS = gql `
18
18
  }
19
19
  }
20
20
  }
21
+ rewards(limit: 1000) {
22
+ data {
23
+ statuses
24
+ partnerFundsTransfer {
25
+ id
26
+ status
27
+ }
28
+ }
29
+ }
21
30
  }
22
31
  }
23
32
  }
@@ -30,22 +39,24 @@ const GET_TAX_SETTING = gql `
30
39
  }
31
40
  `;
32
41
  export function getStatus(data) {
33
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
42
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
34
43
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
35
- if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
44
+ const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
45
+ reward.partnerFundsTransfer.status === "TRANSFERRED");
46
+ if (!((_g = (_f = data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.connected) || !account)
36
47
  return "INFORMATION_REQUIRED";
37
- const currentTaxDocument = (_f = (_e = data.user.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.currentTaxDocument;
38
- if (((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
48
+ const currentTaxDocument = (_j = (_h = data.user.impactConnection) === null || _h === void 0 ? void 0 : _h.publisher) === null || _j === void 0 ? void 0 : _j.currentTaxDocument;
49
+ if (((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
39
50
  return "OVER_W9_THRESHOLD";
40
- if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED"))
51
+ if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_REQUIRED"))
41
52
  return "VERIFICATION:REQUIRED";
42
- if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REQUIRED_INTERNAL"))
53
+ if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("IDV_CHECK_REQUIRED_INTERNAL"))
43
54
  return "VERIFICATION:INTERNAL";
44
- if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_REVIEW_INTERNAL"))
55
+ if ((_o = account.holdReasons) === null || _o === void 0 ? void 0 : _o.includes("IDV_CHECK_REVIEW_INTERNAL"))
45
56
  return "VERIFICATION:REVIEW";
46
- if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_FAILED_INTERNAL"))
57
+ if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
47
58
  return "VERIFICATION:FAILED";
48
- if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("NEW_PAYEE_REVIEW"))
59
+ if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
49
60
  return "ACCOUNT_REVIEW";
50
61
  if (account.hold)
51
62
  return "HOLD";
@@ -19,6 +19,15 @@ export const GET_USER = gql `
19
19
  email
20
20
  countryCode
21
21
  customFields
22
+ rewards(limit: 1000) {
23
+ data {
24
+ statuses
25
+ partnerFundsTransfer {
26
+ id
27
+ status
28
+ }
29
+ }
30
+ }
22
31
  managedIdentity {
23
32
  uid
24
33
  email
@@ -17,7 +17,7 @@ import { E as ErrorView } from './ErrorView-48e2b969.js';
17
17
  import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-3491dd80.js';
18
18
  import { e as extractProps } from './extractProps-ae1afbb3.js';
19
19
  import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
20
- import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-4a7625b9.js';
20
+ import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-b89e8c49.js';
21
21
  import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
22
22
 
23
23
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
@@ -40,6 +40,15 @@ const GET_USER = dist.gql `
40
40
  email
41
41
  countryCode
42
42
  customFields
43
+ rewards(limit: 1000) {
44
+ data {
45
+ statuses
46
+ partnerFundsTransfer {
47
+ id
48
+ status
49
+ }
50
+ }
51
+ }
43
52
  managedIdentity {
44
53
  uid
45
54
  email
@@ -22,7 +22,7 @@ import { A as AsYouType } from './AsYouType-46f67d0d.js';
22
22
  import { i as isEmpty } from './utilities-5b0ca040.js';
23
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
24
  import './sqm-portal-container-view-1683ae32.js';
25
- import { u as usePayoutStatus } from './usePayoutStatus-4a7625b9.js';
25
+ import { u as usePayoutStatus } from './usePayoutStatus-b89e8c49.js';
26
26
 
27
27
  const BigStat = class {
28
28
  constructor(hostRef) {
@@ -979,6 +979,15 @@ const GET_USER_STATUS = dist.gql `
979
979
  }
980
980
  }
981
981
  }
982
+ rewards(limit: 1000) {
983
+ data {
984
+ statuses
985
+ partnerFundsTransfer {
986
+ id
987
+ status
988
+ }
989
+ }
990
+ }
982
991
  }
983
992
  }
984
993
  }
@@ -991,22 +1000,24 @@ const GET_TAX_SETTING = dist.gql `
991
1000
  }
992
1001
  `;
993
1002
  function getStatus(data) {
994
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1003
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
995
1004
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
996
- if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
1005
+ const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
1006
+ reward.partnerFundsTransfer.status === "TRANSFERRED");
1007
+ if (!((_g = (_f = data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.connected) || !account)
997
1008
  return "INFORMATION_REQUIRED";
998
- const currentTaxDocument = (_f = (_e = data.user.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.currentTaxDocument;
999
- if (((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
1009
+ const currentTaxDocument = (_j = (_h = data.user.impactConnection) === null || _h === void 0 ? void 0 : _h.publisher) === null || _j === void 0 ? void 0 : _j.currentTaxDocument;
1010
+ if (((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
1000
1011
  return "OVER_W9_THRESHOLD";
1001
- if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED"))
1012
+ if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_REQUIRED"))
1002
1013
  return "VERIFICATION:REQUIRED";
1003
- if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REQUIRED_INTERNAL"))
1014
+ if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("IDV_CHECK_REQUIRED_INTERNAL"))
1004
1015
  return "VERIFICATION:INTERNAL";
1005
- if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_REVIEW_INTERNAL"))
1016
+ if ((_o = account.holdReasons) === null || _o === void 0 ? void 0 : _o.includes("IDV_CHECK_REVIEW_INTERNAL"))
1006
1017
  return "VERIFICATION:REVIEW";
1007
- if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_FAILED_INTERNAL"))
1018
+ if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
1008
1019
  return "VERIFICATION:FAILED";
1009
- if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("NEW_PAYEE_REVIEW"))
1020
+ if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
1010
1021
  return "ACCOUNT_REVIEW";
1011
1022
  if (account.hold)
1012
1023
  return "HOLD";