@zeniai/web-cockpit-ui 1.14.97-prod → 1.14.98-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 (329) hide show
  1. package/dist/assets/ACHDetailsPage-DSdNOxQ9-Cve45-FP.js +21 -0
  2. package/dist/assets/{AIPerformancePage-4v4Fkm9f-DDp0Nnzh.js → AIPerformancePage-TtdFArUl-j0kjTnVR.js} +108 -108
  3. package/dist/assets/AccountInfoPage-BVK7wWF2-D6Zwr__G.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-Dv1IPcdF-DEoji_Hm.js → AccountInfoPageContent-BXX4TyeS-SAgRb0Wy.js} +19 -19
  5. package/dist/assets/AccountLockedInfoModal-CiHVEVZY-D75r_EpP.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DYKjrPwN-CPz69IBv.js → AccountReconDetailsDrawerPage-BZsVhDyw-NNurOrkC.js} +54 -54
  7. package/dist/assets/{AccountRow-BM3xLbeh--vvIWBOQ.js → AccountRow-COxNWv3J-Dkf6Savq.js} +30 -30
  8. package/dist/assets/{AccountsPromoCardStack-CTkwARBJ-BnZnSIUo.js → AccountsPromoCardStack-BW7r2R96-BzoEoVWx.js} +30 -30
  9. package/dist/assets/AddAddressForCardDrawer-BB7h_VuN-BW-_Qu7Y.js +6 -0
  10. package/dist/assets/{AddToWalletPage-OJBvAKUj-CFKw7FE0.js → AddToWalletPage-CXhBOHda-b2nCfyTx.js} +13 -13
  11. package/dist/assets/{AgingReportsPage-n-UKn3Ei-wXkPQ4jt.js → AgingReportsPage-CX3Te0mD-BjuuVeMz.js} +10 -10
  12. package/dist/assets/{AllUserItems-BsvKEVcx-wINOI07Y.js → AllUserItems-Cd2jEIM9-DycIVbwH.js} +13 -13
  13. package/dist/assets/{ApAgingDetailPage-Duu2uAEr-BevAJ7BA.js → ApAgingDetailPage-BCBhgQDY-m3orWzJK.js} +5 -5
  14. package/dist/assets/{AppBasePage-DoCF494Z-D39xHNOF.js → AppBasePage-BRcQ7IPJ-DssY-F_Q.js} +16 -16
  15. package/dist/assets/{AppDrawerContent-DM1t0oLS-BojUJ2hW.js → AppDrawerContent-DQlHQEcs-DrKgTlSj.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-GZCo6_i2-cfSMkgCa.js → ApprovalRulesSettingsPage-Cqt8FvLJ-CEOV0Ixl.js} +6 -6
  17. package/dist/assets/{ArAgingChart-CsFDVdeO-Dzc8qLcG.js → ArAgingChart-BvAQf_dB-CCF75Uiv.js} +4 -4
  18. package/dist/assets/ArAgingDetailPage-BjvQEK0m-N2ygiYcL.js +46 -0
  19. package/dist/assets/{AttachmentView-B0d42oAf-GhjxbFZX.js → AttachmentView-e6OZT5St-CRHdzPSa.js} +6 -6
  20. package/dist/assets/{BankAccountSection-Bgdk93V0-B0tXfnFS.js → BankAccountSection-DWKYMZid-XH_pxLOm.js} +7 -7
  21. package/dist/assets/BankAccountWarningSection-neFg-P9--B7Ex5Gby.js +51 -0
  22. package/dist/assets/{BankConnectionsSettingsPage-BpwKq93l-DE6TOtQW.js → BankConnectionsSettingsPage-DLnQeHtD-CQ9CrcQ2.js} +16 -16
  23. package/dist/assets/BillDetailPage-Caang31I-CV8BSbsx.js +266 -0
  24. package/dist/assets/BillPayApprovalRuleDetailPage-4n9jmsl3-C-Id93Y1.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-BPX-ygl8-NB7YIybj.js +241 -0
  26. package/dist/assets/BillPayPromoPage-KojRs3th-CbM1NPfP.js +84 -0
  27. package/dist/assets/{BillPaySetUpPage-DRCjyEfB-y3RM5Wnt.js → BillPaySetUpPage-CneIMbul-lrmOziwC.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-CdYb74V7-DhBGANyX.js → BillingSettingsPage-35KDGxi0-Ct237R_x.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-D8EGfY5P-ChlGAVqg.js → BillsBulkReviewDrawerPage-B2SeSM_K-CBWl1wuN.js} +1 -1
  30. package/dist/assets/{BoxItem-WOrvBzns-C0M7yHSW.js → BoxItem-BGDuiQll-BzndiGjI.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CbqJIVpz-Blmi37QI.js → BusinessVerificationPage-GZnJ9G9I-Crwn_TZB.js} +10 -10
  32. package/dist/assets/{CardNumberSubText-DBOH0_yP-BifRrded.js → CardNumberSubText-COHmqgEx-BK8P_Xt5.js} +8 -8
  33. package/dist/assets/{CashbackDetailPage-D-kXy6LW-CUw2WCZU.js → CashbackDetailPage-DvA_0POP-D_6kuYkj.js} +26 -26
  34. package/dist/assets/{ChargeCardDetailPage-BQnJsfn5-DsJS5aQJ.js → ChargeCardDetailPage-DF69jsTG-COjz_Wle.js} +244 -244
  35. package/dist/assets/ChargeCardListPage-BaxxkyMM-Tr5RRdcf.js +412 -0
  36. package/dist/assets/{ChargeCardListTable-EGkwcy7i-DiZgMWD8.js → ChargeCardListTable-BEYWfP5G-1q8VKxw1.js} +67 -67
  37. package/dist/assets/ChargeCardPaymentHistoryPage-5dwl-3gt-Cg-FZFeP.js +534 -0
  38. package/dist/assets/ChargeCardPromoPage-DXHFY90F-COAtEu6_.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-DRzB7Rt4-B0jPtU5s.js → ChargeCardSetupPage-BsTAJGSf-BVABxQAh.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-C3NxKjmB-COhBhLbu.js → ChargeCardStatementsPage-BwuOooT4-Ds9c5zWv.js} +8 -8
  41. package/dist/assets/{CheckDepositDrawerPage-ClxKj2js-CzmiZWyu.js → CheckDepositDrawerPage-CC3EUXpO-Fr7mH3zN.js} +17 -17
  42. package/dist/assets/{CollapsableReportTable-xkNXkjfh-DUsbxsn0.js → CollapsableReportTable-Bju2JSCg-BqWf1iHn.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-BtUBatbQ-ESf3b9io.js → CompanyOfficerDetailsSection-CtHtINKb-ChsViTKu.js} +30 -30
  44. package/dist/assets/{CompanyPassportCard-BOxM716U-CBl4xY58.js → CompanyPassportCard-ClihOV6I-659ckUvl.js} +7 -7
  45. package/dist/assets/{CompanyPassportPage-DzE7sm8S-CP2cAEyd.js → CompanyPassportPage-Bzbp9vtj-DZ2qH-RA.js} +40 -40
  46. package/dist/assets/{CompleteProfile-BjGSPASa-BekkYj8C.js → CompleteProfile-C88rpvIR-CPwa_ZcH.js} +3 -3
  47. package/dist/assets/ConfettiBurst-fYnxwqdQ-9H12a4VU.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-WQeDCj-E-CqOIBaOE.js → CreateOrEditVendorPage-DJWcJCPR-VpXOBLk1.js} +20 -20
  49. package/dist/assets/CreditCardPaymentDrawerPage-nshXhNlE-CfhRwqnV.js +227 -0
  50. package/dist/assets/{CurrencySelectField-AjAWhg6e-CigJMeIM.js → CurrencySelectField-9MMlAXHh-7T5GvQvy.js} +4 -4
  51. package/dist/assets/CustomerOnboardingActivationPage-J6mQ99Q--BiV07KZX.js +88 -0
  52. package/dist/assets/CustomerOnboardingContainerPage-DHYXaV1V-BTZJkTlt.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-Dd8JwrJ4.js → CustomerOnboardingDetailPageSkeleton-EBEAYH3x-DVqWwomd.js} +15 -15
  54. package/dist/assets/CustomerOnboardingNoStepsPage-_P1XRJy7-BBpsfMtj.js +66 -0
  55. package/dist/assets/{CustomerOnboardingPage-CvN9Jrdy-CNiZlnRU.js → CustomerOnboardingPage-BWvGF8wk-Gc8v-oNy.js} +4 -4
  56. package/dist/assets/CustomerOnboardingProductSuitePage-BWN72Maw-CVrAAnDn.js +202 -0
  57. package/dist/assets/{Dashboard-_o0Ftdv8-bzTTlIl9.js → Dashboard-Zq5BpBhF-C6unAaBQ.js} +55 -55
  58. package/dist/assets/{DashboardReportPage-Cu5wqWkj-Bwefxm1d.js → DashboardReportPage-Pie-FQ1e-CpPHLX-r.js} +20 -20
  59. package/dist/assets/DashboardSidebarBackgroundAnimation-BCWBgFUn-C6Sp2Ncg.js +12 -0
  60. package/dist/assets/{DepositAccTransactionItem-BOPK7-7P-ARIeWeD8.js → DepositAccTransactionItem-C6o7UraM-ERw30shi.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-oj9tntbI-PSc8H5UQ.js → DepositAccTransactionListPage-DWIzj9EC-C4ETOwPX.js} +4 -4
  62. package/dist/assets/{DomesticWireDetailsPage-FGdEilUB-C0tlxZD1.js → DomesticWireDetailsPage-BbuaFhlm-B7VB8oiV.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-c57lEf_V-CaSZtLmQ.js → DownloadOverlay-smXqu_-_-DbNqWY1P.js} +39 -39
  64. package/dist/assets/{DrawerPage-inbhWwND-CRSXqSiG.js → DrawerPage-C-NGhaFc-Bdiyy2BL.js} +18 -18
  65. package/dist/assets/EditPeoplePage-Ck6tbODS-2oTO0N4I.js +55 -0
  66. package/dist/assets/EditReimbursementDetailPage-CYCB7XUZ-Bkc4_Xh-.js +865 -0
  67. package/dist/assets/EntityDetailPage-DEzsWzSU-C1IWQ2YR.js +18 -0
  68. package/dist/assets/{EntitySummarySection-CHgrPo86-Bgj0_OMe.js → EntitySummarySection-D7ui3VxW-BWyvfwWL.js} +9 -9
  69. package/dist/assets/{ExpenseAutomationOverviewPage-QZT_UFXf-BUT86XQ8.js → ExpenseAutomationOverviewPage-Cci1pEY4-BQvp8jPr.js} +27 -27
  70. package/dist/assets/{ExpenseAutomationPage-Y7V_Z8rd-CI8NZCiu.js → ExpenseAutomationPage-DsPGEQpL-CcB9eHac.js} +63 -63
  71. package/dist/assets/{ExpressPayPage-CIp_R6ZQ-CvWnqOQy.js → ExpressPayPage-ddPMg7wE-Tlo0T7f7.js} +10 -10
  72. package/dist/assets/{FeaturePreviewPage-qsUO3mUu-CTCwVSWi.js → FeaturePreviewPage-B7rx89MJ-NE6QqmUF.js} +3 -3
  73. package/dist/assets/{FollowStepsSection-ebmR-eLP-CMNBhpU0.js → FollowStepsSection-WUNvyjJh-Bpyevbi9.js} +49 -49
  74. package/dist/assets/{GlobalReviewListPage-9V-xoqvs-O_20lisG.js → GlobalReviewListPage-CrEL8cxP-BVjE_r1i.js} +14 -14
  75. package/dist/assets/{InformationCardStack-DnB7TmOk-modJbuEh.js → InformationCardStack-cYN7bwE3-B7UR3-b4.js} +8 -8
  76. package/dist/assets/{InsightsCardStack-BBczCYEz-kqj1q15I.js → InsightsCardStack-CAuhoPST-MWY5O8lc.js} +12 -12
  77. package/dist/assets/InsightsSection-9xZ9BN4e-D22swiZq.js +27 -0
  78. package/dist/assets/{IntegrationsSettingsPage-CByj2tO4-rLhQ4m_d.js → IntegrationsSettingsPage-CBqEJpyq-Bl--bqo-.js} +10 -10
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-4-pl1ozv-DMktsSn5.js → InternationalWireSwiftDetailsPage-Bg2_G0O4-DwQXwZkY.js} +17 -17
  80. package/dist/assets/{InternationalWireVerificationPage-kIajgPZt-CyPkMVug.js → InternationalWireVerificationPage-BdaKAePs-BIYMiNd6.js} +26 -26
  81. package/dist/assets/{InviteFormPage-XsnZcAvb-BDSiLBrK.js → InviteFormPage-a7CtHDQi-gCSqizmu.js} +24 -24
  82. package/dist/assets/{InvitePageListView-HfsehyxK-Dbze_ndt.js → InvitePageListView-D0flsJMi-CW5tcQ7p.js} +78 -78
  83. package/dist/assets/InvitePeoplePage-xJZ4CmaB-D0fUyZVv.js +12 -0
  84. package/dist/assets/{InvoiceUploadSection-DPd4VmqZ-BgaxJ8xK.js → InvoiceUploadSection-D6gMuygS-CT-0_4kq.js} +4 -4
  85. package/dist/assets/{IssueChargeCardPage-xbfFhV0O-4bVN4eFr.js → IssueChargeCardPage-_zy-SJN0-qq3fKGX-.js} +34 -34
  86. package/dist/assets/{LabeledAddressValue-CB_KH7v5-ncrHsqJe.js → LabeledAddressValue-CXqpyfBQ-40JlhWdQ.js} +2 -2
  87. package/dist/assets/{LabeledAddressValueField-Bt41wdNQ-DxwGWMyO.js → LabeledAddressValueField-D-0wb98p-CSTw9NrL.js} +4 -4
  88. package/dist/assets/LabeledControlledCheckBoxField-CcPruRSO-BooOk31f.js +16 -0
  89. package/dist/assets/{LabeledCreatableSingleSelectField-fycRE7PX-CE-LJYdn.js → LabeledCreatableSingleSelectField-B-OgiRpS-D789AeMD.js} +4 -4
  90. package/dist/assets/LabeledDocumentField-Bo6fnkUs-BetKwcOR.js +41 -0
  91. package/dist/assets/{LabeledDropDownFormattedTextField-DGb_bDyp-DiK-EgzR.js → LabeledDropDownFormattedTextField-D54g8qxW-Cnlp1a42.js} +7 -7
  92. package/dist/assets/{LabeledText-yhm8qxrA-qY3EChSX.js → LabeledText-BJi28Cmu-KVGobttz.js} +3 -3
  93. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-Bl2xAZ3Z.js → LabeledUserSingleSelectWithSubtitlesField-Dgn_WK0p-B4rGn1v8.js} +23 -23
  94. package/dist/assets/{LabeledZeniRolesDropDownField-DGkU72cd-BxECYaiO.js → LabeledZeniRolesDropDownField--9AjGtEh-1hSD4x8B.js} +25 -25
  95. package/dist/assets/LinkJETransactionPage-CejrEmB0-M4S6E6Jj.js +98 -0
  96. package/dist/assets/{LockCardPage-DaVzuRMw-BjKCklnQ.js → LockCardPage-4ihNCAhG-Zb-UDpxz.js} +21 -21
  97. package/dist/assets/{LowBalancePopup-Dd9HLWlh-ic5OOxEW.js → LowBalancePopup-YdUL24Wb-PfAaWR1_.js} +4 -4
  98. package/dist/assets/MagicLinkACHDetailsPage-BNATDZtB-DsiI-0KM.js +1 -0
  99. package/dist/assets/MagicLinkDomesticWireDetailsPage-ZGyx0g5t-8Tuy5QId.js +1 -0
  100. package/dist/assets/MagicLinkInternationalWireDetailsPage-CP5KtUSE-HiNxzZ5H.js +1 -0
  101. package/dist/assets/{MagicLinkSuccessPage-DbhdGmhh-B73Nce8i.js → MagicLinkSuccessPage-B-YTZWYj-DKWdsZyd.js} +5 -5
  102. package/dist/assets/{MagicLinkTitleSection-Bx92291D-UQdVswCk.js → MagicLinkTitleSection-RHv_GuEq-c-uPcRfj.js} +4 -4
  103. package/dist/assets/MailingDetailsSection-DAryNhi6-DIXrN7jG.js +21 -0
  104. package/dist/assets/Menu-IHf_FfRX-LPFIlYqd.js +17 -0
  105. package/dist/assets/{MyBankConnectionsSettingsPage-Dn9AT8p1-CQuV-mw5.js → MyBankConnectionsSettingsPage-CryrCaA2-C1O3R525.js} +4 -4
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-DrQu6s7j-KqAM0dkZ.js → MyPendingActivationChargeCardListPage-DmmwfwjV-Dzs7maAE.js} +1 -1
  107. package/dist/assets/{MyProfileSettingsPage-CBvjEd7r-6KgZiUr4.js → MyProfileSettingsPage-BspAqqsh-B3zEQ3j1.js} +10 -10
  108. package/dist/assets/{NavBarWithPicker-aXn2QYh1-CW3bwugc.js → NavBarWithPicker-C7xr7tTs-CsJWjiOL.js} +5 -5
  109. package/dist/assets/{NavigationArrow-JLUXaIrz-ChgEui-v.js → NavigationArrow-rBOsZ92g-CvJ7c17R.js} +8 -8
  110. package/dist/assets/{NavigationDots-B0_dDbgu-C4KMeusv.js → NavigationDots-CautbD-g-AEb3JA6J.js} +4 -4
  111. package/dist/assets/{NewGlobalMerchantPage-B_019EtP-BHwnIknQ.js → NewGlobalMerchantPage-DD4raaWT-0NjfCgam.js} +12 -12
  112. package/dist/assets/NoDataChart-58kSyixy-CZ5Rv3U9.js +26 -0
  113. package/dist/assets/NoDataTable-aDUu8tCI-CN9poHgG.js +8 -0
  114. package/dist/assets/{NotFoundPage-BEya4LS2-ipqWAZiD.js → NotFoundPage-D-nIKeoL-DS39BiNV.js} +7 -7
  115. package/dist/assets/{NotificationSettingsPage-C9SjRKCu-BYu7qv5i.js → NotificationSettingsPage-DP3xTLvr-C8krffT3.js} +23 -23
  116. package/dist/assets/NotificationsListConfig-CAW8P9gG-CmdQuS9n.js +1 -0
  117. package/dist/assets/{NotificationsPage-FJHx_WBG-DyZ6LFEY.js → NotificationsPage-DkDGBzhT-B-IU27Zt.js} +49 -49
  118. package/dist/assets/{OpExByVendorPage-Dxk68R6U-2aIAkF5L.js → OpExByVendorPage-CtcdC3f9-DjyRt_lN.js} +12 -12
  119. package/dist/assets/{OverlayContainerPage-Daz3A7cI-1UM1P3Cu.js → OverlayContainerPage-Daz3A7cI-D0iblwqz.js} +1 -1
  120. package/dist/assets/PandLWithForecastPage-CpCiLOIl-DtQtxcyB.js +107 -0
  121. package/dist/assets/{PaymentAccountSetupBillingAddressSection-s9EEHxoG-BpHo8ieQ.js → PaymentAccountSetupBillingAddressSection-BjcqKBLG-BtuRZNcH.js} +8 -8
  122. package/dist/assets/{PeoplePage-DN5VtG7Q-C6fdxHpv.js → PeoplePage-DCI7v6ru-BQGxB0UL.js} +29 -29
  123. package/dist/assets/Preview-D56XCw0A.js +1 -0
  124. package/dist/assets/{ProductsCarousel-6gthLCkf-DhMPQjiH.js → ProductsCarousel-Dqm1bC2_-C9nhPtyf.js} +8 -8
  125. package/dist/assets/{PromoBaseCards-CzPzj69A-C2WRMyFn.js → PromoBaseCards-dqE7GIJ6-CjPZd9YZ.js} +6 -6
  126. package/dist/assets/{QBOConnectionDialog-BFy0lMZd-0lPmnE7v.js → QBOConnectionDialog-CGPNOde4-iJ0HQZcD.js} +6 -6
  127. package/dist/assets/{QBOSetupSection-DcLYyQ5m-ZCZhtAI0.js → QBOSetupSection-HhIe91hw-09HBN8uJ.js} +16 -16
  128. package/dist/assets/ReimbursementApprovalRuleDetailPage-Cx24E4je-CUe9BrFq.js +32 -0
  129. package/dist/assets/ReimbursementApprovalRulesPage-DRAkofwN-Cw1wl-sh.js +243 -0
  130. package/dist/assets/ReimbursementDetailPage-DToZctqy-CIF8fvzJ.js +314 -0
  131. package/dist/assets/{ReimbursementPromoPage-MweW-4DO-CSLymEjG.js → ReimbursementPromoPage-BZoZAydM-_dTEqW97.js} +10 -10
  132. package/dist/assets/{ReimbursementSetUpPage-BD2LWlbW-CyzWYNRN.js → ReimbursementSetUpPage-C8Oat8g_-oUMPzcZW.js} +10 -10
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DV_PLm_g-n5rWE4gl.js → ReimbursementsBulkReviewDrawerPage-BSXV7fzi-DApiFQ6Z.js} +1 -1
  134. package/dist/assets/{ReloadCard-9KpQCrce-qdtANGd1.js → ReloadCard-BMn_7fNI-DobUmKfH.js} +5 -5
  135. package/dist/assets/{ReportTableViewSelector-BPliEsuo-CYYykdHh.js → ReportTableViewSelector-BE2BuEqj-Cv65zIMR.js} +8 -8
  136. package/dist/assets/{ReportsPage-h2DAaQfK-DeTpSbG7.js → ReportsPage-C4HDLBDq-nmW__s9z.js} +14 -14
  137. package/dist/assets/{RevenueChart-DY2s_upY-BLa8DFO5.js → RevenueChart-q15U89i8-DTxTOafZ.js} +2 -2
  138. package/dist/assets/{ReviewDetailsPage-BiYxRnvA-C6idEm-U.js → ReviewDetailsPage-4mhC2jOb-D75AxfOq.js} +20 -20
  139. package/dist/assets/{ReviewOverlay-BvPN7IKD-C6bOkNqU.js → ReviewOverlay-Co22Cju1-u5iV88jr.js} +12 -12
  140. package/dist/assets/RoleWithToolTip-DUEwWP4s-ChXNLhUR.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlXqz1QQ-CKa9Hbui.js → ScheduleDetailsFixedAssetsPage-DkKSZ0sJ-zAFG0_v4.js} +13 -13
  142. package/dist/assets/{ScheduleDetailsPage-DebosLND-CEznnGQ1.js → ScheduleDetailsPage-B98XJtoQ-DL_QucDj.js} +3 -3
  143. package/dist/assets/{ScheduleSequenceTable-Dd4Ep_c0-c6Oocp5D.js → ScheduleSequenceTable-DXLxjeWw-DWriUjIB.js} +36 -36
  144. package/dist/assets/ScreenRoutes-BRmamOlw.js +201 -0
  145. package/dist/assets/{SetUpAccountSection-Dhb8A0Oe-BzBubANR.js → SetUpAccountSection-AZk8_IC3-BgRTrYL7.js} +8 -8
  146. package/dist/assets/SignIn-C5PcCpLW-Da05HaL3.js +480 -0
  147. package/dist/assets/{SignInScreen-BvNXHkCt.js → SignInScreen-DJh1xRdL.js} +1 -1
  148. package/dist/assets/SpendManagementListViewPage-BmZeAl5K-BgHQbDY0.js +134 -0
  149. package/dist/assets/SpendManagementPerTabPage-BfJ_icLF-CGfN-F05.js +785 -0
  150. package/dist/assets/SpendManagementSection-DoJcpweo-BSx0Jax5.js +246 -0
  151. package/dist/assets/StatementItem-Bw66NYeY-DcIvhMqc.js +31 -0
  152. package/dist/assets/{StatementsPage-DVR5LhTi-Bx23GXwj.js → StatementsPage-CBIa00EK-BjIWTE3I.js} +3 -3
  153. package/dist/assets/{StatusSwitcher-Cy5ITFgi-VNfYnDC0.js → StatusSwitcher-Blc3-MDg-B12KNYTc.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-DhsES2OW-4AOmN1CG.js → SubTabSwitcher-3oir5lzq-Cmzice7W.js} +4 -4
  155. package/dist/assets/{SummaryCard-Byv4Hw8Q-sFz6AI7k.js → SummaryCard-DO09QLUp-DPmkfJxO.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-CVXMOPf2-vgAaxjt0.js → TaskManagementPage-C_EZJRtM-P8DErI3a.js} +42 -42
  157. package/dist/assets/TimeRangeSwitcher-mYZQR43P-BLWBlyWb.js +64 -0
  158. package/dist/assets/{TimeframeSwitcher-BK-qliOX-Cz_yjhY_.js → TimeframeSwitcher-BsGp8KOv-CTY5_Ouk.js} +6 -6
  159. package/dist/assets/TimeframeSwitcherWithToggle-wwIX-Q6T-DmtPgL2u.js +31 -0
  160. package/dist/assets/{TopExCard-o4Q3ze1b-Bq0fQQYZ.js → TopExCard-Cn8iW3fO-DMUR1qBk.js} +12 -12
  161. package/dist/assets/{TopExDetailPage-BsCwwwDi-CGh1No0Z.js → TopExDetailPage-BS8qCkLq-Cq17vLoi.js} +12 -12
  162. package/dist/assets/{TransactionDetailPage-rpCG65yC-Cx6XApqd.js → TransactionDetailPage-CUeVImfA-D9txujQI.js} +36 -36
  163. package/dist/assets/{TransactionList-YI4oZaim-uM5Py_qt.js → TransactionList-CnjoEn7K-D2hvg7ek.js} +15 -15
  164. package/dist/assets/{TransactionListBig-D_Jw9Ip2-DuqFkfMY.js → TransactionListBig-xVKV1MCm-GtEvft_N.js} +12 -12
  165. package/dist/assets/TransactionListPage-DDNtUv3t-Dwe7tcE5.js +35 -0
  166. package/dist/assets/TransactionVendorDetailPage-BTufZurh-CGfPDjZ_.js +80 -0
  167. package/dist/assets/{TransferDrawerPage-BnEVH7Mc-DlSarteK.js → TransferDrawerPage-uBmvyc-P-CFJl7D9L.js} +34 -34
  168. package/dist/assets/{TreasuryOverviewPage-C927Rdkg-BOPfHNG5.js → TreasuryOverviewPage-DJcUyLa4-Cd3rdx_U.js} +47 -47
  169. package/dist/assets/{TreasuryPromoPage-C6D3bF2f-JvACTcvz.js → TreasuryPromoPage-DymCO6nN-Dc1dLp52.js} +14 -14
  170. package/dist/assets/{TreasuryStatementsPage-BE54gWl6-CUcMhAZw.js → TreasuryStatementsPage-YEgI38zU-DOHp07qg.js} +4 -4
  171. package/dist/assets/{TreasuryTaxLetterPage-BaHut8Wc-1cvqLaEx.js → TreasuryTaxLetterPage-CYO6JXCO-fy_exAGm.js} +3 -3
  172. package/dist/assets/{TrendChart-BI4Tz813-B65jbt3X.js → TrendChart-Dzc9yPKs-Blv6Qzrf.js} +4 -4
  173. package/dist/assets/{TrendWithTransactions-BicIDSlC-DJG4vT11.js → TrendWithTransactions-C2HIrxbU-BSlQs2Tq.js} +7 -7
  174. package/dist/assets/{UncategorizedAccountsMappingPage-sbn4Sdr2-ESzm24ii.js → UncategorizedAccountsMappingPage-CN3CI6bw-zjOv8nCW.js} +13 -13
  175. package/dist/assets/{UnitIntegrationPage-CZUyjeh5-BDON8L6z.js → UnitIntegrationPage-EaVWz4pX-CbKtqluY.js} +11 -11
  176. package/dist/assets/UploadAdditionalDocumentOverlay-DIL6E7Sd-BEDKH1e3.js +38 -0
  177. package/dist/assets/Vendor2FAPopup-BxAm0k92-Dk5tVOzX.js +1 -0
  178. package/dist/assets/VendorACHDetailsPage-DF0jHzqw-CNLQ8AnP.js +1 -0
  179. package/dist/assets/{VendorDetailPage-CLFKkF8I-yvKO1ezo.js → VendorDetailPage-C_B_CmoV-DZeP35Np.js} +87 -87
  180. package/dist/assets/VendorDomesticWireDetailsPage-a52VbRia-DcoKPqJx.js +1 -0
  181. package/dist/assets/{VendorFiling1099EditablePage-CrWrhHZl-tLQrFqSy.js → VendorFiling1099EditablePage-Dzgzl_4E-VsmZ5Vuv.js} +17 -17
  182. package/dist/assets/{VendorFirstReviewPage-C6MnbIan-Dv6bIyUm.js → VendorFirstReviewPage-mfIvCyFK-ApwBXjUo.js} +60 -60
  183. package/dist/assets/{VendorInternationalWireDetailsPage-CzPRK4E2-Bmm3HDq6.js → VendorInternationalWireDetailsPage-CNs1VqUa-DbFJLYLp.js} +17 -17
  184. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BoEZ09xC-egxnMP7A.js +1 -0
  185. package/dist/assets/{VendorsAccountsSection-CVh1n81R-uZ58tDY_.js → VendorsAccountsSection-B6DkSP2a-Ct-pliYw.js} +5 -5
  186. package/dist/assets/{VerifyDevice-BHocExfO-CSFxm3TR.js → VerifyDevice-Cu9P83rS-BlGa7yZF.js} +7 -7
  187. package/dist/assets/{VideoPlayer-9rYRtSLf-Dult1Fhb.js → VideoPlayer-Dml6r7Q7-CtFMcnbA.js} +2 -2
  188. package/dist/assets/{VideoPopup-D1o92dj6-MjTgzb_z.js → VideoPopup-B7E5ZfFp-BvZy2q4i.js} +4 -4
  189. package/dist/assets/{WarningsDrawerPage-CzufXgaN-B_XgGmYw.js → WarningsDrawerPage-BZU8XDHH-Djgf6BN0.js} +3 -3
  190. package/dist/assets/{ZeniAccountDetailPage-ZZ3Ra-Jf-zM0FujN3.js → ZeniAccountDetailPage-Do5LJYN4-DOVBM5Q5.js} +31 -31
  191. package/dist/assets/{ZeniAccountListViewPage-Cxid0mfh-BYfNam3f.js → ZeniAccountListViewPage-Be5rl4e6-BE0wkZ9j.js} +10 -10
  192. package/dist/assets/ZeniAccountNavBarPieces-0h-vfuVY-BqB9OPYl.js +14 -0
  193. package/dist/assets/{ZeniAccountPromoPage-YIYFkPIB-BiUYWTug.js → ZeniAccountPromoPage-BMULic13-C4Ac4YqS.js} +22 -22
  194. package/dist/assets/{ZeniAccountSetupPage-BJ9UJ0dP-BdsjjTvD.js → ZeniAccountSetupPage-D_doc0Sf-BchKN68c.js} +1 -1
  195. package/dist/assets/{ZeniCopyright-CztmWsFm-zaYwj_At.js → ZeniCopyright-CDfvakjf-8KnokS3w.js} +1 -1
  196. package/dist/assets/{ZeniTransferAmountSlider-g9qU5Lsq-BvNtSqmK.js → ZeniTransferAmountSlider-BdZ5l3Hh-C3Uey-AS.js} +7 -7
  197. package/dist/assets/{add-to-wallet-DgdBD8_G-YEDUG2x7.js → add-to-wallet-DgdBD8_G-Bp_adk0W.js} +1 -1
  198. package/dist/assets/{analytics-BoRXOtAO.js → analytics-GoB8GGlk.js} +1 -1
  199. package/dist/assets/{analyticsHelper-D4lKCWjQ-FgQaBGwb.js → analyticsHelper-C164AjRf-tG0aq5YR.js} +1 -1
  200. package/dist/assets/analyticsHelper-OMYXGOV0.js +1 -0
  201. package/dist/assets/{arrow-south-east-round-PEovUgvH-BYP2VrYw.js → arrow-south-east-round-PEovUgvH-BlptIYjS.js} +1 -1
  202. package/dist/assets/{auto-transfer-rule-mbafm5D3-DgX7DrI4.js → auto-transfer-rule-mbafm5D3-DNmdc0t7.js} +1 -1
  203. package/dist/assets/{chartTypes-BPPSjkhb-CyAt9WF3.js → chartTypes-DQ1OffIu-Bo_aesHa.js} +1 -1
  204. package/dist/assets/{commonDimensions-Ds75pRzR-BXTMRgCR.js → commonDimensions-j5_IHOmP-jvW6K-um.js} +1 -1
  205. package/dist/assets/{constants-DsfqyjAS.js → constants-DTxI1rHn.js} +1 -1
  206. package/dist/assets/{core-CQbgucwW.js → core-cG0U1y2d.js} +2 -2
  207. package/dist/assets/{dash.all.min-BcqJ6chU.js → dash.all.min-CKz_ZRDI.js} +1 -1
  208. package/dist/assets/{detailCommon-DdZdfmYT-BjwhwBDl.js → detailCommon-BdYIBs8o-CJ5ceH6M.js} +6 -6
  209. package/dist/assets/downloadPdf-BduTAGPj-DUom1tyc.js +1 -0
  210. package/dist/assets/{empty-CY7eiPCo.js → empty-DAIP1XxB.js} +1 -1
  211. package/dist/assets/empty-D_oWKko5.js +1 -0
  212. package/dist/assets/epic-4bGyY7Fz.js +2 -0
  213. package/dist/assets/{gift-box-Cmt9OgIZ-BnIAquGb.js → gift-box-Cmt9OgIZ-CTtI5cXz.js} +1 -1
  214. package/dist/assets/{graphic-no-data-l-DU4J8fDt-zw0ykiiU.js → graphic-no-data-l-DU4J8fDt-PUQeicgl.js} +1 -1
  215. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BfGsDchu.js → graphic-no-data-net-burn-l-CzmycA0m-BwRajxvj.js} +1 -1
  216. package/dist/assets/{handshake-BPg58FML-BTgZLPD2.js → handshake-BPg58FML-BXfsCAUf.js} +1 -1
  217. package/dist/assets/{empty-339TQKSU.js → index-BMQnSjFr.js} +1 -1
  218. package/dist/assets/{index-bSJ1DrDa.js → index-BqrFe7eC.js} +1 -1
  219. package/dist/assets/{index-DtO5gDKt.js → index-CO_Updpp.js} +4418 -4410
  220. package/dist/assets/{index-CfECj9aZ.js → index-CpulHfxu.js} +1 -1
  221. package/dist/assets/index-D4nV_3XK.js +1 -0
  222. package/dist/assets/{index-BmS8uh0s.js → index-DVGnYxP0.js} +1 -1
  223. package/dist/assets/{index-Bh8od1Dv.js → index-uRSEmDsl.js} +1 -1
  224. package/dist/assets/{lexical-C_NRfmyx.js → lexical-CUq6kk0g.js} +1 -1
  225. package/dist/assets/{liveblocks-DT2vn74k.js → liveblocks-BOlC_Koo.js} +1 -1
  226. package/dist/assets/{lottie-CJgUcH_y.js → lottie-DQ5EyuJ6.js} +2 -2
  227. package/dist/assets/mapLoadingInProgressToTreeNode-kWMAzMb3-CMOJHu7q.js +1 -0
  228. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CSuXPDoO-BSS8TRaL.js +1 -0
  229. package/dist/assets/mapSpacerToTreeNode-BjnjpyM6-BNLh9WdA.js +1 -0
  230. package/dist/assets/mapTimeframeBalancesToTreeNode-CaRKUf6w-8AEXCCet.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-XslT-q64-Q3w1WkcY.js +1 -0
  232. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-BItBTBN2.js +1 -0
  233. package/dist/assets/{mui-MIYQj4aF.js → mui-ByF8ZmHV.js} +1 -1
  234. package/dist/assets/{page-detail-CWX5S47F-2WFsC4V9.js → page-detail-CWX5S47F-C2KjOx45.js} +1 -1
  235. package/dist/assets/{radio-default-CiSgisfh-Be1M1Tqp.js → radio-default-CiSgisfh-B7-vB3nP.js} +1 -1
  236. package/dist/assets/{react-_5_wKPfz.js → react-B1eYDq6e.js} +3 -3
  237. package/dist/assets/{react-s6BDxHNe.js → react-B20ZDkLv.js} +2 -2
  238. package/dist/assets/{react-CcsnnB7v.js → react-B3-oq61_.js} +2 -2
  239. package/dist/assets/{react-Cd5Vjf1M.js → react-BU_tzuye.js} +1 -1
  240. package/dist/assets/{react-A0ha147_.js → react-CeCukAHo.js} +1 -1
  241. package/dist/assets/{react-HhXes7kc.js → react-D74rpLXu.js} +1 -1
  242. package/dist/assets/{react-CsSpGKpA.js → react-iY_JqSpg.js} +2 -2
  243. package/dist/assets/{react-DurYqW_R.js → react-osFWCkxJ.js} +2 -2
  244. package/dist/assets/{recharts-Ca44ZuG6.js → recharts-C9z9JCsM.js} +1 -1
  245. package/dist/assets/{sentry-BA2-4jVY.js → sentry-DdXOXL3j.js} +2 -2
  246. package/dist/assets/{shield-DOlUxcFf-CAAyiSZE.js → shield-DOlUxcFf-hMFlex27.js} +1 -1
  247. package/dist/assets/toCOABalancesWithID-BA4WkU1y-CDNy4Vu0.js +1 -0
  248. package/dist/assets/toChartData-DrvhJgTD-N2b3lY8k.js +1 -0
  249. package/dist/assets/{uploadAttachment-B4ddYCCL-DjvJv31V.js → uploadAttachment-DiJJciQx-DORmL_G6.js} +27 -27
  250. package/dist/assets/{uploadReceipts-CPw64UYa-CBWMAKMK.js → uploadReceipts-CPw64UYa-CIYZXcqS.js} +1 -1
  251. package/dist/assets/{url-BDky7-FA.js → url-DnfeNFje.js} +1 -1
  252. package/dist/assets/{url-CTUDUfsx.js → url-PLN9h9fH.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-DkULBMjI.js → useLongPress-GCK2COYQ-aie8BHVS.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-DEmztJwW.js → usp-line-BBd1wKwW-nbZRH-xL.js} +1 -1
  255. package/dist/assets/{utils-4_IeBx6L.js → utils-BMrfBn9K.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-DQjAbQ-W.js → zeni-epic-state-BiQIJCwr.js} +32 -32
  257. package/dist/index.html +1 -1
  258. package/package.json +4 -4
  259. package/dist/assets/ACHDetailsPage-BRWOdhMx-DY2ph-xS.js +0 -21
  260. package/dist/assets/AccountInfoPage-Ca_vKG58-Dl8kMMWb.js +0 -18
  261. package/dist/assets/AccountLockedInfoModal-CEk5d9hq-D__Hm0k3.js +0 -59
  262. package/dist/assets/AddAddressForCardDrawer-DfOyebHX-ByFFgdZ1.js +0 -6
  263. package/dist/assets/ArAgingDetailPage-CaOr6vAU-zKDTGoif.js +0 -46
  264. package/dist/assets/BankAccountWarningSection-DMRmF2yM-DQNP-zu1.js +0 -51
  265. package/dist/assets/BillDetailPage-BG7FhHEq-DTAFxDZ0.js +0 -266
  266. package/dist/assets/BillPayApprovalRuleDetailPage-BAK1Gfko-D2QG1AC2.js +0 -27
  267. package/dist/assets/BillPayApprovalRulesPage-DiCNUU-G-D2oNTsQU.js +0 -235
  268. package/dist/assets/BillPayPromoPage-aGKOv8Ur-6uOlfu32.js +0 -84
  269. package/dist/assets/ChargeCardListPage-130ILwkr-B_qCS-VF.js +0 -412
  270. package/dist/assets/ChargeCardPromoPage-BwqrXrY--DR9cG9Eg.js +0 -222
  271. package/dist/assets/ConfettiBurst-1rYKpbAj-BhmXWPWP.js +0 -1
  272. package/dist/assets/CreditCardPaymentDrawerPage-Q12y6HMX-CyTpkvYH.js +0 -224
  273. package/dist/assets/CustomerOnboardingActivationPage-BJhw-PvI-OW0eO0a-.js +0 -88
  274. package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-BqnO4Zie.js +0 -1
  275. package/dist/assets/CustomerOnboardingNoStepsPage-CNni6chX-D7zzt3qu.js +0 -66
  276. package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-DegxuZY6.js +0 -202
  277. package/dist/assets/DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-DK87Pqsf.js +0 -12
  278. package/dist/assets/EditPeoplePage-DJthuIP4-DQPn7OCp.js +0 -55
  279. package/dist/assets/EditReimbursementDetailPage-Bt7XKq5h-CQoNLfO9.js +0 -865
  280. package/dist/assets/EntityDetailPage-DbTiF9Hs-CJ1u3V_P.js +0 -18
  281. package/dist/assets/InsightsSection-BTXj5WUe-Cfk7Eh1Q.js +0 -27
  282. package/dist/assets/InvitePeoplePage-DrBtwpMH-BSPb76pb.js +0 -12
  283. package/dist/assets/LabeledControlledCheckBoxField-Btw_zwzy-C3uGZBkT.js +0 -16
  284. package/dist/assets/LabeledDocumentField-C73vQNgq-Co0i3aLv.js +0 -41
  285. package/dist/assets/LinkJETransactionPage-C0onrP5t-bSUcK0Xl.js +0 -98
  286. package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-BT9Obm99.js +0 -1
  287. package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-B9wAis8b.js +0 -1
  288. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-DiQQd7nR.js +0 -1
  289. package/dist/assets/MailingDetailsSection-D-tnK244-aaVtWDGx.js +0 -21
  290. package/dist/assets/Menu-0YHUdU0n-BPwki3Pe.js +0 -17
  291. package/dist/assets/NoDataChart-DLKHNXD4-BMP3rZFa.js +0 -26
  292. package/dist/assets/NoDataTable-BMD2qygC-B1_9CmNr.js +0 -8
  293. package/dist/assets/NotificationsListConfig-OCeJNw1G-CTlFddyS.js +0 -1
  294. package/dist/assets/PandLWithForecastPage-Bu49FbWD-W4tg_Hr0.js +0 -107
  295. package/dist/assets/Preview-BtWpgMXf.js +0 -1
  296. package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-lRiHxhqF.js +0 -26
  297. package/dist/assets/ReimbursementApprovalRulesPage-D5ZMrrmO-CINJA7Sh.js +0 -237
  298. package/dist/assets/ReimbursementDetailPage-DatcF8rt-BB8gKIBd.js +0 -314
  299. package/dist/assets/RoleWithToolTip-aW95rpRe-CB0MkMP2.js +0 -22
  300. package/dist/assets/ScreenRoutes-BiXrSIRO.js +0 -201
  301. package/dist/assets/SignIn-DQBJB5ad-CogDoFqt.js +0 -448
  302. package/dist/assets/SpendManagementListViewPage-Ac-9u-X2-7ZU57zzT.js +0 -123
  303. package/dist/assets/SpendManagementPerTabPage-DgrMAQ8l-DJp4zhhM.js +0 -754
  304. package/dist/assets/SpendManagementSection-Ci2yOCJ9-CTxvPu5S.js +0 -230
  305. package/dist/assets/StatementItem-hcBoe79o-DptqXJtS.js +0 -31
  306. package/dist/assets/TimeRangeSwitcher-jct2_5PE-Cu9BfqgM.js +0 -64
  307. package/dist/assets/TimeframeSwitcherWithToggle-Cl6ISBIz-CJjf8Sgj.js +0 -31
  308. package/dist/assets/TransactionListPage-B2yWm7eA-Yx9ygFEV.js +0 -35
  309. package/dist/assets/TransactionVendorDetailPage-Dr5C4-7q-1TV_A7Au.js +0 -80
  310. package/dist/assets/UploadAdditionalDocumentOverlay-4AWDV_HK-nSx6XDpw.js +0 -38
  311. package/dist/assets/Vendor2FAPopup-C_PmEAQ7-CjvhJihW.js +0 -1
  312. package/dist/assets/VendorACHDetailsPage-DMMoCytX-DLSqAKdk.js +0 -1
  313. package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-B0TLOOEg.js +0 -1
  314. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-D1AJh1PU.js +0 -1
  315. package/dist/assets/ZeniAccountNavBarPieces-DDc-xph4-CZKCVwb-.js +0 -14
  316. package/dist/assets/analyticsHelper-CEShAaem.js +0 -1
  317. package/dist/assets/downloadPdf-B8UMaJCC-CBYKvnZY.js +0 -1
  318. package/dist/assets/epic-FbVgKHkf.js +0 -2
  319. package/dist/assets/index-42e1kgYh.js +0 -1
  320. package/dist/assets/index-CQDQQRSL.js +0 -1
  321. package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-CuvQDr6o.js +0 -1
  322. package/dist/assets/mapSectionWithAcOnlyToTreeNode-rrJBbsC8-C6_4gRnj.js +0 -1
  323. package/dist/assets/mapSpacerToTreeNode-CWvamMX2-jtLBjIcf.js +0 -1
  324. package/dist/assets/mapTimeframeBalancesToTreeNode-DfQk4Tsr-QJXBr_OV.js +0 -1
  325. package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-D1Fak76w.js +0 -1
  326. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-CtBIruyz.js +0 -1
  327. package/dist/assets/toCOABalancesWithID-CkjRB0sJ-BFvEv8i7.js +0 -1
  328. package/dist/assets/toChartData-CMi2WgAy-4NDgrpqr.js +0 -1
  329. package/dist/assets/transaction-placeholder-CpOwZAMG-CBisz7X_.js +0 -1
