@saasquatch/mint-components 1.14.0 → 1.14.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.
@@ -21,7 +21,7 @@ const ErrorView = require('./ErrorView-b2fcf954.js');
21
21
  const sqmInvoiceTableView = require('./sqm-invoice-table-view-16ac73d0.js');
22
22
  const extractProps = require('./extractProps-fd93ba62.js');
23
23
  const keys = require('./keys-cff24974.js');
24
- const usePayoutStatus = require('./usePayoutStatus-4b5894ef.js');
24
+ const usePayoutStatus = require('./usePayoutStatus-639cc554.js');
25
25
  const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
26
26
 
27
27
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
@@ -25,7 +25,7 @@ const AsYouType = require('./AsYouType-6788393a.js');
25
25
  const utilities = require('./utilities-78f5e169.js');
26
26
  const ShadowViewAddon = require('./ShadowViewAddon-787391f7.js');
27
27
  require('./sqm-portal-container-view-4f15143a.js');
28
- const usePayoutStatus = require('./usePayoutStatus-4b5894ef.js');
28
+ const usePayoutStatus = require('./usePayoutStatus-639cc554.js');
29
29
 
30
30
  const BigStat = class {
31
31
  constructor(hostRef) {
@@ -986,17 +986,20 @@ const GET_USER_STATUS = index_module.dist.gql `
986
986
  }
987
987
  `;
988
988
  function getStatus(data) {
989
- var _a, _b, _c, _d, _e, _f, _g, _h;
989
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
990
990
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
991
- if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
991
+ if (((_c = account.holdReasons) === null || _c === void 0 ? void 0 : _c.length) === 1 && ((_d = account.holdReasons) === null || _d === void 0 ? void 0 : _d.includes("NEW_PAYEE_REVIEW"))) {
992
+ return "DONE";
993
+ }
994
+ if (!((_f = (_e = data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.connected) || !account)
992
995
  return "INFORMATION_REQUIRED";
993
- if ((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.includes("IDV_CHECK_REQUIRED"))
996
+ if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REQUIRED"))
994
997
  return "VERIFICATION:REQUIRED";
995
- if ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("IDV_CHECK_REQUIRED_INTERNAL"))
998
+ if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED_INTERNAL"))
996
999
  return "VERIFICATION:INTERNAL";
997
- if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REVIEW_INTERNAL"))
1000
+ if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REVIEW_INTERNAL"))
998
1001
  return "VERIFICATION:REVIEW";
999
- if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_FAILED_INTERNAL"))
1002
+ if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_FAILED_INTERNAL"))
1000
1003
  return "VERIFICATION:FAILED";
1001
1004
  if (account.hold)
1002
1005
  return "HOLD";
@@ -23,17 +23,20 @@ const GET_USER_STATUS = gql `
23
23
  }
24
24
  `;
25
25
  export function getStatus(data) {
26
- var _a, _b, _c, _d, _e, _f, _g, _h;
26
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
27
27
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
28
- if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
28
+ if (((_c = account.holdReasons) === null || _c === void 0 ? void 0 : _c.length) === 1 && ((_d = account.holdReasons) === null || _d === void 0 ? void 0 : _d.includes("NEW_PAYEE_REVIEW"))) {
29
+ return "DONE";
30
+ }
31
+ if (!((_f = (_e = data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.connected) || !account)
29
32
  return "INFORMATION_REQUIRED";
30
- if ((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.includes("IDV_CHECK_REQUIRED"))
33
+ if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REQUIRED"))
31
34
  return "VERIFICATION:REQUIRED";
32
- if ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("IDV_CHECK_REQUIRED_INTERNAL"))
35
+ if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED_INTERNAL"))
33
36
  return "VERIFICATION:INTERNAL";
34
- if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REVIEW_INTERNAL"))
37
+ if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REVIEW_INTERNAL"))
35
38
  return "VERIFICATION:REVIEW";
36
- if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_FAILED_INTERNAL"))
39
+ if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_FAILED_INTERNAL"))
37
40
  return "VERIFICATION:FAILED";
38
41
  if (account.hold)
39
42
  return "HOLD";
@@ -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-2c726568.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-58aa56b4.js';
20
+ import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-68c2fe88.js';
21
21
  import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
22
22
 
23
23
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
@@ -21,7 +21,7 @@ import { A as AsYouType } from './AsYouType-46f67d0d.js';
21
21
  import { i as isEmpty } from './utilities-5b0ca040.js';
22
22
  import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, i as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V 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, W as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-cf230f50.js';
23
23
  import './sqm-portal-container-view-1683ae32.js';
24
- import { u as usePayoutStatus } from './usePayoutStatus-58aa56b4.js';
24
+ import { u as usePayoutStatus } from './usePayoutStatus-68c2fe88.js';
25
25
 
26
26
  const BigStat = class {
27
27
  constructor(hostRef) {
@@ -984,17 +984,20 @@ const GET_USER_STATUS = dist.gql `
984
984
  }
985
985
  `;
986
986
  function getStatus(data) {
987
- var _a, _b, _c, _d, _e, _f, _g, _h;
987
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
988
988
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
989
- if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
989
+ if (((_c = account.holdReasons) === null || _c === void 0 ? void 0 : _c.length) === 1 && ((_d = account.holdReasons) === null || _d === void 0 ? void 0 : _d.includes("NEW_PAYEE_REVIEW"))) {
990
+ return "DONE";
991
+ }
992
+ if (!((_f = (_e = data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.connected) || !account)
990
993
  return "INFORMATION_REQUIRED";
991
- if ((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.includes("IDV_CHECK_REQUIRED"))
994
+ if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REQUIRED"))
992
995
  return "VERIFICATION:REQUIRED";
993
- if ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("IDV_CHECK_REQUIRED_INTERNAL"))
996
+ if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED_INTERNAL"))
994
997
  return "VERIFICATION:INTERNAL";
995
- if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REVIEW_INTERNAL"))
998
+ if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REVIEW_INTERNAL"))
996
999
  return "VERIFICATION:REVIEW";
997
- if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_FAILED_INTERNAL"))
1000
+ if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_FAILED_INTERNAL"))
998
1001
  return "VERIFICATION:FAILED";
999
1002
  if (account.hold)
1000
1003
  return "HOLD";