@paro.io/expert-shared-components 1.14.43 → 1.14.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +2 -2
  3. package/lib/README.md +2 -0
  4. package/lib/components/ClientReferencesSection/DeleteButton.js +11 -11
  5. package/lib/components/ClientReferencesSection/ParoError.js +10 -10
  6. package/lib/components/ClientReferencesSection/TagsSection.js +2 -2
  7. package/lib/components/ClientReferencesSection/styles/BrandedTypography.js +2 -2
  8. package/lib/components/ClientReferencesSection/styles/Buttons.js +15 -15
  9. package/lib/components/ClientReferencesSection/styles/Name.js +5 -5
  10. package/lib/components/ClientReferencesSection/styles/NullContentConditionalColor.js +4 -4
  11. package/lib/components/ClientReferencesSection/styles/SectionBody.js +11 -11
  12. package/lib/components/ClientReferencesSection/styles/SectionTitle.js +6 -6
  13. package/lib/components/ClientReferencesSection/styles/Tags.js +2 -2
  14. package/lib/components/DiscussionThread/DiscussionThread.d.ts +25 -25
  15. package/lib/components/DiscussionThread/DiscussionThread.js +137 -137
  16. package/lib/components/DiscussionThread/chat.d.ts +22 -22
  17. package/lib/components/DiscussionThread/chat.js +106 -106
  18. package/lib/components/DiscussionThread/index.d.ts +1 -1
  19. package/lib/components/DiscussionThread/index.js +5 -5
  20. package/lib/components/DocumentCenter/DocumentTable.d.ts +15 -15
  21. package/lib/components/DocumentCenter/DocumentTable.js +350 -350
  22. package/lib/components/DocumentCenter/DragDropUpload.js +4 -4
  23. package/lib/components/DocumentCenter/UploadFilesButton.d.ts +6 -6
  24. package/lib/components/DocumentCenter/UploadFilesButton.js +29 -29
  25. package/lib/components/EarningsTracker/ActiveProjectCard.d.ts +52 -52
  26. package/lib/components/EarningsTracker/ActiveProjectCard.js +161 -161
  27. package/lib/components/EarningsTracker/CenterCardUI.d.ts +13 -13
  28. package/lib/components/EarningsTracker/CenterCardUI.js +134 -134
  29. package/lib/components/EarningsTracker/EarningsTracker.d.ts +52 -52
  30. package/lib/components/EarningsTracker/EarningsTracker.js +508 -508
  31. package/lib/components/EarningsTracker/EditDateModal.d.ts +22 -22
  32. package/lib/components/EarningsTracker/EditDateModal.js +149 -149
  33. package/lib/components/EarningsTracker/EmailModal.d.ts +14 -14
  34. package/lib/components/EarningsTracker/EmailModal.js +79 -79
  35. package/lib/components/EarningsTracker/EndProjectModal.d.ts +56 -56
  36. package/lib/components/EarningsTracker/EndProjectModal.js +221 -221
  37. package/lib/components/EarningsTracker/LeftCardUI.d.ts +18 -18
  38. package/lib/components/EarningsTracker/LeftCardUI.js +189 -189
  39. package/lib/components/EarningsTracker/LogTimeModalAuthenticated.d.ts +52 -52
  40. package/lib/components/EarningsTracker/LogTimeModalAuthenticated.js +358 -358
  41. package/lib/components/EarningsTracker/ProgressBar.d.ts +4 -4
  42. package/lib/components/EarningsTracker/ProgressBar.js +66 -66
  43. package/lib/components/EarningsTracker/ReviewRequestModal.d.ts +17 -17
  44. package/lib/components/EarningsTracker/ReviewRequestModal.js +135 -135
  45. package/lib/components/EarningsTracker/RightCardUI.d.ts +46 -46
  46. package/lib/components/EarningsTracker/RightCardUI.js +231 -231
  47. package/lib/components/EarningsTracker/index.d.ts +1 -1
  48. package/lib/components/EarningsTracker/index.js +5 -5
  49. package/lib/components/Escalations/CustomTag.d.ts +3 -3
  50. package/lib/components/Escalations/CustomTag.js +25 -25
  51. package/lib/components/Escalations/ViewReponseModal.d.ts +8 -8
  52. package/lib/components/Escalations/ViewReponseModal.js +27 -27
  53. package/lib/components/ExpertProfileHeader/ActionButtonSection.js +6 -6
  54. package/lib/components/ExpertProfileHeader/ProfileSection.js +7 -7
  55. package/lib/components/Invoices/TestDecisionSection.d.ts +1 -1
  56. package/lib/components/Invoices/TestDecisionSection.js +126 -126
  57. package/lib/components/OrganizationChart/OrganizationChart.d.ts +15 -15
  58. package/lib/components/OrganizationChart/OrganizationChart.js +312 -312
  59. package/lib/components/OrganizationChart/PersonCard.js +5 -5
  60. package/lib/components/OrganizationChart/utils.js +79 -79
  61. package/lib/components/ProjectCard/ProgressBar.js +4 -4
  62. package/lib/components/ProjectCard/ReviewRequestModal.js +5 -5
  63. package/lib/components/ProjectIntelligence/MissingInformation/index.js +1 -1
  64. package/lib/components/Reviews/Pagination.js +6 -6
  65. package/lib/components/ReviewsTab/RatingHeader.js +6 -6
  66. package/lib/components/ReviewsTab/expert-shared-components.code-workspace +20 -20
  67. package/lib/components/ReviewsTab/reviewRequestModal.js +5 -5
  68. package/lib/components/shared/Image.js +13 -13
  69. package/lib/components/shared/ProfileTextField.d.ts +18 -18
  70. package/lib/components/shared/ProfileTextField.js +16 -16
  71. package/lib/components/shared/StyledActionButtons.d.ts +7 -7
  72. package/lib/components/shared/StyledActionButtons.js +15 -15
  73. package/lib/components/shared/ToastNotification.d.ts +10 -10
  74. package/lib/components/shared/ToastNotification.js +63 -63
  75. package/lib/index.d.ts +13 -0
  76. package/lib/index.js +27 -1
  77. package/lib/package.json +68 -0
  78. package/lib/tax-axis/components/clientReport/ClientReportCover.d.ts +9 -0
  79. package/lib/tax-axis/components/clientReport/ClientReportCover.js +39 -0
  80. package/lib/tax-axis/components/clientReport/ClientReportTOC.d.ts +8 -0
  81. package/lib/tax-axis/components/clientReport/ClientReportTOC.js +24 -0
  82. package/lib/tax-axis/components/clientReport/ClientReportToolbar.d.ts +2 -0
  83. package/lib/tax-axis/components/clientReport/ClientReportToolbar.js +6 -0
  84. package/lib/tax-axis/components/clientReport/ETRChart.d.ts +10 -0
  85. package/lib/tax-axis/components/clientReport/ETRChart.js +50 -0
  86. package/lib/tax-axis/components/clientReport/ExecutiveSummary.d.ts +15 -0
  87. package/lib/tax-axis/components/clientReport/ExecutiveSummary.js +73 -0
  88. package/lib/tax-axis/components/clientReport/FootnoteBlock.d.ts +11 -0
  89. package/lib/tax-axis/components/clientReport/FootnoteBlock.js +34 -0
  90. package/lib/tax-axis/components/clientReport/ImplementationRoadmap.d.ts +26 -0
  91. package/lib/tax-axis/components/clientReport/ImplementationRoadmap.js +51 -0
  92. package/lib/tax-axis/components/clientReport/ImplementationTimelineChart.d.ts +10 -0
  93. package/lib/tax-axis/components/clientReport/ImplementationTimelineChart.js +49 -0
  94. package/lib/tax-axis/components/clientReport/Methodology.d.ts +10 -0
  95. package/lib/tax-axis/components/clientReport/Methodology.js +40 -0
  96. package/lib/tax-axis/components/clientReport/QuarterlyCashChart.d.ts +10 -0
  97. package/lib/tax-axis/components/clientReport/QuarterlyCashChart.js +56 -0
  98. package/lib/tax-axis/components/clientReport/RecommendedStrategies.d.ts +13 -0
  99. package/lib/tax-axis/components/clientReport/RecommendedStrategies.js +51 -0
  100. package/lib/tax-axis/components/clientReport/SavingsStackChart.d.ts +10 -0
  101. package/lib/tax-axis/components/clientReport/SavingsStackChart.js +66 -0
  102. package/lib/tax-axis/components/clientReport/SectionOpener.d.ts +11 -0
  103. package/lib/tax-axis/components/clientReport/SectionOpener.js +20 -0
  104. package/lib/tax-axis/components/clientReport/Sidebar.d.ts +8 -0
  105. package/lib/tax-axis/components/clientReport/Sidebar.js +37 -0
  106. package/lib/tax-axis/components/clientReport/StrategyCard.d.ts +16 -0
  107. package/lib/tax-axis/components/clientReport/StrategyCard.js +63 -0
  108. package/lib/tax-axis/components/clientReport/TaxAxisClientReport.d.ts +9 -0
  109. package/lib/tax-axis/components/clientReport/TaxAxisClientReport.js +125 -0
  110. package/lib/tax-axis/components/clientReport/applyFootnotes.d.ts +12 -0
  111. package/lib/tax-axis/components/clientReport/applyFootnotes.js +43 -0
  112. package/lib/tax-axis/components/clientReport/palette.d.ts +28 -0
  113. package/lib/tax-axis/components/clientReport/palette.js +34 -0
  114. package/lib/tax-axis/components/dashboard/ConfidenceArc.d.ts +7 -0
  115. package/lib/tax-axis/components/dashboard/ConfidenceArc.js +20 -0
  116. package/lib/tax-axis/components/dashboard/DashboardActions.d.ts +13 -0
  117. package/lib/tax-axis/components/dashboard/DashboardActions.js +94 -0
  118. package/lib/tax-axis/components/dashboard/DashboardSummary.d.ts +11 -0
  119. package/lib/tax-axis/components/dashboard/DashboardSummary.js +98 -0
  120. package/lib/tax-axis/components/dashboard/DashboardTopBar.d.ts +10 -0
  121. package/lib/tax-axis/components/dashboard/DashboardTopBar.js +48 -0
  122. package/lib/tax-axis/components/dashboard/StrategyDetailPanel.d.ts +10 -0
  123. package/lib/tax-axis/components/dashboard/StrategyDetailPanel.js +139 -0
  124. package/lib/tax-axis/components/dashboard/StrategyTile.d.ts +10 -0
  125. package/lib/tax-axis/components/dashboard/StrategyTile.js +82 -0
  126. package/lib/tax-axis/components/dashboard/TaxAxisDashboard.d.ts +12 -0
  127. package/lib/tax-axis/components/dashboard/TaxAxisDashboard.js +285 -0
  128. package/lib/tax-axis/components/dashboard/useCountUp.d.ts +1 -0
  129. package/lib/tax-axis/components/dashboard/useCountUp.js +25 -0
  130. package/lib/tax-axis/components/documents/DocumentCard.d.ts +18 -0
  131. package/lib/tax-axis/components/documents/DocumentCard.js +61 -0
  132. package/lib/tax-axis/components/documents/DocumentTier.d.ts +21 -0
  133. package/lib/tax-axis/components/documents/DocumentTier.js +23 -0
  134. package/lib/tax-axis/components/documents/TaxAxisDocuments.d.ts +8 -0
  135. package/lib/tax-axis/components/documents/TaxAxisDocuments.js +157 -0
  136. package/lib/tax-axis/components/extractionReview/DocumentCard.d.ts +17 -0
  137. package/lib/tax-axis/components/extractionReview/DocumentCard.js +105 -0
  138. package/lib/tax-axis/components/extractionReview/FieldRow.d.ts +17 -0
  139. package/lib/tax-axis/components/extractionReview/FieldRow.js +137 -0
  140. package/lib/tax-axis/components/extractionReview/PurposeBlock.d.ts +7 -0
  141. package/lib/tax-axis/components/extractionReview/PurposeBlock.js +18 -0
  142. package/lib/tax-axis/components/extractionReview/RerunFooter.d.ts +8 -0
  143. package/lib/tax-axis/components/extractionReview/RerunFooter.js +60 -0
  144. package/lib/tax-axis/components/extractionReview/TaxAxisExtractionReview.d.ts +11 -0
  145. package/lib/tax-axis/components/extractionReview/TaxAxisExtractionReview.js +186 -0
  146. package/lib/tax-axis/components/intake/ClientParametersSection.d.ts +7 -0
  147. package/lib/tax-axis/components/intake/ClientParametersSection.js +146 -0
  148. package/lib/tax-axis/components/intake/CpaIntakeQuestionsSection.d.ts +7 -0
  149. package/lib/tax-axis/components/intake/CpaIntakeQuestionsSection.js +93 -0
  150. package/lib/tax-axis/components/intake/IntakeCtaCards.d.ts +9 -0
  151. package/lib/tax-axis/components/intake/IntakeCtaCards.js +30 -0
  152. package/lib/tax-axis/components/intake/RefineAnalysisSection.d.ts +7 -0
  153. package/lib/tax-axis/components/intake/RefineAnalysisSection.js +151 -0
  154. package/lib/tax-axis/components/intake/StateMultiSelect.d.ts +7 -0
  155. package/lib/tax-axis/components/intake/StateMultiSelect.js +90 -0
  156. package/lib/tax-axis/components/intake/StrategyRadar.d.ts +7 -0
  157. package/lib/tax-axis/components/intake/StrategyRadar.js +240 -0
  158. package/lib/tax-axis/components/intake/TaxAxisIntake.d.ts +8 -0
  159. package/lib/tax-axis/components/intake/TaxAxisIntake.js +38 -0
  160. package/lib/tax-axis/components/intake/intakeSchema.d.ts +97 -0
  161. package/lib/tax-axis/components/intake/intakeSchema.js +91 -0
  162. package/lib/tax-axis/components/preparerWorkpaper/CalculationTraceAccordion.d.ts +9 -0
  163. package/lib/tax-axis/components/preparerWorkpaper/CalculationTraceAccordion.js +19 -0
  164. package/lib/tax-axis/components/preparerWorkpaper/EngagementHeader.d.ts +9 -0
  165. package/lib/tax-axis/components/preparerWorkpaper/EngagementHeader.js +43 -0
  166. package/lib/tax-axis/components/preparerWorkpaper/Position6694Accordion.d.ts +9 -0
  167. package/lib/tax-axis/components/preparerWorkpaper/Position6694Accordion.js +25 -0
  168. package/lib/tax-axis/components/preparerWorkpaper/PriorityGroup.d.ts +14 -0
  169. package/lib/tax-axis/components/preparerWorkpaper/PriorityGroup.js +20 -0
  170. package/lib/tax-axis/components/preparerWorkpaper/Section6694Summary.d.ts +9 -0
  171. package/lib/tax-axis/components/preparerWorkpaper/Section6694Summary.js +36 -0
  172. package/lib/tax-axis/components/preparerWorkpaper/SourceDocumentsAccordion.d.ts +9 -0
  173. package/lib/tax-axis/components/preparerWorkpaper/SourceDocumentsAccordion.js +20 -0
  174. package/lib/tax-axis/components/preparerWorkpaper/StrategyWorkpaperCard.d.ts +14 -0
  175. package/lib/tax-axis/components/preparerWorkpaper/StrategyWorkpaperCard.js +53 -0
  176. package/lib/tax-axis/components/preparerWorkpaper/TaxAxisPreparerWorkpaper.d.ts +9 -0
  177. package/lib/tax-axis/components/preparerWorkpaper/TaxAxisPreparerWorkpaper.js +175 -0
  178. package/lib/tax-axis/components/presentationMode/TaxAxisPresentationMode.d.ts +7 -0
  179. package/lib/tax-axis/components/presentationMode/TaxAxisPresentationMode.js +245 -0
  180. package/lib/tax-axis/components/processing/ProcessingStages.d.ts +7 -0
  181. package/lib/tax-axis/components/processing/ProcessingStages.js +17 -0
  182. package/lib/tax-axis/components/processing/TaxAxisProcessing.d.ts +7 -0
  183. package/lib/tax-axis/components/processing/TaxAxisProcessing.js +105 -0
  184. package/lib/tax-axis/components/prospectReport/ProspectCover.d.ts +10 -0
  185. package/lib/tax-axis/components/prospectReport/ProspectCover.js +47 -0
  186. package/lib/tax-axis/components/prospectReport/ProspectDocuments.d.ts +9 -0
  187. package/lib/tax-axis/components/prospectReport/ProspectDocuments.js +31 -0
  188. package/lib/tax-axis/components/prospectReport/ProspectNextSteps.d.ts +13 -0
  189. package/lib/tax-axis/components/prospectReport/ProspectNextSteps.js +37 -0
  190. package/lib/tax-axis/components/prospectReport/ProspectPrintView.d.ts +26 -0
  191. package/lib/tax-axis/components/prospectReport/ProspectPrintView.js +185 -0
  192. package/lib/tax-axis/components/prospectReport/ProspectStrategyCard.d.ts +10 -0
  193. package/lib/tax-axis/components/prospectReport/ProspectStrategyCard.js +52 -0
  194. package/lib/tax-axis/components/prospectReport/SampleAnalysisPreview.d.ts +7 -0
  195. package/lib/tax-axis/components/prospectReport/SampleAnalysisPreview.js +120 -0
  196. package/lib/tax-axis/components/prospectReport/TaxAxisProspectReport.d.ts +9 -0
  197. package/lib/tax-axis/components/prospectReport/TaxAxisProspectReport.js +173 -0
  198. package/lib/tax-axis/components/prospectReport/TaxPositionGap.d.ts +15 -0
  199. package/lib/tax-axis/components/prospectReport/TaxPositionGap.js +45 -0
  200. package/lib/tax-axis/components/prospectReport/theme.d.ts +26 -0
  201. package/lib/tax-axis/components/prospectReport/theme.js +33 -0
  202. package/lib/tax-axis/components/shared/ReportToolbar.d.ts +12 -0
  203. package/lib/tax-axis/components/shared/ReportToolbar.js +81 -0
  204. package/lib/tax-axis/components/shared/SectionHeader.d.ts +8 -0
  205. package/lib/tax-axis/components/shared/SectionHeader.js +15 -0
  206. package/lib/tax-axis/components/shared/TaxAxisBadge.d.ts +12 -0
  207. package/lib/tax-axis/components/shared/TaxAxisBadge.js +34 -0
  208. package/lib/tax-axis/components/shared/TaxAxisButton.d.ts +12 -0
  209. package/lib/tax-axis/components/shared/TaxAxisButton.js +17 -0
  210. package/lib/tax-axis/components/shared/TaxAxisCard.d.ts +9 -0
  211. package/lib/tax-axis/components/shared/TaxAxisCard.js +13 -0
  212. package/lib/tax-axis/index.d.ts +25 -0
  213. package/lib/tax-axis/index.js +51 -0
  214. package/lib/tax-axis/lib/compute/index.d.ts +8 -0
  215. package/lib/tax-axis/lib/compute/index.js +163 -0
  216. package/lib/tax-axis/lib/data/documents.d.ts +3 -0
  217. package/lib/tax-axis/lib/data/documents.js +33 -0
  218. package/lib/tax-axis/lib/data/extractedData.d.ts +2 -0
  219. package/lib/tax-axis/lib/data/extractedData.js +47 -0
  220. package/lib/tax-axis/lib/data/footnoteData.d.ts +2 -0
  221. package/lib/tax-axis/lib/data/footnoteData.js +48 -0
  222. package/lib/tax-axis/lib/data/index.d.ts +11 -0
  223. package/lib/tax-axis/lib/data/index.js +31 -0
  224. package/lib/tax-axis/lib/data/nextSteps.d.ts +2 -0
  225. package/lib/tax-axis/lib/data/nextSteps.js +35 -0
  226. package/lib/tax-axis/lib/data/sidebarLookup.d.ts +2 -0
  227. package/lib/tax-axis/lib/data/sidebarLookup.js +90 -0
  228. package/lib/tax-axis/lib/data/sourceDescriptions.d.ts +1 -0
  229. package/lib/tax-axis/lib/data/sourceDescriptions.js +32 -0
  230. package/lib/tax-axis/lib/data/states.d.ts +6 -0
  231. package/lib/tax-axis/lib/data/states.js +25 -0
  232. package/lib/tax-axis/lib/data/strategies.d.ts +8 -0
  233. package/lib/tax-axis/lib/data/strategies.js +166 -0
  234. package/lib/tax-axis/lib/data/strategyNarrative.d.ts +3 -0
  235. package/lib/tax-axis/lib/data/strategyNarrative.js +170 -0
  236. package/lib/tax-axis/lib/data/strategyProspect.d.ts +2 -0
  237. package/lib/tax-axis/lib/data/strategyProspect.js +66 -0
  238. package/lib/tax-axis/lib/data/workpaperInteractions.d.ts +1 -0
  239. package/lib/tax-axis/lib/data/workpaperInteractions.js +15 -0
  240. package/lib/tax-axis/lib/types/index.d.ts +183 -0
  241. package/lib/tax-axis/lib/types/index.js +7 -0
  242. package/package.json +68 -67
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.TaxAxisPreparerWorkpaper = TaxAxisPreparerWorkpaper;
27
+ const react_1 = __importStar(require("react"));
28
+ const data_1 = require("../../lib/data");
29
+ const compute_1 = require("../../lib/compute");
30
+ const palette_1 = require("../clientReport/palette");
31
+ const ReportToolbar_1 = require("../shared/ReportToolbar");
32
+ const EngagementHeader_1 = require("./EngagementHeader");
33
+ const Section6694Summary_1 = require("./Section6694Summary");
34
+ const PriorityGroup_1 = require("./PriorityGroup");
35
+ function TaxAxisPreparerWorkpaper({ profile, onBack, onToggleToClient }) {
36
+ const [expanded, setExpanded] = (0, react_1.useState)({});
37
+ const [printMode, setPrintMode] = (0, react_1.useState)(false);
38
+ const toggle = (rank, section) => setExpanded(prev => (Object.assign(Object.assign({}, prev), { [rank + "-" + section]: !prev[rank + "-" + section] })));
39
+ const eligible = (0, react_1.useMemo)(() => (0, compute_1.filterEligibleStrategies)(profile), [profile]);
40
+ const computed = (0, react_1.useMemo)(() => (0, compute_1.computeAllStrategies)(profile), [profile]);
41
+ const states = profile.states || [];
42
+ const bizName = profile.bizName || "Client";
43
+ const rev = parseInt((profile.revenue || "0").replace(/,/g, "")) || 0;
44
+ const substantialAuth = eligible.filter(s => s.cat !== "obbba_new").length;
45
+ const reasonableBasis = eligible.filter(s => s.cat === "obbba_new").length;
46
+ // Group by priority
47
+ const priorityOrder = ["HIGH", "QUICK WIN", "MEDIUM", "LOW"];
48
+ const grouped = priorityOrder
49
+ .map(p => ({ priority: p, items: eligible.filter(s => s.priority === p).sort((a, b) => b.score - a.score) }))
50
+ .filter(g => g.items.length > 0);
51
+ // Interaction pairs
52
+ const eligibleRanks = new Set(eligible.map(s => s.rank));
53
+ const activeInteractions = data_1.WORKPAPER_INTERACTION_PAIRS.filter(([a, b]) => eligibleRanks.has(a) && eligibleRanks.has(b));
54
+ // Savings summary
55
+ const sortedByMid = [...eligible].sort((a, b) => {
56
+ var _a, _b, _c, _d;
57
+ const ca = computed.get(a.rank), cb = computed.get(b.rank);
58
+ return (((_a = cb === null || cb === void 0 ? void 0 : cb.lo) !== null && _a !== void 0 ? _a : b.lo) + ((_b = cb === null || cb === void 0 ? void 0 : cb.hi) !== null && _b !== void 0 ? _b : b.hi)) / 2 - (((_c = ca === null || ca === void 0 ? void 0 : ca.lo) !== null && _c !== void 0 ? _c : a.lo) + ((_d = ca === null || ca === void 0 ? void 0 : ca.hi) !== null && _d !== void 0 ? _d : a.hi)) / 2;
59
+ });
60
+ const grandTotal = eligible.reduce((a, s) => {
61
+ var _a, _b;
62
+ const c = computed.get(s.rank);
63
+ return a + (((_a = c === null || c === void 0 ? void 0 : c.lo) !== null && _a !== void 0 ? _a : s.lo) + ((_b = c === null || c === void 0 ? void 0 : c.hi) !== null && _b !== void 0 ? _b : s.hi)) / 2;
64
+ }, 0);
65
+ const interactionAdj = Math.round(grandTotal * (activeInteractions.length > 0 ? 0.85 : 1));
66
+ const card = {
67
+ background: palette_1.P.white,
68
+ border: "1px solid " + palette_1.P.gray200,
69
+ borderRadius: 12,
70
+ padding: "24px 28px",
71
+ marginBottom: 16,
72
+ boxShadow: "0 1px 3px rgba(0,0,0,0.04)",
73
+ };
74
+ const sectionTitle = {
75
+ fontSize: 11,
76
+ fontWeight: 700,
77
+ textTransform: "uppercase",
78
+ letterSpacing: "0.1em",
79
+ color: palette_1.P.gray500,
80
+ marginBottom: 16,
81
+ fontFamily: palette_1.P.body,
82
+ };
83
+ const handleToggle = (v) => {
84
+ if (v === "client" && onToggleToClient) {
85
+ onToggleToClient();
86
+ return;
87
+ }
88
+ };
89
+ const handlePrintPreparer = () => {
90
+ setPrintMode(true);
91
+ setTimeout(() => {
92
+ window.print();
93
+ setPrintMode(false);
94
+ }, 150);
95
+ };
96
+ const handlePrintClient = () => {
97
+ if (onToggleToClient) {
98
+ onToggleToClient();
99
+ }
100
+ };
101
+ return (react_1.default.createElement("div", { style: { background: palette_1.P.offWhite, minHeight: "100vh", fontFamily: palette_1.P.body, color: palette_1.P.gray900 } },
102
+ react_1.default.createElement("style", null, `
103
+ @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&display=swap');
104
+ @page { size: letter; margin: 0.75in 1in 1in 1in; orphans: 3; widows: 3; }
105
+ @media print {
106
+ body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
107
+ .no-print { display: none !important; }
108
+ .MuiDrawer-root, .MuiDrawer-permanent, .MuiDrawer-paper,
109
+ .MuiAppBar-root { display: none !important; }
110
+ .flex.w-full.bg-white.p-2.shadow-sm { display: none !important; }
111
+ .flex.flex-col.w-full { margin-top: 0 !important; }
112
+ main.w-full { width: 100% !important; margin-left: 0 !important; padding: 0 !important; }
113
+ * { color-adjust: exact; -webkit-print-color-adjust: exact; }
114
+ body, p, span, div, td, th, li { color: #212529 !important; }
115
+ h1, h2, h3, h4, h5, h6, strong, b { color: #060821 !important; }
116
+ }
117
+ `),
118
+ react_1.default.createElement(ReportToolbar_1.ReportToolbar, { view: "preparer", palette: palette_1.P, onBack: onBack, onToggle: handleToggle, onPrintClient: handlePrintClient, onPrintPreparer: handlePrintPreparer }),
119
+ react_1.default.createElement("div", { style: { maxWidth: 680, margin: "0 auto", padding: "32px 20px 60px" } },
120
+ react_1.default.createElement(EngagementHeader_1.EngagementHeader, { profile: profile, palette: palette_1.P }),
121
+ react_1.default.createElement(Section6694Summary_1.Section6694Summary, { substantialAuth: substantialAuth, reasonableBasis: reasonableBasis, palette: palette_1.P }),
122
+ grouped.map(({ priority, items }) => (react_1.default.createElement(PriorityGroup_1.PriorityGroup, { key: priority, priority: priority, items: items, computed: computed, printMode: printMode, expanded: expanded, onToggle: toggle, palette: palette_1.P }))),
123
+ activeInteractions.length > 0 && (react_1.default.createElement("div", { style: Object.assign(Object.assign({}, card), { marginBottom: 24 }) },
124
+ react_1.default.createElement("div", { style: sectionTitle }, "STRATEGY INTERACTIONS"),
125
+ activeInteractions.map(([a, b, desc], i) => {
126
+ const sa = data_1.STRATEGIES.find(s => s.rank === a);
127
+ const sb = data_1.STRATEGIES.find(s => s.rank === b);
128
+ return (react_1.default.createElement("div", { key: i, style: { padding: "10px 0", borderBottom: i < activeInteractions.length - 1 ? "1px solid " + palette_1.P.gray200 : "none", display: "flex", gap: 10, alignItems: "flex-start" } },
129
+ react_1.default.createElement("div", { style: { width: 6, height: 6, borderRadius: "50%", background: palette_1.P.orange, flexShrink: 0, marginTop: 6 } }),
130
+ react_1.default.createElement("div", null,
131
+ react_1.default.createElement("div", { style: { fontSize: 13, fontWeight: 600, color: palette_1.P.gray800, fontFamily: palette_1.P.body, marginBottom: 2 } }, "#" + a + " " + ((sa === null || sa === void 0 ? void 0 : sa.name) || "") + " \u2194 #" + b + " " + ((sb === null || sb === void 0 ? void 0 : sb.name) || "")),
132
+ react_1.default.createElement("div", { style: { fontSize: 12, color: palette_1.P.gray500, lineHeight: 1.6 } }, desc))));
133
+ }))),
134
+ react_1.default.createElement("div", { style: Object.assign(Object.assign({}, card), { marginBottom: 24 }) },
135
+ react_1.default.createElement("div", { style: sectionTitle }, "SAVINGS SUMMARY"),
136
+ react_1.default.createElement("table", { style: { width: "100%", borderCollapse: "collapse", fontSize: 12, fontFamily: palette_1.P.body } },
137
+ react_1.default.createElement("thead", null,
138
+ react_1.default.createElement("tr", { style: { borderBottom: "2px solid " + palette_1.P.gray300 } }, ["Strategy", "Savings (mid)", "Priority", "Position"].map(h => (react_1.default.createElement("th", { key: h, style: { padding: "6px 10px", textAlign: "left", fontSize: 10, fontWeight: 700, color: palette_1.P.gray400, textTransform: "uppercase", letterSpacing: ".5px" } }, h))))),
139
+ react_1.default.createElement("tbody", null,
140
+ sortedByMid.map((s, i) => {
141
+ var _a, _b;
142
+ const c = computed.get(s.rank);
143
+ const mid = Math.round((((_a = c === null || c === void 0 ? void 0 : c.lo) !== null && _a !== void 0 ? _a : s.lo) + ((_b = c === null || c === void 0 ? void 0 : c.hi) !== null && _b !== void 0 ? _b : s.hi)) / 2);
144
+ const isObbba = s.cat === "obbba_new";
145
+ return (react_1.default.createElement("tr", { key: s.rank, style: { background: i % 2 === 0 ? palette_1.P.white : palette_1.P.gray50, borderBottom: "1px solid " + palette_1.P.gray100 } },
146
+ react_1.default.createElement("td", { style: { padding: "6px 10px", fontWeight: 500, color: palette_1.P.gray800 } }, s.name),
147
+ react_1.default.createElement("td", { style: { padding: "6px 10px", fontWeight: 600, color: palette_1.P.teal, fontFamily: palette_1.P.mono } }, "$" + mid.toLocaleString()),
148
+ react_1.default.createElement("td", { style: { padding: "6px 10px" } },
149
+ react_1.default.createElement("span", { style: {
150
+ fontSize: 10,
151
+ fontWeight: 600,
152
+ padding: "2px 6px",
153
+ borderRadius: 4,
154
+ background: s.priority === "HIGH" ? palette_1.P.greenPale : s.priority === "QUICK WIN" ? palette_1.P.tealPale : s.priority === "MEDIUM" ? palette_1.P.orangePale : palette_1.P.gray100,
155
+ color: s.priority === "HIGH" ? palette_1.P.green : s.priority === "QUICK WIN" ? palette_1.P.teal : s.priority === "MEDIUM" ? "#B45309" : palette_1.P.gray600,
156
+ } }, s.priority)),
157
+ react_1.default.createElement("td", { style: { padding: "6px 10px", fontSize: 11, color: isObbba ? palette_1.P.orange : palette_1.P.green } }, isObbba ? "Reasonable" : "Subst. Auth.")));
158
+ }),
159
+ react_1.default.createElement("tr", { style: { borderTop: "2px solid " + palette_1.P.gray300 } },
160
+ react_1.default.createElement("td", { style: { padding: "8px 10px", fontWeight: 700, color: palette_1.P.gray900 } }, "TOTAL (before interactions)"),
161
+ react_1.default.createElement("td", { style: { padding: "8px 10px", fontWeight: 700, color: palette_1.P.teal, fontFamily: palette_1.P.mono } }, "$" + Math.round(grandTotal).toLocaleString()),
162
+ react_1.default.createElement("td", { colSpan: 2 })),
163
+ activeInteractions.length > 0 && (react_1.default.createElement("tr", null,
164
+ react_1.default.createElement("td", { style: { padding: "6px 10px", fontWeight: 600, color: palette_1.P.orange, fontSize: 11 } }, "Interaction-adjusted est."),
165
+ react_1.default.createElement("td", { style: { padding: "6px 10px", fontWeight: 700, color: palette_1.P.orange, fontFamily: palette_1.P.mono } },
166
+ "$" + interactionAdj.toLocaleString() + " ",
167
+ react_1.default.createElement("span", { style: { fontWeight: 400, fontSize: 10 } }, "(\u221215%)")),
168
+ react_1.default.createElement("td", { colSpan: 2 })))))),
169
+ react_1.default.createElement("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", padding: "12px 0", borderTop: "1px solid " + palette_1.P.gray200, fontSize: 11, color: palette_1.P.gray500, fontFamily: palette_1.P.body } },
170
+ react_1.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: 6 } },
171
+ react_1.default.createElement("div", { style: { width: 16, height: 16, borderRadius: 4, background: palette_1.P.navy, display: "flex", alignItems: "center", justifyContent: "center" } },
172
+ react_1.default.createElement("span", { style: { fontSize: 8, fontWeight: 700, color: palette_1.P.white } }, "P")),
173
+ "Paro TaxAxis \u00B7 Preparer Workpaper \u00B7 Confidential"),
174
+ react_1.default.createElement("span", null, eligible.length + " strategies \u00B7 " + profile.year)))));
175
+ }
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { ClientProfile, TaxAxisScreenProps } from "../../lib/types";
3
+ export interface TaxAxisPresentationModeProps extends TaxAxisScreenProps {
4
+ profile: ClientProfile;
5
+ onBack?: () => void;
6
+ }
7
+ export declare function TaxAxisPresentationMode({ profile, onBack, }: TaxAxisPresentationModeProps): React.JSX.Element;
@@ -0,0 +1,245 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.TaxAxisPresentationMode = TaxAxisPresentationMode;
27
+ const react_1 = __importStar(require("react"));
28
+ const data_1 = require("../../lib/data");
29
+ const compute_1 = require("../../lib/compute");
30
+ const theme_1 = require("../prospectReport/theme");
31
+ // ═══════════════════════════════════════════════════════════════════
32
+ // TaxAxisPresentationMode — S9 Keynote-style slide deck
33
+ // Ported from mock (App.jsx:3546-3818).
34
+ // ═══════════════════════════════════════════════════════════════════
35
+ /* ═══ GlowBtn — inline-styled button matching mock ═══ */
36
+ function GlowBtn({ children, onClick, disabled, style }) {
37
+ return (react_1.default.createElement("button", { onClick: disabled ? undefined : onClick, style: Object.assign({ padding: "14px 28px", border: "none", borderRadius: 8, fontSize: 14, fontWeight: 600, fontFamily: theme_1.T.body, letterSpacing: ".2px", opacity: disabled ? 0.4 : 1, cursor: disabled ? "not-allowed" : "pointer", background: `linear-gradient(135deg,${theme_1.T.accent},#1A6B6C)`, color: theme_1.T.white, boxShadow: disabled ? "none" : `0 0 20px rgba(36,131,132,0.25),0 4px 16px rgba(6,8,33,0.4)` }, style) }, children));
38
+ }
39
+ function TaxAxisPresentationMode({ profile, onBack, }) {
40
+ const bizName = profile.bizName || "Client";
41
+ const cpaName = profile.cpaName || "Your Tax Preparer";
42
+ const entity = profile.entity;
43
+ const industry = profile.industry || "";
44
+ const stateCount = (profile.states || []).length || 1;
45
+ // ═══ ELIGIBLE STRATEGIES ═══
46
+ const eligible = (0, react_1.useMemo)(() => (0, compute_1.filterEligibleStrategies)(profile), [profile]);
47
+ const computed = (0, react_1.useMemo)(() => (0, compute_1.computeAllStrategies)(profile), [profile]);
48
+ 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);
49
+ 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);
50
+ const sortedEligible = (0, react_1.useMemo)(() => [...eligible].sort((a, b) => b.score - a.score), [eligible]);
51
+ const defaultTop3 = (0, react_1.useMemo)(() => sortedEligible.slice(0, 3).map(s => s.rank), [sortedEligible]);
52
+ // ═══ STATE ═══
53
+ const [picking, setPicking] = (0, react_1.useState)(true);
54
+ const [selectedRanks, setSelectedRanks] = (0, react_1.useState)(defaultTop3);
55
+ const [currentSlide, setCurrentSlide] = (0, react_1.useState)(0);
56
+ // ═══ DERIVED FROM SELECTION ═══
57
+ const selectedStrategies = selectedRanks
58
+ .map(r => data_1.STRATEGIES.find(s => s.rank === r))
59
+ .filter((s) => Boolean(s));
60
+ const honorable = eligible.filter(s => !selectedRanks.includes(s.rank));
61
+ const hasHonorable = honorable.length > 0;
62
+ const totalSlides = 2 + selectedStrategies.length + (hasHonorable ? 1 : 0) + 1;
63
+ // ═══ FORMAT HELPER — rounded to $100 ═══
64
+ const stSavings = (s) => {
65
+ var _a, _b;
66
+ const c = computed.get(s.rank);
67
+ const lo = Math.round(((_a = c === null || c === void 0 ? void 0 : c.lo) !== null && _a !== void 0 ? _a : s.lo) / 100) * 100;
68
+ const hi = Math.round(((_b = c === null || c === void 0 ? void 0 : c.hi) !== null && _b !== void 0 ? _b : s.hi) / 100) * 100;
69
+ return { lo, hi, display: `$${lo.toLocaleString()}\u2013$${hi.toLocaleString()}` };
70
+ };
71
+ // ═══ KEYBOARD NAVIGATION ═══
72
+ (0, react_1.useEffect)(() => {
73
+ if (picking)
74
+ return;
75
+ const handleKey = (e) => {
76
+ if (e.key === "ArrowRight" || e.key === " ")
77
+ setCurrentSlide(s => Math.min(s + 1, totalSlides - 1));
78
+ if (e.key === "ArrowLeft")
79
+ setCurrentSlide(s => Math.max(s - 1, 0));
80
+ if (e.key === "Escape" && onBack)
81
+ onBack();
82
+ };
83
+ window.addEventListener("keydown", handleKey);
84
+ return () => window.removeEventListener("keydown", handleKey);
85
+ }, [picking, totalSlides, onBack]);
86
+ const toggleStrategy = (rank) => {
87
+ setSelectedRanks(prev => {
88
+ if (prev.includes(rank))
89
+ return prev.filter(r => r !== rank);
90
+ if (prev.length >= 5)
91
+ return prev;
92
+ return [...prev, rank];
93
+ });
94
+ };
95
+ // ═══ STRATEGY PICKER MODAL ═══
96
+ if (picking) {
97
+ return (react_1.default.createElement("div", { style: { position: "fixed", inset: 0, background: theme_1.T.bg, zIndex: 300, display: "flex", alignItems: "center", justifyContent: "center" } },
98
+ react_1.default.createElement("div", { style: { width: 520, maxWidth: "calc(100vw - 40px)", background: theme_1.T.surface, border: `1px solid ${theme_1.T.border}`, borderRadius: 16, boxShadow: theme_1.T.shadowLg, overflow: "hidden" } },
99
+ react_1.default.createElement("div", { style: { padding: "24px 28px 16px" } },
100
+ react_1.default.createElement("div", { style: { fontSize: 12, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.12em", color: theme_1.T.accent, fontFamily: theme_1.T.mono, marginBottom: 8 } }, "SELECT STRATEGIES TO PRESENT"),
101
+ react_1.default.createElement("div", { style: { fontSize: 13, color: theme_1.T.text2, fontFamily: theme_1.T.body, lineHeight: 1.6 } }, "Pick up to 5 strategies to walk through. Default: your top 3 by impact.")),
102
+ react_1.default.createElement("div", { style: { maxHeight: "50vh", overflowY: "auto", padding: "0 28px" } }, sortedEligible.map(s => {
103
+ const checked = selectedRanks.includes(s.rank);
104
+ const sv = stSavings(s);
105
+ return (react_1.default.createElement("div", { key: s.rank, onClick: () => toggleStrategy(s.rank), style: { display: "flex", alignItems: "center", gap: 12, padding: "10px 0", borderBottom: `1px solid ${theme_1.T.border}`, cursor: "pointer", opacity: !checked && selectedRanks.length >= 5 ? 0.4 : 1 } },
106
+ react_1.default.createElement("div", { style: { width: 20, height: 20, borderRadius: 4, border: `2px solid ${checked ? theme_1.T.accent : theme_1.T.border}`, background: checked ? theme_1.T.accent : "transparent", display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0, transition: "all .15s" } }, checked && react_1.default.createElement("svg", { width: "10", height: "10", viewBox: "0 0 12 12", fill: "none" },
107
+ react_1.default.createElement("path", { d: "M2 6l3 3 5-6", stroke: theme_1.T.white, strokeWidth: "2", strokeLinecap: "round" }))),
108
+ react_1.default.createElement("div", { style: { width: 28, height: 28, borderRadius: 6, background: theme_1.T.surface2, display: "flex", alignItems: "center", justifyContent: "center", fontSize: 11, fontWeight: 700, color: theme_1.T.text3, fontFamily: theme_1.T.mono, flexShrink: 0 } },
109
+ "#",
110
+ s.rank),
111
+ react_1.default.createElement("div", { style: { flex: 1 } },
112
+ react_1.default.createElement("div", { style: { fontSize: 14, fontWeight: 600, color: theme_1.T.text, fontFamily: theme_1.T.head } }, s.name)),
113
+ react_1.default.createElement("div", { style: { fontSize: 13, fontWeight: 600, color: theme_1.T.accentLt, fontFamily: theme_1.T.mono, flexShrink: 0 } }, sv.display)));
114
+ })),
115
+ react_1.default.createElement("div", { style: { padding: "16px 28px", borderTop: `1px solid ${theme_1.T.border}`, display: "flex", justifyContent: "space-between", alignItems: "center" } },
116
+ react_1.default.createElement("button", { onClick: onBack, style: { padding: "10px 20px", background: "none", border: `1px solid ${theme_1.T.border}`, borderRadius: 8, fontSize: 13, color: theme_1.T.text3, fontFamily: theme_1.T.body, cursor: "pointer" } }, "Cancel"),
117
+ react_1.default.createElement(GlowBtn, { onClick: () => { setPicking(false); setCurrentSlide(0); }, disabled: selectedRanks.length === 0 }, "Start Presentation")))));
118
+ }
119
+ // ═══ SLIDE CONTENT ═══
120
+ const renderSlide = () => {
121
+ // Slide 0: Title
122
+ if (currentSlide === 0) {
123
+ return (react_1.default.createElement("div", { style: { textAlign: "center" } },
124
+ react_1.default.createElement("div", { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%,-50%)", width: 500, height: 500, borderRadius: "50%", background: `radial-gradient(circle,${theme_1.T.accentGlow},transparent 70%)`, pointerEvents: "none" } }),
125
+ react_1.default.createElement("div", { style: { position: "relative" } },
126
+ react_1.default.createElement("div", { style: { fontSize: 13, fontWeight: 700, textTransform: "uppercase", letterSpacing: 4, color: theme_1.T.accent, fontFamily: theme_1.T.mono, marginBottom: 24 } }, "TAX STRATEGY REVIEW"),
127
+ react_1.default.createElement("div", { style: { fontSize: 48, fontWeight: 900, color: theme_1.T.white, fontFamily: theme_1.T.head, lineHeight: 1.1, marginBottom: 16 } }, bizName),
128
+ react_1.default.createElement("div", { style: { fontSize: 16, color: theme_1.T.text3, fontFamily: theme_1.T.body, marginBottom: 8 } },
129
+ "Prepared by ",
130
+ cpaName),
131
+ react_1.default.createElement("div", { style: { fontSize: 16, color: theme_1.T.text4, fontFamily: theme_1.T.body } }, new Date().toLocaleDateString("en-US", { month: "long", year: "numeric" })),
132
+ react_1.default.createElement("div", { style: { display: "flex", alignItems: "center", justifyContent: "center", gap: 8, marginTop: 40 } },
133
+ react_1.default.createElement("div", { style: { width: 24, height: 24, borderRadius: 6, background: theme_1.T.accent, display: "flex", alignItems: "center", justifyContent: "center" } },
134
+ react_1.default.createElement("span", { style: { fontSize: 11, fontWeight: 700, color: theme_1.T.white } }, "P")),
135
+ react_1.default.createElement("span", { style: { fontSize: 13, fontWeight: 600, color: theme_1.T.text3, fontFamily: theme_1.T.head } }, "Paro TaxAxis")))));
136
+ }
137
+ // Slide 1: The Opportunity
138
+ if (currentSlide === 1) {
139
+ return (react_1.default.createElement("div", { style: { textAlign: "center" } },
140
+ react_1.default.createElement("div", { style: { fontSize: 20, color: theme_1.T.text2, fontFamily: theme_1.T.body, marginBottom: 4 } }, "We identified"),
141
+ react_1.default.createElement("div", { style: { fontSize: 20, fontWeight: 700, color: theme_1.T.accent, fontFamily: theme_1.T.body, marginBottom: 4 } },
142
+ eligible.length,
143
+ " tax strategies"),
144
+ react_1.default.createElement("div", { style: { fontSize: 20, color: theme_1.T.text2, fontFamily: theme_1.T.body, marginBottom: 24 } }, "that could save you"),
145
+ react_1.default.createElement("div", { style: { fontSize: 64, fontWeight: 900, color: theme_1.T.accentLt, fontFamily: theme_1.T.head, letterSpacing: "-3px", lineHeight: 1, marginBottom: 20, textShadow: "0 0 80px rgba(161,229,230,0.15)" } },
146
+ "$",
147
+ totalLo,
148
+ "K \u2013 $",
149
+ totalHi,
150
+ "K"),
151
+ react_1.default.createElement("div", { style: { fontSize: 16, color: theme_1.T.text3, fontFamily: theme_1.T.body, marginTop: 32 } }, "Based on your business profile"),
152
+ react_1.default.createElement("div", { style: { fontSize: 14, color: theme_1.T.text4, fontFamily: theme_1.T.body, marginTop: 6 } },
153
+ entity,
154
+ " \u00B7 ",
155
+ industry,
156
+ " \u00B7 ",
157
+ stateCount,
158
+ " state",
159
+ stateCount > 1 ? "s" : "")));
160
+ }
161
+ // Slides 2..N: Strategy slides
162
+ const stratIdx = currentSlide - 2;
163
+ if (stratIdx >= 0 && stratIdx < selectedStrategies.length) {
164
+ const s = selectedStrategies[stratIdx];
165
+ const sv = stSavings(s);
166
+ const isObbba = s.cat === "obbba_new";
167
+ return (react_1.default.createElement("div", null,
168
+ react_1.default.createElement("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: 24 } },
169
+ react_1.default.createElement("div", { style: { fontSize: 12, fontWeight: 700, textTransform: "uppercase", letterSpacing: 3, color: theme_1.T.accent, fontFamily: theme_1.T.mono } },
170
+ "STRATEGY ",
171
+ stratIdx + 1),
172
+ react_1.default.createElement("span", { style: { fontSize: 11, fontWeight: 600, padding: "4px 12px", borderRadius: 20, background: s.priority === "HIGH" ? theme_1.T.accentBg : s.priority === "QUICK WIN" ? theme_1.T.accentBg : theme_1.T.orangeBg, color: s.priority === "HIGH" ? theme_1.T.accentLt : s.priority === "QUICK WIN" ? theme_1.T.accentLt : theme_1.T.orange, fontFamily: theme_1.T.mono } }, s.priority)),
173
+ react_1.default.createElement("div", { style: { fontSize: 36, fontWeight: 800, color: theme_1.T.white, fontFamily: theme_1.T.head, lineHeight: 1.15, marginBottom: 16 } }, s.name),
174
+ react_1.default.createElement("div", { style: { fontSize: 48, fontWeight: 900, color: theme_1.T.accentLt, fontFamily: theme_1.T.head, letterSpacing: "-2px", lineHeight: 1, marginBottom: 6 } }, sv.display),
175
+ react_1.default.createElement("div", { style: { fontSize: 14, color: theme_1.T.text4, fontFamily: theme_1.T.body, marginBottom: 28 } }, "estimated annual savings"),
176
+ react_1.default.createElement("div", { style: { background: theme_1.T.surface, border: `1px solid ${theme_1.T.border}`, borderRadius: 12, padding: "20px 24px", marginBottom: 24, maxWidth: 640 } },
177
+ react_1.default.createElement("p", { style: { fontSize: 18, color: theme_1.T.text2, lineHeight: 1.8, fontFamily: theme_1.T.body } }, s.abstract)),
178
+ react_1.default.createElement("div", { style: { background: theme_1.T.accentBg, borderLeft: `3px solid ${theme_1.T.accent}`, borderRadius: "0 8px 8px 0", padding: "16px 20px", marginBottom: 24, maxWidth: 640 } },
179
+ react_1.default.createElement("div", { style: { fontSize: 12, fontWeight: 700, textTransform: "uppercase", letterSpacing: "0.08em", color: theme_1.T.accentLt, fontFamily: theme_1.T.mono, marginBottom: 6 } }, "NEXT STEP"),
180
+ react_1.default.createElement("div", { style: { fontSize: 15, color: theme_1.T.text, lineHeight: 1.7, fontFamily: theme_1.T.body } }, data_1.NEXT_STEPS[s.rank] || "Discuss implementation with your preparer.")),
181
+ react_1.default.createElement("div", { style: { fontSize: 12, color: theme_1.T.text4, fontFamily: theme_1.T.mono, display: "flex", gap: 16 } },
182
+ react_1.default.createElement("span", null, s.code),
183
+ react_1.default.createElement("span", null, "\u00B7"),
184
+ react_1.default.createElement("span", null, s.timeline),
185
+ react_1.default.createElement("span", null, "\u00B7"),
186
+ react_1.default.createElement("span", null, isObbba ? "Reasonable Basis" : "Substantial Authority"))));
187
+ }
188
+ // Honorable Mentions slide
189
+ const honorableSlideIdx = 2 + selectedStrategies.length;
190
+ if (hasHonorable && currentSlide === honorableSlideIdx) {
191
+ const cols = honorable.length >= 6 ? 3 : 2;
192
+ return (react_1.default.createElement("div", null,
193
+ react_1.default.createElement("div", { style: { fontSize: 12, fontWeight: 700, textTransform: "uppercase", letterSpacing: 3, color: theme_1.T.accent, fontFamily: theme_1.T.mono, marginBottom: 12 } }, "ALSO IDENTIFIED"),
194
+ react_1.default.createElement("div", { style: { fontSize: 20, color: theme_1.T.text2, fontFamily: theme_1.T.body, marginBottom: 28 } },
195
+ honorable.length,
196
+ " additional strategies for your business"),
197
+ react_1.default.createElement("div", { style: { display: "grid", gridTemplateColumns: `repeat(${cols},1fr)`, gap: 10, marginBottom: 28 } }, honorable.map(s => {
198
+ const sv = stSavings(s);
199
+ return (react_1.default.createElement("div", { key: s.rank, style: { background: theme_1.T.surface, border: `1px solid ${theme_1.T.border}`, borderRadius: 10, padding: 14 } },
200
+ react_1.default.createElement("div", { style: { fontSize: 13, fontWeight: 600, color: theme_1.T.text, fontFamily: theme_1.T.body, marginBottom: 4 } }, s.name),
201
+ react_1.default.createElement("div", { style: { fontSize: 14, fontWeight: 700, color: theme_1.T.accentLt, fontFamily: theme_1.T.mono } }, sv.display)));
202
+ })),
203
+ react_1.default.createElement("div", { style: { fontSize: 14, color: theme_1.T.text3, fontFamily: theme_1.T.body } }, "Full details in your written report.")));
204
+ }
205
+ // Next Steps / Close slide (always last)
206
+ return (react_1.default.createElement("div", { style: { textAlign: "center" } },
207
+ react_1.default.createElement("div", { style: { fontSize: 12, fontWeight: 700, textTransform: "uppercase", letterSpacing: 3, color: theme_1.T.accent, fontFamily: theme_1.T.mono, marginBottom: 32 } }, "WHAT HAPPENS NEXT"),
208
+ react_1.default.createElement("div", { style: { textAlign: "left", display: "inline-block", maxWidth: 520 } }, [
209
+ "You provide the documents we discussed",
210
+ "We run the full analysis (same day)",
211
+ "You receive a detailed written report",
212
+ "We implement the strategies together",
213
+ ].map((step, i) => (react_1.default.createElement("div", { key: i, style: { display: "flex", alignItems: "baseline", gap: 16, marginBottom: 12 } },
214
+ react_1.default.createElement("span", { style: { fontSize: 18, fontWeight: 700, color: theme_1.T.accent, fontFamily: theme_1.T.mono, minWidth: 24 } },
215
+ i + 1,
216
+ "."),
217
+ react_1.default.createElement("span", { style: { fontSize: 18, color: theme_1.T.text, lineHeight: 2.2, fontFamily: theme_1.T.body } }, step))))),
218
+ react_1.default.createElement("div", { style: { fontSize: 40, fontWeight: 900, color: theme_1.T.white, fontFamily: theme_1.T.head, marginTop: 40 } }, "Questions?"),
219
+ react_1.default.createElement("div", { style: { width: 60, height: 2, background: theme_1.T.accent, margin: "24px auto", borderRadius: 1 } }),
220
+ react_1.default.createElement("div", { style: { fontSize: 16, color: theme_1.T.text3, fontFamily: theme_1.T.body } }, cpaName),
221
+ react_1.default.createElement("div", { style: { fontSize: 13, color: theme_1.T.text4, fontFamily: theme_1.T.body, marginTop: 4 } }, "Prepared with Paro TaxAxis")));
222
+ };
223
+ // ═══ SLIDE CHROME ═══
224
+ return (react_1.default.createElement("div", { style: { position: "fixed", inset: 0, background: theme_1.T.bg, zIndex: 200, display: "flex", flexDirection: "column" } },
225
+ react_1.default.createElement("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", padding: "16px 24px", flexShrink: 0 } },
226
+ react_1.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: 8 } },
227
+ react_1.default.createElement("div", { style: { width: 20, height: 20, borderRadius: 5, background: theme_1.T.accent, display: "flex", alignItems: "center", justifyContent: "center" } },
228
+ react_1.default.createElement("span", { style: { fontSize: 10, fontWeight: 700, color: theme_1.T.white } }, "P")),
229
+ react_1.default.createElement("span", { style: { fontSize: 12, color: theme_1.T.text4, fontFamily: theme_1.T.body } }, "TaxAxis")),
230
+ react_1.default.createElement("span", { style: { fontSize: 12, color: theme_1.T.text4, fontFamily: theme_1.T.mono } },
231
+ currentSlide + 1,
232
+ " / ",
233
+ totalSlides)),
234
+ react_1.default.createElement("div", { style: { flex: 1, display: "flex", alignItems: "center", justifyContent: "center", overflow: "auto", padding: "0 40px" } },
235
+ react_1.default.createElement("div", { key: currentSlide, style: { maxWidth: 800, width: "100%", position: "relative" } }, renderSlide())),
236
+ react_1.default.createElement("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", padding: "16px 24px", gap: 16, flexShrink: 0, position: "relative" } },
237
+ react_1.default.createElement("button", { onClick: () => setCurrentSlide(s => Math.max(s - 1, 0)), disabled: currentSlide === 0, style: { background: "none", border: `1px solid ${currentSlide === 0 ? "transparent" : theme_1.T.border}`, borderRadius: 8, width: 36, height: 36, display: "flex", alignItems: "center", justifyContent: "center", color: currentSlide === 0 ? theme_1.T.text4 : theme_1.T.text2, fontSize: 16, cursor: currentSlide === 0 ? "default" : "pointer", fontFamily: theme_1.T.body } },
238
+ react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" },
239
+ react_1.default.createElement("path", { d: "M9 3L5 7l4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }))),
240
+ react_1.default.createElement("div", { style: { display: "flex", gap: 6 } }, Array.from({ length: totalSlides }).map((_, i) => (react_1.default.createElement("div", { key: i, onClick: () => setCurrentSlide(i), style: { width: 8, height: 8, borderRadius: "50%", background: i === currentSlide ? theme_1.T.accent : theme_1.T.border, cursor: "pointer", transition: "all .2s" } })))),
241
+ react_1.default.createElement("button", { onClick: () => setCurrentSlide(s => Math.min(s + 1, totalSlides - 1)), disabled: currentSlide === totalSlides - 1, style: { background: "none", border: `1px solid ${currentSlide === totalSlides - 1 ? "transparent" : theme_1.T.border}`, borderRadius: 8, width: 36, height: 36, display: "flex", alignItems: "center", justifyContent: "center", color: currentSlide === totalSlides - 1 ? theme_1.T.text4 : theme_1.T.text2, fontSize: 16, cursor: currentSlide === totalSlides - 1 ? "default" : "pointer", fontFamily: theme_1.T.body } },
242
+ react_1.default.createElement("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" },
243
+ react_1.default.createElement("path", { d: "M5 3l4 4-4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }))),
244
+ react_1.default.createElement("div", { style: { position: "absolute", right: 24, fontSize: 10, color: theme_1.T.text4, fontFamily: theme_1.T.mono } }, "ESC to exit"))));
245
+ }
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface ProcessingStagesProps {
3
+ stages: string[];
4
+ progress: number;
5
+ }
6
+ export declare function ProcessingStages({ stages, progress, }: ProcessingStagesProps): React.JSX.Element;
7
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ProcessingStages = ProcessingStages;
7
+ const react_1 = __importDefault(require("react"));
8
+ function ProcessingStages({ stages, progress, }) {
9
+ return (react_1.default.createElement("div", { className: "max-w-[380px] mx-auto text-left" }, stages.map((label, i) => (react_1.default.createElement("div", { key: i, className: "flex gap-2.5 items-center py-[5px] transition-opacity duration-[400ms]", style: { opacity: i <= progress ? 1 : 0.12 } },
10
+ react_1.default.createElement("span", { className: "text-xs font-semibold font-tax-axis-mono w-4 text-center", style: { color: i < progress ? "#248384" : "#9498B8" } }, i < progress ? "\u2022" : "\u00B7"),
11
+ react_1.default.createElement("span", { className: "text-[13px] font-tax-axis-body", style: {
12
+ color: i === progress ? "#FFFFFF" : "#E6E8F5",
13
+ fontWeight: i === progress ? 500 : 400,
14
+ } },
15
+ label,
16
+ i === progress && (react_1.default.createElement("span", { className: "animate-pulse ml-1 text-tax-axis-text-3" }, "..."))))))));
17
+ }
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { ClientProfile, TaxAxisScreenProps } from "../../lib/types";
3
+ export interface TaxAxisProcessingProps extends TaxAxisScreenProps {
4
+ onComplete: () => void;
5
+ profile?: ClientProfile;
6
+ }
7
+ export declare function TaxAxisProcessing({ onComplete, profile, userContext: _userContext, }: TaxAxisProcessingProps): React.JSX.Element;
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.TaxAxisProcessing = TaxAxisProcessing;
27
+ const react_1 = __importStar(require("react"));
28
+ const ProcessingStages_1 = require("./ProcessingStages");
29
+ function buildStages(profile) {
30
+ var _a;
31
+ if (!profile) {
32
+ return [
33
+ "Parsing source documents",
34
+ "Injecting IRS 2026 parameters",
35
+ "Screening 25 eligible strategies",
36
+ "Computing deterministic tax math",
37
+ "Generating IRS citations",
38
+ ];
39
+ }
40
+ const entity = profile.entity || "your";
41
+ const stateCount = ((_a = profile.states) === null || _a === void 0 ? void 0 : _a.length) || 1;
42
+ const bizName = profile.bizName || "your business";
43
+ // Verbatim from mock (App.jsx:1473-1477)
44
+ const base = [
45
+ "Parsing source documents",
46
+ "Injecting IRS 2026 parameters",
47
+ "Loading OBBBA provisions",
48
+ `Classifying ${entity} profile`,
49
+ ];
50
+ if (entity === "S-Corporation" || entity === "Partnership" || entity === "LLC") {
51
+ base.push(`Evaluating PTE + SALT cap across ${stateCount} state${stateCount > 1 ? "s" : ""}`);
52
+ }
53
+ if (entity === "S-Corporation") {
54
+ base.push("Benchmarking officer salary against BLS data");
55
+ }
56
+ base.push("Screening 25 eligible strategies", "Computing deterministic tax math", "Cross-validating source documents", "Generating IRS citations", `Assembling TaxAxis report for ${bizName}`);
57
+ return base;
58
+ }
59
+ function TaxAxisProcessing({ onComplete, profile, userContext: _userContext = "expert", }) {
60
+ const stages = (0, react_1.useMemo)(() => buildStages(profile), [profile]);
61
+ const [progress, setProgress] = (0, react_1.useState)(0);
62
+ // Staged timer from mock (App.jsx:1481). setInterval advances one stage
63
+ // per tick; after the final stage, a 1000ms delay fires onComplete.
64
+ // Target: ~8s total. Dynamic path: 10 stages × 700ms = 7s + 1s nav = 8s.
65
+ // Fallback path (no profile): 5 stages × 1400ms = 7s + 1s nav = 8s.
66
+ const stageInterval = stages.length <= 5 ? 1400 : 700;
67
+ (0, react_1.useEffect)(() => {
68
+ let i = 0;
69
+ let navTimer = null;
70
+ const iv = setInterval(() => {
71
+ i++;
72
+ setProgress(i);
73
+ if (i >= stages.length) {
74
+ clearInterval(iv);
75
+ navTimer = setTimeout(onComplete, 1000);
76
+ }
77
+ }, stageInterval);
78
+ return () => {
79
+ clearInterval(iv);
80
+ if (navTimer !== null)
81
+ clearTimeout(navTimer);
82
+ };
83
+ }, [stages.length, stageInterval, onComplete]);
84
+ const pct = Math.round((progress / stages.length) * 100);
85
+ const title = (profile === null || profile === void 0 ? void 0 : profile.bizName)
86
+ ? `Analyzing ${profile.bizName}`
87
+ : "Running Analysis";
88
+ return (react_1.default.createElement("div", { className: "pt-[60px] text-center" },
89
+ react_1.default.createElement("div", { className: "relative w-[72px] h-[72px] mx-auto mb-7" },
90
+ react_1.default.createElement("div", { className: "absolute inset-0 rounded-full animate-ping", style: {
91
+ background: "radial-gradient(circle, #248384, transparent 70%)",
92
+ opacity: 0.15,
93
+ } }),
94
+ react_1.default.createElement("div", { className: "absolute inset-0 w-[72px] h-[72px] rounded-full bg-tax-axis-surface flex items-center justify-center", style: { border: "2px solid rgba(36,131,132,0.4)" } },
95
+ react_1.default.createElement("span", { className: "text-[28px] font-bold text-tax-axis-teal-light font-tax-axis-mono" }, pct))),
96
+ react_1.default.createElement("h2", { className: "text-[22px] font-bold text-white font-tax-axis-head mb-1" }, title),
97
+ react_1.default.createElement("p", { className: "text-[13px] text-tax-axis-text-3 font-tax-axis-body mb-7" }, "Deterministic \u00B7 Temperature 0 \u00B7 IRS-cited"),
98
+ react_1.default.createElement("div", { className: "max-w-[360px] mx-auto mb-6 h-0.5 bg-tax-axis-surface-2 rounded-sm overflow-hidden" },
99
+ react_1.default.createElement("div", { className: "h-full rounded-sm transition-[width] duration-[400ms]", style: {
100
+ width: `${pct}%`,
101
+ background: "linear-gradient(90deg, #248384, #A1E5E6)",
102
+ boxShadow: "0 0 8px #248384",
103
+ } })),
104
+ react_1.default.createElement(ProcessingStages_1.ProcessingStages, { stages: stages, progress: progress })));
105
+ }
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import type { ClientProfile } from "../../lib/types";
3
+ interface ProspectCoverProps {
4
+ profile: ClientProfile;
5
+ bizName: string;
6
+ displayLo: number;
7
+ displayHi: number;
8
+ }
9
+ export declare function ProspectCover({ profile, bizName, displayLo, displayHi }: ProspectCoverProps): React.JSX.Element;
10
+ export {};