@paro.io/expert-shared-components 1.14.59 → 1.14.60
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/lib/README.md +2 -0
- package/lib/components/DocumentCenter/MultiFileUploadSection.js +121 -220
- package/lib/components/TaxAxis/TaxAxisApi.d.ts +1 -0
- package/lib/components/TaxAxis/TaxAxisShell.js +52 -3
- package/lib/components/shared/UploadClient.d.ts +1 -2
- package/lib/components/shared/UploadClient.js +2 -6
- package/lib/index.d.ts +13 -2
- package/lib/index.js +27 -3
- package/lib/package.json +68 -0
- package/lib/tax-axis/components/clientReport/ExecutiveSummary.d.ts +1 -4
- package/lib/tax-axis/components/clientReport/ExecutiveSummary.js +6 -10
- package/lib/tax-axis/components/clientReport/Methodology.js +2 -2
- package/lib/tax-axis/components/clientReport/RecommendedStrategies.d.ts +1 -6
- package/lib/tax-axis/components/clientReport/RecommendedStrategies.js +24 -26
- package/lib/tax-axis/components/clientReport/StrategyCard.d.ts +1 -1
- package/lib/tax-axis/components/clientReport/StrategyCard.js +23 -39
- package/lib/tax-axis/components/clientReport/TaxAxisClientReport.d.ts +2 -8
- package/lib/tax-axis/components/clientReport/TaxAxisClientReport.js +7 -9
- package/lib/tax-axis/components/dashboard/DashboardActions.js +5 -6
- package/lib/tax-axis/components/dashboard/DashboardSummary.d.ts +1 -6
- package/lib/tax-axis/components/dashboard/DashboardSummary.js +10 -19
- package/lib/tax-axis/components/dashboard/StrategyDetailPanel.d.ts +1 -1
- package/lib/tax-axis/components/dashboard/StrategyDetailPanel.js +95 -122
- package/lib/tax-axis/components/dashboard/TaxAxisDashboard.d.ts +2 -59
- package/lib/tax-axis/components/dashboard/TaxAxisDashboard.js +49 -433
- package/lib/tax-axis/components/documents/DocumentCard.d.ts +3 -8
- package/lib/tax-axis/components/documents/DocumentCard.js +14 -83
- package/lib/tax-axis/components/documents/DocumentTier.d.ts +2 -5
- package/lib/tax-axis/components/documents/DocumentTier.js +2 -2
- package/lib/tax-axis/components/documents/TaxAxisDocuments.d.ts +1 -36
- package/lib/tax-axis/components/documents/TaxAxisDocuments.js +86 -363
- package/lib/tax-axis/components/extractionReview/TaxAxisExtractionReview.js +17 -17
- package/lib/tax-axis/components/intake/ClientParametersSection.js +30 -14
- package/lib/tax-axis/components/intake/CpaIntakeQuestionsSection.js +3 -3
- package/lib/tax-axis/components/intake/IntakeCtaCards.d.ts +2 -1
- package/lib/tax-axis/components/intake/IntakeCtaCards.js +13 -6
- package/lib/tax-axis/components/intake/RefineAnalysisSection.js +7 -7
- package/lib/tax-axis/components/intake/TaxAxisIntake.js +45 -6
- package/lib/tax-axis/components/intake/intakeSchema.d.ts +3 -0
- package/lib/tax-axis/components/intake/intakeSchema.js +4 -2
- package/lib/tax-axis/components/preparerWorkpaper/TaxAxisPreparerWorkpaper.d.ts +2 -26
- package/lib/tax-axis/components/preparerWorkpaper/TaxAxisPreparerWorkpaper.js +4 -15
- package/lib/tax-axis/components/processing/TaxAxisProcessing.d.ts +1 -3
- package/lib/tax-axis/components/processing/TaxAxisProcessing.js +31 -102
- package/lib/tax-axis/components/prospectReport/ProspectPrintView.js +2 -0
- package/lib/tax-axis/components/prospectReport/ProspectStrategyCard.d.ts +8 -1
- package/lib/tax-axis/components/prospectReport/ProspectStrategyCard.js +5 -5
- package/lib/tax-axis/components/prospectReport/TaxAxisProspectReport.d.ts +27 -1
- package/lib/tax-axis/components/prospectReport/TaxAxisProspectReport.js +43 -25
- package/lib/tax-axis/index.d.ts +0 -4
- package/lib/tax-axis/index.js +1 -6
- package/lib/tax-axis/lib/adapters/useEngineOutput.d.ts +13 -138
- package/lib/tax-axis/lib/adapters/useEngineOutput.js +7 -156
- package/lib/tax-axis/lib/data/documents.d.ts +2 -3
- package/lib/tax-axis/lib/data/documents.js +25 -225
- package/lib/tax-axis/lib/data/strategies.js +9 -9
- package/lib/tax-axis/lib/documentFieldCatalog.d.ts +12 -7
- package/lib/tax-axis/lib/documentFieldCatalog.js +8 -805
- package/lib/tax-axis/lib/types/index.d.ts +1 -13
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TaxAxisPresentationMode = exports.TaxAxisProspectReport = exports.TaxAxisExtractionReview = exports.TaxAxisPreparerWorkpaper = exports.TaxAxisClientReport = exports.TaxAxisDashboard = exports.TaxAxisProcessing = exports.TaxAxisDocuments = exports.TaxAxisIntake = exports.TaxAxisCard = exports.TaxAxisButton = exports.TaxAxisBadge = exports.SectionHeader = exports.ProjectIntelligence = exports.Escalations = exports.fileDownloader = exports.DiscussionSection = exports.fileUploader = exports.InvoiceCard = exports.ActiveProjectCard = exports.sharedUtils = exports.ServiceLinesTemplate = exports.HeaderNavBar = exports.DocumentCenter = exports.ProfileCompletedPercentage = exports.ExpertProfileHeader = exports.OrganizationChart = exports.FirmEmployeeSection = exports.ClientReferenceSection = exports.Reviews = exports.ReviewsTab = void 0;
|
|
4
4
|
var ReviewsTab_1 = require("./components/ReviewsTab");
|
|
5
5
|
Object.defineProperty(exports, "ReviewsTab", { enumerable: true, get: function () { return ReviewsTab_1.ReviewsTab; } });
|
|
6
6
|
var Reviews_1 = require("./components/Reviews");
|
|
@@ -37,5 +37,29 @@ var Escalations_1 = require("./components/Escalations");
|
|
|
37
37
|
Object.defineProperty(exports, "Escalations", { enumerable: true, get: function () { return Escalations_1.Escalations; } });
|
|
38
38
|
var ProjectIntelligence_1 = require("./components/ProjectIntelligence");
|
|
39
39
|
Object.defineProperty(exports, "ProjectIntelligence", { enumerable: true, get: function () { return ProjectIntelligence_1.ProjectIntelligence; } });
|
|
40
|
-
var
|
|
41
|
-
Object.defineProperty(exports, "
|
|
40
|
+
var tax_axis_1 = require("./tax-axis");
|
|
41
|
+
Object.defineProperty(exports, "SectionHeader", { enumerable: true, get: function () { return tax_axis_1.SectionHeader; } });
|
|
42
|
+
var tax_axis_2 = require("./tax-axis");
|
|
43
|
+
Object.defineProperty(exports, "TaxAxisBadge", { enumerable: true, get: function () { return tax_axis_2.TaxAxisBadge; } });
|
|
44
|
+
var tax_axis_3 = require("./tax-axis");
|
|
45
|
+
Object.defineProperty(exports, "TaxAxisButton", { enumerable: true, get: function () { return tax_axis_3.TaxAxisButton; } });
|
|
46
|
+
var tax_axis_4 = require("./tax-axis");
|
|
47
|
+
Object.defineProperty(exports, "TaxAxisCard", { enumerable: true, get: function () { return tax_axis_4.TaxAxisCard; } });
|
|
48
|
+
var tax_axis_5 = require("./tax-axis");
|
|
49
|
+
Object.defineProperty(exports, "TaxAxisIntake", { enumerable: true, get: function () { return tax_axis_5.TaxAxisIntake; } });
|
|
50
|
+
var tax_axis_6 = require("./tax-axis");
|
|
51
|
+
Object.defineProperty(exports, "TaxAxisDocuments", { enumerable: true, get: function () { return tax_axis_6.TaxAxisDocuments; } });
|
|
52
|
+
var tax_axis_7 = require("./tax-axis");
|
|
53
|
+
Object.defineProperty(exports, "TaxAxisProcessing", { enumerable: true, get: function () { return tax_axis_7.TaxAxisProcessing; } });
|
|
54
|
+
var tax_axis_8 = require("./tax-axis");
|
|
55
|
+
Object.defineProperty(exports, "TaxAxisDashboard", { enumerable: true, get: function () { return tax_axis_8.TaxAxisDashboard; } });
|
|
56
|
+
var tax_axis_9 = require("./tax-axis");
|
|
57
|
+
Object.defineProperty(exports, "TaxAxisClientReport", { enumerable: true, get: function () { return tax_axis_9.TaxAxisClientReport; } });
|
|
58
|
+
var tax_axis_10 = require("./tax-axis");
|
|
59
|
+
Object.defineProperty(exports, "TaxAxisPreparerWorkpaper", { enumerable: true, get: function () { return tax_axis_10.TaxAxisPreparerWorkpaper; } });
|
|
60
|
+
var tax_axis_11 = require("./tax-axis");
|
|
61
|
+
Object.defineProperty(exports, "TaxAxisExtractionReview", { enumerable: true, get: function () { return tax_axis_11.TaxAxisExtractionReview; } });
|
|
62
|
+
var tax_axis_12 = require("./tax-axis");
|
|
63
|
+
Object.defineProperty(exports, "TaxAxisProspectReport", { enumerable: true, get: function () { return tax_axis_12.TaxAxisProspectReport; } });
|
|
64
|
+
var tax_axis_13 = require("./tax-axis");
|
|
65
|
+
Object.defineProperty(exports, "TaxAxisPresentationMode", { enumerable: true, get: function () { return tax_axis_13.TaxAxisPresentationMode; } });
|
package/lib/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@paro.io/expert-shared-components",
|
|
3
|
+
"version": "1.14.48",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"build:watch": "tsc --watch",
|
|
9
|
+
"prepare": "yarn build",
|
|
10
|
+
"test": "yarn test:build",
|
|
11
|
+
"test:build": "yarn build",
|
|
12
|
+
"clean": "yarn -rf lib",
|
|
13
|
+
"predeploy": "tsc && cp package.json README.md ./lib",
|
|
14
|
+
"link-local": "yarn link && cd node_modules/react && yarn link && cd ../react-dom && yarn link",
|
|
15
|
+
"unlink-local": "yarn unlink && cd node_modules/react && yarn unlink && cd ../react-dom && yarn unlink"
|
|
16
|
+
},
|
|
17
|
+
"repository": "https://github.com/paroadmin/expert-shared-components.git",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"react",
|
|
20
|
+
"components",
|
|
21
|
+
"shared"
|
|
22
|
+
],
|
|
23
|
+
"author": "apande@paro.io",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@date-io/dayjs": "1.x",
|
|
27
|
+
"@fortawesome/fontawesome-svg-core": "^6.6.0",
|
|
28
|
+
"@fortawesome/free-solid-svg-icons": "^6.6.0",
|
|
29
|
+
"@fortawesome/react-fontawesome": "^0.2.2",
|
|
30
|
+
"@hookform/resolvers": "3.3.4",
|
|
31
|
+
"@material-ui/core": "^4.11.0",
|
|
32
|
+
"@material-ui/icons": "^4.11.3",
|
|
33
|
+
"@material-ui/lab": "^4.0.0-alpha.61",
|
|
34
|
+
"@material-ui/pickers": "^3.3.11",
|
|
35
|
+
"@paro.io/base-icons": "^1.0.4",
|
|
36
|
+
"@paro.io/base-ui": "^1.8.3",
|
|
37
|
+
"@types/react-input-mask": "^3.0.5",
|
|
38
|
+
"dayjs": "^1.10.7",
|
|
39
|
+
"lodash": "^4.17.21",
|
|
40
|
+
"react": "^18.2.0",
|
|
41
|
+
"react-copy-to-clipboard": "^5.0.4",
|
|
42
|
+
"react-datepicker": "^4.6.0",
|
|
43
|
+
"react-dom": "^17.0.2",
|
|
44
|
+
"react-hook-form": "7.51.1",
|
|
45
|
+
"react-hot-toast": "^2.4.1",
|
|
46
|
+
"react-input-mask": "^3.0.0-alpha.2",
|
|
47
|
+
"styled-components": "^5.3.3",
|
|
48
|
+
"uuid": "8.3.2",
|
|
49
|
+
"yup": "^0.32.11"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/lodash": "^4.14.170",
|
|
53
|
+
"@types/react": "18.3.12",
|
|
54
|
+
"@types/react-copy-to-clipboard": "^5.0.2",
|
|
55
|
+
"@types/react-datepicker": "^4.19.6",
|
|
56
|
+
"@types/react-dom": "^18.2.22",
|
|
57
|
+
"@types/styled-components": "^5.1.22",
|
|
58
|
+
"@types/uuid": "^10.0.0",
|
|
59
|
+
"@types/yup": "^0.29.13",
|
|
60
|
+
"typescript": "^5.3.3"
|
|
61
|
+
},
|
|
62
|
+
"files": [
|
|
63
|
+
"lib/**/*"
|
|
64
|
+
],
|
|
65
|
+
"directories": {
|
|
66
|
+
"lib": "lib"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -10,9 +10,6 @@ interface ExecutiveSummaryProps {
|
|
|
10
10
|
nowCount: number;
|
|
11
11
|
top3: Strategy[];
|
|
12
12
|
palette: Palette;
|
|
13
|
-
effectiveTaxRate?: number;
|
|
14
|
-
confidenceTier?: string;
|
|
15
|
-
dataYears?: number;
|
|
16
13
|
}
|
|
17
|
-
export declare function ExecutiveSummary({ profile, eligible, computed, totalLo, totalHi, nowCount, top3, palette
|
|
14
|
+
export declare function ExecutiveSummary({ profile, eligible, computed, totalLo, totalHi, nowCount, top3, palette }: ExecutiveSummaryProps): React.JSX.Element;
|
|
18
15
|
export {};
|
|
@@ -8,17 +8,16 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const compute_1 = require("../../lib/compute");
|
|
9
9
|
const SectionOpener_1 = require("./SectionOpener");
|
|
10
10
|
const ETRChart_1 = require("./ETRChart");
|
|
11
|
-
function ExecutiveSummary({ profile, eligible, computed, totalLo, totalHi, nowCount, top3, palette
|
|
11
|
+
function ExecutiveSummary({ profile, eligible, computed, totalLo, totalHi, nowCount, top3, palette }) {
|
|
12
12
|
const bizName = profile.bizName || "Client";
|
|
13
13
|
const rev = parseInt((profile.revenue || "0").replace(/,/g, "")) || 500000;
|
|
14
|
-
const dataYearsLabel = dataYears ? `${dataYears} year${dataYears > 1 ? "s" : ""}` : (profile.taxDataYears || "1 year");
|
|
15
14
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
15
|
react_1.default.createElement(SectionOpener_1.SectionOpener, { number: "01", eyebrow: "EXECUTIVE SUMMARY", headline: "Where " + bizName + "'s tax dollars are going \u2014 and where they don't have to.", bullets: [
|
|
17
16
|
eligible.length + " strategies apply to your current profile, with combined estimated savings of $" + totalLo + "K\u2013$" + totalHi + "K annually.",
|
|
18
17
|
nowCount > 0
|
|
19
18
|
? nowCount + " can be initiated this week without any structural changes to your business."
|
|
20
19
|
: "Implementation timeline spans the current tax year with no structural changes required.",
|
|
21
|
-
"Analysis is based on " +
|
|
20
|
+
"Analysis is based on " + (profile.taxDataYears || "1 year") + " of financial data and current law as of April 2026, including OBBBA provisions.",
|
|
22
21
|
], palette: palette }),
|
|
23
22
|
react_1.default.createElement("div", { style: { marginBottom: 28 } },
|
|
24
23
|
react_1.default.createElement("div", { style: { background: palette.gray50, border: "1px solid " + palette.gray200, borderRadius: 10, padding: "24px 28px", marginBottom: 20 } },
|
|
@@ -47,18 +46,15 @@ function ExecutiveSummary({ profile, eligible, computed, totalLo, totalHi, nowCo
|
|
|
47
46
|
nowCount > 0 ? "Of these and the broader eligible set, " + nowCount + " can be initiated this week with no structural changes to your business." : "",
|
|
48
47
|
" Savings estimates reflect your current revenue of ",
|
|
49
48
|
"$" + Math.round(rev / 1000) + "K",
|
|
50
|
-
",
|
|
51
|
-
|
|
49
|
+
", a combined federal/state marginal rate of ",
|
|
50
|
+
parseFloat(profile.federalRate || "24") + parseFloat(profile.stateRate || "4.95"),
|
|
52
51
|
"%, and ",
|
|
53
|
-
|
|
52
|
+
profile.taxDataYears || "1 year",
|
|
54
53
|
" of financial data."),
|
|
55
54
|
(() => {
|
|
56
55
|
const fedRate = parseFloat(profile.federalRate || "24");
|
|
57
56
|
const stateRate = parseFloat(profile.stateRate || "4.95");
|
|
58
|
-
|
|
59
|
-
const currentRate = effectiveTaxRate != null
|
|
60
|
-
? (effectiveTaxRate <= 1 ? effectiveTaxRate * 100 : effectiveTaxRate)
|
|
61
|
-
: (fedRate + stateRate);
|
|
57
|
+
const currentRate = fedRate + stateRate;
|
|
62
58
|
const net = (0, compute_1.parseNum)(profile.netIncome) || (rev * 0.20);
|
|
63
59
|
const aggregateMidSavings = eligible.reduce((a, s) => {
|
|
64
60
|
var _a, _b;
|
|
@@ -10,13 +10,13 @@ const SectionOpener_1 = require("./SectionOpener");
|
|
|
10
10
|
function Methodology({ profile, eligible, palette }) {
|
|
11
11
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
12
12
|
react_1.default.createElement(SectionOpener_1.SectionOpener, { number: "04", eyebrow: "METHODOLOGY", headline: "How TaxAxis arrives at these numbers.", bullets: [
|
|
13
|
-
"25 federal strategies evaluated against your profile
|
|
13
|
+
"25 federal strategies evaluated against your profile via deterministic, rule-based computation at temperature zero \u2014 every recommendation traces to a specific IRC section, revenue ruling, or OBBBA provision.",
|
|
14
14
|
"Confidence bands reflect data quality: \u00B130% on single-year data, narrowing to \u00B115% with multi-year history.",
|
|
15
15
|
"Aggregate savings on the cover chart are adjusted by an interaction-discount factor reflecting strategy stacking, marginal-rate exhaustion, and \u00A76694 reasonableness.",
|
|
16
16
|
], palette: palette }),
|
|
17
17
|
react_1.default.createElement("div", { style: { marginBottom: 28 } },
|
|
18
18
|
react_1.default.createElement("div", { style: { fontSize: 10, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.12em", color: palette.gray400, fontFamily: palette.mono, marginBottom: 8 } }, "EVAL PIPELINE"),
|
|
19
|
-
react_1.default.createElement("div", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.8, fontFamily: palette.body } }, "TaxAxis evaluates 25 federal tax strategies against each client profile
|
|
19
|
+
react_1.default.createElement("div", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.8, fontFamily: palette.body } }, "TaxAxis evaluates 25 federal tax strategies against each client profile. The computation is entirely deterministic and rule-based, operating at temperature zero \u2014 no generative model is involved at any stage. Each strategy passes through a three-phase pipeline: an eligibility filter removes strategies that do not apply to the entity type, industry, or fact pattern, then the computation engine calculates savings ranges against IRC-cited rules using the client's actual financial data. Every recommendation is reviewed by a qualified tax professional before the report is issued.")),
|
|
20
20
|
react_1.default.createElement("div", { style: { marginBottom: 28 } },
|
|
21
21
|
react_1.default.createElement("div", { style: { fontSize: 10, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.12em", color: palette.gray400, fontFamily: palette.mono, marginBottom: 8 } }, "CONFIDENCE BANDS"),
|
|
22
22
|
react_1.default.createElement("div", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.8, fontFamily: palette.body, marginBottom: 12 } }, "Savings ranges reflect data quality. Clients who provide multiple years of financial history receive tighter bands of \u00B115%, because multi-year data reveals trends and reduces estimation variance. Single-year data widens the bands to \u00B130%. Within each band, the low estimate uses conservative inputs at the minimum applicable rate, while the high estimate uses full applicable inputs at the client's marginal rate."),
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ClientProfile, Strategy, ComputedMap } from "../../lib/types";
|
|
3
3
|
import type { Palette } from "./palette";
|
|
4
|
-
interface InteractionWarning {
|
|
5
|
-
strategy_pair: [string, string];
|
|
6
|
-
warning_text: string;
|
|
7
|
-
}
|
|
8
4
|
interface RecommendedStrategiesProps {
|
|
9
5
|
profile: ClientProfile;
|
|
10
6
|
eligible: Strategy[];
|
|
@@ -12,7 +8,6 @@ interface RecommendedStrategiesProps {
|
|
|
12
8
|
top3: Strategy[];
|
|
13
9
|
hasOBBBA: boolean;
|
|
14
10
|
palette: Palette;
|
|
15
|
-
interactionWarnings?: InteractionWarning[];
|
|
16
11
|
}
|
|
17
|
-
export declare function RecommendedStrategies({ profile, eligible, computed, top3, hasOBBBA, palette
|
|
12
|
+
export declare function RecommendedStrategies({ profile, eligible, computed, top3, hasOBBBA, palette }: RecommendedStrategiesProps): React.JSX.Element;
|
|
18
13
|
export {};
|
|
@@ -5,49 +5,47 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.RecommendedStrategies = RecommendedStrategies;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const data_1 = require("../../lib/data");
|
|
8
9
|
const SectionOpener_1 = require("./SectionOpener");
|
|
9
10
|
const SavingsStackChart_1 = require("./SavingsStackChart");
|
|
10
11
|
const StrategyCard_1 = require("./StrategyCard");
|
|
11
|
-
function RecommendedStrategies({ profile, eligible, computed, top3, hasOBBBA, palette
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
const interactionMap = new Map(); // code → index of the other strategy in top3
|
|
18
|
-
for (const w of activeWarnings) {
|
|
19
|
-
const [a, b] = w.strategy_pair;
|
|
20
|
-
const idxA = top3.findIndex(s => s.code === a);
|
|
21
|
-
const idxB = top3.findIndex(s => s.code === b);
|
|
22
|
-
if (idxA >= 0 && idxB >= 0) {
|
|
23
|
-
interactionMap.set(a, idxB + 1);
|
|
24
|
-
interactionMap.set(b, idxA + 1);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
12
|
+
function RecommendedStrategies({ profile, eligible, computed, top3, hasOBBBA, palette }) {
|
|
13
|
+
const top3Ranks = new Set(top3.map(s => s.rank));
|
|
14
|
+
const interactingPairs = data_1.INTERACTION_PAIRS.filter(([a, b]) => top3Ranks.has(a) && top3Ranks.has(b));
|
|
15
|
+
const hasInteractions = interactingPairs.length > 0;
|
|
16
|
+
const interactionMap = {};
|
|
17
|
+
interactingPairs.forEach(([a, b]) => { interactionMap[a] = b; interactionMap[b] = a; });
|
|
27
18
|
const stSavings = (s) => {
|
|
28
19
|
var _a, _b;
|
|
29
20
|
const c = computed.get(s.rank);
|
|
30
21
|
const lo = Math.round(((_a = c === null || c === void 0 ? void 0 : c.lo) !== null && _a !== void 0 ? _a : s.lo) / 100) * 100;
|
|
31
22
|
const hi = Math.round(((_b = c === null || c === void 0 ? void 0 : c.hi) !== null && _b !== void 0 ? _b : s.hi) / 100) * 100;
|
|
32
|
-
return "$" + (lo / 1000).toFixed(1) + "K
|
|
23
|
+
return "$" + (lo / 1000).toFixed(1) + "K\u2013$" + (hi / 1000).toFixed(1) + "K";
|
|
33
24
|
};
|
|
34
25
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
35
26
|
react_1.default.createElement(SectionOpener_1.SectionOpener, { number: "02", eyebrow: "RECOMMENDED STRATEGIES", headline: "Three priorities to discuss first.", bullets: [
|
|
36
|
-
top3.length + " strategies highlighted below are ranked by combined impact score
|
|
37
|
-
"Each strategy is anchored to a specific IRC section and explains the math, the audit posture, and the implementation path.",
|
|
27
|
+
"The " + top3.length + " strategies highlighted below are ranked by combined impact score \u2014 weighting dollar value, audit posture, and implementation effort.",
|
|
28
|
+
"Each strategy below is anchored to a specific IRC section and explains the math, the audit posture, and the implementation path.",
|
|
38
29
|
hasOBBBA
|
|
39
|
-
? "One or more recommendations rely on OBBBA provisions enacted July 2025 with limited IRS guidance
|
|
30
|
+
? "One or more recommendations rely on OBBBA provisions enacted July 2025 with limited IRS guidance \u2014 flagged where applicable."
|
|
40
31
|
: "All recommendations rely on settled IRS guidance, published rulings, or controlling case law.",
|
|
41
32
|
], palette: palette }),
|
|
42
33
|
react_1.default.createElement(SavingsStackChart_1.SavingsStackChart, { eligible: eligible, computed: computed, palette: palette }),
|
|
43
34
|
react_1.default.createElement("div", { style: { marginBottom: 28 } }, top3.map((s, i) => {
|
|
44
|
-
var _a, _b;
|
|
45
35
|
const rank = i + 1;
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
return (react_1.default.createElement(StrategyCard_1.StrategyCard, { key: s.rank, strategy: s, rank: rank, profile: profile, computed: computed, palette: palette, nextStepText: s.
|
|
36
|
+
const interactsWith = interactionMap[s.rank];
|
|
37
|
+
const interactsIdx = interactsWith ? top3.findIndex(t => t.rank === interactsWith) + 1 : 0;
|
|
38
|
+
return (react_1.default.createElement(StrategyCard_1.StrategyCard, { key: s.rank, strategy: s, rank: rank, profile: profile, computed: computed, palette: palette, nextStepText: data_1.NEXT_STEPS[s.rank] || NARRATIVE_FALLBACK_NEXT(s), interactsWith: interactsWith, interactsIdx: interactsIdx, stSavings: stSavings(s) }));
|
|
49
39
|
})),
|
|
50
|
-
|
|
40
|
+
hasInteractions && (react_1.default.createElement("div", { style: { background: palette.orangePale, borderLeft: "3px solid " + palette.orange, borderRadius: "0 8px 8px 0", padding: "16px 20px", marginBottom: 24 } },
|
|
51
41
|
react_1.default.createElement("div", { style: { fontSize: 13, fontWeight: 700, color: palette.gray800, fontFamily: palette.head, marginBottom: 6 } }, "Strategy Interactions"),
|
|
52
|
-
|
|
42
|
+
interactingPairs.map(([a, b], pi) => {
|
|
43
|
+
const idxA = top3.findIndex(t => t.rank === a) + 1;
|
|
44
|
+
const idxB = top3.findIndex(t => t.rank === b) + 1;
|
|
45
|
+
return (react_1.default.createElement("p", { key: pi, style: { fontSize: 12, color: palette.gray700, lineHeight: 1.7, fontFamily: palette.body, marginBottom: 4 } }, "Strategies #" + idxA + " and #" + idxB + " affect each other. Your preparer has accounted for this \u2014 the combined savings may be less than the sum of individual estimates."));
|
|
46
|
+
})))));
|
|
47
|
+
}
|
|
48
|
+
// Inline fallback for next-steps text when NARRATIVE_FALLBACK is needed
|
|
49
|
+
function NARRATIVE_FALLBACK_NEXT(s) {
|
|
50
|
+
return "Discuss with your preparer to implement " + s.name + ".";
|
|
53
51
|
}
|
|
@@ -12,5 +12,5 @@ interface StrategyCardProps {
|
|
|
12
12
|
interactsIdx: number;
|
|
13
13
|
stSavings: string;
|
|
14
14
|
}
|
|
15
|
-
export declare function StrategyCard({ strategy: s, rank, profile
|
|
15
|
+
export declare function StrategyCard({ strategy: s, rank, profile, computed, palette, nextStepText, interactsWith, interactsIdx, stSavings, }: StrategyCardProps): React.JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -5,8 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.StrategyCard = StrategyCard;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const data_1 = require("../../lib/data");
|
|
8
9
|
const Sidebar_1 = require("./Sidebar");
|
|
9
|
-
|
|
10
|
+
const applyFootnotes_1 = require("./applyFootnotes");
|
|
11
|
+
const FootnoteBlock_1 = require("./FootnoteBlock");
|
|
12
|
+
function StrategyCard({ strategy: s, rank, profile, computed, palette, nextStepText, interactsWith, interactsIdx, stSavings, }) {
|
|
10
13
|
const card = {
|
|
11
14
|
background: palette.white,
|
|
12
15
|
border: "1px solid " + palette.gray200,
|
|
@@ -16,13 +19,14 @@ function StrategyCard({ strategy: s, rank, profile: _profile, computed, palette,
|
|
|
16
19
|
boxShadow: "0 1px 3px rgba(0,0,0,0.04)",
|
|
17
20
|
};
|
|
18
21
|
const pct = s.score;
|
|
22
|
+
const narr = data_1.STRATEGY_NARRATIVE[s.rank];
|
|
19
23
|
const c = computed.get(s.rank);
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
const
|
|
24
|
+
const whyText = narr ? narr.whyMatters(profile) : data_1.NARRATIVE_FALLBACK.whyMatters(s);
|
|
25
|
+
const breakdownText = narr ? narr.breakdown(profile, c) : data_1.NARRATIVE_FALLBACK.breakdown(s, c);
|
|
26
|
+
const specialistText = (narr === null || narr === void 0 ? void 0 : narr.whySpecialist) || data_1.NARRATIVE_FALLBACK.whySpecialist(s);
|
|
27
|
+
const nextText = narr ? narr.nextSteps : nextStepText;
|
|
28
|
+
const footnotes = data_1.FOOTNOTE_DATA[s.rank] || [];
|
|
29
|
+
const fnCounter = { next: 0, assigned: [], cardKey: s.rank };
|
|
26
30
|
return (react_1.default.createElement("div", { className: "strategy-card", style: Object.assign(Object.assign({}, card), { padding: 0, overflow: "hidden", marginBottom: 20 }) },
|
|
27
31
|
react_1.default.createElement("div", { style: { padding: "24px 28px 20px" } },
|
|
28
32
|
react_1.default.createElement("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start", marginBottom: 16 } },
|
|
@@ -30,9 +34,7 @@ function StrategyCard({ strategy: s, rank, profile: _profile, computed, palette,
|
|
|
30
34
|
react_1.default.createElement("div", { style: { width: 36, height: 36, borderRadius: "50%", background: "linear-gradient(135deg," + palette.teal + ",#1A6B6C)", display: "flex", alignItems: "center", justifyContent: "center", fontSize: 15, fontWeight: 700, color: palette.white, fontFamily: palette.body, flexShrink: 0 } }, rank),
|
|
31
35
|
react_1.default.createElement("div", null,
|
|
32
36
|
react_1.default.createElement("div", { style: { fontSize: 18, fontWeight: 700, color: palette.gray900, fontFamily: palette.head } }, s.name),
|
|
33
|
-
react_1.default.createElement("div", { style: { fontSize: 12, color: palette.gray500, fontFamily: palette.mono, marginTop: 3 } },
|
|
34
|
-
s.code + " · " + s.timeline,
|
|
35
|
-
s.quickWin && (react_1.default.createElement("span", { style: { marginLeft: 8, background: palette.tealPale, color: palette.teal, padding: "1px 6px", borderRadius: 4, fontSize: 10, fontWeight: 700 } }, "\u26A1 Quick Win"))))),
|
|
37
|
+
react_1.default.createElement("div", { style: { fontSize: 12, color: palette.gray500, fontFamily: palette.mono, marginTop: 3 } }, s.code + " \u00B7 " + s.timeline))),
|
|
36
38
|
react_1.default.createElement("div", { style: { textAlign: "right", flexShrink: 0 } },
|
|
37
39
|
react_1.default.createElement("div", { style: { fontSize: 20, fontWeight: 800, color: palette.teal, fontFamily: palette.head } }, stSavings),
|
|
38
40
|
react_1.default.createElement("div", { style: { fontSize: 10, color: palette.gray400, fontFamily: palette.body } }, "est. annual savings"))),
|
|
@@ -43,37 +45,19 @@ function StrategyCard({ strategy: s, rank, profile: _profile, computed, palette,
|
|
|
43
45
|
pct,
|
|
44
46
|
"/100")),
|
|
45
47
|
react_1.default.createElement(Sidebar_1.Sidebar, { ircCode: s.code, palette: palette }),
|
|
46
|
-
|
|
47
|
-
react_1.default.createElement("div", { style: { fontSize: 11, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.1em", color: palette.gray400, marginBottom: 8, fontFamily: palette.mono } }, "WHY THIS
|
|
48
|
-
react_1.default.createElement("p", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.75, fontFamily: palette.body } },
|
|
49
|
-
|
|
50
|
-
react_1.default.createElement("div", { style: { fontSize: 11, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.1em", color: palette.gray400, marginBottom: 8, fontFamily: palette.mono } }, "
|
|
51
|
-
react_1.default.createElement("
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
padding: "8px 14px",
|
|
56
|
-
background: i % 2 === 0 ? palette.gray50 : palette.white,
|
|
57
|
-
borderTop: i > 0 ? "1px solid " + palette.gray100 : "none",
|
|
58
|
-
gap: 12,
|
|
59
|
-
} },
|
|
60
|
-
react_1.default.createElement("div", { style: { flex: 1 } },
|
|
61
|
-
react_1.default.createElement("div", { style: { fontSize: 12, fontWeight: 600, color: palette.gray800, fontFamily: palette.body } }, ref.field_label),
|
|
62
|
-
react_1.default.createElement("div", { style: { fontSize: 10, color: palette.gray400, fontFamily: palette.mono, marginTop: 1 } }, ref.source_hint)),
|
|
63
|
-
react_1.default.createElement("div", { style: { fontSize: 13, fontWeight: 700, color: palette.teal, fontFamily: palette.mono, flexShrink: 0 } }, ref.value_display))))))),
|
|
64
|
-
cpaEngagement && (react_1.default.createElement("div", { style: { marginBottom: 12 } },
|
|
65
|
-
react_1.default.createElement("div", { style: { fontSize: 11, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.1em", color: palette.gray400, marginBottom: 8, fontFamily: palette.mono } }, "CPA ANALYSIS"),
|
|
66
|
-
react_1.default.createElement("p", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.75, fontFamily: palette.body, whiteSpace: "pre-line" } }, cpaEngagement))),
|
|
67
|
-
s.specialistNote && (react_1.default.createElement("div", { style: { marginBottom: 14, borderLeft: "3px solid " + palette.orange, paddingLeft: 16 } },
|
|
68
|
-
react_1.default.createElement("div", { style: { fontSize: 11, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.1em", color: palette.orange, marginBottom: 6, fontFamily: palette.mono } }, "WHY YOU NEED A SPECIALIST"),
|
|
69
|
-
react_1.default.createElement("p", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.75, fontFamily: palette.body } }, s.specialistNote))),
|
|
70
|
-
s.authority && (react_1.default.createElement("div", { style: { marginBottom: 14, padding: "6px 10px", background: palette.gray50, borderRadius: 6, fontSize: 11, fontFamily: palette.mono, color: palette.gray500 } },
|
|
71
|
-
"Authority: ",
|
|
72
|
-
s.authority,
|
|
73
|
-
s.forms ? " · Forms: " + s.forms : "")),
|
|
48
|
+
react_1.default.createElement("div", { style: { marginBottom: 12 } },
|
|
49
|
+
react_1.default.createElement("div", { style: { fontSize: 11, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.1em", color: palette.gray400, marginBottom: 8, fontFamily: palette.mono } }, "WHY THIS MATTERS"),
|
|
50
|
+
react_1.default.createElement("p", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.75, fontFamily: palette.body } }, (0, applyFootnotes_1.applyFootnotes)(whyText, footnotes, fnCounter, palette))),
|
|
51
|
+
react_1.default.createElement("div", { style: { marginBottom: 12 } },
|
|
52
|
+
react_1.default.createElement("div", { style: { fontSize: 11, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.1em", color: palette.gray400, marginBottom: 8, fontFamily: palette.mono } }, "HOW SAVINGS BREAK DOWN"),
|
|
53
|
+
react_1.default.createElement("p", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.75, fontFamily: palette.body } }, (0, applyFootnotes_1.applyFootnotes)(breakdownText, footnotes, fnCounter, palette))),
|
|
54
|
+
react_1.default.createElement("div", { style: { marginBottom: 12, borderLeft: "3px solid " + palette.orange, padding: "0 0 0 16px" } },
|
|
55
|
+
react_1.default.createElement("div", { style: { fontSize: 11, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.1em", color: palette.orange, marginBottom: 8, fontFamily: palette.mono } }, "WHY YOU NEED A SPECIALIST"),
|
|
56
|
+
react_1.default.createElement("p", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.75, fontFamily: palette.body } }, (0, applyFootnotes_1.applyFootnotes)(specialistText, footnotes, fnCounter, palette))),
|
|
74
57
|
react_1.default.createElement("div", { className: "card-footer" },
|
|
75
58
|
react_1.default.createElement("div", { style: { background: palette.tealPale, borderRadius: 8, padding: "12px 16px" } },
|
|
76
59
|
react_1.default.createElement("div", { style: { fontSize: 11, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.1em", color: palette.green, marginBottom: 6, fontFamily: palette.mono } }, "WHAT WE'D DO NEXT"),
|
|
77
|
-
react_1.default.createElement("p", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.7, fontFamily: palette.body } }, nextText)))
|
|
60
|
+
react_1.default.createElement("p", { style: { fontSize: 13, color: palette.gray700, lineHeight: 1.7, fontFamily: palette.body } }, (0, applyFootnotes_1.applyFootnotes)(nextText, footnotes, fnCounter, palette))),
|
|
61
|
+
react_1.default.createElement(FootnoteBlock_1.FootnoteBlock, { assigned: fnCounter.assigned, palette: palette }))),
|
|
78
62
|
interactsWith !== undefined && interactsIdx > 0 && (react_1.default.createElement("div", { style: { padding: "10px 28px", background: palette.orangePale, borderTop: "1px solid rgba(251,154,29,0.2)", fontSize: 12, color: palette.gray700, fontFamily: palette.body } }, "Note: This strategy interacts with Strategy #" + interactsIdx + ". Combined savings may differ from the sum of individual estimates."))));
|
|
79
63
|
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ClientProfile
|
|
2
|
+
import type { ClientProfile } from "../../lib/types";
|
|
3
3
|
import type { TaxAxisScreenProps } from "../../lib/types";
|
|
4
4
|
export interface TaxAxisClientReportProps extends TaxAxisScreenProps {
|
|
5
5
|
profile: ClientProfile;
|
|
6
6
|
onBack: () => void;
|
|
7
7
|
onNavigatePreparer?: () => void;
|
|
8
|
-
/** When provided, bypasses local filterEligibleStrategies + computeAllStrategies. */
|
|
9
|
-
liveStrategies?: Strategy[];
|
|
10
|
-
/** When provided, bypasses local computeAllStrategies. Must accompany liveStrategies. */
|
|
11
|
-
liveComputedMap?: ComputedMap;
|
|
12
|
-
/** Live engine output fields — passed through to sub-components */
|
|
13
|
-
engineRawOutput?: Record<string, any>;
|
|
14
8
|
}
|
|
15
|
-
export declare function TaxAxisClientReport({ profile, onBack, onNavigatePreparer
|
|
9
|
+
export declare function TaxAxisClientReport({ profile, onBack, onNavigatePreparer }: TaxAxisClientReportProps): React.JSX.Element;
|
|
@@ -34,13 +34,11 @@ const ExecutiveSummary_1 = require("./ExecutiveSummary");
|
|
|
34
34
|
const RecommendedStrategies_1 = require("./RecommendedStrategies");
|
|
35
35
|
const ImplementationRoadmap_1 = require("./ImplementationRoadmap");
|
|
36
36
|
const Methodology_1 = require("./Methodology");
|
|
37
|
-
function TaxAxisClientReport({ profile, onBack, onNavigatePreparer
|
|
38
|
-
var _a, _b, _c
|
|
37
|
+
function TaxAxisClientReport({ profile, onBack, onNavigatePreparer }) {
|
|
38
|
+
var _a, _b, _c;
|
|
39
39
|
const [view, setView] = (0, react_1.useState)("client");
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const eligible = liveStrategies !== null && liveStrategies !== void 0 ? liveStrategies : staticEligible;
|
|
43
|
-
const computed = liveComputedMap !== null && liveComputedMap !== void 0 ? liveComputedMap : staticComputed;
|
|
40
|
+
const eligible = (0, react_1.useMemo)(() => (0, compute_1.filterEligibleStrategies)(profile), [profile]);
|
|
41
|
+
const computed = (0, react_1.useMemo)(() => (0, compute_1.computeAllStrategies)(profile), [profile]);
|
|
44
42
|
const totalLo = Math.round(eligible.reduce((a, s) => { var _a, _b; return a + ((_b = (_a = computed.get(s.rank)) === null || _a === void 0 ? void 0 : _a.lo) !== null && _b !== void 0 ? _b : s.lo); }, 0) / 1000);
|
|
45
43
|
const totalHi = Math.round(eligible.reduce((a, s) => { var _a, _b; return a + ((_b = (_a = computed.get(s.rank)) === null || _a === void 0 ? void 0 : _a.hi) !== null && _b !== void 0 ? _b : s.hi); }, 0) / 1000);
|
|
46
44
|
const top3 = [...eligible].sort((a, b) => b.score - a.score).slice(0, 3);
|
|
@@ -102,7 +100,7 @@ function TaxAxisClientReport({ profile, onBack, onNavigatePreparer, liveStrategi
|
|
|
102
100
|
.report-meta { break-inside: avoid; page-break-inside: avoid; }
|
|
103
101
|
.toc-page { break-after: page; page-break-after: always; }
|
|
104
102
|
* { color-adjust: exact; -webkit-print-color-adjust: exact; }
|
|
105
|
-
p, span, div, td, th, li { color: #212529 !important; }
|
|
103
|
+
body, p, span, div, td, th, li { color: #212529 !important; }
|
|
106
104
|
h1, h2, h3, h4, h5, h6, strong, b { color: #060821 !important; }
|
|
107
105
|
}
|
|
108
106
|
`),
|
|
@@ -110,11 +108,11 @@ function TaxAxisClientReport({ profile, onBack, onNavigatePreparer, liveStrategi
|
|
|
110
108
|
react_1.default.createElement("div", { style: { maxWidth: 680, margin: "0 auto", padding: "32px 20px 60px" } },
|
|
111
109
|
react_1.default.createElement(ClientReportCover_1.ClientReportCover, { profile: profile, palette: palette_1.P }),
|
|
112
110
|
react_1.default.createElement(ClientReportTOC_1.ClientReportTOC, { bizName: bizName, palette: palette_1.P }),
|
|
113
|
-
react_1.default.createElement(ExecutiveSummary_1.ExecutiveSummary, { profile: profile, eligible: eligible, computed: computed, totalLo: totalLo, totalHi: totalHi, nowCount: nowCount, top3: top3, palette: palette_1.P
|
|
111
|
+
react_1.default.createElement(ExecutiveSummary_1.ExecutiveSummary, { profile: profile, eligible: eligible, computed: computed, totalLo: totalLo, totalHi: totalHi, nowCount: nowCount, top3: top3, palette: palette_1.P }),
|
|
114
112
|
react_1.default.createElement("div", { style: { background: palette_1.P.gray50, borderLeft: "3px solid " + palette_1.P.gray300, borderRadius: "0 8px 8px 0", padding: "14px 20px", marginBottom: 20, fontSize: 11, color: palette_1.P.gray500, lineHeight: 1.7, fontFamily: palette_1.P.body } },
|
|
115
113
|
"This summary was prepared using TaxAxis, Paro's AI-powered tax analysis engine. Savings estimates are based on financial data provided for tax year " + profile.year + " (" + (profile.taxDataYears || "1 year") + " of data). All figures are estimates. Your tax preparer has reviewed these recommendations.",
|
|
116
114
|
hasOBBBA && " Some strategies reference provisions from the One Big Beautiful Bill Act (OBBBA), signed July 4, 2025, with limited IRS guidance."),
|
|
117
|
-
react_1.default.createElement(RecommendedStrategies_1.RecommendedStrategies, { profile: profile, eligible: eligible, computed: computed, top3: top3, hasOBBBA: hasOBBBA, palette: palette_1.P
|
|
115
|
+
react_1.default.createElement(RecommendedStrategies_1.RecommendedStrategies, { profile: profile, eligible: eligible, computed: computed, top3: top3, hasOBBBA: hasOBBBA, palette: palette_1.P }),
|
|
118
116
|
react_1.default.createElement(ImplementationRoadmap_1.ImplementationRoadmap, { eligible: eligible, computed: computed, top3: top3, nowCount: nowCount, nowMidK: nowMidK, bucketDefs: bucketDefs, bucketTotals: bucketTotals, activeBuckets: activeBuckets, palette: palette_1.P }),
|
|
119
117
|
react_1.default.createElement(Methodology_1.Methodology, { profile: profile, eligible: eligible, palette: palette_1.P }),
|
|
120
118
|
react_1.default.createElement("div", { style: { padding: "16px 20px", marginBottom: 16, fontSize: 10, color: palette_1.P.gray400, lineHeight: 1.7, fontFamily: palette_1.P.body } }, "This summary was generated by TaxAxis, an AI-powered analysis tool by Paro. Recommendations are based on financial data provided and current tax law as of April 2026, including OBBBA provisions. These are estimates, not guarantees. Consult your tax preparer before implementing any strategy. This is not legal or financial advice."),
|
|
@@ -25,6 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.DashboardActions = DashboardActions;
|
|
27
27
|
const react_1 = __importStar(require("react"));
|
|
28
|
+
const data_1 = require("../../lib/data");
|
|
28
29
|
const compute_1 = require("../../lib/compute");
|
|
29
30
|
const TaxAxisButton_1 = require("../shared/TaxAxisButton");
|
|
30
31
|
function DashboardActions({ profile, dashEligible, computed, onDownloadPreparer, onPresent, onSend, onReset, }) {
|
|
@@ -68,15 +69,13 @@ function DashboardActions({ profile, dashEligible, computed, onDownloadPreparer,
|
|
|
68
69
|
"\u2013",
|
|
69
70
|
(0, compute_1.fmtK)(totalHi),
|
|
70
71
|
"across ",
|
|
71
|
-
|
|
72
|
+
data_1.STRATEGIES.length,
|
|
72
73
|
" strategies \u2014 use this to close the engagement or expand scope."),
|
|
73
|
-
react_1.default.createElement("div", { className: "flex
|
|
74
|
-
react_1.default.createElement(TaxAxisButton_1.TaxAxisButton, {
|
|
75
|
-
react_1.default.createElement(TaxAxisButton_1.TaxAxisButton, { onClick: onPresent, className: "w-full sm:w-auto" }, "Present to Client"),
|
|
76
|
-
react_1.default.createElement(TaxAxisButton_1.TaxAxisButton, { variant: "secondary", className: "w-full sm:w-auto" }, "Generate Engagement Letter")))),
|
|
74
|
+
react_1.default.createElement("div", { className: "flex gap-2.5 flex-wrap" },
|
|
75
|
+
react_1.default.createElement(TaxAxisButton_1.TaxAxisButton, { onClick: onPresent }, "Present to Client")))),
|
|
77
76
|
react_1.default.createElement("div", { className: "flex gap-4 mt-4 pt-3.5", style: { borderTop: "1px solid rgba(36,131,132,0.15)" } }, [
|
|
78
77
|
{ v: "3x", l: "Faster than Manual" },
|
|
79
|
-
{ v:
|
|
78
|
+
{ v: "25", l: "Strategies Scanned" },
|
|
80
79
|
{ v: "100%", l: "IRS-Cited" },
|
|
81
80
|
{ v: String(stateCount), l: `State${stateCount > 1 ? "s" : ""}` },
|
|
82
81
|
].map(({ v, l }) => (react_1.default.createElement("div", { key: l },
|
|
@@ -6,11 +6,6 @@ interface DashboardSummaryProps {
|
|
|
6
6
|
computed: ComputedMap;
|
|
7
7
|
dataConfirmed: boolean;
|
|
8
8
|
reviewUnreviewed: number;
|
|
9
|
-
liveSavingsMin?: number;
|
|
10
|
-
liveSavingsMax?: number;
|
|
11
|
-
liveStrategyCount?: number;
|
|
12
|
-
confidenceTier?: string;
|
|
13
|
-
dataYears?: number;
|
|
14
9
|
}
|
|
15
|
-
export declare function DashboardSummary({ profile, dashEligible, computed, dataConfirmed, reviewUnreviewed,
|
|
10
|
+
export declare function DashboardSummary({ profile, dashEligible, computed, dataConfirmed, reviewUnreviewed, }: DashboardSummaryProps): React.JSX.Element;
|
|
16
11
|
export {};
|
|
@@ -6,13 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.DashboardSummary = DashboardSummary;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const useCountUp_1 = require("./useCountUp");
|
|
9
|
-
function DashboardSummary({ profile, dashEligible, computed, dataConfirmed, reviewUnreviewed,
|
|
9
|
+
function DashboardSummary({ profile, dashEligible, computed, dataConfirmed, reviewUnreviewed, }) {
|
|
10
10
|
var _a;
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const totalLo = liveSavingsMin !== null && liveSavingsMin !== void 0 ? liveSavingsMin : computedLo;
|
|
14
|
-
const totalHi = liveSavingsMax !== null && liveSavingsMax !== void 0 ? liveSavingsMax : computedHi;
|
|
15
|
-
const strategyCount = liveStrategyCount !== null && liveStrategyCount !== void 0 ? liveStrategyCount : dashEligible.length;
|
|
11
|
+
const totalLo = dashEligible.reduce((a, s) => { var _a, _b; return a + ((_b = (_a = computed.get(s.rank)) === null || _a === void 0 ? void 0 : _a.lo) !== null && _b !== void 0 ? _b : s.lo); }, 0);
|
|
12
|
+
const totalHi = dashEligible.reduce((a, s) => { var _a, _b; return a + ((_b = (_a = computed.get(s.rank)) === null || _a === void 0 ? void 0 : _a.hi) !== null && _b !== void 0 ? _b : s.hi); }, 0);
|
|
16
13
|
const bizName = profile.bizName || "Client";
|
|
17
14
|
const stateCount = ((_a = profile.states) === null || _a === void 0 ? void 0 : _a.length) || 1;
|
|
18
15
|
const scoreAvg = Math.round(dashEligible.reduce((a, s) => a + s.score, 0) / (dashEligible.length || 1));
|
|
@@ -23,9 +20,10 @@ function DashboardSummary({ profile, dashEligible, computed, dataConfirmed, revi
|
|
|
23
20
|
const fmtHero = (k) => k >= 1000 ? "$" + (k / 1000).toFixed(1) + "M" : "$" + k + "K";
|
|
24
21
|
const riskVal = parseInt(profile.riskTolerance) || 3;
|
|
25
22
|
const riskLabels = ["", "Very Conservative", "Conservative", "Moderate", "Aggressive", "Very Aggressive"];
|
|
26
|
-
return (react_1.default.createElement("div", { className: "relative overflow-hidden rounded-2xl mb-5
|
|
23
|
+
return (react_1.default.createElement("div", { className: "relative overflow-hidden rounded-2xl mb-5", style: {
|
|
27
24
|
background: "radial-gradient(ellipse at 30% 0%, rgba(36,131,132,0.08) 0%, transparent 60%), #0E1132",
|
|
28
25
|
border: "1px solid rgba(36,131,132,0.12)",
|
|
26
|
+
padding: "32px 32px 28px",
|
|
29
27
|
boxShadow: "0 4px 20px rgba(6,8,33,0.3)",
|
|
30
28
|
} },
|
|
31
29
|
react_1.default.createElement("div", { className: "absolute inset-0 opacity-[0.02]", style: {
|
|
@@ -78,23 +76,16 @@ function DashboardSummary({ profile, dashEligible, computed, dataConfirmed, revi
|
|
|
78
76
|
profile.cpaName && (react_1.default.createElement("div", { className: "text-xs text-tax-axis-text-3 mt-1" },
|
|
79
77
|
"Preparer: ",
|
|
80
78
|
profile.cpaName)),
|
|
81
|
-
react_1.default.createElement("div", { className: "
|
|
82
|
-
{ v:
|
|
83
|
-
{ v:
|
|
79
|
+
react_1.default.createElement("div", { className: "flex gap-6 mt-[22px] pt-[18px]", style: { borderTop: "1px solid rgba(36,131,132,0.12)" } }, [
|
|
80
|
+
{ v: String(scoreUp), u: "/100", l: "Avg. Confidence", warn: false, ok: false },
|
|
81
|
+
{ v: "25", u: "", l: "Strategies Scanned", warn: false, ok: false },
|
|
84
82
|
{
|
|
85
|
-
v: dataConfirmed ? "
|
|
83
|
+
v: dataConfirmed ? "Done" : String(reviewUnreviewed),
|
|
86
84
|
u: "",
|
|
87
|
-
l: "Data
|
|
85
|
+
l: dataConfirmed ? "Data Confirmed" : "Need Review",
|
|
88
86
|
warn: !dataConfirmed && reviewUnreviewed > 0,
|
|
89
87
|
ok: dataConfirmed,
|
|
90
88
|
},
|
|
91
|
-
...(confidenceTier ? [{
|
|
92
|
-
v: dataYears ? String(dataYears) : "1",
|
|
93
|
-
u: "yr",
|
|
94
|
-
l: confidenceTier.replace(/-DATA$/, "").replace(/-/g, " ").replace(/YR/, "yr"),
|
|
95
|
-
warn: (dataYears !== null && dataYears !== void 0 ? dataYears : 1) < 2,
|
|
96
|
-
ok: (dataYears !== null && dataYears !== void 0 ? dataYears : 1) >= 3,
|
|
97
|
-
}] : []),
|
|
98
89
|
].map(({ v, u, l, warn, ok }) => (react_1.default.createElement("div", { key: l },
|
|
99
90
|
react_1.default.createElement("div", { className: "font-tax-axis-mono font-bold leading-none", style: {
|
|
100
91
|
fontSize: 24,
|
|
@@ -6,5 +6,5 @@ interface StrategyDetailPanelProps {
|
|
|
6
6
|
computed: ComputedMap;
|
|
7
7
|
onClose: () => void;
|
|
8
8
|
}
|
|
9
|
-
export declare function StrategyDetailPanel({ s, profile
|
|
9
|
+
export declare function StrategyDetailPanel({ s, profile, computed, onClose }: StrategyDetailPanelProps): React.JSX.Element;
|
|
10
10
|
export {};
|