@saasquatch/mint-components 1.16.0-15 → 1.16.0-3

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 (56) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +2 -58
  4. package/dist/cjs/sqm-big-stat_43.cjs.entry.js +5 -51
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  6. package/dist/cjs/{usePayoutStatus-d69345f3.js → usePayoutStatus-c84a7d98.js} +11 -29
  7. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +1 -1
  8. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
  9. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +0 -4
  10. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +0 -4
  11. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +3 -41
  12. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +3 -53
  13. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +11 -29
  14. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +0 -79
  15. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -20
  16. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -75
  17. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +0 -4
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/esm/mint-components.js +1 -1
  20. package/dist/esm/sqm-banking-info-form_17.entry.js +2 -58
  21. package/dist/esm/sqm-big-stat_43.entry.js +5 -51
  22. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  23. package/dist/esm/{usePayoutStatus-1b6c3dbd.js → usePayoutStatus-f07bcf90.js} +11 -29
  24. package/dist/esm-es5/loader.js +1 -1
  25. package/dist/esm-es5/mint-components.js +1 -1
  26. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
  27. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
  28. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  29. package/dist/esm-es5/{usePayoutStatus-1b6c3dbd.js → usePayoutStatus-f07bcf90.js} +2 -2
  30. package/dist/mint-components/mint-components.esm.js +1 -1
  31. package/dist/mint-components/{p-58ae268a.system.entry.js → p-01a851f7.system.entry.js} +1 -1
  32. package/dist/mint-components/{p-9e6ce01f.system.js → p-0c9debc1.system.js} +2 -2
  33. package/dist/mint-components/p-1870ab08.system.entry.js +1 -0
  34. package/dist/mint-components/p-37996351.system.js +1 -1
  35. package/dist/mint-components/p-47bd2d7a.entry.js +205 -0
  36. package/dist/mint-components/{p-03ebb740.js → p-6bb25c02.js} +3 -9
  37. package/dist/mint-components/p-6f65f9e1.system.entry.js +1 -0
  38. package/dist/mint-components/{p-e4f853ff.entry.js → p-7893e7d1.entry.js} +1 -1
  39. package/dist/mint-components/p-d8ea88f9.entry.js +273 -0
  40. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -1
  41. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -1
  42. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +1 -4
  43. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -8
  44. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -8
  45. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -13
  46. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -3
  47. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -12
  48. package/dist/types/components.d.ts +0 -66
  49. package/docs/docs.docx +0 -0
  50. package/docs/raisins.json +1 -1
  51. package/grapesjs/grapesjs.js +1 -1
  52. package/package.json +1 -1
  53. package/dist/mint-components/p-641dae37.system.entry.js +0 -1
  54. package/dist/mint-components/p-b58e2197.entry.js +0 -273
  55. package/dist/mint-components/p-bfeb0690.system.entry.js +0 -1
  56. package/dist/mint-components/p-e1167a80.entry.js +0 -205
@@ -10324,7 +10324,7 @@ const leadSubmitTemplate = "<sqm-referral-iframe></sqm-referral-iframe>\n";
10324
10324
 
10325
10325
  const editProfileTemplate = "<sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n</sqm-portal-container>\n<sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-marketing></sqm-portal-change-marketing>\n</sqm-portal-container>\n";
10326
10326
 
10327
- const activityTemplate = "<sqm-portal-protected-route require-email-verification=\"true\" redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" padding=\"xxx-large\" gap=\"xxx-large\">\n <sqm-text>\n <h1>Activity</h1>\n </sqm-text>\n <sqm-payout-status-alert cash-payouts-page-url=\"/taxAndCash\"></sqm-payout-status-alert>\n <sqm-stat-container alignment=\"left\" space=\"xxxx-large\" display=\"grid\"><sqm-big-stat flex-reverse=\"true\"\n alignment=\"left\" stat-type=\"/referralsCount\"><sqm-text>\n <p>Referrals</p>\n </sqm-text></sqm-big-stat>\n <sqm-big-stat flex-reverse=\"true\" alignment=\"left\" stat-type=\"/rewardsCountFiltered/AVAILABLE\"><sqm-text>\n <p>Rewards Earned</p>\n </sqm-text></sqm-big-stat>\n <sqm-big-stat flex-reverse=\"true\" alignment=\"left\" stat-type=\"/rewardBalance/CREDIT/CENTS\"><sqm-text>\n <p>Reward Balance</p>\n </sqm-text></sqm-big-stat>\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"></sqm-referral-table-date-column> </sqm-referral-table></sqm-portal-container>";
10327
+ const activityTemplate = "<sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" padding=\"xxx-large\" gap=\"xxx-large\">\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-payout-status-alert\n cash-payouts-page-url=\"/taxAndCash#3\"\n ></sqm-payout-status-alert>\n <sqm-stat-container alignment=\"left\" space=\"xxxx-large\" display=\"grid\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n></sqm-portal-container>\n";
10328
10328
 
