@zeniai/web-cockpit-ui 1.14.7-dev → 1.14.7-qa

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 (223) hide show
  1. package/dist/assets/{ACHDetailsPage-CYMIIaPh-C8Zl6MLV.js → ACHDetailsPage-CYMIIaPh-CazcteT9.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DpQIi2ZW-BO0NE_2F.js → AIPerformancePage-DpQIi2ZW-BfbtTbJc.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Sh-82JXU-CKtI4bnL.js → AccountInfoPage-Sh-82JXU-CK-JAG50.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CsHvwqHd-BlW8CgcU.js → AccountInfoPageContent-CsHvwqHd-Bi3KcCU6.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-DlKlKwh2-DpdK7fsT.js → AccountReconDetailsDrawerPage-DlKlKwh2-COmsGMX5.js} +1 -1
  6. package/dist/assets/{AccountRow-CtIoeB6x-B01gigKX.js → AccountRow-CtIoeB6x-DB6L8OFQ.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-XGoMEJWB-ClZD8Pkf.js → AccountsPromoCardStack-XGoMEJWB-ewH7aqGC.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-C6Sfh784-BO6CLNaD.js → AddAddressForCardDrawer-C6Sfh784-v8gPAmnp.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-CzD2AhWP-GEi12jel.js → AddToWalletPage-CzD2AhWP-Y1lzrcrr.js} +1 -1
  10. package/dist/assets/{AgingReportsPage-D9YcQ7A--jEVrKNWY.js → AgingReportsPage-D9YcQ7A--CgFqdHda.js} +1 -1
  11. package/dist/assets/{AllUserItems-BtS-YtE0-oBJempiY.js → AllUserItems-BtS-YtE0-BnRz1B7J.js} +1 -1
  12. package/dist/assets/{ApAgingDetailPage-BTJqRp9j-CVJ5DZ9g.js → ApAgingDetailPage-BTJqRp9j-CFbtvXnt.js} +1 -1
  13. package/dist/assets/{AppBasePage-B5fgkJHL-nKspGTEB.js → AppBasePage-B5fgkJHL-BjE5NFxw.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-C1lzepXw-Dt703jdK.js → AppDrawerContent-C1lzepXw-DLsvksBd.js} +1 -1
  15. package/dist/assets/{ApprovalRulesSettingsPage-Bqt15rR_-CJ2-js2Y.js → ApprovalRulesSettingsPage-Bqt15rR_-6tCXuJPM.js} +1 -1
  16. package/dist/assets/{ArAgingChart-BGVvhkR5-CfmO25FB.js → ArAgingChart-BGVvhkR5-CMJLQ0Bz.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-Ddp7z3e8-BWaOoITE.js → ArAgingDetailPage-Ddp7z3e8-3p3-vb0v.js} +1 -1
  18. package/dist/assets/{AttachmentView-pcpYs-s8-D808dzO5.js → AttachmentView-pcpYs-s8-Bb1hmV9r.js} +1 -1
  19. package/dist/assets/{BankAccountSection-CmXQQBck-BXf6w0tF.js → BankAccountSection-CmXQQBck-5U9GbvUg.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-Dp7qMaI2-DCN96rsg.js → BankAccountWarningSection-Dp7qMaI2-DUYDyhSL.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-ldzD1a4O-CXgyrIw4.js → BankConnectionsSettingsPage-ldzD1a4O-Cm0no8yC.js} +1 -1
  22. package/dist/assets/{BillDetailPage-CBubcYMe-BO_dFsg-.js → BillDetailPage-CBubcYMe-BwBKzNWZ.js} +1 -1
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-BxiRr1tP-COYx8jcO.js → BillPayApprovalRuleDetailPage-BxiRr1tP-jMPlVte-.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-CLBGuxUe-fnAlfa5X.js → BillPayApprovalRulesPage-CLBGuxUe-BeVtWdv4.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-C3takK8D-DwgwIjWq.js → BillPayPromoPage-C3takK8D-D35v8jhQ.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-CweOkcc2-D46-_5BW.js → BillPaySetUpPage-CweOkcc2-Bmcq6In9.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-BQSZ6DMP-DRARmVD3.js → BillingSettingsPage-BQSZ6DMP-BpIPoFvc.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-3trPH78u-CF22gH7n.js → BillsBulkReviewDrawerPage-3trPH78u-CknT1dvx.js} +1 -1
  29. package/dist/assets/{BoxItem-Bf7JemSM-D8tvXCvN.js → BoxItem-Bf7JemSM-DA-EqZ9I.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-DXODyk9C-B5e28vsE.js → BusinessVerificationPage-DXODyk9C-BNgCRU8b.js} +1 -1
  31. package/dist/assets/{CardNumberSubText-ByVXSDZX-CD-Gw7wf.js → CardNumberSubText-ByVXSDZX-DEHzKLxG.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-9RLOXq5b-DSEoSjiZ.js → CashbackDetailPage-9RLOXq5b-Dkm3ES1i.js} +1 -1
  33. package/dist/assets/{ChargeCardDetailPage-lkNsxEdO-e-8D7tkI.js → ChargeCardDetailPage-lkNsxEdO-BUneoo-E.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-DV25pQMP-BgesY_b4.js → ChargeCardListPage-DV25pQMP-BOo6rIHo.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-CSWl05jK-CRlk7PbR.js → ChargeCardListTable-CSWl05jK-DuONjB5U.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-Cv34m9BS-BmZiFW4y.js → ChargeCardPromoPage-Cv34m9BS-CZNZStg6.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-7mEdImT--BWhFbFIQ.js → ChargeCardSetupPage-7mEdImT--CnvgcvBB.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-D_rKdZ5c-DUDd82r_.js → ChargeCardStatementsPage-D_rKdZ5c-CEA_Rx_h.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-BB7l65Bf-DfL6sW6K.js → ChargeCardUtils-BB7l65Bf-CPLK84z2.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-hsrWeA5X-B3bQwtbG.js → ChaseOverlay-hsrWeA5X-Dcp3XMSx.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-CZNH4rCm-CxSsvi_m.js → CheckDepositDrawerPage-CZNH4rCm-DdTXudjo.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-C73RBmaZ-A1Br721z.js → CollapsableReportTable-C73RBmaZ-D428uVrP.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-CZWTSWyp-BOVUWJjT.js → CompanyOfficerDetailsSection-CZWTSWyp-J81A-yw0.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-D-hYeDRN-Bo9rwkQb.js → CompanyPassportCard-D-hYeDRN-CHleBT8E.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-fQ60DR7u-DD7YvAPU.js → CompanyPassportPage-fQ60DR7u-CalJr939.js} +1 -1
  46. package/dist/assets/{CompleteProfile-DnBzaAdT-JcsdBGpZ.js → CompleteProfile-DnBzaAdT-DtIxbZgo.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-D5XTvsuG-Dl2X4lye.js → ConfettiBurst-D5XTvsuG-DqvhMlLN.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-7KdDJirx--0K-JjCB.js → CreateOrEditVendorPage-7KdDJirx-Cy50oCjG.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BNJLUnlH-D5HY42Lo.js → CreditCardPaymentDrawerPage-BNJLUnlH-HMrOhsYY.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-BwqznNRc-DXBqgi-A.js → CreditCardPaymentPlgSection-BwqznNRc-Bkwvl_Pm.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-PwurThUn-qsqObS4L.js → CurrencySelectField-PwurThUn-CCLMhDMc.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-CHJLyOyf-vC6AUxAJ.js → CustomerOnboardingActivationPage-CHJLyOyf-B-wAfl7n.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-DyM4sCZd-2ugo5OTL.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BqdhqyL7-D5d_8a27.js → CustomerOnboardingDetailPageSkeleton-BqdhqyL7-8QZEAu-d.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-DDio10hZ-Bwj4xg2w.js → CustomerOnboardingNoStepsPage-DDio10hZ-BfoQu7jO.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-k2OYvIqe-DW9-8aDi.js → CustomerOnboardingPage-k2OYvIqe-BCb17bIF.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CxB32dUM-D8l5mASB.js → CustomerOnboardingProductSuitePage-CxB32dUM-Do1nrT8y.js} +1 -1
  58. package/dist/assets/{Dashboard-DhMPjLVy-BPpidTU7.js → Dashboard-DhMPjLVy-BLMPexXk.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-C9YvD_24-CnK8XRxa.js → DashboardReportPage-C9YvD_24-CoC796XJ.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-BYFOUvho-D1tjwPkv.js → DepositAccTransactionItem-BYFOUvho-CLqmAE-P.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-DeN4-lBP-CBJVTEU-.js → DepositAccTransactionListPage-DeN4-lBP-BcaZtaYF.js} +1 -1
  62. package/dist/assets/{DocumentSecurityBanner-6cQ2cW7e-Bf5Osic5.js → DocumentSecurityBanner-6cQ2cW7e-B-LiYCwn.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-BmMEth4c-Duh2OS1c.js → DomesticWireDetailsPage-BmMEth4c-0ZA88eE1.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-D0_pmb7k-BhK-Q9wQ.js → DownloadOverlay-D0_pmb7k-485JyjTo.js} +1 -1
  65. package/dist/assets/{DrawerPage-C5u676VK-BwyTjOJX.js → DrawerPage-C5u676VK-CQ6YNm3J.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-DAM71X8m-kukHxW_0.js → EditPeoplePage-DAM71X8m-B2UZEnLj.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-BxjNoyj8-mj8ySbuq.js → EditReimbursementDetailPage-BxjNoyj8-BPCBUC8w.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-BfscGvkI-DlE98_0K.js → EntityDetailPage-BfscGvkI-CDpC3UiC.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-BCkLY2Py-lpTrhfnW.js → EntitySummarySection-BCkLY2Py-BvmspxF4.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-C4SCxViu-BAakN-WZ.js → ExpenseAutomationOverviewPage-C4SCxViu-BTF6U5vA.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-DF1-Q4X5-DubLusUH.js → ExpenseAutomationPage-DF1-Q4X5-DpQfueM1.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-Cdtx03yB-BxTU3id1.js → ExpressPayPage-Cdtx03yB-CFuea7SC.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-nQYT4moR-CobwvrFz.js → FeaturePreviewPage-nQYT4moR-Cr3GrNZL.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-CRBm3eL9-Bz_q7qOo.js → FollowStepsSection-CRBm3eL9-BxrxyxZb.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-3iXmpaXt-BpdqjyXr.js → GlobalReviewListPage-3iXmpaXt-DvNMoVjg.js} +1 -1
  76. package/dist/assets/{HelpButton-Cv7-d_qL-CciztHgu.js → HelpButton-Cv7-d_qL-CUvPOpAv.js} +1 -1
  77. package/dist/assets/{InformationCardStack-JCre21xs-BlkeDU23.js → InformationCardStack-JCre21xs-DtS-Hddp.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-Dekfw94R-VqCo_XNV.js → InsightsCardStack-Dekfw94R-BLPjyaig.js} +1 -1
  79. package/dist/assets/{InsightsSection-CLqfyvOO-CKwkK2Sj.js → InsightsSection-CLqfyvOO-xadJoIF2.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-o9w1-WIT-BCMJ43n5.js → IntegrationsSettingsPage-o9w1-WIT-_9mLCWjO.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-DBG1ni7g-DMTAsaCM.js → InternationalWireSwiftDetailsPage-DBG1ni7g-5byzUSyT.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-BLU4F--p-BFU2uuwn.js → InternationalWireVerificationPage-BLU4F--p-CJDTcopv.js} +1 -1
  83. package/dist/assets/{InviteFormPage-Bf8Mqb7S-BtjdSecG.js → InviteFormPage-Bf8Mqb7S-DDTavBxx.js} +1 -1
  84. package/dist/assets/{InvitePageListView-6oeT1vaB-Bpmua81S.js → InvitePageListView-6oeT1vaB-CKIuu3RS.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-CLvVDRca-CLtgUYZW.js → InvitePeoplePage-CLvVDRca-D907h_Dw.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-BiIfE0Mk-DzhUPeCE.js → InvoiceUploadSection-BiIfE0Mk-CTWHQOhW.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-Dd312Qu7-BymELIm-.js → IssueChargeCardPage-Dd312Qu7-DJeAloNR.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-BplX--OG-BBD4K47a.js → LabeledAddressValue-BplX--OG-CiZ_SQgG.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-DkhJs5ky-DLdSr7t1.js → LabeledAddressValueField-DkhJs5ky-B6R8wPlw.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-SJfjkDzA-q46TDnxw.js → LabeledControlledCheckBoxField-SJfjkDzA-CpIAw81s.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-CPwrvNjy-C-LowpML.js → LabeledCreatableSingleSelectField-CPwrvNjy-D3f7Nu-c.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-DLd6UnEn-DtqGgdoi.js → LabeledDocumentField-DLd6UnEn-o-XnUJ1D.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-D70GX0HR-7dIEmO5F.js → LabeledDropDownFormattedTextField-D70GX0HR-Mxvvq1WO.js} +1 -1
  94. package/dist/assets/{LabeledText-mTAE2dvH-e6RXkC8i.js → LabeledText-mTAE2dvH-BXZp1Sm_.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dx8TfHuB-hRPyJuOY.js → LabeledUserSingleSelectWithSubtitlesField-Dx8TfHuB-DrtQGMZC.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-ZGHinaTy-14IF6Cak.js → LabeledZeniRolesDropDownField-ZGHinaTy-Bb9QLK3C.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-CNYQO-AQ-BO9clNns.js → LinkJETransactionPage-CNYQO-AQ-CY88gwq7.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-hdwaJezh-B0CYMe4t.js → LowBalancePopup-hdwaJezh-f3ksDR4g.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage--DRHcaKz-BBtLo6wh.js → MagicLinkACHDetailsPage--DRHcaKz-WEt4M3n2.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-B5hbI4dU-0vD7L8pJ.js → MagicLinkDomesticWireDetailsPage-B5hbI4dU-BBmovkJC.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BdwVZCRt-BzFpmTJD.js → MagicLinkInternationalWireDetailsPage-BdwVZCRt-5G01_OeQ.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-DOUrPdD--h771bDUh.js → MagicLinkSuccessPage-DOUrPdD--DcZ_t2NE.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-Bb27jU2a-DQOPYd-Z.js → MagicLinkTitleSection-Bb27jU2a-DoQ8aWp1.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-CdKFQB_8-K5G0AaPG.js → MailingDetailsSection-CdKFQB_8-DW3BDO52.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-B3sIZU3d-DuEMLObz.js → MeetingCalenderPopup-B3sIZU3d-DQNFWJ_9.js} +1 -1
  106. package/dist/assets/{Menu-Bsk58l8k-kRDchKev.js → Menu-Bsk58l8k-DveIoh_v.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-P1Zh6SFD-C4DvQ61H.js → MyBankConnectionsSettingsPage-P1Zh6SFD-hnAROTqH.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-Cs7rVAdh-B9AXkK-5.js → MyPendingActivationChargeCardListPage-Cs7rVAdh-Cmwa__iw.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-Cc4XfbBQ-C9qNtbAb.js → MyProfileSettingsPage-Cc4XfbBQ-CNw8hQXw.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-DFD5LZ4o-CjFvYGu-.js → NavBarWithPicker-DFD5LZ4o-DVbNG2lJ.js} +1 -1
  111. package/dist/assets/{NavigationArrow-mL8dVddD-CApZjvsF.js → NavigationArrow-mL8dVddD-CWP10rmD.js} +1 -1
  112. package/dist/assets/{NavigationDots-MPqPjbnr-gK408Eu4.js → NavigationDots-MPqPjbnr-B2VuEWoT.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-QTvziNPs-DJ7dMRKm.js → NewGlobalMerchantPage-QTvziNPs-CWfcgxwK.js} +1 -1
  114. package/dist/assets/{NoDataChart-C1BY1riw-DoqrJEIG.js → NoDataChart-C1BY1riw-DEwvHChk.js} +1 -1
  115. package/dist/assets/{NoDataTable-C_4AqyDp-cxOm3TqL.js → NoDataTable-C_4AqyDp-8AvQpHPa.js} +1 -1
  116. package/dist/assets/{NotFoundPage-U8Zqpzgy-DGacTch6.js → NotFoundPage-U8Zqpzgy-B6U5r_7M.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-2A4Pahmq-ugOY8DfW.js → NotificationSettingsPage-2A4Pahmq-CXgVjNli.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-BIw5ASx2-BpsD8zMo.js → NotificationsListConfig-BIw5ASx2-Bj3yoWmL.js} +1 -1
  119. package/dist/assets/{NotificationsPage-B6yKJmGI-ABrq9lsr.js → NotificationsPage-B6yKJmGI-DzN6ib9t.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-BnTlBXeu-CtQ9Rudi.js → OpExByVendorPage-BnTlBXeu-CipcFkdu.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-BxBOhoib-0U2mSFzb.js → OverlayContainerPage-BxBOhoib-ukQtuWFC.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-CKW73tr8-DQuvWZ35.js → PandLWithForecastPage-CKW73tr8-D7h3LcYD.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CSEVISAI-Bq0DuZcX.js → PaymentAccountSetupBillingAddressSection-CSEVISAI-BNavlD0y.js} +1 -1
  124. package/dist/assets/{PeoplePage-BJxZJT-l-FSQqwOWI.js → PeoplePage-BJxZJT-l-C9LL-QhI.js} +1 -1
  125. package/dist/assets/{PortfolioAllocationFormPage-C4pRhyet-Wf_11Z3Y.js → PortfolioAllocationFormPage-C4pRhyet-BgcVpkPb.js} +1 -1
  126. package/dist/assets/{PortfolioDetails-4fbkArz6-0_-lQYOm.js → PortfolioDetails-4fbkArz6-B-yRSXBm.js} +1 -1
  127. package/dist/assets/{ProductsCarousel-gGbLzHle-BYrndM43.js → ProductsCarousel-gGbLzHle-BiV0Dada.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-DUlZEg5E-CbxyeszU.js → PromoBaseCards-DUlZEg5E-xcZglFHs.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-C_Z2lvUz-DLhuJ1u0.js → QBOConnectionDialog-C_Z2lvUz-BwsPJmHe.js} +1 -1
  130. package/dist/assets/{QBOSetupSection-DqWiwHwl-DIb9XM9r.js → QBOSetupSection-DqWiwHwl-CaRIoZTT.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-JWdrVgqW-CFvIiw2A.js → ReimbursementApprovalRuleDetailPage-JWdrVgqW-C_wUAOQY.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-BnBNwFzM-C_gjNu0y.js → ReimbursementApprovalRulesPage-BnBNwFzM-DjomTgZF.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-Dyjb0qZE-BT9Piz6e.js → ReimbursementDetailPage-Dyjb0qZE-Bb3CYqzm.js} +1 -1
  134. package/dist/assets/{ReimbursementPromoPage-D1EqiXEa-DCne6gHN.js → ReimbursementPromoPage-D1EqiXEa-FvZLWCiR.js} +1 -1
  135. package/dist/assets/{ReimbursementSetUpPage-ClJ_4WMp-Rk-zjJTF.js → ReimbursementSetUpPage-ClJ_4WMp-BJpe0ne4.js} +1 -1
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B-uGRv6i-04ZwLpFl.js → ReimbursementsBulkReviewDrawerPage-B-uGRv6i-CHahWJGS.js} +1 -1
  137. package/dist/assets/{ReloadCard-DVYCtjFP-BRGDk89Q.js → ReloadCard-DVYCtjFP-CU_Dnd08.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-BTu2hum1-C1Mbyqo-.js → ReportTableViewSelector-BTu2hum1-CPyUV-1u.js} +1 -1
  139. package/dist/assets/{ReportsPage-BJEqtDDR-D_PksdU9.js → ReportsPage-BJEqtDDR-DrtRVAGN.js} +1 -1
  140. package/dist/assets/{RevenueChart-BFS-A4qa-BBXnyto4.js → RevenueChart-BFS-A4qa-Cx-As_Eb.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-C6qSCmDQ-B2yUNAOk.js → ReviewDetailsPage-C6qSCmDQ-DWlHT8F5.js} +1 -1
  142. package/dist/assets/{ReviewOverlay-DItEmr7f-J3VxEX04.js → ReviewOverlay-DItEmr7f-AS3xzQ96.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-CqtMdboJ-Do2co-59.js → RoleWithToolTip-CqtMdboJ-DDxj3xxP.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CKcDbns8-CVYGhsoz.js → ScheduleDetailsFixedAssetsPage-CKcDbns8-fF7PO25g.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsPage-CYqYYvix-CdBl7QS5.js → ScheduleDetailsPage-CYqYYvix-BNlu0RJ8.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-DUYFGZvc-B-XLebxH.js → ScheduleSequenceTable-DUYFGZvc-9HL4QDrz.js} +1 -1
  147. package/dist/assets/{ScreenRoutes-BFh5xZjd.js → ScreenRoutes-BI6xyHHN.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-DfuZHlL6-sva6HoSx.js → SetUpAccountSection-DfuZHlL6-D7lVamWi.js} +1 -1
  149. package/dist/assets/{SetUpDefaultSection-Jl4dtzx3-CDDnDgUz.js → SetUpDefaultSection-Jl4dtzx3-C3-EmpC_.js} +1 -1
  150. package/dist/assets/{SignIn-OTT_6lLp-4uioYcss.js → SignIn-OTT_6lLp-BofEbUzx.js} +1 -1
  151. package/dist/assets/{SignInScreen-VsVK9Vz1.js → SignInScreen-CCNlCZPG.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-BkL-3WNh-DhY9QPd5.js → SpendManagementListViewPage-BkL-3WNh-CmJxty83.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-Buppd61y-KX81e_1p.js → SpendManagementPerTabPage-Buppd61y-Z26soCL-.js} +1 -1
  154. package/dist/assets/{SpendManagementSection-BGcBRKGN-CG3uT_ZE.js → SpendManagementSection-BGcBRKGN-r3ndTuv4.js} +1 -1
  155. package/dist/assets/{SpendMgmtSetupAccountSection-Cswh297O-5u1iK010.js → SpendMgmtSetupAccountSection-Cswh297O-ClH8d_8B.js} +1 -1
  156. package/dist/assets/{StatementItem-C3tUNT5A-D9LIbCmi.js → StatementItem-C3tUNT5A-CIQABbZw.js} +1 -1
  157. package/dist/assets/{StatementsPage-DGryRE6z-C-mT3zfT.js → StatementsPage-DGryRE6z-DYX2UB10.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-BgWlxay9-Mp4PEzEM.js → StatusSwitcher-BgWlxay9-C2yA7CjA.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-DwwAqq_R-DBNFWy_6.js → SubTabSwitcher-DwwAqq_R-C-rVBP68.js} +1 -1
  160. package/dist/assets/{SummaryCard-Dm0Tx9is-BV25EA5P.js → SummaryCard-Dm0Tx9is-BOl3yzj-.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-59XAl_cs-BbyBf_KE.js → TaskManagementPage-59XAl_cs-DdQCzzW7.js} +1 -1
  162. package/dist/assets/{TimeRangeSwitcher-D7-Jph-G-Cn7zeCi8.js → TimeRangeSwitcher-D7-Jph-G-DrzBgOKv.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcher-CWYQWFLF-B37Mzr7G.js → TimeframeSwitcher-CWYQWFLF-B2eT3g6m.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-QOhQ3sac-BtE_j2V5.js → TimeframeSwitcherWithToggle-QOhQ3sac-DRu8hhQ-.js} +1 -1
  165. package/dist/assets/{TopExCard-CTlizsDD-CdK-gYL3.js → TopExCard-CTlizsDD-CbVG0KKn.js} +1 -1
  166. package/dist/assets/{TopExDetailPage-Df3JbgcF-BUIhSfiv.js → TopExDetailPage-Df3JbgcF-DygJJzQr.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-DvNpTjAp-3mOQ99vo.js → TransactionDetailPage-DvNpTjAp-nivJ-WE2.js} +1 -1
  168. package/dist/assets/{TransactionList-SkSPfIsE-CE8kQBAe.js → TransactionList-SkSPfIsE-3VqEpEta.js} +1 -1
  169. package/dist/assets/{TransactionListBig-CZCV_kmJ-DVUvA7le.js → TransactionListBig-CZCV_kmJ-CU-ZTueA.js} +1 -1
  170. package/dist/assets/{TransactionListPage-CBbyagWp-Da8WpQzF.js → TransactionListPage-CBbyagWp-CABnQ2Ad.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-BXnlFdHR-DkKO-vTr.js → TransactionVendorDetailPage-BXnlFdHR-Cg-sleYC.js} +1 -1
  172. package/dist/assets/{TransferDrawerPage-CxXLyKwW-pf6KUagR.js → TransferDrawerPage-CxXLyKwW-CcrxmwoP.js} +1 -1
  173. package/dist/assets/{TreasuryOverviewPage-3JlXZfCV-Dx_gGX5K.js → TreasuryOverviewPage-3JlXZfCV-BaVWxrMw.js} +1 -1
  174. package/dist/assets/{TreasuryPromoPage-BhAicq7r-CWtB-Ior.js → TreasuryPromoPage-BhAicq7r-BXFjeSvE.js} +1 -1
  175. package/dist/assets/{TreasurySetupPage-BQG_Wd5U-DotUWNKW.js → TreasurySetupPage-BQG_Wd5U-CuRZifkf.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-dCAtvvZk-CQC0pKh5.js → TreasuryStatementsPage-dCAtvvZk-LOpMx3mv.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-irA0Cgkj-CtL9UaTH.js → TreasuryTaxLetterPage-irA0Cgkj-CK8dgrod.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-Dd1oLBma-BqeITAG-.js → TreasuryTransferOrReviewPage-Dd1oLBma-BdudBXha.js} +1 -1
  179. package/dist/assets/{TrendChart-Ctquh3qH-BiYWLM8X.js → TrendChart-Ctquh3qH-BXdwoNzy.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-CoXTnQK7-BLlEO5rp.js → TrendWithTransactions-CoXTnQK7-DI1VEsOz.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-Cq49D6V9-TgKDL_ek.js → UncategorizedAccountsMappingPage-Cq49D6V9-DdxXW0nh.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-CR0nZ7NM-R_gwAwZ8.js → UnitIntegrationPage-CR0nZ7NM-CNMCC02w.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-B_DFEIlC-D-vyB1J1.js → UploadAdditionalDocumentOverlay-B_DFEIlC-CURAudK_.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-KsRgKz_Z-j8koIFf4.js → Vendor2FAPopup-KsRgKz_Z-LsR0JToL.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-MRaehbhm-DmI12dQp.js → VendorACHDetailsPage-MRaehbhm-CLgE5xYR.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-Cji21PBc-B3adWyVF.js → VendorDetailPage-Cji21PBc-BCtJStdp.js} +1 -1
  187. package/dist/assets/{VendorDomesticWireDetailsPage-DhUIW9g--qdYZ8d9x.js → VendorDomesticWireDetailsPage-DhUIW9g--COJKg8zJ.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-BWFbXLhQ-C5qvIENm.js → VendorFiling1099EditablePage-BWFbXLhQ-BxUi0-__.js} +1 -1
  189. package/dist/assets/{VendorFirstReviewPage-tvh5pcvQ-B2Kk7Crs.js → VendorFirstReviewPage-tvh5pcvQ-THD3l6eB.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-CfmZSb8O-B-ILWyNn.js → VendorInternationalWireDetailsPage-CfmZSb8O-DIxfvNFa.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-V_1s9mWi-hnkkHj00.js → VendorInternationalWireSwiftDetailsPage-V_1s9mWi-CfIMbPtN.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-b9s5nqGq-DfS13Vrv.js → VendorsAccountsSection-b9s5nqGq-C603vDJM.js} +1 -1
  193. package/dist/assets/{VerifyDevice-CJgD3UmO-uodXssPo.js → VerifyDevice-CJgD3UmO-DfWOJP1r.js} +1 -1
  194. package/dist/assets/{WarningsDrawerPage-CB4mJGTB-fzxOGtfc.js → WarningsDrawerPage-CB4mJGTB-BdjqZZPI.js} +1 -1
  195. package/dist/assets/{ZeniAccountDetailPage-CgSyyen1-PEjv41n1.js → ZeniAccountDetailPage-CgSyyen1-CshTBZp2.js} +1 -1
  196. package/dist/assets/{ZeniAccountListViewPage-DjGZpdh_-BsFv0aAo.js → ZeniAccountListViewPage-DjGZpdh_-ZERnQ4MU.js} +1 -1
  197. package/dist/assets/{ZeniAccountNavBarPieces-BJC4d2Iu-BjaYs6wQ.js → ZeniAccountNavBarPieces-BJC4d2Iu-DYh40FyS.js} +1 -1
  198. package/dist/assets/{ZeniAccountPromoPage-D3Yt6FIj-ypiLoIIl.js → ZeniAccountPromoPage-D3Yt6FIj-GRZWrpyM.js} +1 -1
  199. package/dist/assets/{ZeniAccountSetupPage-BeCPekI4-BoIQB_8y.js → ZeniAccountSetupPage-BeCPekI4-B43tT3eQ.js} +1 -1
  200. package/dist/assets/{ZeniCopyright-Dhdl9kqY-CRu5oNtE.js → ZeniCopyright-Dhdl9kqY-Ef9QRXwR.js} +1 -1
  201. package/dist/assets/{ZeniTransferAmountSlider-B8VFb2l--enqH4TrQ.js → ZeniTransferAmountSlider-B8VFb2l--DxgbNpeK.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DBiIeSgZ.js → analyticsHelper-CWmZNwFh.js} +1 -1
  203. package/dist/assets/{analyticsHelper-Cawv3PXO-DqLgneHd.js → analyticsHelper-Cawv3PXO-W_w6SVVv.js} +1 -1
  204. package/dist/assets/{chartTypes-5p7NWUHx-6R9pye-p.js → chartTypes-5p7NWUHx-CaLqh1mY.js} +1 -1
  205. package/dist/assets/{commonDimensions-CQlLUBWG-C3nTCVjo.js → commonDimensions-CQlLUBWG-DzlL6K89.js} +1 -1
  206. package/dist/assets/{detailCommon-CoAmJ6pY-B0Qu3snC.js → detailCommon-CoAmJ6pY-B7nmx1bS.js} +1 -1
  207. package/dist/assets/{downloadPdf-CCJjnfCZ-ODxWAPRh.js → downloadPdf-CCJjnfCZ-DhZmGI0x.js} +1 -1
  208. package/dist/assets/{index-C2JVdK9x.js → index-BQuxwdpl.js} +9 -9
  209. package/dist/assets/{mapLoadingInProgressToTreeNode-CwyU1xs5-DTtIWEnS.js → mapLoadingInProgressToTreeNode-CwyU1xs5-BVaHor8r.js} +1 -1
  210. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-IKJYFM7_-BiH-dZ1q.js → mapSectionWithAcOnlyToTreeNode-IKJYFM7_-BhnDf8Ml.js} +1 -1
  211. package/dist/assets/{mapSpacerToTreeNode-D5XTLzM7-CZeCl2Hx.js → mapSpacerToTreeNode-D5XTLzM7-BSt0rKdl.js} +1 -1
  212. package/dist/assets/{mapTimeframeBalancesToTreeNode-CJMbtmIl-DGh10zzw.js → mapTimeframeBalancesToTreeNode-CJMbtmIl-5p_Ma1rs.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-SX6fBp6e-DSWmrMTg.js → mapTimeframeBalancesToTreeNode-SX6fBp6e-CrAiUa7Z.js} +1 -1
  214. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ts5lOZtX-DZNSlCJx.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Ts5lOZtX-EAxYFN8c.js} +1 -1
  215. package/dist/assets/{play-icon-oQKnPjZi-D1s2fk0_.js → play-icon-oQKnPjZi-ikYsAriO.js} +1 -1
  216. package/dist/assets/{toCOABalancesWithID-DwvFse7w-YhdHXdmt.js → toCOABalancesWithID-DwvFse7w-BpGyVZma.js} +1 -1
  217. package/dist/assets/{toChartData-BBvMC_VQ-D9RVT7PQ.js → toChartData-BBvMC_VQ-C0NFogQd.js} +1 -1
  218. package/dist/assets/{treasuryColorHelper-CUDK9KvQ-DUBVC7I-.js → treasuryColorHelper-CUDK9KvQ-D8RX0DsH.js} +1 -1
  219. package/dist/assets/{uploadAttachment-P4S_2L_v-CgBJ3cvv.js → uploadAttachment-P4S_2L_v-CGkHKEhM.js} +1 -1
  220. package/dist/assets/{uploadReceipts-DhDnr0ap-Dmr6ZzO6.js → uploadReceipts-DhDnr0ap-B_HL-sz_.js} +1 -1
  221. package/dist/index.html +1 -1
  222. package/package.json +1 -1
  223. package/dist/assets/CustomerOnboardingContainerPage-DyM4sCZd-DLhRqrqJ.js +0 -1