@@ -1,9 +1,9 @@
1
- import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-DtO5gDKt.js";import{a as T,w as K}from"./sentry-BA2-4jVY.js";import{n as _}from"./mui-MIYQj4aF.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-DQjAbQ-W.js";import{m as z,l as q}from"./analyticsHelper-D4lKCWjQ-FgQaBGwb.js";import{x as Ne}from"./ReportTableViewSelector-BPliEsuo-CYYykdHh.js";import{a as se,p as Me}from"./TimeRangeSwitcher-jct2_5PE-Cu9BfqgM.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-Cl6ISBIz-CJjf8Sgj.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-c57lEf_V-CaSZtLmQ.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-xkNXkjfh-DUsbxsn0.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-rrJBbsC8-C6_4gRnj.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-DfQk4Tsr-QJXBr_OV.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-CtBIruyz.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-DGRrn6kh-CuvQDr6o.js";import"./liveblocks-DT2vn74k.js";import"./core-CQbgucwW.js";import"./recharts-Ca44ZuG6.js";import"./lottie-CJgUcH_y.js";import"./analytics-BoRXOtAO.js";import"./lexical-C_NRfmyx.js";import"./utils-4_IeBx6L.js";import"./TimeframeSwitcher-BK-qliOX-Cz_yjhY_.js";import"./page-detail-CWX5S47F-2WFsC4V9.js";import"./AccountRow-BM3xLbeh--vvIWBOQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="75593ffb-d21e-47b0-8c1c-21911f14af42",e._sentryDebugIdIdentifier="sentry-dbid-75593ffb-d21e-47b0-8c1c-21911f14af42")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({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 We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=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 Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=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]:[],g=Y({balances:u,config:t}),f=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=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]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
1
+ import{q as W,f as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o as w,aR as we,A as ye,y as B,bN as Ce,d as S,I as R,aB as X,H as xe,aT as Oe,at as Ae,bJ as Re}from"./index-CO_Updpp.js";import{a as T,S as K}from"./sentry-DdXOXL3j.js";import{n as _}from"./mui-ByF8ZmHV.js";import{bg as Z,EN as Be,EW as ve,EX as E,EY as Le,EZ as Te,E_ as Pe,E$ as Ne,F0 as Ie,F1 as ee,F2 as te}from"./zeni-epic-state-BiQIJCwr.js";import{m as z,l as q}from"./analyticsHelper-C164AjRf-tG0aq5YR.js";import{x as ke}from"./ReportTableViewSelector-BE2BuEqj-Cv65zIMR.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-mYZQR43P-BLWBlyWb.js";import{M as Me}from"./TimeframeSwitcherWithToggle-wwIX-Q6T-DmtPgL2u.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-smXqu_-_-DbNqWY1P.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-Bju2JSCg-BqWf1iHn.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-CSuXPDoO-BSS8TRaL.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-CaRKUf6w-8AEXCCet.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-BItBTBN2.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-kWMAzMb3-CMOJHu7q.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";import"./TimeframeSwitcher-BsGp8KOv-CTY5_Ouk.js";import"./page-detail-CWX5S47F-C2KjOx45.js";import"./AccountRow-COxNWv3J-Dkf6Savq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1dd00d90-f044-498b-aea4-bde186a7420d",e._sentryDebugIdIdentifier="sentry-dbid-1dd00d90-f044-498b-aea4-bde186a7420d")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("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 We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=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 Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function He({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function Ye(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(He({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=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]:[],g=H({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push($({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=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]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push($({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${w.sp2};
5
5
  background-color: ${e=>e.theme.colors.grey4};
6
- `;function Je({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const f=W(),s=G(),[c,C]=T.useState(void 0),[x,$]=T.useState(void 0),v=!(f==="small"||f==="medium-compact"),V="name+balances_actual",F=u===!0?"this_period_vs_period_before":"none",O=()=>{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(D=>E(D));break}case"profit_and_loss_by_classes":{const h=e,D=(h.sections.expenses?.balances?.length??0)>0?h.sections.expenses:null,he=(h.sections.income?.balances?.length??0)>0?h.sections.income:null,H=D??he;H?.additionalBalances!=null&&(m=H.additionalBalances.map(me=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>E(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>E(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:F,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!X(x,e)||g===!0){const h=Xe(e,m,v,g);$(e),C(h)}else{const h=We(c,m,e,v);C(h)}},[u,e,g]);const[R,k]=T.useState(5),N=m=>{const h=m+135;k(h)},fe=m=>m?.trackPageLoaded(Ke(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:fe}),r.jsx(Qe,{height:R,children:r.jsx(je,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:Q.contentPaddingLeft.value(f),right:Q.contentPaddingRight.value(f)},onAccountClick:p==null?void 0:(m,h)=>{p(m,h)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,h)=>i?.(e.reportId,m,h),onReportTableHeightChanged:N,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Xe=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return Ze(e,t,o,a);case"cash_flow":return He(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Ke=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}},et=_.div`
6
+ `;function Qe({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=W(),s=G(),[c,C]=T.useState(void 0),[x,j]=T.useState(void 0),v=!(h==="small"||h==="medium-compact"),V="name+balances_actual",M=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>E(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,fe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,Y=D??fe;Y?.additionalBalances!=null&&(m=Y.additionalBalances.map(me=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>E(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>E(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Re(),showClassAccountNumber:n};if(c==null||!X(x,e)||g===!0){const f=Xe(e,m,v,g);j(e),C(f)}else{const f=We(c,m,e,v);C(f)}},[u,e,g]);const[A,I]=T.useState(5),k=m=>{const f=m+135;I(f)},he=m=>m?.trackPageLoaded(Ke(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:he}),r.jsx(Je,{height:A,children:r.jsx($e,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:J.contentPaddingLeft.value(h),right:J.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:k,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Xe=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return Ze(e,t,o,a);case"cash_flow":return Ye(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Ke=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return R.Event.profitAndLoss;case"cash_flow":return R.Event.cashFlow;case"balance_sheet":return R.Event.balanceSheet;default:return R.Event.reports}},et=_.div`
7
7
  display: flex;
8
8
  flex-direction: row;
9
9
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
@@ -13,7 +13,7 @@ import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o
13
13
  `,tt=_.div`
14
14
  display: flex;
15
15
  position: relative;
16
- `,st=_(Re)`
16
+ `,st=_(Ae)`
17
17
  padding: 12px;
18
18
  color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
19
19
  cursor: ${e=>e.isSelected?"default":"pointer"};
@@ -49,7 +49,7 @@ import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o
49
49
  width: 160px;
50
50
  left: 63%;
51
51
  }
