@saasquatch/mint-components 2.0.1 → 2.0.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 (75) hide show
  1. package/dist/cjs/{ShadowViewAddon-1b38dcfc.js → ShadowViewAddon-925a8fa6.js} +3 -3
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +339 -110
  5. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +215 -26
  6. package/dist/cjs/sqm-header-logo.cjs.entry.js +14 -1
  7. package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -1
  8. package/dist/cjs/{data-16106637.js → usePayoutStatus-67c78085.js} +161 -129
  9. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +80 -3
  10. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +3 -3
  11. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
  12. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +46 -40
  13. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +84 -2
  14. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +353 -0
  15. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +36 -3
  16. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +301 -1
  17. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +92 -2
  18. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +300 -0
  19. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +23 -12
  20. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
  21. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +92 -9
  22. package/dist/esm/{ShadowViewAddon-1adaf077.js → ShadowViewAddon-aae27c2e.js} +3 -3
  23. package/dist/esm/loader.js +1 -1
  24. package/dist/esm/mint-components.js +1 -1
  25. package/dist/esm/sqm-banking-info-form_10.entry.js +290 -61
  26. package/dist/esm/sqm-big-stat_47.entry.js +193 -4
  27. package/dist/esm/sqm-header-logo.entry.js +14 -1
  28. package/dist/esm/sqm-stencilbook.entry.js +2 -1
  29. package/dist/esm/{data-acdb790f.js → usePayoutStatus-f064247b.js} +162 -130
  30. package/dist/esm-es5/{ShadowViewAddon-1adaf077.js → ShadowViewAddon-aae27c2e.js} +1 -1
  31. package/dist/esm-es5/loader.js +1 -1
  32. package/dist/esm-es5/mint-components.js +1 -1
  33. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  34. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  35. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  36. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  37. package/dist/esm-es5/usePayoutStatus-f064247b.js +6 -0
  38. package/dist/mint-components/mint-components.esm.js +1 -1
  39. package/dist/mint-components/{p-662ed116.system.entry.js → p-0649123a.system.entry.js} +1 -1
  40. package/dist/mint-components/p-2933bbe9.system.entry.js +1 -0
  41. package/dist/mint-components/p-2c86af62.system.entry.js +1 -0
  42. package/dist/mint-components/p-2e87159a.system.entry.js +1 -0
  43. package/dist/mint-components/p-2ed300e9.entry.js +1 -0
  44. package/dist/mint-components/p-3219fdbe.entry.js +99 -0
  45. package/dist/mint-components/{p-9f8d34d1.system.js → p-38f932ae.system.js} +1 -1
  46. package/dist/mint-components/p-40e0251f.system.js +6 -0
  47. package/dist/mint-components/{p-0e1a1b14.js → p-57ce33dd.js} +1 -1
  48. package/dist/mint-components/{p-31bba357.entry.js → p-5f3eafd4.entry.js} +2 -2
  49. package/dist/mint-components/p-967a9040.system.js +1 -1
  50. package/dist/mint-components/p-b1c4500e.entry.js +273 -0
  51. package/dist/mint-components/p-f17b6de6.js +157 -0
  52. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +14 -1
  53. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +24 -0
  54. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +16 -0
  55. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +57 -0
  56. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -1
  57. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +48 -0
  58. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +12 -0
  59. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +48 -0
  60. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
  61. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
  62. package/dist/types/components.d.ts +331 -1
  63. package/docs/docs.docx +0 -0
  64. package/docs/raisins.json +1 -1
  65. package/grapesjs/grapesjs.js +1 -1
  66. package/package.json +1 -1
  67. package/dist/esm-es5/data-acdb790f.js +0 -6
  68. package/dist/mint-components/p-010957a1.entry.js +0 -99
  69. package/dist/mint-components/p-469a6450.system.js +0 -6
  70. package/dist/mint-components/p-720341b1.entry.js +0 -273
  71. package/dist/mint-components/p-a7ee19dc.entry.js +0 -1
  72. package/dist/mint-components/p-d2bb770d.system.entry.js +0 -1
  73. package/dist/mint-components/p-e1e7d01c.js +0 -157
  74. package/dist/mint-components/p-eea87fdc.system.entry.js +0 -1
  75. package/dist/mint-components/p-fedb9ab8.system.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h as h$1, c as Host } from './index-b3a06de8.js';