@@ -1 +1 @@
1
- import{j as d}from"./mui-C5LQ0bMa.js";import{b as S,f as m}from"./vendor-CnQcJ2Lu.js";import{g as f,u as l,f as I}from"./redux-ByjIRbhZ.js";import{kg as u,u as w,l as r,M as h,kf as C,A as E,kN as v,kj as p}from"./index-C2JVdK9x.js";import{f as U}from"./analyticsHelper-DBiIeSgZ.js";import{a as x,u as y,N as k}from"./routing-Cpaypegg.js";import{c as L}from"./sentry-HDxG13yk.js";import"./analytics-CBL_L82S.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";function T(o){const a=o.tenantState.fetchState,i=o.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:o.tenantState.error?.error,fetchState:a,sendMagicLinkStatus:i,showEmailLogin:!1}}function A(o,a){const{location:i,navigate:s}=a;return console.warn(JSON.stringify(window.location)),{onOAuthError:(t,e)=>{L({message:`OAuth error from provider ${e} with error ${t}`,level:"error",tags:{authProvider:e,errorType:"zeni.login.error"},extra:{error:t,windowLocation:window.location.href}})},onOAuthSuccess:(t,e)=>{const g=e==="google"?window.location.origin:window.location.origin+window.location.pathname;o(r.doSignIn({authCode:t,oauthProvider:e,appType:"web",redirectUri:r.toZeniUrl(g),sourceUri:r.toZeniUrl(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>u.getSignedInUser(),onSignedInCallback:()=>{const t=i.state?.origin;t&&t!=="/"?s(t,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{o(r.resetSignInState())}}}const N=I(T,A)(v),P=m.memo(N);function B(){const o=f(),a=x(),i=u.getSignedInUser(),s=l(n=>n.tenantState.fetchState),t=l(n=>n.tenantState.signInState),e=l(n=>n.tenantState.loggedInUser),g=w().mode,c=y();if(S.useEffect(()=>{if(t==="In-Progress"&&s==="Completed"&&e?.zeniSessionId!=null){u.saveSignedInUserWithSession(e,e.zeniSessionId),r.updateZeniAPIClientConfig(e.userId,e.zeniSessionId),o(r.updateSignInState("Completed")),h.updateAppLocaleID("en"),U(e,g);const n=c.state?.queryParams;setTimeout(()=>{C.trackLogin(E.Event.loginSuccess,e.authProvider??"google",n?.utmSource,n?.utmMedium)},2e3)}},[]),t==="In-Progress"&&s==="Completed"&&e?.zeniSessionId!=null||i!=null){const n=c.state?.origin??"/";return d.jsx(k,{to:n,state:{...c.state,origin:""}})}else return d.jsx(P,{navigate:a,location:c})}export{B as default};
1
+ import{j as d}from"./mui-C5LQ0bMa.js";import{b as S,f as m}from"./vendor-CnQcJ2Lu.js";import{g as f,u as l,f as I}from"./redux-ByjIRbhZ.js";import{kg as u,u as w,l as r,M as h,kf as C,A as E,kN as v,kj as p}from"./index-BQuxwdpl.js";import{f as U}from"./analyticsHelper-CWmZNwFh.js";import{a as x,u as y,N as k}from"./routing-Cpaypegg.js";import{c as L}from"./sentry-HDxG13yk.js";import"./analytics-CBL_L82S.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";function T(o){const a=o.tenantState.fetchState,i=o.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:o.tenantState.error?.error,fetchState:a,sendMagicLinkStatus:i,showEmailLogin:!1}}function A(o,a){const{location:i,navigate:s}=a;return console.warn(JSON.stringify(window.location)),{onOAuthError:(t,e)=>{L({message:`OAuth error from provider ${e} with error ${t}`,level:"error",tags:{authProvider:e,errorType:"zeni.login.error"},extra:{error:t,windowLocation:window.location.href}})},onOAuthSuccess:(t,e)=>{const g=e==="google"?window.location.origin:window.location.origin+window.location.pathname;o(r.doSignIn({authCode:t,oauthProvider:e,appType:"web",redirectUri:r.toZeniUrl(g),sourceUri:r.toZeniUrl(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>u.getSignedInUser(),onSignedInCallback:()=>{const t=i.state?.origin;t&&t!=="/"?s(t,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{o(r.resetSignInState())}}}const N=I(T,A)(v),P=m.memo(N);function B(){const o=f(),a=x(),i=u.getSignedInUser(),s=l(n=>n.tenantState.fetchState),t=l(n=>n.tenantState.signInState),e=l(n=>n.tenantState.loggedInUser),g=w().mode,c=y();if(S.useEffect(()=>{if(t==="In-Progress"&&s==="Completed"&&e?.zeniSessionId!=null){u.saveSignedInUserWithSession(e,e.zeniSessionId),r.updateZeniAPIClientConfig(e.userId,e.zeniSessionId),o(r.updateSignInState("Completed")),h.updateAppLocaleID("en"),U(e,g);const n=c.state?.queryParams;setTimeout(()=>{C.trackLogin(E.Event.loginSuccess,e.authProvider??"google",n?.utmSource,n?.utmMedium)},2e3)}},[]),t==="In-Progress"&&s==="Completed"&&e?.zeniSessionId!=null||i!=null){const n=c.state?.origin??"/";return d.jsx(k,{to:n,state:{...c.state,origin:""}})}else return d.jsx(P,{navigate:a,location:c})}export{B as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SpendManagementPerTabPage-Buppd61y-KX81e_1p.js","assets/index-C2JVdK9x.js","assets/mui-C5LQ0bMa.js","assets/vendor-CnQcJ2Lu.js","assets/analytics-CBL_L82S.js","assets/routing-Cpaypegg.js","assets/sentry-HDxG13yk.js","assets/redux-ByjIRbhZ.js","assets/liveblocks-sSQ9JElv.js","assets/crypto-BURQLTgV.js","assets/index-BAKoUD4u.css","assets/useLongPress-GCK2COYQ-gxLtL5O4.js","assets/StatusSwitcher-BgWlxay9-Mp4PEzEM.js"])))=>i.map(i=>d[i]);
2
- import{u as Ue,V as He,X as z,l as y,M as U,fK as Ve,fM as Ge,j as o,g4 as Je,aV as Ke,q as qe,o as t,dy as We,gk as M,aA as Ye,fV as Ze,C,gl as Xe,fe as Qe,ff as et,g as S,m as tt,p as x,gm as ot,a2 as at,bp as it,s as nt,bK as st,fg as lt,ax as rt,f as ct}from"./index-C2JVdK9x.js";import{b as u,n as r,k as H}from"./vendor-CnQcJ2Lu.js";import{_ as dt}from"./liveblocks-sSQ9JElv.js";import{Y as mt}from"./SpendManagementSection-BGcBRKGN-CG3uT_ZE.js";import{K as ut}from"./StatusSwitcher-BgWlxay9-Mp4PEzEM.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const F=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},u.createElement("path",{d:"M22.781 11.8215C22.7883 14.6988 21.6612 17.4629 19.6441 19.5146C17.627 21.5664 14.8825 22.7404 12.0055 22.7822C10.6005 22.8033 9.20515 22.5453 7.90056 22.023C6.59596 21.5008 5.40804 20.7247 4.40567 19.7399C3.40331 18.755 2.60645 17.5809 2.06132 16.2857C1.51619 14.9905 1.23362 13.6 1.23002 12.1948C1.22199 9.31703 2.34875 6.55215 4.36593 4.49975C6.38312 2.44735 9.1281 1.27292 12.0055 1.23117C13.4108 1.21016 14.8063 1.46837 16.111 1.99085C17.4158 2.51332 18.6038 3.28965 19.6061 4.27481C20.6085 5.25996 21.4053 6.43433 21.9503 7.72981C22.4953 9.02529 22.7777 10.4161 22.781 11.8215Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M17.1573 10.374H9.83934C9.05979 10.374 8.31216 10.6766 7.76093 11.2151C7.2097 11.7537 6.90002 12.4841 6.90002 13.2457C6.90002 14.0074 7.2097 14.7378 7.76093 15.2764C8.31216 15.8149 9.05979 16.1175 9.83934 16.1175H11.309",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M14.2151 13.2434L17.1544 10.3717L14.2151 7.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),f={width:new C(343,545,545),containerTop:new C(17,25,25),containerPaddingLeftRight:new C(x[4],x[7])},pt=r.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SpendManagementPerTabPage-Buppd61y-Z26soCL-.js","assets/index-BQuxwdpl.js","assets/mui-C5LQ0bMa.js","assets/vendor-CnQcJ2Lu.js","assets/analytics-CBL_L82S.js","assets/routing-Cpaypegg.js","assets/sentry-HDxG13yk.js","assets/redux-ByjIRbhZ.js","assets/liveblocks-sSQ9JElv.js","assets/crypto-BURQLTgV.js","assets/index-BAKoUD4u.css","assets/useLongPress-GCK2COYQ-gxLtL5O4.js","assets/StatusSwitcher-BgWlxay9-C2yA7CjA.js"])))=>i.map(i=>d[i]);
2
+ import{u as Ue,V as He,X as z,l as y,M as U,fK as Ve,fM as Ge,j as o,g4 as Je,aV as Ke,q as qe,o as t,dy as We,gk as M,aA as Ye,fV as Ze,C,gl as Xe,fe as Qe,ff as et,g as S,m as tt,p as x,gm as ot,a2 as at,bp as it,s as nt,bK as st,fg as lt,ax as rt,f as ct}from"./index-BQuxwdpl.js";import{b as u,n as r,k as H}from"./vendor-CnQcJ2Lu.js";import{_ as dt}from"./liveblocks-sSQ9JElv.js";import{Y as mt}from"./SpendManagementSection-BGcBRKGN-r3ndTuv4.js";import{K as ut}from"./StatusSwitcher-BgWlxay9-C2yA7CjA.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const F=e=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",...e},u.createElement("path",{d:"M22.781 11.8215C22.7883 14.6988 21.6612 17.4629 19.6441 19.5146C17.627 21.5664 14.8825 22.7404 12.0055 22.7822C10.6005 22.8033 9.20515 22.5453 7.90056 22.023C6.59596 21.5008 5.40804 20.7247 4.40567 19.7399C3.40331 18.755 2.60645 17.5809 2.06132 16.2857C1.51619 14.9905 1.23362 13.6 1.23002 12.1948C1.22199 9.31703 2.34875 6.55215 4.36593 4.49975C6.38312 2.44735 9.1281 1.27292 12.0055 1.23117C13.4108 1.21016 14.8063 1.46837 16.111 1.99085C17.4158 2.51332 18.6038 3.28965 19.6061 4.27481C20.6085 5.25996 21.4053 6.43433 21.9503 7.72981C22.4953 9.02529 22.7777 10.4161 22.781 11.8215Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M17.1573 10.374H9.83934C9.05979 10.374 8.31216 10.6766 7.76093 11.2151C7.2097 11.7537 6.90002 12.4841 6.90002 13.2457C6.90002 14.0074 7.2097 14.7378 7.76093 15.2764C8.31216 15.8149 9.05979 16.1175 9.83934 16.1175H11.309",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),u.createElement("path",{d:"M14.2151 13.2434L17.1544 10.3717L14.2151 7.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),f={width:new C(343,545,545),containerTop:new C(17,25,25),containerPaddingLeftRight:new C(x[4],x[7])},pt=r.div`
3
3
  position: fixed;
4
4
  top: 0;
5
5
  left: 0;
@@ -106,7 +106,7 @@ import{u as Ue,V as He,X as z,l as y,M as U,fK as Ve,fM as Ge,j as o,g4 as Je,aV
106
106
  color: ${e=>e.theme.colors.primary};
107
107
  position: absolute;
108
108
  bottom: 22px;
109
- `,N=U.getLocalizedStrings().common.copyToClipBoard;function Et(e){const p=z(),[,h]=Qe(),[c,d]=u.useState(!0),[i,a]=u.useState(!1),[s,n]=u.useState(!1),{isMobileOrTabletScreen:g}=et(),T=()=>{if(c){const w=e.botEmail;h(w),d(!1)}},v=()=>{a(!0)},k=()=>{a(!1)};return u.useEffect(()=>{c===!1&&setTimeout(()=>{d(!0)},2e3)},[c]),o.jsx(pt,{windowSize:p,role:"presentation",style:{background:S.overlayDark,...e.style},children:o.jsx(tt,{onClickAway:()=>{n(!0),setTimeout(()=>e.onCancelClick?.(),250)},children:o.jsxs(yt,{windowSize:p,className:s?"fade":"",fade:s,children:[o.jsx(It,{onClick:()=>{n(!0),setTimeout(()=>e.onCancelClick?.(),250)}}),o.jsx(gt,{children:e.title}),o.jsx($t,{children:e.descriptionLines.map((w,l)=>o.jsxs(Ct,{children:[o.jsx(wt,{children:w.icon}),o.jsx(ft,{windowSize:p,children:w.text})]},l))}),o.jsxs(xt,{onClick:T,onMouseOver:v,onMouseLeave:k,showCopyIcon:c,showCopyText:i,children:[o.jsx(vt,{showCopyText:i,children:e.botEmail}),c?o.jsx(Tt,{windowSize:p,showCopyText:i&&!g,children:o.jsx(St,{})}):o.jsx(kt,{})]}),o.jsx(Bt,{children:c?i&&!g?N.copy:null:N.copied})]})})})}const V=U.getLocalizedStrings(),m=V.spendManagement,{common:{texts:{comments:At}},collaboration:{threads:{placeholder:{addANewComment:Lt,replyAComment:jt},tooltip:{resolveComment:Rt,unResolveComment:Pt}}}}=V,Ot={drawerSectionPaddingLeftRight:new C(x[4],x[5])},_t=Xe(()=>ot(()=>import("./SpendManagementPerTabPage-Buppd61y-KX81e_1p.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),Xt=e=>{const p=Ue(),h=He(),c=z(),{transactionList:d,allSubTabs:i,isAdmin:a,botEmail:s,isEmployee:n=!1,currentTab:g,currentSubTab:T,approvalCount:v,fetchState:k,analytics:w,entity:l,uiState:G,searchText:B,filters:J,vendorSearchAutoCompleteData:K,vendorSearchAutoCompleteActions:q,createdByUserList:W,createdByUserListFetchState:E,downloadParams:Y,downloadState:Z,isDownloadEnabled:X,isShowDeletedBillsEnabled:Q,isShowDeletedReimbursementEnabled:ee,isBillPayCommentingEnabled:A,isReimbursementCommentingEnabled:L,isDetectInsufficientFundsEnabled:te=!1,updateTabToState:oe,onSubtabChange:j,onReloadTransactions:ae,onTransactionClick:R,onClickSetupIcon:P,onBackClick:ie,onAddTransactionClick:ne,onColumnSortConfigChanged:se,onSearchTextChanged:le,onClickMenuIcon:re,onFiltersChange:ce,updateDownloadStateHandler:de,bulkSubmissionLimit:me=10,isBulkActionAllowed:ue=!1,isRecurringBillInBulkActionList:pe=!1,transactionsSelectedForBulkAction:he=[],allowedBulkActions:be=[],bulkSubmissionFetchState:ye,updateBulkActionList:ge,removeAllTransactionsFromBulkActionList:we,onProceedForBulkActionClick:fe}=e,Ce=["draft","pending_approval","scheduled","paid"],xe=b=>{R(b,g)},Se=o.jsx(_t,{botEmail:s,transactionList:d,allSubTabs:i,isAdmin:a,selectedTab:g,selectedSubTab:T,fetchState:k,onSubtabChange:j,onTransactionRowClick:xe,onReloadTransactions:ae,onColumnSortConfigChanged:se,analytics:w,entity:l,uiState:G,searchText:B,isShowDeletedBillsEnabled:Q,isShowDeletedReimbursementEnabled:ee,isBillPayCommentingEnabled:A,isReimbursementCommentingEnabled:L,bulkSubmissionLimit:me,isBulkActionAllowed:ue,isRecurringBillInBulkActionList:pe,transactionsSelectedForBulkAction:he,isDetectInsufficientFundsEnabled:te,allowedBulkActions:be,bulkSubmissionFetchState:ye,updateBulkActionList:ge,removeAllTransactionsFromBulkActionList:we,onProceedForBulkActionClick:fe}),Te=b=>{oe(b),j("all")},ve=y.hasOnlyBillPayAccess(h.loggedInUserRoleMap),[O,ke]=u.useState(!1),[Ie,_]=u.useState(!1),$e=b=>{ke(b)},Be=l==="bill_pay"?y.hasBillPayAdminLevelAccess(h.loggedInUserRoleMap):y.hasReimbursementAdminLevelAccess(h.loggedInUserRoleMap),Ee={entity:l,showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!0,newButtonLabel:"New",isSearchOpen:O,searchPlaceHolder:l==="bill_pay"?m.billPay.billsByTabs.searchPlaceHolder:m.reimbursement.reimbursementByTabs.searchPlaceHolder,searchText:B,searchTextBoxStyle:{right:"204px"},showSettingsIconOnNavbar:Be,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!0,disableDownloadButton:X===!1,downloadParams:Y,downloadState:Z,filters:J,vendorSearchAutoCompleteData:K,vendorSearchAutoCompleteActions:q,createdByUserListLoaded:l==="bill_pay"||y.hideCreatedByFilter(h.loggedInUserRole??[])?!0:E==="Completed"||E==="Error",analytics:w,onNewButtonClick:ne,onSearchOpen:$e,onSearchTextChanged:le,onClickSetupIcon:P,onClickEmailInfoIcon:()=>_(!0),onFiltersChange:ce,getFilterOptions:l==="bill_pay"||l==="reimbursement"?()=>Dt(l,W??[],h.loggedInUserRole??[],[]):void 0,updateDownloadStateHandler:de},Ae=o.jsx(mt,{spendManagementSectionProps:Ee}),[Le,je]=u.useState(null),[Re,I]=u.useState(!1),{setRequestToOpenThread:Pe}=u.useContext(Ve),Oe=`dashboard_${h.currentTenant?.companyId}`,D=l==="bill_pay"?"bill":"reimbursement",{threads:_e}=Ge({application:"dashboard",companyId:h.currentTenant?.companyId,tab:D,entityId:Le?.entityId,isGlobalComment:!1},"both",!1),De={openAllThreadsDrawer:b=>{je({...b}),I(!0)}},Me=(b,$)=>{const{companyId:Fe,entityId:Ne,entityType:ze}=b;I(!1),Pe({threadId:$,companyId:Fe,entityType:ze}),R(Ne,g)};return o.jsx(Je,{sharedItems:{sharedFunctions:{subtreeFunctions:De},sharedRef:void 0},children:o.jsxs(Mt,{children:[o.jsx(Ke,{source:"SpendManagementListViewPage",title:l==="bill_pay"?m.billPay.billsByTabs.pageTitle:m.reimbursement.reimbursementByTabs.pageTitle,showBackButton:!n&&!ve,showMenuIcon:c==="medium-compact"||c==="small",backgroundColor:p.colors.grey4,style:{zIndex:3,...qe.largeSemiBold.cssObject},onBackClick:ie,rightSideComponent:Ae,onClickMenuIcon:re,isSearchOpen:O}),o.jsxs(Ft,{children:[o.jsx(Nt,{children:o.jsx(ut,{tabIds:Ce,approvalCount:v,selectedTab:g,entity:l,onTabSelectedChange:Te,onClickSetupIcon:P})}),Se]}),Ie?o.jsx(Et,{botEmail:s,onCancelClick:()=>_(!1),title:l==="bill_pay"?m.billPay.billsByTabs.emailInfoTitle:m.reimbursement.reimbursementByTabs.emailInfoTitle,descriptionLines:l==="bill_pay"?[{icon:o.jsx(F,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription1},{icon:o.jsx(We,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription2},{icon:o.jsx(M,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription3}]:[{icon:o.jsx(F,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription1},{icon:o.jsx(Ye,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription2},{icon:o.jsx(M,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription3}]}):null,l==="bill_pay"&&A||l==="reimbursement"&&L?o.jsx(dt,{id:Oe,children:o.jsx(Ze,{isDrawerOpen:Re,allowComposer:!1,drawerTitle:At,threads:_e,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:h.currentTenant?.companyId,isGlobalComment:!1,tab:D},isLoading:!1,textOverrides:{composerPlaceholder:Lt,replyComposerPlaceholder:jt,threadResolve:Rt,threadUnResolve:Pt},onThreadClick:(b,$)=>Me(b,$),onCloseAllThreadsDrawer:()=>I(!1),drawerSectionStyle:{width:c==="small"?"100%":"400px",boxSizing:c==="small"?"border-box":"content-box",padding:`${t.sp0} ${Ot.drawerSectionPaddingLeftRight.valuePx(c)}`,backgroundColor:p.colors.background},collapsibleThreadStyle:{width:c==="small"?"100%":"360px"}})}):null]})})},Dt=(e,p,h,c)=>{const d=m.filters.filterOptions;return e==="bill_pay"?y.BILL_PAY_FILTER_CATEGORIES.reduce((i,a)=>{switch(a.value){case"amount":return{...i,[a.value]:d.billAmountOptions};case"paymentMethod":return{...i,[a.value]:d.paymentMethodOptions};case"status":return{...i,[a.value]:[...d.commonStatusOptions,...d.billStatusOptions]};case"paymentType":return{...i,[a.value]:d.billPaymentTypeOptions};default:return{...i,[a.value]:[]}}},{}):e==="reimbursement"?(y.hideCreatedByFilter(h)?y.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED:y.REIMBURSEMENT_FILTER_CATEGORIES).reduce((i,a)=>{switch(a.value){case"createdBy":{if(p?.length===0)return{...i,[a.value]:[]};const s=p.map(n=>({label:n?.firstName||n?.lastName?`${n?.firstName} ${n?.lastName}`:n?.email??"",value:n.userId,photo:n?.photo,email:n?.email}));return{...i,[a.value]:s}}case"paymentMethod":return{...i,[a.value]:d.paymentMethodOptions};case"status":return{...i,[a.value]:d.commonStatusOptions};case"amount":return{...i,[a.value]:d.reimbursementAmountOptions};default:return{...i,[a.value]:[]}}},{}):y.TASK_LIST_FILTER_CATEGORIES.reduce((i,a)=>{switch(a.value){case"assignee":{if(p?.length===0)return{...i,[a.value]:[]};const s=p.map(n=>({label:n?.firstName||n?.lastName?`${n?.firstName} ${n?.lastName}`:n?.email??"",value:n.userId,photo:n?.photo,email:n?.email}));return{...i,[a.value]:s}}case"status":return{...i,[a.value]:[...y.allTaskStatus.map(s=>({label:s.name,value:s.code}))]};case"priority":return{...i,[a.value]:[...y.allTaskPriority.map(s=>({label:s.name,value:s.code}))]};case"tag":return{...i,[a.value]:[...c.map(s=>({label:s.name,value:s.tagId}))]};default:return{...i,[a.value]:[]}}},{})},Mt=r.div`
109
+ `,N=U.getLocalizedStrings().common.copyToClipBoard;function Et(e){const p=z(),[,h]=Qe(),[c,d]=u.useState(!0),[i,a]=u.useState(!1),[s,n]=u.useState(!1),{isMobileOrTabletScreen:g}=et(),T=()=>{if(c){const w=e.botEmail;h(w),d(!1)}},v=()=>{a(!0)},k=()=>{a(!1)};return u.useEffect(()=>{c===!1&&setTimeout(()=>{d(!0)},2e3)},[c]),o.jsx(pt,{windowSize:p,role:"presentation",style:{background:S.overlayDark,...e.style},children:o.jsx(tt,{onClickAway:()=>{n(!0),setTimeout(()=>e.onCancelClick?.(),250)},children:o.jsxs(yt,{windowSize:p,className:s?"fade":"",fade:s,children:[o.jsx(It,{onClick:()=>{n(!0),setTimeout(()=>e.onCancelClick?.(),250)}}),o.jsx(gt,{children:e.title}),o.jsx($t,{children:e.descriptionLines.map((w,l)=>o.jsxs(Ct,{children:[o.jsx(wt,{children:w.icon}),o.jsx(ft,{windowSize:p,children:w.text})]},l))}),o.jsxs(xt,{onClick:T,onMouseOver:v,onMouseLeave:k,showCopyIcon:c,showCopyText:i,children:[o.jsx(vt,{showCopyText:i,children:e.botEmail}),c?o.jsx(Tt,{windowSize:p,showCopyText:i&&!g,children:o.jsx(St,{})}):o.jsx(kt,{})]}),o.jsx(Bt,{children:c?i&&!g?N.copy:null:N.copied})]})})})}const V=U.getLocalizedStrings(),m=V.spendManagement,{common:{texts:{comments:At}},collaboration:{threads:{placeholder:{addANewComment:Lt,replyAComment:jt},tooltip:{resolveComment:Rt,unResolveComment:Pt}}}}=V,Ot={drawerSectionPaddingLeftRight:new C(x[4],x[5])},_t=Xe(()=>ot(()=>import("./SpendManagementPerTabPage-Buppd61y-Z26soCL-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]))),Xt=e=>{const p=Ue(),h=He(),c=z(),{transactionList:d,allSubTabs:i,isAdmin:a,botEmail:s,isEmployee:n=!1,currentTab:g,currentSubTab:T,approvalCount:v,fetchState:k,analytics:w,entity:l,uiState:G,searchText:B,filters:J,vendorSearchAutoCompleteData:K,vendorSearchAutoCompleteActions:q,createdByUserList:W,createdByUserListFetchState:E,downloadParams:Y,downloadState:Z,isDownloadEnabled:X,isShowDeletedBillsEnabled:Q,isShowDeletedReimbursementEnabled:ee,isBillPayCommentingEnabled:A,isReimbursementCommentingEnabled:L,isDetectInsufficientFundsEnabled:te=!1,updateTabToState:oe,onSubtabChange:j,onReloadTransactions:ae,onTransactionClick:R,onClickSetupIcon:P,onBackClick:ie,onAddTransactionClick:ne,onColumnSortConfigChanged:se,onSearchTextChanged:le,onClickMenuIcon:re,onFiltersChange:ce,updateDownloadStateHandler:de,bulkSubmissionLimit:me=10,isBulkActionAllowed:ue=!1,isRecurringBillInBulkActionList:pe=!1,transactionsSelectedForBulkAction:he=[],allowedBulkActions:be=[],bulkSubmissionFetchState:ye,updateBulkActionList:ge,removeAllTransactionsFromBulkActionList:we,onProceedForBulkActionClick:fe}=e,Ce=["draft","pending_approval","scheduled","paid"],xe=b=>{R(b,g)},Se=o.jsx(_t,{botEmail:s,transactionList:d,allSubTabs:i,isAdmin:a,selectedTab:g,selectedSubTab:T,fetchState:k,onSubtabChange:j,onTransactionRowClick:xe,onReloadTransactions:ae,onColumnSortConfigChanged:se,analytics:w,entity:l,uiState:G,searchText:B,isShowDeletedBillsEnabled:Q,isShowDeletedReimbursementEnabled:ee,isBillPayCommentingEnabled:A,isReimbursementCommentingEnabled:L,bulkSubmissionLimit:me,isBulkActionAllowed:ue,isRecurringBillInBulkActionList:pe,transactionsSelectedForBulkAction:he,isDetectInsufficientFundsEnabled:te,allowedBulkActions:be,bulkSubmissionFetchState:ye,updateBulkActionList:ge,removeAllTransactionsFromBulkActionList:we,onProceedForBulkActionClick:fe}),Te=b=>{oe(b),j("all")},ve=y.hasOnlyBillPayAccess(h.loggedInUserRoleMap),[O,ke]=u.useState(!1),[Ie,_]=u.useState(!1),$e=b=>{ke(b)},Be=l==="bill_pay"?y.hasBillPayAdminLevelAccess(h.loggedInUserRoleMap):y.hasReimbursementAdminLevelAccess(h.loggedInUserRoleMap),Ee={entity:l,showNewButtonOnNavbar:!0,showEntityEmailInfoIconOnNavbar:!0,newButtonLabel:"New",isSearchOpen:O,searchPlaceHolder:l==="bill_pay"?m.billPay.billsByTabs.searchPlaceHolder:m.reimbursement.reimbursementByTabs.searchPlaceHolder,searchText:B,searchTextBoxStyle:{right:"204px"},showSettingsIconOnNavbar:Be,showStatementButtonOnNavbar:!1,showDownloadButtonOnNavbar:!0,disableDownloadButton:X===!1,downloadParams:Y,downloadState:Z,filters:J,vendorSearchAutoCompleteData:K,vendorSearchAutoCompleteActions:q,createdByUserListLoaded:l==="bill_pay"||y.hideCreatedByFilter(h.loggedInUserRole??[])?!0:E==="Completed"||E==="Error",analytics:w,onNewButtonClick:ne,onSearchOpen:$e,onSearchTextChanged:le,onClickSetupIcon:P,onClickEmailInfoIcon:()=>_(!0),onFiltersChange:ce,getFilterOptions:l==="bill_pay"||l==="reimbursement"?()=>Dt(l,W??[],h.loggedInUserRole??[],[]):void 0,updateDownloadStateHandler:de},Ae=o.jsx(mt,{spendManagementSectionProps:Ee}),[Le,je]=u.useState(null),[Re,I]=u.useState(!1),{setRequestToOpenThread:Pe}=u.useContext(Ve),Oe=`dashboard_${h.currentTenant?.companyId}`,D=l==="bill_pay"?"bill":"reimbursement",{threads:_e}=Ge({application:"dashboard",companyId:h.currentTenant?.companyId,tab:D,entityId:Le?.entityId,isGlobalComment:!1},"both",!1),De={openAllThreadsDrawer:b=>{je({...b}),I(!0)}},Me=(b,$)=>{const{companyId:Fe,entityId:Ne,entityType:ze}=b;I(!1),Pe({threadId:$,companyId:Fe,entityType:ze}),R(Ne,g)};return o.jsx(Je,{sharedItems:{sharedFunctions:{subtreeFunctions:De},sharedRef:void 0},children:o.jsxs(Mt,{children:[o.jsx(Ke,{source:"SpendManagementListViewPage",title:l==="bill_pay"?m.billPay.billsByTabs.pageTitle:m.reimbursement.reimbursementByTabs.pageTitle,showBackButton:!n&&!ve,showMenuIcon:c==="medium-compact"||c==="small",backgroundColor:p.colors.grey4,style:{zIndex:3,...qe.largeSemiBold.cssObject},onBackClick:ie,rightSideComponent:Ae,onClickMenuIcon:re,isSearchOpen:O}),o.jsxs(Ft,{children:[o.jsx(Nt,{children:o.jsx(ut,{tabIds:Ce,approvalCount:v,selectedTab:g,entity:l,onTabSelectedChange:Te,onClickSetupIcon:P})}),Se]}),Ie?o.jsx(Et,{botEmail:s,onCancelClick:()=>_(!1),title:l==="bill_pay"?m.billPay.billsByTabs.emailInfoTitle:m.reimbursement.reimbursementByTabs.emailInfoTitle,descriptionLines:l==="bill_pay"?[{icon:o.jsx(F,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription1},{icon:o.jsx(We,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription2},{icon:o.jsx(M,{width:t.sp4,height:t.sp4}),text:m.billPay.billsByTabs.emailInfoDescription3}]:[{icon:o.jsx(F,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription1},{icon:o.jsx(Ye,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription2},{icon:o.jsx(M,{width:t.sp4,height:t.sp4}),text:m.reimbursement.reimbursementByTabs.emailInfoDescription3}]}):null,l==="bill_pay"&&A||l==="reimbursement"&&L?o.jsx(dt,{id:Oe,children:o.jsx(Ze,{isDrawerOpen:Re,allowComposer:!1,drawerTitle:At,threads:_e,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:h.currentTenant?.companyId,isGlobalComment:!1,tab:D},isLoading:!1,textOverrides:{composerPlaceholder:Lt,replyComposerPlaceholder:jt,threadResolve:Rt,threadUnResolve:Pt},onThreadClick:(b,$)=>Me(b,$),onCloseAllThreadsDrawer:()=>I(!1),drawerSectionStyle:{width:c==="small"?"100%":"400px",boxSizing:c==="small"?"border-box":"content-box",padding:`${t.sp0} ${Ot.drawerSectionPaddingLeftRight.valuePx(c)}`,backgroundColor:p.colors.background},collapsibleThreadStyle:{width:c==="small"?"100%":"360px"}})}):null]})})},Dt=(e,p,h,c)=>{const d=m.filters.filterOptions;return e==="bill_pay"?y.BILL_PAY_FILTER_CATEGORIES.reduce((i,a)=>{switch(a.value){case"amount":return{...i,[a.value]:d.billAmountOptions};case"paymentMethod":return{...i,[a.value]:d.paymentMethodOptions};case"status":return{...i,[a.value]:[...d.commonStatusOptions,...d.billStatusOptions]};case"paymentType":return{...i,[a.value]:d.billPaymentTypeOptions};default:return{...i,[a.value]:[]}}},{}):e==="reimbursement"?(y.hideCreatedByFilter(h)?y.REIMBURSEMENT_FILTER_CATEGORIES_RESTRICTED:y.REIMBURSEMENT_FILTER_CATEGORIES).reduce((i,a)=>{switch(a.value){case"createdBy":{if(p?.length===0)return{...i,[a.value]:[]};const s=p.map(n=>({label:n?.firstName||n?.lastName?`${n?.firstName} ${n?.lastName}`:n?.email??"",value:n.userId,photo:n?.photo,email:n?.email}));return{...i,[a.value]:s}}case"paymentMethod":return{...i,[a.value]:d.paymentMethodOptions};case"status":return{...i,[a.value]:d.commonStatusOptions};case"amount":return{...i,[a.value]:d.reimbursementAmountOptions};default:return{...i,[a.value]:[]}}},{}):y.TASK_LIST_FILTER_CATEGORIES.reduce((i,a)=>{switch(a.value){case"assignee":{if(p?.length===0)return{...i,[a.value]:[]};const s=p.map(n=>({label:n?.firstName||n?.lastName?`${n?.firstName} ${n?.lastName}`:n?.email??"",value:n.userId,photo:n?.photo,email:n?.email}));return{...i,[a.value]:s}}case"status":return{...i,[a.value]:[...y.allTaskStatus.map(s=>({label:s.name,value:s.code}))]};case"priority":return{...i,[a.value]:[...y.allTaskPriority.map(s=>({label:s.name,value:s.code}))]};case"tag":return{...i,[a.value]:[...c.map(s=>({label:s.name,value:s.tagId}))]};default:return{...i,[a.value]:[]}}},{})},Mt=r.div`
110
110
  display: flex;
111
111
  min-height: 100%;
112
112
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{a as Et,c6 as Ft,M as te,l as W,X as Q,kO as Mt,j as t,F as Nt,bR as Vt,bT as Ot,bU as Wt,a3 as Ut,o as i,bO as et,fA as Kt,ai as qt,bW as Ht,id as Gt,ie as Yt,d as Zt,bw as Z,be as Xt,a5 as Qt,C as h,u as Ue,fB as Jt,kP as ei,g as X,cq as ti,f as U,s as N,v as se,kQ as ii,cK as oi,kR as ni,kS as ut,kT as ht,jo as li,kU as ri,kV as si,bl as gt,q as je,Y as ee,V as Ke,g7 as qe,d5 as He,fM as Ge,cj as yt,kW as bt,kX as Ce,_ as Be,kY as Ye,R as we,ii as xt,ij as wt,kZ as ft,ih as $t,b$ as vt,c2 as St,k_ as R,k$ as kt,fY as Tt,co as Pt,dt as Ze,p}from"./index-C2JVdK9x.js";import{b as P,n as o,f as jt,j as Y}from"./vendor-CnQcJ2Lu.js";import{d as Ct}from"./useLongPress-GCK2COYQ-gxLtL5O4.js";import{K as ai}from"./StatusSwitcher-BgWlxay9-Mp4PEzEM.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ue=te.getLocalizedStrings().spendManagement.billPay.billsByTabs.header,_e={key:"name",value:ue.name,sortOrder:"ascending",width:new h(p[5],p[5])},Le={key:"invoiceDate",value:ue.invoiceDate,sortOrder:"ascending",width:new h(20,20)},di={key:"dueDate",value:ue.dueDate,sortOrder:"ascending",width:new h(20,20)},Xe={key:"dueDate",value:ue.paymentDate,sortOrder:"ascending",width:new h(20,20)},Qe={key:"status",value:ue.status,sortOrder:"ascending",width:new h(18,18)},ci={key:"paymentMethod",value:ue.paymentMethod,sortOrder:"ascending",width:new h(18,18)},ze={key:"amount",value:ue.amount,sortOrder:"ascending",width:new h(10,10)},be=[_e,Le,di,Qe,ze],pi=[_e,Le,Xe,Qe,ze],mi=[_e,Le,Xe,Qe,ze],ui=[_e,Le,Xe,ci,ze],ye={headerLastColumnTopPadding:new h(p[0],p[4]),headerLastColumnRightPadding:new h(p[3],p[11]),headerLastColumnBottomPadding:new h(p[0],p[4]),headerLastColumnLeftPadding:new h(p[0],p[4]),headerHeight:new h(xt,wt)};function hi({companyNameSticky:e,currentTab:n,onColumnSortConfigChanged:c,sortConfig:l}){const d=Ue(),g=Q(),[b,x]=P.useState(ki(n));P.useEffect(()=>{const a=[...b];for(const r of a)r.key===l.sortKey?r.sortOrder=l.sortOrder:r.sortOrder="ascending";x(a)},[l.sortKey,l.sortOrder]);const f=(a,r)=>{let $=r;l.sortKey===a&&($=r==="ascending"?"descending":"ascending"),c?.(a,$)},u=b.find(a=>a.key===l.sortKey)??b[0],y=a=>b.find(r=>r.key===a)?.value??"",m=b.map(a=>a.key),w=te.getLocalizedStrings().spendManagement.billPay.billsByTabs;return g==="small"?t.jsxs(tt,{windowSize:g,companyNameSticky:!1,children:[t.jsxs(xi,{children:[t.jsx(fi,{children:t.jsx(wi,{})}),t.jsx(gt,{title:w.sortBy,placeholder:w.sortBy,pickerValues:m,valueToLabel:y,selectedValue:l.sortKey,onPickerSelectionChanged:a=>{f(a,"ascending")},optionTextStyle:je.smallRegular,titleTextStyle:je.smallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.background})]}),t.jsxs(Si,{onClick:()=>f(u.key,u.sortOrder),"data-testid":ee("bill-pay-list-header-mobile",l.sortKey),children:[t.jsx(se,{children:u.value}),t.jsx(it,{sortDataValue:l.sortKey,headerdata:u,children:t.jsx(ot,{})})]})]}):t.jsx(tt,{companyNameSticky:e,windowSize:g,children:b.map(a=>t.jsxs(yi,{companyNameSticky:e&&a.key==="name",sortDataValue:l.sortKey,actualDataValue:a.key,wrapperWidth:a.width,windowSize:g,children:[t.jsxs(vi,{onClick:()=>f(a.key,a.sortOrder),"data-testid":ee("bill-pay-list-header",l.sortKey),children:[t.jsx(se,{children:a.value}),t.jsx(it,{sortDataValue:l.sortKey,headerdata:a,children:t.jsx(ot,{})})]}),t.jsx($i,{sortDataValue:l.sortKey,windowSize:g,isVisible:l.sortKey===a.key&&a.key!=="dueDate",children:t.jsx(bi,{onClick:()=>f("dueDate","ascending"),"data-testid":ee("bill-pay-list-header-sort-close",l.sortKey)})})]},a.key))})}const gi=jt.memo(hi),tt=o(se)`
1
+ import{a as Et,c6 as Ft,M as te,l as W,X as Q,kO as Mt,j as t,F as Nt,bR as Vt,bT as Ot,bU as Wt,a3 as Ut,o as i,bO as et,fA as Kt,ai as qt,bW as Ht,id as Gt,ie as Yt,d as Zt,bw as Z,be as Xt,a5 as Qt,C as h,u as Ue,fB as Jt,kP as ei,g as X,cq as ti,f as U,s as N,v as se,kQ as ii,cK as oi,kR as ni,kS as ut,kT as ht,jo as li,kU as ri,kV as si,bl as gt,q as je,Y as ee,V as Ke,g7 as qe,d5 as He,fM as Ge,cj as yt,kW as bt,kX as Ce,_ as Be,kY as Ye,R as we,ii as xt,ij as wt,kZ as ft,ih as $t,b$ as vt,c2 as St,k_ as R,k$ as kt,fY as Tt,co as Pt,dt as Ze,p}from"./index-BQuxwdpl.js";import{b as P,n as o,f as jt,j as Y}from"./vendor-CnQcJ2Lu.js";import{d as Ct}from"./useLongPress-GCK2COYQ-gxLtL5O4.js";import{K as ai}from"./StatusSwitcher-BgWlxay9-C2yA7CjA.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ue=te.getLocalizedStrings().spendManagement.billPay.billsByTabs.header,_e={key:"name",value:ue.name,sortOrder:"ascending",width:new h(p[5],p[5])},Le={key:"invoiceDate",value:ue.invoiceDate,sortOrder:"ascending",width:new h(20,20)},di={key:"dueDate",value:ue.dueDate,sortOrder:"ascending",width:new h(20,20)},Xe={key:"dueDate",value:ue.paymentDate,sortOrder:"ascending",width:new h(20,20)},Qe={key:"status",value:ue.status,sortOrder:"ascending",width:new h(18,18)},ci={key:"paymentMethod",value:ue.paymentMethod,sortOrder:"ascending",width:new h(18,18)},ze={key:"amount",value:ue.amount,sortOrder:"ascending",width:new h(10,10)},be=[_e,Le,di,Qe,ze],pi=[_e,Le,Xe,Qe,ze],mi=[_e,Le,Xe,Qe,ze],ui=[_e,Le,Xe,ci,ze],ye={headerLastColumnTopPadding:new h(p[0],p[4]),headerLastColumnRightPadding:new h(p[3],p[11]),headerLastColumnBottomPadding:new h(p[0],p[4]),headerLastColumnLeftPadding:new h(p[0],p[4]),headerHeight:new h(xt,wt)};function hi({companyNameSticky:e,currentTab:n,onColumnSortConfigChanged:c,sortConfig:l}){const d=Ue(),g=Q(),[b,x]=P.useState(ki(n));P.useEffect(()=>{const a=[...b];for(const r of a)r.key===l.sortKey?r.sortOrder=l.sortOrder:r.sortOrder="ascending";x(a)},[l.sortKey,l.sortOrder]);const f=(a,r)=>{let $=r;l.sortKey===a&&($=r==="ascending"?"descending":"ascending"),c?.(a,$)},u=b.find(a=>a.key===l.sortKey)??b[0],y=a=>b.find(r=>r.key===a)?.value??"",m=b.map(a=>a.key),w=te.getLocalizedStrings().spendManagement.billPay.billsByTabs;return g==="small"?t.jsxs(tt,{windowSize:g,companyNameSticky:!1,children:[t.jsxs(xi,{children:[t.jsx(fi,{children:t.jsx(wi,{})}),t.jsx(gt,{title:w.sortBy,placeholder:w.sortBy,pickerValues:m,valueToLabel:y,selectedValue:l.sortKey,onPickerSelectionChanged:a=>{f(a,"ascending")},optionTextStyle:je.smallRegular,titleTextStyle:je.smallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.background})]}),t.jsxs(Si,{onClick:()=>f(u.key,u.sortOrder),"data-testid":ee("bill-pay-list-header-mobile",l.sortKey),children:[t.jsx(se,{children:u.value}),t.jsx(it,{sortDataValue:l.sortKey,headerdata:u,children:t.jsx(ot,{})})]})]}):t.jsx(tt,{companyNameSticky:e,windowSize:g,children:b.map(a=>t.jsxs(yi,{companyNameSticky:e&&a.key==="name",sortDataValue:l.sortKey,actualDataValue:a.key,wrapperWidth:a.width,windowSize:g,children:[t.jsxs(vi,{onClick:()=>f(a.key,a.sortOrder),"data-testid":ee("bill-pay-list-header",l.sortKey),children:[t.jsx(se,{children:a.value}),t.jsx(it,{sortDataValue:l.sortKey,headerdata:a,children:t.jsx(ot,{})})]}),t.jsx($i,{sortDataValue:l.sortKey,windowSize:g,isVisible:l.sortKey===a.key&&a.key!=="dueDate",children:t.jsx(bi,{onClick:()=>f("dueDate","ascending"),"data-testid":ee("bill-pay-list-header-sort-close",l.sortKey)})})]},a.key))})}const gi=jt.memo(hi),tt=o(se)`
2
2
  width: 100%;
3
3
  top: ${i.sp0};
4
4
  left: ${i.sp0};
@@ -1,4 +1,4 @@
1
- import{X as z,u as P,M as L,j as o,bP as H,o as r,gn as ie,p as R,K as ce,q as J,b1 as Q,C as ee,go as de,gp as pe,ct as te,b2 as A,ao as ue,v as oe,gq as he,a$ as re,V as ge,gr as me,gs as xe,s as N,an as fe,l as M,gt as ye,y as Ce,gu as be,gv as ve,g as we,cq as $e,be as Se,fu as je,d as ke,h as V,a2 as Le,fv as Oe,a5 as Ee}from"./index-C2JVdK9x.js";import{b as a,n as l,k as Ie}from"./vendor-CnQcJ2Lu.js";const Me=l.div`
1
+ import{X as z,u as P,M as L,j as o,bP as H,o as r,gn as ie,p as R,K as ce,q as J,b1 as Q,C as ee,go as de,gp as pe,ct as te,b2 as A,ao as ue,v as oe,gq as he,a$ as re,V as ge,gr as me,gs as xe,s as N,an as fe,l as M,gt as ye,y as Ce,gu as be,gv as ve,g as we,cq as $e,be as Se,fu as je,d as ke,h as V,a2 as Le,fv as Oe,a5 as Ee}from"./index-BQuxwdpl.js";import{b as a,n as l,k as Ie}from"./vendor-CnQcJ2Lu.js";const Me=l.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{X as Te,cj as Ge,u as qe,M as Q,cr as Ye,a1 as se,eZ as Ze,l as W,a7 as re,j as t,aQ as Ke,C as d,f5 as Je,f6 as Qe,f7 as Xe,bE as et,p as o,_ as tt,e_ as ye,e$ as ve,o as i,Y as N,f8 as Le,d as pe,g as j,f0 as it,Q as ze,f9 as nt,f1 as at,v as ot,bw as ke,cC as lt,a6 as st,fa as rt,f as _e,ae as Ae,fb as ct,co as dt}from"./index-C2JVdK9x.js";import{b as f,n}from"./vendor-CnQcJ2Lu.js";import{r as ut}from"./mui-C5LQ0bMa.js";import{x as pt}from"./ChargeCardUtils-BB7l65Bf-DfL6sW6K.js";import{Z as ht}from"./CreditCardPaymentPlgSection-BwqznNRc-DXBqgi-A.js";import{M as gt}from"./ChaseOverlay-hsrWeA5X-B3bQwtbG.js";import{K as mt}from"./SetUpDefaultSection-Jl4dtzx3-CDDnDgUz.js";const X={sectionWidth:new d(343,580,726),rowGap:new d(o[2],o[3]),footerPaddingLeftRight:new d(o[3],o[4])},ft={title:new ze("standardMedium","largeMedium")};function xt({plaidConnectionDetails:e,header:p,isAccountsEnabled:v=!0,analytics:x,pageName:b,accountsPromoConfig:k,style:A,onConnectClick:M,onSignUpClick:I}){const u=Te(),{setUp:r}=Q.getLocalizedStrings().commonSetUp,m=e.link_account,P=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";return t.jsxs(St,{windowSize:u,style:A,"data-testid":N("default-account-section",b),children:[t.jsx(wt,{children:t.jsx(bt,{windowSize:u,children:p})}),t.jsxs(yt,{windowSize:u,width:A?.width,children:[t.jsx(Le,{heading:r.accountsPlg.heading,buttonText:r.accountsPlg.signUpButtonText,onSignUpClick:I,isAccountsEnabled:v,pageName:b,analytics:x,style:{borderTopLeftRadius:i.sp2,borderTopRightRadius:i.sp2},accountsPromoConfig:k}),t.jsxs(kt,{windowSize:u,children:[t.jsxs($t,{onClick:M,children:[t.jsx(Ct,{isLoading:P,children:r.connectExternalAccount}),P?null:t.jsx(jt,{className:"right-arrow"})]}),P?t.jsx(vt,{children:t.jsx(pe,{size:"ExtraSmall",start:!0,style:{display:"flex"}})}):null]})]})]})}const St=n.div`
1
+ import{X as Te,cj as Ge,u as qe,M as Q,cr as Ye,a1 as se,eZ as Ze,l as W,a7 as re,j as t,aQ as Ke,C as d,f5 as Je,f6 as Qe,f7 as Xe,bE as et,p as o,_ as tt,e_ as ye,e$ as ve,o as i,Y as N,f8 as Le,d as pe,g as j,f0 as it,Q as ze,f9 as nt,f1 as at,v as ot,bw as ke,cC as lt,a6 as st,fa as rt,f as _e,ae as Ae,fb as ct,co as dt}from"./index-BQuxwdpl.js";import{b as f,n}from"./vendor-CnQcJ2Lu.js";import{r as ut}from"./mui-C5LQ0bMa.js";import{x as pt}from"./ChargeCardUtils-BB7l65Bf-CPLK84z2.js";import{Z as ht}from"./CreditCardPaymentPlgSection-BwqznNRc-Bkwvl_Pm.js";import{M as gt}from"./ChaseOverlay-hsrWeA5X-Dcp3XMSx.js";import{K as mt}from"./SetUpDefaultSection-Jl4dtzx3-C3-EmpC_.js";const X={sectionWidth:new d(343,580,726),rowGap:new d(o[2],o[3]),footerPaddingLeftRight:new d(o[3],o[4])},ft={title:new ze("standardMedium","largeMedium")};function xt({plaidConnectionDetails:e,header:p,isAccountsEnabled:v=!0,analytics:x,pageName:b,accountsPromoConfig:k,style:A,onConnectClick:M,onSignUpClick:I}){const u=Te(),{setUp:r}=Q.getLocalizedStrings().commonSetUp,m=e.link_account,P=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";return t.jsxs(St,{windowSize:u,style:A,"data-testid":N("default-account-section",b),children:[t.jsx(wt,{children:t.jsx(bt,{windowSize:u,children:p})}),t.jsxs(yt,{windowSize:u,width:A?.width,children:[t.jsx(Le,{heading:r.accountsPlg.heading,buttonText:r.accountsPlg.signUpButtonText,onSignUpClick:I,isAccountsEnabled:v,pageName:b,analytics:x,style:{borderTopLeftRadius:i.sp2,borderTopRightRadius:i.sp2},accountsPromoConfig:k}),t.jsxs(kt,{windowSize:u,children:[t.jsxs($t,{onClick:M,children:[t.jsx(Ct,{isLoading:P,children:r.connectExternalAccount}),P?null:t.jsx(jt,{className:"right-arrow"})]}),P?t.jsx(vt,{children:t.jsx(pe,{size:"ExtraSmall",start:!0,style:{display:"flex"}})}):null]})]})]})}const St=n.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>X.rowGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{X as y,M as S,h2 as b,j as o,d as g,o as r,s as j,C as v,bt as z,p as k}from"./index-C2JVdK9x.js";import{b as P,n as i}from"./vendor-CnQcJ2Lu.js";import{g as C}from"./BoxItem-Bf7JemSM-D8tvXCvN.js";import{w as L}from"./downloadPdf-CCJjnfCZ-ODxWAPRh.js";const d=S.getLocalizedStrings().months,a={downloadButtonSize:new v(k[4],20)},B=i.div`
1
+ import{X as y,M as S,h2 as b,j as o,d as g,o as r,s as j,C as v,bt as z,p as k}from"./index-BQuxwdpl.js";import{b as P,n as i}from"./vendor-CnQcJ2Lu.js";import{g as C}from"./BoxItem-Bf7JemSM-DA-EqZ9I.js";import{w as L}from"./downloadPdf-CCJjnfCZ-DhZmGI0x.js";const d=S.getLocalizedStrings().months,a={downloadButtonSize:new v(k[4],20)},B=i.div`
2
2
  display: flex;
3
3
  padding: ${r.sp3} ${r.sp4};
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{u as v,X as z,j as t,aV as C,M as P,ai as I,o as r,g as m,bW as L,C as M,p as h,s as O}from"./index-C2JVdK9x.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";import{$ as B}from"./BoxItem-Bf7JemSM-D8tvXCvN.js";import{o as E}from"./commonDimensions-CQlLUBWG-C3nTCVjo.js";import{O as R}from"./StatementItem-C3tUNT5A-D9LIbCmi.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-CCJjnfCZ-ODxWAPRh.js";const x=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,b={listItemMargin:new M(h[3],h[8])},et=({currentTenantCompanyName:e,authParams:g,downloadEndPoint:w,statementListView:i,accountLast4:f,onBackClick:y})=>{const $=v(),l=z(),k=p.createRef(),c=p.useRef(null),d=i.statements.length===0,j=()=>d===!1?E.transactionItemHeight:24,S=({index:a,style:n})=>{const s=i.statements[a];return d===!1?t.jsx(u,{windowSize:l,style:{...n,width:`calc(100% - 2*${b.listItemMargin.valuePx(l)})`},children:t.jsx(R,{currentTenantCompanyName:e,accountLast4:f,data:s,authParams:g,downloadEndPoint:w,boxType:B(a,i.statements.length)},s.id)}):t.jsx(T,{style:{...n},children:t.jsx(N,{children:t.jsx(u,{windowSize:l,children:t.jsx(A,{children:x.noStatements})})})})};return t.jsxs(V,{children:[t.jsx(C,{title:x.title,backgroundColor:$.colors.grey4,style:{zIndex:3},onBackClick:y,scrollableContent:c.current!=null?c:void 0,source:"StatementsPage"}),t.jsx(H,{children:t.jsx(I,{children:({height:a,width:n})=>t.jsx(K,{ref:k,height:a,width:n,outerRef:c,itemKey:s=>s,itemCount:i.statements.length,itemSize:j,initialScrollOffset:0,children:S})})})]})},T=o.div``,u=o.div`
1
+ import{u as v,X as z,j as t,aV as C,M as P,ai as I,o as r,g as m,bW as L,C as M,p as h,s as O}from"./index-BQuxwdpl.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";import{$ as B}from"./BoxItem-Bf7JemSM-DA-EqZ9I.js";import{o as E}from"./commonDimensions-CQlLUBWG-DzlL6K89.js";import{O as R}from"./StatementItem-C3tUNT5A-CIQABbZw.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-CCJjnfCZ-DhZmGI0x.js";const x=P.getLocalizedStrings().spendManagement.zeniAccounts.statements,b={listItemMargin:new M(h[3],h[8])},et=({currentTenantCompanyName:e,authParams:g,downloadEndPoint:w,statementListView:i,accountLast4:f,onBackClick:y})=>{const $=v(),l=z(),k=p.createRef(),c=p.useRef(null),d=i.statements.length===0,j=()=>d===!1?E.transactionItemHeight:24,S=({index:a,style:n})=>{const s=i.statements[a];return d===!1?t.jsx(u,{windowSize:l,style:{...n,width:`calc(100% - 2*${b.listItemMargin.valuePx(l)})`},children:t.jsx(R,{currentTenantCompanyName:e,accountLast4:f,data:s,authParams:g,downloadEndPoint:w,boxType:B(a,i.statements.length)},s.id)}):t.jsx(T,{style:{...n},children:t.jsx(N,{children:t.jsx(u,{windowSize:l,children:t.jsx(A,{children:x.noStatements})})})})};return t.jsxs(V,{children:[t.jsx(C,{title:x.title,backgroundColor:$.colors.grey4,style:{zIndex:3},onBackClick:y,scrollableContent:c.current!=null?c:void 0,source:"StatementsPage"}),t.jsx(H,{children:t.jsx(I,{children:({height:a,width:n})=>t.jsx(K,{ref:k,height:a,width:n,outerRef:c,itemKey:s=>s,itemCount:i.statements.length,itemSize:j,initialScrollOffset:0,children:S})})})]})},T=o.div``,u=o.div`
2
2
  margin: ${e=>`${r.sp0} ${b.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{X as y,j as d,bF as T,M as v,C as f,o as s,p as c,v as z}from"./index-C2JVdK9x.js";import{n as u,j as g}from"./vendor-CnQcJ2Lu.js";function m(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(" ").filter(Boolean).map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}const _=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function A(e,a){if(typeof e=="string")return e;if(e!=null&&typeof e=="object"){const r=Object.values(e)[0];return typeof r=="string"?r:m(a)}return m(a)}function p(e,a,r){const n=e[a];return n!=null?A(n,r):null}const L=(e,a)=>{const{spendManagement:{billPay:{billsByTabs:{tabsById:r}},reimbursement:{reimbursementByTabs:{tabsById:n}},zeniAccounts:{zeniAccountList:{tabsById:l}}}}=v.getLocalizedStrings(),t=String(e);if(a)switch(a){case"bill_pay":{const i=p(r,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"reimbursement":{const i=p(n,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"zeni_accounts":{const i=p(l,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}}return(p(r,t,t)??p(n,t,t)??p(l,t,t)??m(t)).replace(/\s+/g,"_").toLowerCase()},{spendManagement:{billPay:{billsByTabs:{tabsById:x}},reimbursement:{reimbursementByTabs:{tabsById:$}},zeniAccounts:{zeniAccountList:{tabsById:M}}}}=v.getLocalizedStrings(),w={containerMarginLeft:new f(c[4],c[8]),containerMarginRight:new f(c[4],c[8]),segmentContainerMarginLeft:new f(c[4],c[8])},j=u.div`
1
+ import{X as y,j as d,bF as T,M as v,C as f,o as s,p as c,v as z}from"./index-BQuxwdpl.js";import{n as u,j as g}from"./vendor-CnQcJ2Lu.js";function m(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim().split(" ").filter(Boolean).map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}const _=e=>{switch(e){case"bill_pay":return"bills";case"reimbursement":return"reimbursements";case"charge_cards":return"cards";default:return e}};function A(e,a){if(typeof e=="string")return e;if(e!=null&&typeof e=="object"){const r=Object.values(e)[0];return typeof r=="string"?r:m(a)}return m(a)}function p(e,a,r){const n=e[a];return n!=null?A(n,r):null}const L=(e,a)=>{const{spendManagement:{billPay:{billsByTabs:{tabsById:r}},reimbursement:{reimbursementByTabs:{tabsById:n}},zeniAccounts:{zeniAccountList:{tabsById:l}}}}=v.getLocalizedStrings(),t=String(e);if(a)switch(a){case"bill_pay":{const i=p(r,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"reimbursement":{const i=p(n,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}case"zeni_accounts":{const i=p(l,t,t);if(i!=null)return i.replace(/\s+/g,"_").toLowerCase();break}}return(p(r,t,t)??p(n,t,t)??p(l,t,t)??m(t)).replace(/\s+/g,"_").toLowerCase()},{spendManagement:{billPay:{billsByTabs:{tabsById:x}},reimbursement:{reimbursementByTabs:{tabsById:$}},zeniAccounts:{zeniAccountList:{tabsById:M}}}}=v.getLocalizedStrings(),w={containerMarginLeft:new f(c[4],c[8]),containerMarginRight:new f(c[4],c[8]),segmentContainerMarginLeft:new f(c[4],c[8])},j=u.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{j as r,d as u,o as s,v as g,ad as m}from"./index-C2JVdK9x.js";import{n as i,j as a}from"./vendor-CnQcJ2Lu.js";function S({allTabs:e,selectedTab:c,containerStyle:d,rightComponent:o,onTabChange:p}){const h=o!=null;return r.jsxs(x,{style:d,hasRightComponent:h,children:[r.jsx($,{children:e.map(t=>{const n=t.id===c,l=t.isDisabled!=null;return r.jsxs(b,{onClick:()=>{n===!1&&!l&&p(t)},isSelected:n,isDisabled:l,children:[r.jsx(y,{children:t.label}),t.countDetails?.count!=null?r.jsx(j,{children:r.jsx(f,{isCircular:t.countDetails.count==null||t.countDetails.count<10,children:r.jsx(D,{children:t.countDetails.isFetching?r.jsx(u,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):t.countDetails.count})})}):null]},t.id)})}),o]})}const x=i.div`
1
+ import{j as r,d as u,o as s,v as g,ad as m}from"./index-BQuxwdpl.js";import{n as i,j as a}from"./vendor-CnQcJ2Lu.js";function S({allTabs:e,selectedTab:c,containerStyle:d,rightComponent:o,onTabChange:p}){const h=o!=null;return r.jsxs(x,{style:d,hasRightComponent:h,children:[r.jsx($,{children:e.map(t=>{const n=t.id===c,l=t.isDisabled!=null;return r.jsxs(b,{onClick:()=>{n===!1&&!l&&p(t)},isSelected:n,isDisabled:l,children:[r.jsx(y,{children:t.label}),t.countDetails?.count!=null?r.jsx(j,{children:r.jsx(f,{isCircular:t.countDetails.count==null||t.countDetails.count<10,children:r.jsx(D,{children:t.countDetails.isFetching?r.jsx(u,{size:"Small-Compact",style:{color:"inherit",display:"flex",alignItems:"center",justifyContent:"center"},start:!0}):t.countDetails.count})})}):null]},t.id)})}),o]})}const x=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: ${e=>e.hasRightComponent?"space-between":"flex-start"};
@@ -1 +1 @@
1
- import{j as d}from"./index-C2JVdK9x.js";import{E as n,T as t}from"./ReloadCard-DVYCtjFP-BRGDk89Q.js";const o=r=>{function e(){return r.card.fetchState==="In-Progress"||r.card.fetchState==="Not-Started"?d.jsx(n,{dimension:r.card.dimension,animated:!r.card.disableAnimations}):r.card.fetchState==="Error"?d.jsx(t,{dimension:r.card.dimension,cardType:r.card.cardType,cardIndex:r.card.cardIndex,onReloadData:r.actions.onReloadData}):d.jsx("div",{children:r.children})}return d.jsx("div",{children:e()})};export{o as c};
1
+ import{j as d}from"./index-BQuxwdpl.js";import{E as n,T as t}from"./ReloadCard-DVYCtjFP-CU_Dnd08.js";const o=r=>{function e(){return r.card.fetchState==="In-Progress"||r.card.fetchState==="Not-Started"?d.jsx(n,{dimension:r.card.dimension,animated:!r.card.disableAnimations}):r.card.fetchState==="Error"?d.jsx(t,{dimension:r.card.dimension,cardType:r.card.cardType,cardIndex:r.card.cardIndex,onReloadData:r.actions.onReloadData}):d.jsx("div",{children:r.children})}return d.jsx("div",{children:e()})};export{o as c};
@@ -1,4 +1,4 @@
1
- import{V as ht,u as qe,j as t,M as oe,iJ as Y,aV as mt,T as U,bR as gt,s as K,Z as kt,l as Q,o as s,eK as Ze,bK as Ie,bO as xt,fA as wt,an as ft,be as Je,a5 as Ct,X as le,a as Tt,C as Xe,c6 as $t,F as yt,ai as vt,bW as bt,id as jt,ie as St,iK as ze,a3 as Gt,K as De,bw as Ee,eG as Qe,iL as Lt,ct as et,iM as pe,iN as xe,iO as Nt,iP as we,iQ as tt,iR as st,iS as ot,iT as nt,iU as at,iV as rt,iW as _,p as ke,iX as re,v as ie,iY as It,iZ as Et,a2 as Mt,n as Dt,i_ as zt,d9 as Bt,i$ as Wt,cj as it,cD as At,q as Rt,j0 as Ot,j1 as Ft,fB as Pt,eJ as Ht,j2 as Ut,j3 as J,j4 as Be,bY as Vt,j5 as _t,j6 as Kt,j7 as We,j8 as Yt,g as Ae,fY as qt,f as Zt}from"./index-C2JVdK9x.js";import{b as n,n as o,j as fe}from"./vendor-CnQcJ2Lu.js";import{J as Jt,Y as Xt}from"./SpendManagementSection-BGcBRKGN-CG3uT_ZE.js";import{A as Qt,t as es,a as ts,E as ss}from"./NotificationsListConfig-BIw5ASx2-BpsD8zMo.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-BkL-3WNh-DhY9QPd5.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./StatusSwitcher-BgWlxay9-Mp4PEzEM.js";const ns=100,as=100,rs=3,is=.7,ls=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ns,scrollSpeed:h=as,minScrollAmount:m=rs,scrollCurveExponent:p=is})=>{n.useEffect(()=>{if(!u||typeof window>"u"||typeof document>"u")return;let a=!1,c=0,i=null;const d=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},j=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},E=x=>j(x),M=x=>{const S=Math.max(x,0)/d,y=Math.pow(S,p)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,y=c;if(y<d&&y>0){const L=d-y,g=M(L);k(x,g,"up")}else if(y>S-d){const L=y-(S-d),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{E(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(c=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,u,m,e,p,h])},Se=oe.getLocalizedStrings(),lt=({count:e})=>t.jsx(ds,{isCircular:e<10,children:t.jsx(cs,{children:e>Se.common.numbers.maximumCount?`${Se.common.numbers.maximumCount}${Se.common.strings.plus}`:e})}),ds=o.div`
1
+ import{V as ht,u as qe,j as t,M as oe,iJ as Y,aV as mt,T as U,bR as gt,s as K,Z as kt,l as Q,o as s,eK as Ze,bK as Ie,bO as xt,fA as wt,an as ft,be as Je,a5 as Ct,X as le,a as Tt,C as Xe,c6 as $t,F as yt,ai as vt,bW as bt,id as jt,ie as St,iK as ze,a3 as Gt,K as De,bw as Ee,eG as Qe,iL as Lt,ct as et,iM as pe,iN as xe,iO as Nt,iP as we,iQ as tt,iR as st,iS as ot,iT as nt,iU as at,iV as rt,iW as _,p as ke,iX as re,v as ie,iY as It,iZ as Et,a2 as Mt,n as Dt,i_ as zt,d9 as Bt,i$ as Wt,cj as it,cD as At,q as Rt,j0 as Ot,j1 as Ft,fB as Pt,eJ as Ht,j2 as Ut,j3 as J,j4 as Be,bY as Vt,j5 as _t,j6 as Kt,j7 as We,j8 as Yt,g as Ae,fY as qt,f as Zt}from"./index-BQuxwdpl.js";import{b as n,n as o,j as fe}from"./vendor-CnQcJ2Lu.js";import{J as Jt,Y as Xt}from"./SpendManagementSection-BGcBRKGN-r3ndTuv4.js";import{A as Qt,t as es,a as ts,E as ss}from"./NotificationsListConfig-BIw5ASx2-Bj3yoWmL.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-BkL-3WNh-CmJxty83.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./StatusSwitcher-BgWlxay9-C2yA7CjA.js";const ns=100,as=100,rs=3,is=.7,ls=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ns,scrollSpeed:h=as,minScrollAmount:m=rs,scrollCurveExponent:p=is})=>{n.useEffect(()=>{if(!u||typeof window>"u"||typeof document>"u")return;let a=!1,c=0,i=null;const d=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},j=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},E=x=>j(x),M=x=>{const S=Math.max(x,0)/d,y=Math.pow(S,p)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,y=c;if(y<d&&y>0){const L=d-y,g=M(L);k(x,g,"up")}else if(y>S-d){const L=y-(S-d),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{E(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(c=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,u,m,e,p,h])},Se=oe.getLocalizedStrings(),lt=({count:e})=>t.jsx(ds,{isCircular:e<10,children:t.jsx(cs,{children:e>Se.common.numbers.maximumCount?`${Se.common.numbers.maximumCount}${Se.common.strings.plus}`:e})}),ds=o.div`
2
2
  ${e=>e.isCircular?fe`
3
3
  height: 18px;
4
4
  width: 18px;
@@ -1,4 +1,4 @@
1
- import{j as t,ai as Y,B as j,di as D,aL as H,o as a,v as q}from"./index-C2JVdK9x.js";import{n as g,b as i}from"./vendor-CnQcJ2Lu.js";import{R as A}from"./mui-C5LQ0bMa.js";import{V as U}from"./CollapsableReportTable-C73RBmaZ-A1Br721z.js";const W=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),X=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,Z=g.div`
1
+ import{j as t,ai as Y,B as j,di as D,aL as H,o as a,v as q}from"./index-BQuxwdpl.js";import{n as g,b as i}from"./vendor-CnQcJ2Lu.js";import{R as A}from"./mui-C5LQ0bMa.js";import{V as U}from"./CollapsableReportTable-C73RBmaZ-D428uVrP.js";const W=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),X=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,Z=g.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: flex-start;
@@ -1,4 +1,4 @@
1
- import{j as t,o,v as p,M as u}from"./index-C2JVdK9x.js";import{n as i}from"./vendor-CnQcJ2Lu.js";const f=i.div`
1
+ import{j as t,o,v as p,M as u}from"./index-BQuxwdpl.js";import{n as i}from"./vendor-CnQcJ2Lu.js";const f=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{X as c,j as t,C as n,v as x,b3 as w}from"./index-C2JVdK9x.js";import{n as r}from"./vendor-CnQcJ2Lu.js";import{b as l}from"./TimeframeSwitcher-CWYQWFLF-B37Mzr7G.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...o})=>t.jsx(w,{...o,className:e,classes:{...i}}),p=r(u)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),b=e=>t.jsx(p,{...e}),d={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},$=r.div`
1
+ import{X as c,j as t,C as n,v as x,b3 as w}from"./index-BQuxwdpl.js";import{n as r}from"./vendor-CnQcJ2Lu.js";import{b as l}from"./TimeframeSwitcher-CWYQWFLF-B2eT3g6m.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...o})=>t.jsx(w,{...o,className:e,classes:{...i}}),p=r(u)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),b=e=>t.jsx(p,{...e}),d={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},$=r.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{B as _,X as V,j as t,u as f,b5 as T,au as C,at as S,b9 as E,bi as k,p as x,aa as R,q as $,bj as H,bk as X,_ as q,l as Y,S as G,o as p,v as L,an as F,s as J,M as A,W as N,Y as Q,a4 as O,ah as W,ai as U,a5 as Z,bl as ee}from"./index-C2JVdK9x.js";import{f as v,b as te,n as g}from"./vendor-CnQcJ2Lu.js";import{I as ae,T as re}from"./ReloadCard-DVYCtjFP-BRGDk89Q.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const ie=g(O)`
1
+ import{B as _,X as V,j as t,u as f,b5 as T,au as C,at as S,b9 as E,bi as k,p as x,aa as R,q as $,bj as H,bk as X,_ as q,l as Y,S as G,o as p,v as L,an as F,s as J,M as A,W as N,Y as Q,a4 as O,ah as W,ai as U,a5 as Z,bl as ee}from"./index-BQuxwdpl.js";import{f as v,b as te,n as g}from"./vendor-CnQcJ2Lu.js";import{I as ae,T as re}from"./ReloadCard-DVYCtjFP-CU_Dnd08.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const ie=g(O)`
2
2
  justify-content: space-between;
3
3
  margin: 0;
4
4
  height: ${e=>e.height!=null?e.height+"px":"auto"};
@@ -1,4 +1,4 @@
1
- import{u as v,X as A,l as S,j as t,aV as B,M as u,_ as b,ai as H,A as P,o as i,C as E,bh as z,aM as V,p as c,g as F,s as y,Y as T,ae as M}from"./index-C2JVdK9x.js";import{n as l,f as D,b as o}from"./vendor-CnQcJ2Lu.js";import{E as _,I as L}from"./TopExCard-CTlizsDD-CdK-gYL3.js";import{b as Z}from"./TimeframeSwitcher-CWYQWFLF-B37Mzr7G.js";import{d as O}from"./NoDataTable-C_4AqyDp-cxOm3TqL.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-DVYCtjFP-BRGDk89Q.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const j="141px",I=i.sp4,R="123px",X=l(M)`
1
+ import{u as v,X as A,l as S,j as t,aV as B,M as u,_ as b,ai as H,A as P,o as i,C as E,bh as z,aM as V,p as c,g as F,s as y,Y as T,ae as M}from"./index-BQuxwdpl.js";import{n as l,f as D,b as o}from"./vendor-CnQcJ2Lu.js";import{E as _,I as L}from"./TopExCard-CTlizsDD-CbVG0KKn.js";import{b as Z}from"./TimeframeSwitcher-CWYQWFLF-B2eT3g6m.js";import{d as O}from"./NoDataTable-C_4AqyDp-8AvQpHPa.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-DVYCtjFP-CU_Dnd08.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const j="141px",I=i.sp4,R="123px",X=l(M)`
2
2
  color: inherit;
3
3
  width: ${i.sp3};
4
4
  height: ${i.sp3};
@@ -1,4 +1,4 @@
1
- import{u as jt,a as zo,X as J,M as N,a1 as Vt,dN as Ao,dO as Ro,c6 as Vo,B as Po,dP as Gi,l as ue,dQ as Eo,j as i,Y as B,F as _o,aV as No,dR as Bo,dS as Mo,d as Bt,dT as Ii,a3 as Fo,C as V,dU as Wo,dV as Ki,dW as Xi,dX as Ji,dY as Ie,dZ as ve,d_ as Ee,d$ as Ge,e0 as Ke,e1 as It,e2 as vt,e3 as Xe,e4 as rt,e5 as Ct,e6 as Dt,e7 as Pt,e8 as re,e9 as Et,ea as se,eb as le,R as qo,ec as bt,ed as vi,ee as Uo,K as Ho,bR as Yo,o as n,ef as Go,p as v,A as si,g as ie,Z as mi,ao as Mt,ax as Ko,eg as Xo,bM as Jo,bK as Ft,_ as De,cj as Be,eh as Zo,ei as kt,a6 as Zi,co as Qo,ej as en,bI as tn,bJ as on,s as he,ae as nn,cD as an,ek as Qi,el as li,em as ri,en as Qt,de as sn,ai as ln,bW as rn,cr as hi,cp as eo,d5 as cn,eo as Ci,ep as Di,eq as dn,bw as to,er as ei,dj as ti,es as un,aM as pn,et as mn,eu as Ti,ev as hn,y as gn,cs as fn,ew as yn,Q as io,ex as bn,b4 as xn,ey as ji,b2 as tt,ez as wn,eA as $n,eB as In,b0 as vn,aB as Cn,ds as Dn,q as oo,eC as Tn,a$ as jn,a2 as On,f as Ln,eD as Sn,a8 as ci}from"./index-C2JVdK9x.js";import{b as T,n as l,f as xt}from"./vendor-CnQcJ2Lu.js";import{x as Oi}from"./LabeledControlledCheckBoxField-SJfjkDzA-q46TDnxw.js";import{R as kn}from"./TrendWithTransactions-CoXTnQK7-BLlEO5rp.js";import{u as zn,c as An,d as Rn,m as Vn}from"./uploadAttachment-P4S_2L_v-CgBJ3cvv.js";import{o as Pn}from"./radio-default-CiSgisfh-ub7QGXr8.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TrendChart-Ctquh3qH-BiYWLM8X.js";import"./chartTypes-5p7NWUHx-6R9pye-p.js";import"./toCOABalancesWithID-DwvFse7w-YhdHXdmt.js";import"./toChartData-BBvMC_VQ-D9RVT7PQ.js";import"./NoDataChart-C1BY1riw-DoqrJEIG.js";import"./InsightsSection-CLqfyvOO-CKwkK2Sj.js";import"./NavigationDots-MPqPjbnr-gK408Eu4.js";import"./TransactionList-SkSPfIsE-CE8kQBAe.js";import"./BoxItem-Bf7JemSM-D8tvXCvN.js";import"./commonDimensions-CQlLUBWG-C3nTCVjo.js";const En={headerMarginTop:new V(v[7],v[8])},_n=l(he)`
1
+ import{u as jt,a as zo,X as J,M as N,a1 as Vt,dN as Ao,dO as Ro,c6 as Vo,B as Po,dP as Gi,l as ue,dQ as Eo,j as i,Y as B,F as _o,aV as No,dR as Bo,dS as Mo,d as Bt,dT as Ii,a3 as Fo,C as V,dU as Wo,dV as Ki,dW as Xi,dX as Ji,dY as Ie,dZ as ve,d_ as Ee,d$ as Ge,e0 as Ke,e1 as It,e2 as vt,e3 as Xe,e4 as rt,e5 as Ct,e6 as Dt,e7 as Pt,e8 as re,e9 as Et,ea as se,eb as le,R as qo,ec as bt,ed as vi,ee as Uo,K as Ho,bR as Yo,o as n,ef as Go,p as v,A as si,g as ie,Z as mi,ao as Mt,ax as Ko,eg as Xo,bM as Jo,bK as Ft,_ as De,cj as Be,eh as Zo,ei as kt,a6 as Zi,co as Qo,ej as en,bI as tn,bJ as on,s as he,ae as nn,cD as an,ek as Qi,el as li,em as ri,en as Qt,de as sn,ai as ln,bW as rn,cr as hi,cp as eo,d5 as cn,eo as Ci,ep as Di,eq as dn,bw as to,er as ei,dj as ti,es as un,aM as pn,et as mn,eu as Ti,ev as hn,y as gn,cs as fn,ew as yn,Q as io,ex as bn,b4 as xn,ey as ji,b2 as tt,ez as wn,eA as $n,eB as In,b0 as vn,aB as Cn,ds as Dn,q as oo,eC as Tn,a$ as jn,a2 as On,f as Ln,eD as Sn,a8 as ci}from"./index-BQuxwdpl.js";import{b as T,n as l,f as xt}from"./vendor-CnQcJ2Lu.js";import{x as Oi}from"./LabeledControlledCheckBoxField-SJfjkDzA-CpIAw81s.js";import{R as kn}from"./TrendWithTransactions-CoXTnQK7-DI1VEsOz.js";import{u as zn,c as An,d as Rn,m as Vn}from"./uploadAttachment-P4S_2L_v-CGkHKEhM.js";import{o as Pn}from"./radio-default-CiSgisfh-ub7QGXr8.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TrendChart-Ctquh3qH-BXdwoNzy.js";import"./chartTypes-5p7NWUHx-CaLqh1mY.js";import"./toCOABalancesWithID-DwvFse7w-BpGyVZma.js";import"./toChartData-BBvMC_VQ-C0NFogQd.js";import"./NoDataChart-C1BY1riw-DEwvHChk.js";import"./InsightsSection-CLqfyvOO-xadJoIF2.js";import"./NavigationDots-MPqPjbnr-B2VuEWoT.js";import"./TransactionList-SkSPfIsE-3VqEpEta.js";import"./BoxItem-Bf7JemSM-DA-EqZ9I.js";import"./commonDimensions-CQlLUBWG-DzlL6K89.js";const En={headerMarginTop:new V(v[7],v[8])},_n=l(he)`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  `,Nn=l(he)`
4
4
  margin-right: ${n.sp1};
@@ -1,4 +1,4 @@
1
- import{bF as et,X as O,j as e,ai as it,Y as h,de as at,M as y,df as ot,d9 as rt,dg as nt,o as i,g as E,bW as st,C as q,l as f,d as dt,s as j,p as g,v as lt,dh as Q,cv as V,_ as W,f as ct}from"./index-C2JVdK9x.js";import{b as L,n,f as mt}from"./vendor-CnQcJ2Lu.js";import{g as U}from"./BoxItem-Bf7JemSM-D8tvXCvN.js";import{o as N}from"./commonDimensions-CQlLUBWG-C3nTCVjo.js";const D=t=>t?24:125,ft={containerPaddingBottom:new q(g[9],g[8])},A=n.div`
1
+ import{bF as et,X as O,j as e,ai as it,Y as h,de as at,M as y,df as ot,d9 as rt,dg as nt,o as i,g as E,bW as st,C as q,l as f,d as dt,s as j,p as g,v as lt,dh as Q,cv as V,_ as W,f as ct}from"./index-BQuxwdpl.js";import{b as L,n,f as mt}from"./vendor-CnQcJ2Lu.js";import{g as U}from"./BoxItem-Bf7JemSM-DA-EqZ9I.js";import{o as N}from"./commonDimensions-CQlLUBWG-DzlL6K89.js";const D=t=>t?24:125,ft={containerPaddingBottom:new q(g[9],g[8])},A=n.div`
2
2
  box-sizing: border-box;
3
3
  display: flex;
4
4
  flex: 1 1 auto;
@@ -1,4 +1,4 @@
1
- import{C as a,X as R,V as W,D as ie,aa as ne,l as D,j as t,Y as x,ai as re,M as w,p as n,q as ae,g as B,o,Q as j,h as Q,aK as se,aL as le,v as de,Z as ce,_ as me,aM as pe,m as he,d as ue,K as Y,A as G,aN as X,a5 as ee}from"./index-C2JVdK9x.js";import{b as N,n as i,f,j as ge}from"./vendor-CnQcJ2Lu.js";import{G as xe,c as we}from"./AccountsPromoCardStack-XGoMEJWB-ClZD8Pkf.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SummaryCard-Dm0Tx9is-BV25EA5P.js";import"./ReloadCard-DVYCtjFP-BRGDk89Q.js";import"./NavigationArrow-mL8dVddD-CApZjvsF.js";import"./NavigationDots-MPqPjbnr-gK408Eu4.js";const $e={textContainer:new j("extraSmallRegular","smallRegular")},ye=i.div`
1
+ import{C as a,X as R,V as W,D as ie,aa as ne,l as D,j as t,Y as x,ai as re,M as w,p as n,q as ae,g as B,o,Q as j,h as Q,aK as se,aL as le,v as de,Z as ce,_ as me,aM as pe,m as he,d as ue,K as Y,A as G,aN as X,a5 as ee}from"./index-BQuxwdpl.js";import{b as N,n as i,f,j as ge}from"./vendor-CnQcJ2Lu.js";import{G as xe,c as we}from"./AccountsPromoCardStack-XGoMEJWB-ewH7aqGC.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SummaryCard-Dm0Tx9is-BOl3yzj-.js";import"./ReloadCard-DVYCtjFP-CU_Dnd08.js";import"./NavigationArrow-mL8dVddD-CWP10rmD.js";import"./NavigationDots-MPqPjbnr-B2VuEWoT.js";const $e={textContainer:new j("extraSmallRegular","smallRegular")},ye=i.div`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  cursor: default;
4
4
  `,be=i.div`
@@ -1,4 +1,4 @@
1
- import{u as z,aT as A,aU as M,j as o,Y as h,aV as q,d as K,aW as U,o as n,s as V}from"./index-C2JVdK9x.js";import{b as r,n as l}from"./vendor-CnQcJ2Lu.js";import{d as W}from"./TransactionList-SkSPfIsE-CE8kQBAe.js";import{t as Z}from"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./BoxItem-Bf7JemSM-D8tvXCvN.js";import"./commonDimensions-CQlLUBWG-C3nTCVjo.js";const _=l.div`
1
+ import{u as z,aT as A,aU as M,j as o,Y as h,aV as q,d as K,aW as U,o as n,s as V}from"./index-BQuxwdpl.js";import{b as r,n as l}from"./vendor-CnQcJ2Lu.js";import{d as W}from"./TransactionList-SkSPfIsE-3VqEpEta.js";import{t as Z}from"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./BoxItem-Bf7JemSM-DA-EqZ9I.js";import"./commonDimensions-CQlLUBWG-DzlL6K89.js";const _=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  height: 100vh;
@@ -1,4 +1,4 @@
1
- import{X as k,M as A,j as o,d as q,Y as L,a3 as W,o as a,C as g,a2 as Q,Q as K,cx as U,a as X,gw as F,gx as M,gy as R,c6 as Y,F as _,p as r,u as G,c9 as J,ga as z,gD as Z,al as ee,gH as oe,gI as te}from"./index-C2JVdK9x.js";import{b as I,n as d}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const D=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=A.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:h,selectedOwnerId:t,selectedVendorName:m,allAccounts:p,allClasses:C,allOwners:b,sectionId:v,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const l=k(),y=G(),$=N.labelWidth.value(l),j=N.controlWidth.value(l),P=n=>p.filter(O=>O.accountId===n)[0]?.coaId??"",s=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",S=n=>{const O=p.find(B=>B.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(re,{"data-testid":L("vendor-details-section",v),children:[o.jsx(se,{children:i.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(J,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:D(v,"vendorName"),placeholder:i.placeholders.vendor,defaultValue:m,autoComplete:"off",options:{required:!0}},isSaveError:c,showAdditionalInfoLabel:!1,additionalInfoLabel:i.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>P(n),defaultValue:{selectedOption:e,allOptions:M(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:S,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>s(n),defaultValue:{selectedOption:h,allOptions:F(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),b!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:D(v,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:R(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},re=d.div`
1
+ import{X as k,M as A,j as o,d as q,Y as L,a3 as W,o as a,C as g,a2 as Q,Q as K,cx as U,a as X,gw as F,gx as M,gy as R,c6 as Y,F as _,p as r,u as G,c9 as J,ga as z,gD as Z,al as ee,gH as oe,gI as te}from"./index-BQuxwdpl.js";import{b as I,n as d}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const D=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=A.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:h,selectedOwnerId:t,selectedVendorName:m,allAccounts:p,allClasses:C,allOwners:b,sectionId:v,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const l=k(),y=G(),$=N.labelWidth.value(l),j=N.controlWidth.value(l),P=n=>p.filter(O=>O.accountId===n)[0]?.coaId??"",s=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",S=n=>{const O=p.find(B=>B.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(re,{"data-testid":L("vendor-details-section",v),children:[o.jsx(se,{children:i.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(J,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:D(v,"vendorName"),placeholder:i.placeholders.vendor,defaultValue:m,autoComplete:"off",options:{required:!0}},isSaveError:c,showAdditionalInfoLabel:!1,additionalInfoLabel:i.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>P(n),defaultValue:{selectedOption:e,allOptions:M(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:S,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:D(v,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>s(n),defaultValue:{selectedOption:h,allOptions:F(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),b!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:D(v,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:R(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},re=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding-top: ${a.sp3};
@@ -1,4 +1,4 @@
1
- import{j as t,X as de,Y as A,gQ as it,M as I,_ as q,K as ye,g_ as lt,d as We,a3 as we,o as a,C as c,a2 as Ye,k as st,an as ct,Z as dt,c3 as xe,v as $e,s as ue,a1 as pe,eZ as ut,a as Ve,l as ft,c6 as pt,aa as mt,a0 as ht,g as K,F as Ne,f6 as Se,f7 as ve,fF as gt,bw as De,fA as wt,g$ as xt,p as o,cZ as $t,bK as Xe,bq as Dt,cC as bt,b4 as Tt,f as Ze,f2 as Ct,ds as yt,bs as qe,f9 as St,fb as vt}from"./index-C2JVdK9x.js";import{b as u,n as r}from"./vendor-CnQcJ2Lu.js";import{v as kt}from"./ZeniTransferAmountSlider-B8VFb2l--enqH4TrQ.js";import{r as At}from"./AccountInfoPageContent-CsHvwqHd-BlW8CgcU.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-CCJjnfCZ-ODxWAPRh.js";import"./commonDimensions-CQlLUBWG-C3nTCVjo.js";const{common:ce,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ge="amount",Pt="transferTo",ke="transferFrom",k="transferDetails",Ke="transferDetailPage",me=(e,n)=>`${e}.${n}`,Ue=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function Lt({plaidConnectionDetails:e,transferDetails:n,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:T,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:C,setShowAnnualYieldEarned:y,setTransferAmount:S,setYieldEarned:B,setTotalBalance:M,onSaveChangesToLocalStore:U,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:H,onReviewClick:J}){const i=de(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,Y]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[V,N]=u.useState(!1),Q=n.transferMoneyPartiesFetchState,oe=pe(Q),X=n.transferDetailLocalData.transferFrom?.id,ee=n.transferDetailLocalData.transferTo?.id,ie=pe(X),be=pe(ee),He=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),Je=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:Z,ready:te}=ut({token:v,onSuccess:He,onExit:Je}),le=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?Z():z(!0)},[Z,te]),P=Ve({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Ae(n,le),[n])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&Y(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{V&&x&&Z()},[V,Z,x]),u.useEffect(()=>{(ft.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&H?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{(oe==="In-Progress"&&Q==="Completed"||ie!==X||be!==ee)&&P.reset(Ae(n,()=>Z()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,be,ee,X,P,n,Z]);const{isValid:Qe}=P.formState,et=async(s,h)=>{if(s!=null){const F={...h},se={amount:{amount:F[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:n.transferMoneyParties.find(ae=>ae.id===F[k].transferFrom.selectedOption),transferTo:n.transferMoneyParties.find(ae=>ae.id===F[k].transferTo.selectedOption)};U(se)}};u.useEffect(()=>{const s=P.watch((h,{name:F})=>{if(F!=null&&h!=null){const se=h[k]?.amount??0,ae=h[k]?.transferFrom,rt=h[k]?.transferTo,nt=n.transferMoneyParties.find(fe=>fe.id===ae?.selectedOption),ot=n.transferMoneyParties.find(fe=>fe.id===rt?.selectedOption);nt?.accType==="paymentAccount"&&ot?.accType==="depositAccount"&&se!==0?(C(!0),y(!0)):y(!1),S(se)}});return()=>{s.unsubscribe()}},[P,n.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:F})=>{F!=null&&h!=null&&pt(()=>et(F,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{n.reviewTransferDetail.error!=null?j(!0):j(!1)},[n.reviewTransferDetail.error]);const tt=P.handleSubmit(()=>{Qe&&(_("Review","Amount Details"),J())});u.useEffect(()=>{n.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&n.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${ke}`,{selectedOption:n.primaryPaymentAccount?.paymentAccountId,allOptions:re(n,!0,le,!0,!0)})},[n.transferDetailLocalData.transferTo?.id]);const Te=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Ce=Te[Te.length-1].annualPercentageYield.toString(),at=mt(ht(l),l,ce.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(zt,{children:t.jsxs(Bt,{children:[t.jsxs(Mt,{children:[t.jsx(Et,{}),t.jsxs(It,{children:[t.jsx(Ot,{children:n.reviewTransferDetail.error?.title}),t.jsx(_t,{children:n.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(ta,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:K.heroLight}})})]})}):null,t.jsx(Wt,{children:q("0,0.[00]",n.transferDetailLocalData.amount)}),t.jsx(Ne,{...P,children:t.jsxs(Ft,{id:Ue(Ke),onSubmit:tt,children:[t.jsxs(Qt,{children:[t.jsx(Be,{size:i,children:t.jsx(Pe,{label:{label:ce.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:me(k,ke),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferFrom?.id,allOptions:re(n,!0,le,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Fe,{}),t.jsx(Be,{size:i,children:t.jsx(ea,{size:i,children:t.jsx(Pe,{label:{label:ce.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:me(k,Pt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferTo?.id,allOptions:re(n,!1,le)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Fe,{}),t.jsx(gt,{showAdditionalInfoLabel:!1,label:{label:ce.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:me(k,Ge),defaultValue:n.transferDetailLocalData.amount.amount===0?void 0:n.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Xt,{children:[$?t.jsxs(Yt,{children:[t.jsx(Vt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Ce).replace("__amount__",at)}),t.jsx(kt,{minStep:.01,currentAccountBalance:n.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:B,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Kt,{windowSize:i,children:T?t.jsxs(t.Fragment,{children:[t.jsxs(qt,{children:[t.jsx(Le,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${q("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(De,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(Nt,{})})]}),t.jsx(Gt,{windowSize:i}),t.jsx(Ut,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${q("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(Le,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Ce)})}),$?t.jsxs(ze,{windowSize:i,onClick:()=>C(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(ze,{windowSize:i,onClick:()=>C(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(Jt,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(We,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const re=(e,n,g,$=!1,T=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(n?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(T){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Ae=(e,n)=>({transferDetails:{[Ge]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:re(e,!0,n,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:jt(e)},transferTo:{allOptions:re(e,!1,n,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),jt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,zt=r.div`
1
+ import{j as t,X as de,Y as A,gQ as it,M as I,_ as q,K as ye,g_ as lt,d as We,a3 as we,o as a,C as c,a2 as Ye,k as st,an as ct,Z as dt,c3 as xe,v as $e,s as ue,a1 as pe,eZ as ut,a as Ve,l as ft,c6 as pt,aa as mt,a0 as ht,g as K,F as Ne,f6 as Se,f7 as ve,fF as gt,bw as De,fA as wt,g$ as xt,p as o,cZ as $t,bK as Xe,bq as Dt,cC as bt,b4 as Tt,f as Ze,f2 as Ct,ds as yt,bs as qe,f9 as St,fb as vt}from"./index-BQuxwdpl.js";import{b as u,n as r}from"./vendor-CnQcJ2Lu.js";import{v as kt}from"./ZeniTransferAmountSlider-B8VFb2l--DxgbNpeK.js";import{r as At}from"./AccountInfoPageContent-CsHvwqHd-Bi3KcCU6.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-CCJjnfCZ-DhZmGI0x.js";import"./commonDimensions-CQlLUBWG-DzlL6K89.js";const{common:ce,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ge="amount",Pt="transferTo",ke="transferFrom",k="transferDetails",Ke="transferDetailPage",me=(e,n)=>`${e}.${n}`,Ue=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function Lt({plaidConnectionDetails:e,transferDetails:n,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:T,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:C,setShowAnnualYieldEarned:y,setTransferAmount:S,setYieldEarned:B,setTotalBalance:M,onSaveChangesToLocalStore:U,onBackClick:R,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:H,onReviewClick:J}){const i=de(),E=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,Y]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[V,N]=u.useState(!1),Q=n.transferMoneyPartiesFetchState,oe=pe(Q),X=n.transferDetailLocalData.transferFrom?.id,ee=n.transferDetailLocalData.transferTo?.id,ie=pe(X),be=pe(ee),He=u.useCallback(s=>{O?.(s),R(),N(!1),z(!1)},[R,O]),Je=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:Z,ready:te}=ut({token:v,onSuccess:He,onExit:Je}),le=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?Z():z(!0)},[Z,te]),P=Ve({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Ae(n,le),[n])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&Y(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{V&&x&&Z()},[V,Z,x]),u.useEffect(()=>{(ft.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&H?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{(oe==="In-Progress"&&Q==="Completed"||ie!==X||be!==ee)&&P.reset(Ae(n,()=>Z()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,be,ee,X,P,n,Z]);const{isValid:Qe}=P.formState,et=async(s,h)=>{if(s!=null){const F={...h},se={amount:{amount:F[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:n.transferMoneyParties.find(ae=>ae.id===F[k].transferFrom.selectedOption),transferTo:n.transferMoneyParties.find(ae=>ae.id===F[k].transferTo.selectedOption)};U(se)}};u.useEffect(()=>{const s=P.watch((h,{name:F})=>{if(F!=null&&h!=null){const se=h[k]?.amount??0,ae=h[k]?.transferFrom,rt=h[k]?.transferTo,nt=n.transferMoneyParties.find(fe=>fe.id===ae?.selectedOption),ot=n.transferMoneyParties.find(fe=>fe.id===rt?.selectedOption);nt?.accType==="paymentAccount"&&ot?.accType==="depositAccount"&&se!==0?(C(!0),y(!0)):y(!1),S(se)}});return()=>{s.unsubscribe()}},[P,n.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:F})=>{F!=null&&h!=null&&pt(()=>et(F,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{n.reviewTransferDetail.error!=null?j(!0):j(!1)},[n.reviewTransferDetail.error]);const tt=P.handleSubmit(()=>{Qe&&(_("Review","Amount Details"),J())});u.useEffect(()=>{n.transferDetailLocalData.transferTo?.accType==="depositAccount"&&n.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&n.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${ke}`,{selectedOption:n.primaryPaymentAccount?.paymentAccountId,allOptions:re(n,!0,le,!0,!0)})},[n.transferDetailLocalData.transferTo?.id]);const Te=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Ce=Te[Te.length-1].annualPercentageYield.toString(),at=mt(ht(l),l,ce.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(zt,{children:t.jsxs(Bt,{children:[t.jsxs(Mt,{children:[t.jsx(Et,{}),t.jsxs(It,{children:[t.jsx(Ot,{children:n.reviewTransferDetail.error?.title}),t.jsx(_t,{children:n.reviewTransferDetail.error?.message})]})]}),t.jsx(Rt,{children:t.jsx(ta,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:K.heroLight}})})]})}):null,t.jsx(Wt,{children:q("0,0.[00]",n.transferDetailLocalData.amount)}),t.jsx(Ne,{...P,children:t.jsxs(Ft,{id:Ue(Ke),onSubmit:tt,children:[t.jsxs(Qt,{children:[t.jsx(Be,{size:i,children:t.jsx(Pe,{label:{label:ce.labels.transferFrom,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:me(k,ke),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferFrom?.id,allOptions:re(n,!0,le,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Fe,{}),t.jsx(Be,{size:i,children:t.jsx(ea,{size:i,children:t.jsx(Pe,{label:{label:ce.labels.transferTo,width:E,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:me(k,Pt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>ve(n.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>Se(n.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:n.transferDetailLocalData.transferTo?.id,allOptions:re(n,!1,le)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Fe,{}),t.jsx(gt,{showAdditionalInfoLabel:!1,label:{label:ce.labels.amount,width:E},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:me(k,Ge),defaultValue:n.transferDetailLocalData.amount.amount===0?void 0:n.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Xt,{children:[$?t.jsxs(Yt,{children:[t.jsx(Vt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Ce).replace("__amount__",at)}),t.jsx(kt,{minStep:.01,currentAccountBalance:n.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:B,setTotalBalance:M})]}):null,t.jsxs(Zt,{windowSize:i,children:[t.jsx(Kt,{windowSize:i,children:T?t.jsxs(t.Fragment,{children:[t.jsxs(qt,{children:[t.jsx(Le,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${q("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(De,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(Nt,{})})]}),t.jsx(Gt,{windowSize:i}),t.jsx(Ut,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${q("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(Le,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Ce)})}),$?t.jsxs(ze,{windowSize:i,onClick:()=>C(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(ze,{windowSize:i,onClick:()=>C(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(je,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(Jt,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(We,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const re=(e,n,g,$=!1,T=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(n?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(T){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Ae=(e,n)=>({transferDetails:{[Ge]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:re(e,!0,n,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:jt(e)},transferTo:{allOptions:re(e,!1,n,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),jt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,zt=r.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{X as C,u as M,d5 as Ne,j as t,M as L,_ as E,bw as ae,aV as Ye,q as ie,Y as W,d as Ke,o as i,v as k,g as w,b4 as Ve,C as u,cR as _,Q as B,l as F,p as h,gT as le,ar as de,au as ce,at as he,as as pe,b7 as Fe,be as Le,a5 as Me,V as Ee,fm as We,gn as Ue,K as Ge,s as A,ae as Je,iE as Xe,jf as _e,ay as qe,eH as Qe,d7 as Ze,f2 as et,ai as tt,bW as it,id as ot,ie as rt,ke as at,bl as st,f as U,b$ as xe,ih as nt,c2 as lt,ii as dt,ij as ct}from"./index-C2JVdK9x.js";import{b as $,n as o,f as ht,j as ge}from"./vendor-CnQcJ2Lu.js";import{s as pt}from"./commonDimensions-CQlLUBWG-C3nTCVjo.js";import{g as me}from"./BoxItem-Bf7JemSM-D8tvXCvN.js";import{l as se,d as xt}from"./treasuryColorHelper-CUDK9KvQ-DUBVC7I-.js";import{o as gt}from"./transaction-placeholder-CpOwZAMG-CJJQqrcA.js";import{o as mt}from"./shield-DOlUxcFf-BCUrujod.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ne=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ut={key:"description",value:ne.trasnactionTitle,sortOrder:"ascending",width:new u(120,250,400,400,500)},yt={key:"date",value:ne.paymentDate,sortOrder:"ascending",width:new u(100,120,200,250,300)},ft={key:"amount",value:ne.amount,sortOrder:"ascending",width:new u(80,100,150,180,200)},oe=()=>[ut,yt,ft],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new u(h[0],h[4]),headerLastColumnRightPadding:new u(h[3],h[11]),headerLastColumnBottomPadding:new u(h[0],h[4]),headerLastColumnLeftPadding:new u(h[3],h[11]),headerHeight:new u(dt,ct),sortIconSize:new u(h[2],h[2]),headerPaddingTop:new u(h[0],2)};function wt({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:s}){const c=M(),l=C(),[a,y]=$.useState(oe());$.useEffect(()=>{const p=[...a];for(const n of p)n.key===r.sortKey?n.sortOrder=r.sortOrder:n.sortOrder="ascending";y(p)},[r.sortKey,r.sortOrder]);const d=(p,n)=>{let m=n;r.sortKey===p&&(m=n==="ascending"?"descending":"ascending"),s(p,m)},g=a.find(p=>p.key===r.sortKey)??a[0],x=p=>a.find(n=>n.key===p)?.value??"",j=a.map(p=>p.key),f=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(vt,{windowSize:l,children:[t.jsxs(Ct,{children:[t.jsx(Pt,{children:t.jsx(zt,{})}),t.jsx(st,{title:f.sortBy,placeholder:f.sortBy,pickerValues:j,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:p=>{d(p,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:c.colors.primary,selectedOptionColor:c.colors.hero,optionBackgroundColor:c.colors.grey5,downChevronVisible:!1,backgroundColor:c.colors.grey4})]}),t.jsxs(Lt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(U,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(jt,{windowSize:l,children:t.jsx(bt,{children:a.map(p=>p.width.value(l)!==0&&t.jsxs(St,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:p.key,wrapperWidth:p.width,windowSize:l,children:[t.jsxs(Tt,{onClick:()=>d(p.key,p.sortOrder),"data-testid":W("cards-list-sort-clicked",r.sortKey),children:[t.jsx(U,{children:p.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:p,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===p.key,children:t.jsx(xe,{})})})]}),t.jsx(Dt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===p.key&&p.key!=="date",children:t.jsx(kt,{onClick:()=>d("date","ascending"),"data-testid":W("cards-list-sort-cancel",r.sortKey)})})]},p.key))})})}const $t=ht.memo(wt),jt=o.div`
1
+ import{X as C,u as M,d5 as Ne,j as t,M as L,_ as E,bw as ae,aV as Ye,q as ie,Y as W,d as Ke,o as i,v as k,g as w,b4 as Ve,C as u,cR as _,Q as B,l as F,p as h,gT as le,ar as de,au as ce,at as he,as as pe,b7 as Fe,be as Le,a5 as Me,V as Ee,fm as We,gn as Ue,K as Ge,s as A,ae as Je,iE as Xe,jf as _e,ay as qe,eH as Qe,d7 as Ze,f2 as et,ai as tt,bW as it,id as ot,ie as rt,ke as at,bl as st,f as U,b$ as xe,ih as nt,c2 as lt,ii as dt,ij as ct}from"./index-BQuxwdpl.js";import{b as $,n as o,f as ht,j as ge}from"./vendor-CnQcJ2Lu.js";import{s as pt}from"./commonDimensions-CQlLUBWG-DzlL6K89.js";import{g as me}from"./BoxItem-Bf7JemSM-DA-EqZ9I.js";import{l as se,d as xt}from"./treasuryColorHelper-CUDK9KvQ-D8RX0DsH.js";import{o as gt}from"./transaction-placeholder-CpOwZAMG-CJJQqrcA.js";import{o as mt}from"./shield-DOlUxcFf-BCUrujod.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ne=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,ut={key:"description",value:ne.trasnactionTitle,sortOrder:"ascending",width:new u(120,250,400,400,500)},yt={key:"date",value:ne.paymentDate,sortOrder:"ascending",width:new u(100,120,200,250,300)},ft={key:"amount",value:ne.amount,sortOrder:"ascending",width:new u(80,100,150,180,200)},oe=()=>[ut,yt,ft],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new u(h[0],h[4]),headerLastColumnRightPadding:new u(h[3],h[11]),headerLastColumnBottomPadding:new u(h[0],h[4]),headerLastColumnLeftPadding:new u(h[3],h[11]),headerHeight:new u(dt,ct),sortIconSize:new u(h[2],h[2]),headerPaddingTop:new u(h[0],2)};function wt({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:s}){const c=M(),l=C(),[a,y]=$.useState(oe());$.useEffect(()=>{const p=[...a];for(const n of p)n.key===r.sortKey?n.sortOrder=r.sortOrder:n.sortOrder="ascending";y(p)},[r.sortKey,r.sortOrder]);const d=(p,n)=>{let m=n;r.sortKey===p&&(m=n==="ascending"?"descending":"ascending"),s(p,m)},g=a.find(p=>p.key===r.sortKey)??a[0],x=p=>a.find(n=>n.key===p)?.value??"",j=a.map(p=>p.key),f=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(vt,{windowSize:l,children:[t.jsxs(Ct,{children:[t.jsx(Pt,{children:t.jsx(zt,{})}),t.jsx(st,{title:f.sortBy,placeholder:f.sortBy,pickerValues:j,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:p=>{d(p,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:c.colors.primary,selectedOptionColor:c.colors.hero,optionBackgroundColor:c.colors.grey5,downChevronVisible:!1,backgroundColor:c.colors.grey4})]}),t.jsxs(Lt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(U,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(jt,{windowSize:l,children:t.jsx(bt,{children:a.map(p=>p.width.value(l)!==0&&t.jsxs(St,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:p.key,wrapperWidth:p.width,windowSize:l,children:[t.jsxs(Tt,{onClick:()=>d(p.key,p.sortOrder),"data-testid":W("cards-list-sort-clicked",r.sortKey),children:[t.jsx(U,{children:p.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:p,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===p.key,children:t.jsx(xe,{})})})]}),t.jsx(Dt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===p.key&&p.key!=="date",children:t.jsx(kt,{onClick:()=>d("date","ascending"),"data-testid":W("cards-list-sort-cancel",r.sortKey)})})]},p.key))})})}const $t=ht.memo(wt),jt=o.div`
2
2
  top: ${i.sp0};
3
3
  left: ${i.sp0};
4
4
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{u as ae,X as E,V as xe,d5 as we,a1 as $e,l as fe,M as O,j as r,aV as ye,o as i,iE as je,bw as be,v as S,K as W,Y as Q,Q as f,Z as F,C as v,g as t,s as _,d7 as Se,bp as ke,k as ze,f as ve,cL as Ce,p as m,dL as Le,aw as Pe,c3 as Te,a2 as De,q as Z,cx as Ie}from"./index-C2JVdK9x.js";import{b as P,n as o,f as Me}from"./vendor-CnQcJ2Lu.js";import{x as Be}from"./MeetingCalenderPopup-B3sIZU3d-DuEMLObz.js";import{l as Re}from"./treasuryColorHelper-CUDK9KvQ-DUBVC7I-.js";import{r as Ne}from"./auto-transfer-rule-mbafm5D3-D6YoufI_.js";import{o as Ge}from"./shield-DOlUxcFf-BCUrujod.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const _e=({isOpen:e,onClose:x})=>{const c=E(),u=O.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Ce,{anchor:"right",slotProps:{paper:{sx:{width:c==="small"||c==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:x,style:{backgroundColor:t.drawerBackground},transitionDuration:250,children:r.jsxs(He,{children:[r.jsx(Ve,{children:r.jsx(Oe,{onClick:x})}),r.jsxs(Ae,{children:[r.jsx(Ee,{windowSize:c,children:u.agreementDrawer.title}),r.jsx(J,{children:u.agreementDrawer.intro}),r.jsx(V,{children:u.agreementDrawer.introBullets.map((d,w)=>r.jsx(re,{children:d},w))}),r.jsx(V,{children:u.agreementDrawer.documents.map((d,w)=>r.jsx(qe,{children:d.hasMultipleLinks===!0&&d.links?r.jsx(Ye,{children:d.links.map((h,$)=>r.jsx(Ue,{children:h.link!==""?r.jsx(ee,{href:h.link,target:"_blank",rel:"noopener noreferrer",children:h.text}):h.text},$))}):r.jsx(ee,{href:d.link,target:"_blank",rel:"noopener noreferrer",children:d.text})},w))}),r.jsx(J,{style:{marginTop:i.sp2},children:u.agreementDrawer.confirmTitle}),r.jsx(V,{children:u.agreementDrawer.confirmBullets.map((d,w)=>r.jsx(re,{children:d},w))})]})]})})},He=o.div`
1
+ import{u as ae,X as E,V as xe,d5 as we,a1 as $e,l as fe,M as O,j as r,aV as ye,o as i,iE as je,bw as be,v as S,K as W,Y as Q,Q as f,Z as F,C as v,g as t,s as _,d7 as Se,bp as ke,k as ze,f as ve,cL as Ce,p as m,dL as Le,aw as Pe,c3 as Te,a2 as De,q as Z,cx as Ie}from"./index-BQuxwdpl.js";import{b as P,n as o,f as Me}from"./vendor-CnQcJ2Lu.js";import{x as Be}from"./MeetingCalenderPopup-B3sIZU3d-DQNFWJ_9.js";import{l as Re}from"./treasuryColorHelper-CUDK9KvQ-D8RX0DsH.js";import{r as Ne}from"./auto-transfer-rule-mbafm5D3-D6YoufI_.js";import{o as Ge}from"./shield-DOlUxcFf-BCUrujod.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const _e=({isOpen:e,onClose:x})=>{const c=E(),u=O.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Ce,{anchor:"right",slotProps:{paper:{sx:{width:c==="small"||c==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:x,style:{backgroundColor:t.drawerBackground},transitionDuration:250,children:r.jsxs(He,{children:[r.jsx(Ve,{children:r.jsx(Oe,{onClick:x})}),r.jsxs(Ae,{children:[r.jsx(Ee,{windowSize:c,children:u.agreementDrawer.title}),r.jsx(J,{children:u.agreementDrawer.intro}),r.jsx(V,{children:u.agreementDrawer.introBullets.map((d,w)=>r.jsx(re,{children:d},w))}),r.jsx(V,{children:u.agreementDrawer.documents.map((d,w)=>r.jsx(qe,{children:d.hasMultipleLinks===!0&&d.links?r.jsx(Ye,{children:d.links.map((h,$)=>r.jsx(Ue,{children:h.link!==""?r.jsx(ee,{href:h.link,target:"_blank",rel:"noopener noreferrer",children:h.text}):h.text},$))}):r.jsx(ee,{href:d.link,target:"_blank",rel:"noopener noreferrer",children:d.text})},w))}),r.jsx(J,{style:{marginTop:i.sp2},children:u.agreementDrawer.confirmTitle}),r.jsx(V,{children:u.agreementDrawer.confirmBullets.map((d,w)=>r.jsx(re,{children:d},w))})]})]})})},He=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{d5 as Ge,u as qe,X as pe,a1 as me,a as he,c6 as fe,M as ge,a7 as le,j as t,cL as Ke,g as Ye,C as r,aV as Je,d as Qe,F as ye,d1 as Xe,aQ as Ze,p as n,l as et,K as tt,bw as it,Y as ot,cg as nt,cc as at,a3 as st,o as i,s as xe,c3 as lt,a2 as rt,Q as ct,h as dt}from"./index-C2JVdK9x.js";import{b as l,n as o}from"./vendor-CnQcJ2Lu.js";import{F as ut}from"./HelpButton-Cv7-d_qL-CciztHgu.js";import{Y as pt}from"./LabeledDocumentField-DLd6UnEn-DtqGgdoi.js";import{P as mt}from"./DocumentSecurityBanner-6cQ2cW7e-Bf5Osic5.js";import{r as ht}from"./verification-CW6uEyev-DdkqedMU.js";import{K as re}from"./SetUpDefaultSection-Jl4dtzx3-CDDnDgUz.js";import{f as ft}from"./SpendMgmtSetupAccountSection-Cswh297O-5u1iK010.js";import gt from"./PortfolioAllocationFormPage-C4pRhyet-Wf_11Z3Y.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-B3sIZU3d-DuEMLObz.js";import"./ChargeCardUtils-BB7l65Bf-DfL6sW6K.js";import"./CreditCardPaymentPlgSection-BwqznNRc-DXBqgi-A.js";import"./ChaseOverlay-hsrWeA5X-B3bQwtbG.js";import"./PortfolioDetails-4fbkArz6-0_-lQYOm.js";import"./treasuryColorHelper-CUDK9KvQ-DUBVC7I-.js";const ce=(e,s)=>`${e}.${s}`,S={labelWidth:new r(145,155),largeLabelDocumentWidth:new r(210,252),marginBottom:new r(n[2],n[0]),navBarContainerPaddingYaxis:new r(10,n[3]),containerPaddingLeft:new r(n[3],n[6],n[8]),containerPaddingRight:new r(n[3],n[6],n[8])},yt={stepTitle:new ct("h6Regular","h5Regular")},we=ge.getLocalizedStrings(),{common:de}=we,p=we.commonSetUp.businessVerification,ee=p.sourceOfFundOptions,b="additionalVerificationFields",xt=({companyOfficer:e,companyDetails:s,updateStatus:h,fileProps:f,isDetailsSubmitted:g,onClose:F,onAdditionalVerificationFieldsChanged:B,onSendForVerificationClick:W,onCloseOverlay:$})=>{const c=pe(),_=S.labelWidth.value(c),k=S.largeLabelDocumentWidth.value(c),M=me(h.fetchState),C=he({mode:"all",reValidateMode:"onChange",defaultValues:l.useMemo(()=>({[b]:{sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(ee)},formationDocument:s?.companyFiles.find(a=>a.documentType==="company_formation_document")}}),[s?.sourceOfFunds,s?.companyFiles])}),U=a=>ee[a]??a,O=s?.deleteFileStatusById??{},A=s?.updateFileStatusById??{},N=Object.values(O??{}).filter(a=>a!=null),H=et.reduceAllFetchState(N),R=C.handleSubmit(()=>{H.fetchState!=="In-Progress"&&W(e?.officerType??"Officer_1")}),G=async(a,x)=>{B(x[b])};return l.useEffect(()=>{const a=C.watch((x,{name:T})=>{T!=null&&x!=null&&fe(()=>G(T,x))});return()=>{a.unsubscribe()}}),M==="In-Progress"&&h.fetchState==="Completed"||g===!0?t.jsxs(Pt,{children:[t.jsxs(Ft,{children:[t.jsx(ht,{}),t.jsx(St,{windowSize:c,children:p.submittedTitle}),t.jsx(kt,{children:p.submittedDescription})]}),t.jsx(tt,{label:p.submittedButton,onClick:$,variant:"primary"})]}):t.jsxs(wt,{windowSize:c,children:[t.jsx(bt,{windowSize:c,children:t.jsx(it,{title:"Back",enterTouchDelay:600,placement:"bottom",children:t.jsx(vt,{"data-testid":ot("nav-bar-back-portfolio-allocation"),onClick:$||F})})}),t.jsxs($t,{windowSize:c,children:[t.jsx(Ot,{windowSize:c,children:p.verifyBusinessDetails}),t.jsx(At,{children:t.jsxs(Tt,{children:[t.jsx(Et,{}),t.jsx(Lt,{})]})})]}),t.jsx(be,{children:p.verifyBusinessDetailsDescription}),t.jsx(ye,{...C,children:t.jsxs("form",{id:b,onSubmit:R,children:[t.jsxs(Ct,{children:[t.jsx(mt,{}),t.jsx(pt,{name:ce(b,"formationDocument"),sizeLimit:nt,filesEndPoint:f.filesEndPoint,authParams:f.authParams,label:{label:p.formationDocumentLabel,width:k,style:{marginBottom:S.marginBottom.valuePx(c)}},style:{width:"auto"},file:s?.companyFiles.find(a=>a.documentType==="company_formation_document"),filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!0},additionalInfoLabel:p.formationDocumentError.replace("_product_type_","business verification"),updateFilesEntity:f.updateFilesEntity,onEditFileName:f.onEditFileName,onDeleteFile:f.onDeleteFile,deleteFileStatusById:O,updateFileStatusById:A}),t.jsx(jt,{}),t.jsx(at,{label:{label:p.sourceOfFundsLabel,width:_},style:{width:"auto"},additionalInfoLabel:p.sourceOfFundsAdditionalInfo,singleSelectField:{singleSelect:{name:ce(b,"sourceOfFunds"),placeholder:p.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:U,showTickMark:!1,sortOptions:!1},defaultValue:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(ee)},registerOptions:{required:!0,validate:a=>!!a?.selectedOption}},isFunctional:!0,errorInfoLabel:p.sourceOfFundsError.replace("_product_type_","business verification")})]}),t.jsx(st,{formId:b,primaryBtn:{label:de.footer.submit,style:{width:"auto",minWidth:c==="small"?"auto":"83px"},isLoading:h.fetchState==="In-Progress"},cancelBtn:{label:de.footer.back,style:{width:c==="small"?"auto":"83px"},onClick:F},style:{position:"absolute",width:"100%",paddingTop:i.sp2,paddingBottom:i.sp2}})]})})]})},wt=o.div`
1
+ import{d5 as Ge,u as qe,X as pe,a1 as me,a as he,c6 as fe,M as ge,a7 as le,j as t,cL as Ke,g as Ye,C as r,aV as Je,d as Qe,F as ye,d1 as Xe,aQ as Ze,p as n,l as et,K as tt,bw as it,Y as ot,cg as nt,cc as at,a3 as st,o as i,s as xe,c3 as lt,a2 as rt,Q as ct,h as dt}from"./index-BQuxwdpl.js";import{b as l,n as o}from"./vendor-CnQcJ2Lu.js";import{F as ut}from"./HelpButton-Cv7-d_qL-CUvPOpAv.js";import{Y as pt}from"./LabeledDocumentField-DLd6UnEn-o-XnUJ1D.js";import{P as mt}from"./DocumentSecurityBanner-6cQ2cW7e-B-LiYCwn.js";import{r as ht}from"./verification-CW6uEyev-DdkqedMU.js";import{K as re}from"./SetUpDefaultSection-Jl4dtzx3-C3-EmpC_.js";import{f as ft}from"./SpendMgmtSetupAccountSection-Cswh297O-ClH8d_8B.js";import gt from"./PortfolioAllocationFormPage-C4pRhyet-BgcVpkPb.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-B3sIZU3d-DQNFWJ_9.js";import"./ChargeCardUtils-BB7l65Bf-CPLK84z2.js";import"./CreditCardPaymentPlgSection-BwqznNRc-Bkwvl_Pm.js";import"./ChaseOverlay-hsrWeA5X-Dcp3XMSx.js";import"./PortfolioDetails-4fbkArz6-B-yRSXBm.js";import"./treasuryColorHelper-CUDK9KvQ-D8RX0DsH.js";const ce=(e,s)=>`${e}.${s}`,S={labelWidth:new r(145,155),largeLabelDocumentWidth:new r(210,252),marginBottom:new r(n[2],n[0]),navBarContainerPaddingYaxis:new r(10,n[3]),containerPaddingLeft:new r(n[3],n[6],n[8]),containerPaddingRight:new r(n[3],n[6],n[8])},yt={stepTitle:new ct("h6Regular","h5Regular")},we=ge.getLocalizedStrings(),{common:de}=we,p=we.commonSetUp.businessVerification,ee=p.sourceOfFundOptions,b="additionalVerificationFields",xt=({companyOfficer:e,companyDetails:s,updateStatus:h,fileProps:f,isDetailsSubmitted:g,onClose:F,onAdditionalVerificationFieldsChanged:B,onSendForVerificationClick:W,onCloseOverlay:$})=>{const c=pe(),_=S.labelWidth.value(c),k=S.largeLabelDocumentWidth.value(c),M=me(h.fetchState),C=he({mode:"all",reValidateMode:"onChange",defaultValues:l.useMemo(()=>({[b]:{sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(ee)},formationDocument:s?.companyFiles.find(a=>a.documentType==="company_formation_document")}}),[s?.sourceOfFunds,s?.companyFiles])}),U=a=>ee[a]??a,O=s?.deleteFileStatusById??{},A=s?.updateFileStatusById??{},N=Object.values(O??{}).filter(a=>a!=null),H=et.reduceAllFetchState(N),R=C.handleSubmit(()=>{H.fetchState!=="In-Progress"&&W(e?.officerType??"Officer_1")}),G=async(a,x)=>{B(x[b])};return l.useEffect(()=>{const a=C.watch((x,{name:T})=>{T!=null&&x!=null&&fe(()=>G(T,x))});return()=>{a.unsubscribe()}}),M==="In-Progress"&&h.fetchState==="Completed"||g===!0?t.jsxs(Pt,{children:[t.jsxs(Ft,{children:[t.jsx(ht,{}),t.jsx(St,{windowSize:c,children:p.submittedTitle}),t.jsx(kt,{children:p.submittedDescription})]}),t.jsx(tt,{label:p.submittedButton,onClick:$,variant:"primary"})]}):t.jsxs(wt,{windowSize:c,children:[t.jsx(bt,{windowSize:c,children:t.jsx(it,{title:"Back",enterTouchDelay:600,placement:"bottom",children:t.jsx(vt,{"data-testid":ot("nav-bar-back-portfolio-allocation"),onClick:$||F})})}),t.jsxs($t,{windowSize:c,children:[t.jsx(Ot,{windowSize:c,children:p.verifyBusinessDetails}),t.jsx(At,{children:t.jsxs(Tt,{children:[t.jsx(Et,{}),t.jsx(Lt,{})]})})]}),t.jsx(be,{children:p.verifyBusinessDetailsDescription}),t.jsx(ye,{...C,children:t.jsxs("form",{id:b,onSubmit:R,children:[t.jsxs(Ct,{children:[t.jsx(mt,{}),t.jsx(pt,{name:ce(b,"formationDocument"),sizeLimit:nt,filesEndPoint:f.filesEndPoint,authParams:f.authParams,label:{label:p.formationDocumentLabel,width:k,style:{marginBottom:S.marginBottom.valuePx(c)}},style:{width:"auto"},file:s?.companyFiles.find(a=>a.documentType==="company_formation_document"),filemetadataPayload:{documentType:"company_formation_document",purposeId:"business_verification",documentSide:"front"},acceptableTypes:["image/jpg","image/jpeg","image/png","application/pdf","image/heic","image/heif"],registerOptions:{required:!0},additionalInfoLabel:p.formationDocumentError.replace("_product_type_","business verification"),updateFilesEntity:f.updateFilesEntity,onEditFileName:f.onEditFileName,onDeleteFile:f.onDeleteFile,deleteFileStatusById:O,updateFileStatusById:A}),t.jsx(jt,{}),t.jsx(at,{label:{label:p.sourceOfFundsLabel,width:_},style:{width:"auto"},additionalInfoLabel:p.sourceOfFundsAdditionalInfo,singleSelectField:{singleSelect:{name:ce(b,"sourceOfFunds"),placeholder:p.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:U,showTickMark:!1,sortOptions:!1},defaultValue:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(ee)},registerOptions:{required:!0,validate:a=>!!a?.selectedOption}},isFunctional:!0,errorInfoLabel:p.sourceOfFundsError.replace("_product_type_","business verification")})]}),t.jsx(st,{formId:b,primaryBtn:{label:de.footer.submit,style:{width:"auto",minWidth:c==="small"?"auto":"83px"},isLoading:h.fetchState==="In-Progress"},cancelBtn:{label:de.footer.back,style:{width:c==="small"?"auto":"83px"},onClick:F},style:{position:"absolute",width:"100%",paddingTop:i.sp2,paddingBottom:i.sp2}})]})})]})},wt=o.div`
2
2
  height: auto;
3
3
  padding-left: ${e=>`${S.containerPaddingLeft.valuePx(e.windowSize)}`};
4
4
  padding-right: ${e=>`${S.containerPaddingRight.valuePx(e.windowSize)}`};
@@ -1,4 +1,4 @@
1
- import{u as j,X as v,j as t,aV as z,M as C,ai as P,o as r,g as c,bW as I,C as M,p as d,s as R}from"./index-C2JVdK9x.js";import{b as m,n as o}from"./vendor-CnQcJ2Lu.js";import{$ as T}from"./BoxItem-Bf7JemSM-D8tvXCvN.js";import{o as B}from"./commonDimensions-CQlLUBWG-C3nTCVjo.js";import{O as E}from"./StatementItem-C3tUNT5A-D9LIbCmi.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-CCJjnfCZ-ODxWAPRh.js";const h=C.getLocalizedStrings().spendManagement.treasury.statements,x={listItemMargin:new M(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:u,downloadEndPoint:w,statementListView:a,onBackClick:b})=>{const g=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>B.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:u,downloadEndPoint:w,documentType:"treasuryStatement",boxType:T(s,a.statements.length)},l.id)}):t.jsx(L,{style:{...n},children:t.jsx(N,{children:t.jsx(p,{windowSize:i,children:t.jsx(V,{children:h.noStatements})})})})};return t.jsxs(O,{children:[t.jsx(z,{title:h.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:b,source:"treasury"}),t.jsx(X,{windowSize:i,children:t.jsx(P,{children:({height:s,width:n})=>t.jsx(A,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},L=o.div``,p=o.div`
1
+ import{u as j,X as v,j as t,aV as z,M as C,ai as P,o as r,g as c,bW as I,C as M,p as d,s as R}from"./index-BQuxwdpl.js";import{b as m,n as o}from"./vendor-CnQcJ2Lu.js";import{$ as T}from"./BoxItem-Bf7JemSM-DA-EqZ9I.js";import{o as B}from"./commonDimensions-CQlLUBWG-DzlL6K89.js";import{O as E}from"./StatementItem-C3tUNT5A-CIQABbZw.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-CCJjnfCZ-DhZmGI0x.js";const h=C.getLocalizedStrings().spendManagement.treasury.statements,x={listItemMargin:new M(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:u,downloadEndPoint:w,statementListView:a,onBackClick:b})=>{const g=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>B.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:u,downloadEndPoint:w,documentType:"treasuryStatement",boxType:T(s,a.statements.length)},l.id)}):t.jsx(L,{style:{...n},children:t.jsx(N,{children:t.jsx(p,{windowSize:i,children:t.jsx(V,{children:h.noStatements})})})})};return t.jsxs(O,{children:[t.jsx(z,{title:h.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:b,source:"treasury"}),t.jsx(X,{windowSize:i,children:t.jsx(P,{children:({height:s,width:n})=>t.jsx(A,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},L=o.div``,p=o.div`
2
2
  margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{u as S,X as v,j as t,aV as L,M as z,ai as C,o as r,g as c,bW as P,C as T,p as d,s as I}from"./index-C2JVdK9x.js";import{b as h,n as o}from"./vendor-CnQcJ2Lu.js";import{$ as M}from"./BoxItem-Bf7JemSM-D8tvXCvN.js";import{o as R}from"./commonDimensions-CQlLUBWG-C3nTCVjo.js";import{O as B}from"./StatementItem-C3tUNT5A-D9LIbCmi.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-CCJjnfCZ-ODxWAPRh.js";const p=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new T(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:u,taxLetterListView:a,onBackClick:b})=>{const g=S(),i=v(),f=h.createRef(),y=h.useRef(),$=a.taxLetters.length===0,k=()=>R.transactionItemHeightResponsive.value(i),j=({index:s,style:n})=>{const l=a.taxLetters[s];return $===!1?t.jsx(m,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(B,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:w,downloadEndPoint:u,documentType:"taxLetter",boxType:M(s,a.taxLetters.length)},l.id)}):t.jsx(E,{style:{...n},children:t.jsx(N,{children:t.jsx(m,{windowSize:i,children:t.jsx(V,{children:p.noTaxLetter})})})})};return t.jsxs(O,{children:[t.jsx(L,{title:p.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:b,source:"treasury"}),t.jsx(X,{windowSize:i,children:t.jsx(C,{children:({height:s,width:n})=>t.jsx(A,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},E=o.div``,m=o.div`
1
+ import{u as S,X as v,j as t,aV as L,M as z,ai as C,o as r,g as c,bW as P,C as T,p as d,s as I}from"./index-BQuxwdpl.js";import{b as h,n as o}from"./vendor-CnQcJ2Lu.js";import{$ as M}from"./BoxItem-Bf7JemSM-DA-EqZ9I.js";import{o as R}from"./commonDimensions-CQlLUBWG-DzlL6K89.js";import{O as B}from"./StatementItem-C3tUNT5A-CIQABbZw.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./downloadPdf-CCJjnfCZ-DhZmGI0x.js";const p=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new T(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:u,taxLetterListView:a,onBackClick:b})=>{const g=S(),i=v(),f=h.createRef(),y=h.useRef(),$=a.taxLetters.length===0,k=()=>R.transactionItemHeightResponsive.value(i),j=({index:s,style:n})=>{const l=a.taxLetters[s];return $===!1?t.jsx(m,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(B,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:w,downloadEndPoint:u,documentType:"taxLetter",boxType:M(s,a.taxLetters.length)},l.id)}):t.jsx(E,{style:{...n},children:t.jsx(N,{children:t.jsx(m,{windowSize:i,children:t.jsx(V,{children:p.noTaxLetter})})})})};return t.jsxs(O,{children:[t.jsx(L,{title:p.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:b,source:"treasury"}),t.jsx(X,{windowSize:i,children:t.jsx(C,{children:({height:s,width:n})=>t.jsx(A,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},E=o.div``,m=o.div`
2
2
  margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{X as ge,B as xt,j as o,Y as P,gQ as yt,M as we,_ as Y,K as Ie,d as Qe,a3 as He,o as t,C as f,a2 as Ce,k as $t,al as bt,u as St,a1 as pe,bw as vt,cR as Je,Q as R,l as z,fZ as jt,g as S,Z as At,h as et,v as W,s as G,eZ as kt,a as Tt,c6 as Pt,F as Ct,fF as zt,p as c,bq as tt,cZ as ot,bK as rt,cC as Dt,ct as Lt,f9 as Ft,f1 as Mt,d5 as Rt,f as Bt,f2 as Ot,ds as It,b$ as Et,b_ as _t,aP as Nt,bc as Vt,fb as Yt,fk as Wt,aa as Gt}from"./index-C2JVdK9x.js";import{n as r,b as w}from"./vendor-CnQcJ2Lu.js";import{U as nt}from"./PortfolioDetails-4fbkArz6-0_-lQYOm.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-CUDK9KvQ-DUBVC7I-.js";const Kt=we.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Ut=1e3;function Xt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Rt().analytics,[s,m]=w.useState(a);w.useEffect(()=>{m(a)},[a]);const x=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(Jt,{sliderValue:s,children:[o.jsx(Ht,{sliderValue:s,type:"range",min:F[0],max:F[F.length-1],step:Ut,value:s,onChange:x}),o.jsx(eo,{style:{width:`${Math.min(s/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(no,{sliderValue:s,style:{left:`calc(${Math.min(Math.max(s/F[F.length-1]*100,5),95)}% - 50px)`},children:Zt(s)}),o.jsx(to,{children:F.map((h,i)=>o.jsx(oo,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:qt(i)},children:o.jsx(ro,{isSelected:s>=h,children:Qt(h)})},h))})]})}const Zt=e=>{const a=Gt("0,0.[00]a",e,"$").toUpperCase();return`${Kt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const qt=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%"}},Qt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),Ht=r.input`
1
+ import{X as ge,B as xt,j as o,Y as P,gQ as yt,M as we,_ as Y,K as Ie,d as Qe,a3 as He,o as t,C as f,a2 as Ce,k as $t,al as bt,u as St,a1 as pe,bw as vt,cR as Je,Q as R,l as z,fZ as jt,g as S,Z as At,h as et,v as W,s as G,eZ as kt,a as Tt,c6 as Pt,F as Ct,fF as zt,p as c,bq as tt,cZ as ot,bK as rt,cC as Dt,ct as Lt,f9 as Ft,f1 as Mt,d5 as Rt,f as Bt,f2 as Ot,ds as It,b$ as Et,b_ as _t,aP as Nt,bc as Vt,fb as Yt,fk as Wt,aa as Gt}from"./index-BQuxwdpl.js";import{n as r,b as w}from"./vendor-CnQcJ2Lu.js";import{U as nt}from"./PortfolioDetails-4fbkArz6-B-yRSXBm.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-CUDK9KvQ-D8RX0DsH.js";const Kt=we.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Ut=1e3;function Xt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Rt().analytics,[s,m]=w.useState(a);w.useEffect(()=>{m(a)},[a]);const x=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(Jt,{sliderValue:s,children:[o.jsx(Ht,{sliderValue:s,type:"range",min:F[0],max:F[F.length-1],step:Ut,value:s,onChange:x}),o.jsx(eo,{style:{width:`${Math.min(s/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(no,{sliderValue:s,style:{left:`calc(${Math.min(Math.max(s/F[F.length-1]*100,5),95)}% - 50px)`},children:Zt(s)}),o.jsx(to,{children:F.map((h,i)=>o.jsx(oo,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:qt(i)},children:o.jsx(ro,{isSelected:s>=h,children:Qt(h)})},h))})]})}const Zt=e=>{const a=Gt("0,0.[00]a",e,"$").toUpperCase();return`${Kt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const qt=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%"}},Qt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),Ht=r.input`
2
2
  width: 100%;
3
3
  &[type="range"]::-webkit-slider-runnable-track {
4
4
  height: 2px;
@@ -1,4 +1,4 @@
1
- import{M as $,j as s,l as u,u as Z,Y as j,ai as z,b5 as B,b6 as F,au as P,q as w,at as R,aa as q,b7 as O,av as K,b9 as _,o as L,g as G,s as N}from"./index-C2JVdK9x.js";import{b as v,f as V,n as k}from"./vendor-CnQcJ2Lu.js";import{d as W,g as M,p as D,u as Q}from"./chartTypes-5p7NWUHx-6R9pye-p.js";import{o as X}from"./toCOABalancesWithID-DwvFse7w-YhdHXdmt.js";import{V as H}from"./toChartData-BBvMC_VQ-D9RVT7PQ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const I=k.div`
1
+ import{M as $,j as s,l as u,u as Z,Y as j,ai as z,b5 as B,b6 as F,au as P,q as w,at as R,aa as q,b7 as O,av as K,b9 as _,o as L,g as G,s as N}from"./index-BQuxwdpl.js";import{b as v,f as V,n as k}from"./vendor-CnQcJ2Lu.js";import{d as W,g as M,p as D,u as Q}from"./chartTypes-5p7NWUHx-CaLqh1mY.js";import{o as X}from"./toCOABalancesWithID-DwvFse7w-BpGyVZma.js";import{V as H}from"./toChartData-BBvMC_VQ-C0NFogQd.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const I=k.div`
2
2
  display: flex;
3
3
  `,J=k.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{X as D,j as i,d as R,o as t,M as F,C as c,Y as S,ai as E,al as Y,c3 as K,p as a,s as X,a2 as q}from"./index-C2JVdK9x.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import V from"./TrendChart-Ctquh3qH-BiYWLM8X.js";import{C as W}from"./NoDataChart-C1BY1riw-DoqrJEIG.js";import{F as _}from"./InsightsSection-CLqfyvOO-CKwkK2Sj.js";import{d as Z}from"./TransactionList-SkSPfIsE-CE8kQBAe.js";const G=n.div`
1
+ import{X as D,j as i,d as R,o as t,M as F,C as c,Y as S,ai as E,al as Y,c3 as K,p as a,s as X,a2 as q}from"./index-BQuxwdpl.js";import{b as k,n}from"./vendor-CnQcJ2Lu.js";import V from"./TrendChart-Ctquh3qH-BXdwoNzy.js";import{C as W}from"./NoDataChart-C1BY1riw-DEwvHChk.js";import{F as _}from"./InsightsSection-CLqfyvOO-xadJoIF2.js";import{d as Z}from"./TransactionList-SkSPfIsE-3VqEpEta.js";const G=n.div`
2
2
  display: inline-block;
3
3
  `,J=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{u as ce,X as se,V as Ke,a1 as en,g5 as R,he as U,M as q,a as nn,hf as tn,hg as Te,c6 as on,j as t,aV as cn,bR as sn,bT as ln,bU as an,F as rn,l as J,hh as dn,d as un,hi as X,hj as pn,a3 as mn,hk as Ve,C as u,s as gn,o as l,cj as fe,a7 as W,ga as oe,hl as ie,p as d,Q as Ae,g as $e,fz as _e,v as Se,aA as xn}from"./index-C2JVdK9x.js";import{b as Y,n as s}from"./vendor-CnQcJ2Lu.js";import{F as hn}from"./HelpButton-Cv7-d_qL-CciztHgu.js";import{h as wn}from"./VendorsAccountsSection-b9s5nqGq-DfS13Vrv.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-B3sIZU3d-DuEMLObz.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},He={title:new Ae("standardMedium","largeMedium")},bn=s.div`
1
+ import{u as ce,X as se,V as Ke,a1 as en,g5 as R,he as U,M as q,a as nn,hf as tn,hg as Te,c6 as on,j as t,aV as cn,bR as sn,bT as ln,bU as an,F as rn,l as J,hh as dn,d as un,hi as X,hj as pn,a3 as mn,hk as Ve,C as u,s as gn,o as l,cj as fe,a7 as W,ga as oe,hl as ie,p as d,Q as Ae,g as $e,fz as _e,v as Se,aA as xn}from"./index-BQuxwdpl.js";import{b as Y,n as s}from"./vendor-CnQcJ2Lu.js";import{F as hn}from"./HelpButton-Cv7-d_qL-CUvPOpAv.js";import{h as wn}from"./VendorsAccountsSection-b9s5nqGq-C603vDJM.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-B3sIZU3d-DQNFWJ_9.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},He={title:new Ae("standardMedium","largeMedium")},bn=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>C.rowGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{a1 as b,j as t,hn as R,ho as _,X as F,M as T,bR as U,i as C,bT as z,bU as N,a as M,F as G,cf as H,l as O,cb as D,C as g,cc as K,g as A,m as Z,d as J,K as X,o as i,s as Q,p as B,Z as Y,ao as ee}from"./index-C2JVdK9x.js";import{b as c,n as f}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(B[3],B[2]),width:new g(300,420,420)},te=f.div`
1
+ import{a1 as b,j as t,hn as R,ho as _,X as F,M as T,bR as U,i as C,bT as z,bU as N,a as M,F as G,cf as H,l as O,cb as D,C as g,cc as K,g as A,m as Z,d as J,K as X,o as i,s as Q,p as B,Z as Y,ao as ee}from"./index-BQuxwdpl.js";import{b as c,n as f}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(B[3],B[2]),width:new g(300,420,420)},te=f.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};