@zeniai/web-cockpit-ui 1.13.85-qa → 1.13.86-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 (248) hide show
  1. package/dist/assets/{ACHDetailsPage-CRqyoYEz-BOyw7D7v.js → ACHDetailsPage-DGGeHZnW-CRRXdkuL.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-DAkvkXSA-DR1Rn68p.js → AIPerformancePage-BnFh61HC-DG1jrKEt.js} +24 -24
  3. package/dist/assets/AccountInfoPage-BoCzcaQW-DXC6zcEv.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BWZbyIYz-BwEofkT3.js → AccountInfoPageContent-C4VpFgc_-DvP6xZz-.js} +20 -20
  5. package/dist/assets/{AccountReconDetailsDrawerPage-DLd_igXD-D-07Ys_g.js → AccountReconDetailsDrawerPage-DJmFBJve-DvtbeSb_.js} +18 -18
  6. package/dist/assets/AccountRow-vtPa0PJn-DyxPucxT.js +298 -0
  7. package/dist/assets/{AccountsPromoCardStack-DIly1lFF-C63cClOI.js → AccountsPromoCardStack-D5elLwcD-DFP5ej-L.js} +22 -22
  8. package/dist/assets/{AddAddressForCardDrawer-C90j4Cwr-BT9i1kr2.js → AddAddressForCardDrawer-D9uW1sU2-CyIurqG5.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-Bo2KesYz-B6pn-wDw.js → AddToWalletPage-D3yOWwc3-Dt5WZtr8.js} +30 -30
  10. package/dist/assets/{AgingReportsPage-DuoKsSkU-D2pt3N1l.js → AgingReportsPage-DlB02nzb-DT1hA1_s.js} +4 -4
  11. package/dist/assets/{AllUserItems-C0U1Brjm-DLoP83Sx.js → AllUserItems-Bwbb5_fm-BcHqhbO0.js} +7 -7
  12. package/dist/assets/{ApAgingDetailPage-dNwAZULr-Dh1nmwAG.js → ApAgingDetailPage-Bhf_ygxm-DDVphjYY.js} +3 -3
  13. package/dist/assets/{AppBasePage-CfkaWEbJ-Bv3CGV1I.js → AppBasePage-DyGLpjZ0-DttRVXyT.js} +4 -4
  14. package/dist/assets/{AppDrawerContent-DlHQEgOZ-CDNjVPxb.js → AppDrawerContent-D_dlUPFp-BL5bhrHC.js} +2 -2
  15. package/dist/assets/{ApprovalRulesSettingsPage-Pl7HoLmk-O1hX1O5a.js → ApprovalRulesSettingsPage-DLvGE0ND-DjcwfHKU.js} +6 -6
  16. package/dist/assets/{ArAgingChart-xI9TRvfS-CYApUAH7.js → ArAgingChart-CR7dx7XY-Cx6fMjBH.js} +5 -5
  17. package/dist/assets/{ArAgingDetailPage-BMGCnP5d-DgYDd0kk.js → ArAgingDetailPage-kU_SEimL-B5vhsKkP.js} +2 -2
  18. package/dist/assets/{AttachmentView-C8AgUAnY-D38bw4nL.js → AttachmentView-ClQPirg--D1d3_Uda.js} +8 -8
  19. package/dist/assets/{BankAccountSection-DB4PEf_X--XKoeQkb.js → BankAccountSection-DLB1oftk-DEn9rP2e.js} +4 -4
  20. package/dist/assets/{BankAccountWarningSection-BNO8Gl59-C7lGSojx.js → BankAccountWarningSection-ClrNHLqo-NpMhaSfC.js} +5 -5
  21. package/dist/assets/{BankConnectionsSettingsPage-BOreBo5b-5l_djXua.js → BankConnectionsSettingsPage-D1w10U35-B0hA0qGz.js} +22 -22
  22. package/dist/assets/{BillDetailPage-Bv86SywV-jkHBDmPc.js → BillDetailPage-Bfrn4oa6-D2E_Tt5J.js} +5 -5
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-CDXxmD-3-tKogNh_O.js → BillPayApprovalRuleDetailPage-DIzv3Xu9-yMWl3cpx.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRulesPage-Ci5Ok7Zj-BRD-ODg8.js → BillPayApprovalRulesPage-CPBknTMQ-BwSnwQg8.js} +3 -3
  25. package/dist/assets/{BillPayPromoPage-Co2j2krO-B-Hi3v0R.js → BillPayPromoPage-CKETeVet-WnOIT8cc.js} +2 -2
  26. package/dist/assets/{BillPaySetUpPage-DjpCUZaT-BImJiA0N.js → BillPaySetUpPage-DIz-RZih-CC05m-y7.js} +2 -2
  27. package/dist/assets/BillingSettingsPage-Bm-IF_p7-8u0bw5ku.js +44 -0
  28. package/dist/assets/BillsBulkReviewDrawerPage-CVAG78EK-BwPRAmgg.js +1 -0
  29. package/dist/assets/{BoxItem-BqLhtWoJ-dHjwNV6l.js → BoxItem-B8KF3Skh-TmzJmYZc.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-CZGOzc9Z-BxBWKK3p.js → BusinessVerificationPage-Ctqy7ZwA-J8d6V6lT.js} +8 -8
  31. package/dist/assets/{CardNumberSubText-23sLjCVt-p-FcxRyz.js → CardNumberSubText-CNiPWVeO-OlxmvVJt.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-DY0n94jz-B2flhYaR.js → CashbackDetailPage-BNWBGKHa-bIlWYuwv.js} +21 -21
  33. package/dist/assets/{ChargeCardDetailPage-NWTPnGtM-GzsfA6im.js → ChargeCardDetailPage-BuCwlpLH-7rCG_cYb.js} +58 -58
  34. package/dist/assets/{ChargeCardListPage-D42dfnET-Dw_Gnic_.js → ChargeCardListPage-CXbTalVQ-D381djUW.js} +35 -35
  35. package/dist/assets/{ChargeCardListTable-B7uRDVzb-PjQ3L9G6.js → ChargeCardListTable-D4-Br785-DpvUrE9e.js} +25 -25
  36. package/dist/assets/ChargeCardPromoPage-BTfg7L28-D2O1yFJS.js +175 -0
  37. package/dist/assets/{ChargeCardSetupPage-Ccc8PoCm-DGeNkrzB.js → ChargeCardSetupPage-fy0EpA-m-DvURpcVh.js} +2 -2
  38. package/dist/assets/{ChargeCardStatementsPage-JEslDm3r-DZPmPw5i.js → ChargeCardStatementsPage-B_rdiq_Y-BAKafx8N.js} +4 -4
  39. package/dist/assets/{ChargeCardUtils-B3JEziD7-Dyg77jk5.js → ChargeCardUtils-CtoTn6DQ-C3z4uZjJ.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-KLet3F9X-D9O--vXG.js → ChaseOverlay-DfjQ73Ie-BOsM74a7.js} +8 -8
  41. package/dist/assets/CheckDepositDrawerPage-yUzhTMSu-DalHOQf6.js +206 -0
  42. package/dist/assets/{CollapsableReportTable-DshWn4Fc-CJTqtHsL.js → CollapsableReportTable-CHsJ-93l-CZG5w07A.js} +29 -29
  43. package/dist/assets/{CompanyOfficerDetailsSection-DWqEolPc-CtOYg9is.js → CompanyOfficerDetailsSection-BlUCDRW6-r-0kIc8i.js} +26 -26
  44. package/dist/assets/{CompanyPassportCard-fyolEQTs-HThTUw8Q.js → CompanyPassportCard-DSRRu6RZ-D8WUh8RF.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-CrgsRRVr-D-W-kZ0u.js → CompanyPassportPage-DpeoVbLk-CGE5gjRB.js} +140 -140
  46. package/dist/assets/{CompleteProfile-D_zq0Bxi-DzmMJrCa.js → CompleteProfile-BaTEooSW-C9pQ1jcL.js} +10 -10
  47. package/dist/assets/ConfettiBurst-C2engbkN-OYjDPreK.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-Ct4Kfowi-EJwIqng4.js → CreateOrEditVendorPage-CaIc3Tib-CiLHzKjL.js} +15 -15
  49. package/dist/assets/{CreditCardPaymentDrawerPage-Cpu-7pGN-CFUmfUnI.js → CreditCardPaymentDrawerPage-DEFrzmkG-BYyXj2cB.js} +16 -16
  50. package/dist/assets/{CreditCardPaymentPlgSection-DoMaCnIZ-DEDF2Bw6.js → CreditCardPaymentPlgSection-IeRxDnG7-iIog9fs2.js} +10 -10
  51. package/dist/assets/{CurrencySelectField-CCOtXLC7-WWI_x70H.js → CurrencySelectField-DDiCwLn7-OV5xt8fQ.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-Cgzif1ji-KDPEI4Nw.js → CustomerOnboardingActivationPage-976y8y35-B5nrrrGQ.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-DzzvTpfs-BL-GBLoz.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BOMwRZEO-DhpvGzW9.js → CustomerOnboardingDetailPageSkeleton-DYfidx87-rFt8SrGg.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-DDloVGvk-DfWdnJkn.js → CustomerOnboardingNoStepsPage-DrLZ3k77-DwEaFPCU.js} +8 -8
  56. package/dist/assets/CustomerOnboardingPage-BiUXryld-DwfZXjsS.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-BA3GAX42-CH_YxX7C.js → CustomerOnboardingProductSuitePage-CmHltdpN-Cb45Wbg-.js} +4 -4
  58. package/dist/assets/Dashboard-B1UeMAoF-D-P-pMiu.js +778 -0
  59. package/dist/assets/{DashboardReportPage-paPVk_v2-rdCWEh1c.js → DashboardReportPage-DULpVd6J-B_d0ak7a.js} +67 -67
  60. package/dist/assets/{DepositAccTransactionItem-BXRfgUfE-Bi5kB8pj.js → DepositAccTransactionItem-BEs_Al_8-DryszVsJ.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage--7TRlqKj-CGLWI77-.js → DepositAccTransactionListPage-CL8Rr3I4-3mitujdt.js} +8 -8
  62. package/dist/assets/{DocumentSecurityBanner-B0Qt1FLC-BPGORTR1.js → DocumentSecurityBanner-BgKXBGg3-gTBQRSLd.js} +1 -1
  63. package/dist/assets/DomesticWireDetailsPage-CVKheLW6-Cp0cNoH9.js +21 -0
  64. package/dist/assets/{DownloadOverlay-Cl_EXjiu-ayFegofe.js → DownloadOverlay-cne9_fIV-BGdaHI5P.js} +20 -20
  65. package/dist/assets/{DrawerPage-wXwAaYEB-ckpkQyBr.js → DrawerPage-B0mgBHB5-CQtDXw_Q.js} +8 -8
  66. package/dist/assets/EditPeoplePage-DgVDgYlm-Cq7SpjxR.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-BUpJPJNu-CuY2Ig7F.js → EditReimbursementDetailPage-DWhSkrJ7-DXfnlGXX.js} +74 -74
  68. package/dist/assets/{EntityDetailPage-BNXqSwVL-2_wdQBQJ.js → EntityDetailPage-wnOA1SH7-aYV-tRku.js} +2 -2
  69. package/dist/assets/{EntitySummarySection-MZ57i-bY-wyCkXFzg.js → EntitySummarySection-Q_UUVBaU-B-zx_bhC.js} +11 -11
  70. package/dist/assets/{ExpenseAutomationOverviewPage-Y3IHs4dG-b03QKzrb.js → ExpenseAutomationOverviewPage-BumrdlGf-BlGx5F5V.js} +17 -17
  71. package/dist/assets/{ExpenseAutomationPage-C0hvPLo7-DWrp_4v0.js → ExpenseAutomationPage-DKjInf-x-DBua7HMI.js} +84 -84
  72. package/dist/assets/{ExpressPayPage-Bncb54-Q-SeUIlqfm.js → ExpressPayPage-wwfao-Tr-Cll3aRZR.js} +8 -8
  73. package/dist/assets/{FeaturePreviewPage-BnGBEF9H-BZb3CLM5.js → FeaturePreviewPage-DriDr9id-IfgJ91nt.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-laCvnETV-BQUar6s-.js → FollowStepsSection-5025urr9-BhQV5Gxg.js} +7 -7
  75. package/dist/assets/{GlobalReviewListPage-CskEuHc5-Cjbio4XA.js → GlobalReviewListPage-BFjOsp4u-dTOZQfQK.js} +10 -10
  76. package/dist/assets/HelpButton-CzonsAOi-CLT44ucP.js +28 -0
  77. package/dist/assets/{InformationCardStack-BFJqdH9n-DFvbLLLn.js → InformationCardStack-DrD-sWV8-D-viV3aR.js} +5 -5
  78. package/dist/assets/{InsightsCardStack-CcoMWMiA-Cc7jKdY5.js → InsightsCardStack-CFqfiCOY-DSgzQkhY.js} +9 -9
  79. package/dist/assets/{InsightsSection-D9PiJagu-SWEZg4pL.js → InsightsSection-CN1BVvSr-DiHzw0Zr.js} +3 -3
  80. package/dist/assets/{IntegrationsSettingsPage-CVmDobJ8-DDDi0Jh4.js → IntegrationsSettingsPage-BBlKuJxA-Ax55qhbj.js} +5 -5
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-DqW88v9N-BZw_syi-.js → InternationalWireSwiftDetailsPage-f4DZUYIx-CPv4IcAC.js} +11 -11
  82. package/dist/assets/{InternationalWireVerificationPage-X90z_30k-dNJC2sY7.js → InternationalWireVerificationPage-5WpkXxPC-B_ootlBy.js} +17 -17
  83. package/dist/assets/{InviteFormPage-BK-PRmeH-C_kHyZpq.js → InviteFormPage-Bw2ykerx-B8sj-JFN.js} +23 -23
  84. package/dist/assets/{InvitePageListView-6-iCc4BK-Clzv1DBo.js → InvitePageListView-BHp1m02Z-DMdwrgsX.js} +31 -31
  85. package/dist/assets/InvitePeoplePage-BnlUrpPG-D5Pb0NSX.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-D5aF4auL-B3QucxAN.js → InvoiceUploadSection-B8Xsz6dM-CaDnzQOR.js} +7 -7
  87. package/dist/assets/{IssueChargeCardPage-C_xt7hKZ-BRUTBeLa.js → IssueChargeCardPage-DYrMWSZg-BXFdUqlA.js} +22 -22
  88. package/dist/assets/{LabeledAddressValue-DpSK0MqC-DVc8X4Rj.js → LabeledAddressValue-kKgzA0is-V3nWJqwH.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-_LY7c-ZC-5iSo6J-J.js → LabeledAddressValueField-Bey_bvyv-WhcVyZpQ.js} +3 -3
  90. package/dist/assets/{LabeledControlledCheckBoxField-FB40Z8J7-BETZbc8X.js → LabeledControlledCheckBoxField-CKrD5nfN-BLAx8CgU.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-paSeI8_R-CAnP3CMF.js → LabeledCreatableSingleSelectField-B3x1MZJr-CT42c88y.js} +7 -7
  92. package/dist/assets/LabeledDocumentField-BKPP0tRe-BoY3MkE4.js +41 -0
  93. package/dist/assets/LabeledDropDownFormattedTextField-NsCaPjuf-BLoARtnk.js +59 -0
  94. package/dist/assets/{LabeledText-CyXj8QWV-5OBSwFKi.js → LabeledText-BUZXeSSr-BNwrdOLI.js} +3 -3
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CUT00Vix-Dv7itvOd.js → LabeledUserSingleSelectWithSubtitlesField--jmAGQy--CMARKL0a.js} +7 -7
  96. package/dist/assets/{LabeledZeniRolesDropDownField-D0cQlbhO-CKi5TGdS.js → LabeledZeniRolesDropDownField-Dt5MOz8L-BzDt2F5s.js} +26 -26
  97. package/dist/assets/{LinkJETransactionPage-DaXjiQRp-BRavGLje.js → LinkJETransactionPage-DZZORFZw-hfr5eK-6.js} +8 -8
  98. package/dist/assets/{LowBalancePopup-CdftTvLb-B5AXSsr_.js → LowBalancePopup-BQYkTR6v-Dpy5Y7Om.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-C25i1T4c-cz3f0GSS.js → MagicLinkACHDetailsPage-B2TCqv5k-BD7w19c6.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-B0r3WStl-CqjJtubA.js → MagicLinkDomesticWireDetailsPage-D0Fcshtr-WPQ-07p1.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C-ev-6xJ-AHa24jnu.js → MagicLinkInternationalWireDetailsPage-BfschSvJ-Dd4Vn3ER.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-7JG3V4Qt-DW5o0jbT.js → MagicLinkSuccessPage-CLkxou_Q-BueLZWGy.js} +5 -5
  103. package/dist/assets/{MagicLinkTitleSection-DEe0hhml-B9tHITem.js → MagicLinkTitleSection-BcnZtmCV-D3vo1-CC.js} +3 -3
  104. package/dist/assets/{MailingDetailsSection-Qc65E0w3-Cq67NP7Z.js → MailingDetailsSection-B5PAttoo-Ia41UfJq.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-Dh8meV6d-CsUXa-J0.js → MeetingCalenderPopup-DM1wkT0M-XWyjGw5S.js} +1 -1
  106. package/dist/assets/{Menu-DyfXBl_1-CnbVh3BI.js → Menu-teOpHszN-B4_aUeNn.js} +3 -3
  107. package/dist/assets/{MyBankConnectionsSettingsPage-CCFcVgyX-DYBcczrm.js → MyBankConnectionsSettingsPage-M74Mv2-V-BHyX40MK.js} +13 -13
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DS966wTB-BSQg2TFQ.js → MyPendingActivationChargeCardListPage-jv9dbM48-BfFprZCr.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BRRzMoQL-C-gTgbbX.js → MyProfileSettingsPage-CrhE1vfc-DJYn2Oif.js} +8 -8
  110. package/dist/assets/{NavBarWithPicker-BvWih0k0-C-lpuG0Q.js → NavBarWithPicker-w36OQzVq-8jrXgC9i.js} +2 -2
  111. package/dist/assets/{NavigationArrow-DYSL2aDL-Dac2EKy8.js → NavigationArrow-CUVjQXS6-1gU6OEpd.js} +6 -9
  112. package/dist/assets/{NavigationDots-DyyCcIih-CqG31XCf.js → NavigationDots-Dt6TkUQ7-IyWw7xzb.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DjEvzM4M-BNSK64RX.js → NewGlobalMerchantPage-BAq_UQw1-op2GScme.js} +33 -33
  114. package/dist/assets/NoDataChart-CydgbaO2-w_aLFoRL.js +26 -0
  115. package/dist/assets/{NoDataTable-CXNsBBVP-D2Te1bWz.js → NoDataTable-Akc9VjuK-D6ZoPHVC.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CuuO2Mia-C8-O26Vv.js → NotFoundPage-3pCYWZU4-D50jnl0_.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-C7ilxUAV-DnV_ELoj.js → NotificationSettingsPage-BX5y9Bhs-COL29uYH.js} +16 -16
  118. package/dist/assets/NotificationsListConfig-BrTtuTMy-BDNvMhiy.js +1 -0
  119. package/dist/assets/{NotificationsPage-BjaKD99B-CUvKfjPk.js → NotificationsPage-tre5LIJg-BF-9mVwv.js} +32 -32
  120. package/dist/assets/{OpExByVendorPage-IuDiHnIW-BlDS0zS0.js → OpExByVendorPage-Dagfjaza-DDld7cbG.js} +5 -5
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-FBay7pFs.js → OverlayContainerPage-nhe7xtoR-DaSs4sBz.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-DLvgYpF8-DxqLd7A_.js → PandLWithForecastPage-B6BwG3ZF-_AvyqFlZ.js} +7 -7
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CZ8ZY08D-DGZrFamS.js → PaymentAccountSetupBillingAddressSection-w6QwL-c4-K3uFRIlc.js} +8 -8
  124. package/dist/assets/{PeoplePage-DyqY-rIV-BF8pm7Ll.js → PeoplePage-EFDCrYUk-T7-wlZTX.js} +19 -19
  125. package/dist/assets/{PortfolioAllocationFormPage-DTuKtkwr-BG4VtYhF.js → PortfolioAllocationFormPage-DbGLXM2D-BjP-OUR_.js} +3 -3
  126. package/dist/assets/{PortfolioDetails-DJFeMG4U-DRLekQB_.js → PortfolioDetails-D2RWl4uo-6RAVkUY_.js} +11 -11
  127. package/dist/assets/{ProductsCarousel-CS4_yc80-CBit-Mko.js → ProductsCarousel-o-YsHwnV-CGoV5eH1.js} +7 -7
  128. package/dist/assets/{PromoBaseCards-BZ2m6LfO-Devee57m.js → PromoBaseCards-D21UZaz1-BXsaJgOl.js} +25 -25
  129. package/dist/assets/{QBOConnectionDialog-2vJQuslh-CZnp93ZN.js → QBOConnectionDialog-DOpuFcsk-C6MlbM5w.js} +6 -6
  130. package/dist/assets/{QBOSetupSection-Yv3Xw-yn-BJZtDk-1.js → QBOSetupSection-Dcf_Afvz-DJunnSBU.js} +11 -11
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-tvJ2APRB-CUV7Xc-G.js → ReimbursementApprovalRuleDetailPage-DcDdM_Ss-CbDe9uVe.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-_nXCDa2A-C9-pEbKH.js → ReimbursementApprovalRulesPage-BhdyXjR--DBfuKFGn.js} +8 -8
  133. package/dist/assets/{ReimbursementDetailPage-CtEAsq7u-C73aER4h.js → ReimbursementDetailPage-BSWNsboq-4J24vWsJ.js} +7 -7
  134. package/dist/assets/{ReimbursementPromoPage-BaEX5Ej4-ZDR3rm2j.js → ReimbursementPromoPage-DJTuXxOX-CzJgodWR.js} +16 -16
  135. package/dist/assets/{ReimbursementSetUpPage-DXOqEJL4-giukqjO0.js → ReimbursementSetUpPage-DaIc03J9-CjkHrlyV.js} +12 -12
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-HQg1y1K--D5iUnsw9.js → ReimbursementsBulkReviewDrawerPage-BW6yGqNG-BnVlwyav.js} +1 -1
  137. package/dist/assets/{ReloadCard-stfG9ekP-tZWYlf-X.js → ReloadCard-D3-WJk3W-D2s29SSN.js} +5 -5
  138. package/dist/assets/{ReportTableViewSelector-_RTCd2td-CH9Qen2G.js → ReportTableViewSelector-ZI_K0-D2-By-m2UD1.js} +7 -7
  139. package/dist/assets/{ReportsPage-BIzz5Dt_-D1Q_FIJG.js → ReportsPage-DsILNosH-D0tYLjKu.js} +9 -9
  140. package/dist/assets/{RevenueChart-DeDVVUge-B-qX3axP.js → RevenueChart-CKKeqpBi-UyvcWDiv.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-DZqPpiln-Dx1cGbrV.js → ReviewDetailsPage-BTag8Rn9-DTmho_bj.js} +19 -19
  142. package/dist/assets/{ReviewOverlay-DcBe94Sd-Dvf9-bRZ.js → ReviewOverlay-CmbxFXT5-Bn6N1v3T.js} +14 -14
  143. package/dist/assets/{RoleWithToolTip-DZO2tooH--n3Ca0Pd.js → RoleWithToolTip-D25NUL6y-DukVAPbK.js} +6 -6
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cl8iBII0--TTuFPFw.js → ScheduleDetailsFixedAssetsPage-svqtgWEw-BvVYPrVO.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-D6ZxZ2uU-CW4c5WjB.js → ScheduleDetailsPage-ClifB2yP-CiC5Yaiv.js} +3 -3
  146. package/dist/assets/{ScheduleSequenceTable-eRImHbZn-CPGQ3vC3.js → ScheduleSequenceTable-Bzz4WFsb-D7hD25Ij.js} +50 -50
  147. package/dist/assets/{ScreenRoutes-BOMAdjV3.js → ScreenRoutes-BxQ22zq-.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-BBZNI1Xl-eWhde88L.js → SetUpAccountSection-DHHAhE7n-C6ADn3Xk.js} +103 -103
  149. package/dist/assets/{SetUpDefaultSection--9Qh-utY-BI5o5mIW.js → SetUpDefaultSection-DkoRgSyp-BG63EHcf.js} +16 -16
  150. package/dist/assets/{SignIn-CI0Ik2va-BODAZJP8.js → SignIn-DSJylxLB-TGzVh-Ox.js} +19 -19
  151. package/dist/assets/{SignInScreen-DiCimdAv.js → SignInScreen-2ETG_qty.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-NWkSnIdD-nax5e-Qq.js → SpendManagementListViewPage-NfjbjBOy-CNnp9KH1.js} +13 -13
  153. package/dist/assets/{SpendManagementPerTabPage-CdWwn_b8-DGTjz-D8.js → SpendManagementPerTabPage-CJqqj2pl-vgdrFHgv.js} +47 -47
  154. package/dist/assets/{SpendManagementSection-DGhD95sz-D9wtCyoV.js → SpendManagementSection-C8jUu71n-DVI61rJT.js} +9 -9
  155. package/dist/assets/{SpendMgmtSetupAccountSection-DG4ozkeT-C_tGQMWD.js → SpendMgmtSetupAccountSection-CNcWLqIc-Bk6Q5WZ8.js} +14 -14
  156. package/dist/assets/{StatementItem-BlfBohft-CacjOgZD.js → StatementItem-CV3b0pVj-CWdkAyq6.js} +8 -8
  157. package/dist/assets/StatementsPage-ly5aBK2M-CeJNv0Uj.js +58 -0
  158. package/dist/assets/{StatusSwitcher-C6703BAG-DiX_YNpB.js → StatusSwitcher-CxzYEzIO-Dl4oZKu3.js} +4 -4
  159. package/dist/assets/{SubTabSwitcher-lf9S7Ubj-BbNRnQm4.js → SubTabSwitcher-_XBeoyd8-ky9GU4WA.js} +1 -1
  160. package/dist/assets/{SummaryCard-yghz4PLR-BaTl5JZP.js → SummaryCard-egXz66_a-CFL2HKlw.js} +1 -1
  161. package/dist/assets/TaskManagementPage-CQL5Q6wr-B8c2_TIF.js +508 -0
  162. package/dist/assets/{TimeRangeSwitcher-BoPrOhKX-C7fzpFUc.js → TimeRangeSwitcher-DETvaZov-Jche-37U.js} +5 -5
  163. package/dist/assets/{TimeframeSwitcher-DufweySH-BPYQJKjS.js → TimeframeSwitcher-DRQZAZ8X-B_V6wn8a.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-CuU7mRU9-lO7EaRwM.js +31 -0
  165. package/dist/assets/{TopExCard-DrOjlLiv-BFqCltN9.js → TopExCard-CtEulaIf-Brs7tS7N.js} +6 -6
  166. package/dist/assets/{TopExDetailPage-Ds4zlxKD-D3rgX0xF.js → TopExDetailPage-O4MMssGR-CSX4CqC4.js} +11 -11
  167. package/dist/assets/{TransactionDetailPage-Csl-Qjxp-ecrNVJsv.js → TransactionDetailPage-CfY8i6QF-Bt2lSSKs.js} +47 -47
  168. package/dist/assets/{TransactionList-2HeLZVn9-CruTSDil.js → TransactionList-BABUQprb-zMQcRTpf.js} +13 -13
  169. package/dist/assets/{TransactionListBig-p6iVof9y--08fAwJF.js → TransactionListBig-qJc1PM0U-P62ir1cv.js} +18 -18
  170. package/dist/assets/{TransactionListPage-tnL66tOu-BU3FmX6i.js → TransactionListPage-DuAk6fJT-Bu8_Pd-_.js} +6 -6
  171. package/dist/assets/{TransactionVendorDetailPage-DzkUYyCr-Ce0yEwZl.js → TransactionVendorDetailPage-nHnLQdj7-C3egMB1p.js} +6 -6
  172. package/dist/assets/{TransferDrawerPage-B9MGSdS9-CiTYk0vi.js → TransferDrawerPage-CkbHu9oQ-Bxv-yJF0.js} +28 -28
  173. package/dist/assets/{TreasuryOverviewPage-BEzBuOWn-520FWVXK.js → TreasuryOverviewPage-D9qxqZOy-ZtRAjO03.js} +31 -31
  174. package/dist/assets/{TreasuryPromoPage-C8X4X7iN-B9Joxl5R.js → TreasuryPromoPage-Bn_4ae7Q-q8C2bbYn.js} +15 -15
  175. package/dist/assets/{TreasurySetupPage-Cb_GW75l-BLuBh2kN.js → TreasurySetupPage-CpZDjXwu-BUhJXpTK.js} +6 -6
  176. package/dist/assets/{TreasuryStatementsPage-sOiD2QYm-YS7ms5lR.js → TreasuryStatementsPage-BXDwbrcC-37YEWdU6.js} +7 -7
  177. package/dist/assets/{TreasuryTaxLetterPage-DYzqfHym-B5Ykio8i.js → TreasuryTaxLetterPage-Cwf-e3Jz-BL-Rfzdl.js} +7 -7
  178. package/dist/assets/{TreasuryTransferOrReviewPage-CesaUuNp-D5h1-bi7.js → TreasuryTransferOrReviewPage-BSiDVjnO-CB9llwyL.js} +20 -20
  179. package/dist/assets/{TrendChart-kwGU0d90-DJx5YTVj.js → TrendChart-Dp3QrDED-8QXEOf_A.js} +3 -3
  180. package/dist/assets/{TrendWithTransactions-CUlTYGIm-DTg4Mp-P.js → TrendWithTransactions-D8xzYG_f-De6kCbSg.js} +3 -3
  181. package/dist/assets/{UncategorizedAccountsMappingPage-D76VPNEd-CU_WfE2_.js → UncategorizedAccountsMappingPage-CteEKVJk-pzEnrChq.js} +15 -15
  182. package/dist/assets/{UnitIntegrationPage-BsZCe-lq-DjFjTx_N.js → UnitIntegrationPage-BBAq4_81-C7oc8SpE.js} +4 -4
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-B3tUNhKj-D8M4A5h0.js → UploadAdditionalDocumentOverlay-Drs2Czkg-B7FMUcdL.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-Bk-WKgMh-BXO2PrEq.js → Vendor2FAPopup-DKe-eMoF-BYQMXttT.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-u8a3XF33-Dgqikeaw.js → VendorACHDetailsPage-CTeRlLgu-O3tAwPNR.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-B-RdB79n-3BQeJtFl.js → VendorDetailPage-Cw7Qe1rv-DwV1uxYo.js} +15 -15
  187. package/dist/assets/{VendorDomesticWireDetailsPage-Bhb1Dmge-Boz6LLe-.js → VendorDomesticWireDetailsPage-CYkst1D5-CxFVsRJR.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-DHRivhBg-w7XOZ0uI.js → VendorFiling1099EditablePage-CXQx0jJQ-Dym5ZEfd.js} +10 -10
  189. package/dist/assets/{VendorFirstReviewPage-Cn2GBsyl--vpeGBWE.js → VendorFirstReviewPage-C1yTYtW6-D8Hy4Plk.js} +29 -29
  190. package/dist/assets/{VendorInternationalWireDetailsPage-Cjx1hvUL-CmrfzDq8.js → VendorInternationalWireDetailsPage-CfbGRN9B-DYM9JMPH.js} +7 -7
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BszRCCDh-BPJeVwlb.js → VendorInternationalWireSwiftDetailsPage-DTxy0byj-B-9bRZPN.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-D6VSJUo1-CA-pEbLq.js → VendorsAccountsSection-B_nDMJSn-DKF52Cpa.js} +4 -4
  193. package/dist/assets/{WarningsDrawerPage-DReVGPEj-BAxdAGxT.js → WarningsDrawerPage-Dz3EM7AW-K261X__w.js} +4 -4
  194. package/dist/assets/{ZeniAccountDetailPage-CFTB_WYX-TYUlxYM2.js → ZeniAccountDetailPage-C01gqJIN-5uHVG2CB.js} +28 -28
  195. package/dist/assets/{ZeniAccountListViewPage-BmYgbIuC-D6Hh2q8q.js → ZeniAccountListViewPage-3DEdKuaM-BOxFOXWV.js} +18 -18
  196. package/dist/assets/ZeniAccountNavBarPieces-bthmMpbV-dLoPCb9S.js +14 -0
  197. package/dist/assets/{ZeniAccountPromoPage-AfRVTc8V-Bir6gIQQ.js → ZeniAccountPromoPage-ClgIxS0H-CzsHHXnv.js} +10 -10
  198. package/dist/assets/{ZeniAccountSetupPage-YXJmpz_d-D9Ab9IdN.js → ZeniAccountSetupPage-C-vwyHUJ-Dtwoz0CP.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-CqpcrgAZ-I-SkGlS5.js → ZeniCopyright-CqFabZnN-CJTGK5CO.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-DGkzRyMW-C75Na6ou.js → ZeniTransferAmountSlider-BwHzq-qG-BAnmmq0F.js} +1 -1
  201. package/dist/assets/analytics-BSSiLa6f.js +7 -0
  202. package/dist/assets/{analyticsHelper-BQq2FFmn.js → analyticsHelper-CA1CL3Na.js} +1 -1
  203. package/dist/assets/{analyticsHelper-sgo3pabT-BgFfQOSf.js → analyticsHelper-CvW7m-EV-BpaeVAL0.js} +1 -1
  204. package/dist/assets/{chartTypes-Dj-_K0Gi-mEh3KBw2.js → chartTypes-0tTBFzPe-DXv2oVtL.js} +1 -1
  205. package/dist/assets/{commonDimensions-CKgBEMhT-A8tfCxCO.js → commonDimensions-B68wSFi9-M2W23m0D.js} +1 -1
  206. package/dist/assets/{detailCommon-vtB2ffbe-CA5QwE7k.js → detailCommon-D2RAJL6g-DxVTL_IM.js} +6 -6
  207. package/dist/assets/{downloadPdf-CiC0AXNH-C1RfGDdO.js → downloadPdf-IPGZ8YB9-DocjrP8U.js} +1 -1
  208. package/dist/assets/{index-BJ9YQ2PG.js → index-GMJ2nuUF.js} +3324 -3364
  209. package/dist/assets/{liveblocks-sSQ9JElv.js → liveblocks-BUGn2yQ6.js} +1 -1
  210. package/dist/assets/{mapLoadingInProgressToTreeNode-0MIZwF_y-B8QHYU1y.js → mapLoadingInProgressToTreeNode-DhjVTksX-B_UltjeI.js} +1 -1
  211. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CWaIGa37-JiNMuYJO.js → mapSectionWithAcOnlyToTreeNode-DtR1UNND-CApTkkfy.js} +1 -1
  212. package/dist/assets/{mapSpacerToTreeNode-1Bdqp9WS-xNXAZC8a.js → mapSpacerToTreeNode-oskKbJKo-DLY0eOf4.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-MPZhFWqo-DU6r59rW.js → mapTimeframeBalancesToTreeNode-BkUJJy_y-CDFowGsv.js} +1 -1
  214. package/dist/assets/mui-BgvZYSo0.js +22 -0
  215. package/dist/assets/{play-icon-CF-Mkuir-98sXfI_P.js → play-icon-C_pnFd6Q-CegFata8.js} +1 -1
  216. package/dist/assets/{redux-ByjIRbhZ.js → redux-DmDqXYej.js} +1 -1
  217. package/dist/assets/{routing-Cpaypegg.js → routing-BNz5gZgX.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-D1BwrImS-DjsYQqtW.js → toCOABalancesWithID-e2ImXwdp-1SnM9fzu.js} +1 -1
  219. package/dist/assets/{toChartData-DVTo0PPD-F-3VWOVb.js → toChartData-Dh91kb97-BMfM5MG4.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-QzSX5YTe-Cuy1aR8q.js → treasuryColorHelper-D9SYrM7P-BaWaAPGH.js} +1 -1
  221. package/dist/assets/{uploadAttachment-BxwOR3I5-C41XXv1y.js → uploadAttachment-BZTALP74-ypSfSLhV.js} +29 -29
  222. package/dist/assets/{uploadReceipts-Buvz7DfG-BARgbESN.js → uploadReceipts-BH9fi3Vt-D-CW0ltI.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +5 -5
  225. package/dist/assets/AccountInfoPage-6EVpo7mW-ElHlRk7W.js +0 -18
  226. package/dist/assets/AccountRow-D4iz2vCr-D4oo3rJs.js +0 -298
  227. package/dist/assets/BillingSettingsPage-CAs7DZQz-DXA3xiXV.js +0 -44
  228. package/dist/assets/BillsBulkReviewDrawerPage-DjunAUW0-_aeqHHW3.js +0 -1
  229. package/dist/assets/ChargeCardPromoPage-CXiXee-8-CGyqb2Oz.js +0 -190
  230. package/dist/assets/CheckDepositDrawerPage-JYHyo9Hw-DRy8aFIM.js +0 -206
  231. package/dist/assets/ConfettiBurst-CZuMHGP8-ZppyCJ6x.js +0 -1
  232. package/dist/assets/CustomerOnboardingContainerPage-ByWeMmBf-CUgi5vEF.js +0 -1
  233. package/dist/assets/CustomerOnboardingPage-DHji4ZmF-GtaXVNpu.js +0 -107
  234. package/dist/assets/Dashboard-Cr5ugENA-CyGF57xT.js +0 -1251
  235. package/dist/assets/DomesticWireDetailsPage-RoRpMC50-DJdEDgfd.js +0 -21
  236. package/dist/assets/EditPeoplePage-xDL6VA_r-OmIXflPf.js +0 -55
  237. package/dist/assets/HelpButton-D5ZYyQMh-BseLBuet.js +0 -28
  238. package/dist/assets/InvitePeoplePage-C9AwNqIx-B6fBsOYg.js +0 -12
  239. package/dist/assets/LabeledDocumentField-DiMgPKtR-ebLHKkFT.js +0 -41
  240. package/dist/assets/LabeledDropDownFormattedTextField-DsjpTL6X-DASClPUP.js +0 -59
  241. package/dist/assets/NoDataChart-DE6NV823-DEswUAk2.js +0 -26
  242. package/dist/assets/NotificationsListConfig-TBQMobJ5-qBR1Ircr.js +0 -1
  243. package/dist/assets/StatementsPage-CUpjL5u7-IsFwOPwt.js +0 -58
  244. package/dist/assets/TaskManagementPage-Cf523C5f-CbUDqHnB.js +0 -508
  245. package/dist/assets/TimeframeSwitcherWithToggle-BKwe3K9l-DKc91Lnx.js +0 -31
  246. package/dist/assets/ZeniAccountNavBarPieces-gzy5T7nu-CI0fy98a.js +0 -14
  247. package/dist/assets/analytics-DThoELaW.js +0 -7
  248. package/dist/assets/mui-C5LQ0bMa.js +0 -25
@@ -1,9 +1,9 @@
1
- import{X as U,u as W,M as y,t as le,l as b,j as i,Y as L,be as de,aY as pe,aW as ue,C as B,o as C,a5 as he,d as fe,bf as me,p as w,D as A,H as q,bg as ge,a7 as _e,aB as be,a_ as Se}from"./index-BJ9YQ2PG.js";import{b as T,f as K,n as _}from"./vendor-CnQcJ2Lu.js";import{m as D,l as Y}from"./analyticsHelper-sgo3pabT-BgFfQOSf.js";import{e as we}from"./ReportTableViewSelector-_RTCd2td-CH9Qen2G.js";import{a as X,p as Ce}from"./TimeRangeSwitcher-BoPrOhKX-C7fzpFUc.js";import{M as ye}from"./TimeframeSwitcherWithToggle-BKwe3K9l-DKc91Lnx.js";import{DownloadOverlayButton as xe}from"./DownloadOverlay-Cl_EXjiu-ayFegofe.js";import{a as Oe,r as M,b as J}from"./CollapsableReportTable-DshWn4Fc-CJTqtHsL.js";import{T as Q,I as ee,L as $,D as Ae,g as te}from"./mapSectionWithAcOnlyToTreeNode-CWaIGa37-JiNMuYJO.js";import{s as G}from"./mapTimeframeBalancesToTreeNode-MPZhFWqo-DU6r59rW.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-DufweySH-BPYQJKjS.js";import"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./AccountRow-D4iz2vCr-D4oo3rJs.js";function se({section:e,sectionId:t,numOfBalances:o,config:a}){return J("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(s=>Be({accountGroup:s,sectionType:t,numOfBalances:o,title:s.accountGroupName,isLastNode:!0,config:a}))}function Be({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:s,config:l}){const p=M("section",[],a+t),d={children:[],id:p,isLastNode:s,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:l}},n=J("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),g=n.map((r,u)=>te({account:r,sectionType:t,numOfBalances:o,title:r.account.accountName,config:l,isLastNode:u===n.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:r.children.length>0,isLastNode:u===n.length-1}]}}));return d.children.push(...g),d}function ne({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((s,l)=>te({account:s,sectionType:t,numOfBalances:o,title:s.account.accountName,config:a,isLastNode:l===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:s.children.length>0,isLastNode:l===e.accounts.length-1}]}}))}function oe({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Re(e,t,o,a=!0){Object.assign(e.config,t);const s=ae(o),l=G({balances:s,config:t});return{config:t,headerNodes:a?[l]:[],contentNodes:[l,...e.contentNodes.slice(1)]}}const ae=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function ve(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,s=y.getLocalizedStrings().reports.balanceSheet,l=ae(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&l.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=oe({balances:l,config:t}),n=[];return n.push(d),Object.keys(e.rootSectionsWithSubSectionIds).forEach(g=>{const r=M("title_string_only",[],g),u={children:[],id:r,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[g],data:void 0,numOfBalances:0},config:t}};n.push(u),e.rootSectionsWithSubSectionIds[g].forEach(c=>{if(b.isBalanceSheetReportViewSectionID(c)===!0)if(e.sections[c].accountGroups.length>0)if(c==="equity"){const f=se({sectionId:c,section:e.sections[c],numOfBalances:p,config:t});n.push(...f)}else n.push(Q({section:e.sections[c],sectionType:c,numOfBalances:p,title:s[c],isLastNode:!0,config:t}));else if(c==="equity"){const f=ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:p,config:t});n.push(...f)}else{const f=e.sections[c];n.push(ee({sectionWithAcOnly:f,sectionType:c,numOfBalances:p,title:s[c],isLastNode:!0,config:t}))}else b.isBalanceSheetReportViewCalculatedSectionID(c)===!0&&n.push($({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[d]:[],contentNodes:n}}function Te({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:s}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:s}}}function Le(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,s=y.getLocalizedStrings().reports.cashFlow,l=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&l.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=oe({balances:l,config:t}),n=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(g=>{const r=M("title_string_only",[],g),u={children:[],id:r,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[g],data:void 0,numOfBalances:0},config:t}};n.push(u),e.rootSectionsWithSubSectionIds[g].forEach(c=>{if(b.isCashFlowReportViewSectionID(c)===!0)if(e.sections[c].accountGroups.length>0){const f=se({sectionId:c,section:e.sections[c],numOfBalances:p,config:t});n.push(...f)}else{const f=ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:p,config:t});n.push(...f)}else b.isCashFlowReportViewCalculatedSectionType1ID(c)===!0?n.push(Te({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t})):b.isCashFlowReportViewCalculatedSectionID(c)===!0&&n.push($({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[d]:[],contentNodes:[d,...n]}}function ke(e,t,o=!0){const a=y.getLocalizedStrings().reports,s=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],l=t.mode!=null&&t.mode==="this_period_vs_period_before"&&s.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=G({balances:s,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{b.isPandLReportViewSectionID(n)===!0?d.push(Ae({section:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t})):b.isPandLReportViewCalculatedSectionID(n)===!0&&d.push($({calculatedSection:e.calculatedSections[n],numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:d}}function Ne(e,t,o=!0){const a=y.getLocalizedStrings().reports,s=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],l=t.mode!=null&&t.mode==="this_period_vs_period_before"&&s.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=G({balances:s,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{if(b.isPandLReportViewSectionID(n)===!0&&(e.sections[n].accountGroups.length>0?d.push(Q({section:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t})):d.push(ee({sectionWithAcOnly:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))),b.isPandLReportViewCalculatedSectionID(n)===!0){const g=e.calculatedSections[n];g!=null&&d.push($({calculatedSection:g,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:d}}const H={contentPaddingLeft:new B(w[0],w[0],w[0]),contentPaddingRight:new B(w[3],w[3],w[8])},Pe=_.div`
1
+ import{X as U,u as W,M as y,w as le,l as b,j as i,Y as L,bg as de,aY as pe,aW as ue,C as R,o as C,a9 as he,d as fe,bh as me,p as w,I as A,J as q,bi as ge,ab as _e,b5 as be,a_ as Se}from"./index-GMJ2nuUF.js";import{b as T,f as K,n as _}from"./vendor-CnQcJ2Lu.js";import{m as D,l as Y}from"./analyticsHelper-CvW7m-EV-BpaeVAL0.js";import{e as we}from"./ReportTableViewSelector-ZI_K0-D2-By-m2UD1.js";import{a as J,p as Ce}from"./TimeRangeSwitcher-DETvaZov-Jche-37U.js";import{P as ye}from"./TimeframeSwitcherWithToggle-CuU7mRU9-lO7EaRwM.js";import{DownloadOverlayButton as xe}from"./DownloadOverlay-cne9_fIV-BGdaHI5P.js";import{a as Oe,r as M,b as X}from"./CollapsableReportTable-CHsJ-93l-CZG5w07A.js";import{T as Q,I as ee,L as $,D as Ae,g as te}from"./mapSectionWithAcOnlyToTreeNode-DtR1UNND-CApTkkfy.js";import{s as G}from"./mapTimeframeBalancesToTreeNode-BkUJJy_y-CDFowGsv.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-DRQZAZ8X-B_V6wn8a.js";import"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./AccountRow-vtPa0PJn-DyxPucxT.js";function se({section:e,sectionId:t,numOfBalances:o,config:a}){return X("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(s=>Re({accountGroup:s,sectionType:t,numOfBalances:o,title:s.accountGroupName,isLastNode:!0,config:a}))}function Re({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:s,config:l}){const p=M("section",[],a+t),d={children:[],id:p,isLastNode:s,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:l}},n=X("no_filter",l.filterAccountsWithNilBalances,l.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),g=n.map((r,u)=>te({account:r,sectionType:t,numOfBalances:o,title:r.account.accountName,config:l,isLastNode:u===n.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:n.length>1,hasChildren:r.children.length>0,isLastNode:u===n.length-1}]}}));return d.children.push(...g),d}function ne({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((s,l)=>te({account:s,sectionType:t,numOfBalances:o,title:s.account.accountName,config:a,isLastNode:l===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:s.children.length>0,isLastNode:l===e.accounts.length-1}]}}))}function oe({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Be(e,t,o,a=!0){Object.assign(e.config,t);const s=ae(o),l=G({balances:s,config:t});return{config:t,headerNodes:a?[l]:[],contentNodes:[l,...e.contentNodes.slice(1)]}}const ae=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function ve(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,s=y.getLocalizedStrings().reports.balanceSheet,l=ae(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&l.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=oe({balances:l,config:t}),n=[];return n.push(d),Object.keys(e.rootSectionsWithSubSectionIds).forEach(g=>{const r=M("title_string_only",[],g),u={children:[],id:r,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[g],data:void 0,numOfBalances:0},config:t}};n.push(u),e.rootSectionsWithSubSectionIds[g].forEach(c=>{if(b.isBalanceSheetReportViewSectionID(c)===!0)if(e.sections[c].accountGroups.length>0)if(c==="equity"){const f=se({sectionId:c,section:e.sections[c],numOfBalances:p,config:t});n.push(...f)}else n.push(Q({section:e.sections[c],sectionType:c,numOfBalances:p,title:s[c],isLastNode:!0,config:t}));else if(c==="equity"){const f=ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:p,config:t});n.push(...f)}else{const f=e.sections[c];n.push(ee({sectionWithAcOnly:f,sectionType:c,numOfBalances:p,title:s[c],isLastNode:!0,config:t}))}else b.isBalanceSheetReportViewCalculatedSectionID(c)===!0&&n.push($({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[d]:[],contentNodes:n}}function Te({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:s}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:s}}}function Le(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,s=y.getLocalizedStrings().reports.cashFlow,l=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&l.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,d=oe({balances:l,config:t}),n=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(g=>{const r=M("title_string_only",[],g),u={children:[],id:r,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[g],data:void 0,numOfBalances:0},config:t}};n.push(u),e.rootSectionsWithSubSectionIds[g].forEach(c=>{if(b.isCashFlowReportViewSectionID(c)===!0)if(e.sections[c].accountGroups.length>0){const f=se({sectionId:c,section:e.sections[c],numOfBalances:p,config:t});n.push(...f)}else{const f=ne({sectionWithAcOnly:e.sections[c],sectionType:c,numOfBalances:p,config:t});n.push(...f)}else b.isCashFlowReportViewCalculatedSectionType1ID(c)===!0?n.push(Te({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t})):b.isCashFlowReportViewCalculatedSectionID(c)===!0&&n.push($({calculatedSection:e.calculatedSections[c],numOfBalances:p,title:s[c],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[d]:[],contentNodes:[d,...n]}}function ke(e,t,o=!0){const a=y.getLocalizedStrings().reports,s=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],l=t.mode!=null&&t.mode==="this_period_vs_period_before"&&s.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=G({balances:s,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{b.isPandLReportViewSectionID(n)===!0?d.push(Ae({section:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t})):b.isPandLReportViewCalculatedSectionID(n)===!0&&d.push($({calculatedSection:e.calculatedSections[n],numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))}),{config:t,headerNodes:o?[p]:[],contentNodes:d}}function Ne(e,t,o=!0){const a=y.getLocalizedStrings().reports,s=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],l=t.mode!=null&&t.mode==="this_period_vs_period_before"&&s.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=G({balances:s,config:t}),d=[];return d.push(p),e.idsInOrder.forEach(n=>{if(b.isPandLReportViewSectionID(n)===!0&&(e.sections[n].accountGroups.length>0?d.push(Q({section:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t})):d.push(ee({sectionWithAcOnly:e.sections[n],sectionType:n,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))),b.isPandLReportViewCalculatedSectionID(n)===!0){const g=e.calculatedSections[n];g!=null&&d.push($({calculatedSection:g,numOfBalances:l,title:a.sections[n],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:d}}const Z={contentPaddingLeft:new R(w[0],w[0],w[0]),contentPaddingRight:new R(w[3],w[3],w[8])},Pe=_.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${C.sp2};
5
5
  background-color: ${e=>e.theme.colors.grey4};
6
- `;function Ie({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:s,onAdditionalBalanceSelectionChanged:l,onAccountBalanceClick:p,onTableScroll:d,onElementCollapseStateChanged:n,isCompareModeOn:g}){const r=U(),u=W(),[c,f]=T.useState(void 0),[F,N]=T.useState(void 0),R=!(r==="small"||r==="medium-compact"),j="name+balances_actual",E=g===!0?"this_period_vs_period_before":"none",x=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(V=>b.toTimeframeTick(V));break}case"profit_and_loss_by_classes":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(V=>b.toTimeframeTick(V));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>b.toTimeframeTick(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>b.toTimeframeTick(h));break}}return m.length>0&&m.find(h=>h.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:E,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Se(),showClassAccountNumber:s};if(c==null||!q(F,e)){const h=Me(e,m,R);N(e),f(h)}else{const h=Re(c,m,e,R);f(h)}},[g,e]);const[O,P]=T.useState(5),I=m=>{const h=m+135;P(h)},re=m=>m?.trackPageLoaded($e(e));return c!=null?i.jsxs(i.Fragment,{children:[i.jsx(ge,{analytics:a,onLoad:re}),i.jsx(Pe,{height:O,children:i.jsx(Oe,{backgroundColor:new _e(u.colors.grey4),rootNodes:c,type:j,compareMode:x(),isSticky:{isStickyHeader:R,isStickyName:R},treeNodePadding:{left:H.contentPaddingLeft.value(r),right:H.contentPaddingRight.value(r)},onAccountClick:p==null?void 0:(m,h)=>{p(m,h)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>l?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,h)=>n?.(e.reportId,m,h),onReportTableHeightChanged:I,onScroll:m=>d?.(e.reportId,m)})})]}):null}const Me=(e,t,o=!0)=>{switch(e.reportId){case"profit_and_loss":return Ne(e,t,o);case"profit_and_loss_by_classes":return ke(e,t,o);case"cash_flow":return Le(e,t,o);case"balance_sheet":return ve(e,t,o);default:return}},$e=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},Fe=_.div`
6
+ `;function Ie({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:s,onAdditionalBalanceSelectionChanged:l,onAccountBalanceClick:p,onTableScroll:d,onElementCollapseStateChanged:n,isCompareModeOn:g}){const r=U(),u=W(),[c,f]=T.useState(void 0),[F,N]=T.useState(void 0),B=!(r==="small"||r==="medium-compact"),j="name+balances_actual",E=g===!0?"this_period_vs_period_before":"none",x=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(V=>b.toTimeframeTick(V));break}case"profit_and_loss_by_classes":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(V=>b.toTimeframeTick(V));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>b.toTimeframeTick(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>b.toTimeframeTick(h));break}}return m.length>0&&m.find(h=>h.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:E,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Se(),showClassAccountNumber:s};if(c==null||!q(F,e)){const h=Me(e,m,B);N(e),f(h)}else{const h=Be(c,m,e,B);f(h)}},[g,e]);const[O,P]=T.useState(5),I=m=>{const h=m+135;P(h)},re=m=>m?.trackPageLoaded($e(e));return c!=null?i.jsxs(i.Fragment,{children:[i.jsx(ge,{analytics:a,onLoad:re}),i.jsx(Pe,{height:O,children:i.jsx(Oe,{backgroundColor:new _e(u.colors.grey4),rootNodes:c,type:j,compareMode:x(),isSticky:{isStickyHeader:B,isStickyName:B},treeNodePadding:{left:Z.contentPaddingLeft.value(r),right:Z.contentPaddingRight.value(r)},onAccountClick:p==null?void 0:(m,h)=>{p(m,h)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>l?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,h)=>n?.(e.reportId,m,h),onReportTableHeightChanged:I,onScroll:m=>d?.(e.reportId,m)})})]}):null}const Me=(e,t,o=!0)=>{switch(e.reportId){case"profit_and_loss":return Ne(e,t,o);case"profit_and_loss_by_classes":return ke(e,t,o);case"cash_flow":return Le(e,t,o);case"balance_sheet":return ve(e,t,o);default:return}},$e=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},Fe=_.div`
7
7
  display: flex;
8
8
  flex-direction: row;
9
9
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
@@ -49,19 +49,19 @@ import{X as U,u as W,M as y,t as le,l as b,j as i,Y as L,be as de,aY as pe,aW as
49
49
  width: 160px;
50
50
  left: 63%;
51
51
  }
52
- `;function De({reportId:e,isSelected:t,onClick:o}){const a=s=>{switch(s){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[s];default:return console.warn("Unsupported report"),""}};return i.jsx(Ee,{"data-testid":L("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function ze({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=s=>{o?.(s)};return i.jsx(Fe,{"data-testid":L("report-switcher-container"),children:i.jsx(je,{"data-testid":L("report-switcher-content"),children:e.map(s=>s!=="profit_and_loss_by_classes"&&i.jsxs("div",{children:[i.jsx(De,{reportId:s,isSelected:t===s,onClick:a}),i.jsx(Ve,{className:`Slider ${t}`})]},`reportSegment-${s}`))})})}const k={contentContainerLeftRightMargin:new B(w[3],w[3],w[8]),contentRightPadding:new B(w[3],w[3],w[8]),tickSkelectionContainerWidth:new B(343,600,905,1240)},Ue=new B(4,4),We=new B(4,4),Ge={selectedNumberOfPeriods:(e,t)=>e?We.value(t):Ue.value(t)},Ye=_.div`
52
+ `;function De({reportId:e,isSelected:t,onClick:o}){const a=s=>{switch(s){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[s];default:return console.warn("Unsupported report"),""}};return i.jsx(Ee,{"data-testid":L("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function ze({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=s=>{o?.(s)};return i.jsx(Fe,{"data-testid":L("report-switcher-container"),children:i.jsx(je,{"data-testid":L("report-switcher-content"),children:e.map(s=>s!=="profit_and_loss_by_classes"&&i.jsxs("div",{children:[i.jsx(De,{reportId:s,isSelected:t===s,onClick:a}),i.jsx(Ve,{className:`Slider ${t}`})]},`reportSegment-${s}`))})})}const k={contentContainerLeftRightMargin:new R(w[3],w[3],w[8]),contentRightPadding:new R(w[3],w[3],w[8]),tickSkelectionContainerWidth:new R(343,600,905,1240)},Ue=new R(4,4),We=new R(4,4),Ge={selectedNumberOfPeriods:(e,t)=>e?We.value(t):Ue.value(t)},Ye=_.div`
53
53
  display: flex;
54
54
  flex: 1 1 auto;
55
55
  min-height: 100%;
56
56
  flex-direction: column;
57
57
  background-color: ${e=>e.theme.colors.grey4};
58
- `,He=_.div`
58
+ `,Ze=_.div`
59
59
  display: flex;
60
60
  flex: 1 1 auto;
61
61
  flex-direction: column;
62
62
  height: calc(100vh - ${C.sp10});
63
63
  margin: ${e=>`${C.sp2} ${C.sp0} ${C.sp0} ${k.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
64
- `,Ze=_.div`
64
+ `,He=_.div`
65
65
  display: flex;
66
66
  width: 100%;
67
67
  height: 100%;
@@ -79,7 +79,7 @@ import{X as U,u as W,M as y,t as le,l as b,j as i,Y as L,be as de,aY as pe,aW as
79
79
  flex-direction: column;
80
80
  justify-content: center;
81
81
  align-items: center;
82
- `,Xe=_.div`
82
+ `,Je=_.div`
83
83
  height: 96px;
84
84
  width: 96px;
85
85
  background: ${e=>e.theme.colors.background};
@@ -94,10 +94,10 @@ import{X as U,u as W,M as y,t as le,l as b,j as i,Y as L,be as de,aY as pe,aW as
94
94
  color: ${e=>e.theme.colors.primary};
95
95
  }
96
96
  }
97
- `,Je=_(he)`
97
+ `,Xe=_(he)`
98
98
  margin-top: ${C.sp3};
99
99
  color: ${e=>e.theme.colors.hero};
100
- `,ie=({style:e,fetchState:t})=>t==="In-Progress"||t==="Not-Started"?i.jsx(Ze,{style:e,children:i.jsx(fe,{size:"ExtraLarge",start:!0})}):null,S=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},z=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let s=Ge.selectedNumberOfPeriods(t,o);return a!=null&&(s=Math.min(s,a)),s};function Tt(e){const t=U(),o=W(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:s,onAdditionalBalanceSelectionChanged:l,onTimeframeSelectionChanged:p,isCompareMode:d,selectedReportAndTimeframeFetchState:n,onClickMenuIcon:g}=e,r=(x,O)=>{x!==u?.accountViewMode&&a?.(x),O&&s?.(O)};T.useEffect(()=>{if(e.fetchState==="Completed"){const x=S(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(x,e.isCompareMode,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const u=tt(e),c=y.getLocalizedStrings().reports.common,f=le(),F=f!=null&&b.hasInvestorBankerLevelAccess(f.loggedInUserRole)?"detailed":"more_detailed",N=f!=null&&b.hasInvestorBankerLevelAccess(f.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&u?.accountViewMode==="account_group"&&N.push("detailed");const[R,j]=K.useState(N.includes("more_detailed")?"detailed":"more_detailed"),E={selectedFormat:R,disabledFormatForRole:N,roleBasedClassesSelectedFormat:F,setSelectedFormat:j};if(n.fetchState==="Error"||e.fetchState==="Error")return i.jsxs(Ke,{"data-testid":L("report-page-error-reload-page"),children:[i.jsx(Xe,{"data-testid":L("report-page-error-reload-icon"),onClick:e.onReloadReport,children:i.jsx(de,{})}),i.jsx(Je,{children:c.failed})]});if(n.fetchState!=="Completed"&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"))return i.jsx(ie,{fetchState:e.fetchState});{const x=i.jsx(pe,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:u!=null&&e.dataAvailable!=null?i.jsx(xe,{defaultOptions:u,analytics:e.analytics,referrer:v(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:E,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:r,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(O,P,I)=>{l(d,O,P,I)},onTimeframeSelectionChanged:(O,P,I)=>{p?.(O,P,I)}}):i.jsx(i.Fragment,{})}}});return i.jsxs(Ye,{children:[i.jsx(ue,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:g,rightSideComponent:x,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),i.jsx(Qe,{...e})]})}}function Qe(e){const t=U(),o=W(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:s}=e,l=["month","quarter","year"],p=(r,u)=>{e.analytics?.trackCompareFilterChange(r==="this_period_vs_last_period_percent"?"percentage":"amount",v(e.selectedReport),D(e.selectedTimeframe),u);const c=Array.from(new Set(r==="this_period_vs_last_period_percent"?[...S(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(f=>f!=="this_period_vs_last_period"):[...S(e).filter.additionalBalances,"this_period_vs_last_period"].filter(f=>f!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,c,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},d=(r,u)=>{r!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(r),u&&e.onUpdateClassesToFilterOut?.(u)},n=S(e),g=a.current?.clientWidth??k.tickSkelectionContainerWidth.value(t);return i.jsxs(He,{windowSize:t,"data-testid":L("reports-page-content-container"),children:[i.jsx(ot,{windowSize:t,ref:a,children:i.jsx(ye,{timeframe:{allowedTimeframes:l,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:r=>{e.analytics?.trackTimeframeSwitch(D(r),v(e.selectedReport)),e.onTimeframeSelectionChanged?.(r,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:r=>{e.analytics?.trackCompareMode(r,v(e.selectedReport),D(e.selectedTimeframe));const u=S(e).filter;e.onAdditionalBalanceSelectionChanged?.(r,u.additionalBalances,u.balancesRange.numberOfPeriods)}}})}),s.fetchState==="Not-Started"||s.fetchState==="In-Progress"?i.jsx(it,{windowSize:t,children:i.jsx(ct,{children:i.jsx(me,{width:g,height:X-w[2],backgroundColor:o.colors.grey3,style:{borderRadius:C.sp2}})})}):i.jsx(at,{windowSize:t,children:i.jsx(Ce,{firstMonthOfFY:n.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Z(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Z(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(r,u)=>{e.analytics?.trackDateRangeFilterChange(v(e.selectedReport),"range filter",e.isCompareMode,Y(n.firstMonthOfFY,e.selectedTimeframe,u)),e.onThisPeriodChanged?.(u,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:r=>{const u=et(e.allTimeframeTicks,r.fromEnd);e.analytics?.trackDateRangeFilterChange(v(e.selectedReport),"range filter",e.isCompareMode,Y(n.firstMonthOfFY,e.selectedTimeframe,u.thisPeriod)),e.onCOABalancesRangeChanged?.(u)}})}),i.jsx(rt,{windowSize:t,children:i.jsx(ze,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:r=>{e.analytics?.trackPageLoaded(st(r)),r==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(r)}})}),s.fetchState==="Not-Started"||s.fetchState==="In-Progress"?i.jsx(ie,{style:{boxShadow:"none",backgroundColor:"inherit"},fetchState:s.fetchState}):i.jsxs(i.Fragment,{children:[i.jsx(ce,{report:S(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser}),b.isPAndLReport(e.selectedReport)?i.jsx(qe,{windowSize:t,children:i.jsx(we,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:d,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode})}):null]})]})}const Z=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},et=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function tt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,d=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(d!=null&&d.balances.length>0){const n=p==="ascending_date"?d.balances.length-1:0;t=d.balances[n]}}const o=S(e).firstMonthOfFY,a=S(e).bookCloseDate,s=S(e).dataAvailable,l=S(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:s,timeframe:e.selectedTimeframe,additionalBalances:l,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const v=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},st=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ce=K.memo(Ie,(e,t)=>nt(e,t,["report","analytics","isCompareModeOn","isZeniUser"]));ce.displayName="Reports table";const nt=(e,t,o)=>o.reduce((a,s)=>a===!0&&q(e[`${s}`],t[`${s}`]),!0),ot=_.div`
100
+ `,ie=({style:e,fetchState:t})=>t==="In-Progress"||t==="Not-Started"?i.jsx(He,{style:e,children:i.jsx(fe,{size:"ExtraLarge",start:!0})}):null,S=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},z=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let s=Ge.selectedNumberOfPeriods(t,o);return a!=null&&(s=Math.min(s,a)),s};function Tt(e){const t=U(),o=W(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:s,onAdditionalBalanceSelectionChanged:l,onTimeframeSelectionChanged:p,isCompareMode:d,selectedReportAndTimeframeFetchState:n,onClickMenuIcon:g}=e,r=(x,O)=>{x!==u?.accountViewMode&&a?.(x),O&&s?.(O)};T.useEffect(()=>{if(e.fetchState==="Completed"){const x=S(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(x,e.isCompareMode,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const u=tt(e),c=y.getLocalizedStrings().reports.common,f=le(),F=f!=null&&b.hasInvestorBankerLevelAccess(f.loggedInUserRole)?"detailed":"more_detailed",N=f!=null&&b.hasInvestorBankerLevelAccess(f.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&u?.accountViewMode==="account_group"&&N.push("detailed");const[B,j]=K.useState(N.includes("more_detailed")?"detailed":"more_detailed"),E={selectedFormat:B,disabledFormatForRole:N,roleBasedClassesSelectedFormat:F,setSelectedFormat:j};if(n.fetchState==="Error"||e.fetchState==="Error")return i.jsxs(Ke,{"data-testid":L("report-page-error-reload-page"),children:[i.jsx(Je,{"data-testid":L("report-page-error-reload-icon"),onClick:e.onReloadReport,children:i.jsx(de,{})}),i.jsx(Xe,{children:c.failed})]});if(n.fetchState!=="Completed"&&(e.fetchState==="In-Progress"||e.fetchState==="Not-Started"))return i.jsx(ie,{fetchState:e.fetchState});{const x=i.jsx(pe,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:u!=null&&e.dataAvailable!=null?i.jsx(xe,{defaultOptions:u,analytics:e.analytics,referrer:v(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:E,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:r,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(O,P,I)=>{l(d,O,P,I)},onTimeframeSelectionChanged:(O,P,I)=>{p?.(O,P,I)}}):i.jsx(i.Fragment,{})}}});return i.jsxs(Ye,{children:[i.jsx(ue,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:g,rightSideComponent:x,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),i.jsx(Qe,{...e})]})}}function Qe(e){const t=U(),o=W(),a=T.useRef(null),{selectedReportAndTimeframeFetchState:s}=e,l=["month","quarter","year"],p=(r,u)=>{e.analytics?.trackCompareFilterChange(r==="this_period_vs_last_period_percent"?"percentage":"amount",v(e.selectedReport),D(e.selectedTimeframe),u);const c=Array.from(new Set(r==="this_period_vs_last_period_percent"?[...S(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(f=>f!=="this_period_vs_last_period"):[...S(e).filter.additionalBalances,"this_period_vs_last_period"].filter(f=>f!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,c,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},d=(r,u)=>{r!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(r),u&&e.onUpdateClassesToFilterOut?.(u)},n=S(e),g=a.current?.clientWidth??k.tickSkelectionContainerWidth.value(t);return i.jsxs(Ze,{windowSize:t,"data-testid":L("reports-page-content-container"),children:[i.jsx(ot,{windowSize:t,ref:a,children:i.jsx(ye,{timeframe:{allowedTimeframes:l,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:r=>{e.analytics?.trackTimeframeSwitch(D(r),v(e.selectedReport)),e.onTimeframeSelectionChanged?.(r,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:r=>{e.analytics?.trackCompareMode(r,v(e.selectedReport),D(e.selectedTimeframe));const u=S(e).filter;e.onAdditionalBalanceSelectionChanged?.(r,u.additionalBalances,u.balancesRange.numberOfPeriods)}}})}),s.fetchState==="Not-Started"||s.fetchState==="In-Progress"?i.jsx(it,{windowSize:t,children:i.jsx(ct,{children:i.jsx(me,{width:g,height:J-w[2],backgroundColor:o.colors.grey3,style:{borderRadius:C.sp2}})})}):i.jsx(at,{windowSize:t,children:i.jsx(Ce,{firstMonthOfFY:n.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:H(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:H(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(r,u)=>{e.analytics?.trackDateRangeFilterChange(v(e.selectedReport),"range filter",e.isCompareMode,Y(n.firstMonthOfFY,e.selectedTimeframe,u)),e.onThisPeriodChanged?.(u,z({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:r=>{const u=et(e.allTimeframeTicks,r.fromEnd);e.analytics?.trackDateRangeFilterChange(v(e.selectedReport),"range filter",e.isCompareMode,Y(n.firstMonthOfFY,e.selectedTimeframe,u.thisPeriod)),e.onCOABalancesRangeChanged?.(u)}})}),i.jsx(rt,{windowSize:t,children:i.jsx(ze,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:r=>{e.analytics?.trackPageLoaded(st(r)),r==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(r)}})}),s.fetchState==="Not-Started"||s.fetchState==="In-Progress"?i.jsx(ie,{style:{boxShadow:"none",backgroundColor:"inherit"},fetchState:s.fetchState}):i.jsxs(i.Fragment,{children:[i.jsx(ce,{report:S(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser}),b.isPAndLReport(e.selectedReport)?i.jsx(qe,{windowSize:t,children:i.jsx(we,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:d,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode})}):null]})]})}const H=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},et=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function tt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,d=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(d!=null&&d.balances.length>0){const n=p==="ascending_date"?d.balances.length-1:0;t=d.balances[n]}}const o=S(e).firstMonthOfFY,a=S(e).bookCloseDate,s=S(e).dataAvailable,l=S(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:s,timeframe:e.selectedTimeframe,additionalBalances:l,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const v=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},st=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ce=K.memo(Ie,(e,t)=>nt(e,t,["report","analytics","isCompareModeOn","isZeniUser"]));ce.displayName="Reports table";const nt=(e,t,o)=>o.reduce((a,s)=>a===!0&&q(e[`${s}`],t[`${s}`]),!0),ot=_.div`
101
101
  padding-right: ${e=>k.contentRightPadding.valuePx(e.windowSize)};
102
102
  `,at=_.div`
103
103
  margin-top: ${C.sp3};
@@ -109,7 +109,7 @@ import{X as U,u as W,M as y,t as le,l as b,j as i,Y as L,be as de,aY as pe,aW as
109
109
  display: flex;
110
110
  flex-direction: row;
111
111
  justify-content: flex-start;
112
- min-height: ${X}px;
112
+ min-height: ${J}px;
113
113
  box-sizing: content-box;
114
114
  width: 100%;
115
115
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{u as A,j as a,M as D,X as de,Y as Ae,ai as Q,b5 as Te,p as E,b6 as J,au as ee,v as M,at as ae,aa as re,b7 as oe,b8 as ge,o as m,b9 as te,g,H as Fe,ba as pe,bb as me,C as xe,bc as fe,q as R,bd as F,ao as V}from"./index-BJ9YQ2PG.js";import{b as P,f as le,n as x}from"./vendor-CnQcJ2Lu.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-Dj-_K0Gi-mEh3KBw2.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-D1BwrImS-DjsYQqtW.js";import{V as Z}from"./toChartData-DVTo0PPD-F-3VWOVb.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
1
+ import{u as A,j as a,M as D,X as de,Y as Ae,ao as Q,b7 as Te,p as E,b8 as J,aB as ee,q as M,aA as ae,aJ as re,b9 as oe,ba as ge,o as m,bb as te,g,J as Fe,bc as pe,bd as me,C as xe,be as fe,s as R,bf as F,av as V}from"./index-GMJ2nuUF.js";import{b as P,f as le,n as x}from"./vendor-CnQcJ2Lu.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-0tTBFzPe-DXv2oVtL.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-e2ImXwdp-1SnM9fzu.js";import{V as Z}from"./toChartData-Dh91kb97-BMfM5MG4.js";const q={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -1,11 +1,11 @@
1
- import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It,cE as le,cF as At,l as d,cG as Pt,cH as kt,Y as j,cI as Mt,_ as k,cJ as Bt,cK as Nt,cL as ke,cM as Me,cN as Be,v as q,cO as O,cP as z,cQ as _,g as S,cR as Ft,cS as Rt,cT as Et,cU as Lt,bs as Ne,o as n,a3 as Ot,p as c,b as zt,bo as _t,Q as Wt,h as Ut,cV as Ht,bF as Yt,q as se,f as de,cW as Zt,cX as Vt,aA as qt,k as Gt,an as Kt,Z as Xe,b4 as Xt,w as Qe,aN as Qt,cY as Jt}from"./index-BJ9YQ2PG.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-CdftTvLb-B5AXSsr_.js";import{S as W}from"./LabeledText-CyXj8QWV-5OBSwFKi.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Fe,common:{currency:T,labels:Re,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=vt(),m=Tt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,F=`dashboard_${m.currentTenant?.companyId}`,R=p.largeLabelWidth.value(s),E=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Fe.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[E,J,ye,me,ue]);const v=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:A?.code=="approved"&&H?.code?H:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&H?.code?H:A,ne=()=>{ce()},be=()=>{ce()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Z=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",v?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(v?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(v?.code!=null?v.code==="draft"||A?.code==="approved":!0),b=P&&!it,ve=Oe(b,Z,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===T.currencyCode?Rt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Fe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=v?.code??"draft",Ce=A?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Ae=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Ae,Pe):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Ae,Pe)}}},Te=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",v?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ze,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ze,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(Tn,{children:a.duplicateBillPayWarning}),t.jsxs(vn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ge,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Fn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(qe,{})}),t.jsxs(Rn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ke,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ye,{children:t.jsx(Be,{amount:yt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ye,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Ft(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(G,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:Y.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:F,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==T.currencyCode?Ee.conversionAmountColon:Re.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Re.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,Z,s)}},primaryBtn:{label:Oe(b,Z,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):Te()},style:{width:ze(!0,P,b,Z,s)}},rightSideComponent:P&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
1
+ import{X as vt,w as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It,cF as le,cG as kt,l as d,cH as Pt,cI as At,Y as j,cJ as Mt,_ as A,cK as Bt,cL as Nt,cM as Ae,cN as Me,cO as Be,q as K,cP as O,cQ as z,cR as _,g as S,cS as Rt,cT as Ft,cU as Et,cV as Lt,bu as Ne,o as n,a7 as Ot,p as c,b as zt,bq as _t,Q as Wt,h as Ut,cW as Zt,ah as Ht,s as se,f as de,cX as Yt,cY as Vt,cZ as Kt,k as qt,as as Gt,Z as Xe,b6 as Xt,v as Je,aN as Jt,c_ as Qt}from"./index-GMJ2nuUF.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-BQYkTR6v-Dpy5Y7Om.js";import{S as W}from"./LabeledText-BUZXeSSr-BNwrdOLI.js";import"./mui-BgvZYSo0.js";import"./analytics-BSSiLa6f.js";import"./routing-BNz5gZgX.js";import"./sentry-HDxG13yk.js";import"./redux-DmDqXYej.js";import"./liveblocks-BUGn2yQ6.js";import"./crypto-BURQLTgV.js";const Qe=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Re,common:{currency:T,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=ln,Le=({attachment:e})=>{const[w,x]=U.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(Yt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:J,retryPayment:ot})=>{const s=vt(),m=Tt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,R=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),E=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=jt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Re.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:T.currencyCode,currencySymbol:T.currencySymbol},[rt,ge]=U.useState(!1),[st,xe]=U.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(kn,{})})]}):It(e.paymentDetailsSection?.paymentTo);U.useEffect(()=>{(E?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(me(),ue(),ye())},[E,Q,ye,me,ue]);const v=e.billPayInfo?.stage,k=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:k?.code=="approved"&&Z?.code?Z:k,pt=e.billPayInfo?.isRefundInitiated===!0?mt:k?.code=="approved"&&Z?.code?Z:k,ne=()=>{ce()},be=()=>{ce()},H=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(kt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,Y=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",v?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(v?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(v?.code!=null?v.code==="draft"||k?.code==="approved":!0),b=P&&!it,ve=Oe(b,Y,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===T.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Re.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=v?.code??"draft",Ce=k?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",ke=Qt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,ke,Pe):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,ke,Pe)}}},Te=()=>{je===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",v?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[je,V]=U.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:E?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,je?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(At,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:H?.format(D)??"",paymentType:we,amount:A("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(Ye,{onClick:be,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ye,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(Tn,{children:a.duplicateBillPayWarning}),t.jsxs(vn,{children:[a.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:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(En,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Qe.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(jn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ke,{})}),t.jsx(G,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(qe,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(G,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ue,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ke,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(G,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(G,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Ge,{children:r!=null?Ae.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ze,{children:a.pay}),t.jsx(He,{children:t.jsx(Be,{amount:yt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ze,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Rt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(q,{}),!g&&H!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:H.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(H.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Et(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==T.currencyCode?Ee.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Ee.transactionFee}),t.jsx(oe,{children:A("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:A("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,Y,s)}},primaryBtn:{label:Oe(b,Y,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):Te()},style:{width:ze(!0,P,b,Y,s)}},rightSideComponent:P&&!b&&E.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(An,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
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
- `,_e=i(Qe)`
8
+ `,_e=i(Je)`
9
9
  display: flex;
10
10
  justify-content: space-between;
11
11
  padding-bottom: ${n.sp1};
@@ -13,7 +13,7 @@ import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It
13
13
  color: ${e=>e.theme.colors.brandColorPearl};
14
14
  `,re=i.div`
15
15
  color: ${e=>e.theme.colors.hero};
16
- `,rn=i(Qe)`
16
+ `,rn=i(Je)`
17
17
  display: flex;
18
18
  justify-content: space-between;
19
19
  padding-top: ${n.sp1};
@@ -68,7 +68,7 @@ import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It
68
68
  border-radius: ${n.sp2};
69
69
  margin-bottom: ${n.sp3};
70
70
  margin-top: ${n.sp3};
71
- `,G=i.div`
71
+ `,q=i.div`
72
72
  display: flex;
73
73
  flex: 1;
74
74
  background-color: ${e=>e.theme.colors.grey3};
@@ -102,12 +102,12 @@ import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It
102
102
  `,vn=i(se)`
103
103
  padding-bottom: ${n.sp3};
104
104
  color: ${S.brandColorGoldDark};
105
- `,Tn=i(Yt)`
105
+ `,Tn=i(Ht)`
106
106
  padding-top: ${n.sp3};
107
107
  color: ${S.brandColorGoldDark};
108
108
  `,Ue=i.div`
109
109
  display: flex;
110
- flex-direction: ${e=>Je.includes(e.windowSize)?"column":"row"};
110
+ flex-direction: ${e=>Qe.includes(e.windowSize)?"column":"row"};
111
111
  width: 100%;
112
112
  `,jn=i.div`
113
113
  display: flex;
@@ -121,15 +121,15 @@ import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It
121
121
  `,Cn=i.div`
122
122
  display: flex;
123
123
  padding-top: ${n.sp3};
124
- `,He=i(Gt)`
124
+ `,Ze=i(qt)`
125
125
  display: flex;
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  margin-right: ${n.sp1};
128
- `,Ye=i(Kt)`
128
+ `,He=i(Gt)`
129
129
  display: flex;
130
130
  color: ${e=>e.theme.colors.primary};
131
131
  margin-right: ${n.sp1};
132
- `,Ze=i(_t)`
132
+ `,Ye=i(_t)`
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.hero};
135
135
  width: 20px;
@@ -152,7 +152,7 @@ import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It
152
152
  padding-left: ${n.sp0};
153
153
  z-index: 2;
154
154
  background-color: ${e=>e.theme.colors.grey4};
155
- `,An=i(zt)`
155
+ `,kn=i(zt)`
156
156
  height: ${n.sp3};
157
157
  width: ${n.sp3};
158
158
  color: ${e=>e.theme.colors.hero};
@@ -162,7 +162,7 @@ import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It
162
162
  margin-left: ${n.sp2};
163
163
  margin-top: ${e=>p.iconContainerMarginTop.valuePx(e.size)};
164
164
  align-self: ${e=>e.size==="small"?"baseline":"center"};
165
- `,kn=i(de)`
165
+ `,An=i(de)`
166
166
  color: ${e=>e.theme.colors.grey1};
167
167
  display: flex;
168
168
  flex-wrap: wrap;
@@ -198,35 +198,35 @@ import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It
198
198
  display: flex;
199
199
  align-items: center;
200
200
  margin-right: ${n.sp1};
201
- `,qe=i(qt)`
201
+ `,Ke=i(Kt)`
202
202
  cursor: pointer;
203
203
  width: ${n.sp4};
204
204
  height: ${n.sp4};
205
205
  color: ${e=>e.theme.colors.hero};
206
- `,K=i(se)`
206
+ `,G=i(se)`
207
207
  display: flex;
208
208
  color: ${e=>e.theme.colors.hero};
209
209
  align-items: center;
210
210
  min-width: 142px;
211
211
  flex-grow: 1;
212
- `,Ge=i(se)`
212
+ `,qe=i(se)`
213
213
  display: flex;
214
214
  color: ${e=>e.theme.colors.primary};
215
215
  align-items: center;
216
216
  margin-right: ${e=>p.infoMarginRight.valuePx(e.windowSize)};
217
217
  min-width: ${e=>p.infoMinWidth.valuePx(e.windowSize)};
218
218
  justify-content: flex-end;
219
- `,Fn=i.div`
219
+ `,Rn=i.div`
220
220
  display: flex;
221
221
  cursor: pointer;
222
222
  column-gap: ${n.sp1};
223
223
  margin-left: ${n.sp5};
224
- `,Ke=i.div`
224
+ `,Ge=i.div`
225
225
  width: 120px;
226
226
  display: flex;
227
227
  justify-content: flex-end;
228
228
  align-items: center;
229
- `,Rn=i.div`
229
+ `,Fn=i.div`
230
230
  display: flex;
231
231
  flex-grow: 1;
232
232
  cursor: pointer;
@@ -260,7 +260,7 @@ import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It
260
260
  `,On=i(de)`
261
261
  margin-top: ${n.sp3};
262
262
  color: ${S.alert};
263
- `,zn=i(Ht)`
263
+ `,zn=i(Zt)`
264
264
  min-width: ${n.sp4};
265
265
  height: ${n.sp4};
266
266
  width: ${n.sp4};
@@ -271,7 +271,7 @@ import{X as vt,t as Tt,C as y,cA as jt,M as St,cB as Ct,cC as Dt,j as t,cD as It
271
271
  display: flex;
272
272
  justify-content: flex-end;
273
273
  margin-right: ${e=>p.footerRightIconMarginRight.valuePx(e.windowSize)};
274
- `,Wn=i(Qt)`
274
+ `,Wn=i(Jt)`
275
275
  cursor: pointer;
276
276
  color: ${e=>e.theme.colors.hero};
277
277
  width: ${n.sp4};
@@ -1,49 +1,49 @@
1
- import{X as B,j as e,Y as x,o as r,a3 as C,C as d,a2 as L,Q as M,h as W,g as s,q as y,b_ as R,d as I,w as j,az as D,p as n,ec as G,ax as A,ji as F,jj as J}from"./index-BJ9YQ2PG.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const a={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])},Q={title:new M("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return e.jsxs(q,{children:[e.jsx(U,{windowSize:l,children:e.jsx(V,{children:e.jsx(Z,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(H,{windowSize:l,children:[e.jsxs(K,{windowSize:l,children:[e.jsx(N,{children:e.jsx(O,{windowSize:l,children:i})}),e.jsx(Y,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(_,{windowSize:l,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>P(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:X(o)}),e.jsxs(oi,{children:[e.jsxs(m,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(m,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx($,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(C,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},X=i=>i.reviewStatus.isLoading?e.jsx(I,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(li,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(ai,{}),q=t.div`
1
+ import{X as B,j as e,Y as m,o as r,a7 as C,C as d,a6 as L,Q as M,h as W,g as s,s as $,b$ as R,d as I,v as j,hF as D,p as n,ef as G,ee as A,jm as F,jn as J}from"./index-GMJ2nuUF.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const a={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])},Q={title:new M("h6Regular","h5Regular")},mi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const l=B();return e.jsxs(H,{children:[e.jsx(V,{windowSize:l,children:e.jsx(Z,{children:e.jsx(_,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:k,"data-testid":m("review-overlay-close",i)})})})})}),e.jsxs(K,{windowSize:l,children:[e.jsxs(O,{windowSize:l,children:[e.jsx(Y,{children:e.jsx(q,{windowSize:l,children:i})}),e.jsx(N,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(U,{windowSize:l,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:X(o)}),e.jsxs(oi,{children:[e.jsxs(x,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(x,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(C,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},X=i=>i.reviewStatus.isLoading?e.jsx(I,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(li,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(ai,{}),H=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${i=>i.theme.colors.grey4};
5
- `,H=t.div`
5
+ `,K=t.div`
6
6
  min-height: 100vh;
7
7
  display: flex;
8
8
  flex-direction: column;
9
9
  margin-top: ${i=>a.containerMarginTop.valuePx(i.windowSize)};
10
10
  margin-bottom: ${r.sp8};
11
- `,K=t.div`
11
+ `,O=t.div`
12
12
  position: sticky;
13
13
  top: ${r.sp0};
14
14
  background-color: ${i=>i.theme.colors.grey4};
15
15
  z-index: 1;
16
16
  padding-left: ${i=>a.containerMarginLeft.valuePx(i.windowSize)};
17
17
  padding-right: ${i=>a.containerMarginRight.valuePx(i.windowSize)};
18
- `,N=t.div`
18
+ `,Y=t.div`
19
19
  display: flex;
20
20
  align-items: center;
21
- `,O=t(W)`
21
+ `,q=t(W)`
22
22
  ${i=>`${Q.title.style(i.windowSize)}`};
23
23
  color: ${i=>i.theme.colors.primary};
24
24
  margin-top: ${r.sp2};
25
25
  margin-bottom: ${i=>a.titleMarginBotom.valuePx(i.windowSize)};
26
26
  margin-right: ${i=>a.titleMarginRight.valuePx(i.windowSize)};
27
- `,Y=t(y)`
27
+ `,N=t($)`
28
28
  margin-bottom: ${i=>a.subTitleMarginBottom.valuePx(i.windowSize)};
29
29
  color: ${i=>i.isError?s.important:i.theme.colors.hero};
30
- `,_=t.div`
30
+ `,U=t.div`
31
31
  display: flex;
32
32
  flex-direction: column;
33
33
  margin-top: ${r.sp3};
34
34
  margin-left: ${i=>a.containerMarginLeft.valuePx(i.windowSize)};
35
35
  margin-right: ${i=>a.containerMarginRight.valuePx(i.windowSize)};
36
- `,U=t.div`
36
+ `,V=t.div`
37
37
  min-height: ${i=>a.navBarHeight.valuePx(i.windowSize)};
38
38
  position: sticky;
39
39
  border-bottom: 1px solid transparent;
40
40
  z-index: 2;
41
41
  top: ${r.sp0};
42
42
  width: 100%;
43
- `,V=t.div`
43
+ `,Z=t.div`
44
44
  position: relative;
45
45
  min-height: 62px;
46
- `,Z=t.div`
46
+ `,_=t.div`
47
47
  display: flex;
48
48
  flex-direction: row;
49
49
  align-items: center;
@@ -88,7 +88,7 @@ import{X as B,j as e,Y as x,o as r,a3 as C,C as d,a2 as L,Q as M,h as W,g as s,q
88
88
  flex-direction: column;
89
89
  width: 100%;
90
90
  align-items: center;
91
- `,m=t.div`
91
+ `,x=t.div`
92
92
  display: flex;
93
93
  width: 100%;
94
94
  justify-content: space-between;
@@ -96,7 +96,7 @@ import{X as B,j as e,Y as x,o as r,a3 as C,C as d,a2 as L,Q as M,h as W,g as s,q
96
96
  display: flex;
97
97
  flex-direction: column;
98
98
  align-items: ${i=>i.windowSize==="small"?"self-start":"self-end"};
99
- `,u=t(y)`
99
+ `,u=t($)`
100
100
  color: ${i=>i.isError||i.isWarning?i.theme.mode==="dark"?s.neutralGrey4Dark:i.isWarning:i.theme.colors.primary};
101
101
  `,si=t(j)`
102
102
  margin-top: -5px;
@@ -141,7 +141,7 @@ import{X as B,j as e,Y as x,o as r,a3 as C,C as d,a2 as L,Q as M,h as W,g as s,q
141
141
  align-items: center;
142
142
  justify-content: center;
143
143
  margin-right: ${r.sp1};
144
- `,$=t(D)`
144
+ `,y=t(D)`
145
145
  color: ${i=>i.theme.colors.brandColorJade};
146
146
  width: ${r.sp3};
147
147
  height: ${r.sp3};
@@ -149,4 +149,4 @@ import{X as B,j as e,Y as x,o as r,a3 as C,C as d,a2 as L,Q as M,h as W,g as s,q
149
149
  color: ${i=>i.theme.colors.brandColorGoldDark};
150
150
  width: ${r.sp4};
151
151
  height: ${r.sp4};
152
- `;export{xi as m};
152
+ `;export{mi as m};
@@ -1,16 +1,16 @@
1
- import{eI as x,eJ as h,j as t,bs as m,o as n,Y as o,M as g,r as j,w as p}from"./index-BJ9YQ2PG.js";import{n as s}from"./vendor-CnQcJ2Lu.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
1
+ import{eL as h,eM as x,j as t,bu as m,o as i,Y as o,M as g,n as j,v as p}from"./index-GMJ2nuUF.js";import{n as s}from"./vendor-CnQcJ2Lu.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,y=s.div``,f=s.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
5
- `,w=s(p)`
5
+ `,u=s(p)`
6
6
  color: ${e=>e.theme.colors.hero};
7
7
  `,b=s(p)`
8
8
  color: ${e=>e.theme.colors.brandColorPearl};
9
9
  `,d=s.div`
10
10
  display: flex;
11
11
  align-items: center;
12
- `,u=s(j)`
13
- border-radius: ${n.sp12};
12
+ `,w=s(j)`
13
+ border-radius: ${i.sp12};
14
14
  border: 1px solid ${e=>e.theme.colors.grey1};
15
15
  display: flex;
16
16
  height: 18px;
@@ -18,5 +18,5 @@ import{eI as x,eJ as h,j as t,bs as m,o as n,Y as o,M as g,r as j,w as p}from"./
18
18
  align-items: center;
19
19
  justify-content: center;
20
20
  color: 1px solid ${e=>e.theme.colors.grey1};
21
- margin-left: ${n.sp1};
22
- `,C=({roles:e})=>{let r=a,l=[];r=x(e),l=h(e);const c=()=>l.length>0?t.jsx(y,{children:l.map(i=>t.jsxs(f,{children:[t.jsx(w,{children:i[0]}),t.jsx(b,{children:i[1]})]},i.join(",")))}):t.jsx(t.Fragment,{children:a});return l.length>0?t.jsx(m,{enterDelay:600,"data-testid":o("roles-tooltip",r),title:c(),placement:"top-end",style:{marginLeft:n.sp1,padding:"6px 12px"},maxWidth:"264px",children:t.jsxs(d,{"data-testid":o("roles-label-wrapper",r),children:[r,t.jsx(u,{className:"roles-count-wrapper","data-testid":o("roles-count-wrapper",r),children:l.length})]})}):t.jsx(d,{"data-testid":o("roles-label-wrapper",r),children:r})};export{C as T};
21
+ margin-left: ${i.sp1};
22
+ `,L=({roles:e})=>{let r=a,l=[];r=h(e),l=x(e);const c=()=>l.length>0?t.jsx(y,{children:l.map(n=>t.jsxs(f,{children:[t.jsx(u,{children:n[0]}),t.jsx(b,{children:n[1]})]},n.join(",")))}):t.jsx(t.Fragment,{children:a});return l.length>0?t.jsx(m,{enterDelay:600,"data-testid":o("roles-tooltip",r),title:c(),placement:"top-end",style:{marginLeft:i.sp1,padding:"6px 12px"},maxWidth:"264px",children:t.jsxs(d,{"data-testid":o("roles-label-wrapper",r),children:[r,t.jsx(w,{className:"roles-count-wrapper","data-testid":o("roles-count-wrapper",r),children:l.length})]})}):t.jsx(d,{"data-testid":o("roles-label-wrapper",r),children:r})};export{L as T};