52
- `;function ot({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(st,{"data-testid":P("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function at({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(et,{"data-testid":P("report-switcher-container"),children:r.jsx(tt,{"data-testid":P("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(ot,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(nt,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const I={contentContainerLeftRightMargin:new B(S[3],S[3],S[8]),contentRightPadding:new B(S[3],S[3],S[8]),tickSkelectionContainerWidth:new B(343,600,905,1240)},it=new B(4,4),ct=new B(4,4),rt={selectedNumberOfPeriods:(e,t)=>e?ct.value(t):it.value(t)},lt=_.div`
52
+ `;function ot({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(st,{"data-testid":P("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function at({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(et,{"data-testid":P("report-switcher-container"),children:r.jsx(tt,{"data-testid":P("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(ot,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(nt,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const N={contentContainerLeftRightMargin:new B(S[3],S[3],S[8]),contentRightPadding:new B(S[3],S[3],S[8]),tickSkelectionContainerWidth:new B(343,600,905,1240)},it=new B(4,4),ct=new B(4,4),rt={selectedNumberOfPeriods:(e,t)=>e?ct.value(t):it.value(t)},lt=_.div`
53
53
  display: flex;
54
54
  flex: 1 1 auto;
55
55
  min-height: 100%;
@@ -60,7 +60,7 @@ import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o
60
60
  flex: 1 1 auto;