1
+ import { r as registerInstance, h as h$1, c as Host, F as Fragment } from './index-b3a06de8.js';
2
2
  import { b as buildFontsCssUrl, i as intl } from './global-1099f20d.js';
3
3
  import { n as h, f as useEffect, i as d, k as useState, m as useRef, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-63370afd.js';
4
4
  import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, u as useCallback, L, y as yn, j as jn, q as Ue, r as un, V as Ve, b as setUserIdentity, Q as Qe, k as kn, M as Mn, I as In, S as Sn } from './index.module-c9811a48.js';
@@ -23,11 +23,11 @@ import { u as usePortalLogin } from './usePortalLogin-f95bbc67.js';
23
23
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
24
24
  import { i as isEmpty } from './utilities-72c07b09.js';
25
25
  import { E as ErrorView } from './ErrorView-bbf0a042.js';
26
- import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, c as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, d as PortalRegisterView, R as ReferralIframeView, j as RewardExchangeView, Y as demoRewardExchange, J as useShareButton, a as ShareButtonView, K as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-1adaf077.js';
26
+ import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, c as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, d as PortalRegisterView, R as ReferralIframeView, j as RewardExchangeView, Y as demoRewardExchange, J as useShareButton, a as ShareButtonView, K as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-aae27c2e.js';
27
27
  import './sqm-portal-container-view-176e92e3.js';
28
28
  import { g as getCountryObj, L as LoadingView } from './utils-6122971b.js';
29
29
  import { p as parseStates, e as extractProps } from './extractProps-54064fb0.js';
30
- import { u as usePayoutStatus, T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, f as GET_FINANCE_NETWORK_SETTINGS, g as CURRENCIES_QUERY_NAMESPACE, h as GET_CURRENCIES } from './data-acdb790f.js';
30
+ import { u as usePayoutStatus, T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, f as GET_FINANCE_NETWORK_SETTINGS, g as CURRENCIES_QUERY_NAMESPACE, h as GET_CURRENCIES } from './usePayoutStatus-f064247b.js';
31
31
 