10329
10329
  const resetPasswordEmailTemplate = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional //EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\n<html\n xmlns=\"http://www.w3.org/1999/xhtml\"\n xmlns:o=\"urn:schemas-microsoft-com:office:office\"\n xmlns:v=\"urn:schemas-microsoft-com:vml\"\n>\n <head>\n <!--[if gte mso 9\n ]><xml\n ><o:OfficeDocumentSettings\n ><o:AllowPNG /><o:PixelsPerInch\n >96</o:PixelsPerInch\n ></o:OfficeDocumentSettings\n ></xml\n ><!\n [endif]-->\n <meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" />\n <meta content=\"width=device-width\" name=\"viewport\" />\n <!--[if !mso]><!-->\n <meta content=\"IE=edge\" http-equiv=\"X-UA-Compatible\" />\n <!--<![endif]-->\n <title></title>\n <!--[if !mso]><!-->\n <!--<![endif]-->\n <style type=\"text/css\">\n body {\n margin: 0;\n padding: 0;\n }\n\n table,\n td,\n tr {\n vertical-align: top;\n border-collapse: collapse;\n }\n\n * {\n line-height: inherit;\n }\n\n a[x-apple-data-detectors=\"true\"] {\n color: inherit !important;\n text-decoration: none !important;\n }\n </style>\n <style id=\"media-query\" type=\"text/css\">\n @media (max-width: 520px) {\n .block-grid,\n .col {\n min-width: 320px !important;\n max-width: 100% !important;\n display: block !important;\n }\n\n .block-grid {\n width: 100% !important;\n }\n\n .col {\n width: 100% !important;\n }\n\n .col_cont {\n margin: 0 auto;\n }\n\n img.fullwidth,\n img.fullwidthOnMobile {\n max-width: 100% !important;\n }\n\n .no-stack .col {\n min-width: 0 !important;\n display: table-cell !important;\n }\n\n .no-stack.two-up .col {\n width: 50% !important;\n }\n\n .no-stack .col.num2 {\n width: 16.6% !important;\n }\n\n .no-stack .col.num3 {\n width: 25% !important;\n }\n\n .no-stack .col.num4 {\n width: 33% !important;\n }\n\n .no-stack .col.num5 {\n width: 41.6% !important;\n }\n\n .no-stack .col.num6 {\n width: 50% !important;\n }\n\n .no-stack .col.num7 {\n width: 58.3% !important;\n }\n\n .no-stack .col.num8 {\n width: 66.6% !important;\n }\n\n .no-stack .col.num9 {\n width: 75% !important;\n }\n\n .no-stack .col.num10 {\n width: 83.3% !important;\n }\n\n .video-block {\n max-width: none !important;\n }\n\n .mobile_hide {\n min-height: 0px;\n max-height: 0px;\n max-width: 0px;\n display: none;\n overflow: hidden;\n font-size: 0px;\n }\n\n .desktop_hide {\n display: block !important;\n max-height: none !important;\n }\n }\n </style>\n <style id=\"icon-media-query\" type=\"text/css\">\n @media (max-width: 520px) {\n .icons-inner {\n text-align: center;\n }\n\n .icons-inner td {\n margin: 0 auto;\n }\n }\n </style>\n </head>\n <body\n class=\"clean-body\"\n style=\"\n margin: 0;\n padding: 0;\n -webkit-text-size-adjust: 100%;\n background-color: #ffffff;\n \"\n >\n <!--[if IE]><div class=\"ie-browser\"><![endif]-->\n <table\n bgcolor=\"#FFFFFF\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n class=\"nl-container\"\n role=\"presentation\"\n style=\"\n table-layout: fixed;\n vertical-align: top;\n min-width: 320px;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n background-color: #ffffff;\n width: 100%;\n \"\n valign=\"top\"\n width=\"100%\"\n >\n <tbody>\n <tr style=\"vertical-align: top\" valign=\"top\">\n <td style=\"word-break: break-word; vertical-align: top\" valign=\"top\">\n <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td align=\"center\" style=\"background-color:#FFFFFF\"><![endif]-->\n <div style=\"background-color: transparent\">\n <div\n class=\"block-grid\"\n style=\"\n min-width: 320px;\n max-width: 500px;\n overflow-wrap: break-word;\n word-wrap: break-word;\n word-break: break-word;\n margin: 0 auto;\n background-color: transparent;\n \"\n >\n <div\n style=\"\n border-collapse: collapse;\n display: table;\n width: 100%;\n background-color: transparent;\n \"\n >\n <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:500px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n <!--[if (mso)|(IE)]><td align=\"center\" width=\"500\" style=\"background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n <div\n class=\"col num12\"\n style=\"\n min-width: 320px;\n max-width: 500px;\n display: table-cell;\n vertical-align: top;\n width: 500px;\n \"\n >\n <div class=\"col_cont\" style=\"width: 100% !important\">\n <!--[if (!mso)&(!IE)]><!-->\n <div\n style=\"\n border-top: 0px solid transparent;\n border-left: 0px solid transparent;\n border-bottom: 0px solid transparent;\n border-right: 0px solid transparent;\n padding-top: 5px;\n padding-bottom: 5px;\n padding-right: 0px;\n padding-left: 0px;\n \"\n >\n <!--<![endif]-->\n <table\n cellpadding=\"0\"\n cellspacing=\"0\"\n role=\"presentation\"\n style=\"\n table-layout: fixed;\n vertical-align: top;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n \"\n valign=\"top\"\n width=\"100%\"\n >\n <tr style=\"vertical-align: top\" valign=\"top\">\n <td\n align=\"center\"\n style=\"\n word-break: break-word;\n vertical-align: top;\n padding-bottom: 20px;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 10px;\n text-align: center;\n width: 100%;\n \"\n valign=\"top\"\n width=\"100%\"\n >\n <h1\n style=\"\n color: #444445;\n direction: ltr;\n font-family: 'Helvetica Neue', Helvetica,\n Arial, sans-serif;\n font-size: 20px;\n font-weight: normal;\n letter-spacing: normal;\n line-height: 120%;\n text-align: left;\n margin-top: 0;\n margin-bottom: 0;\n \"\n >\n <strong>Reset your password</strong>\n </h1>\n </td>\n </tr>\n </table>\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif\"><![endif]-->\n <div\n style=\"\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n line-height: 1.8;\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n \"\n >\n <div\n class=\"txtTinyMce-wrapper\"\n style=\"\n font-size: 14px;\n line-height: 1.8;\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n mso-line-height-alt: 25px;\n \"\n >\n <p\n style=\"\n margin: 0;\n font-size: 14px;\n line-height: 1.8;\n word-break: break-word;\n mso-line-height-alt: 25px;\n margin-top: 0;\n margin-bottom: 0;\n \"\n >\n <span style=\"font-size: 14px\"\n >We received a request to reset your password.\n Click the button below to reset your\n password.</span\n >\n </p>\n </div>\n </div>\n <div\n align=\"center\"\n class=\"button-container\"\n style=\"\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n \"\n >\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"><tr><td style=\"padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px\" align=\"center\"><v:roundrect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" target=\"_blank\" href={{validationLink}} style=\"height:31.5pt;width:390pt;v-text-anchor:middle;\" arcsize=\"12%\" stroke=\"false\" fillcolor=\"#2270ee\"><w:anchorlock/><v:textbox inset=\"0,0,0,0\"><center style=\"color:#ffffff; font-family:Arial, sans-serif; font-size:14px\"><!\n [endif]--><a\n href=\"{{validationLink}}\"\n target=\"_blank\"\n style=\"\n -webkit-text-size-adjust: none;\n text-decoration: none;\n display: block;\n color: #ffffff;\n background-color: #2270ee;\n border-radius: 5px;\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n width: 100%;\n width: calc(100% - 2px);\n border-top: 1px solid #2270ee;\n border-right: 1px solid #2270ee;\n border-bottom: 1px solid #2270ee;\n border-left: 1px solid #2270ee;\n padding-top: 5px;\n padding-bottom: 5px;\n font-family: 'Helvetica Neue', Helvetica, Arial,\n sans-serif;\n text-align: center;\n mso-border-alt: none;\n word-break: keep-all;\n \"\n target=\"_blank\"\n ><span\n style=\"\n padding-left: 20px;\n padding-right: 20px;\n font-size: 14px;\n display: inline-block;\n letter-spacing: undefined;\n \"\n ><span\n style=\"\n font-size: 16px;\n line-height: 2;\n word-break: break-word;\n mso-line-height-alt: 32px;\n \"\n ><span\n style=\"font-size: 14px; line-height: 28px\"\n >Reset Password</span\n ></span\n ></span\n ></a\n >\n <!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]-->\n </div>\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 15px; padding-bottom: 15px; font-family: Arial, sans-serif\"><![endif]-->\n <div\n style=\"\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n line-height: 1.2;\n padding-top: 15px;\n padding-right: 10px;\n padding-bottom: 15px;\n padding-left: 10px;\n \"\n >\n <div\n class=\"txtTinyMce-wrapper\"\n style=\"\n font-size: 14px;\n line-height: 1.2;\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n mso-line-height-alt: 17px;\n \"\n >\n <p\n style=\"\n margin: 0;\n font-size: 12px;\n line-height: 1.2;\n word-break: break-word;\n mso-line-height-alt: 14px;\n margin-top: 0;\n margin-bottom: 0;\n \"\n >\n <span style=\"font-size: 12px\"\n >If you didn't request a password reset please\n ignore this email. Your password will not\n change.</span\n >\n </p>\n </div>\n </div>\n <!--[if mso]></td></tr></table><![endif]-->\n <!--[if (!mso)&(!IE)]><!-->\n </div>\n <!--<![endif]-->\n </div>\n </div>\n <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n </div>\n </div>\n </div>\n <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n </td>\n </tr>\n </tbody>\n </table>\n <!--[if (IE)]></div><![endif]-->\n </body>\n</html>";