61
61
  flex-direction: column;
62
62
  height: calc(100vh - ${w.sp10});
63
- margin: ${e=>`${w.sp2} ${w.sp0} ${w.sp0} ${I.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
63
+ margin: ${e=>`${w.sp2} ${w.sp0} ${w.sp0} ${N.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
64
64
  `,pt=_.div`
65
65
  display: flex;
66
66
  width: 100%;
@@ -73,14 +73,14 @@ import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o
73
73
  position: absolute;
74
74
  margin-top: ${e=>e.windowSize==="small"?"230px":"195px"};
75
75
  background-color: ${e=>e.theme.colors.grey4};
76
- `,ft=_.div`
76
+ `,ht=_.div`
77
77
  display: flex;
78
78
  width: 100%;
79
79
  height: calc(100% - 60px);
80
80
  flex-direction: column;
81
81
  justify-content: center;
82
82
  align-items: center;
83
- `,ht=_.div`
83
+ `,ft=_.div`
84
84
  height: 96px;
85
85
  width: 96px;
86
86
  background: ${e=>e.theme.colors.background};
@@ -98,14 +98,14 @@ import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o
98
98
  `,mt=_(we)`
99
99
  margin-top: ${w.sp3};
100
100
  color: ${e=>e.theme.colors.hero};
101
- `,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=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}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Qt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==f?.accountViewMode&&a?.(O),R&&n?.(R)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const f=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&f?.accountViewMode==="account_group"&&x.push("detailed");const[$,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:$,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ft,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ht,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:f!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:f,analytics:e.analytics,referrer:L(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:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(R,k,N)=>{d(l,R,k,N)},onTimeframeSelectionChanged:(R,k,N)=>{p?.(R,k,N)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",f=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Fe,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Me,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:f}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(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,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ne,{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:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const J=(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}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(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:n,timeframe:e.selectedTimeframe,additionalBalances:d,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 L=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}},ue=K.memo(Je,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&X(e[`${n}`],t[`${n}`]),!0),yt=_.div`
102
- padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
101
+ `,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=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}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Jt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,A)=>{O!==h?.accountViewMode&&a?.(O),A&&n?.(A)};T.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[j,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:j,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Ee,{defaultOptions:h,analytics:e.analytics,referrer:L(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:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(A,I,k)=>{d(l,A,I,k)},onTimeframeSelectionChanged:(A,I,k)=>{p?.(A,I,k)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??N.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Me,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(L(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(At,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(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,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(ke,{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:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Q=(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}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(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:n,timeframe:e.selectedTimeframe,additionalBalances:d,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 L=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 R.Event.profitAndLoss;case"cash_flow":return R.Event.cashFlow;case"balance_sheet":return R.Event.balanceSheet;default:return R.Event.reports}},ue=K.memo(Qe,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&X(e[`${n}`],t[`${n}`]),!0),yt=_.div`
102
+ padding-right: ${e=>N.contentRightPadding.valuePx(e.windowSize)};
103
103
  `,Ct=_.div`
104
104
  margin-top: ${w.sp3};
105
- padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
105
+ padding-right: ${e=>N.contentRightPadding.valuePx(e.windowSize)};
106
106
  `,xt=_.div`
107
107
  margin-top: ${w.sp3};
108
- padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
108
+ padding-right: ${e=>N.contentRightPadding.valuePx(e.windowSize)};
109
109
  `,Ot=_.div`
110
110
  display: flex;
111
111
  flex-direction: row;
@@ -115,7 +115,7 @@ import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o
115
115
  width: 100%;
116
116
  align-items: center;
117
117
  justify-content: center;
118
- `,Rt=_.div`
118
+ `,At=_.div`
119
119
  margin-top: ${w.sp4};
120
- padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
121
- `;export{Qt as default};
120
+ padding-right: ${e=>N.contentRightPadding.valuePx(e.windowSize)};
121
+ `;export{Jt as default};
@@ -1,4 +1,4 @@
1
- import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-DtO5gDKt.js";import{a as P,w as ee}from"./sentry-BA2-4jVY.js";import{n as x}from"./mui-MIYQj4aF.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-BPPSjkhb-CyAt9WF3.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-CkjRB0sJ-BFvEv8i7.js";import{V as Z}from"./toChartData-CMi2WgAy-4NDgrpqr.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-Ca44ZuG6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1ca0f0cc-20eb-4052-8719-66e74f3026a6",e._sentryDebugIdIdentifier="sentry-dbid-1ca0f0cc-20eb-4052-8719-66e74f3026a6")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{f as A,V as a,F as D,q as de,b2 as Q,d as I,b as M,aW as J,o as m,aN as Ae,p as g,aB as Ve,y as xe,bK as ge,al as R,bL as V,b9 as F}from"./index-CO_Updpp.js";import{a as P,S as ee}from"./sentry-DdXOXL3j.js";import{n as x}from"./mui-ByF8ZmHV.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-DQ1OffIu-Bo_aesHa.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-BA4WkU1y-CDNy4Vu0.js";import{V as Z}from"./toChartData-DrvhJgTD-N2b3lY8k.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-C9z9JCsM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="a7caf924-68fd-40c1-a694-82da69d14cfc",e._sentryDebugIdIdentifier="sentry-dbid-a7caf924-68fd-40c1-a694-82da69d14cfc")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -277,4 +277,4 @@ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as A
277
277
  margin-left: ${e=>X.legendLabelMarginLeft.valuePx(e.windowSize)};
278
278
  margin-right: ${e=>X.legendLabelMarginRight.valuePx(e.windowSize)};
279
279
  color: ${e=>e.theme.colors.primary};
280
- `;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:s}){const c=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[c.colors.graphColor26,c.colors.graphColor17,c.colors.graphColor12],d=[c.colors.graphColor28,c.colors.graphColor17,c.colors.graphColor10,c.colors.graphColor28Dark,c.colors.graphColor17Dark,c.colors.graphColor10Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?$r:kr,w=(u,j=c.colors.graphColor28)=>u<y.length?y[u]:j,C=e.reportId==="revenue"?Re(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Re(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(L,{}),activeDot:a.jsx($,{}),dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},stroke:w(j),strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j,S)=>a.jsx(se,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(jr,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:s,highlightedRange:t,isDetailPage:i===!0})}const Lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};c?.(y[v],r,S)},L=s?(l-60)/W.revenue*(W.revenue-e.recordByTimeseries.length):20;return a.jsx(wr,{width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.revenue,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,s?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(_r,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.revenue[v]:D.getLocalizedStrings().chartCard.revenue[N(v)]})}):null]})})})};export{Tr as G,Nr as H,Wr as P,Ir as X,Er as Y};
280
+ `;function Er({selectedRangeReport:e,timeframe:r,highlightedRange:t,width:n,height:o,showBarHoverBackground:l,isDetailPage:i,mode:h,onCOABalancesRangeChanged:s}){const c=A(),f=P.useRef(!1);P.useEffect(()=>{f.current=!0},[]);const p=[c.colors.graphColor26,c.colors.graphColor17,c.colors.graphColor12],d=[c.colors.graphColor28,c.colors.graphColor17,c.colors.graphColor10,c.colors.graphColor28Dark,c.colors.graphColor17Dark,c.colors.graphColor10Dark],y=h==="forecast_mode"?d:p,_=h==="forecast_mode"?$r:kr,w=(u,j=c.colors.graphColor28)=>u<y.length?y[u]:j,C=e.reportId==="revenue"?Re(e.firstMonthOfFY,_,h,e.sections?.income,e.sections?.cogs,e.calculatedSections?.grossMargin):Re(e.firstMonthOfFY,_,h,e.sections.income,e.sections.cogs,e.calculatedSections.grossMargin),L=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:4,stroke:B,strokeWidth:2,fill:z})},$=u=>{const{cx:j,cy:S,fill:B,stroke:z,value:E}=u;return E==null?a.jsx(a.Fragment,{}):a.jsx("circle",{cx:j,cy:S,r:5,stroke:z,strokeWidth:2,fill:B})},k=(u,j)=>a.jsx(me,{name:u,type:"monotone",legendType:"plainline",isAnimationActive:!1,dot:a.jsx(L,{}),activeDot:a.jsx($,{}),dataKey:S=>{const B=S.record;return(B[u]!=null&&B[u].amount!=null?B[u].amount:void 0)?.amount},stroke:w(j),strokeDasharray:"3 3",strokeWidth:1.5},u),v=(u,j,S)=>a.jsx(se,{name:u,animationDuration:S?500:void 0,style:{cursor:"pointer"},legendType:"square",dataKey:B=>{const z=B.record;return(z[u]!=null&&z[u].amount!=null?z[u].amount:void 0)?.amount??0},fill:w(j)},u),O=()=>{const u=[];return _.forEach((j,S)=>{const B=i===!0&&!f.current;j.endsWith("_forecast")?u.push(k(j,S)):u.push(v(j,S,B))}),u};return C==null?null:a.jsx(Lr,{chartData:C,timeframe:r,showBarHoverBackground:l,barElements:O(),customToolTipContent:({active:u,payload:j})=>a.jsx(jr,{active:u,payload:j,mode:h}),width:n,height:o,onCOABalancesRangeChanged:s,highlightedRange:t,isDetailPage:i===!0})}const Lr=({chartData:e,timeframe:r,barElements:t,customToolTipContent:n,highlightedRange:o,width:l,height:i,showBarHoverBackground:h,isDetailPage:s,onCOABalancesRangeChanged:c})=>{const f=de(),p=A(),d=ae(e),y=e.timeseries,_=y.map($=>$.label),w=h!==!1,C=$=>{if(!s||$?.activePayload==null||$?.activePayload.length===0)return;const k=$.activePayload[0];if(k?.payload?.timeLabel?.label==null)return;const v=$.activeTooltipIndex,O=k.payload.timeLabel.label;if(o==null)return;const u=re(O,_,o.numberOfPeriods),j=u[1]===void 0?_.length-1:_.indexOf(u[1]),S={...o,thisPeriod:{startDate:y[j].startDate,endDate:y[j].endDate}};c?.(y[v],r,S)},L=s?(l-60)/W.revenue*(W.revenue-e.recordByTimeseries.length):20;return a.jsx(wr,{width:l,height:i,windowSize:f,children:a.jsx(Q,{children:({height:$,width:k})=>a.jsxs(fe,{data:e.recordByTimeseries,barCategoryGap:s?void 0:"12%",maxBarSize:s?I[10]:22,barGap:s?void 0:2,margin:{top:5,right:L,left:0,bottom:I[4]},height:$,width:k,style:{display:"flex",flex:"1 1 auto"},onClick:C,children:[a.jsx(te,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:p.colors.grey3}),a.jsx(le,{dataKey:v=>v.timeLabel.label,type:"category",axisLine:{stroke:p.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject}}),a.jsx(ne,{type:"number",axisLine:!1,tickLine:!1,tick:{color:p.colors.hero,...M.extraSmallRegular.cssObject},tickFormatter:v=>J("0,0.[00]a",v,d)}),a.jsx(ce,{wrapperStyle:{zIndex:2},cursor:w?{stroke:p.colors.background,strokeWidth:(k-60)/W.revenue,fill:p.colors.background}:!1,content:n,allowEscapeViewBox:{x:!1,y:!0}}),t,s?a.jsx(pe,{verticalAlign:"bottom",wrapperStyle:{width:"100%",display:"flex",justifyContent:"center",left:"initial",bottom:m.sp0},iconSize:I[3],formatter:v=>a.jsx(_r,{windowSize:f,children:v.endsWith("_forecast")===!0?D.getLocalizedStrings().chartCard.revenue[v]:D.getLocalizedStrings().chartCard.revenue[N(v)]})}):null]})})})};export{Tr as G,Nr as H,Wr as P,Er as X,Ir as Y};
@@ -1,11 +1,11 @@
1
- import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as le,f4 as Mt,f5 as At,f6 as Bt,f7 as Ft,aK as M,f8 as Rt,aM as j,f9 as Lt,fa as Ae,fb as Be,fc as Fe,b as H,fd as O,p as S,fe as zt,ff as E,fg as _,fh as Nt,fi as Ot,bQ as Re,o as n,aO as Et,c as s,F as _t,ah as Wt,b$ as Zt,a as Vt,B as Yt,fj as qt,cf as Gt,ak as se,al as ce,fk as Ht,fl as Ut,bg as Kt,l as Qt,b7 as Jt,fm as Xt,ap as et,bH as en,ag as tt,br as tn,fn as nn}from"./index-DtO5gDKt.js";import{a as Z}from"./sentry-BA2-4jVY.js";import{n as a}from"./mui-MIYQj4aF.js";import{bo as Le,bm as ze,bH as I,bN as an,Fp as ln,bL as oe,bP as on}from"./zeni-epic-state-DQjAbQ-W.js";import{t as rn,o as dn}from"./LowBalancePopup-Dd9HLWlh-ic5OOxEW.js";import{S as W}from"./LabeledText-yhm8qxrA-qY3EChSX.js";import"./liveblocks-DT2vn74k.js";import"./core-CQbgucwW.js";import"./recharts-Ca44ZuG6.js";import"./lottie-CJgUcH_y.js";import"./analytics-BoRXOtAO.js";import"./lexical-C_NRfmyx.js";import"./utils-4_IeBx6L.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="90598be2-0c2e-4efa-9896-bdb91bc40e32",e._sentryDebugIdIdentifier="sentry-dbid-90598be2-0c2e-4efa-9896-bdb91bc40e32")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),A=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,q=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,q,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,q,d)}},primaryBtn:{label:We(b,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,q,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},We=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,f,A,T)=>f?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
1
+ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as Mt,f6 as At,f7 as Bt,f8 as Ft,aL as M,f9 as Rt,aN as j,fa as Lt,fb as Ae,fc as Be,fd as Fe,b as H,fe as O,p as S,ff as zt,fg as E,fh as _,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,d as s,F as _t,ag as Zt,c0 as qt,M as Wt,a as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Ht,fm as Kt,bh as Ut,l as Qt,b8 as Jt,fn as Xt,aq as et,bI as en,ai as tt,bs as tn,fo as nn}from"./index-CO_Updpp.js";import{a as q}from"./sentry-DdXOXL3j.js";import{n as a}from"./mui-ByF8ZmHV.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-BiQIJCwr.js";import{t as rn,o as dn}from"./LowBalancePopup-YdUL24Wb-PfAaWR1_.js";import{S as Z}from"./LabeledText-BJi28Cmu-KVGobttz.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="794bdb5a-d352-42a2-8659-1fea93c9021e",e._sentryDebugIdIdentifier="sentry-dbid-794bdb5a-d352-42a2-8659-1fea93c9021e")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,g]=q.useState(!1),A=()=>{g(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=g&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(ge,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,fe]=q.useState(!1),[mt,xe]=q.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);q.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,W=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&W?.code?W:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&W?.code?W:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,V=y.allApprovalRules.length>0,ft=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),f=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=f&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=Ze(b,V,e.isBillMarkedForRetry),wt=()=>f?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=f?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&Y(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,Y]=q.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(qn,{children:[t.jsx(Gn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Wn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Qe,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Qe,{})}),t.jsxs(Zn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ye,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:ft,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ye,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Z,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Z,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!f&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Z,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,f?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Z,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),f||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Z,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(fn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(gn,{children:[t.jsxs(We,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(We,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:qe(!1,k,b,V,d)}},primaryBtn:{label:Ze(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?Y(!0):Se()},style:{width:qe(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},Ze=(e,y,g)=>e?i.paymentOutsideZeni.markAsPaid:g===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,qe=(e,y,g,A,T)=>g?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
5
5
  &:hover {
6
6
  color: ${e=>e.theme.colors.primary};
7
7
  }