32
32
  /**
33
33
  *
@@ -3023,7 +3023,7 @@ function PayoutStatusAlertView(props) {
3023
3023
  icon: "exclamation-triangle",
3024
3024
  };
3025
3025
  }
3026
- case "ACCOUNT_REVIEW":
3026
+ case "NEW_PAYEE_REVIEW":
3027
3027
  return {
3028
3028
  header: text.accountReviewHeader,
3029
3029
  description: intl.formatMessage({
@@ -3036,6 +3036,86 @@ function PayoutStatusAlertView(props) {
3036
3036
  alertType: "warning",
3037
3037
  icon: "exclamation-triangle",
3038
3038
  };
3039
+ case "PAYMENT_HOLD_ON_CHANGE":
3040
+ return {
3041
+ header: text.paymentHoldOnChangeHeader,
3042
+ description: intl.formatMessage({
3043
+ id: "accountReviewDescription",
3044
+ defaultMessage: text.paymentHoldOnChangeDescription,
3045
+ }, {
3046
+ supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3047
+ }),
3048
+ buttonText: null,
3049
+ alertType: "warning",
3050
+ icon: "exclamation-triangle",
3051
+ };
3052
+ case "BENEFICIARY_NAME_INVALID":
3053
+ return {
3054
+ header: text.beneficiaryNameInvalidHeader,
3055
+ description: intl.formatMessage({
3056
+ id: "accountReviewDescription",
3057
+ defaultMessage: text.beneficiaryNameInvalidDescription,
3058
+ }, {
3059
+ supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3060
+ }),
3061
+ buttonText: text.editPaymentInformationButton,
3062
+ alertType: "warning",
3063
+ icon: "exclamation-triangle",
3064
+ };
3065
+ case "BENEFICIARY_NAME_MISMATCH":
3066
+ return {
3067
+ header: text.beneficiaryNameMismatchHeader,
3068
+ description: intl.formatMessage({
3069
+ id: "accountReviewDescription",
3070
+ defaultMessage: text.beneficiaryNameMismatchDescription,
3071
+ }, {
3072
+ supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3073
+ }),
3074
+ buttonText: text.editPaymentInformationButton,
3075
+ alertType: "warning",
3076
+ icon: "exclamation-triangle",
3077
+ };
3078
+ case "BANK_TAX_NAME_MISMATCH":
3079
+ return {
3080
+ header: text.bankTaxNameMismatchHeader,
3081
+ description: intl.formatMessage({
3082
+ id: "accountReviewDescription",
3083
+ defaultMessage: text.bankTaxNameMismatchDescription,
3084
+ }, {
3085
+ supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3086
+ }),
3087
+ buttonText: text.editPaymentInformationButton,
3088
+ alertType: "warning",
3089
+ icon: "exclamation-triangle",
3090
+ };
3091
+ case "WITHDRAWAL_SETTINGS_INVALID":
3092
+ return {
3093
+ header: text.withdrawalSettingsInvalidHeader,
3094
+ description: intl.formatMessage({
3095
+ id: "accountReviewDescription",
3096
+ defaultMessage: text.withdrawalSettingsInvalidDescription,
3097
+ }, {
3098
+ supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3099
+ }),
3100
+ buttonText: text.editPaymentInformationButton,
3101
+ alertType: "warning",
3102
+ icon: "exclamation-triangle",
3103
+ };
3104
+ case "PAYMENT_RETURNED":
3105
+ return {
3106
+ header: text.paymentReturnedHeader,
3107
+ description: intl.formatMessage({
3108
+ id: "accountReviewDescription",
3109
+ defaultMessage: text.paymentReturnedDescription,
3110
+ }, {
3111
+ supportLink: (h$1("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3112
+ }),
3113
+ button: (h$1(Fragment, null,
3114
+ h$1("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
3115
+ h$1("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
3116
+ alertType: "warning",
3117
+ icon: "exclamation-triangle",
3118
+ };
3039
3119
  case "HOLD":
3040
3120
  return {
3041
3121
  header: text.holdHeader,
@@ -3071,6 +3151,8 @@ function PayoutStatusAlertView(props) {
3071
3151
  return (h$1("div", { style: { paddingTop: "10px" } },
3072
3152
  h$1("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText)));
3073
3153
  default:
3154
+ if (alertDetails.button)
3155
+ return alertDetails.button;
3074
3156
  return;
3075
3157
  }
3076
3158
  }
@@ -3097,6 +3179,15 @@ const PayoutStatusAlert = class {
3097
3179
  * @uiName Info required alert header
3098
3180
  */
3099
3181
  this.informationRequiredHeader = "Payout and tax information required";
3182
+ /**
3183
+ *
3184
+ * @uiName Edit payment info button label
3185
+ */
3186
+ this.editPaymentInformationButton = "Edit Payout Information";
3187
+ /**
3188
+ * @uiName Submit new tax form button label
3189
+ */
3190
+ this.newFormButton = "Submit new form";
3100
3191
  /**
3101
3192
  * @uiName Info required alert description
3102
3193
  */
@@ -3149,6 +3240,54 @@ const PayoutStatusAlert = class {
3149
3240
  * @uiName Account review alert description
3150
3241
  */
3151
3242
  this.accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
3243
+ /**
3244
+ * @uiName Payment on hold alert header
3245
+ */
3246
+ this.paymentHoldOnChangeHeader = "We are reviewing your new payout settings";
3247
+ /**
3248
+ * @uiName Payment on hold alert description
3249
+ */
3250
+ this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
3251
+ /**
3252
+ * @uiName Beneficiary name invalid alert header
3253
+ */
3254
+ this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
3255
+ /**
3256
+ * @uiName Beneficiary name invalid description
3257
+ */
3258
+ this.beneficiaryNameInvalidDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
3259
+ /**
3260
+ * @uiName Beneficiary name mismatch alert header
3261
+ */
3262
+ this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
3263
+ /**
3264
+ * @uiName Beneficiary name mismatch alert description
3265
+ */
3266
+ this.beneficiaryNameMismatchDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
3267
+ /**
3268
+ * @uiName Bank name mismatch alert header
3269
+ */
3270
+ this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
3271
+ /**
3272
+ * @uiName Bank name mismatch alert description
3273
+ */
3274
+ this.bankTaxNameMismatchDescription = "The bank name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
3275
+ /**
3276
+ * @uiName Withdrawal settings invalid alert header
3277
+ */
3278
+ this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
3279
+ /**
3280
+ * @uiName Withdrawal settings invalid alert description
3281
+ */
3282
+ this.withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
3283
+ /**
3284
+ * @uiName Payment returned alert header
3285
+ */
3286
+ this.paymentReturnedHeader = "Payout unsuccessful";
3287
+ /**
3288
+ * @uiName Payment returned alert description
3289
+ */
3290
+ this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
3152
3291
  /**
3153
3292
  * @uiName W-9 payment threshold alert header
3154
3293
  */
@@ -3227,6 +3366,8 @@ function useDemoPayoutStatusAlert(props) {
3227
3366
  callbacks: {
3228
3367
  onTermsClick: () => { },
3229
3368
  onClick: () => console.log("show"),
3369
+ onPaymentInfoClick: () => { },
3370
+ onNewFormClick: () => { },
3230
3371
  },
3231
3372
  }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
3232
3373
  }
