@saasquatch/mint-components 1.16.0-14 → 1.16.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +2 -28
- package/dist/cjs/sqm-big-stat_43.cjs.entry.js +10 -34
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/cjs/{usePayoutStatus-79b5577f.js → usePayoutStatus-c84a7d98.js} +0 -11
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +2 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +3 -3
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +3 -3
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +0 -4
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +0 -4
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +8 -32
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +0 -29
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -25
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +0 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +2 -28
- package/dist/esm/sqm-big-stat_43.entry.js +10 -34
- package/dist/esm/sqm-referral-table_11.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm/{usePayoutStatus-6ae7fc44.js → usePayoutStatus-f07bcf90.js} +0 -11
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-6ae7fc44.js → usePayoutStatus-f07bcf90.js} +2 -2
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-dd883bbb.system.js → p-0c9debc1.system.js} +2 -2
- package/dist/mint-components/{p-01a851f7.system.entry.js → p-0e864c3c.system.entry.js} +1 -1
- package/dist/mint-components/p-1c67bf1c.system.entry.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-43b4bb99.entry.js +1 -0
- package/dist/mint-components/{p-e505f4bb.entry.js → p-47bd2d7a.entry.js} +5 -5
- package/dist/mint-components/{p-dbdef054.js → p-6bb25c02.js} +3 -9
- package/dist/mint-components/p-6f65f9e1.system.entry.js +1 -0
- package/dist/mint-components/{p-37a4452c.system.entry.js → p-776733b5.system.entry.js} +1 -1
- package/dist/mint-components/{p-4345fabe.entry.js → p-9a176cdf.entry.js} +7 -7
- package/dist/mint-components/{p-7893e7d1.entry.js → p-c46a0007.entry.js} +1 -1
- package/dist/mint-components/p-ef75f3a9.system.entry.js +1 -0
- package/dist/mint-components/{p-267c8f8c.entry.js → p-eff2e68b.entry.js} +2 -2
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +1 -2
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +0 -7
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -5
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -4
- package/dist/types/components.d.ts +0 -18
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-0309fdfa.entry.js +0 -1
- package/dist/mint-components/p-166a3eea.system.entry.js +0 -1
- package/dist/mint-components/p-986d4c17.system.entry.js +0 -1
- package/dist/mint-components/p-aa7a6a5c.system.entry.js +0 -1
|
@@ -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\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
|
|
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\"\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,13 +985,6 @@ 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
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;
|
|
@@ -1016,13 +1009,10 @@ function getStatus(data) {
|
|
|
1016
1009
|
return "DONE";
|
|
1017
1010
|
}
|
|
1018
1011
|
function usePayoutStatus(props) {
|
|
1019
|
-
var _a;
|
|
1020
1012
|
const { type } = index_module.getEnvironmentSDK();
|
|
1021
1013
|
const { loading, data, errors, refetch } = index_module.wn(GET_USER_STATUS, {});
|
|
1022
|
-
const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
|
|
1023
1014
|
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
1024
1015
|
const [status, setStatus] = stencilHooks_module.useState(undefined);
|
|
1025
|
-
const enforceUsTaxComplianceOption = (_a = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _a === void 0 ? void 0 : _a.enforceUsTaxCompliance;
|
|
1026
1016
|
stencilHooks_module.useEffect(() => {
|
|
1027
1017
|
if (!data)
|
|
1028
1018
|
return;
|
|
@@ -1044,7 +1034,6 @@ function usePayoutStatus(props) {
|
|
|
1044
1034
|
veriffLoading,
|
|
1045
1035
|
status,
|
|
1046
1036
|
error: !!errors,
|
|
1047
|
-
enforceUsTaxComplianceOption,
|
|
1048
1037
|
},
|
|
1049
1038
|
data: { type },
|
|
1050
1039
|
text: props.getTextProps(),
|
package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js
CHANGED
|
@@ -7,7 +7,7 @@ import { TextSpanView } from "../../sqm-text-span/sqm-text-span-view";
|
|
|
7
7
|
export class ReferralTableRewardsCell {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.statusText = "{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";
|
|
10
|
-
this.statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward was scheduled for payment based on your settings
|
|
10
|
+
this.statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";
|
|
11
11
|
this.locale = "en";
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
@@ -362,7 +362,7 @@ export class ReferralTableRewardsCell {
|
|
|
362
362
|
},
|
|
363
363
|
"attribute": "status-long-text",
|
|
364
364
|
"reflect": false,
|
|
365
|
-
"defaultValue": "\"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward was scheduled for payment based on your settings
|
|
365
|
+
"defaultValue": "\"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }\""
|
|
366
366
|
},
|
|
367
367
|
"fuelTankText": {
|
|
368
368
|
"type": "string",
|
package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useRequestRerender } from "../../../tables/re-render";
|
|
|
5
5
|
* @uiName Referral Table Rewards Column
|
|
6
6
|
* @validParents ["sqm-referral-table"]
|
|
7
7
|
* @exampleGroup Referrals
|
|
8
|
-
* @example Referral Table Rewards Column - <sqm-referral-table-rewards-column column-title="Rewards" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }" status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward was scheduled for payment based on your settings
|
|
8
|
+
* @example Referral Table Rewards Column - <sqm-referral-table-rewards-column column-title="Rewards" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }" status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }" fuel-tank-text="Your code is" reward-received-text="Reward received on" expiring-text="Expiring in" pending-for-text="{status} for {date}" denied-help-text="Contact support if you think this is a mistake." ></sqm-referral-table-rewards-column>
|
|
9
9
|
*/
|
|
10
10
|
export class ReferralTableRewardsColumn {
|
|
11
11
|
constructor() {
|
|
@@ -26,7 +26,7 @@ export class ReferralTableRewardsColumn {
|
|
|
26
26
|
* @uiName Reward status long text
|
|
27
27
|
* @uiWidget textArea
|
|
28
28
|
*/
|
|
29
|
-
this.statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward was scheduled for payment based on your settings
|
|
29
|
+
this.statusLongText = "{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }";
|
|
30
30
|
/**
|
|
31
31
|
* Shown in the dropdown details when a reward has an associated fuel tank code.
|
|
32
32
|
*
|
|
@@ -158,7 +158,7 @@ export class ReferralTableRewardsColumn {
|
|
|
158
158
|
},
|
|
159
159
|
"attribute": "status-long-text",
|
|
160
160
|
"reflect": false,
|
|
161
|
-
"defaultValue": "\"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward was scheduled for payment based on your settings
|
|
161
|
+
"defaultValue": "\"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }\""
|
|
162
162
|
},
|
|
163
163
|
"fuelTankText": {
|
|
164
164
|
"type": "string",
|
|
@@ -12,7 +12,7 @@ import { tryMethod, useReferralTable } from "./useReferralTable";
|
|
|
12
12
|
* @uiName Referral Table
|
|
13
13
|
* @exampleGroup Referrals
|
|
14
14
|
* @slots [{"name":"", "title":"Table Row"},{"name":"empty", "title":"Empty"},{"name":"loading","title":"Loading"}]
|
|
15
|
-
* @example Referral Table - <sqm-referral-table per-page="4" hidden-columns="2" more-label="Next" prev-label="Prev" sm-breakpoint="599" md-breakpoint="799" > <sqm-referral-table-user-column column-title="Customer" anonymous-user="Anonymous User" deleted-user="Deleted User" ></sqm-referral-table-user-column> <sqm-referral-table-rewards-column column-title="Rewards" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }" status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward was scheduled for payment based on your settings
|
|
15
|
+
* @example Referral Table - <sqm-referral-table per-page="4" hidden-columns="2" more-label="Next" prev-label="Prev" sm-breakpoint="599" md-breakpoint="799" > <sqm-referral-table-user-column column-title="Customer" anonymous-user="Anonymous User" deleted-user="Deleted User" ></sqm-referral-table-user-column> <sqm-referral-table-rewards-column column-title="Rewards" status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }" status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }" fuel-tank-text="Your code is" reward-received-text="Reward received on" expiring-text="Expiring in" pending-for-text="{status} for {date}" denied-help-text="Contact support if you think this is a mistake." ></sqm-referral-table-rewards-column> <sqm-referral-table-date-column column-title="Date converted" date-shown="dateConverted" ></sqm-referral-table-date-column> <sqm-referral-table-status-column column-title="Status" converted-status-text="Converted" in-progress-status-text="In Progress" pending-review-status-text="Pending" denied-status-text="Denied" pending-review-status-sub-text="Awaiting review" denied-status-sub-text="Detected self-referral" ></sqm-referral-table-status-column> <sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png" empty-state-header="View your referral details" empty-state-text="Refer a friend to view the status of your referrals and rewards earned" slot="empty" ></sqm-empty> </sqm-referral-table>
|
|
16
16
|
*/
|
|
17
17
|
export class ReferralTable {
|
|
18
18
|
constructor() {
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js
CHANGED
|
@@ -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-
|
|
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() {
|
package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useRequestRerender } from "../../../tables/re-render";
|
|
|
5
5
|
* @uiName Reward Table Status Column
|
|
6
6
|
* @validParents ["sqm-rewards-table"]
|
|
7
7
|
* @exampleGroup Rewards
|
|
8
|
-
* @example Reward Table Status Column - <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
|
|
8
|
+
* @example Reward Table Status Column - <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 approved for payout and was scheduled for payment based on your settings." ></sqm-rewards-table-status-column>
|
|
9
9
|
*/
|
|
10
10
|
export class RewardTableStatusColumn {
|
|
11
11
|
constructor() {
|
|
@@ -95,7 +95,7 @@ export class RewardTableStatusColumn {
|
|
|
95
95
|
*
|
|
96
96
|
* @uiName Payout approved text
|
|
97
97
|
*/
|
|
98
|
-
this.payoutApproved = "Reward was scheduled for payment based on your settings
|
|
98
|
+
this.payoutApproved = "Reward approved for payout and was scheduled for payment based on your settings.";
|
|
99
99
|
withHooks(this);
|
|
100
100
|
}
|
|
101
101
|
disconnectedCallback() { }
|
|
@@ -436,7 +436,7 @@ export class RewardTableStatusColumn {
|
|
|
436
436
|
},
|
|
437
437
|
"attribute": "payout-approved",
|
|
438
438
|
"reflect": false,
|
|
439
|
-
"defaultValue": "\"Reward was scheduled for payment based on your settings
|
|
439
|
+
"defaultValue": "\"Reward approved for payout and was scheduled for payment based on your settings.\""
|
|
440
440
|
}
|
|
441
441
|
}; }
|
|
442
442
|
static get methods() { return {
|
|
@@ -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
|
|
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 approved for payout and was scheduled for payment based on your settings." ></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,36 +130,14 @@ export function PayoutStatusAlertView(props) {
|
|
|
130
130
|
class: sheet.classes.ErrorAlertContainer,
|
|
131
131
|
};
|
|
132
132
|
case "OVER_W9_THRESHOLD":
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
}
|
|
133
|
+
return {
|
|
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,
|
|
137
|
+
alertType: "warning",
|
|
138
|
+
icon: "exclamation-triangle",
|
|
139
|
+
class: sheet.classes.WarningAlertContainer,
|
|
140
|
+
};
|
|
163
141
|
case "HOLD":
|
|
164
142
|
return {
|
|
165
143
|
header: text.holdHeader,
|
|
@@ -181,8 +159,6 @@ export function PayoutStatusAlertView(props) {
|
|
|
181
159
|
function getButton(status) {
|
|
182
160
|
switch (status) {
|
|
183
161
|
case "OVER_W9_THRESHOLD":
|
|
184
|
-
if (states.enforceUsTaxComplianceOption === "CASH_ONLY")
|
|
185
|
-
return;
|
|
186
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)) : (
|
|
187
163
|
// Demo case
|
|
188
164
|
h("sl-button", { type: "default" }, text.w9RequiredButtonText));
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -83,7 +83,7 @@ export class PayoutStatusAlert {
|
|
|
83
83
|
/**
|
|
84
84
|
* @uiName Cash & Payouts Microsite Page (only set if alert is used in a microsite)
|
|
85
85
|
*/
|
|
86
|
-
this.cashPayoutsPageUrl = "/taxAndCash
|
|
86
|
+
this.cashPayoutsPageUrl = "/taxAndCash";
|
|
87
87
|
/**
|
|
88
88
|
* @uiName Support link text
|
|
89
89
|
*/
|
|
@@ -491,7 +491,7 @@ export class PayoutStatusAlert {
|
|
|
491
491
|
},
|
|
492
492
|
"attribute": "cash-payouts-page-url",
|
|
493
493
|
"reflect": false,
|
|
494
|
-
"defaultValue": "\"/taxAndCash
|
|
494
|
+
"defaultValue": "\"/taxAndCash\""
|
|
495
495
|
},
|
|
496
496
|
"supportLink": {
|
|
497
497
|
"type": "string",
|
|
@@ -582,7 +582,7 @@ export class PayoutStatusAlert {
|
|
|
582
582
|
"mutable": false,
|
|
583
583
|
"complexType": {
|
|
584
584
|
"original": "DemoData<PayoutStatusAlertViewProps>",
|
|
585
|
-
"resolved": "{ states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean;
|
|
585
|
+
"resolved": "{ states?: { error: boolean; loading: boolean; status: PayoutStatus; veriffLoading: boolean; }; data?: { type: \"SquatchJS2\" | \"SquatchAndroid\" | \"SquatchIOS\" | \"SquatchPortal\" | \"SquatchAdmin\" | \"None\"; }; }",
|
|
586
586
|
"references": {
|
|
587
587
|
"DemoData": {
|
|
588
588
|
"location": "import",
|
|
@@ -22,13 +22,6 @@ 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
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;
|
|
@@ -53,13 +46,10 @@ export function getStatus(data) {
|
|
|
53
46
|
return "DONE";
|
|
54
47
|
}
|
|
55
48
|
export function usePayoutStatus(props) {
|
|
56
|
-
var _a;
|
|
57
49
|
const { type } = getEnvironmentSDK();
|
|
58
50
|
const { loading, data, errors, refetch } = useQuery(GET_USER_STATUS, {});
|
|
59
|
-
const { data: taxSettingRes } = useQuery(GET_TAX_SETTING, {});
|
|
60
51
|
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
61
52
|
const [status, setStatus] = useState(undefined);
|
|
62
|
-
const enforceUsTaxComplianceOption = (_a = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _a === void 0 ? void 0 : _a.enforceUsTaxCompliance;
|
|
63
53
|
useEffect(() => {
|
|
64
54
|
if (!data)
|
|
65
55
|
return;
|
|
@@ -81,7 +71,6 @@ export function usePayoutStatus(props) {
|
|
|
81
71
|
veriffLoading,
|
|
82
72
|
status,
|
|
83
73
|
error: !!errors,
|
|
84
|
-
enforceUsTaxComplianceOption,
|
|
85
74
|
},
|
|
86
75
|
data: { type },
|
|
87
76
|
text: props.getTextProps(),
|
|
@@ -931,11 +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 Terms and Conditions text
|
|
936
|
-
* @uiGroup Dashboard Properties
|
|
937
|
-
*/
|
|
938
|
-
this.dashboard_termsAndConditions = "Terms and Conditions";
|
|
939
934
|
/**
|
|
940
935
|
* @uiName W9 payment threshold alert button text
|
|
941
936
|
* @uiGroup Dashboard Properties
|
|
@@ -4952,30 +4947,6 @@ export class TaxAndCashMonolith {
|
|
|
4952
4947
|
"reflect": false,
|
|
4953
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.\""
|
|
4954
4949
|
},
|
|
4955
|
-
"dashboard_termsAndConditions": {
|
|
4956
|
-
"type": "string",
|
|
4957
|
-
"mutable": false,
|
|
4958
|
-
"complexType": {
|
|
4959
|
-
"original": "string",
|
|
4960
|
-
"resolved": "string",
|
|
4961
|
-
"references": {}
|
|
4962
|
-
},
|
|
4963
|
-
"required": false,
|
|
4964
|
-
"optional": false,
|
|
4965
|
-
"docs": {
|
|
4966
|
-
"tags": [{
|
|
4967
|
-
"text": "Terms and Conditions text",
|
|
4968
|
-
"name": "uiName"
|
|
4969
|
-
}, {
|
|
4970
|
-
"text": "Dashboard Properties",
|
|
4971
|
-
"name": "uiGroup"
|
|
4972
|
-
}],
|
|
4973
|
-
"text": ""
|
|
4974
|
-
},
|
|
4975
|
-
"attribute": "dashboard_terms-and-conditions",
|
|
4976
|
-
"reflect": false,
|
|
4977
|
-
"defaultValue": "\"Terms and Conditions\""
|
|
4978
|
-
},
|
|
4979
4950
|
"dashboard_w9RequiredButtonText": {
|
|
4980
4951
|
"type": "string",
|
|
4981
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:
|
|
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",
|
|
@@ -239,10 +239,6 @@ export class TaxAndCashDashboard {
|
|
|
239
239
|
* @uiName W9 payment threshold alert description
|
|
240
240
|
*/
|
|
241
241
|
this.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.";
|
|
242
|
-
/**
|
|
243
|
-
* @uiName Terms and Conditions text
|
|
244
|
-
*/
|
|
245
|
-
this.termsAndConditions = "Terms and Conditions";
|
|
246
242
|
/**
|
|
247
243
|
* @uiName W9 payment threshold alert button text
|
|
248
244
|
*/
|
|
@@ -1316,27 +1312,6 @@ export class TaxAndCashDashboard {
|
|
|
1316
1312
|
"reflect": false,
|
|
1317
1313
|
"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.\""
|
|
1318
1314
|
},
|
|
1319
|
-
"termsAndConditions": {
|
|
1320
|
-
"type": "string",
|
|
1321
|
-
"mutable": false,
|
|
1322
|
-
"complexType": {
|
|
1323
|
-
"original": "string",
|
|
1324
|
-
"resolved": "string",
|
|
1325
|
-
"references": {}
|
|
1326
|
-
},
|
|
1327
|
-
"required": false,
|
|
1328
|
-
"optional": false,
|
|
1329
|
-
"docs": {
|
|
1330
|
-
"tags": [{
|
|
1331
|
-
"text": "Terms and Conditions text",
|
|
1332
|
-
"name": "uiName"
|
|
1333
|
-
}],
|
|
1334
|
-
"text": ""
|
|
1335
|
-
},
|
|
1336
|
-
"attribute": "terms-and-conditions",
|
|
1337
|
-
"reflect": false,
|
|
1338
|
-
"defaultValue": "\"Terms and Conditions\""
|
|
1339
|
-
},
|
|
1340
1315
|
"w9RequiredButtonText": {
|
|
1341
1316
|
"type": "string",
|
|
1342
1317
|
"mutable": false,
|
|
@@ -23,10 +23,6 @@ export function useUserInfoForm(props) {
|
|
|
23
23
|
const [currencySearch, setCurrencySearch] = useState("");
|
|
24
24
|
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
25
25
|
const [formErrors, setErrors] = useState({});
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
// reset redirect hash
|
|
28
|
-
window.location.hash = "";
|
|
29
|
-
}, []);
|
|
30
26
|
useEffect(() => {
|
|
31
27
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
32
28
|
const user = data === null || data === void 0 ? void 0 : data.user;
|