@zeniai/web-cockpit-ui 1.14.72-dev → 1.14.72-dev-betaSK01

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 (314) hide show
  1. package/dist/assets/{ACHDetailsPage-BZFkcCOG-Bm0yzLzS.js → ACHDetailsPage-BZFkcCOG-WfBPHoUX.js} +2 -2
  2. package/dist/assets/{AIPerformancePage-DtNLjoUW-C8WssBlV.js → AIPerformancePage-DtNLjoUW-CinUSJg2.js} +124 -124
  3. package/dist/assets/{AccountInfoPage-D-E_-WpE-D3xkesKo.js → AccountInfoPage-D-E_-WpE-DJyb7x4k.js} +2 -2
  4. package/dist/assets/{AccountInfoPageContent-B8GKrtCm-Bl_GPEk1.js → AccountInfoPageContent-B8GKrtCm-10kK72ec.js} +13 -13
  5. package/dist/assets/AccountLockedInfoModal-BD7Nb81U-ZCs8qzoa.js +59 -0
  6. package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-BuvZZBZ-.js +239 -0
  7. package/dist/assets/{AccountRow-Be3LIHO--AtWCxnkE.js → AccountRow-Be3LIHO--BjLJB43L.js} +32 -32
  8. package/dist/assets/AccountsPromoCardStack-CdBwPVgI-CkQ7kJh8.js +207 -0
  9. package/dist/assets/{AddAddressForCardDrawer-Lm7cn4kq-BwSuj-eK.js → AddAddressForCardDrawer-Lm7cn4kq-DzFp-OyN.js} +2 -2
  10. package/dist/assets/{AddToWalletPage-nSq-9dQy-DNXeo8yV.js → AddToWalletPage-nSq-9dQy-D56Hf4hb.js} +13 -13
  11. package/dist/assets/AgingReportsPage-L0zQxwCf-D3sUJmot.js +79 -0
  12. package/dist/assets/AllUserItems-CvwaOEhu-DISgj-9d.js +192 -0
  13. package/dist/assets/ApAgingDetailPage-B_78aSEv-DLL7XkHo.js +46 -0
  14. package/dist/assets/{AppBasePage-Br0WbQRY-C5P2SI_a.js → AppBasePage-Br0WbQRY-BAK8zLlg.js} +5 -5
  15. package/dist/assets/{AppDrawerContent-BZODvVvi-DO9-i0u3.js → AppDrawerContent-BZODvVvi-DQ-V9QL0.js} +7 -7
  16. package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-CRTSWRxG.js +47 -0
  17. package/dist/assets/ArAgingChart-BezVy1Sm-ClcQ64wd.js +24 -0
  18. package/dist/assets/{ArAgingDetailPage-BlV3iJeW-DvSoM4Rd.js → ArAgingDetailPage-BlV3iJeW-D0lCDh_0.js} +3 -3
  19. package/dist/assets/{AttachmentView-DhluaeAV-DnrJUkr5.js → AttachmentView-DhluaeAV-DsM43aN0.js} +9 -9
  20. package/dist/assets/{BankAccountSection-GDEQdiGL-CuwfGvXF.js → BankAccountSection-GDEQdiGL-CmBLlIS1.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-Di_BsiJC-Cp36wJhl.js → BankAccountWarningSection-Di_BsiJC-_Ul1tNJQ.js} +9 -9
  22. package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-ik9FJnty.js +425 -0
  23. package/dist/assets/BillDetailPage-CDAh8Jtl-wk3WJY1W.js +266 -0
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BzyTn4mC-DYCBn6RW.js → BillPayApprovalRuleDetailPage-BzyTn4mC-DxDRXjZW.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DDJ-LxQz-D20J03DB.js → BillPayApprovalRulesPage-DDJ-LxQz-B-4hhNoy.js} +7 -7
  26. package/dist/assets/BillPayPromoPage-B2YcxWc9-ChjVVUdj.js +84 -0
  27. package/dist/assets/BillPaySetUpPage-oJvoWpFu-ZQ44J65y.js +42 -0
  28. package/dist/assets/BillingSettingsPage-BRsKYzT5-C1YZEc97.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-09a60H-u.js +1 -0
  30. package/dist/assets/{BoxItem-COIjjFrn-DqU4ZyNU.js → BoxItem-COIjjFrn-CYZK_lth.js} +4 -4
  31. package/dist/assets/BusinessVerificationPage-Nw_fedst-Ce7UF4J6.js +138 -0
  32. package/dist/assets/{CardNumberSubText-CmhH95Ff-CLBGKyAX.js → CardNumberSubText-CmhH95Ff-D70_vfvB.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-BPLjvuA3-362WFi2j.js → CashbackDetailPage-BPLjvuA3-D2AlurqK.js} +56 -56
  34. package/dist/assets/{ChargeCardDetailPage-qOu4cPGd-BUoeKuHJ.js → ChargeCardDetailPage-qOu4cPGd-CMQ9x73T.js} +215 -215
  35. package/dist/assets/ChargeCardListPage-v5hH98Wi-BhiUhdgm.js +406 -0
  36. package/dist/assets/{ChargeCardListTable-BGWV4zJl-fPTlw7hA.js → ChargeCardListTable-BGWV4zJl-CcT6S7FA.js} +51 -51
  37. package/dist/assets/ChargeCardPromoPage-CPEaGOL3-CiA1pNTj.js +222 -0
  38. package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-Bqw8Kqbv.js +36 -0
  39. package/dist/assets/{ChargeCardStatementsPage-CJgUrcLz-BpTcE_Fq.js → ChargeCardStatementsPage-CJgUrcLz-BY-SWhAj.js} +3 -3
  40. package/dist/assets/ChargeCardUtils-BRgkrCTs-Bo37IpfS.js +1 -0
  41. package/dist/assets/{ChaseOverlay-BC_4vwtb-ZJ37WP7g.js → ChaseOverlay-BC_4vwtb-BQqHx8M-.js} +4 -4
  42. package/dist/assets/{CheckDepositDrawerPage-CDo5E13X-BcLnzbHC.js → CheckDepositDrawerPage-CDo5E13X-CKNKZDF1.js} +21 -21
  43. package/dist/assets/CollapsableReportTable-7iAngywY-BhPujiYA.js +2932 -0
  44. package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-B2MTqDnr.js +260 -0
  45. package/dist/assets/{CompanyPassportCard-D3F01eJL-CYg3XwZh.js → CompanyPassportCard-D3F01eJL-BhEJq4YF.js} +1 -1
  46. package/dist/assets/CompanyPassportPage-BQoEcPJr-CLTXsXdq.js +574 -0
  47. package/dist/assets/CompleteProfile-D5e9TQgy-B3NCfzYL.js +52 -0
  48. package/dist/assets/{ConfettiBurst--HIHB7Os-CFkZhGnX.js → ConfettiBurst--HIHB7Os-S4QyIwiq.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-D9jmSrKr-BqbzMjKm.js → CreateOrEditVendorPage-D9jmSrKr-DpdjBsSE.js} +11 -11
  50. package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-C-tETdxW.js +224 -0
  51. package/dist/assets/{CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js → CreditCardPaymentPlgSection-8ZShMO31-COciJwfu.js} +10 -10
  52. package/dist/assets/{CurrencySelectField-nhg_dhDw-Ct_sJsLw.js → CurrencySelectField-nhg_dhDw-nZHVWMo0.js} +6 -6
  53. package/dist/assets/{CustomerOnboardingActivationPage-CoGvz7Kd-2HboMU2B.js → CustomerOnboardingActivationPage-CoGvz7Kd-1Tt5lNh3.js} +5 -5
  54. package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-CdqN8qku.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DUGRKWtN-Bm0dGA9J.js → CustomerOnboardingDetailPageSkeleton-DUGRKWtN-ClKlbRH6.js} +13 -13
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Cc5frP29-BNFSu_0c.js → CustomerOnboardingNoStepsPage-Cc5frP29-Pt9D5fwX.js} +6 -6
  57. package/dist/assets/CustomerOnboardingPage-zBqp9QN6-BMM-roBm.js +107 -0
  58. package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-DgRG1l8f.js +202 -0
  59. package/dist/assets/{Dashboard-D6Ba5oj0-DGZ5Ekyf.js → Dashboard-D6Ba5oj0-C5iZr7Dc.js} +262 -262
  60. package/dist/assets/DashboardReportPage-DTMbYOWH-B0H-UpGg.js +371 -0
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Locz2zHR-BPk9MxB4.js → DashboardSidebarBackgroundAnimation-Locz2zHR-Bhgpjfq-.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-B0BGwVqF-CxL2uxQm.js → DepositAccTransactionItem-B0BGwVqF-Cwta5ei3.js} +5 -5
  63. package/dist/assets/DepositAccTransactionListPage-CcO673ZL-D1h5XemH.js +66 -0
  64. package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bhq4tM9b.js +21 -0
  65. package/dist/assets/DownloadOverlay-DRcasKoB-BTfb8tZj.js +439 -0
  66. package/dist/assets/{DrawerPage-BRD6cE6J-CdG9rNJx.js → DrawerPage-BRD6cE6J-1UMYAHb7.js} +13 -13
  67. package/dist/assets/EditPeoplePage-Zzo62if7-Clw_H_tG.js +55 -0
  68. package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-DgdwTZwz.js +865 -0
  69. package/dist/assets/EntityDetailPage-CzlzOW8n-CjIrlTQm.js +18 -0
  70. package/dist/assets/{EntitySummarySection-BRt1kPDf-BrvMzC_z.js → EntitySummarySection-BRt1kPDf-DQbEIQFx.js} +28 -28
  71. package/dist/assets/{ExpenseAutomationOverviewPage-vUkGameq-D28DcERt.js → ExpenseAutomationOverviewPage-vUkGameq-CHnaqssF.js} +50 -50
  72. package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-DxIRsn8B.js +1650 -0
  73. package/dist/assets/ExpressPayPage-DdQiFzDu-CXe6diRB.js +168 -0
  74. package/dist/assets/{FeaturePreviewPage-CQN2xThT-D8GcVVCI.js → FeaturePreviewPage-CQN2xThT-DJXN60Ac.js} +3 -3
  75. package/dist/assets/{FollowStepsSection-DdwEVWhG-XjqeMDlz.js → FollowStepsSection-DdwEVWhG-yjJ5FRCa.js} +21 -21
  76. package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Dz5cpAt1.js +291 -0
  77. package/dist/assets/HelpButton-BNMy-6ce-CVlMGZqS.js +28 -0
  78. package/dist/assets/{InformationCardStack-Cw7c9Pnd-JKEjusS_.js → InformationCardStack-Cw7c9Pnd-BX2LTL8l.js} +2 -2
  79. package/dist/assets/InsightsCardStack-CaMZiCnn-DLt2ZmbV.js +79 -0
  80. package/dist/assets/{InsightsSection-JIKb9lz3-CSUvMdaP.js → InsightsSection-JIKb9lz3-Hi0aN8hq.js} +5 -5
  81. package/dist/assets/{IntegrationsSettingsPage-h4pel2yK-CfkisAjm.js → IntegrationsSettingsPage-h4pel2yK-CxqwarZy.js} +4 -4
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-C2SnHEV1-D4h6wt17.js → InternationalWireSwiftDetailsPage-C2SnHEV1-CzlIxaS1.js} +16 -16
  83. package/dist/assets/{InternationalWireVerificationPage-Dk11ztF7-CGQwkBKG.js → InternationalWireVerificationPage-Dk11ztF7-BCCRbUea.js} +28 -28
  84. package/dist/assets/{InviteFormPage-CrtH0cSG-lBcBfRNC.js → InviteFormPage-CrtH0cSG-eVIYbN0r.js} +16 -16
  85. package/dist/assets/{InvitePageListView-DUoopPip-D3WES4Ay.js → InvitePageListView-DUoopPip-D5qrm4ww.js} +164 -164
  86. package/dist/assets/InvitePeoplePage-C3ecL8XJ-olYxQVFB.js +12 -0
  87. package/dist/assets/InvoiceUploadSection-DoR834b4-CjFOCIIZ.js +140 -0
  88. package/dist/assets/{IssueChargeCardPage-D6DCohbK-CY0NLJ-D.js → IssueChargeCardPage-D6DCohbK-BMG4Ljit.js} +10 -10
  89. package/dist/assets/{LabeledAddressValue-C3R0DSjj-DSFQoK0_.js → LabeledAddressValue-C3R0DSjj-CpxXKm9c.js} +1 -1
  90. package/dist/assets/LabeledAddressValueField-YP7bXlgZ-D9-PqJNp.js +45 -0
  91. package/dist/assets/{LabeledControlledCheckBoxField-zwoLFM1n-WAKwiqVu.js → LabeledControlledCheckBoxField-zwoLFM1n-B44wDW2V.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js → LabeledCreatableSingleSelectField-BhaeopJt-tsmH64cn.js} +7 -7
  93. package/dist/assets/LabeledDocumentField-ED03S2kQ-BGespvxP.js +41 -0
  94. package/dist/assets/{LabeledDropDownFormattedTextField-brzU_fnp-DR9C1PhE.js → LabeledDropDownFormattedTextField-brzU_fnp-hUkbh0bF.js} +5 -5
  95. package/dist/assets/{LabeledText-BESSkt5Z-DvRhicFs.js → LabeledText-BESSkt5Z-CPDVK04g.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-BRFp4N3Z.js → LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-DaWgPr9f.js} +18 -18
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BXTCN4j2-C9dcF_vL.js → LabeledZeniRolesDropDownField-BXTCN4j2-CLEMt0Ht.js} +33 -33
  98. package/dist/assets/LinkJETransactionPage-_ROjxBMO-C6IEO3Ec.js +98 -0
  99. package/dist/assets/{LockCardPage-DYfgK11k-CA2sqFlt.js → LockCardPage-DYfgK11k-BFAZ4k7o.js} +71 -71
  100. package/dist/assets/LowBalancePopup-CZDcHxyW-BSR036zV.js +34 -0
  101. package/dist/assets/{MagicLinkACHDetailsPage-CLXcRbZ--CVcTUs2d.js → MagicLinkACHDetailsPage-CLXcRbZ--B-X6oebP.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CZlZr96w-BPglJFOV.js → MagicLinkDomesticWireDetailsPage-CZlZr96w-DllJxuHV.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DhPjvv0o-DFwZaRYm.js → MagicLinkInternationalWireDetailsPage-DhPjvv0o-BIaiGIsd.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-Bh2nlLPN-Ddx1hbRe.js → MagicLinkSuccessPage-Bh2nlLPN-6rfZopUb.js} +3 -3
  105. package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-Dx0fyRw5.js +17 -0
  106. package/dist/assets/{MailingDetailsSection-9RwlQxVG-C09sdGhg.js → MailingDetailsSection-9RwlQxVG-_UrE81Sw.js} +2 -2
  107. package/dist/assets/{MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js → MeetingCalenderPopup-BxV_UIXP-BXGtVHle.js} +4 -4
  108. package/dist/assets/Menu-B6iTf2H7-Cu2Vb11u.js +17 -0
  109. package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-uU5Nku5W.js +110 -0
  110. package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-yyVAdXqO.js +6 -0
  111. package/dist/assets/MyProfileSettingsPage-BRK5nWg2-BCkp79gR.js +85 -0
  112. package/dist/assets/{NavBarWithPicker-CKh_HMfV-U1f60LTo.js → NavBarWithPicker-CKh_HMfV-i4ObGPrS.js} +4 -4
  113. package/dist/assets/{NavigationArrow-XZmJpDrE-BSGdgz-m.js → NavigationArrow-XZmJpDrE-DolsLofY.js} +2 -2
  114. package/dist/assets/{NavigationDots-BxPgEW_p-CnLRJgGA.js → NavigationDots-BxPgEW_p-Cjr25BX_.js} +3 -3
  115. package/dist/assets/{NewGlobalMerchantPage-CQzrDe0S-CFbklyjG.js → NewGlobalMerchantPage-CQzrDe0S-K2NUXsKS.js} +35 -35
  116. package/dist/assets/{NoDataChart-5E72SElf-Bfyft1Tp.js → NoDataChart-5E72SElf-3CnLxisw.js} +4 -4
  117. package/dist/assets/{NoDataTable-BwHbkm3l-C4AJlFQY.js → NoDataTable-BwHbkm3l-VTHrTfOq.js} +2 -2
  118. package/dist/assets/{NotFoundPage-6udaksBZ-Bdrzyyzv.js → NotFoundPage-6udaksBZ-DUgTbMe0.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-DkYmxMgg-B7fNoy2R.js → NotificationSettingsPage-DkYmxMgg-BVRECpS0.js} +32 -32
  120. package/dist/assets/{NotificationsListConfig-FGxLgO1o-Bjqs17aQ.js → NotificationsListConfig-FGxLgO1o-C0kfEx8A.js} +1 -1
  121. package/dist/assets/NotificationsPage-C7lSAnUb-CEUwTZM_.js +685 -0
  122. package/dist/assets/{OpExByVendorPage-CM0RluUk-BgpW2giu.js → OpExByVendorPage-CM0RluUk-PZB-G7xm.js} +4 -4
  123. package/dist/assets/{OverlayContainerPage-BKHs_4eI-mLdiagVZ.js → OverlayContainerPage-BKHs_4eI-CSsJiY_P.js} +2 -2
  124. package/dist/assets/PandLWithForecastPage-W4jlNjml-8wxKAhbo.js +107 -0
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js → PaymentAccountSetupBillingAddressSection-DQ82eP9Q-Cwm2aoR2.js} +9 -9
  126. package/dist/assets/{PeoplePage-CB3T3u_F-DC1PdCPq.js → PeoplePage-CB3T3u_F-BR69e4ui.js} +96 -96
  127. package/dist/assets/{PortfolioAllocationFormPage-CZkJD6tu-CmTdPnvM.js → PortfolioAllocationFormPage-CZkJD6tu-1mutznS7.js} +13 -13
  128. package/dist/assets/{PortfolioDetails-D4yT8r35-DSk0Sc23.js → PortfolioDetails-D4yT8r35-BZAutCbg.js} +34 -34
  129. package/dist/assets/{ProductsCarousel-CR7_rk0K-DQWJaP-C.js → ProductsCarousel-CR7_rk0K-CKMGS-I4.js} +7 -7
  130. package/dist/assets/{PromoBaseCards-BAPolzxE-DLtmx-3v.js → PromoBaseCards-BAPolzxE-DjUVr5kX.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-D3eazhj7-fJDNmSLU.js → QBOConnectionDialog-D3eazhj7-DCdAj667.js} +7 -7
  132. package/dist/assets/{QBOSetupSection-Cjjhm_Ee-CrlXRkit.js → QBOSetupSection-Cjjhm_Ee-CX61tnWs.js} +12 -12
  133. package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DDLdjGbX.js +26 -0
  134. package/dist/assets/{ReimbursementApprovalRulesPage-GSzJGSuy-H2GhhV11.js → ReimbursementApprovalRulesPage-GSzJGSuy-DOLnlfRe.js} +12 -12
  135. package/dist/assets/ReimbursementDetailPage-AvqEBxbz-ByJDRCe5.js +314 -0
  136. package/dist/assets/ReimbursementPromoPage-PshodHUZ-CEBQKb7P.js +84 -0
  137. package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-BMbaH1eU.js +140 -0
  138. package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-CEJlVV08.js +1 -0
  139. package/dist/assets/{ReloadCard-Dpoxd9nE-B9DlyhD4.js → ReloadCard-Dpoxd9nE-_RGkkZLm.js} +5 -5
  140. package/dist/assets/{ReportTableViewSelector-Ci-WKrCO-DAZRgQwg.js → ReportTableViewSelector-Ci-WKrCO-D0sA8766.js} +30 -30
  141. package/dist/assets/ReportsPage-C7zirS74-oNrbhh6a.js +121 -0
  142. package/dist/assets/{RevenueChart-CXMBT3cr-DnDEiqPG.js → RevenueChart-CXMBT3cr-BigDcfmP.js} +29 -29
  143. package/dist/assets/ReviewDetailsPage-ClsyL5-w-rKSUEvaS.js +290 -0
  144. package/dist/assets/{ReviewOverlay-C6Kx7Hfm-IahzUsv3.js → ReviewOverlay-C6Kx7Hfm-Aab2M4el.js} +12 -12
  145. package/dist/assets/{RoleWithToolTip-BqI6M0x_-CwUqJeb5.js → RoleWithToolTip-BqI6M0x_-3Pz3ZAbU.js} +2 -2
  146. package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-Dm8QVj-0.js +37 -0
  147. package/dist/assets/ScheduleDetailsPage-BftjSvA7-D97uCI5t.js +37 -0
  148. package/dist/assets/{ScheduleSequenceTable-lTN7r0p4-BFWt_8N-.js → ScheduleSequenceTable-lTN7r0p4-BmAjQVGV.js} +42 -42
  149. package/dist/assets/ScreenRoutes-Du6t5Ig_.js +206 -0
  150. package/dist/assets/SetUpAccountSection-Bnbi8X23-7-Jadv9H.js +378 -0
  151. package/dist/assets/{SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js → SetUpDefaultSection-Bm1eZSgT-9DFPAVat.js} +13 -13
  152. package/dist/assets/{SignIn-BlISBvt5-C9HXqHPg.js → SignIn-BlISBvt5-BSeULTEW.js} +28 -28
  153. package/dist/assets/SignInScreen-BN2xWnU-.js +1 -0
  154. package/dist/assets/SpendManagementListViewPage-ChNp8dgm-ByNxcaX6.js +123 -0
  155. package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-C5z49u7s.js +754 -0
  156. package/dist/assets/SpendManagementSection-kucZgC-H-Cqflt6S1.js +230 -0
  157. package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-9bAK-YlL.js +206 -0
  158. package/dist/assets/{StatementItem-BVIVLdDn-BLcyHqWZ.js → StatementItem-BVIVLdDn-DWQxeT2X.js} +2 -2
  159. package/dist/assets/StatementsPage-KnLUSJbm-DVR36Ge4.js +58 -0
  160. package/dist/assets/{StatusSwitcher-aAizq1mr-D4E7X1zy.js → StatusSwitcher-aAizq1mr-c-jcIGD9.js} +2 -2
  161. package/dist/assets/{SubTabSwitcher-COrYJ6CW-B2hsvJe_.js → SubTabSwitcher-COrYJ6CW-BIZF-iNv.js} +1 -1
  162. package/dist/assets/{SummaryCard-Dv0dWKBw-BnK7xgrF.js → SummaryCard-Dv0dWKBw-CGu-GHYa.js} +1 -1
  163. package/dist/assets/TaskManagementPage-CPLyyK1Y-BZe-OFxL.js +508 -0
  164. package/dist/assets/{TimeRangeSwitcher-ifkHfqEg-CGFdCObN.js → TimeRangeSwitcher-ifkHfqEg-VY1vzvIS.js} +3 -3
  165. package/dist/assets/{TimeframeSwitcher-BP-PxO5g-DG6ysLlp.js → TimeframeSwitcher-BP-PxO5g-DxTIS9PI.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-DH-PfsTQ-Dd12kokF.js → TimeframeSwitcherWithToggle-DH-PfsTQ-D7U0L-cV.js} +1 -1
  167. package/dist/assets/{TopExCard-Bam-Q4MV-GCmLzO6i.js → TopExCard-Bam-Q4MV-BsP_HKjG.js} +6 -6
  168. package/dist/assets/{TopExDetailPage-P0Twt5zZ-BElfoauE.js → TopExDetailPage-P0Twt5zZ-CoHp8hDQ.js} +12 -12
  169. package/dist/assets/TransactionDetailPage-D1Z1f-DD-BPMl_wDr.js +912 -0
  170. package/dist/assets/TransactionList-BzJEbOV9-0ST5sY1-.js +147 -0
  171. package/dist/assets/{TransactionListBig-u4SJBZTE-BZvqZwTB.js → TransactionListBig-u4SJBZTE-BlGBIBoN.js} +44 -44
  172. package/dist/assets/{TransactionListPage-D4GJ6i3l-BXLL3BhX.js → TransactionListPage-D4GJ6i3l-yaso0Nlb.js} +3 -3
  173. package/dist/assets/{TransactionVendorDetailPage-CuFHbm8c-Cl9iluIt.js → TransactionVendorDetailPage-CuFHbm8c-kFca8x3E.js} +5 -5
  174. package/dist/assets/{TransferDrawerPage-GD2I8ptj-B7cXbGdy.js → TransferDrawerPage-GD2I8ptj-CANT8JC_.js} +27 -27
  175. package/dist/assets/TreasuryOverviewPage-DySunaqy-Du5jK6WV.js +708 -0
  176. package/dist/assets/{TreasuryPromoPage-DW1f8_q1-CZjoBD0v.js → TreasuryPromoPage-DW1f8_q1-CkWefV3r.js} +6 -6
  177. package/dist/assets/{TreasurySetupPage-53k6ARHC-8YVNt5Wt.js → TreasurySetupPage-53k6ARHC-DuoYqIOy.js} +3 -3
  178. package/dist/assets/{TreasuryStatementsPage-pIshKNaR-Dtfk2lx_.js → TreasuryStatementsPage-pIshKNaR--8vN-IgR.js} +5 -5
  179. package/dist/assets/{TreasuryTaxLetterPage-B3PkB1al-CKVKJh1V.js → TreasuryTaxLetterPage-B3PkB1al-CkqZdxpj.js} +5 -5
  180. package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-DKViGoiZ.js +576 -0
  181. package/dist/assets/TrendChart-B_5D-Zud-Cw_zgD-R.js +16 -0
  182. package/dist/assets/{TrendWithTransactions-mI_El5D1-SbfSjDf-.js → TrendWithTransactions-mI_El5D1-DUVZm_U-.js} +4 -4
  183. package/dist/assets/{UncategorizedAccountsMappingPage-LQeq8Gdv-BxpsIXJf.js → UncategorizedAccountsMappingPage-LQeq8Gdv-BNgZRg4x.js} +47 -47
  184. package/dist/assets/{UnitIntegrationPage-XOWqGHla-DR8O2yO4.js → UnitIntegrationPage-XOWqGHla-BIoTpmZ_.js} +11 -11
  185. package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-BNMbNbJQ.js +38 -0
  186. package/dist/assets/{Vendor2FAPopup-BfqIHZBb-CksyyTez.js → Vendor2FAPopup-BfqIHZBb-DUpQFrOM.js} +1 -1
  187. package/dist/assets/{VendorACHDetailsPage-CswCvAFH-CdUK-HJH.js → VendorACHDetailsPage-CswCvAFH-DqnJleBx.js} +1 -1
  188. package/dist/assets/VendorDetailPage-CEX7xMIN-D29fVYfj.js +257 -0
  189. package/dist/assets/{VendorDomesticWireDetailsPage-DxrSjlTR-B4ZHtbXA.js → VendorDomesticWireDetailsPage-DxrSjlTR-GbXdyYXP.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-q1gQ8keD-BmDatzoV.js → VendorFiling1099EditablePage-q1gQ8keD-GKQT7vTw.js} +32 -32
  191. package/dist/assets/VendorFirstReviewPage-D9ogNmAK-DwoL9x7s.js +730 -0
  192. package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-N7HCxAFy.js +152 -0
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-W0s1zQNC-ZgE8KOcO.js → VendorInternationalWireSwiftDetailsPage-W0s1zQNC-eVlfJ9f_.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-C13Z2HN9-C2XOcHy1.js → VendorsAccountsSection-C13Z2HN9-DvGRJwYY.js} +4 -4
  195. package/dist/assets/VerifyDevice-C27gEWkZ-BrEq9dHz.js +112 -0
  196. package/dist/assets/{VideoPlayer-ByyqUuhG-DTMNeCaX.js → VideoPlayer-ByyqUuhG-CcmvFcG0.js} +1 -1
  197. package/dist/assets/{VideoPopup-DJrQQTPq-DoXO-Vwb.js → VideoPopup-DJrQQTPq-BZRShVLd.js} +4 -4
  198. package/dist/assets/{WarningsDrawerPage-B3Ht3VnM-DBDTIhyB.js → WarningsDrawerPage-B3Ht3VnM-C_aFzWZK.js} +5 -5
  199. package/dist/assets/ZeniAccountDetailPage-egmysAfI-CX7srLCt.js +300 -0
  200. package/dist/assets/{ZeniAccountListViewPage-q_v2FogF-B-baYGeD.js → ZeniAccountListViewPage-q_v2FogF-wW_PUJNB.js} +12 -12
  201. package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-azEwN9c2.js +14 -0
  202. package/dist/assets/{ZeniAccountPromoPage-CzncR6vK-DAONZr9A.js → ZeniAccountPromoPage-CzncR6vK-CoCFGvia.js} +21 -21
  203. package/dist/assets/{ZeniAccountSetupPage-TcdzEL_V-CApQPT0B.js → ZeniAccountSetupPage-TcdzEL_V-CPTq7KjK.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-B7Q6IUGC-Ca3UXoxG.js → ZeniCopyright-B7Q6IUGC-DjtbTVnp.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-Dmf5xxv4-D_ugGHJW.js → ZeniTransferAmountSlider-Dmf5xxv4-D-BoRJmd.js} +3 -3
  206. package/dist/assets/addSubtractPeriod-CFvkmqm8.js +1 -0
  207. package/dist/assets/analyticsHelper-L-FpsGLH.js +1 -0
  208. package/dist/assets/analyticsHelper-or1KkBWk-CU2Z2CeD.js +1 -0
  209. package/dist/assets/{chartTypes-DCvOVjlS-BdPIN5WI.js → chartTypes-DCvOVjlS-CF3jsUNb.js} +1 -1
  210. package/dist/assets/{commonDimensions-C32v1F7H-CiAEfJl2.js → commonDimensions-C32v1F7H-C9uaBJ8J.js} +1 -1
  211. package/dist/assets/{detailCommon-CRAGrqoO-Cq9phP1q.js → detailCommon-CRAGrqoO-5xMc7u9M.js} +8 -8
  212. package/dist/assets/downloadPdf-D7p3yKmg-DrJJdcEl.js +1 -0
  213. package/dist/assets/{index-sAOH0Fje.js → index-kF4u7Flm.js} +511 -704
  214. package/dist/assets/{mapLoadingInProgressToTreeNode-CRwG2DSD-B4LnWZMC.js → mapLoadingInProgressToTreeNode-CRwG2DSD-CLLcsBiK.js} +1 -1
  215. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C9O-C2dp-BYZLhSZo.js → mapSectionWithAcOnlyToTreeNode-C9O-C2dp-4sjxXlit.js} +1 -1
  216. package/dist/assets/{mapSpacerToTreeNode-5aJk-sLn-DpF_Q8pH.js → mapSpacerToTreeNode-5aJk-sLn-CeZutbYy.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-CnviLujI-Do2_oG27.js → mapTimeframeBalancesToTreeNode-CnviLujI-rcfKFEh1.js} +1 -1
  218. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv4d4PqE-C559SZVp.js → mapTimeframeBalancesToTreeNode-Cv4d4PqE-BmreU2CJ.js} +1 -1
  219. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-yJCRTG35.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-CkRgUU-m.js} +1 -1
  220. package/dist/assets/redux-D-TY61DZ.js +12 -0
  221. package/dist/assets/{toCOABalancesWithID-B3yVGPrV-B_BzNOYP.js → toCOABalancesWithID-B3yVGPrV-Dj01dEre.js} +1 -1
  222. package/dist/assets/toChartData-DEW0iT7T-DaQT4Adc.js +1 -0
  223. package/dist/assets/{treasuryColorHelper-13LJ_xhk-LqN_6Xl4.js → treasuryColorHelper-13LJ_xhk-5-aGYtqD.js} +1 -1
  224. package/dist/assets/{uploadAttachment-DVy2pZeJ-X-xSyfvF.js → uploadAttachment-DVy2pZeJ-DL6B1oGY.js} +25 -25
  225. package/dist/assets/{uploadReceipts-Dp1dvCjf-Bw0_dVvQ.js → uploadReceipts-Dp1dvCjf-BQPyxtgi.js} +1 -1
  226. package/dist/index.html +1 -1
  227. package/package.json +2 -2
  228. package/dist/assets/AccountLockedInfoModal-BD7Nb81U-CexK1k9m.js +0 -59
  229. package/dist/assets/AccountReconDetailsDrawerPage-D-_ME0pV-s74oVSdU.js +0 -239
  230. package/dist/assets/AccountsPromoCardStack-CdBwPVgI-0eZTGbZE.js +0 -207
  231. package/dist/assets/AgingReportsPage-L0zQxwCf-BGxthXxn.js +0 -79
  232. package/dist/assets/AllUserItems-CvwaOEhu-4FgiUHmj.js +0 -192
  233. package/dist/assets/ApAgingDetailPage-B_78aSEv-BIkW3as9.js +0 -46
  234. package/dist/assets/ApprovalRulesSettingsPage-Dxd7A3hZ-B57JU70m.js +0 -47
  235. package/dist/assets/ArAgingChart-BezVy1Sm-UplSlTlX.js +0 -24
  236. package/dist/assets/BankConnectionsSettingsPage-D5hI4xtm-CIHmOttI.js +0 -425
  237. package/dist/assets/BillDetailPage-CDAh8Jtl-0qBbZ__0.js +0 -266
  238. package/dist/assets/BillPayPromoPage-B2YcxWc9-CwLnyiow.js +0 -84
  239. package/dist/assets/BillPaySetUpPage-oJvoWpFu-CYkgRBSH.js +0 -42
  240. package/dist/assets/BillingSettingsPage-BRsKYzT5-gKM6YCmc.js +0 -44
  241. package/dist/assets/BillsBulkReviewDrawerPage-B7tORIok-Cjhni78W.js +0 -1
  242. package/dist/assets/BusinessVerificationPage-Nw_fedst-D0V3bhmc.js +0 -138
  243. package/dist/assets/ChargeCardListPage-v5hH98Wi-D_Ffaz0x.js +0 -406
  244. package/dist/assets/ChargeCardPromoPage-CPEaGOL3-BJBmWN7Q.js +0 -222
  245. package/dist/assets/ChargeCardSetupPage-G5Rn0o6y-DXJQIwPQ.js +0 -36
  246. package/dist/assets/ChargeCardUtils-BRgkrCTs-DoVoCmwL.js +0 -1
  247. package/dist/assets/CollapsableReportTable-7iAngywY-CxWB4sRz.js +0 -2932
  248. package/dist/assets/CompanyOfficerDetailsSection-CJKyxEnf-BshC7d2B.js +0 -260
  249. package/dist/assets/CompanyPassportPage-BQoEcPJr-DzLqV-NZ.js +0 -574
  250. package/dist/assets/CompleteProfile-D5e9TQgy-ppOK1lFi.js +0 -52
  251. package/dist/assets/CreditCardPaymentDrawerPage-DXeq4z9l-Dr585X5v.js +0 -224
  252. package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-4OaWohod.js +0 -1
  253. package/dist/assets/CustomerOnboardingPage-zBqp9QN6-D_UHEoUt.js +0 -107
  254. package/dist/assets/CustomerOnboardingProductSuitePage-BbJ4oiCI-C_0KKlnp.js +0 -202
  255. package/dist/assets/DashboardReportPage-DTMbYOWH-CSMllwg6.js +0 -371
  256. package/dist/assets/DepositAccTransactionListPage-CcO673ZL-CiLAoQqZ.js +0 -66
  257. package/dist/assets/DomesticWireDetailsPage-D5hbPNCt-Bj16Fg_f.js +0 -21
  258. package/dist/assets/DownloadOverlay-DRcasKoB-BDQCkt6Q.js +0 -439
  259. package/dist/assets/EditPeoplePage-Zzo62if7-CQfgpQsa.js +0 -55
  260. package/dist/assets/EditReimbursementDetailPage-D59OJdZ1-7T5j9Uz8.js +0 -865
  261. package/dist/assets/EntityDetailPage-CzlzOW8n-DjZ6eItY.js +0 -18
  262. package/dist/assets/ExpenseAutomationPage-Cm_IiRlb-Ch0agMlw.js +0 -1650
  263. package/dist/assets/ExpressPayPage-DdQiFzDu-ykW984zo.js +0 -168
  264. package/dist/assets/GlobalReviewListPage-DHn2Uk8R-Cd3V8M7p.js +0 -291
  265. package/dist/assets/HelpButton-BNMy-6ce-WFq-iELy.js +0 -28
  266. package/dist/assets/InsightsCardStack-CaMZiCnn-D5ut2TNQ.js +0 -79
  267. package/dist/assets/InvitePeoplePage-C3ecL8XJ-D06hBumB.js +0 -12
  268. package/dist/assets/InvoiceUploadSection-DoR834b4-BezkawDL.js +0 -140
  269. package/dist/assets/LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js +0 -45
  270. package/dist/assets/LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js +0 -41
  271. package/dist/assets/LinkJETransactionPage-_ROjxBMO-DP6JabBY.js +0 -98
  272. package/dist/assets/LowBalancePopup-CZDcHxyW-BHOAXZjC.js +0 -34
  273. package/dist/assets/MagicLinkTitleSection-Cn1v72Rs-BaSRKY-c.js +0 -17
  274. package/dist/assets/Menu-B6iTf2H7-Cqx4dVPp.js +0 -17
  275. package/dist/assets/MyBankConnectionsSettingsPage-IPPiH6jv-CVF8iXYJ.js +0 -110
  276. package/dist/assets/MyPendingActivationChargeCardListPage-BTGb1yIE-BD419NGA.js +0 -6
  277. package/dist/assets/MyProfileSettingsPage-BRK5nWg2--GwgfIws.js +0 -85
  278. package/dist/assets/NotificationsPage-C7lSAnUb-wDRHsOkp.js +0 -685
  279. package/dist/assets/PandLWithForecastPage-W4jlNjml-Bcn3UKYp.js +0 -107
  280. package/dist/assets/ReimbursementApprovalRuleDetailPage-eidNY097-DmIjK42h.js +0 -26
  281. package/dist/assets/ReimbursementDetailPage-AvqEBxbz-fUbgpa2M.js +0 -314
  282. package/dist/assets/ReimbursementPromoPage-PshodHUZ-B_XNUegE.js +0 -84
  283. package/dist/assets/ReimbursementSetUpPage-6P4FT-UC-Bw__edeG.js +0 -140
  284. package/dist/assets/ReimbursementsBulkReviewDrawerPage-Cas6GzVp-BQcspCuT.js +0 -1
  285. package/dist/assets/ReportsPage-C7zirS74-CyyHiNy4.js +0 -121
  286. package/dist/assets/ReviewDetailsPage-ClsyL5-w-_y4o463o.js +0 -290
  287. package/dist/assets/ScheduleDetailsFixedAssetsPage-zFyJPVpN-BSd6OZtz.js +0 -37
  288. package/dist/assets/ScheduleDetailsPage-BftjSvA7-Jy_FtZQR.js +0 -37
  289. package/dist/assets/ScreenRoutes-en4svsq9.js +0 -206
  290. package/dist/assets/SetUpAccountSection-Bnbi8X23-DL-18RCf.js +0 -378
  291. package/dist/assets/SignInScreen-Ba17TSWH.js +0 -1
  292. package/dist/assets/SpendManagementListViewPage-ChNp8dgm-BhMjXPdH.js +0 -123
  293. package/dist/assets/SpendManagementPerTabPage-D-bOr2-6-GaRieOUe.js +0 -754
  294. package/dist/assets/SpendManagementSection-kucZgC-H-DLgSRXEX.js +0 -230
  295. package/dist/assets/SpendMgmtSetupAccountSection-de7hEmtE-CX-1PNOC.js +0 -206
  296. package/dist/assets/StatementsPage-KnLUSJbm-DvU_Y3UP.js +0 -58
  297. package/dist/assets/TaskManagementPage-CPLyyK1Y-ena6uodh.js +0 -508
  298. package/dist/assets/TransactionDetailPage-D1Z1f-DD-DTPxqy3v.js +0 -912
  299. package/dist/assets/TransactionList-BzJEbOV9-BQZ8x4Oq.js +0 -147
  300. package/dist/assets/TreasuryOverviewPage-DySunaqy-CWB-hp0S.js +0 -708
  301. package/dist/assets/TreasuryTransferOrReviewPage-Dzq-FxSM-CX84O_mN.js +0 -576
  302. package/dist/assets/TrendChart-B_5D-Zud-BUU2-6nI.js +0 -16
  303. package/dist/assets/UploadAdditionalDocumentOverlay-DhXRLBEg-DvVrgitE.js +0 -38
  304. package/dist/assets/VendorDetailPage-CEX7xMIN-Djo4PloX.js +0 -257
  305. package/dist/assets/VendorFirstReviewPage-D9ogNmAK-PlB10gEr.js +0 -730
  306. package/dist/assets/VendorInternationalWireDetailsPage-Ct689KuY-DAoPjpj5.js +0 -152
  307. package/dist/assets/VerifyDevice-C27gEWkZ-C7pLL5Wm.js +0 -112
  308. package/dist/assets/ZeniAccountDetailPage-egmysAfI-DFbZv9KZ.js +0 -300
  309. package/dist/assets/ZeniAccountNavBarPieces-HNIht0FM-aSJ3m6rj.js +0 -14
  310. package/dist/assets/analyticsHelper-CVWZE356.js +0 -1
  311. package/dist/assets/analyticsHelper-or1KkBWk-Plh_6I_p.js +0 -1
  312. package/dist/assets/downloadPdf-D7p3yKmg-CYmmjPHt.js +0 -1
  313. package/dist/assets/redux-CEhZD0hA.js +0 -12
  314. package/dist/assets/toChartData-DEW0iT7T-DrkbvIyQ.js +0 -1
