@vrplatform/email 1.0.2-stage.45320285174 → 1.0.2-stage.45574945243
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/build/main/templates/Tax1099ConsentWithdrawnEmailTemplate.js +1 -1
- package/build/main/templates/Tax1099ConsentWithdrawnEmailTemplate.js.map +1 -1
- package/build/main/templates/Tax1099EmailTemplate.d.ts +2 -0
- package/build/main/templates/Tax1099EmailTemplate.js +13 -10
- package/build/main/templates/Tax1099EmailTemplate.js.map +1 -1
- package/build/module/templates/Tax1099ConsentWithdrawnEmailTemplate.js +1 -1
- package/build/module/templates/Tax1099ConsentWithdrawnEmailTemplate.js.map +1 -1
- package/build/module/templates/Tax1099EmailTemplate.d.ts +2 -0
- package/build/module/templates/Tax1099EmailTemplate.js +12 -9
- package/build/module/templates/Tax1099EmailTemplate.js.map +1 -1
- package/package.json +1 -1
- package/src/templates/Tax1099ConsentWithdrawnEmailTemplate.tsx +2 -1
- package/src/templates/Tax1099EmailTemplate.tsx +15 -9
|
@@ -16,7 +16,7 @@ const Tax1099ConsentWithdrawnEmailTemplate = ({ mode, user, tenant, withdrawnAt,
|
|
|
16
16
|
day: 'numeric',
|
|
17
17
|
year: 'numeric',
|
|
18
18
|
}).format(new Date(withdrawnAt));
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)(components_1.EmailContainer, { title: "You withdrew your consent to get 1099s by email", shortDescription: `From ${effectiveOn}, ${tenant.name} mails your 1099s.`, tenant: tenant, mode: mode, children: [(0, jsx_runtime_1.jsx)(heading_1.Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: user.firstName ? `Hi ${user.firstName},` : 'Hi there,' }), (0, jsx_runtime_1.jsxs)(text_1.Text, { children: ["You withdrew your consent to get your 1099s from ", (0, jsx_runtime_1.jsx)("b", { children: tenant.name }), " by email only. The withdrawal takes effect on ", (0, jsx_runtime_1.jsx)("b", { children: effectiveOn }), "."] }), (0, jsx_runtime_1.jsxs)(text_1.Text, { children: ["From that date, ", tenant.name, " mails your 1099s to", ' ', address || 'the address on Tax info in your owner portal', ", with a copy by email. Each 1099 also stays
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.EmailContainer, { title: "You withdrew your consent to get 1099s by email", shortDescription: `From ${effectiveOn}, ${tenant.name} mails your 1099s.`, tenant: tenant, mode: mode, children: [(0, jsx_runtime_1.jsx)(heading_1.Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: user.firstName ? `Hi ${user.firstName},` : 'Hi there,' }), (0, jsx_runtime_1.jsxs)(text_1.Text, { children: ["You withdrew your consent to get your 1099s from ", (0, jsx_runtime_1.jsx)("b", { children: tenant.name }), " by email only. The withdrawal takes effect on ", (0, jsx_runtime_1.jsx)("b", { children: effectiveOn }), "."] }), (0, jsx_runtime_1.jsxs)(text_1.Text, { children: ["From that date, ", tenant.name, " mails your 1099s to", ' ', address || 'the address on Tax info in your owner portal', ", with a copy by email. Each 1099 also stays on the 1099s tab of Statements in your owner portal."] }), (0, jsx_runtime_1.jsxs)(text_1.Text, { children: ["To get your 1099s by email only again, give your consent on Tax info in your owner portal. If you did not make this change, contact", ' ', tenant.name, " right away."] })] }));
|
|
20
20
|
};
|
|
21
21
|
exports.Tax1099ConsentWithdrawnEmailTemplate = Tax1099ConsentWithdrawnEmailTemplate;
|
|
22
22
|
//# sourceMappingURL=Tax1099ConsentWithdrawnEmailTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tax1099ConsentWithdrawnEmailTemplate.js","sourceRoot":"src/","sources":["templates/Tax1099ConsentWithdrawnEmailTemplate.tsx"],"names":[],"mappings":";;;;AAAA,kDAA+C;AAC/C,4CAAyC;AACzC,8CAA+C;AAG/C,qEAAqE;AACrE,4EAA4E;AACrE,MAAM,oCAAoC,GAAG,CAAC,EACnD,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,WAAW,EACX,OAAO,GAQR,EAAE,E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AAO,EAAE;QACnD,QAAQ,EAAE,qBAAqB;QAC/B,KAAK,EAAE,MAAM;QACb,GAAG,EAAE,SAAS;QACd,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IACjC,OAAO,CACL,wBAAC,2BAAc,IACb,KAAK,EAAC,iDAAiD,EACvD,gBAAgB,EAAE,QAAQ,WAAW,KAAK,MAAM,CAAC,IAAI,oBAAoB,EACzE,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,aAEV,uBAAC,iBAAO,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,YACpE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,WAAW,GAC/C,EACV,wBAAC,WAAI,oEAC8C,wCAAI,MAAM,CAAC,IAAI,GAAK,qDAC1B,wCAAI,WAAW,GAAK,SAC1D,EACP,wBAAC,WAAI,mCACc,MAAM,CAAC,IAAI,0BAAsB,GAAG,EACpD,OAAO,IAAI,8CAA8C,yGAGrD,EACP,wBAAC,WAAI,sJAEyD,GAAG,EAC9D,MAAM,CAAC,IAAI,oBACP,IACQ,CAClB,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,oCAAoC,GAApC,oCAAoC,CAiD/C","sourcesContent":["import { Heading } from '@react-email/heading';\nimport { Text } from '@react-email/text';\nimport { EmailContainer } from '../components';\nimport type { EmailBaseProps } from '../types';\n\n// PRO-20639: the written confirmation the IRS requires when an owner\n// withdraws consent to get 1099s by email. Fixed text; teams can't edit it.\nexport const Tax1099ConsentWithdrawnEmailTemplate = ({\n mode,\n user,\n tenant,\n withdrawnAt,\n address,\n}: {\n mode: EmailBaseProps['mode'];\n user: EmailBaseProps['user'];\n tenant: EmailBaseProps['tenant'];\n /** When the owner withdrew; the withdrawal takes effect that day. */\n withdrawnAt: string;\n address: string | null;\n}) => {\n // The team stores no time zone. Pacific time keeps an evening withdrawal\n // anywhere in the mainland US on the day the owner made it.\n const effectiveOn = new Intl.DateTimeFormat('en-US', {\n timeZone: 'America/Los_Angeles',\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n }).format(new Date(withdrawnAt));\n return (\n <EmailContainer\n title=\"You withdrew your consent to get 1099s by email\"\n shortDescription={`From ${effectiveOn}, ${tenant.name} mails your 1099s.`}\n tenant={tenant}\n mode={mode}\n >\n <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>\n {user.firstName ? `Hi ${user.firstName},` : 'Hi there,'}\n </Heading>\n <Text>\n You withdrew your consent to get your 1099s from <b>{tenant.name}</b> by\n email only. The withdrawal takes effect on <b>{effectiveOn}</b>.\n </Text>\n <Text>\n From that date, {tenant.name} mails your 1099s to{' '}\n {address || 'the address on Tax info in your owner portal'}, with a copy\n by email. Each 1099 also stays on the 1099s tab of Statements in your\n owner portal.\n </Text>\n <Text>\n To get your 1099s by email only again, give your consent on Tax info in\n your owner portal. If you did not make this change, contact{' '}\n {tenant.name} right away.\n </Text>\n </EmailContainer>\n );\n};\n"]}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { type ActionEmailData, type ActionEmailTemplateProps } from '../components';
|
|
2
|
+
/** The owner portal page of the 1099s tab, which 1099 Ready and Corrected 1099 open. */
|
|
3
|
+
export declare const OWNER_PORTAL_1099S_PATH = "/statements/1099s";
|
|
2
4
|
type Tax1099EmailType = 'taxInfoRequest' | 'emailDeliveryRequest' | 'tax1099Ready' | 'tax1099Corrected';
|
|
3
5
|
export declare const getDefaultTax1099EmailData: (type: Tax1099EmailType, mode: 'tag' | 'text', args: {
|
|
4
6
|
teamName: string;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Tax1099EmailTemplate = exports.getDefaultTax1099EmailData = void 0;
|
|
3
|
+
exports.Tax1099EmailTemplate = exports.getDefaultTax1099EmailData = exports.OWNER_PORTAL_1099S_PATH = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const extensions_1 = require("../extensions");
|
|
6
6
|
const components_1 = require("../components");
|
|
7
|
+
/** The owner portal page of the 1099s tab, which 1099 Ready and Corrected 1099 open. */
|
|
8
|
+
exports.OWNER_PORTAL_1099S_PATH = '/statements/1099s';
|
|
7
9
|
// PRO-20621: the 1099 owner emails teams edit in Settings > Emails. The date
|
|
8
|
-
// token renders the tax year.
|
|
10
|
+
// token renders the tax year. 1099s live on the owner portal's 1099s tab of
|
|
11
|
+
// Statements (PRO-20629), not in Tax Statements (PRO-21278). Subject and preview text are plain text without
|
|
9
12
|
// tokens, so they name no year.
|
|
10
13
|
const getDefaultTax1099EmailData = (type, mode, args) => {
|
|
11
14
|
const href = mode === 'tag' ? extensions_1.EMAIL_ACTION_LINK_COMPONENT : args.href;
|
|
@@ -28,7 +31,7 @@ const getDefaultTax1099EmailData = (type, mode, args) => {
|
|
|
28
31
|
subject: `Get your 1099s from ${team} by email`,
|
|
29
32
|
shortDescription: 'Confirm in your owner portal that you want your 1099s by email only.',
|
|
30
33
|
header: 'Get your 1099s by email',
|
|
31
|
-
bodyOne: `<p>Hi ${userName},</p><p>${team} asks whether you want your 1099s by email only, without a paper copy by mail. You then get an email when your 1099 is ready, and it stays
|
|
34
|
+
bodyOne: `<p>Hi ${userName},</p><p>${team} asks whether you want your 1099s by email only, without a paper copy by mail. You then get an email when your 1099 is ready, and it stays on the 1099s tab of Statements in your owner portal.</p><p>Nothing changes until you confirm on Tax info.</p>`,
|
|
32
35
|
buttonText: 'Choose 1099 delivery',
|
|
33
36
|
bodyTwo: linkLine,
|
|
34
37
|
href: args.href,
|
|
@@ -36,19 +39,19 @@ const getDefaultTax1099EmailData = (type, mode, args) => {
|
|
|
36
39
|
if (type === 'tax1099Ready')
|
|
37
40
|
return {
|
|
38
41
|
subject: `Your 1099 from ${team} is ready`,
|
|
39
|
-
shortDescription: 'Open it
|
|
42
|
+
shortDescription: 'Open it on the 1099s tab of Statements in your owner portal.',
|
|
40
43
|
header: 'Your 1099 is ready',
|
|
41
|
-
bodyOne: `<p>Hi ${userName},</p><p>Your ${taxYear} 1099 from ${team} is
|
|
42
|
-
buttonText: 'Open
|
|
44
|
+
bodyOne: `<p>Hi ${userName},</p><p>Your ${taxYear} 1099 from ${team} is on the 1099s tab of Statements in your owner portal. You can download and print it there.</p>`,
|
|
45
|
+
buttonText: 'Open 1099s',
|
|
43
46
|
bodyTwo: `<p>If you get your 1099 by mail too, the paper copy is on its way.</p>${linkLine}`,
|
|
44
47
|
href: args.href,
|
|
45
48
|
};
|
|
46
49
|
return {
|
|
47
50
|
subject: `Your corrected 1099 from ${team}`,
|
|
48
|
-
shortDescription: 'Open it
|
|
51
|
+
shortDescription: 'Open it on the 1099s tab of Statements in your owner portal.',
|
|
49
52
|
header: 'Your 1099 was corrected',
|
|
50
|
-
bodyOne: `<p>Hi ${userName},</p><p>${team} filed a corrected ${taxYear} 1099 for you. It replaces the earlier one and is
|
|
51
|
-
buttonText: 'Open
|
|
53
|
+
bodyOne: `<p>Hi ${userName},</p><p>${team} filed a corrected ${taxYear} 1099 for you. It replaces the earlier one and is on the 1099s tab of Statements in your owner portal.</p>`,
|
|
54
|
+
buttonText: 'Open 1099s',
|
|
52
55
|
bodyTwo: `<p>If you get your 1099 by mail too, the corrected paper copy is on its way.</p>${linkLine}`,
|
|
53
56
|
href: args.href,
|
|
54
57
|
};
|
|
@@ -56,6 +59,6 @@ const getDefaultTax1099EmailData = (type, mode, args) => {
|
|
|
56
59
|
exports.getDefaultTax1099EmailData = getDefaultTax1099EmailData;
|
|
57
60
|
const Tax1099EmailTemplate = ({ type, taxYear, ...props }) => ((0, jsx_runtime_1.jsx)(components_1.ActionEmailTemplate, { ...props, listing: undefined, month: taxYear, eyebrow: type === 'taxInfoRequest' || type === 'emailDeliveryRequest'
|
|
58
61
|
? 'Tax info'
|
|
59
|
-
: '
|
|
62
|
+
: '1099s' }));
|
|
60
63
|
exports.Tax1099EmailTemplate = Tax1099EmailTemplate;
|
|
61
64
|
//# sourceMappingURL=Tax1099EmailTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tax1099EmailTemplate.js","sourceRoot":"src/","sources":["templates/Tax1099EmailTemplate.tsx"],"names":[],"mappings":";;;;AAAA,8CAIuB;AACvB,8CAIuB;
|
|
1
|
+
{"version":3,"file":"Tax1099EmailTemplate.js","sourceRoot":"src/","sources":["templates/Tax1099EmailTemplate.tsx"],"names":[],"mappings":";;;;AAAA,8CAIuB;AACvB,8CAIuB;AAEvB,wFAAwF;AAC3E,QAAA,uBAAuB,GAAG,mBAAmB,CAAC;AAQ3D,6EAA6E;AAC7E,4EAA4E;AAC5E,6GAA6G;AAC7G,gCAAgC;AACzB,MAAM,0BAA0B,GAAG,CACxC,IAAsB,EACtB,IAAoB,EACpB,IAKC,EACgB,EAAE;IACnB,MAAM,IAAI,GAAG,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,wCAA2B,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IACtE,MAAM,QAAQ,GAAG,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,sCAAyB,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC5E,MAAM,OAAO,GAAG,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,iCAAoB,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;IACrE,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC;IAC3B,MAAM,QAAQ,GAAG,yGAAyG,IAAI,MAAM,CAAC;IAErI,IAAI,IAAI,KAAK,gBAAgB;QAC3B,OAAO;YACL,OAAO,EAAE,GAAG,IAAI,sBAAsB;YACtC,gBAAgB,EAAE,2CAA2C,IAAI,sBAAsB;YACvF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,GAAG,KAAK,EAIT,EAAE,EAAE,CAAC,CACJ,uBAAC,gCAAmB,OACd,KAAK,EACT,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,OAAO,EACd,OAAO,EACL,IAAI,KAAK,gBAAgB,IAAI,IAAI,KAAK,sBAAsB;QAC1D,CAAC,CAAC,UAAU;QACZ,CAAC,CAAC,OAAO,GAEb,CACH,CAAC;AAlBW,QAAA,oBAAoB,GAApB,oBAAoB,CAkB/B","sourcesContent":["import {\n EMAIL_ACTION_LINK_COMPONENT,\n EMAIL_DATE_COMPONENT,\n EMAIL_USER_NAME_COMPONENT,\n} from '../extensions';\nimport {\n type ActionEmailData,\n ActionEmailTemplate,\n type ActionEmailTemplateProps,\n} from '../components';\n\n/** The owner portal page of the 1099s tab, which 1099 Ready and Corrected 1099 open. */\nexport const OWNER_PORTAL_1099S_PATH = '/statements/1099s';\n\ntype Tax1099EmailType =\n | 'taxInfoRequest'\n | 'emailDeliveryRequest'\n | 'tax1099Ready'\n | 'tax1099Corrected';\n\n// PRO-20621: the 1099 owner emails teams edit in Settings > Emails. The date\n// token renders the tax year. 1099s live on the owner portal's 1099s tab of\n// Statements (PRO-20629), not in Tax Statements (PRO-21278). Subject and preview text are plain text without\n// tokens, so they name no year.\nexport const getDefaultTax1099EmailData = (\n type: Tax1099EmailType,\n mode: 'tag' | 'text',\n args: {\n teamName: string;\n href: string;\n userName: string;\n taxYear: string;\n }\n): ActionEmailData => {\n const href = mode === 'tag' ? EMAIL_ACTION_LINK_COMPONENT : args.href;\n const userName = mode === 'tag' ? EMAIL_USER_NAME_COMPONENT : args.userName;\n const taxYear = mode === 'tag' ? EMAIL_DATE_COMPONENT : args.taxYear;\n const team = args.teamName;\n const linkLine = `<p style=\"color:#737373;font-size:13px\">If the button doesn't work, copy this link into your browser: ${href}</p>`;\n\n if (type === 'taxInfoRequest')\n return {\n subject: `${team} needs your tax info`,\n shortDescription: `Add your tax ID in your owner portal so ${team} can send your 1099.`,\n header: 'Complete your tax info',\n bodyOne: `<p>Hi ${userName},</p><p>${team} needs your tax ID to send your ${taxYear} 1099. Add it on Tax info in your owner portal.</p>`,\n buttonText: 'Complete tax info',\n bodyTwo: `<p>Never send your tax ID by email. If you did not expect this request, contact ${team} before you enter it.</p>${linkLine}`,\n href: args.href,\n };\n\n if (type === 'emailDeliveryRequest')\n return {\n subject: `Get your 1099s from ${team} by email`,\n shortDescription:\n 'Confirm in your owner portal that you want your 1099s by email only.',\n header: 'Get your 1099s by email',\n bodyOne: `<p>Hi ${userName},</p><p>${team} asks whether you want your 1099s by email only, without a paper copy by mail. You then get an email when your 1099 is ready, and it stays on the 1099s tab of Statements in your owner portal.</p><p>Nothing changes until you confirm on Tax info.</p>`,\n buttonText: 'Choose 1099 delivery',\n bodyTwo: linkLine,\n href: args.href,\n };\n\n if (type === 'tax1099Ready')\n return {\n subject: `Your 1099 from ${team} is ready`,\n shortDescription:\n 'Open it on the 1099s tab of Statements in your owner portal.',\n header: 'Your 1099 is ready',\n bodyOne: `<p>Hi ${userName},</p><p>Your ${taxYear} 1099 from ${team} is on the 1099s tab of Statements in your owner portal. You can download and print it there.</p>`,\n buttonText: 'Open 1099s',\n bodyTwo: `<p>If you get your 1099 by mail too, the paper copy is on its way.</p>${linkLine}`,\n href: args.href,\n };\n\n return {\n subject: `Your corrected 1099 from ${team}`,\n shortDescription:\n 'Open it on the 1099s tab of Statements in your owner portal.',\n header: 'Your 1099 was corrected',\n bodyOne: `<p>Hi ${userName},</p><p>${team} filed a corrected ${taxYear} 1099 for you. It replaces the earlier one and is on the 1099s tab of Statements in your owner portal.</p>`,\n buttonText: 'Open 1099s',\n bodyTwo: `<p>If you get your 1099 by mail too, the corrected paper copy is on its way.</p>${linkLine}`,\n href: args.href,\n };\n};\n\nexport const Tax1099EmailTemplate = ({\n type,\n taxYear,\n ...props\n}: Omit<ActionEmailTemplateProps, 'listing' | 'month'> & {\n type: Tax1099EmailType;\n taxYear: string;\n}) => (\n <ActionEmailTemplate\n {...props}\n listing={undefined}\n month={taxYear}\n eyebrow={\n type === 'taxInfoRequest' || type === 'emailDeliveryRequest'\n ? 'Tax info'\n : '1099s'\n }\n />\n);\n"]}
|
|
@@ -13,6 +13,6 @@ export const Tax1099ConsentWithdrawnEmailTemplate = ({ mode, user, tenant, withd
|
|
|
13
13
|
day: 'numeric',
|
|
14
14
|
year: 'numeric',
|
|
15
15
|
}).format(new Date(withdrawnAt));
|
|
16
|
-
return (_jsxs(EmailContainer, { title: "You withdrew your consent to get 1099s by email", shortDescription: `From ${effectiveOn}, ${tenant.name} mails your 1099s.`, tenant: tenant, mode: mode, children: [_jsx(Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: user.firstName ? `Hi ${user.firstName},` : 'Hi there,' }), _jsxs(Text, { children: ["You withdrew your consent to get your 1099s from ", _jsx("b", { children: tenant.name }), " by email only. The withdrawal takes effect on ", _jsx("b", { children: effectiveOn }), "."] }), _jsxs(Text, { children: ["From that date, ", tenant.name, " mails your 1099s to", ' ', address || 'the address on Tax info in your owner portal', ", with a copy by email. Each 1099 also stays
|
|
16
|
+
return (_jsxs(EmailContainer, { title: "You withdrew your consent to get 1099s by email", shortDescription: `From ${effectiveOn}, ${tenant.name} mails your 1099s.`, tenant: tenant, mode: mode, children: [_jsx(Heading, { style: { fontSize: 28, fontWeight: 600, marginBottom: '50px' }, children: user.firstName ? `Hi ${user.firstName},` : 'Hi there,' }), _jsxs(Text, { children: ["You withdrew your consent to get your 1099s from ", _jsx("b", { children: tenant.name }), " by email only. The withdrawal takes effect on ", _jsx("b", { children: effectiveOn }), "."] }), _jsxs(Text, { children: ["From that date, ", tenant.name, " mails your 1099s to", ' ', address || 'the address on Tax info in your owner portal', ", with a copy by email. Each 1099 also stays on the 1099s tab of Statements in your owner portal."] }), _jsxs(Text, { children: ["To get your 1099s by email only again, give your consent on Tax info in your owner portal. If you did not make this change, contact", ' ', tenant.name, " right away."] })] }));
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=Tax1099ConsentWithdrawnEmailTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tax1099ConsentWithdrawnEmailTemplate.js","sourceRoot":"src/","sources":["templates/Tax1099ConsentWithdrawnEmailTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,qEAAqE;AACrE,4EAA4E;AAC5E,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,EACnD,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,WAAW,EACX,OAAO,GAQR,EAAE,EAAE;IACH,yEAAyE;IACzE,4DAA4D;IAC5D,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;QACnD,QAAQ,EAAE,qBAAqB;QAC/B,KAAK,EAAE,MAAM;QACb,GAAG,EAAE,SAAS;QACd,IAAI,EAAE,SAAS;KAChB,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IACjC,OAAO,CACL,MAAC,cAAc,IACb,KAAK,EAAC,iDAAiD,EACvD,gBAAgB,EAAE,QAAQ,WAAW,KAAK,MAAM,CAAC,IAAI,oBAAoB,EACzE,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,aAEV,KAAC,OAAO,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,YACpE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,WAAW,GAC/C,EACV,MAAC,IAAI,oEAC8C,sBAAI,MAAM,CAAC,IAAI,GAAK,qDAC1B,sBAAI,WAAW,GAAK,SAC1D,EACP,M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GAAK,SAC1D,EACP,MAAC,IAAI,mCACc,MAAM,CAAC,IAAI,0BAAsB,GAAG,EACpD,OAAO,IAAI,8CAA8C,yGAGrD,EACP,MAAC,IAAI,sJAEyD,GAAG,EAC9D,MAAM,CAAC,IAAI,oBACP,IACQ,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Heading } from '@react-email/heading';\nimport { Text } from '@react-email/text';\nimport { EmailContainer } from '../components';\nimport type { EmailBaseProps } from '../types';\n\n// PRO-20639: the written confirmation the IRS requires when an owner\n// withdraws consent to get 1099s by email. Fixed text; teams can't edit it.\nexport const Tax1099ConsentWithdrawnEmailTemplate = ({\n mode,\n user,\n tenant,\n withdrawnAt,\n address,\n}: {\n mode: EmailBaseProps['mode'];\n user: EmailBaseProps['user'];\n tenant: EmailBaseProps['tenant'];\n /** When the owner withdrew; the withdrawal takes effect that day. */\n withdrawnAt: string;\n address: string | null;\n}) => {\n // The team stores no time zone. Pacific time keeps an evening withdrawal\n // anywhere in the mainland US on the day the owner made it.\n const effectiveOn = new Intl.DateTimeFormat('en-US', {\n timeZone: 'America/Los_Angeles',\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n }).format(new Date(withdrawnAt));\n return (\n <EmailContainer\n title=\"You withdrew your consent to get 1099s by email\"\n shortDescription={`From ${effectiveOn}, ${tenant.name} mails your 1099s.`}\n tenant={tenant}\n mode={mode}\n >\n <Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>\n {user.firstName ? `Hi ${user.firstName},` : 'Hi there,'}\n </Heading>\n <Text>\n You withdrew your consent to get your 1099s from <b>{tenant.name}</b> by\n email only. The withdrawal takes effect on <b>{effectiveOn}</b>.\n </Text>\n <Text>\n From that date, {tenant.name} mails your 1099s to{' '}\n {address || 'the address on Tax info in your owner portal'}, with a copy\n by email. Each 1099 also stays on the 1099s tab of Statements in your\n owner portal.\n </Text>\n <Text>\n To get your 1099s by email only again, give your consent on Tax info in\n your owner portal. If you did not make this change, contact{' '}\n {tenant.name} right away.\n </Text>\n </EmailContainer>\n );\n};\n"]}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { type ActionEmailData, type ActionEmailTemplateProps } from '../components';
|
|
2
|
+
/** The owner portal page of the 1099s tab, which 1099 Ready and Corrected 1099 open. */
|
|
3
|
+
export declare const OWNER_PORTAL_1099S_PATH = "/statements/1099s";
|
|
2
4
|
type Tax1099EmailType = 'taxInfoRequest' | 'emailDeliveryRequest' | 'tax1099Ready' | 'tax1099Corrected';
|
|
3
5
|
export declare const getDefaultTax1099EmailData: (type: Tax1099EmailType, mode: 'tag' | 'text', args: {
|
|
4
6
|
teamName: string;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { EMAIL_ACTION_LINK_COMPONENT, EMAIL_DATE_COMPONENT, EMAIL_USER_NAME_COMPONENT, } from '../extensions';
|
|
3
3
|
import { ActionEmailTemplate, } from '../components';
|
|
4
|
+
/** The owner portal page of the 1099s tab, which 1099 Ready and Corrected 1099 open. */
|
|
5
|
+
export const OWNER_PORTAL_1099S_PATH = '/statements/1099s';
|
|
4
6
|
// PRO-20621: the 1099 owner emails teams edit in Settings > Emails. The date
|
|
5
|
-
// token renders the tax year.
|
|
7
|
+
// token renders the tax year. 1099s live on the owner portal's 1099s tab of
|
|
8
|
+
// Statements (PRO-20629), not in Tax Statements (PRO-21278). Subject and preview text are plain text without
|
|
6
9
|
// tokens, so they name no year.
|
|
7
10
|
export const getDefaultTax1099EmailData = (type, mode, args) => {
|
|
8
11
|
const href = mode === 'tag' ? EMAIL_ACTION_LINK_COMPONENT : args.href;
|
|
@@ -25,7 +28,7 @@ export const getDefaultTax1099EmailData = (type, mode, args) => {
|
|
|
25
28
|
subject: `Get your 1099s from ${team} by email`,
|
|
26
29
|
shortDescription: 'Confirm in your owner portal that you want your 1099s by email only.',
|
|
27
30
|
header: 'Get your 1099s by email',
|
|
28
|
-
bodyOne: `<p>Hi ${userName},</p><p>${team} asks whether you want your 1099s by email only, without a paper copy by mail. You then get an email when your 1099 is ready, and it stays
|
|
31
|
+
bodyOne: `<p>Hi ${userName},</p><p>${team} asks whether you want your 1099s by email only, without a paper copy by mail. You then get an email when your 1099 is ready, and it stays on the 1099s tab of Statements in your owner portal.</p><p>Nothing changes until you confirm on Tax info.</p>`,
|
|
29
32
|
buttonText: 'Choose 1099 delivery',
|
|
30
33
|
bodyTwo: linkLine,
|
|
31
34
|
href: args.href,
|
|
@@ -33,24 +36,24 @@ export const getDefaultTax1099EmailData = (type, mode, args) => {
|
|
|
33
36
|
if (type === 'tax1099Ready')
|
|
34
37
|
return {
|
|
35
38
|
subject: `Your 1099 from ${team} is ready`,
|
|
36
|
-
shortDescription: 'Open it
|
|
39
|
+
shortDescription: 'Open it on the 1099s tab of Statements in your owner portal.',
|
|
37
40
|
header: 'Your 1099 is ready',
|
|
38
|
-
bodyOne: `<p>Hi ${userName},</p><p>Your ${taxYear} 1099 from ${team} is
|
|
39
|
-
buttonText: 'Open
|
|
41
|
+
bodyOne: `<p>Hi ${userName},</p><p>Your ${taxYear} 1099 from ${team} is on the 1099s tab of Statements in your owner portal. You can download and print it there.</p>`,
|
|
42
|
+
buttonText: 'Open 1099s',
|
|
40
43
|
bodyTwo: `<p>If you get your 1099 by mail too, the paper copy is on its way.</p>${linkLine}`,
|
|
41
44
|
href: args.href,
|
|
42
45
|
};
|
|
43
46
|
return {
|
|
44
47
|
subject: `Your corrected 1099 from ${team}`,
|
|
45
|
-
shortDescription: 'Open it
|
|
48
|
+
shortDescription: 'Open it on the 1099s tab of Statements in your owner portal.',
|
|
46
49
|
header: 'Your 1099 was corrected',
|
|
47
|
-
bodyOne: `<p>Hi ${userName},</p><p>${team} filed a corrected ${taxYear} 1099 for you. It replaces the earlier one and is
|
|
48
|
-
buttonText: 'Open
|
|
50
|
+
bodyOne: `<p>Hi ${userName},</p><p>${team} filed a corrected ${taxYear} 1099 for you. It replaces the earlier one and is on the 1099s tab of Statements in your owner portal.</p>`,
|
|
51
|
+
buttonText: 'Open 1099s',
|
|
49
52
|
bodyTwo: `<p>If you get your 1099 by mail too, the corrected paper copy is on its way.</p>${linkLine}`,
|
|
50
53
|
href: args.href,
|
|
51
54
|
};
|
|
52
55
|
};
|
|
53
56
|
export const Tax1099EmailTemplate = ({ type, taxYear, ...props }) => (_jsx(ActionEmailTemplate, { ...props, listing: undefined, month: taxYear, eyebrow: type === 'taxInfoRequest' || type === 'emailDeliveryRequest'
|
|
54
57
|
? 'Tax info'
|
|
55
|
-
: '
|
|
58
|
+
: '1099s' }));
|
|
56
59
|
//# sourceMappingURL=Tax1099EmailTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tax1099EmailTemplate.js","sourceRoot":"src/","sources":["templates/Tax1099EmailTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,2BAA2B,EAC3B,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,mBAAmB,GAEpB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Tax1099EmailTemplate.js","sourceRoot":"src/","sources":["templates/Tax1099EmailTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,2BAA2B,EAC3B,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,mBAAmB,GAEpB,MAAM,eAAe,CAAC;AAEvB,wFAAwF;AACxF,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAQ3D,6EAA6E;AAC7E,4EAA4E;AAC5E,6GAA6G;AAC7G,gCAAgC;AAChC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,IAAsB,EACtB,IAAoB,EACpB,IAKC,EACgB,EAAE;IACnB,MAAM,IAAI,GAAG,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAA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AE;YAC5F,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;IAEJ,OAAO;QACL,OAAO,EAAE,4BAA4B,IAAI,EAAE;QAC3C,gBAAgB,EACd,8DAA8D;QAChE,MAAM,EAAE,yBAAyB;QACjC,OAAO,EAAE,SAAS,QAAQ,WAAW,IAAI,sBAAsB,OAAO,4GAA4G;QAClL,UAAU,EAAE,YAAY;QACxB,OAAO,EAAE,mFAAmF,QAAQ,EAAE;QACtG,IAAI,EAAE,IAAI,CAAC,IAAI;KAChB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACnC,IAAI,EACJ,OAAO,EACP,GAAG,KAAK,EAIT,EAAE,EAAE,CAAC,CACJ,KAAC,mBAAmB,OACd,KAAK,EACT,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,OAAO,EACd,OAAO,EACL,IAAI,KAAK,gBAAgB,IAAI,IAAI,KAAK,sBAAsB;QAC1D,CAAC,CAAC,UAAU;QACZ,CAAC,CAAC,OAAO,GAEb,CACH,CAAC","sourcesContent":["import {\n EMAIL_ACTION_LINK_COMPONENT,\n EMAIL_DATE_COMPONENT,\n EMAIL_USER_NAME_COMPONENT,\n} from '../extensions';\nimport {\n type ActionEmailData,\n ActionEmailTemplate,\n type ActionEmailTemplateProps,\n} from '../components';\n\n/** The owner portal page of the 1099s tab, which 1099 Ready and Corrected 1099 open. */\nexport const OWNER_PORTAL_1099S_PATH = '/statements/1099s';\n\ntype Tax1099EmailType =\n | 'taxInfoRequest'\n | 'emailDeliveryRequest'\n | 'tax1099Ready'\n | 'tax1099Corrected';\n\n// PRO-20621: the 1099 owner emails teams edit in Settings > Emails. The date\n// token renders the tax year. 1099s live on the owner portal's 1099s tab of\n// Statements (PRO-20629), not in Tax Statements (PRO-21278). Subject and preview text are plain text without\n// tokens, so they name no year.\nexport const getDefaultTax1099EmailData = (\n type: Tax1099EmailType,\n mode: 'tag' | 'text',\n args: {\n teamName: string;\n href: string;\n userName: string;\n taxYear: string;\n }\n): ActionEmailData => {\n const href = mode === 'tag' ? EMAIL_ACTION_LINK_COMPONENT : args.href;\n const userName = mode === 'tag' ? EMAIL_USER_NAME_COMPONENT : args.userName;\n const taxYear = mode === 'tag' ? EMAIL_DATE_COMPONENT : args.taxYear;\n const team = args.teamName;\n const linkLine = `<p style=\"color:#737373;font-size:13px\">If the button doesn't work, copy this link into your browser: ${href}</p>`;\n\n if (type === 'taxInfoRequest')\n return {\n subject: `${team} needs your tax info`,\n shortDescription: `Add your tax ID in your owner portal so ${team} can send your 1099.`,\n header: 'Complete your tax info',\n bodyOne: `<p>Hi ${userName},</p><p>${team} needs your tax ID to send your ${taxYear} 1099. Add it on Tax info in your owner portal.</p>`,\n buttonText: 'Complete tax info',\n bodyTwo: `<p>Never send your tax ID by email. If you did not expect this request, contact ${team} before you enter it.</p>${linkLine}`,\n href: args.href,\n };\n\n if (type === 'emailDeliveryRequest')\n return {\n subject: `Get your 1099s from ${team} by email`,\n shortDescription:\n 'Confirm in your owner portal that you want your 1099s by email only.',\n header: 'Get your 1099s by email',\n bodyOne: `<p>Hi ${userName},</p><p>${team} asks whether you want your 1099s by email only, without a paper copy by mail. You then get an email when your 1099 is ready, and it stays on the 1099s tab of Statements in your owner portal.</p><p>Nothing changes until you confirm on Tax info.</p>`,\n buttonText: 'Choose 1099 delivery',\n bodyTwo: linkLine,\n href: args.href,\n };\n\n if (type === 'tax1099Ready')\n return {\n subject: `Your 1099 from ${team} is ready`,\n shortDescription:\n 'Open it on the 1099s tab of Statements in your owner portal.',\n header: 'Your 1099 is ready',\n bodyOne: `<p>Hi ${userName},</p><p>Your ${taxYear} 1099 from ${team} is on the 1099s tab of Statements in your owner portal. You can download and print it there.</p>`,\n buttonText: 'Open 1099s',\n bodyTwo: `<p>If you get your 1099 by mail too, the paper copy is on its way.</p>${linkLine}`,\n href: args.href,\n };\n\n return {\n subject: `Your corrected 1099 from ${team}`,\n shortDescription:\n 'Open it on the 1099s tab of Statements in your owner portal.',\n header: 'Your 1099 was corrected',\n bodyOne: `<p>Hi ${userName},</p><p>${team} filed a corrected ${taxYear} 1099 for you. It replaces the earlier one and is on the 1099s tab of Statements in your owner portal.</p>`,\n buttonText: 'Open 1099s',\n bodyTwo: `<p>If you get your 1099 by mail too, the corrected paper copy is on its way.</p>${linkLine}`,\n href: args.href,\n };\n};\n\nexport const Tax1099EmailTemplate = ({\n type,\n taxYear,\n ...props\n}: Omit<ActionEmailTemplateProps, 'listing' | 'month'> & {\n type: Tax1099EmailType;\n taxYear: string;\n}) => (\n <ActionEmailTemplate\n {...props}\n listing={undefined}\n month={taxYear}\n eyebrow={\n type === 'taxInfoRequest' || type === 'emailDeliveryRequest'\n ? 'Tax info'\n : '1099s'\n }\n />\n);\n"]}
|
package/package.json
CHANGED
|
@@ -44,7 +44,8 @@ export const Tax1099ConsentWithdrawnEmailTemplate = ({
|
|
|
44
44
|
<Text>
|
|
45
45
|
From that date, {tenant.name} mails your 1099s to{' '}
|
|
46
46
|
{address || 'the address on Tax info in your owner portal'}, with a copy
|
|
47
|
-
by email. Each 1099 also stays
|
|
47
|
+
by email. Each 1099 also stays on the 1099s tab of Statements in your
|
|
48
|
+
owner portal.
|
|
48
49
|
</Text>
|
|
49
50
|
<Text>
|
|
50
51
|
To get your 1099s by email only again, give your consent on Tax info in
|
|
@@ -9,6 +9,9 @@ import {
|
|
|
9
9
|
type ActionEmailTemplateProps,
|
|
10
10
|
} from '../components';
|
|
11
11
|
|
|
12
|
+
/** The owner portal page of the 1099s tab, which 1099 Ready and Corrected 1099 open. */
|
|
13
|
+
export const OWNER_PORTAL_1099S_PATH = '/statements/1099s';
|
|
14
|
+
|
|
12
15
|
type Tax1099EmailType =
|
|
13
16
|
| 'taxInfoRequest'
|
|
14
17
|
| 'emailDeliveryRequest'
|
|
@@ -16,7 +19,8 @@ type Tax1099EmailType =
|
|
|
16
19
|
| 'tax1099Corrected';
|
|
17
20
|
|
|
18
21
|
// PRO-20621: the 1099 owner emails teams edit in Settings > Emails. The date
|
|
19
|
-
// token renders the tax year.
|
|
22
|
+
// token renders the tax year. 1099s live on the owner portal's 1099s tab of
|
|
23
|
+
// Statements (PRO-20629), not in Tax Statements (PRO-21278). Subject and preview text are plain text without
|
|
20
24
|
// tokens, so they name no year.
|
|
21
25
|
export const getDefaultTax1099EmailData = (
|
|
22
26
|
type: Tax1099EmailType,
|
|
@@ -51,7 +55,7 @@ export const getDefaultTax1099EmailData = (
|
|
|
51
55
|
shortDescription:
|
|
52
56
|
'Confirm in your owner portal that you want your 1099s by email only.',
|
|
53
57
|
header: 'Get your 1099s by email',
|
|
54
|
-
bodyOne: `<p>Hi ${userName},</p><p>${team} asks whether you want your 1099s by email only, without a paper copy by mail. You then get an email when your 1099 is ready, and it stays
|
|
58
|
+
bodyOne: `<p>Hi ${userName},</p><p>${team} asks whether you want your 1099s by email only, without a paper copy by mail. You then get an email when your 1099 is ready, and it stays on the 1099s tab of Statements in your owner portal.</p><p>Nothing changes until you confirm on Tax info.</p>`,
|
|
55
59
|
buttonText: 'Choose 1099 delivery',
|
|
56
60
|
bodyTwo: linkLine,
|
|
57
61
|
href: args.href,
|
|
@@ -60,20 +64,22 @@ export const getDefaultTax1099EmailData = (
|
|
|
60
64
|
if (type === 'tax1099Ready')
|
|
61
65
|
return {
|
|
62
66
|
subject: `Your 1099 from ${team} is ready`,
|
|
63
|
-
shortDescription:
|
|
67
|
+
shortDescription:
|
|
68
|
+
'Open it on the 1099s tab of Statements in your owner portal.',
|
|
64
69
|
header: 'Your 1099 is ready',
|
|
65
|
-
bodyOne: `<p>Hi ${userName},</p><p>Your ${taxYear} 1099 from ${team} is
|
|
66
|
-
buttonText: 'Open
|
|
70
|
+
bodyOne: `<p>Hi ${userName},</p><p>Your ${taxYear} 1099 from ${team} is on the 1099s tab of Statements in your owner portal. You can download and print it there.</p>`,
|
|
71
|
+
buttonText: 'Open 1099s',
|
|
67
72
|
bodyTwo: `<p>If you get your 1099 by mail too, the paper copy is on its way.</p>${linkLine}`,
|
|
68
73
|
href: args.href,
|
|
69
74
|
};
|
|
70
75
|
|
|
71
76
|
return {
|
|
72
77
|
subject: `Your corrected 1099 from ${team}`,
|
|
73
|
-
shortDescription:
|
|
78
|
+
shortDescription:
|
|
79
|
+
'Open it on the 1099s tab of Statements in your owner portal.',
|
|
74
80
|
header: 'Your 1099 was corrected',
|
|
75
|
-
bodyOne: `<p>Hi ${userName},</p><p>${team} filed a corrected ${taxYear} 1099 for you. It replaces the earlier one and is
|
|
76
|
-
buttonText: 'Open
|
|
81
|
+
bodyOne: `<p>Hi ${userName},</p><p>${team} filed a corrected ${taxYear} 1099 for you. It replaces the earlier one and is on the 1099s tab of Statements in your owner portal.</p>`,
|
|
82
|
+
buttonText: 'Open 1099s',
|
|
77
83
|
bodyTwo: `<p>If you get your 1099 by mail too, the corrected paper copy is on its way.</p>${linkLine}`,
|
|
78
84
|
href: args.href,
|
|
79
85
|
};
|
|
@@ -94,7 +100,7 @@ export const Tax1099EmailTemplate = ({
|
|
|
94
100
|
eyebrow={
|
|
95
101
|
type === 'taxInfoRequest' || type === 'emailDeliveryRequest'
|
|
96
102
|
? 'Tax info'
|
|
97
|
-
: '
|
|
103
|
+
: '1099s'
|
|
98
104
|
}
|
|
99
105
|
/>
|
|
100
106
|
);
|