8
- `,Ve=a(tt)`
8
+ `,We=a(tt)`
9
9
  display: flex;
10
10
  justify-content: space-between;
11
11
  padding-bottom: ${n.sp1};
@@ -21,7 +21,7 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
21
21
  background-color: ${S.neutralGrey3Dark};
22
22
  height: 1px;
23
23
  width: 280px;
24
- `,fn=a.div``,gn=a.div`
24
+ `,gn=a.div``,fn=a.div`
25
25
  display: flex;
26
26
  width: 100%;
27
27
  box-sizing: border-box;
@@ -68,13 +68,13 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
68
68
  border-radius: ${n.sp2};
69
69
  margin-bottom: ${n.sp3};
70
70
  margin-top: ${n.sp3};
71
- `,U=a.div`
71
+ `,K=a.div`
72
72
  display: flex;
73
73
  flex: 1;
74
74
  background-color: ${e=>e.theme.colors.grey3};
75
75
  min-height: 1px;
76
76
  max-height: 1px;
77
- `,Ye=a(Yt)`
77
+ `,Ge=a(Gt)`
78
78
  color: ${e=>e.theme.colors.primary};
79
79
  ${e=>`${sn.sectionTitle.style(e.windowSize)}`};
80
80
  margin-left: ${e=>m.sectionTitleMarginLeft.valuePx(e.windowSize)};
