@zeniai/web-cockpit-ui 1.13.90-dev → 1.13.91-dev

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 (244) hide show
  1. package/dist/assets/{ACHDetailsPage-ppaaVv4t-BnOUfoFz.js → ACHDetailsPage---jqahtW-HkPM6iNK.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-brocrTLA-C9EDr2D4.js → AIPerformancePage-CqtdCyg8-Dj0j3-W5.js} +36 -36
  3. package/dist/assets/{AccountInfoPage-BkqXbGUJ-DXuI8tNZ.js → AccountInfoPage-Bj1CYa-r-6hrIafHf.js} +2 -2
  4. package/dist/assets/{AccountInfoPageContent-DOrQxiUF-2yx_ZhMt.js → AccountInfoPageContent-qqbfRfuR-DLDodhYL.js} +20 -20
  5. package/dist/assets/{AccountReconDetailsDrawerPage-i6rVi1gY-DVchfPsP.js → AccountReconDetailsDrawerPage-B4UwcNN9-Crki_oBL.js} +18 -18
  6. package/dist/assets/AccountRow-CPX-627p-B4ZaO0oz.js +298 -0
  7. package/dist/assets/{AccountsPromoCardStack-BvFE5A3N-C__nnIqn.js → AccountsPromoCardStack-DJRAw09x-KYhdIp34.js} +26 -26
  8. package/dist/assets/{AddAddressForCardDrawer-BV2BSzaD-CBI5bfsC.js → AddAddressForCardDrawer-C16ksTIf-_DtEs9T5.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-DTEIuDRq-CzKzLxkn.js → AddToWalletPage-CDP1oPrv-D581H1KG.js} +18 -18
  10. package/dist/assets/{AgingReportsPage-B8iVxaQX-z0eVPQ8X.js → AgingReportsPage-BE4plS7V-BI8-4bNE.js} +7 -7
  11. package/dist/assets/{AllUserItems-BepRyHp7-6smxMTUs.js → AllUserItems-hoI2_gnV-BVf131yZ.js} +8 -8
  12. package/dist/assets/{ApAgingDetailPage-DOObMUqB-DRL-pTDS.js → ApAgingDetailPage-Lxprtz8c-v17bsYA_.js} +3 -3
  13. package/dist/assets/{AppBasePage-Ob8EkU54-B4IzJNVZ.js → AppBasePage-DNOkJf4q-CMKV9Zw9.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-CNsKktFP-oEQQGdma.js → AppDrawerContent-DG2Jr298-DulxRmba.js} +10 -10
  15. package/dist/assets/{ApprovalRulesSettingsPage-Bn7LOelK-C_JBTy7y.js → ApprovalRulesSettingsPage-DnKXln0A-Dwcdgf1j.js} +6 -6
  16. package/dist/assets/{ArAgingChart-C0hTtEmV-Cp3DCSeq.js → ArAgingChart-BRcy3--o-CqONheoM.js} +7 -7
  17. package/dist/assets/{ArAgingDetailPage-C_E_xPwf-CoqFi7sc.js → ArAgingDetailPage-Djsocm6M-DY45zDqC.js} +3 -3
  18. package/dist/assets/{AttachmentView-CATl3tNf-DCa2zXLn.js → AttachmentView-C3AzH7cN-Csi7tXqw.js} +8 -8
  19. package/dist/assets/{BankAccountSection-VSbZyxoY-BkprL32R.js → BankAccountSection-6zosSfPV-CL3CT6a1.js} +4 -4
  20. package/dist/assets/{BankAccountWarningSection-a39s142r-4WcZfRoK.js → BankAccountWarningSection-CWeN3me0-QfeSw0RL.js} +6 -6
  21. package/dist/assets/{BankConnectionsSettingsPage-CBavGNdc-DWKqHO49.js → BankConnectionsSettingsPage-C6e0pgD4-B1leagLf.js} +22 -22
  22. package/dist/assets/{BillDetailPage-uMG3JJPb-ClGgqpml.js → BillDetailPage-DyIokQbf-BaKgZbi4.js} +9 -9
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-Bmrg1Wxh-CFroqaxM.js → BillPayApprovalRuleDetailPage-BOhQfwEj-CAExLIKt.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRulesPage-BN21qPTb-BwOgIMfY.js → BillPayApprovalRulesPage-CSua3b4v-Cw1EavO3.js} +7 -7
  25. package/dist/assets/{BillPayPromoPage-DoP2oC8W-D-cHzeZ4.js → BillPayPromoPage-CtenNypw-CjfButz0.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-o-V-9aI5-DuW6yWFa.js → BillPaySetUpPage-CAnvQ_-Q-DJBEmdYy.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-CX-rbxzB-D5hgrymw.js → BillingSettingsPage-CjSAhEFl-tgXS9QLV.js} +4 -4
  28. package/dist/assets/{BillsBulkReviewDrawerPage-_qgURJjv-CemkDBxg.js → BillsBulkReviewDrawerPage-B62rj2kN-BUJLVUNP.js} +1 -1
  29. package/dist/assets/{BoxItem-CHPfWPEF-lXs1y6iB.js → BoxItem-Cqmd_7h4-S5g5H_Jr.js} +1 -1
  30. package/dist/assets/BusinessVerificationPage-DT24fycp-CWdqg83h.js +140 -0
  31. package/dist/assets/{CardNumberSubText-dxYfM6ph-B1OZ5t3N.js → CardNumberSubText-DszoXtgg-ySKglJLN.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-BfTC3IBm-BcRVF9pL.js → CashbackDetailPage-DAwARNZD-3Wx6cNnB.js} +13 -13
  33. package/dist/assets/{ChargeCardDetailPage-npqfreRG-D_PNn6ZE.js → ChargeCardDetailPage-BzbR-Z63-7lzvBesN.js} +40 -40
  34. package/dist/assets/{ChargeCardListPage-Dbx1ymB9-DiXO1BWI.js → ChargeCardListPage-DSOp7sFg-CW3N5mrs.js} +10 -10
  35. package/dist/assets/{ChargeCardListTable-qk9tQ6Kb-DR0FaH4k.js → ChargeCardListTable-BE4it4le-6GBRyFGt.js} +10 -10
  36. package/dist/assets/{ChargeCardPromoPage-CsItH2IC-BEXKS9-8.js → ChargeCardPromoPage-DOibcN9n-8P5nzLqn.js} +4 -4
  37. package/dist/assets/{ChargeCardSetupPage-D5LWY3-P-BB2kARlQ.js → ChargeCardSetupPage-Dm_N5oDM-BxIAhVV2.js} +2 -2
  38. package/dist/assets/{ChargeCardStatementsPage-vYbnt2WJ-CDBr97Hk.js → ChargeCardStatementsPage-Dhqs5CF4-Be58aAaq.js} +2 -2
  39. package/dist/assets/{ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js → ChargeCardUtils-oF0M6Gmc-CWcylJdd.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js → ChaseOverlay-DPgGIuyV-JigHbzQk.js} +7 -7
  41. package/dist/assets/CheckDepositDrawerPage-DaaWfNin-BVXQpqWr.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-Dp1985is-CgJ_JGJs.js → CollapsableReportTable-DMr2UDgH-cuAz2CYU.js} +29 -29
  43. package/dist/assets/{CompanyOfficerDetailsSection-CGewbsKm-DBM7Hns2.js → CompanyOfficerDetailsSection-B_cIues7-BNMnvkxE.js} +19 -19
  44. package/dist/assets/{CompanyPassportCard-Dp3a8GH8-qRGWLoZI.js → CompanyPassportCard-CHF83hfN-BGYNkzga.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-CS1LPj5f-CxHtTINk.js → CompanyPassportPage-C5W3KcDY-Bzodetvj.js} +29 -29
  46. package/dist/assets/CompleteProfile-MP9AF8Iu-CvhmGgEz.js +36 -0
  47. package/dist/assets/{ConfettiBurst-DX1P5VT_-C7tIIZfu.js → ConfettiBurst-DVT9EpwF-DHA9TDKH.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-BL1BXGvy-Vx1XM-1z.js → CreateOrEditVendorPage-DVbYQaWM-DGXxCdMQ.js} +13 -13
  49. package/dist/assets/{CreditCardPaymentDrawerPage-D6-R3DiA-ByQ_c4QS.js → CreditCardPaymentDrawerPage-D2qT7vsE-Bf1M1_AV.js} +10 -10
  50. package/dist/assets/{CreditCardPaymentPlgSection-YcsIIUkG-C-zCY8ZF.js → CreditCardPaymentPlgSection-7cmMRTQm-CcPhomOR.js} +6 -6
  51. package/dist/assets/{CurrencySelectField-CH65s5Fc-DGotu77i.js → CurrencySelectField-ClhIJFVw-Cum1rEqk.js} +4 -4
  52. package/dist/assets/{CustomerOnboardingActivationPage-DCHbvIb1-4vnrfrOn.js → CustomerOnboardingActivationPage-D-Ihd-H0-BECSi6lI.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-C9jXmYuH-DO8DpQlg.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cz40bZgg-6UjJ2BJ9.js → CustomerOnboardingDetailPageSkeleton-CUxNOK4z-Ch73W5CD.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-DrbkKOBx-C5bbYFj1.js → CustomerOnboardingNoStepsPage-B9ts3Tla-CfVcbZOI.js} +4 -4
  56. package/dist/assets/CustomerOnboardingPage-DJbFeXms-BffeJFQv.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DyGs61vw-DLcQ1dQj.js → CustomerOnboardingProductSuitePage-iSJtAhvu-CITklSrx.js} +5 -5
  58. package/dist/assets/{Dashboard-beLswUHx-XoTiAJKU.js → Dashboard-SKeHZ5QY-pKKhGZuT.js} +38 -38
  59. package/dist/assets/DashboardReportPage-3X6wpJL2-lEFYnnKZ.js +349 -0
  60. package/dist/assets/{DepositAccTransactionItem-CfAjG3HH-COwwc_MG.js → DepositAccTransactionItem-DJNio75H-BszNXL3v.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-Cj1smNoP-CkdRHZge.js → DepositAccTransactionListPage-DTIjlF2l-BqgMCmPb.js} +3 -3
  62. package/dist/assets/{DocumentSecurityBanner-BRFFDueV-stK3q2uU.js → DocumentSecurityBanner-CVNWDvAg-ZZDqDElp.js} +1 -1
  63. package/dist/assets/DomesticWireDetailsPage-D-qwPVDs--Pww9UWD.js +21 -0
  64. package/dist/assets/{DownloadOverlay-Ly2ZesqA-D_S8bx9G.js → DownloadOverlay-BLj0xso_-BlktwxlM.js} +1 -1
  65. package/dist/assets/{DrawerPage-BFIdjtOJ-BFnTHlQb.js → DrawerPage-CEetzMMx-BQrlKpot.js} +3 -3
  66. package/dist/assets/{EditPeoplePage-BPHt33f5-DjZUh9aC.js → EditPeoplePage-DDUuO0Nh-opJ_tpA8.js} +8 -8
  67. package/dist/assets/{EditReimbursementDetailPage-DJ_qNQbh-D_aBh5FK.js → EditReimbursementDetailPage-CT8mqYr5-RAkBtvUB.js} +24 -24
  68. package/dist/assets/{EntityDetailPage-DZ9vXZci-DUGgDVnf.js → EntityDetailPage-DMh6o0bo-D9tSJvlK.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-kCA6OJs0-CuvI5nJX.js → EntitySummarySection-tK_X4uAf-DnZqgJgW.js} +9 -9
  70. package/dist/assets/{ExpenseAutomationOverviewPage-B9K2qPQi-BcMuOXVi.js → ExpenseAutomationOverviewPage-CLUiYjKg-Cnf2er5n.js} +18 -18
  71. package/dist/assets/{ExpenseAutomationPage-LoGHiJzr-BnTXz0Ci.js → ExpenseAutomationPage-C9biTgak-CwmQJIGr.js} +82 -82
  72. package/dist/assets/{ExpressPayPage-B12NaLXN-CGW5-zDn.js → ExpressPayPage-DpAixmcQ-DHNO4VFc.js} +8 -8
  73. package/dist/assets/{FeaturePreviewPage-D9_aRmPj-CvnK2Uy2.js → FeaturePreviewPage-BohUqOFz-CnIenXNU.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BL8sM4vS-D6HNdi5Y.js → FollowStepsSection-BAUXUzTr-DcO_IUEM.js} +10 -10
  75. package/dist/assets/{GlobalReviewListPage-DONc_BXP-jngzyZ2P.js → GlobalReviewListPage-BxYHNkut-De1zroLC.js} +8 -8
  76. package/dist/assets/{HelpButton-khTPylkl-CEL7Boo7.js → HelpButton-8AQIbLQM-Dxn71Y7_.js} +2 -2
  77. package/dist/assets/{InformationCardStack-BtIMGsaQ-BRj2ZNHm.js → InformationCardStack-76GlZ-Bq-CtLoCld8.js} +4 -4
  78. package/dist/assets/{InsightsCardStack-lzduh7aO-Crnd4D-1.js → InsightsCardStack-CvOFi2Uu-JAhaDMUB.js} +9 -9
  79. package/dist/assets/{InsightsSection-q1QuO6Z4-1k_aUqAr.js → InsightsSection-DyF8JZIR-yy37hbXV.js} +3 -3
  80. package/dist/assets/{IntegrationsSettingsPage-CpnXcxlz-ANVTxCp5.js → IntegrationsSettingsPage-mys0-i40-D_Td3Eck.js} +4 -4
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-BXBsK560-i2JR8sEk.js → InternationalWireSwiftDetailsPage-km4qEcXH-BDq6b8VU.js} +7 -7
  82. package/dist/assets/{InternationalWireVerificationPage-BrnMNFx7-CivrskR8.js → InternationalWireVerificationPage-DauhGM3c-CQuc_5ZL.js} +5 -5
  83. package/dist/assets/{InviteFormPage-DQTEQazA-CYIvBKP9.js → InviteFormPage-FSL8fEXT-Dygrs-_-.js} +16 -16
  84. package/dist/assets/{InvitePageListView-C7CaDCYN-kxX6EM5-.js → InvitePageListView-zaQ1xEHJ-BmXz06Jr.js} +27 -27
  85. package/dist/assets/{InvitePeoplePage-Ca0ZnNhV-4UVRRlzN.js → InvitePeoplePage-BNB36i8Y-COHEYzwz.js} +2 -2
  86. package/dist/assets/{InvoiceUploadSection-Cm7WlMIS-Ds7UwHT_.js → InvoiceUploadSection-FXrB92T6-JqJ7zAlH.js} +6 -6
  87. package/dist/assets/{IssueChargeCardPage-B7w3Xky1-CF1rLLIM.js → IssueChargeCardPage-D3cUp2DE-DFSG2B0F.js} +21 -21
  88. package/dist/assets/{LabeledAddressValue-B5Yv4nig-BmG4gsPH.js → LabeledAddressValue-BF6r800B-CeESX1Hz.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-BODlYe8J-C_77UpWi.js → LabeledAddressValueField-DYelJL4d-Dl7kIpOx.js} +3 -3
  90. package/dist/assets/{LabeledControlledCheckBoxField-BBrHodlx-ajZwZw2T.js → LabeledControlledCheckBoxField-B2ATKJBH-CXyWx4Ub.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-DBovHkMc-D9D-7hZt.js → LabeledCreatableSingleSelectField-B9zUAA6L-1j60EBJE.js} +6 -6
  92. package/dist/assets/LabeledDocumentField-DORRl3DI-WSVu_B_9.js +41 -0
  93. package/dist/assets/LabeledDropDownFormattedTextField-FpRJ9tiX-Tiw-2EM1.js +59 -0
  94. package/dist/assets/{LabeledText-D0aPaE6r-DJ33Sqqy.js → LabeledText-C34I_iEo-DpYgVuJS.js} +2 -2
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CO-Owx5--C5GcoA_6.js → LabeledUserSingleSelectWithSubtitlesField-B6aVL-fb-D9zCwLzE.js} +10 -10
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CcfvYWTB-FOsQ-M0q.js → LabeledZeniRolesDropDownField-Caj0_1zM-DksZdels.js} +13 -13
  97. package/dist/assets/{LinkJETransactionPage-w2poqqTD-CRc8L88u.js → LinkJETransactionPage-DLmZGscZ-DAJUM85q.js} +12 -12
  98. package/dist/assets/{LowBalancePopup-BpFvPcb8-CmbXf1Gb.js → LowBalancePopup-ll1SesgY-BWe295aL.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-DUyr5VX8-FvxaU41w.js → MagicLinkACHDetailsPage-DXzjYrdU-DXTf7zdI.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CTA58UoF-CRGjJqP9.js → MagicLinkDomesticWireDetailsPage-CUwp46Wf-CEU-wofA.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DDQqyw69-MTxSeQ4l.js → MagicLinkInternationalWireDetailsPage-B_h0EHoZ-5KHyZ3zZ.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-CKKAWryZ-Cm8AQCr_.js → MagicLinkSuccessPage-BX4E-l5M-DUEIbM10.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-CvW_f4xF-BDkWHabu.js → MagicLinkTitleSection-DHe9TfVe-xOZGBQNN.js} +2 -2
  104. package/dist/assets/{MailingDetailsSection-Di5KwEqu-Di8UL6YK.js → MailingDetailsSection-D8CZart4-D1oBjzV1.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js → MeetingCalenderPopup-D4tz-H5i-CGIgOa91.js} +3 -3
  106. package/dist/assets/{Menu-BOh_KLZu-BrkD9kYL.js → Menu-C9u3eDJk-Dna4rH8W.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BBQ0YN9M-BBihRuQw.js → MyBankConnectionsSettingsPage-DVp3h4c0-Cn5_bOe_.js} +11 -11
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DcXCxGj2-BY3uKh9u.js → MyPendingActivationChargeCardListPage-BTk8mY7B-BbdmJXam.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-D-lTTFuP-D9kDcE-6.js → MyProfileSettingsPage-BdcDAwKZ-DhDLZRJB.js} +9 -9
  110. package/dist/assets/{NavBarWithPicker-CNBOk06R-D8yiRwFQ.js → NavBarWithPicker-DbSWvh0o-1EJ8HziX.js} +4 -4
  111. package/dist/assets/{NavigationArrow-B15b66TT-B9hYIhnI.js → NavigationArrow-BP8cU19I-DuPgzuQR.js} +1 -1
  112. package/dist/assets/{NavigationDots-5fxvl-4e-BzJdpllk.js → NavigationDots-nvOimTil-Do5DUslv.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-BeP4W8rj-Dwyu3Pw7.js → NewGlobalMerchantPage-D-imjD0M-pXdB0gKF.js} +6 -6
  114. package/dist/assets/{NoDataChart-edFKx0zh-DIp9-BoP.js → NoDataChart-VE4W-RUu-BjJTQpdm.js} +1 -1
  115. package/dist/assets/{NoDataTable-41nH5trW-Brapb7lv.js → NoDataTable-d0_62BR0-vyxhk2_b.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CRVGi6Xn-BHvH8jL8.js → NotFoundPage-BydQGX11-BGoiJNRP.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-CiVAtoGY-B9kZWOsO.js → NotificationSettingsPage-BIzaZFzy-BGkCXx1m.js} +6 -6
  118. package/dist/assets/NotificationsListConfig-DVBOQJZq-BcXyCFD3.js +1 -0
  119. package/dist/assets/{NotificationsPage-DuHUL5V8-CgYzIXTj.js → NotificationsPage-BdI4E6uL-DkzIMoYu.js} +29 -29
  120. package/dist/assets/{OpExByVendorPage-D611nXIC-CqyYyP4C.js → OpExByVendorPage-Dm90CRYi-fVB-9LNX.js} +5 -5
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-DPaQcYgi.js → OverlayContainerPage-nhe7xtoR-BxI5uHKy.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-Cqab0euB-dzseIlDa.js → PandLWithForecastPage-DhbFHH25-DsvGD_Sy.js} +7 -7
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Cvn1adQb-kbzfxjFm.js → PaymentAccountSetupBillingAddressSection-Debi_lWf-LBl6kVXa.js} +6 -6
  124. package/dist/assets/{PeoplePage-MCCZAx4z-BnV0pX_P.js → PeoplePage-BACu55RO-BN0ZZ-UI.js} +24 -24
  125. package/dist/assets/{PortfolioAllocationFormPage-Coa0Y4wN-CVL7-3BP.js → PortfolioAllocationFormPage-Cjz_E3BK-BKc2XOmG.js} +3 -3
  126. package/dist/assets/{PortfolioDetails-C9a0p99e-d06R_ouh.js → PortfolioDetails-CS2st-Mx-B7UFy1Ls.js} +8 -8
  127. package/dist/assets/{ProductsCarousel-B0fHKTa_-Bne7N-_V.js → ProductsCarousel-TB4uKZbg-BDTdHFcB.js} +9 -9
  128. package/dist/assets/{PromoBaseCards-BuCQJuXH-BcjVOmSJ.js → PromoBaseCards-BMPp9RNQ-B5wN89Pm.js} +5 -5
  129. package/dist/assets/{QBOConnectionDialog-D-vB9dbo--0kkpUah.js → QBOConnectionDialog-B1b1wGeq-OoIQ8fFk.js} +9 -9
  130. package/dist/assets/{QBOSetupSection-CfficE5p-nLwRVoqN.js → QBOSetupSection-Bj_y0Lo2-D2Jh1k_B.js} +7 -7
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cg_pVsAh-Baq7EYkc.js → ReimbursementApprovalRuleDetailPage-Cz4RtqYb-BX1qPBal.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-Dg1b0lJP-YhAdGh62.js → ReimbursementApprovalRulesPage-DJlNT4Ov-DKT5YJKy.js} +20 -20
  133. package/dist/assets/ReimbursementDetailPage-BQiu7Gts-DqYEtmnq.js +314 -0
  134. package/dist/assets/{ReimbursementPromoPage-MQpz5nNE-CLg8Hqif.js → ReimbursementPromoPage-ppaPJby5-CiDmuDvG.js} +16 -16
  135. package/dist/assets/{ReimbursementSetUpPage-BRjWHns_-BSdXzytm.js → ReimbursementSetUpPage-B6mZrzQB-38calwmF.js} +8 -8
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-wPNRkXt8-DoNrAJRB.js → ReimbursementsBulkReviewDrawerPage-DS55QesG-DWNEdEIB.js} +1 -1
  137. package/dist/assets/{ReloadCard-D5woGDxx-DS9HJ3wy.js → ReloadCard-DDDYlCsI-BiE6_qfW.js} +5 -5
  138. package/dist/assets/ReportTableViewSelector-Bss4AtF1-D_wRO_1z.js +133 -0
  139. package/dist/assets/ReportsPage-C-g9588h-XLIvq5EO.js +120 -0
  140. package/dist/assets/{RevenueChart-CS0JmijO-BqFQGtoh.js → RevenueChart-DPkxzWaE-ClY8SeJE.js} +25 -25
  141. package/dist/assets/{ReviewDetailsPage-C7RbpKwU-C9iDaLL8.js → ReviewDetailsPage-CyF2YP3t-B_CfpE0G.js} +14 -14
  142. package/dist/assets/{ReviewOverlay-BwgzcM9d-CSY6hmMy.js → ReviewOverlay-AoSgYufX-BCA64ah8.js} +6 -6
  143. package/dist/assets/{RoleWithToolTip-DkeT6zjW-DmUDvRC_.js → RoleWithToolTip-aoWU03so-Bag-xDLs.js} +6 -6
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BzZkVg7T-c2tjnpKQ.js → ScheduleDetailsFixedAssetsPage-Bfj3vclV-biUqkJSS.js} +4 -4
  145. package/dist/assets/{ScheduleDetailsPage-DiXwmlk8-t0I7MASB.js → ScheduleDetailsPage-B30aUjKr-VuYOr4oZ.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-CSxFNhoR-D9UFT3Zm.js → ScheduleSequenceTable-CStdRSyQ-YS2LkHDs.js} +22 -22
  147. package/dist/assets/{ScreenRoutes-xLzXCTox.js → ScreenRoutes-DUx3gCGl.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js → SetUpAccountSection-nul4pyeP-CLCXvV9l.js} +103 -103
  149. package/dist/assets/{SetUpDefaultSection-D4FafmO5-CcuY4gpp.js → SetUpDefaultSection-ByW3h9zl-9i3uOw78.js} +8 -8
  150. package/dist/assets/{SignIn-CAmRcuqx-CXf8JU8h.js → SignIn-R1Rsh38G-8L0Hp_zM.js} +18 -18
  151. package/dist/assets/{SignInScreen-CEfXit7t.js → SignInScreen-BE18aJB0.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-DdpJprAd-BHEK7wRP.js → SpendManagementListViewPage-BqOQ7NY_-DhnClYVW.js} +4 -4
  153. package/dist/assets/{SpendManagementPerTabPage-D2Ri2q6S-BZOgnmqs.js → SpendManagementPerTabPage--2EC1Oz4-DclxNVvC.js} +36 -36
  154. package/dist/assets/{SpendManagementSection-CisJALAC-zKC9aL_a.js → SpendManagementSection-COMVry1E-CYzctw4v.js} +11 -11
  155. package/dist/assets/{SpendMgmtSetupAccountSection-DcJhhfdt-CSj4RU9Q.js → SpendMgmtSetupAccountSection-fV4qxxEy-ExRAZ_sL.js} +8 -8
  156. package/dist/assets/{StatementItem-BOq_DDMZ-VgE7gIr3.js → StatementItem-BksIBztP-GeqTXxSG.js} +5 -5
  157. package/dist/assets/{StatementsPage-C9WOCLSj-lgfYmMKh.js → StatementsPage-DnAoeqze-BOeXA5KM.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-CofdCR_K-DYsfjilX.js → StatusSwitcher-b1A9RnRP-B052EzJ9.js} +4 -4
  159. package/dist/assets/{SubTabSwitcher-BPVG5BHS-C6Ng45Yx.js → SubTabSwitcher-CgJW4ZXd-DlWjeTn_.js} +1 -1
  160. package/dist/assets/{SummaryCard-D-me4TrL-C69v2luu.js → SummaryCard-sEKhcIH5-DRp31G9t.js} +1 -1
  161. package/dist/assets/TaskManagementPage-z5uvcy81-CPykjrgv.js +508 -0
  162. package/dist/assets/{TimeRangeSwitcher-BK7gGqaa-li6QV9p5.js → TimeRangeSwitcher-DQ-u6pKk-DC1xB5lv.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-SD5_8TCp-DcEUsFuS.js → TimeframeSwitcher-B0yxn0SJ-CwNpTd2S.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-BlbY3qcY-CLuOSbn2.js +31 -0
  165. package/dist/assets/{TopExCard-CDgcQKGp-G2-ryp7z.js → TopExCard-CTjfWfCk-CAtjOAda.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-CXiEe14r-DrI7SLfC.js → TopExDetailPage-CdpvcVME-J1pxGIiS.js} +6 -6
  167. package/dist/assets/{TransactionDetailPage-IJyZF-Z_-ssTdABCq.js → TransactionDetailPage-DdF9FS4b-aUNjP2MS.js} +46 -46
  168. package/dist/assets/{TransactionList-C34ivmk5-BL7wpE6F.js → TransactionList-CHq3WONc-CDMTLkl_.js} +13 -13
  169. package/dist/assets/{TransactionListBig-qruiU0xy-4hBLzp6P.js → TransactionListBig-D-Gxd5n0-BYXDLjRx.js} +18 -18
  170. package/dist/assets/{TransactionListPage-C31U97xd-B7MDVBJ8.js → TransactionListPage-DK9-YK_1-jSebPnQW.js} +5 -5
  171. package/dist/assets/{TransactionVendorDetailPage-DZsvH-GM-CHoVBuA8.js → TransactionVendorDetailPage-Cc9pTpTw-dOPSJTMD.js} +6 -6
  172. package/dist/assets/{TransferDrawerPage-DC5q2Zpv-Bbx0ZiKK.js → TransferDrawerPage-DoDTECI8-BFP-sFPo.js} +33 -33
  173. package/dist/assets/{TreasuryOverviewPage-DSBqawrH--EJITXP0.js → TreasuryOverviewPage-wlfReqPJ-Dd6DjTk6.js} +14 -14
  174. package/dist/assets/{TreasuryPromoPage-D6WSBxgD-BYq_YoGm.js → TreasuryPromoPage-C9WNRb2_-Bv2i8EfH.js} +8 -8
  175. package/dist/assets/{TreasurySetupPage-BgSq4D0a-BeLJ_DJT.js → TreasurySetupPage-CjV0cOq9-BmP_R4PT.js} +2 -2
  176. package/dist/assets/{TreasuryStatementsPage-Dj9RAujO-BX1C5lYD.js → TreasuryStatementsPage-DqOWNGB_-hAvO09t_.js} +5 -5
  177. package/dist/assets/{TreasuryTaxLetterPage-Dw6tL_j9-BVOoGBCD.js → TreasuryTaxLetterPage-BWGHcQ-i-DCm4xllr.js} +4 -4
  178. package/dist/assets/{TreasuryTransferOrReviewPage-cBHznYnK-1UcbcZaf.js → TreasuryTransferOrReviewPage-CgL8K7N9-BrTZBU_c.js} +19 -19
  179. package/dist/assets/TrendChart-76tuu9Dr-DKqkCwBC.js +16 -0
  180. package/dist/assets/{TrendWithTransactions-BOGQK2Zt-itTZBsuV.js → TrendWithTransactions-B_fJTS4m-B4jhKCz-.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-Ci4VHOLB-CZTpXCGM.js → UncategorizedAccountsMappingPage-DpY1kK_K-CX5FrYpM.js} +7 -7
  182. package/dist/assets/{UnitIntegrationPage-DSMTzyKA-DnkdzVNG.js → UnitIntegrationPage-BTJI7fx3-B4TaSpvh.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-CBpLz-gk-DUe20w1p.js → UploadAdditionalDocumentOverlay-BH3bRKoG-Cxr-sGAj.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-Be7OBE4e-Cos9XGLx.js → Vendor2FAPopup-4-XtZDNS-BuVX3Yle.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-LvWgxsF7-BpMJ6WbJ.js → VendorACHDetailsPage-B2knDl4H-czLYWWIH.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-C-qpa1GC-C0r4HDge.js → VendorDetailPage-w-tghGpI-CfkAuWGF.js} +17 -17
  187. package/dist/assets/{VendorDomesticWireDetailsPage-Ckoq2I8V-BwkAhyAi.js → VendorDomesticWireDetailsPage-BXCCdTjh-Di1QWV1S.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-WZMwLILQ-BqoTTIiC.js → VendorFiling1099EditablePage-DGQO9Qqj-CEOM5YEV.js} +7 -7
  189. package/dist/assets/{VendorFirstReviewPage-DNhp59d9-D_f9l4B9.js → VendorFirstReviewPage-Lblb6X1V-39fudz_L.js} +40 -40
  190. package/dist/assets/{VendorInternationalWireDetailsPage-DuP916gU-COYahX1d.js → VendorInternationalWireDetailsPage-Bi5RBKxI-CtyyMelR.js} +9 -9
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BCIC6mrJ-BI-zVOHZ.js → VendorInternationalWireSwiftDetailsPage-CBZmsXnL-B-d0u1XS.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-C4q6FPlB-C6cNo2_u.js → VendorsAccountsSection-JI0e3gKo-BI5thaS_.js} +4 -4
  193. package/dist/assets/{WarningsDrawerPage-C162biV8-pPVOEtpH.js → WarningsDrawerPage-BQzUQ5-l-D1cPDLUy.js} +5 -5
  194. package/dist/assets/{ZeniAccountDetailPage-C3NnXuFp-CXwXsDQ1.js → ZeniAccountDetailPage-DPJ4mWoO-D2fzjkqw.js} +29 -29
  195. package/dist/assets/{ZeniAccountListViewPage-Cn7rYnlu-DTOPnL32.js → ZeniAccountListViewPage-iHMJ7FU7-UZUihbgS.js} +23 -23
  196. package/dist/assets/ZeniAccountNavBarPieces-D1g1REsS-D07e9d9s.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-BGyyQP4l-B98KmCaD.js → ZeniAccountPromoPage-OxQ03DtJ-X6atYnaZ.js} +8 -8
  198. package/dist/assets/{ZeniAccountSetupPage-CIh0isMw-lFqJMWg0.js → ZeniAccountSetupPage-BahzDcmm-B-umC_Qa.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-B83zWEf0-19q3_mPy.js → ZeniCopyright-Dpqdxu7f-CHOK6b2K.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-CPg3o4xG-BlMvJPot.js → ZeniTransferAmountSlider-DwC6pXnb-BgJArm45.js} +1 -1
  201. package/dist/assets/analytics-BSSiLa6f.js +7 -0
  202. package/dist/assets/{analyticsHelper-CD5PHV67.js → analyticsHelper-CPNSDy4Z.js} +1 -1
  203. package/dist/assets/{analyticsHelper-DlYWxxhD-DdeYfQh2.js → analyticsHelper-CZ8c8du5-Ber0nUBK.js} +1 -1
  204. package/dist/assets/{chartTypes-DueLK3Wl-B3lGAHMU.js → chartTypes-CWLOazD0-BCrBxX2L.js} +1 -1
  205. package/dist/assets/{commonDimensions-D4uH020E-szItJUN9.js → commonDimensions-Cg7EWgSP-ztBpKI_h.js} +1 -1
  206. package/dist/assets/{detailCommon-D5qKBZdS-CPasfcVD.js → detailCommon-Cp4eknjq-ClKRuZos.js} +7 -7
  207. package/dist/assets/{downloadPdf-s4pLtuS_-CF3EQD3j.js → downloadPdf-f3F0OqWf-DUwLrQQm.js} +1 -1
  208. package/dist/assets/{index-DoFw58Mw.js → index-Dq4DW5h0.js} +3324 -3326
  209. package/dist/assets/{liveblocks-sSQ9JElv.js → liveblocks-BUGn2yQ6.js} +1 -1
  210. package/dist/assets/{mapLoadingInProgressToTreeNode-M0QN8LkC-3yQrrz5g.js → mapLoadingInProgressToTreeNode-DCLD3rcY-_6B85me3.js} +1 -1
  211. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CrtVdHui-CnnfThO_.js → mapSectionWithAcOnlyToTreeNode-C-VOXE5I-ChyvQWp0.js} +1 -1
  212. package/dist/assets/{mapSpacerToTreeNode-yPPIJHBw-D3Gjllyb.js → mapSpacerToTreeNode-DlDwFA_F-CYv3KN_2.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-px916zpo-rIOc1Hnu.js → mapTimeframeBalancesToTreeNode-EEyJwCnX-HEZ0R9-O.js} +1 -1
  214. package/dist/assets/mui-BgvZYSo0.js +22 -0
  215. package/dist/assets/{play-icon-Bih37F_s-C73Mu05H.js → play-icon-CFa9Uibr-CaxUs2iQ.js} +3 -3
  216. package/dist/assets/{redux-ByjIRbhZ.js → redux-DmDqXYej.js} +1 -1
  217. package/dist/assets/{routing-Cpaypegg.js → routing-BNz5gZgX.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-CAhfOfUa-CUvT0aen.js → toCOABalancesWithID-DT8-C5u1-CE-3jMAY.js} +1 -1
  219. package/dist/assets/{toChartData-BicnbT0F-BAKhPkjP.js → toChartData-63e3B91H-DoSBXci0.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-A_YlwvaQ-YLNVEYZe.js → treasuryColorHelper-BGGfolJy-B6Wl_Wly.js} +1 -1
  221. package/dist/assets/{uploadAttachment-DVoWdoWD-RtUqrYnb.js → uploadAttachment-YcPIDoZ--DIC1ZEM7.js} +19 -19
  222. package/dist/assets/{uploadReceipts-Buvz7DfG-XWftDYl6.js → uploadReceipts-BH9fi3Vt-CnyK0TMw.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +5 -5
  225. package/dist/assets/AccountRow-D9vDRsjv-uSOuzaD9.js +0 -298
  226. package/dist/assets/BusinessVerificationPage-YKJ-CZfb-BgJNO5ZA.js +0 -140
  227. package/dist/assets/CheckDepositDrawerPage-B1Qp-xbY-f-dhYQ0q.js +0 -206
  228. package/dist/assets/CompleteProfile-CJOsHnBa-DdCWBRuB.js +0 -36
  229. package/dist/assets/CustomerOnboardingContainerPage-X6X9Yc-9-D6pVLXm5.js +0 -1
  230. package/dist/assets/CustomerOnboardingPage-CIbBaMcO-Dqym0Rf2.js +0 -107
  231. package/dist/assets/DashboardReportPage-BM6TqjrJ-DQu7SOT2.js +0 -349
  232. package/dist/assets/DomesticWireDetailsPage-BZ8jSo8r-Dcvy9KUR.js +0 -21
  233. package/dist/assets/LabeledDocumentField-CIlbLPtO-DSLjsPoT.js +0 -41
  234. package/dist/assets/LabeledDropDownFormattedTextField-Dpt7UG-o-BPi_XfUF.js +0 -59
  235. package/dist/assets/NotificationsListConfig-BjItJJe9-l0BCgaPP.js +0 -1
  236. package/dist/assets/ReimbursementDetailPage-CE_jx7cM-DEw3OdDA.js +0 -314
  237. package/dist/assets/ReportTableViewSelector-Bc5xUtnG-pW3txVQ2.js +0 -150
  238. package/dist/assets/ReportsPage-J8DrZz78-Bf6sj4--.js +0 -120
  239. package/dist/assets/TaskManagementPage-BSmG6YR2-BRBZRYl9.js +0 -508
  240. package/dist/assets/TimeframeSwitcherWithToggle-BwvVsB_p-CoKIqOrx.js +0 -31
  241. package/dist/assets/TrendChart-dARoUu-T-CjrTnbAe.js +0 -16
  242. package/dist/assets/ZeniAccountNavBarPieces-DHYLxQKr-DoTCX7_F.js +0 -14
  243. package/dist/assets/analytics-DThoELaW.js +0 -7
  244. package/dist/assets/mui-C5LQ0bMa.js +0 -25
@@ -1,21 +1,21 @@
1
- import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as g,i as m,o as s,Z as xe,c0 as he,a9 as F,m as ue,C as ge,g as j,c2 as we,aa as je,av as be,p as fe}from"./index-DoFw58Mw.js";import{b as f,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";import{f as ke,C as N}from"./play-icon-Bih37F_s-C73Mu05H.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",W="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(fe[5],44)},ze=t.div`
1
+ import{w as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as g,i as m,o as r,Z as xe,c0 as he,a9 as F,f as ue,C as ge,g as j,c2 as we,aa as je,av as fe,p as be}from"./index-Dq4DW5h0.js";import{b,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-D4tz-H5i-CGIgOa91.js";import{f as ke,C as N}from"./play-icon-CFa9Uibr-CaxUs2iQ.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",W="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(be[5],44)},ze=t.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
5
5
  flex-direction: column;
6
6
  background-color: ${i=>i.theme.colors.grey4};
7
7
  `,ve=t.div`
8
- padding: ${i=>i.windowSize==="small"?`${s.sp0} ${s.sp3}`:`${s.sp0} ${s.sp8}`};
8
+ padding: ${i=>i.windowSize==="small"?`${r.sp0} ${r.sp3}`:`${r.sp0} ${r.sp8}`};
9
9
  text-align: center;
10
10
  `,Ce=t(he)`
11
11
  max-width: 648px;
12
12
  margin: auto;
13
- padding: ${s.sp7} ${s.sp0};
13
+ padding: ${r.sp7} ${r.sp0};
14
14
  color: ${i=>i.theme.colors.primary};
15
15
  `,Te=t(xe)`
16
16
  max-width: 600px;
17
17
  margin: auto;
18
- padding: ${s.sp5} ${s.sp0};
18
+ padding: ${r.sp5} ${r.sp0};
19
19
  color: ${i=>i.theme.colors.primary};
20
20
  `,X=t.div`
21
21
  display: flex;
@@ -49,8 +49,8 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
49
49
  transform: scale(100%)
50
50
  }
51
51
  `,Y=t.div`
52
- width: ${s.sp9};
53
- height: ${s.sp9};
52
+ width: ${r.sp9};
53
+ height: ${r.sp9};
54
54
  background: ${i=>i.theme.colors.playButtonBackGroundColor};
55
55
  display: flex;
56
56
  align-items: center;
@@ -69,24 +69,24 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
69
69
  justify-content: center;
70
70
  align-items: center;
71
71
  `,H=t.div`
72
- margin-left: ${i=>i.windowSize==="small"?s.sp0:s.sp6};
73
- margin-bottom: ${i=>i.windowSize==="small"?s.sp4:s.sp0};
72
+ margin-left: ${i=>i.windowSize==="small"?r.sp0:r.sp6};
73
+ margin-bottom: ${i=>i.windowSize==="small"?r.sp4:r.sp0};
74
74
  background: ${i=>i.theme.colors.grey3};
75
75
  border-radius: 12px;
76
76
  border: ${i=>`1px solid ${i.theme.colors.grey3}`};
77
77
  padding: 15px;
78
78
  `,d=t.div`
79
- border-radius: ${s.sp12};
79
+ border-radius: ${r.sp12};
80
80
  border: ${i=>`1px solid ${i.theme.colors.grey2}`};
81
- padding: ${i=>i.windowSize==="small"?`${s.sp2} ${s.sp4} ${s.sp2} ${s.sp0}`:`${s.sp3} ${s.sp5} ${s.sp3} ${s.sp0}`};
81
+ padding: ${i=>i.windowSize==="small"?`${r.sp2} ${r.sp4} ${r.sp2} ${r.sp0}`:`${r.sp3} ${r.sp5} ${r.sp3} ${r.sp0}`};
82
82
  background: ${i=>i.theme.colors.grey5};
83
83
  position: relative;
84
- margin-bottom: ${s.sp3};
84
+ margin-bottom: ${r.sp3};
85
85
  display: flex;
86
86
  align-items: center;
87
87
  text-align: start;
88
88
  box-sizing: border-box;
89
- `,$=t(be)`
89
+ `,$=t(fe)`
90
90
  color: ${i=>i.theme.colors.champion};
91
91
  `,y=t(je)`
92
92
  color: ${i=>i.theme.colors.champion};
@@ -95,9 +95,9 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
95
95
  `,S=t(we)`
96
96
  color: ${i=>i.theme.colors.champion};
97
97
  `,p=t.div``,x=t.div`
98
- padding-left: ${s.sp3};
98
+ padding-left: ${r.sp3};
99
99
  `,E=t(F)`
100
- margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
100
+ margin: ${i=>i.windowSize==="small"?r.sp1:`auto ${r.sp5}`};
101
101
  color: ${i=>i.theme.colors.grey1};
102
102
  `,J=t(C)`
103
103
  color: ${j.graphColor16Dark};
@@ -106,7 +106,7 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
106
106
  `,_=t(C)`
107
107
  color: ${j.success};
108
108
  `,K=t(ue)`
109
- margin: ${s.sp3} auto;
109
+ margin: ${r.sp3} auto;
110
110
  max-width: 772px;
111
111
  color: ${i=>i.theme.colors.hero};
112
- `,r=V.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=V.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(X,{windowSize:o,children:[e.jsxs(q,{windowSize:o,children:[e.jsx(Y,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:W,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(G,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.simplestText.bold}),e.jsx(k,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.aiPoweredText.bold}),e.jsx(k,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.multiLevelApprovalText.bold}),e.jsx(k,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(X,{windowSize:o,children:[e.jsxs(G,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.simplestText.bold}),e.jsx($,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx($,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx($,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsxs(q,{windowSize:o,children:[e.jsx(Y,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:W,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},We=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:re,onBackClick:se,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=f.useState(!1),[ne,I]=f.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,B=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),b=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=b?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;f.useEffect(()=>{B==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[B,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{I(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:r.title,backgroundColor:le.colors.grey4,onBackClick:se,showBackButton:!b,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Ie,{onImageClick:M}):e.jsx(Be,{onImageClick:M}),e.jsx(Pe,{children:b?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:re,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(K,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(K,{children:[r.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{We as default};
112
+ `,s=V.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=V.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(X,{windowSize:o,children:[e.jsxs(q,{windowSize:o,children:[e.jsx(Y,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:W,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(G,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(S,{children:s.simplestText.bold}),e.jsx(k,{children:s.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(S,{children:s.aiPoweredText.bold}),e.jsx(k,{children:s.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:s.multiLevelApprovalText.bold}),e.jsx(k,{children:s.multiLevelApprovalText.regular})]})]})]})]})},Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(X,{windowSize:o,children:[e.jsxs(G,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(y,{children:s.simplestText.bold}),e.jsx($,{children:s.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(y,{children:s.aiPoweredText.bold}),e.jsx($,{children:s.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:s.multiLevelApprovalText.bold}),e.jsx($,{children:s.multiLevelApprovalText.regular})]})]})]}),e.jsxs(q,{windowSize:o,children:[e.jsx(Y,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:W,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},We=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:se,onBackClick:re,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=b.useState(!1),[ne,I]=b.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,B=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),f=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=f?U?s.employeeAcceptPromoText:s.employeePendingPromoText:s.promoText;b.useEffect(()=>{B==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[B,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{I(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:s.title,backgroundColor:le.colors.grey4,onBackClick:re,showBackButton:!f,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Ie,{onImageClick:M}):e.jsx(Be,{onImageClick:M}),e.jsx(Pe,{children:f?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:s.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:s.orText}),e.jsx(g,{variant:"primary",label:s.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:se,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(K,{children:[s.terms.createTerms1,e.jsx(m,{href:s.terms.tosUrl,linkText:s.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),s.terms.terms2,e.jsx(m,{href:s.terms.privacyPolicyUrl,linkText:s.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),s.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:s.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:s.orText}),e.jsx(g,{variant:"primary",label:s.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(K,{children:[s.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,s.terms.terms3]})]})})]})]})};export{We as default};
@@ -1,4 +1,4 @@
1
- import{u as Ee,X as Ve,a5 as N,a as Ge,c3 as qe,M as Te,ab as be,j as t,cI as Je,g as J,C as r,aW as Ze,e as Ke,F as Qe,c$ as Ye,aQ as Xe,d0 as et,a7 as tt,o as a,p as n,ah as it,cg as nt,co as ot,e_ as ve,e$ as ke,fJ as at,K as lt,Y as $e,Q as Pe,bd as rt,w as st,aN as ct}from"./index-DoFw58Mw.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{F as dt}from"./HelpButton-khTPylkl-CEL7Boo7.js";import{J as je}from"./SetUpDefaultSection-D4FafmO5-CcuY4gpp.js";import{p as ut}from"./SpendMgmtSetupAccountSection-DcJhhfdt-CSj4RU9Q.js";import{g as mt}from"./UploadAdditionalDocumentOverlay-CBpLz-gk-DUe20w1p.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";import"./ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js";import"./CreditCardPaymentPlgSection-YcsIIUkG-C-zCY8ZF.js";import"./ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js";const pt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),f={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function gt({companyMileageConfigInfo:e,mileageDetails:S,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:K},trigger:Q}=nt(),E=ht($,"mileageAmountInDenomination"),x=ot(K,E),{localData:c,updateStatus:R,mileageStatus:C}=S,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[b,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||Q(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{b||H(b)},[b]);const{reimbursementSetup:w}=ee,{setUp:ie}=Y,ne=b===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(ft,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs($t,{windowSize:l,children:[w.mileageHeader,d===!1?t.jsx(At,{children:ie.comingSoon}):null]}),t.jsxs(vt,{windowSize:l,children:[t.jsx(bt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(pt,{width:f.iconWidthHeight.valuePx(l),height:f.iconWidthHeight.valuePx(l)})}),t.jsxs(xt,{children:[t.jsxs(kt,{children:[t.jsxs(Pt,{children:[t.jsxs(jt,{children:[t.jsx(yt,{windowSize:l,children:e?.denominationConversions.amount==null?w.mileageAddTitle:w.mileageEditTitle}),t.jsx(St,{children:w.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(wt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Dt,{children:[t.jsxs(Et,{children:[t.jsx(at,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:b||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${w.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Tt,{children:b?t.jsx(lt,{label:w.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?w.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,S)=>`${e}.${S}`,ft=i.div`
1
+ import{u as Ve,X as Ee,a5 as N,a as Ge,c3 as qe,M as Te,ab as be,j as t,cI as Je,g as J,C as r,aW as Ke,d as Qe,F as Ze,c$ as Ye,aQ as Xe,d0 as et,a7 as tt,o as a,p as n,ah as it,cg as nt,co as ot,e$ as ve,f0 as ke,fK as at,K as lt,Y as $e,Q as Pe,be as rt,v as st,aN as ct}from"./index-Dq4DW5h0.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{F as dt}from"./HelpButton-8AQIbLQM-Dxn71Y7_.js";import{J as je}from"./SetUpDefaultSection-ByW3h9zl-9i3uOw78.js";import{p as ut}from"./SpendMgmtSetupAccountSection-fV4qxxEy-ExRAZ_sL.js";import{g as mt}from"./UploadAdditionalDocumentOverlay-BH3bRKoG-Cxr-sGAj.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-D4tz-H5i-CGIgOa91.js";import"./ChargeCardUtils-oF0M6Gmc-CWcylJdd.js";import"./CreditCardPaymentPlgSection-7cmMRTQm-CcPhomOR.js";import"./ChaseOverlay-DPgGIuyV-JigHbzQk.js";const pt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),f={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function gt({companyMileageConfigInfo:e,mileageDetails:w,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:K}){const l=Ee(),D=Ve(),{formState:{errors:Q},trigger:Z}=nt(),V=ht($,"mileageAmountInDenomination"),x=ot(Q,V),{localData:c,updateStatus:R,mileageStatus:C}=w,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[b,E]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||Z(V)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&E(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{b||W(b)},[b]);const{reimbursementSetup:y}=ee,{setUp:ie}=Y,ne=b===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(ft,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs($t,{windowSize:l,children:[y.mileageHeader,d===!1?t.jsx(At,{children:ie.comingSoon}):null]}),t.jsxs(vt,{windowSize:l,children:[t.jsx(bt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(pt,{width:f.iconWidthHeight.valuePx(l),height:f.iconWidthHeight.valuePx(l)})}),t.jsxs(xt,{children:[t.jsxs(kt,{children:[t.jsxs(Pt,{children:[t.jsxs(jt,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(wt,{children:y.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Dt,{children:[t.jsxs(Vt,{children:[t.jsx(at,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:b||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:V,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Tt,{children:b?t.jsx(lt,{label:y.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!x&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),E(!0),W(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Et,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,w)=>`${e}.${w}`,ft=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -9,12 +9,12 @@ import{u as Ee,X as Ve,a5 as N,a as Ge,c3 as qe,M as Te,ab as be,j as t,cI as Je
9
9
  width: 100%;
10
10
  flex-direction: column;
11
11
  justify-content: flex-start;
12
- `,wt=i.div`
13
- display: flex;
14
12
  `,yt=i.div`
13
+ display: flex;
14
+ `,St=i.div`
15
15
  ${e=>`${ge.title.style(e.windowSize)}`};
16
16
  color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
17
- `,St=i(st)`
17
+ `,wt=i(st)`
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-start;
@@ -77,12 +77,12 @@ import{u as Ee,X as Ve,a5 as N,a as Ge,c3 as qe,M as Te,ab as be,j as t,cI as Je
77
77
  flex-direction: column;
78
78
  justify-content: flex-start;
79
79
  margin-top: ${a.sp3};
80
- `,Et=i.div`
80
+ `,Vt=i.div`
81
81
  display: flex;
82
82
  height: ${a.sp6};
83
83
  width: 100%;
84
84
  position: relative;
85
- `,Vt=i.label`
85
+ `,Et=i.label`
86
86
  display: flex;
87
87
  padding-left: ${e=>f.infoLabelPaddingLeft.valuePx(e.size)};
88
88
  color: ${e=>e.hasError===!0?J.important:e.additionalInfoTextColor??e.theme.colors.hero};
@@ -103,7 +103,7 @@ import{u as Ee,X as Ve,a5 as N,a as Ge,c3 as qe,M as Te,ab as be,j as t,cI as Je
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,g={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",G="remiAccount",q="remiMileage",ii=({remiSetupView:e,isDisabled:S,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:K,onBusinessVerificationSectionClick:Q,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:C,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Y,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:b,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:w,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:p,allFundingAccounts:he,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Fe,selectedCompanyOfficer:h}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Re}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(L.fetchState),ye=N(re.fetchState),Se=N(se.fetchState),z=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&h?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&h.areAdditionalDocumentsRequestedForVerification&&!h.areAdditionalDocumentsSubmittedForVerification&&h.userVerificationStatus?.code==="require_info"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[h,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Se==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Se,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),b()}),He=async(P,F)=>{const m=F[G];if(P.includes(G)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&p?.id!=m.fundingAccount.selectedOption){const y=he.find(me=>me.id===m.fundingAccount.selectedOption);y!=null&&Y(m.fundingAccount.selectedOption,y.accType)}}else if(m.account.selectedOption!=null&&p?.id!=null&&p?.zeniAccountId!=m.account.selectedOption){const y=m.account.allOptions.find(me=>me.value===m.account.selectedOption);y!=null&&typeof y.label=="string"&&l.trackConnectBankLink(y.value,y.label,"reimbursement"),U(m.account.selectedOption,p.id,p.accType)}}else if(P.includes(q)){const y=F[q];C(y)}};o.useEffect(()=>{const P=z.watch((F,{name:m})=>{m!=null&&F!=null&&qe(()=>He(m,F))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&L.fetchState==="Completed"&&V()},[V,we,L.fetchState]);const{commonSetUp:Ce,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Ce,ce=fe?.isBusinessVerified===!0&&(p?.accType==="depositAccount"||p?.providerVerificationStatus?.code==="verified"||p?.providerVerificationStatus?.code==="manually_verified"||p?.providerVerificationStatus?.code==="automatically_verified"||p?.providerVerificationStatus?.code==="database_matched")&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new be(W.colors.brandColorJadeLight):new be(W.colors.brandColorJadeDark),Ne=()=>{!B&&h?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&h.areAdditionalDocumentsRequestedForVerification&&!h.areAdditionalDocumentsSubmittedForVerification&&h.userVerificationStatus?.code==="require_info"?I(!0):Q?.()};return t.jsxs(Lt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(mt,{authParams:s,filesEndPoint:d,updateStatus:L,onEditFileName:w,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:h,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:K,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Mt,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ke,{size:"ExtraLarge",start:!0})}):t.jsx(Qe,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Rt,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ye,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Fe}),t.jsx(ut,{connectedAccountProvider:A,primaryFundingAccount:p,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:he,sectionId:G,isDisabled:S,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:R,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(gt,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:q,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(et,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Re:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(tt,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ie.fetchState==="In-Progress",isDisabled:S!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(dt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},Lt=i.div`
106
+ `,g={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",G="remiAccount",q="remiMileage",ii=({remiSetupView:e,isDisabled:w,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:K,analytics:l,accountsPromoConfig:D,onBackClick:Q,onBusinessVerificationSectionClick:Z,onSetupApprovalRulesSectionClick:V,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:C,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Y,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:b,onEnableRemiSuccess:E,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const H=Ve(),u=Ee(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:p,allFundingAccounts:he,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Fe,selectedCompanyOfficer:h}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Re}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),Se=N(re.fetchState),we=N(se.fetchState),z=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&h?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&h.areAdditionalDocumentsRequestedForVerification&&!h.areAdditionalDocumentsSubmittedForVerification&&h.userVerificationStatus?.code==="require_info"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[h,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||Se==="In-Progress"&&re.fetchState==="Completed"||we==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,Se,re.fetchState,we,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),b()}),We=async(P,F)=>{const m=F[G];if(P.includes(G)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&p?.id!=m.fundingAccount.selectedOption){const S=he.find(me=>me.id===m.fundingAccount.selectedOption);S!=null&&Y(m.fundingAccount.selectedOption,S.accType)}}else if(m.account.selectedOption!=null&&p?.id!=null&&p?.zeniAccountId!=m.account.selectedOption){const S=m.account.allOptions.find(me=>me.value===m.account.selectedOption);S!=null&&typeof S.label=="string"&&l.trackConnectBankLink(S.value,S.label,"reimbursement"),U(m.account.selectedOption,p.id,p.accType)}}else if(P.includes(q)){const S=F[q];C(S)}};o.useEffect(()=>{const P=z.watch((F,{name:m})=>{m!=null&&F!=null&&qe(()=>We(m,F))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&E()},[E,ye,L.fetchState]);const{commonSetUp:Ce,spendManagement:He}=Te.getLocalizedStrings(),{reimbursement:Be}=He,{reimbursementSetup:M}=Be,{setUp:k}=Ce,ce=fe?.isBusinessVerified===!0&&(p?.accType==="depositAccount"||p?.providerVerificationStatus?.code==="verified"||p?.providerVerificationStatus?.code==="manually_verified"||p?.providerVerificationStatus?.code==="automatically_verified"||p?.providerVerificationStatus?.code==="database_matched")&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new be(H.colors.brandColorJadeLight):new be(H.colors.brandColorJadeDark),Ne=()=>{!B&&h?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&h.areAdditionalDocumentsRequestedForVerification&&!h.areAdditionalDocumentsSubmittedForVerification&&h.userVerificationStatus?.code==="require_info"?I(!0):Z?.()};return t.jsxs(Lt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(mt,{authParams:s,filesEndPoint:d,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:h,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ke,{title:M.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Q,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,source:"ReimbursementSetUpPage"}),t.jsxs(Mt,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ze,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Rt,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ye,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Fe}),t.jsx(ut,{connectedAccountProvider:A,primaryFundingAccount:p,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:he,sectionId:G,isDisabled:w,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:R,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(gt,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:q,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(et,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:V,status:O.length>0?Re:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(tt,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ie.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(dt,{isFooterRendered:ce&&!de,meetingUrl:K,analytics:l,productType:"reimbursement"})]})},Lt=i.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
@@ -137,4 +137,4 @@ import{u as Ee,X as Ve,a5 as N,a as Ge,c3 as qe,M as Te,ab as be,j as t,cI as Je
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  row-gap: ${e=>g.sectionRowGap.valuePx(e.windowSize)};
140
- `,pe=e=>{const{allBankAccounts:S,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[G]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:S.map(s=>({label:s.accountName,value:s.accountId}))}},[q]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{ii as default,De as uniqueName};
140
+ `,pe=e=>{const{allBankAccounts:w,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[G]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:w.map(s=>({label:s.accountName,value:s.accountId}))}},[q]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{ii as default,De as uniqueName};
@@ -1 +1 @@
1
- import{M as N,j as b,bO as q,bQ as V,bR as W,jn as z,aJ as H,l as J}from"./index-DoFw58Mw.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as Q}from"./ReviewOverlay-BwgzcM9d-CSY6hmMy.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:k}}=N.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(R(e,h,l)),[x,P]=f.useState(h),[B,Z]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(P(!1),clearInterval(I)),e.fetchState==="Completed"&&_(R(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=X(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,J.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=Y(p,S,E,x),C=e.fetchState==="Completed"&&S===0,O=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:O,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(q,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:M,hideCancel:C}})]})},R=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:H("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},X=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Y=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
1
+ import{M as O,j as b,bN as q,bP as V,bQ as W,jo as z,aJ as H,l as J}from"./index-Dq4DW5h0.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as Q}from"./ReviewOverlay-AoSgYufX-BCA64ah8.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:k}}=O.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(P(e,h,l)),[x,R]=f.useState(h),[B,Z]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=X(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,J.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=Y(p,S,E,x),C=e.fetchState==="Completed"&&S===0,N=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:N,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(q,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:M,hideCancel:C}})]})},P=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:H("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},X=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Y=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
@@ -1,6 +1,6 @@
1
- import{u as h,j as r,V as a,Y as m,an as j,M as w,a8 as l,bJ as x,w as g,o as c,ao as C}from"./index-DoFw58Mw.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(x,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{u as h,j as r,W as a,Y as m,an as j,M as C,a8 as l,bI as x,v as g,o as c,ao as f}from"./index-Dq4DW5h0.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(x,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
- `;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function M({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(C,{children:({height:n,width:i})=>r.jsx(f,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
3
+ `;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function I({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:n,width:i})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;
5
5
  `,b=s.div`
6
6
  height: ${c.sp10};
@@ -19,8 +19,8 @@ import{u as h,j as r,V as a,Y as m,an as j,M as w,a8 as l,bJ as x,w as g,o as c,
19
19
  color: ${e=>e.theme.colors.primary};
20
20
  }
21
21
  }
22
- `,$=s(g)`
23
- color: ${e=>e.theme.colors.champion};
24
22
  `,v=s(g)`
23
+ color: ${e=>e.theme.colors.champion};
24
+ `,$=s(g)`
25
25
  color: ${e=>e.theme.colors.hero};
26
- `,L=s(y)``;function S({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(k,{children:[r.jsxs($,{children:[n??j(o)," "]}),r.jsx(b,{children:r.jsx(L,{})}),r.jsx(v,{children:w.getLocalizedStrings().card.failedText})]})})}export{T as E,M as I,S as T};
26
+ `,L=s(y)``;function M({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(k,{children:[r.jsxs(v,{children:[n??j(o)," "]}),r.jsx(b,{children:r.jsx(L,{})}),r.jsx($,{children:C.getLocalizedStrings().card.failedText})]})})}export{T as E,I,M as T};
@@ -0,0 +1,133 @@
1
+ import{u as X,X as se,aV as ie,a as ce,j as a,m as de,M as J,F as he,C,a7 as ue,o as c,bE as pe,bF as me,bG as fe,ah as ge,bH as xe,p as h,v as be,J as q,bI as ye,ab as _e,s as we,b1 as ve}from"./index-Dq4DW5h0.js";import{b as f,f as ae,n as u}from"./vendor-CnQcJ2Lu.js";import{r as j,a as $e}from"./CollapsableReportTable-DMr2UDgH-cuAz2CYU.js";const A=J.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,ke=e=>({this_period:{start_date:e.thisPeriod.startDate.format(A),end_date:e.thisPeriod.endDate.format(A)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ce=e=>e!=null?{start_date:e.startDate.format(A),end_date:e.endDate.format(A)}:void 0;function je(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(A):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:ke(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ce(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function Je(e,l,n){const s=J.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(je(n)))}`;try{const d=await pe({urlEndPoint:r,authParams:l,fileType:n.statementFileType});if(d.ok){const x=me(d.headers,s.defaultFileName),b=await d.arrayBuffer();fe(b,x)}else console.error(`${s.reportErrorMessage} ${d.statusText}`)}catch(d){console.error(`${s.reportErrorMessage} ${JSON.stringify(d)}`)}}const Ne=u.div`
2
+ padding: 0 ${c.sp3} 0 ${c.sp3};
3
+ border: 1px solid ${e=>e.theme.colors.primary};
4
+ background: ${e=>e.theme.colors.grey5};
5
+ border-radius: ${c.sp1};
6
+ display: flex;
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ position: relative;
10
+ height: ${c.sp8};
11
+ cursor: pointer;
12
+ `,Se=u(we)`
13
+ color: ${e=>e.theme.colors.primary};
14
+ margin-top: -2px;
15
+ `,Oe=u(ve)`
16
+ color: ${e=>e.theme.colors.hero};
17
+ width: 12px;
18
+ height: 12px;
19
+ margin: auto ${c.sp0};
20
+ :hover {
21
+ color: ${e=>e.theme.colors.primary};
22
+ }
23
+ `,Ie=e=>{const{value:l,onClick:n}=e,s=X();return a.jsxs(Ne,{onClick:n,children:[a.jsx(Se,{style:{color:s.colors.primary},children:l}),a.jsx(Oe,{})]})},De=ae.memo(Ie);function Fe({backgroundColor:e,foregroundColor:l,animated:n,width:s,height:r}){return a.jsxs(ye,{speed:2,width:s,height:r,viewBox:`0 0 ${s} ${r}`,animate:n!=!1,backgroundColor:e,foregroundColor:l,style:{marginBottom:c.sp2},children:[a.jsx("rect",{x:"45",y:h[3],rx:"5",ry:"5",width:"120",height:h[4]}),a.jsx("rect",{x:"45",y:h[8],rx:"5",ry:"5",width:"120",height:h[4]}),a.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:h[4]}),a.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:h[4]})]})}function ne({nestedClass:e,isLastNode:l,config:n,parentNodeIDs:s}){const r=j("checkbox_and_name_only",[],e.classId[0]),d={children:[],id:r,isLastNode:l,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:n}};return d.children=e.children.map((x,b)=>ne({nestedClass:x,config:n,isLastNode:b===e.children.length-1,parentNodeIDs:[...s,r]})),d}function Pe(e,l){const n=e.map((s,r)=>{const d=j("checkbox_and_name_only",[],s.classId[0]),x={children:[],id:d,isLastNode:s.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:s.className,data:s,numOfBalances:0},config:l}},b=s.children.map(N=>ne({nestedClass:N,config:l,isLastNode:r===s.children.length-1,parentNodeIDs:[d]}));return x.children.push(...b),x});return{config:l,headerNodes:[],contentNodes:[...n]}}function Ee(e,l){Object.assign(e.config,l);const n=e.contentNodes;return n.forEach(s=>re(s,l)),{config:l,headerNodes:[],contentNodes:[...n]}}function re(e,l){Object.assign(e.reportElementData.config,l),e.children.forEach(n=>re(n,l))}const K={contentPaddingLeft:new C(h[3],h[3],h[2]),contentPaddingRight:new C(h[3],h[3],h[2])},Te=u.div`
24
+ height: ${e=>e.height}px;
25
+ width: 100%;
26
+ `,Be=({reportId:e,firstMonthOfFY:l,nestedClassHierarchy:n,classesToBeFilteredOut:s,selectedView:r,showClassAccountNumber:d,scrollPosition:x,onScroll:b,nodeOpenStatus:N,onNodeCollapseToggled:R,onToggleCheck:S})=>{const M=X(),E=se(),[m,O]=f.useState(void 0),[I,g]=f.useState(!1),[T,v]=f.useState({}),[$,H]=f.useState(void 0),[D,y]=f.useState(r),_="none",Y=t=>r==="account_group"?!0:s?.length>0?s.find(o=>o[0]===t[0])!=null:!1,W=(t,o)=>{g(!0),v(t),S?.(t,o,r==="account_group"?!0:void 0),B(t,o)},B=(t,o)=>{const i=z(t);for(const p of i.children)S?.(p.classId,o),B(p.classId,o)},z=t=>{let o=n.filter(i=>i.classId[0]===t[t.length-1])[0];for(let i=t.length-2;i>=0;i--)o=o.children.filter(p=>p.classId[0]===t[i])[0];return o},F=t=>{if(t.length>1){const o=z(t.slice(1));let i=!1;for(const p of o.children)if(s.find(k=>k[0]===p.classId[0])===void 0){i=!0;break}i===!0?S?.(o.classId,!0):S?.(o.classId,!1),v(o.classId)}};f.useEffect(()=>{I&&F(T)}),f.useEffect(()=>{const t={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:_,firstMonthOfFY:l,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:Y,showClassAccountNumber:d};if(m==null||!q($,n)||!q(D,r)||I===!0){const o=Pe(n,t);H(n),O(o),y(r)}else{const o=Ee(m,t);O(o),y(r)}},[n,r,s]);const[G,V]=f.useState(5),L=t=>{const o=t+h[6];V(o)};return m!=null?a.jsx(Te,{height:G,children:a.jsx($e,{backgroundColor:r==="classes"?new _e(M.colors.background):void 0,rootNodes:m,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:K.contentPaddingLeft.value(E),right:K.contentPaddingRight.value(E)},scrollPosition:x,onScroll:b,nodeOpenStatus:N,onNodeCollapseToggled:R,onToggleCheck:W,onReportTableHeightChanged:L})}):null},w={width:new C(350,400,400),height:new C(165,165,165),buttonWidth:new C(62,62),buttonHeight:new C(h[5],h[5]),containerWidth:new C(150,400,400)},Le=u.div`
27
+ position: relative;
28
+ pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
29
+ `,Ae=u.div`
30
+ display: flex;
31
+ flex-direction: column;
32
+ width: ${e=>w.containerWidth.valuePx(e.windowSize)};
33
+ `,Me=u(ge)`
34
+ display: flex;
35
+ flex-direction: row;
36
+ width: fit-content;
37
+ cursor: pointer;
38
+ color: ${e=>e.theme.colors.primary};
39
+ .dropdownIcon {
40
+ color: ${e=>e.theme.colors.hero};
41
+ }
42
+ &:hover {
43
+ .dropdownIcon {
44
+ color: ${e=>e.theme.colors.primary};
45
+ }
46
+ }
47
+ gap: ${c.sp2};
48
+ margin-top: 12px;
49
+ align-items: center;
50
+ `,He=u(xe)`
51
+ color: ${e=>e.theme.colors.hero};
52
+ width: ${c.sp4};
53
+ height: ${c.sp4};
54
+ &:hover {
55
+ color: ${e=>e.theme.colors.primary};
56
+ }
57
+ `,We=u.div`
58
+ display: flex;
59
+ width: ${e=>e.width}px;
60
+ align-items: flex-start;
61
+ justify-content: space-between;
62
+ flex-direction: column;
63
+ border: 1px solid ${e=>e.theme.colors.grey5};
64
+ border-radius: ${c.sp1};
65
+ box-shadow: ${e=>`${c.sp0} 2px ${c.sp2} ${e.theme.colors.dropShadowHover}`};
66
+ margin-top: 10px;
67
+ padding-top: ${c.sp1};
68
+ background: ${e=>e.theme.colors.grey5};
69
+ `,Q=u.div`
70
+ display: flex;
71
+ align-items: flex-start;
72
+ justify-content: space-between;
73
+ flex-direction: column;
74
+ width: 100%;
75
+ background-color: ${e=>e.checked===!0?e.theme.colors.background:"transparent"};
76
+ & input[type="radio"] {
77
+ -webkit-appearance: none;
78
+ -moz-appearance: none;
79
+ appearance: none;
80
+ display: inline-block;
81
+ width: ${c.sp3};
82
+ height: ${c.sp3};
83
+ padding: 2px;
84
+ background-clip: content-box;
85
+ border: 1px solid ${e=>e.theme.colors.primary};
86
+ border-radius: 50%;
87
+ margin: ${c.sp0} ${c.sp2} ${c.sp0} ${c.sp2};
88
+ cursor: pointer;
89
+ }
90
+
91
+ input[type="radio"]:checked {
92
+ background-color: ${e=>e.theme.colors.primary};
93
+ }
94
+
95
+ input[type="radio"]:disabled {
96
+ cursor: default;
97
+ }
98
+
99
+ &:hover {
100
+ background: ${e=>e.theme.colors.background};
101
+ }
102
+ `,U=u(be)`
103
+ height: ${c.sp6};
104
+ display: flex;
105
+ justify-content: center;
106
+ align-items: center;
107
+ `,ze=u.div`
108
+ display: flex;
109
+ flex-wrap: wrap;
110
+ justify-content: flex-start;
111
+ height: 100%;
112
+ width: inherit;
113
+ overflow-y: auto;
114
+ .hide-icon {
115
+ display: none;
116
+ }
117
+ min-height: 165px;
118
+ max-height: 353px;
119
+ overscroll-behavior: contain;
120
+ `,Ge=u.div`
121
+ width: 100%;
122
+ height: 65px;
123
+ `,Z=u.label`
124
+ color: ${e=>e.theme.colors.primary};
125
+ cursor: ${e=>e.disabled===!0?"default":"pointer"};
126
+ `,Re=u.div`
127
+ display: flex;
128
+ flex: 1;
129
+ width: inherit;
130
+ background-color: ${e=>e.theme.colors.grey3};
131
+ min-height: 1px;
132
+ max-height: 1px;
133
+ `,{reportViewSelector:P,common:{footer:ee}}=J.getLocalizedStrings(),te="tableViewSelector",oe=e=>`${e}_form`;function Ke({reportId:e,firstMonthOfFY:l,nodes:n,classesListFetchState:s,selectedView:r,classesToBeFilteredOut:d,showClassAccountNumber:x,onOpenAccountViewMode:b,onSaveClick:N,isClassViewDisabled:R,downloadPage:S,showAccountGroups:M=!0}){const E=X(),m=se(),[O,I]=f.useState(!1),[g,T]=f.useState(r),[v,$]=f.useState({}),H=(t,o)=>(t.forEach(i=>{o.push(i.classId),o=H(i.children,o)}),o),D=H(n,[]),[y,_]=f.useState(g==="classes"?d:D),Y=s!=="Completed"||g==="classes"&&y.length===D.length;ie({componentName:`reports.${e}`});const W=t=>t==="classes"?P.classes.label:M===!0?P.accountGroups.label:P.accounts.label,B=ce({mode:"all"}),z=B.handleSubmit(()=>{I(!1),g==="classes"?N?.("classes",y):N?.("account_group")}),F=t=>{if(T(t),t==="classes")$({}),_([]);else{_(D);let o={};n.forEach(i=>{const p=j("checkbox_and_name_only",[],i.classId[0]);o=Object.assign({},o,{[p]:!1})}),$(o)}},G=()=>{O===!0&&L(),I(!O);let t={};n.forEach(o=>{const i=j("checkbox_and_name_only",[],o.classId[0]);r==="account_group"||y.find(p=>p[0]===o.classId[0])!==void 0?t=Object.assign({},t,{[i]:!1}):t=Object.assign({},t,{[i]:!0})}),$(t)},V=(t,o,i)=>{if(i===!0&&(T("classes"),_(D)),o===!0){const p=j("checkbox_and_name_only",[],t[0]);v[p]=!0,$(v),_(k=>k.filter(le=>le[0]!==t[0]))}else{const p=j("checkbox_and_name_only",[],t[0]);v[p]=!1,y.find(k=>k[0]===t[0])===void 0&&_(k=>[...k,t])}},L=()=>{I(!1),T(r),_(d)};return f.useEffect(()=>{if(s==="Completed"&&g==="account_group"){let t={};n.forEach(o=>{const i=j("checkbox_and_name_only",[],o.classId[0]);t=Object.assign({},t,{[i]:!1})}),$(t)}},[s]),a.jsx(de,{onClickAway:L,children:a.jsxs(Le,{isDisabled:R??!1,children:[S===!0?a.jsx(De,{value:W(r),onClick:()=>{b?.(),G()}}):a.jsx(Ae,{windowSize:m,children:a.jsxs(Me,{onClick:t=>{t.preventDefault(),b?.(),G()},children:[a.jsx(He,{className:"dropdownIcon"}),W(r)]})}),O?a.jsx(he,{...B,children:a.jsx("form",{id:oe(te),onSubmit:z,children:a.jsxs(We,{width:w.width.value(m),children:[a.jsx(Q,{checked:g==="account_group",children:a.jsxs(U,{onClick:()=>g!=="account_group"?F("account_group"):null,children:[a.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:t=>F(t.currentTarget.value),checked:g==="account_group",disabled:s!=="Completed"}),a.jsx(Z,{disabled:s!=="Completed",children:M===!0?P.accountGroups.dropdownLabel:P.accounts.dropdownLabel})]})}),a.jsx(Re,{}),a.jsxs(Q,{checked:g==="classes",children:[a.jsxs(U,{onClick:()=>s==="Completed"?F("classes"):null,children:[a.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:t=>s==="Completed"?F(t.currentTarget.value):null,checked:g==="classes",disabled:s!=="Completed"}),a.jsx(Z,{disabled:s!=="Completed",children:P.classes.dropdownLabel})]}),s==="Completed"?a.jsx(ze,{id:"sectionformcontainer",children:a.jsx(Ye,{reportId:e,firstMonthOfFY:l,nestedClassHierarchy:n,classesToBeFilteredOut:y,selectedView:g,nodeOpenStatus:v,showClassAccountNumber:x,onToggleCheck:V})}):a.jsx(Fe,{backgroundColor:E.colors.grey3,foregroundColor:E.colors.grey4,width:w.width.value(m),height:w.height.value(m),animated:!0})]}),a.jsx(Ge,{children:a.jsx(ue,{formId:oe(te),primaryBtn:{label:ee.save,style:{width:w.buttonWidth.valuePx(m),height:w.buttonHeight.valuePx(m)},isLoading:!1,isDisabled:Y,size:"small"},showCancel:!0,cancelBtn:{label:ee.cancel,style:{width:w.buttonWidth.valuePx(m),height:w.buttonHeight.valuePx(m)},onClick:L,size:"small",shouldResetOnCancel:!0},style:{padding:c.sp3}})})]})})}):null]})})}const Ye=ae.memo(Be,q);export{Je as X,Ke as e};
@@ -0,0 +1,120 @@
1
+ import{X as U,u as W,M as y,w as le,l as b,j as i,Y as L,bg as de,aY as pe,aW as ue,C as R,o as C,a9 as he,d as fe,bh as me,p as w,I as A,J as q,bi as ge,ab as _e,b5 as be,a_ as Se}from"./index-Dq4DW5h0.js";import{b as T,f as K,n as _}from"./vendor-CnQcJ2Lu.js";import{m as D,l as Y}from"./analyticsHelper-CZ8c8du5-Ber0nUBK.js";import{e as we}from"./ReportTableViewSelector-Bss4AtF1-D_wRO_1z.js";import{a as J,p as Ce}from"./TimeRangeSwitcher-DQ-u6pKk-DC1xB5lv.js";import{P as ye}from"./TimeframeSwitcherWithToggle-BlbY3qcY-CLuOSbn2.js";import{DownloadOverlayButton as xe}from"./DownloadOverlay-BLj0xso_-BlktwxlM.js";import{a as Oe,r as M,b as X}from"./CollapsableReportTable-DMr2UDgH-cuAz2CYU.js";import{T as Q,I as ee,L as $,D as Ae,g as te}from"./mapSectionWithAcOnlyToTreeNode-C-VOXE5I-ChyvQWp0.js";import{s as G}from"./mapTimeframeBalancesToTreeNode-EEyJwCnX-HEZ0R9-O.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-B0yxn0SJ-CwNpTd2S.js";import"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./AccountRow-CPX-627p-B4ZaO0oz.js";function se({section:e,sectionId:t,numOfBalances:o,config:a}){return X("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(s=>Re({accountGroup:s,sectionType:t,numOfBalances:o,title:s.accountGroupName,isLastNode:!0,config:a}))}function Re({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:s,config:l}){const p=M("section",[],a+t),d={children:[],id:p,isLastNode:s,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:l}},n=X("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),g=n.map((r,u)=>te({account:r,sectionType:t,numOfBalances:o,title:r.account.accountName,config:l,isLastNode:u===n.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:r.children.length>0,isLastNode:u===n.length-1}]}}));return d.children.push(...g),d}function ne({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((s,l)=>te({account:s,sectionType:t,numOfBalances:o,title:s.account.accountName,config:a,isLastNode:l===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:s.children.length>0,isLastNode:l===e.accounts.length-1}]}}))}function oe({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Be(e,t,o,a=!0){Object.assign(e.config,t);const s=ae(o),l=G({balances:s,config:t});return{config:t,headerNodes:a?[l]:[],contentNodes:[l,...e.contentNodes.slice(1)]}}const ae=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function ve(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,s=y.getLocalizedStrings().reports.balanceSheet,l=ae(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&l.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=oe({balances:l,config:t}),n=[];return n.push(d),Object.keys(e.rootSectionsWithSubSectionIds).forEach(g=>{const r=M("title_string_only",[],g),u={children:[],id:r,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[g],data:void 0,numOfBalances:0},config:t}};n.push(u),e.rootSectionsWithSubSectionIds[g].forEach(c=>{if(b.isBalanceSheetReportViewSectionID(c)===!0)if(e.sections[c].accountGroups.length>0)if(c==="equity"){const f=se({sectionId:c,section:e.sections[c],numOfBalances:p,config:t});n.push(...f)}else n.push(Q({section:e.sections[c],sectionType:c,numOfBalances:p,title:s[c],isLastNode:!0,config:t}));else if(c==="equity"){const f=ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:p,config:t});n.push(...f)}else{const f=e.sections[c];n.push(ee({sectionWithAcOnly:f,sectionType:c,numOfBalances:p,title:s[c],isLastNode:!0,config:t}))}else b.isBalanceSheetReportViewCalculatedSectionID(c)===!0&&n.push($({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[d]:[],contentNodes:n}}function Te({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:s}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:s}}}function Le(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,s=y.getLocalizedStrings().reports.cashFlow,l=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&l.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=oe({balances:l,config:t}),n=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(g=>{const r=M("title_string_only",[],g),u={children:[],id:r,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[g],data:void 0,numOfBalances:0},config:t}};n.push(u),e.rootSectionsWithSubSectionIds[g].forEach(c=>{if(b.isCashFlowReportViewSectionID(c)===!0)if(e.sections[c].accountGroups.length>0){const f=se({sectionId:c,section:e.sections[c],numOfBalances:p,config:t});n.push(...f)}else{const f=ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:p,config:t});n.push(...f)}else b.isCashFlowReportViewCalculatedSectionType1ID(c)===!0?n.push(Te({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t})):b.isCashFlowReportViewCalculatedSectionID(c)===!0&&n.push($({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[d]:[],contentNodes:[d,...n]}}function ke(e,t,o=!0){const a=y.getLocalizedStrings().reports,s=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],l=t.mode!=null&&t.mode==="this_period_vs_period_before"&&s.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=G({balances:s,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{b.isPandLReportViewSectionID(n)===!0?d.push(Ae({section:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t})):b.isPandLReportViewCalculatedSectionID(n)===!0&&d.push($({calculatedSection:e.calculatedSections[n],numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:d}}function Ne(e,t,o=!0){const a=y.getLocalizedStrings().reports,s=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],l=t.mode!=null&&t.mode==="this_period_vs_period_before"&&s.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=G({balances:s,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{if(b.isPandLReportViewSectionID(n)===!0&&(e.sections[n].accountGroups.length>0?d.push(Q({section:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t})):d.push(ee({sectionWithAcOnly:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))),b.isPandLReportViewCalculatedSectionID(n)===!0){const g=e.calculatedSections[n];g!=null&&d.push($({calculatedSection:g,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:d}}const Z={contentPaddingLeft:new R(w[0],w[0],w[0]),contentPaddingRight:new R(w[3],w[3],w[8])},Pe=_.div`
2
+ height: ${e=>e.height}px;
3
+ width: 99.9%;
4
+ margin-top: ${C.sp2};
5
+ background-color: ${e=>e.theme.colors.grey4};
6
+ `;function Ie({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:s,onAdditionalBalanceSelectionChanged:l,onAccountBalanceClick:p,onTableScroll:d,onElementCollapseStateChanged:n,isCompareModeOn:g}){const r=U(),u=W(),[c,f]=T.useState(void 0),[F,N]=T.useState(void 0),B=!(r==="small"||r==="medium-compact"),j="name+balances_actual",E=g===!0?"this_period_vs_period_before":"none",x=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(V=>b.toTimeframeTick(V));break}case"profit_and_loss_by_classes":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(V=>b.toTimeframeTick(V));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>b.toTimeframeTick(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>b.toTimeframeTick(h));break}}return m.length>0&&m.find(h=>h.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:E,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Se(),showClassAccountNumber:s};if(c==null||!q(F,e)){const h=Me(e,m,B);N(e),f(h)}else{const h=Be(c,m,e,B);f(h)}},[g,e]);const[O,P]=T.useState(5),I=m=>{const h=m+135;P(h)},re=m=>m?.trackPageLoaded($e(e));return c!=null?i.jsxs(i.Fragment,{children:[i.jsx(ge,{analytics:a,onLoad:re}),i.jsx(Pe,{height:O,children:i.jsx(Oe,{backgroundColor:new _e(u.colors.grey4),rootNodes:c,type:j,compareMode:x(),isSticky:{isStickyHeader:B,isStickyName:B},treeNodePadding:{left:Z.contentPaddingLeft.value(r),right:Z.contentPaddingRight.value(r)},onAccountClick:p==null?void 0:(m,h)=>{p(m,h)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>l?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,h)=>n?.(e.reportId,m,h),onReportTableHeightChanged:I,onScroll:m=>d?.(e.reportId,m)})})]}):null}const Me=(e,t,o=!0)=>{switch(e.reportId){case"profit_and_loss":return Ne(e,t,o);case"profit_and_loss_by_classes":return ke(e,t,o);case"cash_flow":return Le(e,t,o);case"balance_sheet":return ve(e,t,o);default:return}},$e=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},Fe=_.div`
7
+ display: flex;
8
+ flex-direction: row;
9
+ border-bottom: 1px solid ${e=>e.theme.colors.grey3};
10
+ justify-content: center;
11
+ width: 100%;
12
+ align-items: center;
13
+ `,je=_.div`
14
+ display: flex;
15
+ position: relative;
16
+ `,Ee=_(be)`
17
+ padding: 12px;
18
+ color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
19
+ cursor: ${e=>e.isSelected?"default":"pointer"};
20
+ margin: ${e=>e.spaceAround?`0 ${C.sp4}`:0};
21
+ display: flex;
22
+ flex-direction: column;
23
+ align-items: center;
24
+ &:hover {
25
+ color: ${e=>e.theme.colors.primary};
26
+ }
27
+ `,Ve=_.div`
28
+ height: 2px;
29
+ background-color: ${e=>e.theme.colors.primary};
30
+ border-radius: 1px;
31
+ position: absolute;
32
+ bottom: 0;
33
+ left: 0;
34
+ transition: left 0.35s;
35
+ &.profit_and_loss {
36
+ width: 106px;
37
+ left: 0;
38
+ }
39
+
40
+ &.profit_and_loss_by_classes {
41
+ width: 106px;
42
+ left: 0;
43
+ }
44
+ &.balance_sheet {
45
+ width: 114px;
46
+ left: 30%;
47
+ }
48
+ &.cash_flow {
49
+ width: 160px;
50
+ left: 63%;
51
+ }
52
+ `;function De({reportId:e,isSelected:t,onClick:o}){const a=s=>{switch(s){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[s];default:return console.warn("Unsupported report"),""}};return i.jsx(Ee,{"data-testid":L("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function ze({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=s=>{o?.(s)};return i.jsx(Fe,{"data-testid":L("report-switcher-container"),children:i.jsx(je,{"data-testid":L("report-switcher-content"),children:e.map(s=>s!=="profit_and_loss_by_classes"&&i.jsxs("div",{children:[i.jsx(De,{reportId:s,isSelected:t===s,onClick:a}),i.jsx(Ve,{className:`Slider ${t}`})]},`reportSegment-${s}`))})})}const k={contentContainerLeftRightMargin:new R(w[3],w[3],w[8]),contentRightPadding:new R(w[3],w[3],w[8]),tickSkelectionContainerWidth:new R(343,600,905,1240)},Ue=new R(4,4),We=new R(4,4),Ge={selectedNumberOfPeriods:(e,t)=>e?We.value(t):Ue.value(t)},Ye=_.div`
53
+ display: flex;
54
+ flex: 1 1 auto;
55
+ min-height: 100%;
56
+ flex-direction: column;
57
+ background-color: ${e=>e.theme.colors.grey4};
58
+ `,Ze=_.div`
59
+ display: flex;
60
+ flex: 1 1 auto;
61
+ flex-direction: column;
62
+ height: calc(100vh - ${C.sp10});
63
+ margin: ${e=>`${C.sp2} ${C.sp0} ${C.sp0} ${k.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
64
+ `,He=_.div`
65
+ display: flex;
66
+ width: 100%;
67
+ height: 100%;
68
+ flex-direction: row;
69
+ justify-content: center;
70
+ align-items: center;
71
+ background-color: ${e=>e.theme.colors.grey4};
72
+ `,qe=_.div`
73
+ position: absolute;
74
+ margin-top: ${e=>e.windowSize==="small"?"250px":"195px"};
75
+ `,Ke=_.div`
76
+ display: flex;
77
+ width: 100%;
78
+ height: calc(100% - 60px);
79
+ flex-direction: column;
80
+ justify-content: center;
81
+ align-items: center;
82
+ `,Je=_.div`
83
+ height: 96px;
84
+ width: 96px;
85
+ background: ${e=>e.theme.colors.background};
86
+ border-radius: 50%;
87
+ cursor: pointer;
88
+ & svg {
89
+ margin: ${C.sp5};
90
+ color: ${e=>e.theme.colors.grey1};
91
+ }
92
+ &:hover {
93
+ & svg {
94
+ color: ${e=>e.theme.colors.primary};
95
+ }
96
+ }
97
+ `,Xe=_(he)`
98
+ margin-top: ${C.sp3};
99
+ color: ${e=>e.theme.colors.hero};
100
+ `,ie=({style:e,fetchState:t})=>t==="In-Progress"||t==="Not-Started"?i.jsx(He,{style:e,children:i.jsx(fe,{size:"ExtraLarge",start:!0})}):null,S=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},z=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let s=Ge.selectedNumberOfPeriods(t,o);return a!=null&&(s=Math.min(s,a)),s};function Tt(e){const t=U(),o=W(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:s,onAdditionalBalanceSelectionChanged:l,onTimeframeSelectionChanged:p,isCompareMode:d,selectedReportAndTimeframeFetchState:n,onClickMenuIcon:g}=e,r=(x,O)=>{x!==u?.accountViewMode&&a?.(x),O&&s?.(O)};T.useEffect(()=>{if(e.fetchState==="Completed"){const x=S(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(x,e.isCompareMode,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const u=tt(e),c=y.getLocalizedStrings().reports.common,f=le(),F=f!=null&&b.hasInvestorBankerLevelAccess(f.loggedInUserRole)?"detailed":"more_detailed",N=f!=null&&b.hasInvestorBankerLevelAccess(f.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&u?.accountViewMode==="account_group"&&N.push("detailed");const[B,j]=K.useState(N.includes("more_detailed")?"detailed":"more_detailed"),E={selectedFormat:B,disabledFormatForRole:N,roleBasedClassesSelectedFormat:F,setSelectedFormat:j};if(n.fetchState==="Error"||e.fetchState==="Error")return i.jsxs(Ke,{"data-testid":L("report-page-error-reload-page"),children:[i.jsx(Je,{"data-testid":L("report-page-error-reload-icon"),onClick:e.onReloadReport,children:i.jsx(de,{})}),i.jsx(Xe,{children:c.failed})]});if(n.fetchState!=="Completed"&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"))return i.jsx(ie,{fetchState:e.fetchState});{const x=i.jsx(pe,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:u!=null&&e.dataAvailable!=null?i.jsx(xe,{defaultOptions:u,analytics:e.analytics,referrer:v(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:E,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:r,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(O,P,I)=>{l(d,O,P,I)},onTimeframeSelectionChanged:(O,P,I)=>{p?.(O,P,I)}}):i.jsx(i.Fragment,{})}}});return i.jsxs(Ye,{children:[i.jsx(ue,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:g,rightSideComponent:x,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),i.jsx(Qe,{...e})]})}}function Qe(e){const t=U(),o=W(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:s}=e,l=["month","quarter","year"],p=(r,u)=>{e.analytics?.trackCompareFilterChange(r==="this_period_vs_last_period_percent"?"percentage":"amount",v(e.selectedReport),D(e.selectedTimeframe),u);const c=Array.from(new Set(r==="this_period_vs_last_period_percent"?[...S(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(f=>f!=="this_period_vs_last_period"):[...S(e).filter.additionalBalances,"this_period_vs_last_period"].filter(f=>f!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,c,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},d=(r,u)=>{r!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(r),u&&e.onUpdateClassesToFilterOut?.(u)},n=S(e),g=a.current?.clientWidth??k.tickSkelectionContainerWidth.value(t);return i.jsxs(Ze,{windowSize:t,"data-testid":L("reports-page-content-container"),children:[i.jsx(ot,{windowSize:t,ref:a,children:i.jsx(ye,{timeframe:{allowedTimeframes:l,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:r=>{e.analytics?.trackTimeframeSwitch(D(r),v(e.selectedReport)),e.onTimeframeSelectionChanged?.(r,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:r=>{e.analytics?.trackCompareMode(r,v(e.selectedReport),D(e.selectedTimeframe));const u=S(e).filter;e.onAdditionalBalanceSelectionChanged?.(r,u.additionalBalances,u.balancesRange.numberOfPeriods)}}})}),s.fetchState==="Not-Started"||s.fetchState==="In-Progress"?i.jsx(it,{windowSize:t,children:i.jsx(ct,{children:i.jsx(me,{width:g,height:J-w[2],backgroundColor:o.colors.grey3,style:{borderRadius:C.sp2}})})}):i.jsx(at,{windowSize:t,children:i.jsx(Ce,{firstMonthOfFY:n.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:H(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:H(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(r,u)=>{e.analytics?.trackDateRangeFilterChange(v(e.selectedReport),"range filter",e.isCompareMode,Y(n.firstMonthOfFY,e.selectedTimeframe,u)),e.onThisPeriodChanged?.(u,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:r=>{const u=et(e.allTimeframeTicks,r.fromEnd);e.analytics?.trackDateRangeFilterChange(v(e.selectedReport),"range filter",e.isCompareMode,Y(n.firstMonthOfFY,e.selectedTimeframe,u.thisPeriod)),e.onCOABalancesRangeChanged?.(u)}})}),i.jsx(rt,{windowSize:t,children:i.jsx(ze,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:r=>{e.analytics?.trackPageLoaded(st(r)),r==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(r)}})}),s.fetchState==="Not-Started"||s.fetchState==="In-Progress"?i.jsx(ie,{style:{boxShadow:"none",backgroundColor:"inherit"},fetchState:s.fetchState}):i.jsxs(i.Fragment,{children:[i.jsx(ce,{report:S(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser}),b.isPAndLReport(e.selectedReport)?i.jsx(qe,{windowSize:t,children:i.jsx(we,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:d,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode})}):null]})]})}const H=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},et=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function tt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,d=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(d!=null&&d.balances.length>0){const n=p==="ascending_date"?d.balances.length-1:0;t=d.balances[n]}}const o=S(e).firstMonthOfFY,a=S(e).bookCloseDate,s=S(e).dataAvailable,l=S(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:s,timeframe:e.selectedTimeframe,additionalBalances:l,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const v=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},st=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ce=K.memo(Ie,(e,t)=>nt(e,t,["report","analytics","isCompareModeOn","isZeniUser"]));ce.displayName="Reports table";const nt=(e,t,o)=>o.reduce((a,s)=>a===!0&&q(e[`${s}`],t[`${s}`]),!0),ot=_.div`
101
+ padding-right: ${e=>k.contentRightPadding.valuePx(e.windowSize)};
102
+ `,at=_.div`
103
+ margin-top: ${C.sp3};
104
+ padding-right: ${e=>k.contentRightPadding.valuePx(e.windowSize)};
105
+ `,it=_.div`
106
+ margin-top: ${C.sp3};
107
+ padding-right: ${e=>k.contentRightPadding.valuePx(e.windowSize)};
108
+ `,ct=_.div`
109
+ display: flex;
110
+ flex-direction: row;
111
+ justify-content: flex-start;
112
+ min-height: ${J}px;
113
+ box-sizing: content-box;
114
+ width: 100%;
115
+ align-items: center;
116
+ justify-content: center;
117
+ `,rt=_.div`
118
+ margin-top: ${C.sp4};
119
+ padding-right: ${e=>k.contentRightPadding.valuePx(e.windowSize)};
120
+ `;export{Tt as default};