@@ -7479,6 +7620,54 @@ const TaxAndCashMonolith = class {
7479
7620
  * @uiName Account review alert description
7480
7621
  */
7481
7622
  this.dashboard_accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
7623
+ /**
7624
+ * @uiName Payment on hold alert header
7625
+ */
7626
+ this.dashboard_paymentOnHoldHeader = "We are reviewing your new payout settings";
7627
+ /**
7628
+ * @uiName Payment on hold alert description
7629
+ */
7630
+ this.dashboard_paymentOnHoldDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
7631
+ /**
7632
+ * @uiName Beneficiary name invalid alert header
7633
+ */
7634
+ this.dashboard_beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
7635
+ /**
7636
+ * @uiName Beneficiary name invalid description
7637
+ */
7638
+ this.dashboard_beneficiaryNameInvalidDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
7639
+ /**
7640
+ * @uiName Beneficiary name mismatch alert header
7641
+ */
7642
+ this.dashboard_beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
7643
+ /**
7644
+ * @uiName Beneficiary name mismatch alert description
7645
+ */
7646
+ this.dashboard_beneficiaryNameMismatchDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
7647
+ /**
7648
+ * @uiName Bank name mismatch alert header
7649
+ */
7650
+ this.dashboard_bankNameMismatchHeader = "Your payment information does not match your tax form";
7651
+ /**
7652
+ * @uiName Bank name mismatch alert description
7653
+ */
7654
+ this.dashboard_bankNameMismatchDescription = "The bank name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
7655
+ /**
7656
+ * @uiName Withdrawal settings invalid alert header
7657
+ */
7658
+ this.dashboard_withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
7659
+ /**
7660
+ * @uiName Withdrawal settings invalid alert description
7661
+ */
7662
+ this.dashboard_withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
7663
+ /**
7664
+ * @uiName Payment returned alert header
7665
+ */
7666
+ this.dashboard_paymentReturnedHeader = "Payout unsuccessful";
7667
+ /**
7668
+ * @uiName Payment returned alert description
7669
+ */
7670
+ this.dashboard_paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
7482
7671
  /**
7483
7672
  * @uiName Terms and Conditions text
7484
7673
  * @uiGroup Dashboard Properties
@@ -4,6 +4,15 @@ import { n as h } from './dom-context-hooks.module-63370afd.js';
4
4
  const HeroImage = class {
5
5
  constructor(hostRef) {
6
6
  registerInstance(this, hostRef);
7
+ /**
8
+ * @uiName Logo text
9
+ */
10
+ this.logoTextSize = 24;
11
+ /**
12
+ * @uiWidget color
13
+ * @uiName Logo text
14
+ */
15
+ this.logoTextColor = "#555555";
7
16
  /**
8
17
  * Page participants are navigated to after clicking the header logo.
9
18
  *
@@ -19,7 +28,11 @@ const HeroImage = class {
19
28
  }
20
29
  disconnectedCallback() { }
21
30
  render() {
22
- return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link" }, h$1("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl }))));
31
+ return (h$1(Host, null, h$1("a", { href: this.nextPage, part: "sqm-link" }, this.imageUrl ? (h$1("img", { style: { height: `${this === null || this === void 0 ? void 0 : this.height}px` }, src: this === null || this === void 0 ? void 0 : this.imageUrl })) : (h$1("h3", { style: {
32
+ fontSize: `${this.logoTextSize}px`,
33
+ color: this.logoTextColor || "#555555",
34
+ textDecoration: "none",
35
+ } }, this.logoText)))));
23
36
  }
24
37
  };
25
38
 
@@ -30,7 +30,7 @@ import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-a
30
30
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-33805220.js';
31
31
  import './ErrorView-bbf0a042.js';
32
32
  import { Q as QrCodeView } from './sqm-qr-code-view-ea505213.js';
33
- import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, R as ReferralIframeView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as useShareButton, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-1adaf077.js';
33
+ import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, c as CheckboxFieldView, d as PortalRegisterView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalForgotPasswordView, i as PortalFrameView, R as ReferralIframeView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as useShareButton, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-aae27c2e.js';
34
34
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-176e92e3.js';
35
35
  import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView } from './IndirectTaxDetailsView-0a57b622.js';
36
36
  import { t as taxTypeToName, L as LoadingView } from './utils-6122971b.js';
@@ -15646,6 +15646,7 @@ const stepOneProps = {
15646
15646
  },
15647
15647
  },
15648
15648
  data: {
15649
+ partnerData: {},
15649
15650
  regionLabelEnum: "STATE",
15650
15651
  regions: [],
15651
15652
  phoneCountries: [
@@ -1,5 +1,132 @@
1
1
  import { k as useState, f as useEffect } from './dom-context-hooks.module-63370afd.js';
2
- import { d as dist, J, $ as $e, g as getEnvironmentSDK, w as wn } from './index.module-c9811a48.js';
2
+ import { d as dist, J, $ as $e, g as getEnvironmentSDK, w as wn, p as En } from './index.module-c9811a48.js';
3
+
4
+ const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
5
+ const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
6
+ const USER_QUERY_NAMESPACE = "sq:user-info-query";
7
+ const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
8
+ const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
9
+ const COUNTRIES_NAMESPACE = "sq:countries:list";
10
+ const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
11
+ const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
12
+ const CURRENCIES_NAMESPACE = "sq:currencies:list";
13
+ const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
14
+ const GET_USER = dist.gql `
15
+ query getUserTaxInfo {
16
+ user: viewer {
17
+ ... on User {
18
+ id
19
+ firstName
20
+ lastName
21
+ email
22
+ countryCode
23
+ customFields
24
+ rewards(limit: 1000) {
25
+ data {
26
+ statuses
27
+ partnerFundsTransfer {
28
+ id
29
+ status
30
+ }
31
+ }
32
+ }
33
+ managedIdentity {
34
+ uid
35
+ email
36
+ emailVerified
37
+ }
38
+ impactConnection {
39
+ connected
40
+ user {
41
+ firstName
42
+ lastName
43
+ }
44
+ publisher {
45
+ id
46
+ brandedSignup
47
+ countryCode
48
+ currency
49
+ billingAddress
50
+ billingCity
51
+ billingState
52
+ billingCountryCode
53
+ billingPostalCode
54
+ phoneNumberCountryCode
55
+ phoneNumber
56
+ taxInformation {
57
+ indirectTaxId
58
+ indirectTaxCountryCode
59
+ indirectTaxRegion
60
+ additionalTaxId
61
+ withholdingTaxId
62
+ withholdingTaxCountryCode
63
+ }
64
+ requiredTaxDocumentType
65
+ currentTaxDocument {
66
+ status
67
+ type
68
+ dateCreated
69
+ }
70
+ withdrawalSettings {
71
+ paymentMethod
72
+ paypalEmailAddress
73
+ bankCountry
74
+ bankAccountNumber
75
+ paymentSchedulingType
76
+ paymentThreshold
77
+ paymentDay
78
+ }
79
+ payoutsAccount {
80
+ hold
81
+ holdReasons
82
+ balance
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ `;
90
+ const GET_COUNTRIES = dist.gql `
91
+ query getCountries {
92
+ impactPayoutCountries(limit: 1000) {
93
+ data {
94
+ countryCode
95
+ displayName
96
+ }
97
+ }
98
+ }
99
+ `;
100
+ const GET_CURRENCIES = dist.gql `
101
+ query currencies($locale: RSLocale) {
102
+ currencies(limit: 300) {
103
+ data {
104
+ displayName(locale: $locale)
105
+ currencyCode
106
+ }
107
+ }
108
+ }
109
+ `;
110
+ const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
111
+ query impactFinanceNetworkSettings(
112
+ $filter: ImpactFinanceNetworkSettingsFilterInput
113
+ ) {
114
+ impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
115
+ data {
116
+ countryCode
117
+ currency
118
+ defaultFinancePaymentMethodId
119
+ thresholdOptions
120
+ withdrawalSettingId
121
+ internationalEftFee
122
+ foreignFxFee
123
+ defaultFxFee
124
+ }
125
+ totalCount
126
+ }
127
+ }
128
+ `;
129
+ const FORM_STEPS = 4;
3
130
 
4
131
  const TAX_FORM_UPDATED_EVENT_KEY = "sqm:tax-form-updated";
5
132
 
@@ -1000,7 +1127,7 @@ const GET_TAX_SETTING = dist.gql `
1000
1127
  }
1001
1128
  `;
1002
1129
  function getStatus(data) {
1003
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
1130
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
1004
1131
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
1005
1132
  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
1133
  reward.partnerFundsTransfer.status === "TRANSFERRED");
@@ -1018,7 +1145,19 @@ function getStatus(data) {
1018
1145
  if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
1019
1146
  return "VERIFICATION:FAILED";
1020
1147
  if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
1021
- return "ACCOUNT_REVIEW";
1148
+ return "NEW_PAYEE_REVIEW";
1149
+ if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("PAYMENT_HOLD_ON_CHANGE"))
1150
+ return "PAYMENT_HOLD_ON_CHANGE";
1151
+ if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("BENEFICIARY_NAME_INVALID"))
1152
+ return "BENEFICIARY_NAME_INVALID";
1153
+ if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_MISMATCH"))
1154
+ return "BENEFICIARY_NAME_MISMATCH";
1155
+ if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BANK_TAX_NAME_MISMATCH"))
1156
+ return "BANK_TAX_NAME_MISMATCH";
1157
+ if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("WITHDRAWAL_SETTINGS_INVALID"))
1158
+ return "WITHDRAWAL_SETTINGS_INVALID";
1159
+ if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("PAYMENT_RETURNED"))
1160
+ return "PAYMENT_RETURNED";
1022
1161
  if (account.hold)
1023
1162
  return "HOLD";
1024
1163
  return "DONE";
@@ -1030,6 +1169,8 @@ function usePayoutStatus(props) {
1030
1169
  const { data: taxSettingRes } = wn(GET_TAX_SETTING, {});
1031
1170
  const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
1032
1171
  const [status, setStatus] = useState(undefined);
1172
+ const setContext = En(TAX_FORM_CONTEXT_NAMESPACE);
1173
+ const setStep = En(TAX_CONTEXT_NAMESPACE);
1033
1174
  const enforceUsTaxComplianceOption = (_a = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _a === void 0 ? void 0 : _a.enforceUsTaxCompliance;
1034
1175
  useEffect(() => {
1035
1176
  if (!data)
@@ -1057,6 +1198,22 @@ function usePayoutStatus(props) {
1057
1198
  url += "#3";
1058
1199
  window.history.pushState(null, "", url);
1059
1200
  };
1201
+ const onPaymentInfoClick = () => {
1202
+ setContext({
1203
+ overrideNextStep: "/dashboard",
1204
+ overrideBackStep: "/dashboard",
1205
+ hideSteps: true,
1206
+ });
1207
+ setStep("/4");
1208
+ };
1209
+ const onNewFormClick = () => {
1210
+ setContext({
1211
+ overrideNextStep: "/dashboard",
1212
+ overrideBackStep: "/dashboard",
1213
+ hideSteps: true,
1214
+ });
1215
+ setStep("/3");
1216
+ };
1060
1217
  return {
1061
1218
  states: {
1062
1219
  loading,
@@ -1070,135 +1227,10 @@ function usePayoutStatus(props) {
1070
1227
  callbacks: {
1071
1228
  onTermsClick,
1072
1229
  onClick: render,
1230
+ onPaymentInfoClick,
1231
+ onNewFormClick,
1073
1232
  },
1074
1233
  };
1075
1234
  }
1076
1235
 
1077
- const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
1078
- const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
1079
- const USER_QUERY_NAMESPACE = "sq:user-info-query";
1080
- const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
1081
- const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
1082
- const COUNTRIES_NAMESPACE = "sq:countries:list";
1083
- const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
1084
- const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
1085
- const CURRENCIES_NAMESPACE = "sq:currencies:list";
1086
- const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
1087
- const GET_USER = dist.gql `
1088
- query getUserTaxInfo {
1089
- user: viewer {
1090
- ... on User {
1091
- id
1092
- firstName
1093
- lastName
1094
- email
1095
- countryCode
1096
- customFields
1097
- rewards(limit: 1000) {
1098
- data {
1099
- statuses
1100
- partnerFundsTransfer {
1101
- id
1102
- status
1103
- }
1104
- }
1105
- }
1106
- managedIdentity {
1107
- uid
1108
- email
1109
- emailVerified
1110
- }
1111
- impactConnection {
1112
- connected
1113
- user {
1114
- firstName
1115
- lastName
1116
- }
1117
- publisher {
1118
- id
1119
- brandedSignup
1120
- countryCode
1121
- currency
1122
- billingAddress
1123
- billingCity
1124
- billingState
1125
- billingCountryCode
1126
- billingPostalCode
1127
- phoneNumberCountryCode
1128
- phoneNumber
1129
- taxInformation {
1130
- indirectTaxId
1131
- indirectTaxCountryCode
1132
- indirectTaxRegion
1133
- additionalTaxId
1134
- withholdingTaxId
1135
- withholdingTaxCountryCode
1136
- }
1137
- requiredTaxDocumentType
1138
- currentTaxDocument {
1139
- status
1140
- type
1141
- dateCreated
1142
- }
1143
- withdrawalSettings {
1144
- paymentMethod
1145
- paypalEmailAddress
1146
- bankCountry
1147
- bankAccountNumber
1148
- paymentSchedulingType
1149
- paymentThreshold
1150
- paymentDay
1151
- }
1152
- payoutsAccount {
1153
- hold
1154
- holdReasons
1155
- balance
1156
- }
1157
- }
1158
- }
1159
- }
1160
- }
1161
- }
1162
- `;
1163
- const GET_COUNTRIES = dist.gql `
1164
- query getCountries {
1165
- impactPayoutCountries(limit: 1000) {
1166
- data {
1167
- countryCode
1168
- displayName
1169
- }
1170
- }
1171
- }
1172
- `;
1173
- const GET_CURRENCIES = dist.gql `
1174
- query currencies($locale: RSLocale) {
1175
- currencies(limit: 300) {
1176
- data {
1177
- displayName(locale: $locale)
1178
- currencyCode
1179
- }
1180
- }
1181
- }
1182
- `;
1183
- const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
1184
- query impactFinanceNetworkSettings(
1185
- $filter: ImpactFinanceNetworkSettingsFilterInput
1186
- ) {
1187
- impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
1188
- data {
1189
- countryCode
1190
- currency
1191
- defaultFinancePaymentMethodId
1192
- thresholdOptions
1193
- withdrawalSettingId
1194
- internationalEftFee
1195
- foreignFxFee
1196
- defaultFxFee
1197
- }
1198
- totalCount
1199
- }
1200
- }
1201
- `;
1202
- const FORM_STEPS = 4;
1203
-
1204
1236
  export { CURRENCIES_NAMESPACE as C, FINANCE_NETWORK_SETTINGS_NAMESPACE as F, GET_USER as G, SORTED_COUNTRIES_NAMESPACE as S, TAX_CONTEXT_NAMESPACE as T, USER_FORM_CONTEXT_NAMESPACE as U, VERIFF_COMPLETE_EVENT_KEY as V, TAX_FORM_CONTEXT_NAMESPACE as a, COUNTRIES_NAMESPACE as b, USER_QUERY_NAMESPACE as c, COUNTRIES_QUERY_NAMESPACE as d, GET_COUNTRIES as e, GET_FINANCE_NETWORK_SETTINGS as f, CURRENCIES_QUERY_NAMESPACE as g, GET_CURRENCIES as h, FORM_STEPS as i, TAX_FORM_UPDATED_EVENT_KEY as j, useVeriffApp as k, getStatus as l, usePayoutStatus as u };