@@ -102,10 +102,10 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
102
102
  `,In=a(se)`
103
103
  padding-bottom: ${n.sp3};
104
104
  color: ${S.brandColorGoldDark};
105
- `,Pn=a(Gt)`
105
+ `,Pn=a(Yt)`
106
106
  padding-top: ${n.sp3};
107
107
  color: ${S.brandColorGoldDark};
108
- `,qe=a.div`
108
+ `,Ve=a.div`
109
109
  display: flex;
110
110
  flex-direction: ${e=>nt.includes(e.windowSize)?"column":"row"};
111
111
  width: 100%;
@@ -121,7 +121,7 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
121
121
  `,An=a.div`
122
122
  display: flex;
123
123
  padding-top: ${n.sp3};
124
- `,Ge=a(Qt)`
124
+ `,Ye=a(Qt)`
125
125
  display: flex;
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  margin-right: ${n.sp1};
@@ -129,7 +129,7 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
129
129
  display: flex;
130
130
  color: ${e=>e.theme.colors.primary};
131
131
  margin-right: ${n.sp1};
132
- `,Ue=a(Zt)`
132
+ `,Ke=a(qt)`
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.hero};
135
135
  width: 20px;
@@ -152,7 +152,7 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
152
152
  padding-left: ${n.sp0};
