@zeniai/web-cockpit-ui 1.13.97-qa → 1.13.98-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/dist/assets/{ACHDetailsPage-Cwc2nmvY-DQ16IU5r.js → ACHDetailsPage-C_NL9J0X-DQ3wv9Rt.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CK4ZdUEb-fJZXFPPa.js → AIPerformancePage-DyiOQxOC-Deykua_G.js} +21 -21
  3. package/dist/assets/{AccountInfoPage-LiZYkJMA-D7v8XtXB.js → AccountInfoPage-xglon85A-yRVQMsLQ.js} +5 -5
  4. package/dist/assets/AccountInfoPageContent-BtMF3gSM-CwB-GVxY.js +149 -0
  5. package/dist/assets/{AccountReconDetailsDrawerPage-CBOR2m1X-itmjhcPW.js → AccountReconDetailsDrawerPage-DJ9x8tbi-LYKktAAO.js} +17 -17
  6. package/dist/assets/{AccountRow--5DnpNqk-C6gOEeWO.js → AccountRow-CP7Tu1pO-VLQJgkE6.js} +23 -23
  7. package/dist/assets/{AccountsPromoCardStack-DCI8_ihc-CZreK5jG.js → AccountsPromoCardStack-1elvD1M0-GOX35w9m.js} +22 -22
  8. package/dist/assets/{AddAddressForCardDrawer-C_RALUZ7-C2wla-3g.js → AddAddressForCardDrawer-C8-wy-3B-di9k1XXJ.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-7sC3Q2Pb-TioJ0o_r.js → AddToWalletPage-DsqplF5y-BOnzBTtb.js} +19 -19
  10. package/dist/assets/{AgingReportsPage-PrvYryW8-ClQ8Euxf.js → AgingReportsPage-DClcRhxg-CS8rEKD_.js} +6 -6
  11. package/dist/assets/{AllUserItems-DlTukPhY-377gtzJq.js → AllUserItems-BOwAIYTQ-ikKyJOZ6.js} +7 -7
  12. package/dist/assets/{ApAgingDetailPage-BVciGQma-NVEgOPKU.js → ApAgingDetailPage-CcU6Hz-o-C9CP7TBd.js} +4 -4
  13. package/dist/assets/{AppBasePage-uJGLWCbr-B_okH7tb.js → AppBasePage-C7kCz0qg-gwqzuxWV.js} +2 -2
  14. package/dist/assets/{AppDrawerContent-SD57OqHe-DBC1ZQdx.js → AppDrawerContent-B63CbHT7-CTgXtY-R.js} +7 -7
  15. package/dist/assets/ApprovalRulesSettingsPage-D6XZafBq-BQyA8PhX.js +47 -0
  16. package/dist/assets/ArAgingChart-D-Z3jfGt-DS-oqmcQ.js +24 -0
  17. package/dist/assets/{ArAgingDetailPage-CoFL0N3--Dnd2wPCh.js → ArAgingDetailPage-AiwyJUwp-CLdUA32y.js} +1 -1
  18. package/dist/assets/{AttachmentView-C3xQE0te-BFkbocnS.js → AttachmentView-wIV1i6gf-__2UovKF.js} +5 -5
  19. package/dist/assets/{BankAccountSection-Bi3uoDPa-DlE9WCjC.js → BankAccountSection-cVBEl5IN-DpEdLEP3.js} +2 -2
  20. package/dist/assets/{BankAccountWarningSection-DKdgmMHQ-Df__wM_b.js → BankAccountWarningSection-Ce5s962S-Dy-_2VlU.js} +8 -8
  21. package/dist/assets/{BankConnectionsSettingsPage-1zM9RKRI-BKlHDYsy.js → BankConnectionsSettingsPage-Cgp8M98A-D84-x80q.js} +33 -33
  22. package/dist/assets/{BillDetailPage-BoxJCC9n-dUgWZp0T.js → BillDetailPage-C9NC9kTK-BYRIHiN2.js} +11 -11
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-BW3sj5ug-F8EHl6ns.js → BillPayApprovalRuleDetailPage-yKPMorLd-DWM3MQMK.js} +2 -2
  24. package/dist/assets/{BillPayApprovalRulesPage-DLA6R7dC-CNDK6deM.js → BillPayApprovalRulesPage-DmMqDFmk-B8Cg6Nn6.js} +6 -6
  25. package/dist/assets/{BillPayPromoPage--BGTNJhm-DrmzLzpj.js → BillPayPromoPage-CWGX6uCi--607mHc3.js} +4 -4
  26. package/dist/assets/BillPaySetUpPage-B-DHUIqu-DsqPk0zS.js +42 -0
  27. package/dist/assets/{BillingSettingsPage-DgbRhg-m-CRqpdOiy.js → BillingSettingsPage-Bx7lHgIy-CyArwb3F.js} +5 -5
  28. package/dist/assets/{BillsBulkReviewDrawerPage-CKspyZz7-DFQ7kKFj.js → BillsBulkReviewDrawerPage-Bf5MKQ-f-5iZSFdzE.js} +1 -1
  29. package/dist/assets/{BoxItem-BHtgE0KL-BJPg4xAk.js → BoxItem-DX1sag1G-C0OcCbod.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-CpfsllRZ-CnaBfa3b.js → BusinessVerificationPage-DXh-11f9-BWywYgcT.js} +14 -14
  31. package/dist/assets/{CardNumberSubText-BHe1nqr7-BRmm9g1p.js → CardNumberSubText-iYF6MLsf-BnbFJt1d.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-C9RhIR0R-CyQle5Hi.js → CashbackDetailPage-DVsCU69u-iWc1QiKl.js} +24 -24
  33. package/dist/assets/ChargeCardDetailPage-D5bwvNOM-CT3hMXCY.js +1447 -0
  34. package/dist/assets/ChargeCardListPage-rY7_MoJ5-CzPbszY2.js +355 -0
  35. package/dist/assets/{ChargeCardListTable-C2nnAxo5-Bk77oToU.js → ChargeCardListTable-PTRaj9T6-GxUnY44G.js} +18 -18
  36. package/dist/assets/ChargeCardPromoPage-BUtD2JQ4-Bh59RQEl.js +219 -0
  37. package/dist/assets/ChargeCardSetupPage-CIRcLLnB-Cefuwkkm.js +36 -0
  38. package/dist/assets/{ChargeCardStatementsPage-DK-pEljz-CxNbElz7.js → ChargeCardStatementsPage-uRlTsfDI-DztC0UAp.js} +3 -3
  39. package/dist/assets/{ChargeCardUtils-BxyMuU6--CHwiPaoq.js → ChargeCardUtils-BvVm2SMq-B6pl3c2F.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-CRiYxWuZ-BZR-S0kG.js → ChaseOverlay-CI8lEzod-DNTlxx9v.js} +5 -5
  41. package/dist/assets/{CheckDepositDrawerPage-WYiirlL8-DMNFGunZ.js → CheckDepositDrawerPage-Czpxz6Mz-gcS4-F7d.js} +16 -16
  42. package/dist/assets/CollapsableReportTable-BBGdC6Ii-N5Ehkf8R.js +2932 -0
  43. package/dist/assets/{CompanyOfficerDetailsSection-BPZU90Im-ClsfMHMl.js → CompanyOfficerDetailsSection-BrsHy7MO-Cl-BM3f0.js} +35 -35
  44. package/dist/assets/{CompanyPassportCard-PXdmJC_B-SLgfN-m9.js → CompanyPassportCard-P0g_DRwA-XRQTRVQK.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-MxIwsh3W-CUmwVoPG.js → CompanyPassportPage-CH8El0Nl-CrZI1ceZ.js} +37 -37
  46. package/dist/assets/{CompleteProfile-Bd9xEPVl-Cy044ZoG.js → CompleteProfile-DTSAIKgF-WX_HRfP5.js} +4 -4
  47. package/dist/assets/{ConfettiBurst-CMpZ2feY-D-Nq3IFV.js → ConfettiBurst-CjONFCxD-BbasMJ1h.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-DgHvZfWv-Bm6layyi.js → CreateOrEditVendorPage-CDVjGotR-BX0RU8Lc.js} +13 -13
  49. package/dist/assets/{CreditCardPaymentDrawerPage-C2ikLG7P-DestrVrL.js → CreditCardPaymentDrawerPage-CsyNRmxp-J9Q1Nire.js} +15 -15
  50. package/dist/assets/{CreditCardPaymentPlgSection-M69ECpN9-CGQ3HY5T.js → CreditCardPaymentPlgSection-BhHsjqZA-DtxErSDc.js} +8 -8
  51. package/dist/assets/{CurrencySelectField-B3AvTbkp-CwUBnsMJ.js → CurrencySelectField-BRkdK9Tx-DZlSSgUd.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-C7eddGoB-DW4jRuae.js → CustomerOnboardingActivationPage-DnVXw5Ok-CF7wqV2h.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-wmVbYxdI-BLfm1bGE.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BIAeoXCV-DB7HhB_G.js → CustomerOnboardingDetailPageSkeleton-C95eWcqa-DW8DNI2i.js} +11 -11
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BzO6XZ0H-1xoJMSMy.js → CustomerOnboardingNoStepsPage-OKbEl9Bp-Dy87ha3L.js} +9 -9
  56. package/dist/assets/{CustomerOnboardingPage-7yWIaJvU-C3VBP6CL.js → CustomerOnboardingPage-D9jqUudS-BpBvjqe9.js} +6 -6
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-Tvyrs9Cm-B0r6GvUF.js → CustomerOnboardingProductSuitePage-DK_FKVS2-Dz81TViz.js} +5 -5
  58. package/dist/assets/Dashboard-CsuzQbH0-B5Hgiilv.js +1254 -0
  59. package/dist/assets/DashboardReportPage-BCkrfj3P-CIFdRg6l.js +370 -0
  60. package/dist/assets/{DepositAccTransactionItem-CiRcbfmm-ChlbIcLT.js → DepositAccTransactionItem-B55LUfPM-Bsnh-Dnt.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-DsNLDlHv-MYnNFw-s.js → DepositAccTransactionListPage-CKBZEDvI-CFszcDp5.js} +7 -7
  62. package/dist/assets/{DocumentSecurityBanner-CIWoR_yI-Dhftz0pA.js → DocumentSecurityBanner-B5e6-zfE-B8VQ-eGv.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-C6x8Gz4g-DwUa3Xkf.js → DomesticWireDetailsPage--MU9IKKz-CI-n4FxD.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-D1kGkMFo-DOkMNDuh.js → DownloadOverlay-CVay7PEO-C-BIaHoh.js} +12 -12
  65. package/dist/assets/{DrawerPage-CQkJW5hg-DkryY6SR.js → DrawerPage-BtsjUVWT-DKZ4-9Rc.js} +3 -3
  66. package/dist/assets/{EditPeoplePage-m2qls8hv-BZd-DWw-.js → EditPeoplePage-q8Se6bGZ-Cx2X58jF.js} +17 -17
  67. package/dist/assets/{EditReimbursementDetailPage-IlSyu79B-jE0h2JRZ.js → EditReimbursementDetailPage-DJxpU-hz-dhF_OPbV.js} +72 -72
  68. package/dist/assets/{EntityDetailPage-CcJJwGo7-DCvr4KdD.js → EntityDetailPage-Bux6DlIw-CDR-iDms.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-JxKHehL1-CtvARgSu.js → EntitySummarySection-D8dz1hFt-Bakc19a1.js} +13 -13
  70. package/dist/assets/{ExpenseAutomationOverviewPage-iAUtjSnw-C1CSJZ5E.js → ExpenseAutomationOverviewPage-CdJQtc-4-WoBW313I.js} +26 -26
  71. package/dist/assets/{ExpenseAutomationPage-B0f86olm-wJehtW2E.js → ExpenseAutomationPage-aNc126hN-DZa4KtXO.js} +74 -74
  72. package/dist/assets/{ExpressPayPage-B-at6uDS-BEaELiUG.js → ExpressPayPage-CWVGXvfN-Bzdld5fx.js} +7 -7
  73. package/dist/assets/{FeaturePreviewPage-gSb_rct_-C-KQutKv.js → FeaturePreviewPage-C0nvVXP--BF6s18r5.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-eedORgku-FnBhDPYP.js → FollowStepsSection-Cf0s1DGX-BFVvc78r.js} +12 -12
  75. package/dist/assets/{GlobalReviewListPage-BfPwveCc-ftKEGRYk.js → GlobalReviewListPage-aY4rHJVr-DzNSgRAM.js} +10 -10
  76. package/dist/assets/HelpButton-Dv3nbc1Z-CHaoZd0g.js +28 -0
  77. package/dist/assets/{InformationCardStack-DPaZz4XW-BZPDjtdj.js → InformationCardStack-BALkGk48-BWmXScs3.js} +5 -5
  78. package/dist/assets/{InsightsCardStack-sKUFRR0H-BiHLZWGW.js → InsightsCardStack-D52CCSVO-CezeuABJ.js} +10 -10
  79. package/dist/assets/{InsightsSection-Corx5iDh-fVbgdM2i.js → InsightsSection-D_wtVtVg-5rPDOiJT.js} +3 -3
  80. package/dist/assets/{IntegrationsSettingsPage-DTWoUi2e-YCv3GRpa.js → IntegrationsSettingsPage-DxjbW311-BrvXi8hE.js} +7 -7
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-B441GUkh-D_QVeJ7p.js → InternationalWireSwiftDetailsPage-24NSHzu1-CRaVhxIk.js} +14 -14
  82. package/dist/assets/{InternationalWireVerificationPage-DjpWjFSe-CaUlPKN_.js → InternationalWireVerificationPage-B1jvCUkw-Ld5IAzwh.js} +18 -18
  83. package/dist/assets/{InviteFormPage-BRb4jyp_-BuUalkW4.js → InviteFormPage-C9fNxGsi-CRksfDku.js} +19 -19
  84. package/dist/assets/{InvitePageListView-Bb_Q_xqJ-BhN72Smm.js → InvitePageListView-DSWZ2SPi-B4SFh7Xp.js} +49 -49
  85. package/dist/assets/InvitePeoplePage-DaN4NSHW-CydccedW.js +12 -0
  86. package/dist/assets/{InvoiceUploadSection-BE4ZqriT-CfpM2_BI.js → InvoiceUploadSection-D0CgJxyu-9_MCn8Y6.js} +7 -7
  87. package/dist/assets/{IssueChargeCardPage-BIFpAcrl-DZwnseyQ.js → IssueChargeCardPage-dYu9VLy4-YHkYWF3X.js} +22 -22
  88. package/dist/assets/{LabeledAddressValue-D2vDF5sP-BZfqDHMl.js → LabeledAddressValue-DtmZ5htg-OjX3rrF7.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-BMdJsw3x-CnFfe2I5.js → LabeledAddressValueField-C2LEKAwf-BQxD3J4c.js} +4 -4
  90. package/dist/assets/{LabeledControlledCheckBoxField-CHRGFyHl-T4ZnES5i.js → LabeledControlledCheckBoxField-Ds3mSsWy-DNoefl6y.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-qwQPyqDC-D7x9KNC-.js → LabeledCreatableSingleSelectField-DW8jVgaN-BEmOmz9t.js} +8 -8
  92. package/dist/assets/{LabeledDocumentField-Cdd8oj5z-BoWCxP7J.js → LabeledDocumentField-Ce2A0qNH-CSvl2QNP.js} +5 -5
  93. package/dist/assets/{LabeledDropDownFormattedTextField-CSEioH8A-DiLPLUt5.js → LabeledDropDownFormattedTextField-DWlfmICB-Diz5afTR.js} +5 -5
  94. package/dist/assets/{LabeledText-CqZ-udSP-CWd8HtpU.js → LabeledText-bruKdeAH-E98_Q-Ht.js} +2 -2
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DTmijO10-D909IgWp.js → LabeledUserSingleSelectWithSubtitlesField-CfzUlgs3-BKnteQzK.js} +5 -5
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DSIWuFix-CIXw0_yv.js → LabeledZeniRolesDropDownField-CGSgg1Zl-M-Z5Kz_3.js} +22 -22
  97. package/dist/assets/{LinkJETransactionPage-C5V1HfGb-BEAJlnvQ.js → LinkJETransactionPage-DjNutEvf-sKN4Are7.js} +10 -10
  98. package/dist/assets/{LowBalancePopup-BLfeh0xm-C28uSa7K.js → LowBalancePopup-CwcYMtuk-B-vSGd6a.js} +7 -7
  99. package/dist/assets/{MagicLinkACHDetailsPage-DGR7VcHs-D2IBl0qY.js → MagicLinkACHDetailsPage-Ddhg3i45-DAcpfJH2.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BOu5verB-Bhh7qXWp.js → MagicLinkDomesticWireDetailsPage-QzsSuMOz-D-Sj2Twf.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-elijVpdq-Cq0leSr_.js → MagicLinkInternationalWireDetailsPage-BsLlhkuO-cmHC5izc.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-C6-JVGAQ-DQTEmgea.js → MagicLinkSuccessPage-COpDxIAb-BaiQCbjC.js} +4 -4
  103. package/dist/assets/{MagicLinkTitleSection-CCjLimcL-Ip3y0PNU.js → MagicLinkTitleSection-Oa8Szvl2-DvY3D69u.js} +3 -3
  104. package/dist/assets/{MailingDetailsSection-CJhcwaGu-BAyX38PR.js → MailingDetailsSection-BycONjR9-Dhu_6L_d.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-DKBH6wSs-Cn-ByIyB.js → MeetingCalenderPopup-D_WPTVKr-DYqVpuuh.js} +3 -3
  106. package/dist/assets/{Menu-D-Gk-Xfo-DBDtrJ_2.js → Menu-B6Fh2Mf9-B_ofMkAs.js} +2 -2
  107. package/dist/assets/{MyBankConnectionsSettingsPage-CBxa9AUT-BCb7NWFw.js → MyBankConnectionsSettingsPage-jWuBarzg-DszKEiXJ.js} +18 -18
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-DBr5htlO-CKJew--2.js → MyPendingActivationChargeCardListPage-_wuCCZ2J-Cbj97sd-.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DKUX_nTz-BI1Cjccg.js → MyProfileSettingsPage-ChyYrCir-Dq1dhgqM.js} +8 -8
  110. package/dist/assets/{NavBarWithPicker-CXyMHDUO-FwAGF1cV.js → NavBarWithPicker-D4jJGXZB-BJWr2BT1.js} +4 -4
  111. package/dist/assets/{NavigationArrow-Bv-PvnhZ-BqeVWU8r.js → NavigationArrow-DlUdvmV7-iugv9ZVE.js} +10 -7
  112. package/dist/assets/{NavigationDots-DJkiFidH-5V7knboW.js → NavigationDots-CFJt-T5J-B9PAzC5S.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-CmJjl9S1-k-LUtUto.js → NewGlobalMerchantPage-DhYni-in-Diwu92Go.js} +8 -8
  114. package/dist/assets/{NoDataChart-Bsj1HEPq-CTuuS1jm.js → NoDataChart-CvGbQO4j-B5z4vqWb.js} +1 -1
  115. package/dist/assets/{NoDataTable-6vR2vOMI-C3_Xw78i.js → NoDataTable-EKtYZwcL-XyHu2gAL.js} +1 -1
  116. package/dist/assets/{NotFoundPage-SRxATfaW-y-aOb1MC.js → NotFoundPage-D5SHSQLS-0U7pTJ8G.js} +4 -4
  117. package/dist/assets/{NotificationSettingsPage-Bko3CBmW-_bWFzZ7l.js → NotificationSettingsPage-CjJw9Atb-BmSbhipZ.js} +33 -33
  118. package/dist/assets/NotificationsListConfig-BL_MxKXF-CvqrsVs-.js +1 -0
  119. package/dist/assets/{NotificationsPage-DMfBgh2w-1OVVoKkc.js → NotificationsPage-bGvx2yV6-C4p8pfzZ.js} +12 -12
  120. package/dist/assets/{OpExByVendorPage-DOkwCGkr-DKAYXBt6.js → OpExByVendorPage-BE_NnQzd-DQnxoqWx.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-BEYdjpiV.js → OverlayContainerPage-GWXnlbZH-D2VSw_RI.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-DCJ3QTuj-SrjsP3F-.js → PandLWithForecastPage-D-000kuR-BW5fUkac.js} +11 -11
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CaZETrGz-De6JzHBj.js → PaymentAccountSetupBillingAddressSection-CwbX_znq-C6WVSYgS.js} +8 -8
  124. package/dist/assets/{PeoplePage-PvOhX-gy-bUl8LV-N.js → PeoplePage-MwM0lFB9-B0wgHwI1.js} +14 -14
  125. package/dist/assets/PortfolioAllocationFormPage-C3a4MQzW-CQIA3SiA.js +207 -0
  126. package/dist/assets/PortfolioDetails-BMJ6PGMP-DtrA52bw.js +218 -0
  127. package/dist/assets/{ProductsCarousel-qzlVuyK5-BlxLSS9s.js → ProductsCarousel-D2wC3sC--BKh2AE5P.js} +9 -9
  128. package/dist/assets/{PromoBaseCards-26GOEn3a-DaZDnJ-z.js → PromoBaseCards-Ddumul2a-BrEDd739.js} +23 -23
  129. package/dist/assets/{QBOConnectionDialog-CZQE3Tjs-Da8BEmHP.js → QBOConnectionDialog-DszSpNdI-DwqHmKSk.js} +7 -7
  130. package/dist/assets/{QBOSetupSection-u1sJhV67-3guqHTYH.js → QBOSetupSection-BNF-BUu5-B_yCc7Df.js} +13 -13
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-vRiO7G_7-BtkXAaTL.js → ReimbursementApprovalRuleDetailPage-Myone4-k-B9H3tR1_.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-kEmFNXtg-tWOcEiR-.js → ReimbursementApprovalRulesPage-DFhp0GGU-p0zWXuJ6.js} +35 -35
  133. package/dist/assets/{ReimbursementDetailPage-ChyRg0eX-Claybyvt.js → ReimbursementDetailPage-BAEddssC-DcJfByf4.js} +10 -10
  134. package/dist/assets/{ReimbursementPromoPage-BWsOD49o-D82HFW_4.js → ReimbursementPromoPage-D4u3SX8R-ByzJ_1Sx.js} +7 -7
  135. package/dist/assets/ReimbursementSetUpPage-B9ByGW3n-Bt2Z4PCD.js +140 -0
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CgRo7VeI-w-iFb9QJ.js → ReimbursementsBulkReviewDrawerPage-CAo_NjTX-O9TR0kFt.js} +1 -1
  137. package/dist/assets/{ReloadCard-CpauR6-c-3e4dg5U2.js → ReloadCard-BA_JCHcV-DL7NGQyj.js} +5 -5
  138. package/dist/assets/ReportTableViewSelector-D7B88kS6-BrGIUsj4.js +150 -0
  139. package/dist/assets/ReportsPage-BzMzH-I3-BKZoRCt6.js +121 -0
  140. package/dist/assets/{RevenueChart-JdtvK4L6-CpCUlh1v.js → RevenueChart-D33p-PFq-CGRJwc_N.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-BwQoOV2Q-BSoqdtJl.js → ReviewDetailsPage-D35NcQnx-Cbn86Yy5.js} +15 -15
  142. package/dist/assets/{ReviewOverlay-BLxhto7d-Ote-FEid.js → ReviewOverlay-BYJdokfW-C97jtxei.js} +10 -10
  143. package/dist/assets/{RoleWithToolTip-BRSx6yqP-Dj7TwZqE.js → RoleWithToolTip-B3hm-1rz-OZzvKPZJ.js} +7 -7
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CH84DI7F-DS2nwC6-.js → ScheduleDetailsFixedAssetsPage-BVnISMKW-BILZO4Rn.js} +8 -8
  145. package/dist/assets/{ScheduleDetailsPage-CMunoow5-Kl0jdvn6.js → ScheduleDetailsPage-BibWPOxC-DZMtTy3C.js} +4 -4
  146. package/dist/assets/{ScheduleSequenceTable-CQVHkQ0e-Dw2nQmil.js → ScheduleSequenceTable-DcQmeKyc-JMxQ5IZq.js} +49 -49
  147. package/dist/assets/{ScreenRoutes-C5pHLsYO.js → ScreenRoutes-iE9-v0dJ.js} +35 -35
  148. package/dist/assets/{SetUpAccountSection-CyyxtFvK-Bjoxqucl.js → SetUpAccountSection-BEJy78G6-Do1X3vVo.js} +24 -24
  149. package/dist/assets/{SetUpDefaultSection-Bdw_aWMY-C7l-ATBb.js → SetUpDefaultSection-ul-q6U3w-CKVV_QFK.js} +16 -16
  150. package/dist/assets/{SignIn-Gw75P03k-B_X_KXq6.js → SignIn-BC8yop4g-CznicFTu.js} +17 -17
  151. package/dist/assets/{SignInScreen-CU1N7put.js → SignInScreen-k0dvslKE.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-BccaMtyd-shshvd9r.js → SpendManagementListViewPage-aZljA388--EEskYb2.js} +10 -10
  153. package/dist/assets/{SpendManagementPerTabPage-D-YqqUsz-DyRQAFsg.js → SpendManagementPerTabPage-BU1ai2M8-DkMZQMfc.js} +33 -33
  154. package/dist/assets/{SpendManagementSection-CdH1r1Vw-C3epoUbW.js → SpendManagementSection-DMw8NFvN-Cpy4Blf3.js} +8 -8
  155. package/dist/assets/SpendMgmtSetupAccountSection-BtcwTlJT-Bsya0Qr3.js +206 -0
  156. package/dist/assets/{StatementItem-BW9HKaf9-CsEdfyzn.js → StatementItem-CKTGWEW_-d6SqxmfH.js} +3 -3
  157. package/dist/assets/{StatementsPage-CXawS1th-D6ifdlgD.js → StatementsPage-CjR4AlPy-BQRlcz37.js} +6 -6
  158. package/dist/assets/{StatusSwitcher-oC-AP25Z-D-8kVIuC.js → StatusSwitcher-5CZzUYJE-qZVSFmES.js} +5 -5
  159. package/dist/assets/{SubTabSwitcher-DXWQMf7B-D5NgssDf.js → SubTabSwitcher-a38_U4dN-BfyQ4BdY.js} +1 -1
  160. package/dist/assets/{SummaryCard-C3zjN-kT-DVcdP-G4.js → SummaryCard-XbFHvHx9-CTqdwSSS.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-BGDJNpe_-BGexoSAd.js → TaskManagementPage-Oct77yO--igT2quo0.js} +31 -31
  162. package/dist/assets/{TimeRangeSwitcher-BJfy3akS-o2HcwGW6.js → TimeRangeSwitcher-C4mpBnQl-CaG6dXuN.js} +3 -3
  163. package/dist/assets/{TimeframeSwitcher-M9tK6u0Y-C6JeMzJ1.js → TimeframeSwitcher-CnLEHYWD-BW9vKcLS.js} +5 -5
  164. package/dist/assets/TimeframeSwitcherWithToggle-Bc-Y5Hwv-0uMnBILy.js +31 -0
  165. package/dist/assets/{TopExCard-BD9Ehuw_-BEZAD6RQ.js → TopExCard-CaR8tsug-DnQ2eFWB.js} +5 -5
  166. package/dist/assets/{TopExDetailPage-3HoXp_6D-C4AntCB3.js → TopExDetailPage-C4QeWe92-vjJ7ZG8N.js} +10 -10
  167. package/dist/assets/{TransactionDetailPage-CbnGQ8bn-D1kf6rih.js → TransactionDetailPage-BoxnNYXX-2QwooFWS.js} +26 -26
  168. package/dist/assets/TransactionList-IjM4ABdF-DZ9PEfgX.js +147 -0
  169. package/dist/assets/{TransactionListBig-5aenxEn4-DbuGNI6-.js → TransactionListBig-B0FG0-BM-Br0wUjP3.js} +18 -18
  170. package/dist/assets/TransactionListPage-1dwu-ZT2-vlIbHO3m.js +35 -0
  171. package/dist/assets/{TransactionVendorDetailPage-Yi7SmsyK-pIrKO6zm.js → TransactionVendorDetailPage-gBr8kX0F-BE5xJ4Iy.js} +5 -5
  172. package/dist/assets/{TransferDrawerPage-2P1mhp1M-DQ83dYHD.js → TransferDrawerPage-BJVanLzC-BZZsX7dv.js} +11 -11
  173. package/dist/assets/{TreasuryOverviewPage-CkCBcBQK-CKBjtsts.js → TreasuryOverviewPage-DGJnHyrO-BPZDM1DN.js} +34 -34
  174. package/dist/assets/{TreasuryPromoPage-v-g4ZAdk-BPgVXnPP.js → TreasuryPromoPage-CblUabA3-CO5CaCN_.js} +14 -14
  175. package/dist/assets/{TreasurySetupPage-B7va2-fJ-CAJ9u8aR.js → TreasurySetupPage-CuROk6il-7kJUNajN.js} +2 -2
  176. package/dist/assets/{TreasuryStatementsPage-BEJsQ-Oz-DHPONp68.js → TreasuryStatementsPage-DfB0yrzC-osurk-aq.js} +10 -10
  177. package/dist/assets/{TreasuryTaxLetterPage-CpTpM1mx-Ba1IA2xd.js → TreasuryTaxLetterPage-CRoLpeXm-g70lefJl.js} +4 -4
  178. package/dist/assets/{TreasuryTransferOrReviewPage-BRPFympA-6Ds9mHlo.js → TreasuryTransferOrReviewPage-QMDAFbkh-CUXJN-eh.js} +77 -77
  179. package/dist/assets/{TrendChart-DRNocU0p-B5zGJHBv.js → TrendChart-D3_4i3qH-wYUerKRk.js} +3 -3
  180. package/dist/assets/{TrendWithTransactions-CldwGpXX-C-miaXCt.js → TrendWithTransactions-KkV2_0Uh-D0lwZdhf.js} +5 -5
  181. package/dist/assets/{UncategorizedAccountsMappingPage-2C5qEhte-D_ahOlGs.js → UncategorizedAccountsMappingPage-kKq-jvPY-CF6bAw3X.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage--cDHqgXs-CzBp1mNW.js → UnitIntegrationPage-CZS0yjHf-2PLtjCjv.js} +3 -3
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-D85ML8-_-p_x3eEON.js → UploadAdditionalDocumentOverlay-KkO_TLUT-n0LOLnpS.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-vdFWf98b-D5sSolYh.js → Vendor2FAPopup-wnVnkHOg-DABVEKDS.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-D7ImMabh-ChqR1RaR.js → VendorACHDetailsPage-nuzdr69i-pgOa8d0q.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-BOeEd9pX-C40iOslI.js → VendorDetailPage-ClmL_1FB-Cz0Favu8.js} +14 -14
  187. package/dist/assets/{VendorDomesticWireDetailsPage-CXFrYPn8-o64Pt2o2.js → VendorDomesticWireDetailsPage-DEK3jdYu-StHUbnc9.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-CZFErJ91-Dq9to1zv.js → VendorFiling1099EditablePage-KMOY10Xr-C-_0rtWP.js} +9 -9
  189. package/dist/assets/{VendorFirstReviewPage-BHzDUMKu-DpG7tqKb.js → VendorFirstReviewPage-CLF3qT17-D1oHFEVR.js} +75 -75
  190. package/dist/assets/{VendorInternationalWireDetailsPage-j4j5irzH-CT3rN25J.js → VendorInternationalWireDetailsPage-C5JXqVVq-DdhMyWB0.js} +8 -8
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DM4jC7wD-0NWOAHYt.js → VendorInternationalWireSwiftDetailsPage-7KrBqEWb-D_WpQwvk.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-BTRiZlIa-D2xftT7n.js → VendorsAccountsSection-fcURK7tv-BOScGj67.js} +13 -13
  193. package/dist/assets/{WarningsDrawerPage-ZgfQEBme-BogIku8q.js → WarningsDrawerPage-Bnd_CdR9-B2JqHi6z.js} +10 -10
  194. package/dist/assets/{ZeniAccountDetailPage-xrq0Ez6S-5Y9wWxKq.js → ZeniAccountDetailPage-DRDCdFW7-D8o4Z2Hy.js} +40 -40
  195. package/dist/assets/{ZeniAccountListViewPage-BwXfELGd-CMYKhLC-.js → ZeniAccountListViewPage-ZPWww_Go-HRp0ORwg.js} +5 -5
  196. package/dist/assets/{ZeniAccountNavBarPieces-xpHuuPSD-CQw7XfH0.js → ZeniAccountNavBarPieces-DFivFXxa-rHFaK51E.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-BvSwPEk7-sx8wuksr.js → ZeniAccountPromoPage-D1oJNoqy-C6ZFb72_.js} +18 -18
  198. package/dist/assets/{ZeniAccountSetupPage-yCkiopeU-oXKMyUZt.js → ZeniAccountSetupPage-DITu6ztK-Fgis_UYm.js} +3 -3
  199. package/dist/assets/{ZeniCopyright-BAbOOFg9-CEbrOROr.js → ZeniCopyright-DoA2I5zj-CPBH_zf-.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-C1sl8ZNj-C6racrVi.js → ZeniTransferAmountSlider-amszUh1p-Wx5VV7C8.js} +1 -1
  201. package/dist/assets/{analyticsHelper-j8smtjIR.js → analyticsHelper-BbcCIpO1.js} +1 -1
  202. package/dist/assets/{analyticsHelper-CkzpobMi-DnjY1jLw.js → analyticsHelper-DPbbQVAO-ChPUlKK7.js} +1 -1
  203. package/dist/assets/{chartTypes-JD2mR9iq-B-Dqgpc8.js → chartTypes-qpvW4LwC-4Ag0mdD1.js} +1 -1
  204. package/dist/assets/{commonDimensions-DRfDJ_wQ-DeEC_LLv.js → commonDimensions-DAvj4Il1-Chc9ZQai.js} +1 -1
  205. package/dist/assets/{detailCommon-BbKkY_46-DwHUZLAg.js → detailCommon-jP1ggD3g-CQiTz4E7.js} +5 -5
  206. package/dist/assets/{downloadPdf-D7ANJLK4-BVhr8pTH.js → downloadPdf-LAHtgcHF-B9uNpNRf.js} +1 -1
  207. package/dist/assets/{index-Dr7k10Ge.js → index-DyBH5SZv.js} +3543 -3520
  208. package/dist/assets/mapLoadingInProgressToTreeNode-CjvJKOzk-DeuVFxVw.js +1 -0
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-caUW45t5-Cd4Vndkt.js → mapSectionWithAcOnlyToTreeNode-Dr43nOGj-FSgubQ7E.js} +1 -1
  210. package/dist/assets/mapSpacerToTreeNode-COsnfFtf-DI0OXEqQ.js +1 -0
  211. package/dist/assets/mapTimeframeBalancesToTreeNode-BnpqSOA6-DAD3sG8g.js +1 -0
  212. package/dist/assets/mapTimeframeBalancesToTreeNode-DFanhVY8-Cl8Oktyg.js +1 -0
  213. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2xlqc6w-BjPO7Xb1.js +1 -0
  214. package/dist/assets/{play-icon-BbWpG2oG-CGqef6-e.js → play-icon-D3OSczih-8eMagn70.js} +3 -3
  215. package/dist/assets/{toCOABalancesWithID-DOgHiMwn-C3l_klRD.js → toCOABalancesWithID-DeWKaovX-C_3xC96w.js} +1 -1
  216. package/dist/assets/{toChartData-CNfdaXyM-Cc0Cbk9b.js → toChartData-Dkp488IJ-Cg1gF7al.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-JBMxqa9X-CRkfUPI_.js → treasuryColorHelper-BibNNRS5-DCmyWsB-.js} +1 -1
  218. package/dist/assets/{uploadAttachment-BGZjtYkJ-DDuM3kuv.js → uploadAttachment-BjJ8_wDA-22p019X4.js} +25 -25
  219. package/dist/assets/{uploadReceipts-Buvz7DfG-CEx_e_oz.js → uploadReceipts-D80JLNY4-sjevKwVl.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +4 -4
  222. package/dist/assets/AccountInfoPageContent-BTk2gRyM-D5sd4ymJ.js +0 -149
  223. package/dist/assets/ApprovalRulesSettingsPage-CXh9tY6X-DzKaycYf.js +0 -47
  224. package/dist/assets/ArAgingChart-GL4vkypx-BDoyqmzK.js +0 -24
  225. package/dist/assets/BillPaySetUpPage-_s4R537_-DvISkevy.js +0 -42
  226. package/dist/assets/ChargeCardDetailPage-Kygr13jR-CNZ8Sj5E.js +0 -1447
  227. package/dist/assets/ChargeCardListPage-BnzdzSXW-C9n9iaEp.js +0 -355
  228. package/dist/assets/ChargeCardPromoPage-CSNn9X5i-Ca7vMfka.js +0 -175
  229. package/dist/assets/ChargeCardSetupPage-DE1pK_7F-BNJjwg-b.js +0 -36
  230. package/dist/assets/CollapsableReportTable-BGT77T9W-DWoWj-VL.js +0 -2860
  231. package/dist/assets/CustomerOnboardingContainerPage-9UTLABZ0-DmivhYy_.js +0 -1
  232. package/dist/assets/Dashboard-CA9685lJ-B_5dmcrq.js +0 -778
  233. package/dist/assets/DashboardReportPage-DQoFWd5C-D6uulgOO.js +0 -349
  234. package/dist/assets/HelpButton-DvD6UJq--aZr7WRfd.js +0 -28
  235. package/dist/assets/InvitePeoplePage-BKEDAnQ4-ByvIsC8W.js +0 -12
  236. package/dist/assets/NotificationsListConfig-ChVd_Bek-CKniSs8p.js +0 -1
  237. package/dist/assets/PortfolioAllocationFormPage-DsCeagnu-DFOtswbp.js +0 -207
  238. package/dist/assets/PortfolioDetails-BEa4kwk8-CITW78cn.js +0 -218
  239. package/dist/assets/ReimbursementSetUpPage-DO_dBP9N-CDR1Iktq.js +0 -140
  240. package/dist/assets/ReportTableViewSelector-D6DHFt_R-CzdBaV93.js +0 -150
  241. package/dist/assets/ReportsPage-D4mI3T0w-DX_lYTCz.js +0 -120
  242. package/dist/assets/SpendMgmtSetupAccountSection-nryeZQ0T-2tO4d4y_.js +0 -206
  243. package/dist/assets/TimeframeSwitcherWithToggle-L1nNDGOE-jeHox6-x.js +0 -31
  244. package/dist/assets/TransactionList-BBjiP2Nf-CVZYe7YT.js +0 -147
  245. package/dist/assets/TransactionListPage-BeVkiwkg-BwC4l02u.js +0 -35
  246. package/dist/assets/mapLoadingInProgressToTreeNode-e8JhfflK-BBSz2yuD.js +0 -1
  247. package/dist/assets/mapSpacerToTreeNode-C692pbYW-BJLTFMw5.js +0 -1
  248. package/dist/assets/mapTimeframeBalancesToTreeNode-DKrYq4x5-CLuyCBzc.js +0 -1
@@ -1 +1 @@
1
- import{M as N,j as b,bO as q,bQ as V,bR as W,jn as z,aJ as H,l as J}from"./index-Dr7k10Ge.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as Q}from"./ReviewOverlay-BLxhto7d-Ote-FEid.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:k}}=N.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(R(e,h,l)),[x,P]=f.useState(h),[B,Z]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(P(!1),clearInterval(I)),e.fetchState==="Completed"&&_(R(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=X(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,J.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=Y(p,S,E,x),C=e.fetchState==="Completed"&&S===0,O=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:O,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(q,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:M,hideCancel:C}})]})},R=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:H("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},X=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Y=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
1
+ import{M as N,j as b,bO as z,bQ as V,bR as W,jl as q,aa as G,l as Q}from"./index-DyBH5SZv.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-BYJdokfW-C97jtxei.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:k}}=N.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(R(e,h,l)),[x,P]=f.useState(h),[B,H]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(P(!1),clearInterval(I)),e.fetchState==="Completed"&&_(R(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,Q.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=Z(p,S,E,x),C=e.fetchState==="Completed"&&S===0,O=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:O,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(z,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:M,hideCancel:C}})]})},R=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:G("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
@@ -1,6 +1,6 @@
1
- import{u as h,j as r,U as a,Y as m,an as j,M as C,a8 as l,bJ as x,v as g,o as c,ao as f}from"./index-Dr7k10Ge.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(x,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{u as h,j as r,W as a,Y as m,ah as j,M as w,a4 as l,aY as x,w as g,o as c,ai as C}from"./index-DyBH5SZv.js";import{n as s,b as d}from"./vendor-CnQcJ2Lu.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
- `;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function M({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:n,width:i})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
3
+ `;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function M({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(C,{children:({height:i,width:n})=>r.jsx(f,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;
5
5
  `,b=s.div`
6
6
  height: ${c.sp10};
@@ -19,8 +19,8 @@ import{u as h,j as r,U as a,Y as m,an as j,M as C,a8 as l,bJ as x,v as g,o as c,
19
19
  color: ${e=>e.theme.colors.primary};
20
20
  }
21
21
  }
22
- `,v=s(g)`
23
- color: ${e=>e.theme.colors.champion};
24
22
  `,$=s(g)`
23
+ color: ${e=>e.theme.colors.champion};
24
+ `,v=s(g)`
25
25
  color: ${e=>e.theme.colors.hero};
26
- `,L=s(y)``;function S({dimension:e,cardType:o,cardIndex:t,reportTitle:n,onReloadData:i}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>i(t,o),children:r.jsxs(k,{children:[r.jsxs(v,{children:[n??j(o)," "]}),r.jsx(b,{children:r.jsx(L,{})}),r.jsx($,{children:C.getLocalizedStrings().card.failedText})]})})}export{T as E,M as I,S as T};
26
+ `,L=s(y)``;function S({dimension:e,cardType:o,cardIndex:t,reportTitle:i,onReloadData:n}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>n(t,o),children:r.jsxs(k,{children:[r.jsxs($,{children:[i??j(o)," "]}),r.jsx(b,{children:r.jsx(L,{})}),r.jsx(v,{children:w.getLocalizedStrings().card.failedText})]})})}export{T as E,M as I,S as T};
@@ -0,0 +1,150 @@
1
+ import{u as X,X as ie,bC as me,a as fe,j as o,m as ge,M as Z,bD as ee,F as xe,C as P,a3 as be,o as n,bE as ye,bF as we,bG as _e,bH as $e,bI as ve,f as ce,bJ as Ce,n as p,w as ke,H as K,aY as je,a7 as Ne,q as Se,b0 as Ie}from"./index-DyBH5SZv.js";import{b as f,f as de,n as d}from"./vendor-CnQcJ2Lu.js";import{W as F,R as Pe}from"./CollapsableReportTable-BBGdC6Ii-N5Ehkf8R.js";const Y=Z.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Fe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(Y),end_date:e.thisPeriod.endDate.format(Y)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Oe=e=>e!=null?{start_date:e.startDate.format(Y),end_date:e.endDate.format(Y)}:void 0;function De(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(Y):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Fe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Oe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=Z.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Ee=d.div`
2
+ padding: 0 ${n.sp3} 0 ${n.sp3};
3
+ border: 1px solid ${e=>e.theme.colors.primary};
4
+ background: ${e=>e.theme.colors.grey5};
5
+ border-radius: ${n.sp1};
6
+ display: flex;
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ position: relative;
10
+ height: ${n.sp8};
11
+ cursor: pointer;
12
+ `,Be=d(Se)`
13
+ color: ${e=>e.theme.colors.primary};
14
+ margin-top: -2px;
15
+ `,Le=d(Ie)`
16
+ color: ${e=>e.theme.colors.hero};
17
+ width: 12px;
18
+ height: 12px;
19
+ margin: auto ${n.sp0};
20
+ :hover {
21
+ color: ${e=>e.theme.colors.primary};
22
+ }
23
+ `,Ae=e=>{const{value:c,onClick:a}=e,t=X();return o.jsxs(Ee,{onClick:a,children:[o.jsx(Be,{style:{color:t.colors.primary},children:c}),o.jsx(Le,{})]})},Te=de.memo(Ae);function Me({backgroundColor:e,foregroundColor:c,animated:a,width:t,height:r}){return o.jsxs(je,{speed:2,width:t,height:r,viewBox:`0 0 ${t} ${r}`,animate:a!=!1,backgroundColor:e,foregroundColor:c,style:{marginBottom:n.sp2},children:[o.jsx("rect",{x:"45",y:p[3],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:p[8],rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:p[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:p[4]})]})}function he({nestedClass:e,isLastNode:c,config:a,parentNodeIDs:t}){const r=F("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:r,isLastNode:c,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((b,y)=>he({nestedClass:b,config:a,isLastNode:y===e.children.length-1,parentNodeIDs:[...t,r]})),h}function We(e,c){const a=e.map((t,r)=>{const h=F("checkbox_and_name_only",[],t.classId[0]),b={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:c}},y=t.children.map(O=>he({nestedClass:O,config:c,isLastNode:r===t.children.length-1,parentNodeIDs:[h]}));return b.children.push(...y),b});return{config:c,headerNodes:[],contentNodes:[...a]}}function Re(e,c){Object.assign(e.config,c);const a=e.contentNodes;return a.forEach(t=>ue(t,c)),{config:c,headerNodes:[],contentNodes:[...a]}}function ue(e,c){Object.assign(e.reportElementData.config,c),e.children.forEach(a=>ue(a,c))}const oe={contentPaddingLeft:new P(p[3],p[3],p[2]),contentPaddingRight:new P(p[3],p[3],p[2])},Ye=d.div`
24
+ height: ${e=>e.height}px;
25
+ width: 100%;
26
+ `,ze=({reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:r,showClassAccountNumber:h,scrollPosition:b,onScroll:y,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:D})=>{const z=X(),H=ie(),[$,j]=f.useState(void 0),[T,w]=f.useState(!1),[M,E]=f.useState({}),[g,W]=f.useState(void 0),[B,v]=f.useState(r),G="none",L=i=>r==="account_group"?!0:t?.length>0?t.find(l=>l[0]===i[0])!=null:!1,N=(i,l)=>{w(!0),E(i),D?.(i,l,r==="account_group"?!0:void 0),_(i,l)},_=(i,l)=>{const m=V(i);for(const C of m.children)D?.(C.classId,l),_(C.classId,l)},V=i=>{let l=a.filter(m=>m.classId[0]===i[i.length-1])[0];for(let m=i.length-2;m>=0;m--)l=l.children.filter(C=>C.classId[0]===i[m])[0];return l},q=i=>{if(i.length>1){const l=V(i.slice(1));let m=!1;for(const C of l.children)if(t.find(s=>s[0]===C.classId[0])===void 0){m=!0;break}m===!0?D?.(l.classId,!0):D?.(l.classId,!1),E(l.classId)}};f.useEffect(()=>{T&&q(M)}),f.useEffect(()=>{const i={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:G,firstMonthOfFY:c,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:L,showClassAccountNumber:h};if($==null||!K(g,a)||!K(B,r)||T===!0){const l=We(a,i);W(a),j(l),v(r)}else{const l=Re($,i);j(l),v(r)}},[a,r,t]);const[J,Q]=f.useState(5),A=i=>{const l=i+p[6];Q(l)};return $!=null?o.jsx(Ye,{height:J,children:o.jsx(Pe,{backgroundColor:r==="classes"?new Ne(z.colors.background):void 0,rootNodes:$,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:oe.contentPaddingLeft.value(H),right:oe.contentPaddingRight.value(H)},scrollPosition:b,onScroll:y,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:N,onReportTableHeightChanged:A})}):null},k={width:new P(350,400,400),height:new P(165,165,165),buttonWidth:new P(62,62),buttonHeight:new P(p[5],p[5]),containerWidth:new P(150,400,400)},He=d.div`
27
+ position: relative;
28
+ pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
29
+ `,Ge=d.div`
30
+ display: flex;
31
+ flex-direction: column;
32
+ width: ${e=>k.containerWidth.valuePx(e.windowSize)};
33
+ `,Ve=d($e)`
34
+ display: flex;
35
+ flex-direction: row;
36
+ width: fit-content;
37
+ cursor: pointer;
38
+ color: ${e=>e.theme.colors.primary};
39
+ .dropdownIcon {
40
+ color: ${e=>e.theme.colors.hero};
41
+ }
42
+ &:hover {
43
+ .dropdownIcon {
44
+ color: ${e=>e.theme.colors.primary};
45
+ }
46
+ }
47
+ gap: ${n.sp2};
48
+ margin-top: 12px;
49
+ align-items: center;
50
+ `,qe=d(ve)`
51
+ color: ${e=>e.theme.colors.hero};
52
+ width: ${n.sp4};
53
+ height: ${n.sp4};
54
+ &:hover {
55
+ color: ${e=>e.theme.colors.primary};
56
+ }
57
+ `,Je=d.div`
58
+ display: flex;
59
+ width: ${e=>e.width}px;
60
+ align-items: flex-start;
61
+ justify-content: space-between;
62
+ flex-direction: column;
63
+ border: 1px solid ${e=>e.theme.colors.grey5};
64
+ border-radius: ${n.sp1};
65
+ box-shadow: ${e=>`${n.sp0} 2px ${n.sp2} ${e.theme.colors.dropShadowHover}`};
66
+ margin-top: 10px;
67
+ padding-top: ${n.sp1};
68
+ background: ${e=>e.theme.colors.grey5};
69
+ `,te=d.div`
70
+ display: flex;
71
+ align-items: flex-start;
72
+ justify-content: space-between;
73
+ flex-direction: column;
74
+ width: 100%;
75
+ background-color: ${e=>e.checked===!0?e.theme.colors.background:"transparent"};
76
+ & input[type="radio"] {
77
+ -webkit-appearance: none;
78
+ -moz-appearance: none;
79
+ appearance: none;
80
+ display: inline-block;
81
+ width: ${n.sp3};
82
+ height: ${n.sp3};
83
+ padding: 2px;
84
+ background-clip: content-box;
85
+ border: 1px solid ${e=>e.theme.colors.primary};
86
+ border-radius: 50%;
87
+ margin: ${n.sp0} ${n.sp2} ${n.sp0} ${n.sp2};
88
+ cursor: pointer;
89
+ }
90
+
91
+ input[type="radio"]:checked {
92
+ background-color: ${e=>e.theme.colors.primary};
93
+ }
94
+
95
+ input[type="radio"]:disabled {
96
+ cursor: default;
97
+ }
98
+
99
+ &:hover {
100
+ background: ${e=>e.theme.colors.background};
101
+ }
102
+ `,se=d(ke)`
103
+ height: ${n.sp6};
104
+ display: flex;
105
+ justify-content: center;
106
+ align-items: center;
107
+ `,Ue=d.div`
108
+ display: flex;
109
+ flex-wrap: wrap;
110
+ justify-content: flex-start;
111
+ height: 100%;
112
+ width: inherit;
113
+ overflow-y: auto;
114
+ .hide-icon {
115
+ display: none;
116
+ }
117
+ min-height: 165px;
118
+ max-height: 353px;
119
+ overscroll-behavior: contain;
120
+ `,Qe=d.div`
121
+ width: 100%;
122
+ height: 65px;
123
+ `,ae=d.label`
124
+ color: ${e=>e.theme.colors.primary};
125
+ cursor: ${e=>e.disabled===!0?"default":"pointer"};
126
+ `,Ke=d(ce)`
127
+ display: flex;
128
+ align-items: center;
129
+ column-gap: ${n.sp2};
130
+ margin-left: ${n.sp5};
131
+ color: ${e=>e.theme.colors.hero};
132
+ &:hover {
133
+ cursor: pointer;
134
+ color: ${e=>e.theme.colors.primary};
135
+ }
136
+ `,Xe=d.div`
137
+ display: flex;
138
+ flex: 1;
139
+ width: inherit;
140
+ background-color: ${e=>e.theme.colors.grey3};
141
+ min-height: 1px;
142
+ max-height: 1px;
143
+ `,Ze=d(Ce)`
144
+ width: ${n.sp3};
145
+ height: ${n.sp3};
146
+ `,eo=d(ce)`
147
+ margin-left: ${n.sp5};
148
+ margin-top: -12px;
149
+ color: ${e=>e.theme.colors.hero};
150
+ `,{reportViewSelector:I,common:{footer:ne}}=Z.getLocalizedStrings(),re="tableViewSelector",le=e=>`${e}_form`;function ro({reportId:e,firstMonthOfFY:c,nodes:a,classesListFetchState:t,selectedView:r,classesToBeFilteredOut:h,showClassAccountNumber:b,onOpenAccountViewMode:y,onSaveClick:O,isClassViewDisabled:U,downloadPage:D,showAccountGroups:z=!0,onResyncReports:H,isPageFetchInProgress:$=!1,lastRefreshSuccessTime:j}){const T=X(),w=ie(),[M,E]=f.useState(!1),[g,W]=f.useState(r),[B,v]=f.useState({}),G=(s,u)=>(s.forEach(x=>{u.push(x.classId),u=G(x.children,u)}),u),L=G(a,[]),[N,_]=f.useState(g==="classes"?h:L),V=t!=="Completed"||g==="classes"&&N.length===L.length;me({componentName:`reports.${e}`});const q=s=>s==="classes"?I.classes.label:z===!0?I.accountGroups.label:I.accounts.label,J=fe({mode:"all"}),Q=J.handleSubmit(()=>{E(!1),g==="classes"?O?.("classes",N):O?.("account_group")}),A=s=>{if(W(s),s==="classes")v({}),_([]);else{_(L);let u={};a.forEach(x=>{const S=F("checkbox_and_name_only",[],x.classId[0]);u=Object.assign({},u,{[S]:!1})}),v(u)}},i=()=>{M===!0&&m(),E(!M);let s={};a.forEach(u=>{const x=F("checkbox_and_name_only",[],u.classId[0]);r==="account_group"||N.find(S=>S[0]===u.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),v(s)},l=(s,u,x)=>{if(x===!0&&(W("classes"),_(L)),u===!0){const S=F("checkbox_and_name_only",[],s[0]);B[S]=!0,v(B),_(R=>R.filter(pe=>pe[0]!==s[0]))}else{const S=F("checkbox_and_name_only",[],s[0]);B[S]=!1,N.find(R=>R[0]===s[0])===void 0&&_(R=>[...R,s])}},m=()=>{E(!1),W(r),_(h)},C=()=>{$===!1&&H?.()};return f.useEffect(()=>{if(t==="Completed"&&g==="account_group"){let s={};a.forEach(u=>{const x=F("checkbox_and_name_only",[],u.classId[0]);s=Object.assign({},s,{[x]:!1})}),v(s)}},[t]),o.jsx(ge,{onClickAway:m,children:o.jsxs(He,{isDisabled:U??!1,children:[D===!0?o.jsx(Te,{value:q(r),onClick:()=>{y?.(),i()}}):o.jsxs(Ge,{windowSize:w,children:[o.jsxs(Ve,{onClick:s=>{s.preventDefault(),y?.(),i()},children:[o.jsx(qe,{className:"dropdownIcon"}),q(r)]}),r==="classes"?o.jsx(Ke,{onClick:C,children:$?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[j&&`${ee(j)}`,o.jsx(Ze,{})]})}):null]}),M?o.jsx(xe,{...J,children:o.jsx("form",{id:le(re),onSubmit:Q,children:o.jsxs(Je,{width:k.width.value(w),children:[o.jsx(te,{checked:g==="account_group",children:o.jsxs(se,{onClick:()=>g!=="account_group"?A("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>A(s.currentTarget.value),checked:g==="account_group",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:z===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(Xe,{}),o.jsxs(te,{checked:g==="classes",children:[o.jsxs(se,{onClick:()=>t==="Completed"?A("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?A(s.currentTarget.value):null,checked:g==="classes",disabled:t!=="Completed"}),o.jsx(ae,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),$===!1&&j?o.jsx(eo,{children:ee(j)}):null,t==="Completed"?o.jsx(Ue,{id:"sectionformcontainer",children:o.jsx(oo,{reportId:e,firstMonthOfFY:c,nestedClassHierarchy:a,classesToBeFilteredOut:N,selectedView:g,nodeOpenStatus:B,showClassAccountNumber:b,onToggleCheck:l})}):o.jsx(Me,{backgroundColor:T.colors.grey3,foregroundColor:T.colors.grey4,width:k.width.value(w),height:k.height.value(w),animated:!0})]}),o.jsx(Qe,{children:o.jsx(be,{formId:le(re),primaryBtn:{label:ne.save,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},isLoading:!1,isDisabled:V,size:"small"},showCancel:!0,cancelBtn:{label:ne.cancel,style:{width:k.buttonWidth.valuePx(w),height:k.buttonHeight.valuePx(w)},onClick:m,size:"small",shouldResetOnCancel:!0},style:{padding:n.sp3}})})]})})}):null]})})}const oo=de.memo(ze,K);export{no as c,ro as h};
@@ -0,0 +1,121 @@
1
+ import{X as U,u as G,M as y,t as he,l as _,j as r,Y as k,be as fe,aX as me,aV as ge,C as v,o as C,a5 as _e,c as be,bf as Se,n as w,D as B,H as J,bg as we,a7 as Ce,aB as ye,a_ as xe}from"./index-DyBH5SZv.js";import{b as P,f as K,n as b}from"./vendor-CnQcJ2Lu.js";import{m as z,l as Z}from"./analyticsHelper-DPbbQVAO-ChPUlKK7.js";import{h as Oe}from"./ReportTableViewSelector-D7B88kS6-BrGIUsj4.js";import{a as Q,p as Re}from"./TimeRangeSwitcher-C4mpBnQl-CaG6dXuN.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-Bc-Y5Hwv-0uMnBILy.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-CVay7PEO-C-BIaHoh.js";import{R as ve,W as F,x as ee}from"./CollapsableReportTable-BBGdC6Ii-N5Ehkf8R.js";import{T as te,I as se,L as j,D as Le,g as ne}from"./mapSectionWithAcOnlyToTreeNode-Dr43nOGj-FSgubQ7E.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-DFanhVY8-Cl8Oktyg.js";import{d as Te,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D2xlqc6w-BjPO7Xb1.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-CjvJKOzk-DeuVFxVw.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./TimeframeSwitcher-CnLEHYWD-BW9vKcLS.js";import"./page-detail-CWX5S47F-B6DjZ3Gi.js";import"./AccountRow-CP7Tu1pO-VLQJgkE6.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=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 Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Te({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Le({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
2
+ height: ${e=>e.height}px;
3
+ width: 99.9%;
4
+ margin-top: ${C.sp2};
5
+ background-color: ${e=>e.theme.colors.grey4};
6
+ `;function De({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=U(),s=G(),[c,x]=P.useState(void 0),[O,E]=P.useState(void 0),L=!(h==="small"||h==="medium-compact"),V="name+balances_actual",$=u===!0?"this_period_vs_period_before":"none",R=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>_.toTimeframeTick(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,pe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,H=D??pe;H?.additionalBalances!=null&&(m=H.additionalBalances.map(ue=>_.toTimeframeTick(ue)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>_.toTimeframeTick(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>_.toTimeframeTick(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};P.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:$,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:xe(),showClassAccountNumber:n};if(c==null||!J(O,e)||g===!0){const f=ze(e,m,L,g);E(e),x(f)}else{const f=Ne(c,m,e,L);x(f)}},[u,e,g]);const[A,N]=P.useState(5),M=m=>{const f=m+135;N(f)},de=m=>m?.trackPageLoaded(We(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(we,{analytics:a,onLoad:de}),r.jsx(Ve,{height:A,children:r.jsx(ve,{backgroundColor:new Ce(s.colors.grey4),rootNodes:c,type:V,compareMode:R(),isSticky:{isStickyHeader:L,isStickyName:L},treeNodePadding:{left:q.contentPaddingLeft.value(h),right:q.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:M,onScroll:m=>l?.(e.reportId,m)})})]}):null}const ze=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return Ee(e,t,o);case"profit_and_loss_by_classes":return je(e,t,o,a);case"cash_flow":return $e(e,t,o);case"balance_sheet":return Me(e,t,o);default:return}},We=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},Ue=b.div`
7
+ display: flex;
8
+ flex-direction: row;
9
+ border-bottom: 1px solid ${e=>e.theme.colors.grey3};
10
+ justify-content: center;
11
+ width: 100%;
12
+ align-items: center;
13
+ `,Ge=b.div`
14
+ display: flex;
15
+ position: relative;
16
+ `,Ye=b(ye)`
17
+ padding: 12px;
18
+ color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.hero};
19
+ cursor: ${e=>e.isSelected?"default":"pointer"};
20
+ margin: ${e=>e.spaceAround?`0 ${C.sp4}`:0};
21
+ display: flex;
22
+ flex-direction: column;
23
+ align-items: center;
24
+ &:hover {
25
+ color: ${e=>e.theme.colors.primary};
26
+ }
27
+ `,He=b.div`
28
+ height: 2px;
29
+ background-color: ${e=>e.theme.colors.primary};
30
+ border-radius: 1px;
31
+ position: absolute;
32
+ bottom: 0;
33
+ left: 0;
34
+ transition: left 0.35s;
35
+ &.profit_and_loss {
36
+ width: 106px;
37
+ left: 0;
38
+ }
39
+
40
+ &.profit_and_loss_by_classes {
41
+ width: 106px;
42
+ left: 0;
43
+ }
44
+ &.balance_sheet {
45
+ width: 114px;
46
+ left: 30%;
47
+ }
48
+ &.cash_flow {
49
+ width: 160px;
50
+ left: 63%;
51
+ }
52
+ `;function Ze({reportId:e,isSelected:t,onClick:o}){const a=n=>{switch(n){case"profit_and_loss":case"profit_and_loss_by_classes":case"balance_sheet":case"cash_flow":return y.getLocalizedStrings().reportTitleById[n];default:return console.warn("Unsupported report"),""}};return r.jsx(Ye,{"data-testid":k("reportSwitcher",e),onClick:()=>{t===!1&&o(e)},isSelected:t,spaceAround:e==="balance_sheet",children:a(e)})}function qe({reportIds:e,selectedReport:t,onReportSelectionChanged:o}){const a=n=>{o?.(n)};return r.jsx(Ue,{"data-testid":k("report-switcher-container"),children:r.jsx(Ge,{"data-testid":k("report-switcher-content"),children:e.map(n=>n!=="profit_and_loss_by_classes"&&r.jsxs("div",{children:[r.jsx(Ze,{reportId:n,isSelected:t===n,onClick:a}),r.jsx(He,{className:`Slider ${t}`})]},`reportSegment-${n}`))})})}const I={contentContainerLeftRightMargin:new v(w[3],w[3],w[8]),contentRightPadding:new v(w[3],w[3],w[8]),tickSkelectionContainerWidth:new v(343,600,905,1240)},Xe=new v(4,4),Je=new v(4,4),Ke={selectedNumberOfPeriods:(e,t)=>e?Je.value(t):Xe.value(t)},Qe=b.div`
53
+ display: flex;
54
+ flex: 1 1 auto;
55
+ min-height: 100%;
56
+ flex-direction: column;
57
+ background-color: ${e=>e.theme.colors.grey4};
58
+ `,et=b.div`
59
+ display: flex;
60
+ flex: 1 1 auto;
61
+ flex-direction: column;
62
+ height: calc(100vh - ${C.sp10});
63
+ margin: ${e=>`${C.sp2} ${C.sp0} ${C.sp0} ${I.contentContainerLeftRightMargin.valuePx(e.windowSize)}`};
64
+ `,tt=b.div`
65
+ display: flex;
66
+ width: 100%;
67
+ height: 100%;
68
+ flex-direction: row;
69
+ justify-content: center;
70
+ align-items: center;
71
+ background-color: ${e=>e.theme.colors.grey4};
72
+ `,st=b.div`
73
+ position: absolute;
74
+ margin-top: ${e=>e.windowSize==="small"?"230px":"195px"};
75
+ background-color: ${e=>e.theme.colors.grey4};
76
+ `,nt=b.div`
77
+ display: flex;
78
+ width: 100%;
79
+ height: calc(100% - 60px);
80
+ flex-direction: column;
81
+ justify-content: center;
82
+ align-items: center;
83
+ `,ot=b.div`
84
+ height: 96px;
85
+ width: 96px;
86
+ background: ${e=>e.theme.colors.background};
87
+ border-radius: 50%;
88
+ cursor: pointer;
89
+ & svg {
90
+ margin: ${C.sp5};
91
+ color: ${e=>e.theme.colors.grey1};
92
+ }
93
+ &:hover {
94
+ & svg {
95
+ color: ${e=>e.theme.colors.primary};
96
+ }
97
+ }
98
+ `,at=b(_e)`
99
+ margin-top: ${C.sp3};
100
+ color: ${e=>e.theme.colors.hero};
101
+ `,re=({style:e,isLoading:t})=>t?r.jsx(tt,{style:e,children:r.jsx(be,{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}},W=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=Ke.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function jt(e){const t=U(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(R,A)=>{R!==h?.accountViewMode&&a?.(R),A&&n?.(A)};P.useEffect(()=>{if(e.fetchState==="Completed"){const R=S(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(R,e.isCompareMode,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=rt(e),s=y.getLocalizedStrings().reports.common,c=he(),x=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?"detailed":"more_detailed",O=c!=null&&_.hasInvestorBankerLevelAccess(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&O.push("detailed");const[E,L]=K.useState(O.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:E,disabledFormatForRole:O,roleBasedClassesSelectedFormat:x,setSelectedFormat:L};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(nt,{"data-testid":k("report-page-error-reload-page"),children:[r.jsx(ot,{"data-testid":k("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(fe,{})}),r.jsx(at,{children:s.failed})]});const $=e.fetchState;if(i.fetchState!=="Completed"&&($==="In-Progress"||$==="Not-Started"))return r.jsx(re,{isLoading:!0});{const R=r.jsx(me,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx(Be,{defaultOptions:h,analytics:e.analytics,referrer:T(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(A,N,M)=>{d(l,A,N,M)},onTimeframeSelectionChanged:(A,N,M)=>{p?.(A,N,M)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(Qe,{children:[r.jsx(ge,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:R,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(it,{...e})]})}}function it(e){const t=U(),o=G(),a=P.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",T(e.selectedReport),z(e.selectedTimeframe),c);const x=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...S(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(O=>O!=="this_period_vs_last_period"):[...S(e).filter.additionalBalances,"this_period_vs_last_period"].filter(O=>O!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,x,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=S(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=_.reduceAllFetchState([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(et,{windowSize:t,"data-testid":k("reports-page-content-container"),children:[r.jsx(pt,{windowSize:t,ref:a,children:r.jsx(Ae,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),T(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,T(e.selectedReport),z(e.selectedTimeframe));const c=S(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(ht,{windowSize:t,children:r.jsx(ft,{children:r.jsx(Se,{width:u,height:Q-w[2],backgroundColor:o.colors.grey3,style:{borderRadius:C.sp2}})})}):r.jsx(ut,{windowSize:t,children:r.jsx(Re,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:X(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:X(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(T(e.selectedReport),"range filter",e.isCompareMode,Z(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,W({selectedReport:S(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=ct(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(T(e.selectedReport),"range filter",e.isCompareMode,Z(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(mt,{windowSize:t,children:r.jsx(qe,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(lt(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(re,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(le,{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,isPageFetchInProgress:g}),_.isPAndLReport(e.selectedReport)?r.jsx(st,{windowSize:t,children:r.jsx(Oe,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const X=(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}},ct=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function rt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=S(e).firstMonthOfFY,a=S(e).bookCloseDate,n=S(e).dataAvailable,d=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:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const T=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"}},lt=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return B.Event.profitAndLoss;case"cash_flow":return B.Event.cashFlow;case"balance_sheet":return B.Event.balanceSheet;default:return B.Event.reports}},le=K.memo(De,(e,t)=>dt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));le.displayName="Reports table";const dt=(e,t,o)=>o.reduce((a,n)=>a===!0&&J(e[`${n}`],t[`${n}`]),!0),pt=b.div`
102
+ padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
103
+ `,ut=b.div`
104
+ margin-top: ${C.sp3};
105
+ padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
106
+ `,ht=b.div`
107
+ margin-top: ${C.sp3};
108
+ padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
109
+ `,ft=b.div`
110
+ display: flex;
111
+ flex-direction: row;
112
+ justify-content: flex-start;
113
+ min-height: ${Q}px;
114
+ box-sizing: content-box;
115
+ width: 100%;
116
+ align-items: center;
117
+ justify-content: center;
118
+ `,mt=b.div`
119
+ margin-top: ${C.sp4};
120
+ padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
121
+ `;export{jt as default};
@@ -1,4 +1,4 @@
1
- import{u as A,j as a,M as S,X as de,Y as Ae,ao as Q,b6 as Te,q as E,b7 as J,aB as ee,r as M,aA as ae,aJ as re,b8 as oe,b9 as ge,o as m,ba as te,g,D as Fe,bb as pe,bc as me,C as xe,bd as fe,t as R,be as F,av as V}from"./index-Dr7k10Ge.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-JD2mR9iq-B-Dqgpc8.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-DOgHiMwn-C3l_klRD.js";import{V as Z}from"./toChartData-CNfdaXyM-Cc0Cbk9b.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 S,X as de,Y as Ae,ai as Q,b5 as Te,n 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-DyBH5SZv.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-qpvW4LwC-4Ag0mdD1.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-DeWKaovX-C_3xC96w.js";import{V as Z}from"./toChartData-Dkp488IJ-Cg1gF7al.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,4 +1,4 @@
1
- import{X as vt,V 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 Pt,l as d,cH as kt,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,r as q,cP as O,cQ as z,cR as _,g as S,cS as Rt,cT as Ft,cU as Et,cV as Lt,bt as Ne,o as n,a7 as Ot,q as c,c as zt,bp as _t,Q as Wt,h as Ut,cW as Zt,ah as Ht,t as se,m as de,cX as Vt,cY as Yt,cZ as qt,k as Gt,as as Kt,Z as Xe,b5 as Xt,v as Qe,aN as Qt,c_ as Jt}from"./index-Dr7k10Ge.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-BLfeh0xm-C28uSa7K.js";import{S as W}from"./LabeledText-CqZ-udSP-CWd8HtpU.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const 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: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(Vt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Yt,{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,R=`dashboard_${m.currentTenant?.companyId}`,F=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=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(kn,{size:s,children:t.jsx(Pn,{})})]}):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,P=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=v?.code==="paid"?v:P?.code=="approved"&&Z?.code?Z:P,pt=e.billPayInfo?.isRefundInitiated===!0?mt:P?.code=="approved"&&Z?.code?Z:P,ne=()=>{ce()},be=()=>{ce()},H=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(Pt,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,V=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)},k=g&&(v?.code!=null?v.code==="draft"||P?.code==="approved":!0),b=k&&!it,ve=Oe(b,V,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?kt(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=P?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Pe=Jt(m.loggedInUser),ke=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";ve===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Pe,ke):ve===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Pe,ke)}}},Te=()=>{je===!0&&Y(!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,Y]=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:()=>{Y(!1),ne()},onClickAway:()=>{Y(!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(Ve,{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(Ve,{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(Ye,{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:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"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?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(Ye,{children:t.jsx(qe,{})}),t.jsxs(Fn,{"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:A("0,0[.]00",l.amount)})]}),t.jsx(Ke,{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:q.largeMedium.cssObject,decimalStyles:q.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(G,{})]}),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(G,{}),!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(G,{})]}):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(G,{}),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:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?$e:ne,style:{width:ze(!1,k,b,V,s)}},primaryBtn:{label:Oe(b,V,e.isBillMarkedForRetry),isLoading:E?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?Y(!0):Te()},style:{width:ze(!0,k,b,V,s)}},rightSideComponent:k&&!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)`
1
+ import{X as vt,t 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 At,l as d,cH as Pt,cI as kt,Y as j,cJ as Mt,_ as k,cK as Bt,cL as Nt,cM as ke,cN as Me,cO as Be,v as G,cP as O,cQ as z,cR as _,g as S,cS as Rt,cT as Ft,cU as Et,cV as Lt,bs as Ne,o as n,a3 as Ot,n as c,r as zt,bo as _t,Q as Wt,h as Ut,cW as Ht,bH as Zt,q as se,f as de,cX as Yt,cY as Vt,aA as Gt,k as Kt,an as qt,Z as Xe,b4 as Xt,w as Qe,aN as Qt,cZ as Jt}from"./index-DyBH5SZv.js";import{b as U,n as i}from"./vendor-CnQcJ2Lu.js";import{t as en,o as tn}from"./LowBalancePopup-CwcYMtuk-B-vSGd6a.js";import{S as W}from"./LabeledText-bruKdeAH-E98_Q-Ht.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const 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: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:Q,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,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=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(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()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{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"||A?.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=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:Z?.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(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:()=>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(Ge,{})}),t.jsx(q,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ke,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Rn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(q,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(qe,{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(Ge,{})}),t.jsxs(Fn,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(q,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(q,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(qe,{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(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:G.largeMedium.cssObject,decimalStyles:G.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ze,{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(K,{})]}),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(K,{}),!g&&Z!=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:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):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(K,{}),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: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:Fe.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:G.h6Medium.cssObject,decimalStyles:G.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"||J?.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(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)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -68,7 +68,7 @@ import{X as vt,V as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE 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
+ `,K=i.div`
72
72
  display: flex;
73
73
  flex: 1;
74
74
  background-color: ${e=>e.theme.colors.grey3};
@@ -102,7 +102,7 @@ import{X as vt,V as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
102
102
  `,vn=i(se)`
103
103
  padding-bottom: ${n.sp3};
104
104
  color: ${S.brandColorGoldDark};
105
- `,Tn=i(Ht)`
105
+ `,Tn=i(Zt)`
106
106
  padding-top: ${n.sp3};
107
107
  color: ${S.brandColorGoldDark};
108
108
  `,Ue=i.div`
@@ -121,15 +121,15 @@ import{X as vt,V as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
121
121
  `,Cn=i.div`
122
122
  display: flex;
123
123
  padding-top: ${n.sp3};
124
- `,Ze=i(Gt)`
124
+ `,He=i(Kt)`
125
125
  display: flex;
126
126
  color: ${e=>e.theme.colors.hero};
127
127
  margin-right: ${n.sp1};
128
- `,He=i(Kt)`
128
+ `,Ze=i(qt)`
129
129
  display: flex;
130
130
  color: ${e=>e.theme.colors.primary};
131
131
  margin-right: ${n.sp1};
132
- `,Ve=i(_t)`
132
+ `,Ye=i(_t)`
133
133
  cursor: pointer;
134
134
  color: ${e=>e.theme.colors.hero};
135
135
  width: 20px;
@@ -152,17 +152,17 @@ import{X as vt,V as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
152
152
  padding-left: ${n.sp0};
153
153
  z-index: 2;
154
154
  background-color: ${e=>e.theme.colors.grey4};
155
- `,Pn=i(zt)`
155
+ `,An=i(zt)`
156
156
  height: ${n.sp3};
157
157
  width: ${n.sp3};
158
158
  color: ${e=>e.theme.colors.hero};
159
- `,kn=i.span`
159
+ `,Pn=i.span`
160
160
  display: flex;
161
161
  align-items: center;
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
- `,An=i(de)`
165
+ `,kn=i(de)`
166
166
  color: ${e=>e.theme.colors.grey1};
167
167
  display: flex;
168
168
  flex-wrap: wrap;
@@ -193,23 +193,23 @@ import{X as vt,V as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
193
193
  width: ${n.sp4};
194
194
  height: ${n.sp4};
195
195
  display: flex;
196
- `,Ye=i.div`
196
+ `,Ve=i.div`
197
197
  cursor: default;
198
198
  display: flex;
199
199
  align-items: center;
200
200
  margin-right: ${n.sp1};
201
- `,qe=i(qt)`
201
+ `,Ge=i(Gt)`
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
+ `,q=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
+ `,Ke=i(se)`
213
213
  display: flex;
214
214
  color: ${e=>e.theme.colors.primary};
215
215
  align-items: center;
@@ -221,7 +221,7 @@ import{X as vt,V as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
221
221
  cursor: pointer;
222
222
  column-gap: ${n.sp1};
223
223
  margin-left: ${n.sp5};
224
- `,Ke=i.div`
224
+ `,qe=i.div`
225
225
  width: 120px;
226
226
  display: flex;
227
227
  justify-content: flex-end;
@@ -260,7 +260,7 @@ import{X as vt,V as Tt,C as y,cB as jt,M as St,cC as Ct,cD as Dt,j as t,cE as It
260
260
  `,On=i(de)`
261
261
  margin-top: ${n.sp3};
262
262
  color: ${S.alert};
263
- `,zn=i(Zt)`
263
+ `,zn=i(Ht)`
264
264
  min-width: ${n.sp4};
265
265
  height: ${n.sp4};
266
266
  width: ${n.sp4};