@vrplatform/email 1.0.2-stage.43647680287 → 1.0.2-stage.43992776672
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.d.ts +9 -0
- package/build/main/templates/Tax1099ConsentWithdrawnEmailTemplate.js +22 -0
- package/build/main/templates/Tax1099ConsentWithdrawnEmailTemplate.js.map +1 -0
- package/build/main/templates/index.d.ts +1 -0
- package/build/main/templates/index.js +1 -0
- package/build/main/templates/index.js.map +1 -1
- package/build/module/templates/Tax1099ConsentWithdrawnEmailTemplate.d.ts +9 -0
- package/build/module/templates/Tax1099ConsentWithdrawnEmailTemplate.js +18 -0
- package/build/module/templates/Tax1099ConsentWithdrawnEmailTemplate.js.map +1 -0
- package/build/module/templates/index.d.ts +1 -0
- package/build/module/templates/index.js +1 -0
- package/build/module/templates/index.js.map +1 -1
- package/package.json +1 -1
- package/src/templates/Tax1099ConsentWithdrawnEmailTemplate.tsx +56 -0
- package/src/templates/index.ts +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EmailBaseProps } from '../types';
|
|
2
|
+
export declare const Tax1099ConsentWithdrawnEmailTemplate: ({ mode, user, tenant, withdrawnAt, address, }: {
|
|
3
|
+
mode: EmailBaseProps['mode'];
|
|
4
|
+
user: EmailBaseProps['user'];
|
|
5
|
+
tenant: EmailBaseProps['tenant'];
|
|
6
|
+
/** When the owner withdrew; the withdrawal takes effect that day. */
|
|
7
|
+
withdrawnAt: string;
|
|
8
|
+
address: string | null;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Tax1099ConsentWithdrawnEmailTemplate = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const heading_1 = require("@react-email/heading");
|
|
6
|
+
const text_1 = require("@react-email/text");
|
|
7
|
+
const components_1 = require("../components");
|
|
8
|
+
// PRO-20639: the written confirmation the IRS requires when an owner
|
|
9
|
+
// withdraws consent to get 1099s by email. Fixed text; teams can't edit it.
|
|
10
|
+
const Tax1099ConsentWithdrawnEmailTemplate = ({ mode, user, tenant, withdrawnAt, address, }) => {
|
|
11
|
+
// The team stores no time zone. Pacific time keeps an evening withdrawal
|
|
12
|
+
// anywhere in the mainland US on the day the owner made it.
|
|
13
|
+
const effectiveOn = new Intl.DateTimeFormat('en-US', {
|
|
14
|
+
timeZone: 'America/Los_Angeles',
|
|
15
|
+
month: 'long',
|
|
16
|
+
day: 'numeric',
|
|
17
|
+
year: 'numeric',
|
|
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 in Tax 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
|
+
};
|
|
21
|
+
exports.Tax1099ConsentWithdrawnEmailTemplate = Tax1099ConsentWithdrawnEmailTemplate;
|
|
22
|
+
//# sourceMappingURL=Tax1099ConsentWithdrawnEmailTemplate.js.map
|
|
@@ -0,0 +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,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,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,4FAErD,EACP,wBAAC,WAAI,sJAEyD,GAAG,EAC9D,MAAM,CAAC,IAAI,oBACP,IACQ,CAClB,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,oCAAoC,GAApC,oCAAoC,CAgD/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 in Tax Statements in your 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"]}
|
|
@@ -8,6 +8,7 @@ export * from './OwnerStatementEmailTemplate';
|
|
|
8
8
|
export * from './BankAccountChangedEmailTemplate';
|
|
9
9
|
export * from './BankAccountChangedTeamAdminEmailTemplate';
|
|
10
10
|
export * from './BankDetailsRequestEmailTemplate';
|
|
11
|
+
export * from './Tax1099ConsentWithdrawnEmailTemplate';
|
|
11
12
|
export * from './Tax1099EmailTemplate';
|
|
12
13
|
export * from './InviteOwnerEmailTemplate';
|
|
13
14
|
export * from './InvitePmEmailTemplate';
|
|
@@ -28,6 +28,7 @@ __exportStar(require("./BankAccountChangedEmailTemplate"), exports);
|
|
|
28
28
|
__exportStar(require("./BankAccountChangedTeamAdminEmailTemplate"), exports);
|
|
29
29
|
__exportStar(require("./BankDetailsRequestEmailTemplate"), exports);
|
|
30
30
|
// 1099s
|
|
31
|
+
__exportStar(require("./Tax1099ConsentWithdrawnEmailTemplate"), exports);
|
|
31
32
|
__exportStar(require("./Tax1099EmailTemplate"), exports);
|
|
32
33
|
// Invitations
|
|
33
34
|
__exportStar(require("./InviteOwnerEmailTemplate"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,mEAAiD;AACjD,qEAAmD;AACnD,yEAAuD;AACvD,iEAA+C;AAC/C,kEAAgD;AAChD,gEAA8C;AAE9C,mBAAmB;AACnB,gEAA8C;AAE9C,gBAAgB;AAChB,oEAAkD;AAClD,6EAA2D;AAC3D,oEAAkD;AAElD,QAAQ;AACR,yDAAuC;AAEvC,cAAc;AACd,6DAA2C;AAC3C,0DAAwC","sourcesContent":["// Teams\nexport * from './SecondFactorResetEmailTemplate';\nexport * from './TeamApiTokenCreatedEmailTemplate';\nexport * from './TeamInviteOutsideDomainEmailTemplate';\nexport * from './TeamRoleGrantedEmailTemplate';\nexport * from './TenantSuspensionEmailTemplate';\nexport * from './TenantDeletionEmailTemplate';\n\n// Owner Statements\nexport * from './OwnerStatementEmailTemplate';\n\n// Payment setup\nexport * from './BankAccountChangedEmailTemplate';\nexport * from './BankAccountChangedTeamAdminEmailTemplate';\nexport * from './BankDetailsRequestEmailTemplate';\n\n// 1099s\nexport * from './Tax1099EmailTemplate';\n\n// Invitations\nexport * from './InviteOwnerEmailTemplate';\nexport * from './InvitePmEmailTemplate';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,mEAAiD;AACjD,qEAAmD;AACnD,yEAAuD;AACvD,iEAA+C;AAC/C,kEAAgD;AAChD,gEAA8C;AAE9C,mBAAmB;AACnB,gEAA8C;AAE9C,gBAAgB;AAChB,oEAAkD;AAClD,6EAA2D;AAC3D,oEAAkD;AAElD,QAAQ;AACR,yEAAuD;AACvD,yDAAuC;AAEvC,cAAc;AACd,6DAA2C;AAC3C,0DAAwC","sourcesContent":["// Teams\nexport * from './SecondFactorResetEmailTemplate';\nexport * from './TeamApiTokenCreatedEmailTemplate';\nexport * from './TeamInviteOutsideDomainEmailTemplate';\nexport * from './TeamRoleGrantedEmailTemplate';\nexport * from './TenantSuspensionEmailTemplate';\nexport * from './TenantDeletionEmailTemplate';\n\n// Owner Statements\nexport * from './OwnerStatementEmailTemplate';\n\n// Payment setup\nexport * from './BankAccountChangedEmailTemplate';\nexport * from './BankAccountChangedTeamAdminEmailTemplate';\nexport * from './BankDetailsRequestEmailTemplate';\n\n// 1099s\nexport * from './Tax1099ConsentWithdrawnEmailTemplate';\nexport * from './Tax1099EmailTemplate';\n\n// Invitations\nexport * from './InviteOwnerEmailTemplate';\nexport * from './InvitePmEmailTemplate';\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EmailBaseProps } from '../types';
|
|
2
|
+
export declare const Tax1099ConsentWithdrawnEmailTemplate: ({ mode, user, tenant, withdrawnAt, address, }: {
|
|
3
|
+
mode: EmailBaseProps['mode'];
|
|
4
|
+
user: EmailBaseProps['user'];
|
|
5
|
+
tenant: EmailBaseProps['tenant'];
|
|
6
|
+
/** When the owner withdrew; the withdrawal takes effect that day. */
|
|
7
|
+
withdrawnAt: string;
|
|
8
|
+
address: string | null;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Heading } from '@react-email/heading';
|
|
3
|
+
import { Text } from '@react-email/text';
|
|
4
|
+
import { EmailContainer } from '../components';
|
|
5
|
+
// PRO-20639: the written confirmation the IRS requires when an owner
|
|
6
|
+
// withdraws consent to get 1099s by email. Fixed text; teams can't edit it.
|
|
7
|
+
export const Tax1099ConsentWithdrawnEmailTemplate = ({ mode, user, tenant, withdrawnAt, address, }) => {
|
|
8
|
+
// The team stores no time zone. Pacific time keeps an evening withdrawal
|
|
9
|
+
// anywhere in the mainland US on the day the owner made it.
|
|
10
|
+
const effectiveOn = new Intl.DateTimeFormat('en-US', {
|
|
11
|
+
timeZone: 'America/Los_Angeles',
|
|
12
|
+
month: 'long',
|
|
13
|
+
day: 'numeric',
|
|
14
|
+
year: 'numeric',
|
|
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 in Tax 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
|
+
};
|
|
18
|
+
//# sourceMappingURL=Tax1099ConsentWithdrawnEmailTemplate.js.map
|
|
@@ -0,0 +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,MAAC,IAAI,mCACc,MAAM,CAAC,IAAI,0BAAsB,GAAG,EACpD,OAAO,IAAI,8CAA8C,4FAErD,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 in Tax Statements in your 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"]}
|
|
@@ -8,6 +8,7 @@ export * from './OwnerStatementEmailTemplate';
|
|
|
8
8
|
export * from './BankAccountChangedEmailTemplate';
|
|
9
9
|
export * from './BankAccountChangedTeamAdminEmailTemplate';
|
|
10
10
|
export * from './BankDetailsRequestEmailTemplate';
|
|
11
|
+
export * from './Tax1099ConsentWithdrawnEmailTemplate';
|
|
11
12
|
export * from './Tax1099EmailTemplate';
|
|
12
13
|
export * from './InviteOwnerEmailTemplate';
|
|
13
14
|
export * from './InvitePmEmailTemplate';
|
|
@@ -12,6 +12,7 @@ export * from './BankAccountChangedEmailTemplate';
|
|
|
12
12
|
export * from './BankAccountChangedTeamAdminEmailTemplate';
|
|
13
13
|
export * from './BankDetailsRequestEmailTemplate';
|
|
14
14
|
// 1099s
|
|
15
|
+
export * from './Tax1099ConsentWithdrawnEmailTemplate';
|
|
15
16
|
export * from './Tax1099EmailTemplate';
|
|
16
17
|
// Invitations
|
|
17
18
|
export * from './InviteOwnerEmailTemplate';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAE9C,mBAAmB;AACnB,cAAc,+BAA+B,CAAC;AAE9C,gBAAgB;AAChB,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAElD,QAAQ;AACR,cAAc,wBAAwB,CAAC;AAEvC,cAAc;AACd,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC","sourcesContent":["// Teams\nexport * from './SecondFactorResetEmailTemplate';\nexport * from './TeamApiTokenCreatedEmailTemplate';\nexport * from './TeamInviteOutsideDomainEmailTemplate';\nexport * from './TeamRoleGrantedEmailTemplate';\nexport * from './TenantSuspensionEmailTemplate';\nexport * from './TenantDeletionEmailTemplate';\n\n// Owner Statements\nexport * from './OwnerStatementEmailTemplate';\n\n// Payment setup\nexport * from './BankAccountChangedEmailTemplate';\nexport * from './BankAccountChangedTeamAdminEmailTemplate';\nexport * from './BankDetailsRequestEmailTemplate';\n\n// 1099s\nexport * from './Tax1099EmailTemplate';\n\n// Invitations\nexport * from './InviteOwnerEmailTemplate';\nexport * from './InvitePmEmailTemplate';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["templates/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAE9C,mBAAmB;AACnB,cAAc,+BAA+B,CAAC;AAE9C,gBAAgB;AAChB,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAElD,QAAQ;AACR,cAAc,wCAAwC,CAAC;AACvD,cAAc,wBAAwB,CAAC;AAEvC,cAAc;AACd,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC","sourcesContent":["// Teams\nexport * from './SecondFactorResetEmailTemplate';\nexport * from './TeamApiTokenCreatedEmailTemplate';\nexport * from './TeamInviteOutsideDomainEmailTemplate';\nexport * from './TeamRoleGrantedEmailTemplate';\nexport * from './TenantSuspensionEmailTemplate';\nexport * from './TenantDeletionEmailTemplate';\n\n// Owner Statements\nexport * from './OwnerStatementEmailTemplate';\n\n// Payment setup\nexport * from './BankAccountChangedEmailTemplate';\nexport * from './BankAccountChangedTeamAdminEmailTemplate';\nexport * from './BankDetailsRequestEmailTemplate';\n\n// 1099s\nexport * from './Tax1099ConsentWithdrawnEmailTemplate';\nexport * from './Tax1099EmailTemplate';\n\n// Invitations\nexport * from './InviteOwnerEmailTemplate';\nexport * from './InvitePmEmailTemplate';\n"]}
|
package/package.json
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Heading } from '@react-email/heading';
|
|
2
|
+
import { Text } from '@react-email/text';
|
|
3
|
+
import { EmailContainer } from '../components';
|
|
4
|
+
import type { EmailBaseProps } from '../types';
|
|
5
|
+
|
|
6
|
+
// PRO-20639: the written confirmation the IRS requires when an owner
|
|
7
|
+
// withdraws consent to get 1099s by email. Fixed text; teams can't edit it.
|
|
8
|
+
export const Tax1099ConsentWithdrawnEmailTemplate = ({
|
|
9
|
+
mode,
|
|
10
|
+
user,
|
|
11
|
+
tenant,
|
|
12
|
+
withdrawnAt,
|
|
13
|
+
address,
|
|
14
|
+
}: {
|
|
15
|
+
mode: EmailBaseProps['mode'];
|
|
16
|
+
user: EmailBaseProps['user'];
|
|
17
|
+
tenant: EmailBaseProps['tenant'];
|
|
18
|
+
/** When the owner withdrew; the withdrawal takes effect that day. */
|
|
19
|
+
withdrawnAt: string;
|
|
20
|
+
address: string | null;
|
|
21
|
+
}) => {
|
|
22
|
+
// The team stores no time zone. Pacific time keeps an evening withdrawal
|
|
23
|
+
// anywhere in the mainland US on the day the owner made it.
|
|
24
|
+
const effectiveOn = new Intl.DateTimeFormat('en-US', {
|
|
25
|
+
timeZone: 'America/Los_Angeles',
|
|
26
|
+
month: 'long',
|
|
27
|
+
day: 'numeric',
|
|
28
|
+
year: 'numeric',
|
|
29
|
+
}).format(new Date(withdrawnAt));
|
|
30
|
+
return (
|
|
31
|
+
<EmailContainer
|
|
32
|
+
title="You withdrew your consent to get 1099s by email"
|
|
33
|
+
shortDescription={`From ${effectiveOn}, ${tenant.name} mails your 1099s.`}
|
|
34
|
+
tenant={tenant}
|
|
35
|
+
mode={mode}
|
|
36
|
+
>
|
|
37
|
+
<Heading style={{ fontSize: 28, fontWeight: 600, marginBottom: '50px' }}>
|
|
38
|
+
{user.firstName ? `Hi ${user.firstName},` : 'Hi there,'}
|
|
39
|
+
</Heading>
|
|
40
|
+
<Text>
|
|
41
|
+
You withdrew your consent to get your 1099s from <b>{tenant.name}</b> by
|
|
42
|
+
email only. The withdrawal takes effect on <b>{effectiveOn}</b>.
|
|
43
|
+
</Text>
|
|
44
|
+
<Text>
|
|
45
|
+
From that date, {tenant.name} mails your 1099s to{' '}
|
|
46
|
+
{address || 'the address on Tax info in your owner portal'}, with a copy
|
|
47
|
+
by email. Each 1099 also stays in Tax Statements in your owner portal.
|
|
48
|
+
</Text>
|
|
49
|
+
<Text>
|
|
50
|
+
To get your 1099s by email only again, give your consent on Tax info in
|
|
51
|
+
your owner portal. If you did not make this change, contact{' '}
|
|
52
|
+
{tenant.name} right away.
|
|
53
|
+
</Text>
|
|
54
|
+
</EmailContainer>
|
|
55
|
+
);
|
|
56
|
+
};
|
package/src/templates/index.ts
CHANGED