153
153
  z-index: 2;
154
154
  background-color: ${e=>e.theme.colors.grey4};
155
- `,Rn=a(Wt)`
155
+ `,Rn=a(Zt)`
156
156
  height: ${n.sp3};
157
157
  width: ${n.sp3};
158
158
  color: ${e=>e.theme.colors.hero};
@@ -193,17 +193,17 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
193
193
  width: ${n.sp4};
194
194
  height: ${n.sp4};
195
195
  display: flex;
196
- `,Ke=a.div`
196
+ `,Ue=a.div`
197
197
  cursor: default;
198
198
  display: flex;
199
199
  align-items: center;
200
200
  margin-right: ${n.sp1};
201
- `,Qe=a(Kt)`
201
+ `,Qe=a(Ut)`
202
202
  cursor: pointer;
203
203
  width: ${n.sp4};
204
204
  height: ${n.sp4};
205
205
  color: ${e=>e.theme.colors.hero};
206
- `,K=a(se)`
206
+ `,U=a(se)`
207
207
  display: flex;
208
208
  color: ${e=>e.theme.colors.hero};
209
209
  align-items: center;
@@ -226,7 +226,7 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
226
226
  display: flex;
227
227
  justify-content: flex-end;
228
228
  align-items: center;
229
- `,Wn=a.div`
229
+ `,Zn=a.div`
230
230
  display: flex;