10330
10330
 
@@ -985,43 +985,34 @@ const GET_USER_STATUS = index_module.dist.gql `
985
985
  }
986
986
  }
987
987
  `;
988
- const GET_TAX_SETTING = index_module.dist.gql `
989
- query getTenantSettings {
990
- tenantSettings {
991
- enforceUsTaxCompliance
992
- }
993
- }
994
- `;
995
988
  function getStatus(data) {
996
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
989
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
997
990
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
998
991
  if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
999
992
  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)
993
+ if (((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.length) === 1 && ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("NEW_PAYEE_REVIEW"))) {
994
+ return "DONE";
995
+ }
996
+ const currentTaxDocument = (_h = (_g = data.user.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher) === null || _h === void 0 ? void 0 : _h.currentTaxDocument;
997
+ if (((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
1002
998
  return "OVER_W9_THRESHOLD";
1003
- if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED"))
999
+ if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_REQUIRED"))
1004
1000
  return "VERIFICATION:REQUIRED";
1005
- if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REQUIRED_INTERNAL"))
1001
+ if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_REQUIRED_INTERNAL"))
1006
1002
  return "VERIFICATION:INTERNAL";
1007
- if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_REVIEW_INTERNAL"))
1003
+ if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("IDV_CHECK_REVIEW_INTERNAL"))
1008
1004
  return "VERIFICATION:REVIEW";
1009
- if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_FAILED_INTERNAL"))
1005
+ if ((_o = account.holdReasons) === null || _o === void 0 ? void 0 : _o.includes("IDV_CHECK_FAILED_INTERNAL"))
1010
1006
  return "VERIFICATION:FAILED";
1011
- if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("NEW_PAYEE_REVIEW"))
1012
- return "ACCOUNT_REVIEW";
1013
1007
  if (account.hold)
1014
1008
  return "HOLD";
1015
1009
  return "DONE";
1016
1010
  }
1017
1011
  function usePayoutStatus(props) {
1018
- var _a;
1019
1012
  const { type } = index_module.getEnvironmentSDK();
1020
1013
  const { loading, data, errors, refetch } = index_module.wn(GET_USER_STATUS, {});
1021
- const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
1022
1014
  const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
1023
1015
  const [status, setStatus] = stencilHooks_module.useState(undefined);
1024
- const enforceUsTaxComplianceOption = (_a = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _a === void 0 ? void 0 : _a.enforceUsTaxCompliance;
1025
1016
  stencilHooks_module.useEffect(() => {
1026
1017
  if (!data)
1027
1018
  return;
@@ -1037,26 +1028,17 @@ function usePayoutStatus(props) {
1037
1028
  window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
1038
1029
  };
1039
1030
  }, []);
1040
- const onTermsClick = () => {
1041
- let url = props.cashPayoutsPageUrl;
1042
- if (status === "INFORMATION_REQUIRED")
1043
- url += "#1";
1044
- else if (status === "OVER_W9_THRESHOLD")
1045
- url += "#3";
1046
- window.history.pushState(null, "", url);
1047
- };
1048
1031
  return {
1049
1032
  states: {
1050
1033
  loading,
1051
1034
  veriffLoading,
1052
1035
  status,
1053
1036
  error: !!errors,
1054
- enforceUsTaxComplianceOption,
1055
1037
  },
1056
1038
  data: { type },
1057
1039
  text: props.getTextProps(),
1058
1040
  callbacks: {
1059
- onTermsClick,
1041
+ onTermsClick: () => window.open(props.cashPayoutsPageUrl, "_blank").focus(),
1060
1042
  onClick: render,
1061
1043
  },
1062
1044
  };
@@ -5,7 +5,7 @@ import { useRequestRerender } from "../../../tables/re-render";
5
5
  * @uiName Reward Table Source Column
6
6
  * @validParents ["sqm-rewards-table"]
7
7
  * @exampleGroup Rewards
8
- * @example Reward Table Source Column - <sqm-rewards-table-source-column column-title="Source" anonymous-user="Anonymous User" deleted-user="Deleted User" reward-exchange-text="Reward Exchange" referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}" reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"></sqm-rewards-table-source-column>
8
+ * @example Reward Table Source Column - <sqm-rewards-table-source-column column-title="Source" anonymous-user="Anonymous User" deleted-user="Deleted User" reward-exchange-text="Reward Exchange" referral-rext="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}" reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"></sqm-rewards-table-source-column>
9
9
  */
10
10
  export class RewardTableUserColumn {
11
11
  constructor() {
@@ -12,7 +12,7 @@ import { tryMethod, useRewardsTable } from "./useRewardsTable";
12
12
  * @uiName Reward Table
13
13
  * @exampleGroup Rewards
14
14
  * @slots [{"name":"", "title":"Table Row"},{"name":"empty", "title":"Empty"},{"name":"loading","title":"Loading"}]
15
- * @example Reward Table - <sqm-rewards-table per-page="4" prev-label="Prev" more-label="Next" hidden-columns="0" sm-breakpoint="599" md-breakpoint="799" ><sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" 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." payout-failed="Payout failed due to a fulfillment issue and is current being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward was scheduled for payment based on your settings, barring any account holds." ></sqm-rewards-table-status-column> <sqm-rewards-table-source-column column-title="Source" anonymous-user="Anonymous User" deleted-user="Deleted User" reward-exchange-text="Reward Exchange" referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}" reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}" ></sqm-rewards-table-source-column ><sqm-rewards-table-reward-column column-title="Reward" redeemed-text="{redeemedAmount} redeemed" available-text="{availableAmount} remaining" copy-text="Copied!" ></sqm-rewards-table-reward-column ><sqm-rewards-table-date-column column-title="Date received" date-shown="dateGiven" ></sqm-rewards-table-date-column ><sqm-rewards-table-customer-note-column column-title="Note" ></sqm-rewards-table-customer-note-column ><sqm-empty slot="empty" empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png" empty-state-header="View your rewards" empty-state-text="Complete program tasks to view the details of your rewards" ></sqm-empty ></sqm-rewards-table>
15
+ * @example Reward Table - <sqm-rewards-table per-page="4" prev-label="Prev" more-label="Next" hidden-columns="0" sm-breakpoint="599" md-breakpoint="799" ><sqm-rewards-table-status-column column-title="Status" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }" expiry-text="Expires on " pending-us-tax="W-9 required" pending-scheduled="Until" pending-unhandled="Fulfillment error" pending-review-text="Awaiting review" denied-text="Detected self-referral" 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." payout-failed="Payout failed due to a fulfillment issue and is current being retried." payout-cancelled="If you think this is a mistake, contact our Support team." payout-approved="Reward was scheduled for payment based on your settings, barring any account holds." ></sqm-rewards-table-status-column> <sqm-rewards-table-source-column column-title="Source" anonymous-user="Anonymous User" deleted-user="Deleted User" reward-exchange-text="Reward Exchange" referral-rext="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}" reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}" ></sqm-rewards-table-source-column ><sqm-rewards-table-reward-column column-title="Reward" redeemed-text="{redeemedAmount} redeemed" available-text="{availableAmount} remaining" copy-text="Copied!" ></sqm-rewards-table-reward-column ><sqm-rewards-table-date-column column-title="Date received" date-shown="dateGiven" ></sqm-rewards-table-date-column ><sqm-rewards-table-customer-note-column column-title="Note" ></sqm-rewards-table-customer-note-column ><sqm-empty slot="empty" empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png" empty-state-header="View your rewards" empty-state-text="Complete program tasks to view the details of your rewards" ></sqm-empty ></sqm-rewards-table>
16
16
  */
17
17
  export class RewardsTable {
18
18
  constructor() {
@@ -125,10 +125,6 @@ export function useBankingInfoForm(props) {
125
125
  const paymentMethodChecked = !hasPayPal
126
126
  ? "toBankAccount"
127
127
  : _paymentMethodChecked;
128
- useEffect(() => {
129
- // reset redirect hash
130
- window.location.hash = "";
131
- }, []);
132
128
  useEffect(() => {
133
129
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
134
130
  if (!userData)
@@ -62,10 +62,6 @@ export function useIndirectTaxForm(props) {
62
62
  const [filteredCountries, setFilteredCountries] = useState(_countries || []);
63
63
  const [option, setOption] = useState("notRegistered");
64
64
  const publisher = (_c = (_b = userData === null || userData === void 0 ? void 0 : userData.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher;
65
- useEffect(() => {
66
- // reset redirect hash
67
- window.location.hash = "";
68
- }, []);
69
65
  useEffect(() => {
70
66
  var _a;
71
67
  if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
@@ -130,46 +130,10 @@ export function PayoutStatusAlertView(props) {
130
130
  class: sheet.classes.ErrorAlertContainer,
131
131
  };
132
132
  case "OVER_W9_THRESHOLD":
133
- if (states.enforceUsTaxComplianceOption === "CASH_ONLY_DEFER_W9") {
134
- return {
135
- header: text.w9RequiredHeader,
136
- description: intl.formatMessage({
137
- id: "w9RequiredDescription",
138
- defaultMessage: text.w9RequiredDescription,
139
- }, {
140
- termsAndConditions: (h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
141
- }),
142
- buttonText: text.w9RequiredButtonText,
143
- alertType: "warning",
144
- icon: "exclamation-triangle",
145
- class: sheet.classes.WarningAlertContainer,
146
- };
147
- }
148
- else {
149
- return {
150
- header: text.holdHeader,
151
- description: intl.formatMessage({
152
- id: "holdDescription",
153
- defaultMessage: text.holdDescription,
154
- }, {
155
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
156
- }),
157
- buttonText: null,
158
- alertType: "warning",
159
- icon: "exclamation-triangle",
160
- class: sheet.classes.WarningAlertContainer,
161
- };
162
- }
163
- case "ACCOUNT_REVIEW":
164
133
  return {
165
- header: text.accountReviewHeader,
166
- description: intl.formatMessage({
167
- id: "accountReviewDescription",
168
- defaultMessage: text.accountReviewDescription,
169
- }, {
170
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
171
- }),
172
- buttonText: null,
134
+ header: text.w9RequiredHeader,
135
+ description: intl.formatMessage({ id: "w9RequiredDescription", defaultMessage: text.w9RequiredDescription }, { termsAndConditions: (h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)) }),
136
+ buttonText: text.w9RequiredButtonText,
173
137
  alertType: "warning",
174
138
  icon: "exclamation-triangle",
175
139
  class: sheet.classes.WarningAlertContainer,
@@ -195,8 +159,6 @@ export function PayoutStatusAlertView(props) {
195
159
  function getButton(status) {
196
160
  switch (status) {
197
161
  case "OVER_W9_THRESHOLD":
198
- if (states.enforceUsTaxComplianceOption === "CASH_ONLY")
199
- return;
200
162
  return data.type === "SquatchJS2" ? (h("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.w9RequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.w9RequiredButtonText)) : (
201
163
  // Demo case
202
164
  h("sl-button", { type: "default" }, text.w9RequiredButtonText));
@@ -60,14 +60,6 @@ export class PayoutStatusAlert {
60
60
  * @uiName Verification failed internal alert description
61
61
  */
62
62
  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}.";
63
- /**
64
- * @uiName Account review alert header
65
- */
66
- this.accountReviewHeader = "Your account is under review";
67
- /**
68
- * @uiName Account review alert description
69
- */
70
- 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}.";
71
63
  /**
72
64
  * @uiName W9 payment threshold alert header
73
65
  */
@@ -91,7 +83,7 @@ export class PayoutStatusAlert {
91
83
  /**
92
84
  * @uiName Cash & Payouts Microsite Page (only set if alert is used in a microsite)
93
85
  */
94
- this.cashPayoutsPageUrl = "/taxAndCash";
86
+ this.cashPayoutsPageUrl = "/taxAndCash#3";
95
87
  /**
96
88
  * @uiName Support link text
97
89
  */
@@ -375,48 +367,6 @@ export class PayoutStatusAlert {
375
367
  "reflect": false,
376
368
  "defaultValue": "\"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}.\""
377
369
  },
378
- "accountReviewHeader": {
379
- "type": "string",
380
- "mutable": false,
381
- "complexType": {
382
- "original": "string",
383
- "resolved": "string",
384
- "references": {}
385
- },
386
- "required": false,
387
- "optional": false,
388
- "docs": {
389
- "tags": [{
390
- "text": "Account review alert header",
391
- "name": "uiName"
392
- }],
393
- "text": ""
394
- },
395
- "attribute": "account-review-header",
396
- "reflect": false,
397
- "defaultValue": "\"Your account is under review\""
398
- },
399
- "accountReviewDescription": {
400
- "type": "string",
401
- "mutable": false,
402
- "complexType": {
403
- "original": "string",
404
- "resolved": "string",
405
- "references": {}
406
- },
407
- "required": false,
408
- "optional": false,
409
- "docs": {
410
- "tags": [{
411
- "text": "Account review alert description",
412
- "name": "uiName"
413
- }],
414
- "text": ""
415
- },
416
- "attribute": "account-review-description",
417
- "reflect": false,
418
- "defaultValue": "\"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}.\""
419
- },
420
370
  "w9RequiredHeader": {
421
371
  "type": "string",
422
372
  "mutable": false,
@@ -541,7 +491,7 @@ export class PayoutStatusAlert {
541
491
  },
542
492
  "attribute": "cash-payouts-page-url",
543
493
  "reflect": false,
544
- "defaultValue": "\"/taxAndCash\""
494
+ "defaultValue": "\"/taxAndCash#3\""
545
495
  },
546
496
  "supportLink": {
547
497
  "type": "string",
@@ -632,7 +582,7 @@ export class PayoutStatusAlert {
632
582
  "mutable": false,
633
583
  "complexType": {
634
584
  "original": "DemoData<PayoutStatusAlertViewProps>",
635
- "resolved": "{ states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; enforceUsTaxComplianceOption?: EnforceUsTaxComplianceOption; }; data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; }",
585
+ "resolved": "{ states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; }; data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; }",
636
586
  "references": {
637
587
  "DemoData": {
638
588
  "location": "import",
@@ -22,43 +22,34 @@ const GET_USER_STATUS = gql `
22
22
  }
23
23
  }
24
24
  `;
25
- const GET_TAX_SETTING = gql `
26
- query getTenantSettings {
27
- tenantSettings {
28
- enforceUsTaxCompliance
29
- }
30
- }
31
- `;
32
25
  export function getStatus(data) {
33
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
26
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
34
27
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
35
28
  if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
36
29
  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)
30
+ if (((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.length) === 1 && ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("NEW_PAYEE_REVIEW"))) {
31
+ return "DONE";
32
+ }
33
+ const currentTaxDocument = (_h = (_g = data.user.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher) === null || _h === void 0 ? void 0 : _h.currentTaxDocument;
34
+ if (((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("NO_W9_DOCUMENT")) && !currentTaxDocument)
39
35
  return "OVER_W9_THRESHOLD";
40
- if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED"))
36
+ if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_REQUIRED"))
41
37
  return "VERIFICATION:REQUIRED";
42
- if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REQUIRED_INTERNAL"))
38
+ if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_REQUIRED_INTERNAL"))
43
39
  return "VERIFICATION:INTERNAL";
44
- if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_REVIEW_INTERNAL"))
40
+ if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("IDV_CHECK_REVIEW_INTERNAL"))
45
41
  return "VERIFICATION:REVIEW";
46
- if ((_l = account.holdReasons) === null || _l === void 0 ? void 0 : _l.includes("IDV_CHECK_FAILED_INTERNAL"))
42
+ if ((_o = account.holdReasons) === null || _o === void 0 ? void 0 : _o.includes("IDV_CHECK_FAILED_INTERNAL"))
47
43
  return "VERIFICATION:FAILED";
48
- if ((_m = account.holdReasons) === null || _m === void 0 ? void 0 : _m.includes("NEW_PAYEE_REVIEW"))
49
- return "ACCOUNT_REVIEW";
50
44
  if (account.hold)
51
45
  return "HOLD";
52
46
  return "DONE";
53
47
  }
54
48
  export function usePayoutStatus(props) {
55
- var _a;
56
49
  const { type } = getEnvironmentSDK();
57
50
  const { loading, data, errors, refetch } = useQuery(GET_USER_STATUS, {});
58
- const { data: taxSettingRes } = useQuery(GET_TAX_SETTING, {});
59
51
  const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
60
52
  const [status, setStatus] = useState(undefined);
61
- const enforceUsTaxComplianceOption = (_a = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _a === void 0 ? void 0 : _a.enforceUsTaxCompliance;
62
53
  useEffect(() => {
63
54
  if (!data)
64
55
  return;
@@ -74,26 +65,17 @@ export function usePayoutStatus(props) {
74
65
  window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
75
66
  };
76
67
  }, []);
77
- const onTermsClick = () => {
78
- let url = props.cashPayoutsPageUrl;
79
- if (status === "INFORMATION_REQUIRED")
80
- url += "#1";
81
- else if (status === "OVER_W9_THRESHOLD")
82
- url += "#3";
83
- window.history.pushState(null, "", url);
84
- };
85
68
  return {
86
69
  states: {
87
70
  loading,
88
71
  veriffLoading,
89
72
  status,
90
73
  error: !!errors,
91
- enforceUsTaxComplianceOption,
92
74
  },
93
75
  data: { type },
94
76
  text: props.getTextProps(),
95
77
  callbacks: {
96
- onTermsClick,
78
+ onTermsClick: () => window.open(props.cashPayoutsPageUrl, "_blank").focus(),
97
79
  onClick: render,
98
80
  },
99
81
  };
@@ -931,19 +931,6 @@ export class TaxAndCashMonolith {
931
931
  * @uiWidget textArea
932
932
  */
933
933
  this.dashboard_w9RequiredDescription = "You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
934
- /**
935
- * @uiName Account review alert header
936
- */
937
- this.dashboard_accountReviewHeader = "Your account is under review";
938
- /**
939
- * @uiName Account review alert description
940
- */
941
- 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}.";
942
- /**
943
- * @uiName Terms and Conditions text
944
- * @uiGroup Dashboard Properties
945
- */
946
- this.dashboard_termsAndConditions = "Terms and Conditions";
947
934
  /**
948
935
  * @uiName W9 payment threshold alert button text
949
936
  * @uiGroup Dashboard Properties
@@ -4960,72 +4947,6 @@ export class TaxAndCashMonolith {
4960
4947
  "reflect": false,
4961
4948
  "defaultValue": "\"You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.\""
4962
4949
  },
4963
- "dashboard_accountReviewHeader": {
4964
- "type": "string",
4965
- "mutable": false,
4966
- "complexType": {
4967
- "original": "string",
4968
- "resolved": "string",
4969
- "references": {}
4970
- },
4971
- "required": false,
4972
- "optional": false,
4973
- "docs": {
4974
- "tags": [{
4975
- "text": "Account review alert header",
4976
- "name": "uiName"
4977
- }],
4978
- "text": ""
4979
- },
4980
- "attribute": "dashboard_account-review-header",
4981
- "reflect": false,
4982
- "defaultValue": "\"Your account is under review\""
4983
- },
4984
- "dashboard_accountReviewDescription": {
4985
- "type": "string",
4986
- "mutable": false,
4987
- "complexType": {
4988
- "original": "string",
4989
- "resolved": "string",
4990
- "references": {}
4991
- },
4992
- "required": false,
4993
- "optional": false,
4994
- "docs": {
4995
- "tags": [{
4996
- "text": "Account review alert description",
4997
- "name": "uiName"
4998
- }],
4999
- "text": ""
5000
- },
5001
- "attribute": "dashboard_account-review-description",
5002
- "reflect": false,
5003
- "defaultValue": "\"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}.\""
5004
- },
5005
- "dashboard_termsAndConditions": {
5006
- "type": "string",
5007
- "mutable": false,
5008
- "complexType": {
5009
- "original": "string",
5010
- "resolved": "string",
5011
- "references": {}
5012
- },
5013
- "required": false,
5014
- "optional": false,
5015
- "docs": {
5016
- "tags": [{
5017
- "text": "Terms and Conditions text",
5018
- "name": "uiName"
5019
- }, {
5020
- "text": "Dashboard Properties",
5021
- "name": "uiGroup"
5022
- }],
5023
- "text": ""
5024
- },
5025
- "attribute": "dashboard_terms-and-conditions",
5026
- "reflect": false,
5027
- "defaultValue": "\"Terms and Conditions\""
5028
- },
5029
4950
  "dashboard_w9RequiredButtonText": {
5030
4951
  "type": "string",
5031
4952
  "mutable": false,
@@ -202,12 +202,7 @@ export const TaxAndCashDashboardView = (props) => {
202
202
  case "OVER_W9_THRESHOLD":
203
203
  return {
204
204
  header: text.w9RequiredHeader,
205
- description: intl.formatMessage({
206
- id: "w9RequiredDescription",
207
- defaultMessage: text.w9RequiredDescription,
208
- }, {
209
- termsAndConditions: (h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
210
- }),
205
+ description: text.w9RequiredDescription,
211
206
  button: (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
212
207
  alertType: "info",
213
208
  icon: "info-circle",
@@ -266,20 +261,6 @@ export const TaxAndCashDashboardView = (props) => {
266
261
  icon: "exclamation-octagon",
267
262
  class: sheet.classes.ErrorHoldAlertContainer,
268
263
  };
269
- case "ACCOUNT_REVIEW":
270
- return {
271
- header: text.accountReviewHeader,
272
- description: intl.formatMessage({
273
- id: "accountReviewDescription",
274
- defaultMessage: text.accountReviewDescription,
275
- }, {
276
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
277
- }),
278
- buttonText: null,
279
- alertType: "warning",
280
- icon: "exclamation-triangle",
281
- class: sheet.classes.WarningHoldAlertContainer,
282
- };
283
264
  case "HOLD":
284
265
  return {
285
266
  header: text.payoutHoldAlertHeader,