@@ -1,576 +0,0 @@
1
- import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,O as $e,aN as q,n as qe,P as at,aQ as nt,o as t,y as w,A as Oe,s as zt,b6 as Dt,d as Lt,aP as Z,c5 as Ft,ft as st,c as O,l as L,gG as Mt,h as j,ar as Rt,H as lt,ai as I,am as Y,fG as Bt,aa as Ot,cS as It,ad as Et,gm as _t,u as d,ce as ct,fB as dt,cw as ut,dm as Nt,dd as Vt,fS as Wt,fK as qt,a9 as Yt,an as Gt,fL as Xt,dM as Jt,cM as Ut,cL as Kt,bz as Zt,bX as Qt,fU as Ht,g1 as er,aX as tr}from"./index-sAOH0Fje.js";import{n as o,b as y}from"./vendor-Bs1fkIUX.js";import{q as pt}from"./PortfolioDetails-D4yT8r35-DSk0Sc23.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./treasuryColorHelper-13LJ_xhk-LqN_6Xl4.js";const rr=$e.getLocalizedStrings().spendManagement.treasury,R=[0,125e4,25e5,35e5,5e6],or=1e3;function ir({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:i}){const l=Yt().analytics,[c,h]=y.useState(a);y.useEffect(()=>{h(a)},[a]);const p=f=>{const $=parseFloat(f.target.value),s=ge($,e);h($),u(s),i($),l.trackTreasuryCalculatorClick("fund transfer",$)},A=f=>{const $=ge(f,e);h(f),i(f),u($),l.trackTreasuryCalculatorClick("fund transfer",f)};return r.jsxs(cr,{sliderValue:c,children:[r.jsx(lr,{sliderValue:c,type:"range",min:R[0],max:R[R.length-1],step:or,value:c,onChange:p}),r.jsx(dr,{style:{width:`${Math.min(c/R[R.length-1]*92.5,92.5)}%`}}),r.jsx(mr,{sliderValue:c,style:{left:`calc(${Math.min(Math.max(c/R[R.length-1]*100,5),95)}% - 50px)`},children:ar(c)}),r.jsx(ur,{children:R.map((f,$)=>r.jsx(pr,{onClick:()=>A(f),"data-testid":D("slider-label",f.toString()),style:{left:nr($)},children:r.jsx(hr,{isSelected:c>=f,children:sr(f)})},f))})]})}const ar=e=>{const a=tr("0,0.[00]a",e,"$").toUpperCase();return`${rr.transferDrawer.calculator.sliderTooltipText} ${a}`};function ge(e,a){const u=a/100,i=e*Math.pow(1+u/12,12);return Math.floor(i-e)}const nr=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},sr=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),lr=o.input`
2
- width: 100%;
3
- &[type="range"]::-webkit-slider-runnable-track {
4
- height: 2px;
5
- cursor: pointer;
6
- background-color: ${e=>e.theme.colors.grey3};
7
- }
8
-
9
- &[type="range"] {
10
- -webkit-appearance: none;
11
- appearance: none;
12
- }
13
-
14
- &[type="range"]::-webkit-slider-thumb {
15
- -webkit-appearance: none;
16
- height: ${t.sp5};
17
- width: ${t.sp5};
18
- border-radius: 100%;
19
- margin-top: -${t.sp3}; // Centers thumb on the track
20
- box-shadow: ${t.sp0} ${t.sp0} 2px ${j.blackColor};
21
- background-image: ${e=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/slider-icon-${e.theme.mode==="dark"?"light":"dark"}.svg)`};
22
- background-repeat: no-repeat;
23
- cursor: pointer;
24
- }
25
- `,cr=o.div`
26
- position: relative;
27
- width: 70%;
28
- margin-left: 30px;
29
- margin-right: 30px;
30
- margin-bottom: 20px;
31
- margin-top: ${t.sp5};
32
- min-height: ${t.sp8};
33
- `,dr=o.div`
34
- position: absolute;
35
- height: 2px;
36
- margin-top: -${t.sp2};
37
- background-color: ${e=>e.theme.colors.hero};
38
- `,ur=o.div`
39
- position: absolute;
40
- bottom: ${t.sp0};
41
- top: ${t.sp5};
42
- width: 100%;
43
- display: flex;
44
- justify-content: center;
45
- `,pr=o.span`
46
- position: absolute;
47
- cursor: pointer;
48
- transform: translateX(-50%);
49
- `,hr=o(I)`
50
- color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
51
- white-space: nowrap;
52
- `,mr=o(I)`
53
- position: absolute;
54
- top: -${t.sp5};
55
- white-space: nowrap;
56
- color: ${j.primaryDark};
57
- background-color: ${j.success};
58
- display: flex;
59
- border-radius: ${t.sp1};
60
- justify-content: center;
61
- align-items: center;
62
- padding: 2px ${t.sp2};
63
- `,Q={navBarContainerPaddingXaxis:new w(10,19),containerPaddingLeft:new w(d[3],d[6],d[8]),containerPaddingRight:new w(d[3],d[6],d[8]),reviewContentWrapperPaddingBottom:new w(d[5],d[8]),elementsContainerPadding:new w(d[3],d[4])},Re={pageTitle:new O("h6Regular","h5Regular"),integerStyles:new O("h5Regular","h2Regular"),decimalStyles:new O("extraLargeMedium","h5Medium")},{common:{edit:fr,footer:{back:gr}},dateFormat:{visual:{DMMMYYYYFormat:wr}},spendManagement:{treasury:{transferDrawer:F},billPay:{insufficientFunds:{lowBalance:xr,addOrSwitchInitiateTransfer:yr,lowBalanceIn:$r}}}}=$e.getLocalizedStrings(),br=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:i})=>{const l=ye();if(l==="small"){const c=Tr(e,u,i.treasuryAccount.id);return r.jsxs(r.Fragment,{children:[r.jsxs(he,{style:c.topAccount?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:c.topAccountLabel}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,c.topAccount?.id??"",!0,c.topAccount?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[c.topAccount?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,c.topAccount?.id??"",!0,!0,!0)})]})]}),ce(c.topAccount,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]}),c.arrowDirection==="up"?r.jsx(ao,{}):r.jsx(no,{}),r.jsxs(he,{style:c.bottomAccount?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:c.bottomAccountLabel}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,c.bottomAccount?.id??"",!0,c.bottomAccount?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[c.bottomAccount?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,c.bottomAccount?.id??"",!0,!1,!0)})]})]}),ce(c.bottomAccount,i.treasuryAccount.id,l,!0)?r.jsx(fe,{}):null]})]})}else return r.jsxs(r.Fragment,{children:[r.jsxs(he,{style:e?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:"Transfer Funds From"}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,e?.id??"",!0,e?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[e?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ce(e,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]}),r.jsx(io,{}),r.jsxs(he,{style:u?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:"To"}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,u?.id??"",!0,u?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[u?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ce(u,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]})]})},vr=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const i=a.balance;return i?L.checkIfLowBalance(u,i):!0}if("accountBalance"in e){const i=e.accountBalance?.available;return i==null?!1:L.checkIfLowBalance(u,i)}return!1},Sr=({transferDetails:e,fundDetails:a,portfolioAllocation:u,isOnSetup:i,setShowReviewContent:l,onTransferClick:c,onCancelClick:h})=>{const p=ye(),A=Lt(),f=Z(e.fetchState),[$,s]=y.useState(!1);y.useEffect(()=>{f==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?s(!0):s(!1)},[e.error]);const{fromAccount:S,toAccount:P,amount:m}=e.treasuryTransferMoneyLocalData,C=vr(S,e.treasuryAccount,m);return r.jsxs(r.Fragment,{children:[r.jsxs(Br,{windowSize:p,children:[r.jsx(Vr,{windowSize:p,children:r.jsx(Ft,{title:"Close",enterTouchDelay:600,placement:"bottom",children:r.jsx(Ye,{"data-testid":D("nav-bar-close-transfer-review"),onClick:h})})}),r.jsx(Wr,{windowSize:p,children:i===!0?F.stepTitle:F.reviewAndConfirm}),i===!0&&r.jsxs(r.Fragment,{children:[r.jsx(qr,{windowSize:p,children:r.jsx(Yr,{children:r.jsxs(Gr,{children:[r.jsx(Ge,{}),r.jsx(Ge,{}),r.jsx(Xr,{})]})})}),p==="small"?r.jsx(oo,{children:F.subTitle}):r.jsx(Ue,{children:F.subTitle})]}),r.jsx(ro,{windowSize:p,children:r.jsx(st,{amount:m,alwaysShowDecimal:!0,integerStyles:Re.integerStyles.styleObject(p),decimalStyles:Re.decimalStyles.styleObject(p)})}),i!==!0&&r.jsxs(r.Fragment,{children:[r.jsx(_r,{}),r.jsx(Ue,{children:r.jsxs(r.Fragment,{children:[F.review.prefix,`"${P?.label}" `,F.success.midfix,` "${S?.label}" `,F.review.suffix.replace("__date__",L.zeniDate(L.getNextNthWorkingDay(L.dateNow().toDate(),[0,6],1).toDateString()).format(wr))]})})]}),C?r.jsx(Mt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:$r.replace("__account__",S?.id===e.treasuryAccount.id?S?.label??"":`${S?.label??""} ${S?.maskedAccountNumber??""}`),description:yr}):null,$?r.jsx(Rr,{children:r.jsxs(Dr,{children:[r.jsxs(Or,{children:[r.jsx(Er,{}),r.jsxs(Lr,{children:[r.jsx(Fr,{children:e.error?.title}),r.jsx(Mr,{children:e.error?.message})]})]}),r.jsx(Ir,{children:r.jsx(Ye,{"data-testid":D("close-error-transfer-review"),onClick:()=>{s(!1)},style:{width:t.sp3,height:t.sp3,color:j.heroLight}})})]})}):null,r.jsx(Nr,{windowSize:p,children:r.jsxs(Pr,{windowSize:p,children:[r.jsx(Cr,{windowSize:p,children:r.jsx(br,{fromAccount:S,themeContext:A,toAccount:P,transferDetails:e})}),r.jsx(zr,{children:r.jsx(pt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:Ar(e),fundAllocations:kr(e),page:"transfer review"})})]})})]}),r.jsx(nt,{style:i!==!0?{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0}:{zIndex:4},helperText:i!==!0?F.review.footNote:void 0,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:i===!0?gr:fr,onClick:()=>{s(!1),l(!1)},style:{minWidth:94}},primaryBtn:{label:F.transferBtn,onClick:c,isLoading:e.fetchState==="In-Progress",isDisabled:C,style:{minWidth:94}}})]})},V=(e,a,u,i,l)=>{if(i===!0)return r.jsx(Xe,{isOptionSelected:u,isForReview:l,children:r.jsx(Je,{color:j.brandColorGoldDark})});if(a==="")return r.jsx(to,{isForReview:l,children:r.jsx(Vt,{})});const c=e.find(p=>p.id===a),h=e.findIndex(p=>p.id===a);if(c!=null){if(c.accType==="depositAccount")return r.jsx(Xe,{isOptionSelected:u,isForReview:l,children:r.jsx(Je,{color:Wt(h)})});if(c.accType==="paymentAccount")return c.logo!==void 0&&(c.logo.base64||c.logo.url)?r.jsx(Qr,{src:jr(c.logo),isOptionSelected:u,isForReview:l,loading:"lazy"}):r.jsx(Hr,{isOptionSelected:u,isForReview:l,children:r.jsx(eo,{})})}return null},W=(e,a,u,i,l,c,h)=>{if(!u)return null;if(u===a.id)return(c||!i)&&a.balance?r.jsx(Ce,{children:q("0,0[.]00",a.balance)}):null;const p=e.find(f=>f.id===u);let A=!1;return l===!0&&h!=null&&p?.accountBalance?.available?.amount!=null&&(A=L.checkIfLowBalance(h,p.accountBalance.available)),i===!0&&!c?r.jsx(Ur,{children:p?.maskedAccountNumber}):r.jsxs(Jr,{className:"option-sublabel",children:[r.jsx(Ce,{children:p?.maskedAccountNumber}),p?.accountBalance?.available?r.jsx(Zr,{className:"dot"}):null,p?.accountBalance?.available?r.jsxs(Ce,{children:[q("0,0[.]00",p.accountBalance.available),A?r.jsx(Kr,{children:xr}):null]}):null,p?.balanceFetchStatus?.fetchState==="In-Progress"?r.jsx(at,{size:"Small",start:!0}):null]})},jr=e=>e.base64!==void 0?`${qt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Ar=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},kr=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},Tr=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ce=(e,a,u,i)=>u==="small"?e?.id===a&&i:e?.id===a,de=o.div`
64
- display: flex;
65
- flex-direction: column;
66
- `,ue=o(I)`
67
- color: ${e=>e.theme.colors.hero};
68
- `,pe=o(Y)`
69
- display: flex;
70
- align-items: center;
71
- `,Pr=o.div`
72
- display: flex;
73
- flex-direction: column;
74
- width: 100%;
75
- background-color: ${e=>e.theme.colors.grey5};
76
- border: 1px solid ${e=>e.theme.colors.grey3};
77
- box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
78
- border-radius: ${t.sp2};
79
- padding: ${e=>`${Q.elementsContainerPadding.valuePx(e.windowSize)}`};
80
- gap: ${t.sp4};
81
- ${e=>e.windowSize==="small"&&`
82
- width: auto;
83
- `}
84
- `,Cr=o.div`
85
- display: flex;
86
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
87
- justify-content: space-between;
88
- align-items: ${e=>e.windowSize==="small"?"stretch":"center"};
89
- width: 100%;
90
- background-color: ${e=>e.theme.colors.grey5};
91
- `,he=o.div`
92
- display: flex;
93
- flex-direction: column;
94
- gap: ${t.sp1};
95
- padding: ${t.sp2} ${t.sp3};
96
- background-color: ${e=>e.theme.colors.grey4};
97
- border: 1px solid ${e=>e.theme.colors.grey3};
98
- border-radius: ${t.sp2};
99
- width: ${e=>e.windowSize==="small"?"auto":"288px"};
100
- `,zr=o.div`
101
- padding: ${t.sp2} ${t.sp3};
102
- background-color: ${e=>e.theme.colors.grey4};
103
- border: 1px solid ${e=>e.theme.colors.grey1};
104
- border-radius: ${t.sp2};
105
- `,Dr=o.div`
106
- display: flex;
107
- width: 100%;
108
- justify-content: space-between;
109
- padding: ${t.sp3} ${t.sp4};
110
- background-color: ${j.importantLight};
111
- border-radius: ${t.sp2};
112
- `,Lr=o.div`
113
- display: flex;
114
- flex-direction: column;
115
- margin-left: ${t.sp2};
116
- `,Fr=o(ut)`
117
- color: ${j.important};
118
- `,Mr=o(Y)`
119
- color: ${j.important};
120
- `,Rr=o.div`
121
- margin-top: ${t.sp3};
122
- display: flex;
123
- background-color: ${e=>e.theme.colors.grey5};
124
- justify-content: space-between;
125
- padding: ${t.sp3} ${t.sp4};
126
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
127
- border-radius: ${t.sp2};
128
- box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
129
- `,Br=o.div`
130
- height: auto;
131
- padding-left: ${e=>`${Q.containerPaddingLeft.valuePx(e.windowSize)}`};
132
- padding-right: ${e=>`${Q.containerPaddingRight.valuePx(e.windowSize)}`};
133
- margin-bottom: auto;
134
- `,Or=o.div`
135
- display: flex;
136
- align-items: flex-start;
137
- `,Ir=o.div``,Er=o(dt)`
138
- width: ${t.sp4};
139
- height: ${t.sp4};
140
- color: ${j.important};
141
- `,Ye=o(Oe)`
142
- cursor: pointer;
143
- color: ${e=>e.theme.colors.hero};
144
- width: ${t.sp4};
145
- height: ${t.sp4};
146
- min-height: ${t.sp4};
147
- &:hover {
148
- color: ${e=>e.theme.colors.primary};
149
- }
150
- `,_r=o.div`
151
- display: flex;
152
- flex: 1;
153
- background-color: ${e=>e.theme.colors.grey3};
154
- min-height: 1px;
155
- max-height: 1px;
156
- `,me=o(I)`
157
- color: ${e=>e.theme.colors.hero};
158
- `,Nr=o.div`
159
- display: flex;
160
- flex-direction: column;
161
- padding-top: ${t.sp3};
162
- padding-bottom: ${e=>`${Q.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
163
- `,Vr=o.div`
164
- display: flex;
165
- flex-direction: row;
166
- justify-content: flex-end;
167
- align-items: center;
168
- width: 100%;
169
- top: ${t.sp0};
170
- padding: ${e=>`${Q.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
171
- z-index: 2;
172
- background-color: transparent;
173
- `,Wr=o(lt)`
174
- ${e=>`${Re.pageTitle.style(e.windowSize)}`};
175
- color: ${e=>e.theme.colors.primary};
176
- padding: ${t.sp3} ${t.sp0} ${t.sp2} ${t.sp0};
177
- ${e=>e.windowSize==="small"&&`
178
- padding-bottom: ${t.sp0};
179
- `}
180
- `,qr=o.div`
181
- display: flex;
182
- flex-direction: column;
183
- gap: ${t.sp3};
184
- width: 100%;
185
- margin-bottom: ${t.sp3};
186
- `,Yr=o.div`
187
- display: flex;
188
- align-items: center;
189
- `,Gr=o.div`
190
- display: flex;
191
- width: 100%;
192
- gap: ${t.sp3};
193
- `,Ge=o.div`
194
- width: 33.33%;
195
- height: 2px;
196
- background-color: ${e=>e.theme.colors.primary};
197
- border-radius: ${t.sp2};
198
- `,Xr=o.div`
199
- width: 33.33%;
200
- height: 2px;
201
- background-color: ${e=>e.theme.colors.grey2};
202
- border-radius: ${t.sp2};
203
- `,Jr=o(I)`
204
- color: ${e=>e.theme.colors.hero};
205
- display: flex;
206
- flex-direction: row;
207
- align-items: center;
208
- gap: ${t.sp2};
209
- `,Ur=o.span`
210
- margin-left: ${t.sp2};
211
- `,Ce=o.div``,Kr=o(Qt)`
212
- color: ${e=>e.theme.colors.brandColorGoldDark};
213
- margin-left: ${t.sp1};
214
- `,Zr=o.div`
215
- width: ${t.sp1};
216
- height: ${t.sp1};
217
- min-width: ${t.sp1};
218
- background-color: ${e=>e.theme.colors.grey1};
219
- border-radius: 50%;
220
- `,Qr=o.img`
221
- display: flex;
222
- width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
223
- height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
224
- min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
225
- margin-right: ${t.sp2};
226
- `,Hr=o.div`
227
- min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
228
- width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
229
- height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
230
- margin-right: ${t.sp2};
231
- `,eo=o(er)`
232
- min-width: inherit;
233
- width: inherit;
234
- height: inherit;
235
- margin-right: ${t.sp2};
236
- `,Xe=o.div`
237
- min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
238
- width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
239
- height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
240
- margin-right: ${t.sp2};
241
- `,Je=o(Ht)`
242
- min-width: inherit;
243
- width: inherit;
244
- height: inherit;
245
- margin-right: ${t.sp2};
246
- `,to=o.div`
247
- width: ${e=>e.isForReview?t.sp6:t.sp4};
248
- height: ${e=>e.isForReview?t.sp6:t.sp4};
249
- margin-right: 12px;
250
- margin-left: ${t.sp1};
251
- color: ${e=>e.theme.colors.hero};
252
- `,ro=o(ct)`
253
- color: ${e=>e.theme.colors.primary};
254
- margin: ${t.sp2} ${t.sp0} ${t.sp3} ${t.sp0};
255
- ${e=>e.windowSize==="small"&&`
256
- margin-top: ${t.sp1};
257
- margin-bottom: ${t.sp1};
258
- `}
259
- `,Ue=o(Y)`
260
- color: ${e=>e.theme.colors.hero};
261
- margin-top: ${t.sp3};
262
- `,oo=o(I)`
263
- color: ${e=>e.theme.colors.hero};
264
- `,io=o(Zt)`
265
- width: ${t.sp4};
266
- height: ${t.sp4};
267
- color: ${e=>e.theme.colors.hero};
268
- `,ao=o(Ut)`
269
- width: ${t.sp4};
270
- height: ${t.sp4};
271
- color: ${e=>e.theme.colors.hero};
272
- align-self: center;
273
- `,no=o(Kt)`
274
- width: ${t.sp4};
275
- height: ${t.sp4};
276
- color: ${e=>e.theme.colors.hero};
277
- align-self: center;
278
- `,fe=o.div`
279
- width: 1px;
280
- height: 25px;
281
- background-color: ${e=>e.theme.colors.grey1};
282
- position: absolute;
283
- right: 50%;
284
- bottom: -25px;
285
- `,{common:ze,spendManagement:{treasury:B,zeniAccounts:{zeniAccountList:so},billPay:{insufficientFunds:De}}}=$e.getLocalizedStrings(),ht="amount",lo="transferTo",co="transferFrom",N="transferDetails",mt="transferDetailPage",Le=(e,a)=>`${e}.${a}`,ft=e=>`${e}_form`,x={largeLabelWidth:new w(120,120,160),labeleMarginLeft:new w(d[0],d[0]),labelMarginRight:new w(d[3],d[3]),labeleMarginBottom:new w(d[2],d[0]),labeledFieldPaddingLeft:new w(d[3],d[0]),labeledFieldPaddingRight:new w(d[3],d[2]),labeledFieldPaddingTop:new w(d[3],d[3]),labeledFieldPaddingBottom:new w(d[3],d[2]),infoLabelPaddingRight:new w(d[0],d[3]),infoLabelMarginTop:new w(d[1],d[0]),portfolioContainerPadding:new w(d[3],d[4]),rowContentSelectPaddingLeft:new w(d[3],d[4]),formFieldPaddingRight:new w(0,d[2])},we={yieldEarned:new O("smallMedium","standardMedium"),calculatorFooterText:new O("extraSmallRegular","smallRegular"),integerStyles:new O("h5Regular","h2Regular"),decimalStyles:new O("extraLargeMedium","h5Medium")};function uo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:i,maxInsuredAmount:l,plaidConnectionDetails:c,isOnSetup:h,onSaveChangesToLocalStore:p,onReviewClick:A,onEstablishConnectionClick:f,onFetchLinkTokenClick:$}){const s=ye(),S=x.largeLabelWidth.value(s),[P,m]=y.useState(!1),[C,G]=y.useState(!1),[b,X]=y.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),E=a.reduce((n,g)=>{const T=g.yield;return Math.max(n,T)},0),[be,ee]=y.useState(ge(b,E)),v=c.link_account_no_microdeposit,[M,ve]=y.useState(v.linkToken??null),[te,re]=y.useState(!1),[oe,Ie]=y.useState(!1),Se=e.transferMoneyPartiesFetchState,Ee=Z(Se),je=e.treasuryTransferMoneyLocalData.fromAccount?.id,Ae=e.treasuryTransferMoneyLocalData.toAccount?.id,_e=Z(je),Ne=Z(Ae),ke=e.transferMoneyParties.map(n=>n.id),Te=Z(ke),gt=y.useCallback(n=>{f?.(n),Ie(!1),re(!1)},[f]),wt=y.useCallback((n,g)=>{n!=null&&console.log("Plaid Connection Error",n,g)},[]),{open:ie,ready:J}=Bt({token:M,onSuccess:gt,onExit:wt}),U=y.useCallback(n=>{n.preventDefault(),n.stopPropagation(),J?ie():re(!0)},[ie,J]),_=Ot({mode:"all",reValidateMode:"onChange",defaultValues:y.useMemo(()=>Ze(e,i,h??!1,U),[e,i])}),{isValid:xt}=_.formState,{setError:yt,clearErrors:$t}=_;y.useEffect(()=>{v.fetchStatus.fetchState==="Completed"&&v.linkToken!=null&&v.linkToken!==M&&ve(v.linkToken)},[v.fetchStatus.fetchState,v.linkToken,M]),y.useEffect(()=>{v.linkToken===M&&v.fetchStatus.fetchState==="Completed"&&J&&Ie(!0)},[J,M,v.fetchStatus,v.linkToken,v.fetchStatus.fetchState]),y.useEffect(()=>{oe&&te&&ie()},[oe,ie,te]),y.useEffect(()=>{(L.zeniDate(new Date().toISOString()).isAfter(v.expiration)||v.linkToken==null)&&$?.("link_account_no_microdeposit")},[]),y.useEffect(()=>{const n=Te!=null&&JSON.stringify(Te)!==JSON.stringify(ke);(Ee==="In-Progress"&&Se==="Completed"||_e!==je||Ne!==Ae||n)&&_.reset(Ze(e,i,h??!1,U))},[J,M,v.fetchStatus.fetchState,Ee,Se,_e,Ne,Ae,je,Te,ke,_,e,i,h,U]);const bt=()=>e.transferMoneyParties.find(n=>n.id!==e.treasuryAccount.id&&n.accType==="depositAccount"),vt=()=>{const n=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(g=>g.id===n)},St=async(n,g)=>{if(n!=null){const T={...g},ae=T[N].transferFrom.selectedOption,ne=T[N].transferTo.selectedOption;let se=e.transferMoneyParties.find(Pe=>Pe.id===ae),le=e.transferMoneyParties.find(Pe=>Pe.id===ne);ae===e.treasuryAccount.id&&(se=e.treasuryAccount),ne===e.treasuryAccount.id&&(le=e.treasuryAccount);const We={amount:T[N].amount??0,currencyCode:"USD",currencySymbol:"$"};n.includes("transferFrom")?ae===e.treasuryAccount.id?ne===e.treasuryAccount.id&&(le=bt()):le=e.treasuryAccount:n.includes("transferTo")&&(ne===e.treasuryAccount.id?ae===e.treasuryAccount.id&&(se=vt()):se=e.treasuryAccount);const Tt={amount:We,fromAccount:se,toAccount:le};X(We.amount),p(Tt)}};y.useEffect(()=>{const n=_.watch((g,{name:T})=>{T!=null&&g!=null&&It(()=>St(T,g))});return()=>{n.unsubscribe()}}),y.useEffect(()=>{ee(ge(b,E))},[b,E]);const jt=()=>{if(K?.id==null||K.id===""||!z.amount)return!1;if(K.id===e.treasuryAccount.id){const n=e.treasuryAccount.balance;if(n&&L.checkIfLowBalance(z,n))return!0}else{const n=e.transferMoneyParties.find(g=>g.id===K.id);if(n?.accountBalance?.available&&L.checkIfLowBalance(z,n.accountBalance.available))return!0}return!1},At=_.handleSubmit(()=>{if(jt()){yt("transferDetails.transferFrom",{type:"lowBalance",message:De.addMoney});return}$t("transferDetails.transferFrom"),xt&&A()}),{fromAccount:K,toAccount:Ve,amount:z}=e.treasuryTransferMoneyLocalData,kt=n=>{if(!n||!z.amount)return"";const g=e.transferMoneyParties.find(T=>T.id===n);if(n===e.treasuryAccount.id){const T=e.treasuryAccount.balance;if(T&&L.checkIfLowBalance(z,T))return De.addMoney}else if(g?.accountBalance?.available&&L.checkIfLowBalance(z,g.accountBalance.available))return De.addMoney;return""};return r.jsxs(r.Fragment,{children:[P?r.jsx(po,{children:r.jsxs(mo,{children:[r.jsxs(fo,{children:[r.jsx(wo,{}),r.jsxs(xo,{children:[r.jsx(yo,{children:e.error?.title}),r.jsx($o,{children:e.error?.message})]})]}),r.jsx(go,{children:r.jsx(jo,{"data-testid":D("amount-details-error-close"),onClick:()=>{m(!1)},style:{width:t.sp3,height:t.sp3,color:j.heroLight}})})]})}):null,r.jsx(bo,{windowSize:s,children:r.jsx(st,{amount:z,integerStyles:we.integerStyles.styleObject(s),decimalStyles:we.decimalStyles.styleObject(s),alwaysShowDecimal:!0})}),r.jsx(Et,{..._,children:r.jsxs(ho,{id:ft(mt),onSubmit:At,children:[r.jsxs(vo,{children:[r.jsx(Be,{size:s,children:r.jsx(Qe,{label:{label:ze.labels.transferFrom,width:S,style:{marginLeft:x.labeleMarginLeft.valuePx(s),marginBottom:x.labeleMarginBottom.valuePx(s),marginRight:x.labelMarginRight.valuePx(s)}},style:{paddingTop:x.labeledFieldPaddingTop.valuePx(s),paddingBottom:x.labeledFieldPaddingBottom.valuePx(s),paddingLeft:x.labeledFieldPaddingLeft.valuePx(s),paddingRight:x.labeledFieldPaddingRight.valuePx(s),border:"none",width:"100%",outline:"none",padding:0,display:s==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:x.infoLabelPaddingRight.valuePx(s),marginTop:x.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},singleSelectPickerField:{name:Le(N,co),style:{position:"relative"},capitalizeOptions:!0,placeholder:B.transferDrawer.selectAccount,valueToLogo:(n,g)=>V(e.transferMoneyParties,n,g,n===e.treasuryAccount.id,!1),valueToSubLabels:(n,g)=>W(e.transferMoneyParties,e.treasuryAccount,n,g,!0,!1,z),defaultValue:{selectedOption:K?.id,allOptions:xe(e,!0,i,!0,U,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}},valueToAdditionalLabel:kt})}),!i&&r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx(Be,{size:s,children:r.jsx(Qe,{label:{label:ze.labels.transferTo,width:S,style:{marginLeft:x.labeleMarginLeft.valuePx(s),marginBottom:x.labeleMarginBottom.valuePx(s),marginRight:x.labelMarginRight.valuePx(s)}},style:{paddingTop:x.labeledFieldPaddingTop.valuePx(s),paddingBottom:x.labeledFieldPaddingBottom.valuePx(s),paddingLeft:x.labeledFieldPaddingLeft.valuePx(s),paddingRight:x.labeledFieldPaddingRight.valuePx(s),border:"none",width:"100%",outline:"none",padding:0,display:s==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:x.infoLabelPaddingRight.valuePx(s),marginTop:x.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},singleSelectPickerField:{name:Le(N,lo),style:{position:"relative"},capitalizeOptions:!0,placeholder:B.transferDrawer.selectAccount,valueToLogo:(n,g)=>V(e.transferMoneyParties,n,g,n===e.treasuryAccount.id,!1),valueToSubLabels:(n,g)=>W(e.transferMoneyParties,e.treasuryAccount,n,g,!1,!1),defaultValue:{selectedOption:Ve?.id,allOptions:xe(e,!1,i,!0,U,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]}),r.jsx(Fe,{}),r.jsx(_t,{showAdditionalInfoLabel:!1,label:{label:ze.labels.amount,width:S},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:x.formFieldPaddingRight.valuePx(s),width:"auto"},formattedTextField:{type:"number",name:Le(N,ht),defaultValue:z.amount===0?void 0:z.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0},placeholder:B.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),i&&r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx(So,{size:s,children:r.jsx(pt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:z,page:"fund transfer"})})]})]}),!i&&Ve?.accType==="treasuryAccount"&&r.jsxs(Ao,{children:[C?r.jsxs(ko,{children:[r.jsx(To,{windowSize:s,children:B.transferDrawer.calculator.heading.replace("__amount__",q("0,0.[00]a",{amount:l,currencySymbol:"$"})).replace("__rate__",E.toString())}),r.jsx(ir,{interestRate:E,transferAmount:b,setYieldEarned:ee,setTransferAmount:X})]}):null,r.jsxs(Co,{windowSize:s,children:[r.jsxs(Lo,{windowSize:s,children:[r.jsx(zo,{children:r.jsx(Po,{windowSize:s,children:`${B.transferDrawer.calculator.footerText.annualYieldEarned} ${q("0,0",{amount:be,currencySymbol:"$"})}`})}),r.jsx(Do,{windowSize:s}),r.jsx(Fo,{children:`${B.transferDrawer.calculator.footerText.forTotalDeposit} ${q("0,0",{amount:b,currencySymbol:"$"})}`})]}),C?r.jsxs(et,{windowSize:s,onClick:()=>G(!1),"data-testid":D("calculator-footer-close"),children:[r.jsx(He,{className:"calculatorFooterLeftText",windowSize:s,children:B.transferDrawer.calculator.footerText.hide}),r.jsx(Mo,{className:"calculatorFooterArrowIcon"})]}):r.jsxs(et,{windowSize:s,onClick:()=>G(!0),"data-testid":D("calculator-footer-show"),children:[r.jsx(He,{className:"calculatorFooterLeftText",windowSize:s,children:B.transferDrawer.calculator.footerText.showYieldCalculator}),r.jsx(Ro,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const xe=(e,a,u,i=!0,l,c=!1,h,p)=>{const A=e.treasuryTransferMoneyLocalData.fromAccount?.id,f=e.treasuryTransferMoneyLocalData.toAccount?.id,$=e.transferMoneyParties.find(m=>m.id===A)||e.treasuryAccount,s=e.transferMoneyParties.find(m=>m.id===f)||e.treasuryAccount;let S=e.transferMoneyParties;a||(S=S.filter(m=>m.accType!=="paymentAccount"));const P=S.map(m=>{const C={label:m.label,value:m.id};return i&&(a?C.isDisabled=m.id===f||m.accType==="paymentAccount"&&s?.accType==="paymentAccount":C.isDisabled=m.id===A||m.accType==="paymentAccount"&&$?.accType==="paymentAccount"),C});if(!u){const m={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};i&&(a?m.isDisabled=!1:m.isDisabled=e.treasuryAccount.id===A),a?P.push(m):P.unshift(m)}if(c&&l){const m={label:so.transferDrawer.selectAddAccount,value:"",type:"button",onClick:l};P.push(m)}return P},Ke=e=>{let a=-1,u;return e.transferMoneyParties.forEach(i=>{const l=i.accountBalance?.available?.amount??0;l>a&&(a=l,u=i.id)}),u},Ze=(e,a,u,i)=>{const{fromAccount:l,toAccount:c,amount:h}=e.treasuryTransferMoneyLocalData,p=()=>u?Ke(e):l!=null?l.id:Ke(e);return{transferDetails:{[ht]:h.amount===0?void 0:h.amount,transferFrom:{allOptions:xe(e,!0,a,!0,i,!1),selectedOption:p()},transferTo:{allOptions:xe(e,!1,a,!0,i,!1),selectedOption:c?.id}}}},po=o.div`
286
- margin-top: ${t.sp3};
287
- display: flex;
288
- background-color: ${e=>e.theme.colors.grey5};
289
- justify-content: space-between;
290
- padding: ${t.sp3} ${t.sp4};
291
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
292
- border-radius: ${t.sp2};
293
- box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
294
- `,ho=o.form`
295
- display: flex;
296
- flex-direction: column;
297
- justify-content: center;
298
- align-items: center;
299
- `,mo=o.div`
300
- display: flex;
301
- width: 100%;
302
- justify-content: space-between;
303
- padding: ${t.sp3} ${t.sp4};
304
- background-color: ${j.importantLight};
305
- border-radius: ${t.sp2};
306
- `,fo=o.div`
307
- display: flex;
308
- align-items: flex-start;
309
- `,go=o.div``,wo=o(dt)`
310
- width: ${t.sp4};
311
- height: ${t.sp4};
312
- color: ${j.important};
313
- `,xo=o.div`
314
- display: flex;
315
- flex-direction: column;
316
- margin-left: ${t.sp2};
317
- `,yo=o(ut)`
318
- color: ${j.important};
319
- `,$o=o(Y)`
320
- color: ${j.important};
321
- `,bo=o(ct)`
322
- color: ${e=>e.theme.colors.primary};
323
- margin: ${t.sp5} ${t.sp0} ${t.sp3} ${t.sp0};
324
- ${e=>e.windowSize==="small"&&`
325
- margin-top: ${t.sp1};
326
- margin-bottom: ${t.sp1};
327
- `}
328
- `,Qe=o(Nt)`
329
- border-radius: ${t.sp2};
330
- border: ${e=>`1px solid ${e.theme.colors.grey3}`};
331
- `,vo=o.div`
332
- display: flex;
333
- flex-direction: column;
334
- width: 100%;
335
- background-color: ${e=>e.theme.colors.grey5};
336
- border: 1px solid ${e=>e.theme.colors.grey3};
337
- box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
338
- border-radius: ${t.sp2};
339
- `,Fe=o.div`
340
- display: flex;
341
- flex: 1;
342
- background-color: ${e=>e.theme.colors.grey3};
343
- min-height: 1px;
344
- max-height: 1px;
345
- `,Be=o.div`
346
- display: flex;
347
- flex-direction: row;
348
- padding: ${t.sp2};
349
- padding-left: ${({size:e})=>x.rowContentSelectPaddingLeft.valuePx(e)};
350
- justify-content: space-between;
351
- color: ${e=>e.theme.colors.hero};
352
- &:hover {
353
- z-index: 1;
354
- outline: 1px solid ${e=>e.theme.colors.primary};
355
- .select-control {
356
- background-color: ${e=>e.theme.colors.background};
357
- }
358
- }
359
- &:focus-within {
360
- border-color: ${e=>e.theme.colors.primary};
361
- color: ${e=>e.theme.colors.primary};
362
- z-index: 2;
363
- outline: 1px solid ${e=>e.theme.colors.primary};
364
- }
365
- :first-of-type {
366
- border-top-left-radius: inherit;
367
- border-top-right-radius: inherit;
368
- }
369
-
370
- ${({size:e})=>e==="small"&&`
371
- .select-value-container {
372
- margin-right: ${t.sp1} !important;
373
- }
374
- `}
375
- `,So=o(Be)`
376
- padding: ${({size:e})=>x.portfolioContainerPadding.valuePx(e)};
377
- padding-top: ${t.sp2};
378
- `,jo=o(Oe)`
379
- cursor: pointer;
380
- color: ${e=>e.theme.colors.hero};
381
- width: ${t.sp4};
382
- height: ${t.sp4};
383
- min-height: ${t.sp4};
384
- &:hover {
385
- color: ${e=>e.theme.colors.primary};
386
- }
387
- `,Ao=o.div`
388
- margin-bottom: ${t.sp6};
389
- width: 90%;
390
- `,ko=o.div`
391
- background-color: ${e=>e.theme.colors.background};
392
- border: 1px solid ${e=>e.theme.colors.grey3};
393
- border-top: none;
394
- min-height: 182px;
395
- display: flex;
396
- justify-content: center;
397
- align-items: center;
398
- flex-direction: column;
399
- `,To=o(Y)`
400
- color: ${e=>e.theme.colors.hero};
401
- margin: ${e=>e.windowSize==="small"?t.sp3:`${t.sp3} ${t.sp8}`};
402
- white-space: pre-line;
403
- text-align: center;
404
- `,Po=o.div`
405
- ${e=>we.yieldEarned.style(e.windowSize)}
406
- color: ${j.success};
407
- white-space: nowrap;
408
- `,Co=o.div`
409
- display: flex;
410
- align-items: center;
411
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
412
- justify-content: space-between;
413
- padding: ${t.sp2} ${t.sp3};
414
- background-color: ${e=>e.theme.colors.grey3};
415
- border-bottom-right-radius: ${t.sp1};
416
- border-bottom-left-radius: ${t.sp1};
417
- `,zo=o.div`
418
- display: flex;
419
- flex-direction: row;
420
- align-items: center;
421
- `,He=o.div`
422
- ${e=>we.calculatorFooterText.style(e.windowSize)}
423
- color: ${e=>e.theme.colors.hero};
424
- cursor: pointer;
425
- `,et=o.div`
426
- display: flex;
427
- flex-direction: row;
428
- align-items: center;
429
- gap: 6px;
430
- align-self: ${e=>e.windowSize==="small"?"flex-end":"center"};
431
- &:hover {
432
- .calculatorFooterLeftText {
433
- color: ${e=>e.theme.colors.primary};
434
- }
435
- .calculatorFooterArrowIcon {
436
- color: ${e=>e.theme.colors.primary};
437
- }
438
- }
439
- `,Do=o.div`
440
- display: ${e=>e.windowSize==="small"?"none":"block"};
441
- width: ${t.sp1};
442
- height: ${t.sp1};
443
- min-width: ${t.sp1};
444
- margin: 0 ${t.sp2};
445
- background-color: ${e=>e.theme.colors.grey1};
446
- border-radius: 50%;
447
- `,Lo=o.div`
448
- display: flex;
449
- flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
450
- align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
451
- width: ${e=>e.windowSize==="small"?"100%":"unset"};
452
- `,Fo=o(Gt)`
453
- color: ${e=>e.theme.colors.hero};
454
- `,Mo=o(Xt)`
455
- cursor: pointer;
456
- width: 12px;
457
- height: 12px;
458
- min-width: 12px;
459
- min-height: 12px;
460
- color: ${e=>e.theme.colors.hero};
461
- `,Ro=o(Jt)`
462
- cursor: pointer;
463
- width: 12px;
464
- height: 12px;
465
- min-width: 12px;
466
- min-height: 12px;
467
- color: ${e=>e.theme.colors.hero};
468
- `,H={navBarContainerPaddingXaxis:new w(10,19),containerPaddingLeft:new w(d[3],d[6],d[8]),containerPaddingRight:new w(d[3],d[6],d[8]),successContentMargin:new w(d[3],d[12]),buttonTrayGap:new w(d[4],d[5])},Bo={formTitle:new O("h6Regular","h5Regular")},{common:Me,spendManagement:{treasury:k}}=$e.getLocalizedStrings(),li=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:i,isFirstTransfer:l,plaidConnectionDetails:c,isOnSetup:h,onSaveChangesToLocalStore:p,onTransferClick:A,onAnotherTransferClick:f,onCancelClick:$,onBackClick:s,setShowReviewContent:S,onReviewClick:P,onEstablishConnectionClick:m,onFetchLinkTokenClick:C,onSkipClick:G})=>{const b=ye(),{fundsData:X,currentAllocation:E,fundAllocationOptions:be,fetchState:ee}=a,v=be.find(oe=>Pt(oe.allocation,E))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},M=()=>ee==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:ve,toAccount:te,amount:re}=e.treasuryTransferMoneyLocalData;return r.jsx(Eo,{windowSize:b,children:e.fetchState==="Completed"?r.jsxs(tt,{windowSize:b,isTransferCompleted:!0,children:[r.jsx(rt,{windowSize:b,children:r.jsx(ot,{"data-testid":D("cross-transfer-success-close-button"),onClick:()=>{$()}})}),r.jsxs(Wo,{windowSize:b,children:[r.jsx(Ct,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),r.jsx(_o,{children:r.jsxs(r.Fragment,{children:[k.transferDrawer.success.prefix,r.jsx(No,{children:q("0,0.[00]",re)}),k.transferDrawer.success.midfix,`"${ve?.label}"`,k.transferDrawer.success.midfix2,`"${te?.label}".`]})}),r.jsxs(Vo,{windowSize:b,children:[r.jsx(qe,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":D("another-transfer-button","treasury"),onClick:()=>{f?.()},style:{minWidth:200}}),r.jsx(qe,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":D("back-to-treasury-button"),onClick:()=>{$()},style:{minWidth:200}})]})]})]}):u?r.jsx(Sr,{transferDetails:e,setShowReviewContent:S,onTransferClick:A,fundDetails:X,portfolioAllocation:v,isOnSetup:h,onCancelClick:$}):r.jsxs(r.Fragment,{children:[r.jsxs(tt,{windowSize:b,isTransferCompleted:!1,children:[r.jsx(rt,{windowSize:b,children:r.jsx(ot,{"data-testid":D("cross-amount-details-close-button"),onClick:()=>{$()}})}),b==="small"?r.jsx(qo,{windowSize:b,children:h===!0?k.transferDrawer.stepTitle:l?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):r.jsx(Yo,{windowSize:b,children:h===!0?k.transferDrawer.stepTitle:l?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),h===!0&&r.jsx(Go,{windowSize:b,children:r.jsx(Xo,{children:r.jsxs(Jo,{children:[r.jsx(it,{}),r.jsx(it,{}),r.jsx(Uo,{})]})})}),b==="small"?r.jsx(Io,{children:k.transferDrawer.subTitle}):r.jsx(Oo,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?r.jsx(uo,{onSaveChangesToLocalStore:p,transferDetails:e,onReviewClick:P,fundDetails:X,portfolioAllocation:v,isOnSetup:h,isFirstTransfer:l,maxInsuredAmount:i,plaidConnectionDetails:c,onEstablishConnectionClick:m,onFetchLinkTokenClick:C}):r.jsx(at,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),M()?r.jsx(nt,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:ft(mt),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:h===!0&&G?r.jsx(Ko,{onClick:G,"data-testid":D("skip-transfer-link"),children:k.transferDrawer.skip}):null,primaryBtn:{label:Me.review},cancelBtn:{label:h===!0?Me.footer.back:Me.cancel,onClick:()=>{h===!0?s():$()}}}):null]})})},Oo=o(Y)`
469
- color: ${e=>e.theme.colors.hero};
470
- `,Io=o(I)`
471
- color: ${e=>e.theme.colors.hero};
472
- `,Eo=o.div`
473
- display: flex;
474
- flex-direction: column;
475
- background-color: ${e=>e.theme.colors.grey4};
476
- overflow-x: hidden;
477
- height: 100vh;
478
- width: 100%;
479
- `,_o=o(zt)`
480
- color: ${e=>e.theme.colors.primary};
481
- text-align: center;
482
- `,No=o(Dt)`
483
- display: inline;
484
- `,tt=o.div`
485
- height: ${e=>e.isTransferCompleted?"100%":"auto"};
486
- padding-left: ${e=>`${H.containerPaddingLeft.valuePx(e.windowSize)}`};
487
- padding-right: ${e=>`${H.containerPaddingRight.valuePx(e.windowSize)}`};
488
- margin-bottom: auto;
489
- `,Vo=o.div`
490
- display: flex;
491
- justify-content: center;
492
- flex-direction: ${e=>e.windowSize==="small"?"column-reverse":"row"};
493
- margin-top: ${t.sp6};
494
- gap: ${e=>`${H.buttonTrayGap.valuePx(e.windowSize)}`};
495
- `,Wo=o.div`
496
- height: 80%;
497
- display: flex;
498
- flex-direction: column;
499
- justify-content: center;
500
- margin: ${e=>`${t.sp0} ${H.successContentMargin.valuePx(e.windowSize)}`};
501
- align-items: center;
502
- `,rt=o.div`
503
- display: flex;
504
- flex-direction: row-reverse;
505
- justify-content: space-between;
506
- align-items: center;
507
- width: 100%;
508
- top: ${t.sp0};
509
- padding: ${e=>`${H.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
510
- z-index: 2;
511
- background-color: ${e=>e.theme.colors.grey4};
512
- `,ot=o(Oe)`
513
- cursor: pointer;
514
- color: ${e=>e.theme.colors.hero};
515
- width: ${t.sp4};
516
- height: ${t.sp4};
517
- min-height: ${t.sp4};
518
- &:hover {
519
- color: ${e=>e.theme.colors.primary};
520
- }
521
- `,qo=o(Rt)`
522
- color: ${e=>e.theme.colors.primary};
523
- margin-top: ${t.sp3};
524
- margin-bottom: ${t.sp0};
525
- margin-right: ${t.sp3};
526
- `,Yo=o(lt)`
527
- ${e=>`${Bo.formTitle.style(e.windowSize)}`};
528
- color: ${e=>e.theme.colors.primary};
529
- margin-top: ${t.sp3};
530
- margin-bottom: ${t.sp2};
531
- `,Go=o.div`
532
- display: flex;
533
- flex-direction: column;
534
- gap: ${t.sp3};
535
- width: 100%;
536
- margin-bottom: ${t.sp3};
537
- `,Xo=o.div`
538
- display: flex;
539
- align-items: center;
540
- `,Jo=o.div`
541
- display: flex;
542
- width: 100%;
543
- gap: ${t.sp3};
544
- `,it=o.div`
545
- width: 33.33%;
546
- height: 2px;
547
- background-color: ${e=>e.theme.colors.primary};
548
- border-radius: ${t.sp2};
549
- `,Uo=o.div`
550
- width: 33.33%;
551
- height: 2px;
552
- background-color: ${e=>e.theme.colors.grey2};
553
- border-radius: ${t.sp2};
554
- `,Ko=o(I)`
555
- cursor: pointer;
556
- display: inline-block;
557
- position: relative;
558
- color: ${e=>e.theme.colors.hero};
559
- text-decoration: none;
560
- margin-left: ${t.sp6};
561
- &:before {
562
- content: "";
563
- position: absolute;
564
- left: 0;
565
- bottom: 0;
566
- height: 1px;
567
- width: 100%;
568
- background: ${e=>e.theme.colors.grey2};
569
- z-index: 0;
570
- pointer-events: none;
571
- }
572
-
573
- &:hover {
574
- color: ${e=>e.theme.colors.primary};
575
- }
576
- `;export{li as default};
@@ -1,16 +0,0 @@
1
- import{O as Y,j as n,l as u,d as Z,aM as w,b3 as z,bQ as A,bR as F,bh as O,C as k,bg as P,aX as B,bS as q,bi as _,bU as G,o as L,h as K,am as N}from"./index-sAOH0Fje.js";import{b as D,w as X,n as $}from"./vendor-Bs1fkIUX.js";import{d as Q,g as M,p as v,u as V}from"./chartTypes-DCvOVjlS-BdPIN5WI.js";import{o as W}from"./toCOABalancesWithID-B3yVGPrV-B_BzNOYP.js";import{V as U}from"./toChartData-DEW0iT7T-DrkbvIyQ.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const H=$.div`
2
- display: flex;
3
- `,I=$.div`
4
- flex: display;
5
- opacity: 0.85;
6
- border-radius: ${L.sp1};
7
- flex-direction: column;
8
- padding: ${L.sp3};
9
- background-color: ${e=>e.theme.colors.black};
10
- `,J=$(N)`
11
- color: ${e=>e.color??K.neutralGrey2Light};
12
- text-align: left;
13
- display: flex;
14
- align-items: center;
15
- justify-content: space-between;
16
- `,ee=({active:e,payload:t,trendType:a})=>{const r=[];return t?.forEach(i=>{const l=i.name;if(i&&e&&i.value!==0){const d=i.payload,b=i.color,m=l!=null&&d.record[l]!=null?d.record[l].amount:void 0;r.push({barName:a,value:m,color:b})}}),r},te=e=>{const t=ee(e);return t.length?n.jsx(H,{children:n.jsx(I,{children:t.map((a,r)=>n.jsx(J,{color:a.color,children:`${a.barName}: ${V(a.value)}`},a.barName+r))})}):null},ae=X.memo(te),re=(e,t,a,r)=>{let i=[];if(r!=null){const l=oe(r,a);l!=null&&l.length>0&&(i=W("trend","actual",l))}if(i.length>0){const l=v("trend","actual"),d={};return d[l]=i,U(e,t,l,d)}else return},oe=(e,t)=>{if(e!=null)switch(t){case"month":return e.monthly;case"quarter":return e.quarterly;case"year":return e.yearly;case"free_range":throw new Error("free_range dates are not supported!")}},S=[v("trend","actual")];function xe({firstMonthOfFY:e,trendReport:t,timeframe:a,selectedTimePeriod:r,graphColor:i,width:l,height:d,onTimeframeSelectionChanged:b}){const m=D.useRef(!1),g=r!=null?ne(e,r,a):void 0,y=Y.getLocalizedStrings().reports.trend[t?.balancesKind];D.useEffect(()=>{m.current=!0},[]);const x=re(e,S,a,t),j=p=>{const h=[];return S.forEach(o=>{h.push(n.jsx(G,{name:o,isAnimationActive:m.current,dataKey:s=>{const c=s.record;return(c[o]!=null&&c[o].amount!=null?c[o].amount:void 0)?.amount??0},maxBarSize:36,fill:p.toString(),"data-testid":w(o,"bar")},o))}),h};return x==null?null:n.jsx(le,{chartData:x,timeframe:a,selectedLabel:g,barElements:j(i),customToolTipContent:({active:p,payload:h})=>n.jsx(ae,{active:p,payload:h,trendType:y}),width:l,height:d,onTimeframeSelectionChanged:b})}const le=({chartData:e,timeframe:t,selectedLabel:a,barElements:r,customToolTipContent:i,width:l,height:d,onTimeframeSelectionChanged:b})=>{const m=Z(),[g,y]=D.useState([void 0,void 0]),x=e.timeseries,j=Q(e),p=x.map(o=>o.label);D.useEffect(()=>{if(a!=null){const o=M(a.label,p,1);y(o)}else y([void 0,void 0])},[t,a]);const h=o=>{if(o?.activePayload==null||o?.activePayload.length===0)return;const s=o.activePayload[0];if(s?.payload?.record?.[v("trend","actual")]?.amount==null)return;const c=s.payload.record[v("trend","actual")].amount;if(c!=null&&c.amount===0||s?.payload?.timeLabel?.label==null)return;const T=s.payload.timeLabel.label,E=s.payload.timeLabel.startDate,C=s.payload.timeLabel.endDate,R=M(T,p,1);y(R),b?.(t,{startDate:E,endDate:C})};return n.jsx("div",{style:{width:l,height:d},"data-testid":w("simple-bar-chart"),children:n.jsx(z,{children:({height:o,width:s})=>n.jsxs(A,{"data-testid":w("bar-chart"),width:s,height:o,data:e.recordByTimeseries,barCategoryGap:"30%",margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto",cursor:"pointer"},onClick:h,children:[n.jsx(F,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:m.colors.grey3}),n.jsx(O,{dataKey:c=>c.timeLabel.label,type:"category",axisLine:{stroke:m.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject}}),n.jsx(P,{type:"number",axisLine:!1,tickLine:!1,tick:{color:m.colors.hero,...k.extraSmallRegular.cssObject},tickFormatter:c=>B("0,0.[00]a",c,j)}),n.jsx(q,{cursor:!1,content:i,allowEscapeViewBox:{x:!1,y:!0}}),a!=null&&n.jsx(_,{x1:g[0],x2:g[1],opacity:.3,fillOpacity:.3,stopOpacity:.1}),r]})})})},{dateFormat:f}=Y.getLocalizedStrings(),ne=(e,t,a)=>{let r="";switch(a){case"week":t.startDate.month()!==t.endDate.month()?r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMYYFormat,e)}`:r=`${u.formatZeniDate(t.startDate,f.visual.Dformat,e)} - ${u.formatZeniDate(t.endDate,f.visual.MMMDCommaYYYYformat,e)}`;break;case"month":r=`${u.formatZeniDate(t.startDate,f.visual.MMMYYFormat,e)}`;break;case"quarter":r=`${Y.getLocalizedStrings().quarterPrefix}${u.formatZeniDate(t.startDate,f.visual.QYYformat,e)}`;break;case"year":r=`${u.formatZeniDate(t.startDate,f.visual.YYYYformat,e)}`;break;case"free_range":throw new Error("free_range dates are not supported!")}return{label:r,startDate:t.startDate,endDate:t.endDate}};export{xe as default};