231
231
  flex-grow: 1;
232
232
  cursor: pointer;
@@ -247,27 +247,27 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
247
247
  padding: 1px 6px;
248
248
  border: ${e=>`1px solid ${e.borderColor}`};
249
249
  border-radius: ${n.sp1};
250
- `,Zn=a.div`
250
+ `,qn=a.div`
251
251
  display: flex;
252
252
  flex-direction: column;
253
- `,Vn=a.div`
253
+ `,Wn=a.div`
254
254
  display: flex;
255
255
  width: 100%;
256
256
  flex-flow: column;
257
257
  padding-top: ${n.sp2};
258
258
  padding-bottom: ${n.sp2};
259
259
  border-bottom: ${e=>`1px solid ${e.theme.colors.grey3}`};
260
- `,Yn=a(ce)`
260
+ `,Gn=a(ce)`
261
261
  margin-top: ${n.sp3};
262
262
  color: ${S.alert};
263
- `,qn=a(qt)`
263
+ `,Vn=a(Vt)`
264
264
  min-width: ${n.sp4};
265
265
  height: ${n.sp4};
266
266
  width: ${n.sp4};
267
267
  margin-top: ${n.sp3};
268
268
  margin-left: ${n.sp4};
269
269
  color: ${S.brandColorGoldDark};
270
- `,Gn=a.div`
270
+ `,Yn=a.div`
271
271
  display: flex;
272
272
  justify-content: flex-end;
273
273
  margin-right: ${e=>m.footerRightIconMarginRight.valuePx(e.windowSize)};
@@ -279,7 +279,7 @@ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as
279
279
  &:hover {
280
280
  color: ${e=>e.theme.colors.primary};
281
281
  }
282
- `,Un=a.div`
282
+ `,Kn=a.div`
283
283
  display: flex;
284
284
  cursor: pointer;
285
285
  color: ${e=>e.theme.colors.grey1};
@@ -1,24 +1,24 @@
1
- import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,ak as j,cy as W,m as R,ag as b,bf as D,c as n,eg as G,u as _,iR as q,k0 as A}from"./index-DtO5gDKt.js";import{n as t}from"./mui-MIYQj4aF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53",e._sentryDebugIdIdentifier="sentry-dbid-f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:k},onCloseOverlay:E,onCloseReviewItem:M})=>{const a=B();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:E,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:a,children:[i.jsxs(J,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:O(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!k}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
1
+ import{q as P,V as i,aN as m,o as r,aP as B,y as d,_ as L,M as I,a as W,p as s,al as j,cz as C,A as D,ai as b,bg as R,d as n,eh as _,u as G,iS as A,k2 as q}from"./index-CO_Updpp.js";import{n as t}from"./mui-ByF8ZmHV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="0b429603-ea3d-40cd-9a2b-002e2d261655",e._sentryDebugIdIdentifier="sentry-dbid-0b429603-ea3d-40cd-9a2b-002e2d261655")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const a=P();return i.jsxs(H,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:a,children:[i.jsxs(N,{windowSize:a,children:[i.jsx(O,{children:i.jsx(K,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(B,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
5
- `,H=t.div`
5
+ `,J=t.div`
6
6
  min-height: 100vh;
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  margin-top: ${e=>l.containerMarginTop.valuePx(e.windowSize)};
10
10
  margin-bottom: ${r.sp8};
11
- `,J=t.div`
11
+ `,N=t.div`
12
12
  position: sticky;
13
13
  top: ${r.sp0};
14
14
  background-color: ${e=>e.theme.colors.grey4};
15
15
  z-index: 1;
16
16
  padding-left: ${e=>l.containerMarginLeft.valuePx(e.windowSize)};
17
17
  padding-right: ${e=>l.containerMarginRight.valuePx(e.windowSize)};
18
- `,K=t.div`
18
+ `,O=t.div`
19
19
  display: flex;
20
20
  align-items: center;
21
- `,N=t(I)`
21
+ `,K=t(W)`
22
22
  ${e=>`${F.title.style(e.windowSize)}`};
23
23
  color: ${e=>e.theme.colors.primary};
24
24
  margin-top: ${r.sp2};
@@ -59,7 +59,7 @@ import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,a
59
59
  display: flex;
60
60
  flex: 1 1 0;
61
61
  justify-content: flex-end;
62
- `,ie=t(P)`
62
+ `,ie=t(L)`
63
63
  width: ${r.sp4};
64
64
  height: ${r.sp4};
65
65
  cursor: pointer;
@@ -105,22 +105,22 @@ import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,a
105
105
  display: flex;
106
106
  margin-top: -5px;
107
107
  color: ${e=>e.isError?s.important:e.isWarning?s.brandColorGoldDark:e.theme.colors.primary};
108
- `,y=t(G)`
108
+ `,y=t(_)`
109
109
  width: ${r.sp4};
110
110
  height: ${r.sp4};
111
111
  color: ${e=>e.isError?s.important:s.brandColorGoldDark};
112
- `,ae=t(_)`
112
+ `,ae=t(G)`
113
113
  width: ${r.sp4};
114
114
  height: ${r.sp4};
115
115
  color: ${s.success};
116
- `,le=t(A)`
116
+ `,le=t(q)`
117
117
  width: ${r.sp4};
118
118
  height: ${r.sp4};
119
119
  color: ${e=>e.theme.colors.grey2};
120
120
  `,de=t.div`
121
121
  margin-top: 2px;
122
122
  display: flex;
123
- `,ce=t(W)`
123
+ `,ce=t(C)`
124
124
  cursor: pointer;
125
125
  color: ${e=>e.theme.colors.hero};
126
126
  &:hover {
@@ -141,11 +141,11 @@ import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,a
141
141
  align-items: center;
142
142
  justify-content: center;
143
143
  margin-right: ${r.sp1};
144
- `,$=t(D)`
144
+ `,$=t(R)`
145
145
  color: ${e=>e.theme.colors.brandColorJade};
146
146
  width: ${r.sp3};
147
147
  height: ${r.sp3};
148
- `,he=t(q)`
148
+ `,he=t(A)`
149
149
  color: ${e=>e.theme.colors.brandColorGoldDark};
150
150
  width: ${r.sp4};
151
151
  height: ${r.sp4};
@@ -0,0 +1,22 @@
1
+ import{eM as h,eN as f,V as s,bR as g,o as i,aN as l,F as x,an as y,ai as c}from"./index-CO_Updpp.js";import{n}from"./mui-ByF8ZmHV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="942e7891-f071-4523-85ea-e720cb563cc2",e._sentryDebugIdIdentifier="sentry-dbid-942e7891-f071-4523-85ea-e720cb563cc2")}catch{}})();const{hyphen:d}=x.getLocalizedStrings().common.strings,m=n.div``,b=n.div`
2
+ display: flex;
3
+ min-width: 192px;
4
+ justify-content: space-between;
5
+ `,u=n(c)`
6
+ color: ${e=>e.theme.colors.hero};
7
+ `,j=n(c)`
8
+ color: ${e=>e.theme.colors.brandColorPearl};
9
+ `,a=n.div`
10
+ display: flex;
11
+ align-items: center;
12
+ `,w=n(y)`
13
+ border-radius: ${i.sp12};
14
+ border: 1px solid ${e=>e.theme.colors.grey1};
15
+ display: flex;
16
+ height: 18px;
17
+ width: 18px;
18
+ align-items: center;
19
+ justify-content: center;
20
+ color: 1px solid ${e=>e.theme.colors.grey1};
21
+ margin-left: ${i.sp1};
22
+ `,I=({roles:e})=>{let t=d,r=[];t=h(e),r=f(e);const p=()=>r.length>0?s.jsx(m,{children:r.map(o=>s.jsxs(b,{children:[s.jsx(u,{children:o[0]}),s.jsx(j,{children:o[1]})]},o.join(",")))}):s.jsx(s.Fragment,{children:d});return r.length>0?s.jsx(g,{enterDelay:600,"data-testid":l("roles-tooltip",t),title:p(),placement:"top-end",style:{marginLeft:i.sp1,padding:"6px 12px"},maxWidth:"264px",children:s.jsxs(a,{"data-testid":l("roles-label-wrapper",t),children:[t,s.jsx(w,{className:"roles-count-wrapper","data-testid":l("roles-count-wrapper",t),children:r.length})]})}):s.jsx(a,{"data-testid":l("roles-label-wrapper",t),children:t})};export{I as T};