@zeniai/web-cockpit-ui 1.15.56-dev → 1.15.56-next

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 (264) hide show
  1. package/dist/assets/{ACHDetailsPage-CfGEDzSb-BGyn6Hh2.js → ACHDetailsPage-CfGEDzSb-BT7UC9eG.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BWhcStZE-CeYODf8q.js → AIPerformancePage-BWhcStZE-Cz2I3fsO.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-D6sv-ieC-B4PaH9ex.js → AccountInfoPage-D6sv-ieC-BoLuhoIY.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-XBo-oJV1-DWd-5Z8N.js → AccountInfoPageContent-XBo-oJV1-CuFJsS0x.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DTEWzR6U-CswnB2Ho.js → AccountLockedInfoModal-DTEWzR6U-CGneI4iq.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DwzrCq7I-D9C1tnWs.js → AccountReconDetailsDrawerPage-DwzrCq7I-DigAcgOG.js} +1 -1
  7. package/dist/assets/{AccountRow-BsjoBGWz-XKpYWJFn.js → AccountRow-BsjoBGWz-C7szHK3C.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-D-iNswM8-BCWgVD2M.js → AccountsPromoCardStack-D-iNswM8-DYgSp253.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-D7IEsbzd-9AcgaTTK.js → AddAddressForCardDrawer-D7IEsbzd-Dw6C1ICM.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DX8xInYJ-DCTNQyem.js → AddToWalletPage-DX8xInYJ-ly5NyZgW.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-CXj1Tifk-Cx88sSbv.js → AgingReportsPage-CXj1Tifk-BzAv2JHk.js} +1 -1
  12. package/dist/assets/{AllUserItems-DU78kWqE-BO6rFyuD.js → AllUserItems-DU78kWqE-6ym6cvKw.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-BV5m2F3a-BSgBSoy0.js → ApAgingDetailPage-BV5m2F3a-CX8zqWdg.js} +1 -1
  14. package/dist/assets/{AppBasePage-1U1M1WD9-CXysaPqS.js → AppBasePage-1U1M1WD9-7K86pRyT.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-ilzYI49f-BI7w7tno.js → AppDrawerContent-ilzYI49f-ChMcFq5L.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-CJ4xz_hQ-D5sZOOO8.js → ApprovalRulesSettingsPage-CJ4xz_hQ-DHrPTv7J.js} +1 -1
  17. package/dist/assets/{ArAgingChart-B0wn2vDP-ClJ7YwbK.js → ArAgingChart-B0wn2vDP-CeDSdSh5.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-C-agUa8y-C_TJ2L21.js → ArAgingDetailPage-C-agUa8y-D0bFm3Vr.js} +1 -1
  19. package/dist/assets/{AttachmentView-9Vrv319r-czchKUV5.js → AttachmentView-9Vrv319r-BoIj7rqB.js} +1 -1
  20. package/dist/assets/{BankAccountSection-Bv9Iogxn-gY4dwkU_.js → BankAccountSection-Bv9Iogxn-Dn6_j7bj.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-DAxaKIg3-SHVqFPrV.js → BankAccountWarningSection-DAxaKIg3-BC-Gud2B.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-ZUWw604G-5JFfnAUm.js → BankConnectionsSettingsPage-ZUWw604G-JxGz8IdE.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Cf4PYoYQ-DJR4Ml4e.js → BillDetailPage-Cf4PYoYQ-OLN6S1oC.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BfJ2F03Y-BSqfEElp.js → BillPayApprovalRuleDetailPage-BfJ2F03Y-BbDQg6t3.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DQ0MRCLa-C_GPmDyJ.js → BillPayApprovalRulesPage-DQ0MRCLa-CaBpqdfJ.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DdxRC1p4-C6FSHUuV.js → BillPayPromoPage-DdxRC1p4-DXWPDahb.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-DBFcp1Yq-B1CZUTYe.js → BillPaySetUpPage-DBFcp1Yq-BE188z-T.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-DsMjw0qG-Cq1aHxZN.js → BillingSettingsPage-DsMjw0qG-CgIQ868A.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-HXDlOpw3-BmcSBj3u.js → BillsBulkReviewDrawerPage-HXDlOpw3-sJvmyvLA.js} +1 -1
  30. package/dist/assets/{BoxItem-DaxLyqVe-BDS_i-Ew.js → BoxItem-DaxLyqVe-BYakLrDl.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-BG1rOYOk-DZAei-pQ.js → BusinessVerificationPage-BG1rOYOk-1F5nXmle.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-bkAPzhoK-D68hvJdl.js → CardNumberSubText-bkAPzhoK-CwSJ5nCc.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-CpVmCjts-C2xLm-90.js → CashbackDetailPage-CpVmCjts-D2atcBqg.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-u6hMCosx-DzEhI6yb.js → ChargeCardDetailPage-u6hMCosx-Co7P8FEX.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-D_7gwi3K-Bgz8fKhJ.js → ChargeCardListPage-D_7gwi3K-BD2YmqF2.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DJmStpnO-DehJbT-m.js → ChargeCardListTable-DJmStpnO-BykUox6E.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BRGJ-5y3-gSyJhC6K.js → ChargeCardPaymentHistoryPage-BRGJ-5y3-BkflTM4b.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-Dx4Lni50-C133Kvxd.js → ChargeCardPromoPage-Dx4Lni50-oI8s0uMa.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-CRDfRFf1-DUoEu2We.js → ChargeCardSetupPage-CRDfRFf1-DpuxyGiK.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-l4X9T8zd-DdxKgTDl.js → ChargeCardStatementsPage-l4X9T8zd-B3sC8pMs.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-DR6LIuPw-BXSM12h-.js → CheckDepositDrawerPage-DR6LIuPw-B41wwfxV.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-4bJMcvHV-DJSNBbx8.js → CollapsableReportTable-4bJMcvHV-BEUZsZHH.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-DoGF7khv-CBglpYSM.js → CompanyOfficerDetailsSection-DoGF7khv-BeGUHRv0.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BHFj9sK6-DN_eKmT3.js → CompanyPassportCard-BHFj9sK6-CrnwOyYd.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-CH-dqy03-CkFzpRAr.js → CompanyPassportPage-CH-dqy03-JZDI5nZJ.js} +1 -1
  46. package/dist/assets/{CompleteProfile-Ck4Baf4z-Bb8vk_It.js → CompleteProfile-Ck4Baf4z-t1Fm7VKB.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-CVLXMknu-C5dtBbFy.js → ConfettiBurst-CVLXMknu-B-WXkXx9.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-C1ngGNQp.js → ConstrainedInnerElement-BeIpAPjB-CxjPp9d_.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-D-0WG9pO-B3wRKHPt.js → CreateOrEditVendorPage-D-0WG9pO-SE14_Dp_.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-B7voVDUs-D92b0pbw.js → CreditCardPaymentDrawerPage-B7voVDUs-gQoSltvB.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-DrL1sFLq-CxbEbHLA.js → CurrencySelectField-DrL1sFLq-D7v6UBjT.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-D42sb2F9-DOoQENIp.js → CustomerOnboardingActivationPage-D42sb2F9-Co7pCX6S.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-ecKRiXO1-Dt9tE17R.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-n6GMQZP5-VclSN0ci.js → CustomerOnboardingDetailPageSkeleton-n6GMQZP5-cDSdRaZ1.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage--O7lSduT-kzaO9ZVJ.js → CustomerOnboardingNoStepsPage--O7lSduT-CegTqYEq.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-BPX2w8Fg-Co3rO7kz.js → CustomerOnboardingPage-BPX2w8Fg-BbveWsWV.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CZXqXXFj-B9tCLCph.js → CustomerOnboardingProductSuitePage-CZXqXXFj-ZJRYlRGu.js} +1 -1
  58. package/dist/assets/{Dashboard-Q5gt63wS-D-NM1jxJ.js → Dashboard-Q5gt63wS-Bh_Ezlwu.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-DJsc3Nx7-CPNsUz_i.js → DashboardReportPage-DJsc3Nx7-BMkor39P.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-8LKlc-IA-DppqzS9d.js → DashboardSidebarBackgroundAnimation-8LKlc-IA-CTc_s9TG.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-DB7Oz4GA-Bl1jaHEd.js → DepositAccTransactionItem-DB7Oz4GA-BJsMVbCz.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionListPage-BU1b2OIP-Bg5Lhhh_.js → DepositAccTransactionListPage-BU1b2OIP-fg_MxEra.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-Dptv-ebx-Dh9S4ky1.js → DomesticWireDetailsPage-Dptv-ebx-CDtM4Mba.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-B61S0t5X-D_O4PIgS.js → DownloadOverlay-B61S0t5X-CiIfClXS.js} +1 -1
  65. package/dist/assets/{DrawerPage-DtJQE-UA-o7PPfoO7.js → DrawerPage-DtJQE-UA-nFtcNS_d.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-Dd1g1r37-D5NUne-F.js → EditPeoplePage-Dd1g1r37-BlDfIESw.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-B_u1W6bf-DF3LKIJu.js → EditReimbursementDetailPage-B_u1W6bf-lGBe6YHl.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-q_kzXlBV-CelG1soQ.js → EntityDetailPage-q_kzXlBV-C7ry0wja.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-BiIPehv4-DbMdDRCI.js → EntitySummarySection-BiIPehv4-BECojA-w.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-Bo5Eu3Ju-BJhkARvq.js → ExpenseAutomationOverviewPage-Bo5Eu3Ju-8A1mjrcZ.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-CBGrrVMb-DCPvuANk.js → ExpenseAutomationPage-CBGrrVMb-DSTphjU9.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-D18sY5VJ-B6oTblqu.js → ExpressPayPage-D18sY5VJ-CXxSRpOH.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-De2_m2xD-DVzcgjum.js → FeaturePreviewPage-De2_m2xD-Dtwuyfma.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-D5ln-mii-C0ucHGsw.js → FollowStepsSection-D5ln-mii-Cu5AdR6f.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-Ch51_Flw-D-uO5wy3.js → GlobalReviewListPage-Ch51_Flw-D7Hq0q3H.js} +1 -1
  76. package/dist/assets/{InformationCardStack-B4z6RgwP-DRH43WQx.js → InformationCardStack-B4z6RgwP-CoM-OWFX.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-CwBBEkZ7-DJcXHozK.js → InsightsCardStack-CwBBEkZ7-iCa1tPB0.js} +1 -1
  78. package/dist/assets/{InsightsSection-CQD6KXLg-Dl2NV9MP.js → InsightsSection-CQD6KXLg-BhkEswIu.js} +1 -1
  79. package/dist/assets/{IntegrationsSettingsPage-DBiomD_q-DtZiPPV1.js → IntegrationsSettingsPage-DBiomD_q-CpRQOrEk.js} +1 -1
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-h4bchKo3-DHLm8H4k.js → InternationalWireSwiftDetailsPage-h4bchKo3-DApFyFZj.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-DAQrAsW5-Do-KUK3J.js → InternationalWireVerificationPage-DAQrAsW5-BRvLfa6W.js} +1 -1
  82. package/dist/assets/{InviteFormPage-Dgb-LZKf-ilCutOVc.js → InviteFormPage-Dgb-LZKf-CUWwHW0l.js} +1 -1
  83. package/dist/assets/{InvitePageListView-DC-Dp4Zc-D5DpcvE2.js → InvitePageListView-DC-Dp4Zc-DOZrcYVQ.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-CjJOyA8E-7gXroqh1.js → InvitePeoplePage-CjJOyA8E-BfYhzH_G.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-BJ_Sbytw-C6MkqA6t.js → InvoiceUploadSection-BJ_Sbytw-C3YRKtbj.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-DiUKL-rT-CiI_gBye.js → IssueChargeCardPage-DiUKL-rT-BI-PpZiM.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-DYTDoPER-BLmB8hnw.js → LabeledAddressValue-DYTDoPER-qcyo5Y2G.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-DVNSaKBc-CR8m9IVs.js → LabeledAddressValueField-DVNSaKBc-DnQSDhhM.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-CZlavM3Q-CNMSOa5n.js → LabeledControlledCheckBoxField-CZlavM3Q-uZqVDEWT.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-BM1jU3hl-_1uQcelw.js → LabeledCountryMultiSelectField-BM1jU3hl-Xvbqmmx6.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BkI0vyax-Dhqs7qd2.js → LabeledCreatableSingleSelectField-BkI0vyax-DU1Mj98E.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-B7TETIva-DaOKO-m5.js → LabeledDocumentField-B7TETIva-CxViFb-J.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-Dj0SVwKK-B9iE6D9J.js → LabeledDropDownFormattedTextField-Dj0SVwKK-D9de8ZNL.js} +1 -1
  94. package/dist/assets/{LabeledText-BaYp8lyd-CYkwAQsC.js → LabeledText-BaYp8lyd-WQtgU5L2.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-nlyagP_L-V-ruydL6.js → LabeledUserSingleSelectWithSubtitlesField-nlyagP_L-gIPFyYiK.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-Bgf26ek0-BDX-8gLb.js → LabeledZeniRolesDropDownField-Bgf26ek0-CjaM1NiL.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-ByQktBdK-C5XqLvWq.js → LinkJETransactionPage-ByQktBdK-R6Bc66n3.js} +1 -1
  98. package/dist/assets/{LockCardPage-M7Pcx6mB-BwvNlh-G.js → LockCardPage-M7Pcx6mB-RQnUc-0q.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-DTwIs75G-MssgctsT.js → LowBalancePopup-DTwIs75G-DlRsdftD.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-Cateo39t-T6xIrHkU.js → MagicLinkACHDetailsPage-Cateo39t-CnKqNhD6.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BMkPYONG-Cj3VBYpA.js → MagicLinkDomesticWireDetailsPage-BMkPYONG-Cj2BPStp.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BVn2JAEL-DeQZ6JNw.js → MagicLinkInternationalWireDetailsPage-BVn2JAEL-CPqJ96oY.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-6e22dOVy-Gwai5BfM.js → MagicLinkSuccessPage-6e22dOVy-BM6U131L.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-B985JuE8-Dn-qMxNJ.js → MagicLinkTitleSection-B985JuE8-CFouJXCT.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-detuRa7l-BJwGs4Yy.js → MailingDetailsSection-detuRa7l-sK-1qP6R.js} +1 -1
  106. package/dist/assets/{MyBankConnectionsSettingsPage-2x0kDozt-ClPVN4BG.js → MyBankConnectionsSettingsPage-2x0kDozt-6KW3B39X.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-CfsTMsnG-BVxobwmr.js → MyPendingActivationChargeCardListPage-CfsTMsnG-VM5zfWxp.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-BQx9m8r--De3mUOMd.js → MyProfileSettingsPage-BQx9m8r--DnqCb6kk.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-BXsxMlBP-DTPzeQwG.js → NavBarWithPicker-BXsxMlBP-CEAmBJqh.js} +1 -1
  110. package/dist/assets/{NavigationArrow-BpKepWMa-Bn4FAyCA.js → NavigationArrow-BpKepWMa-Csh9oRQw.js} +1 -1
  111. package/dist/assets/{NavigationDots-CxV99fd--CAgGp2GQ.js → NavigationDots-CxV99fd--BmJjNv7E.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-rAYrEwup-HzusEOWs.js → NewGlobalMerchantPage-rAYrEwup-BDzpQBY9.js} +1 -1
  113. package/dist/assets/{NoDataChart-SlgxXIjJ-Bi3c4Olw.js → NoDataChart-SlgxXIjJ-tzzCLpGw.js} +1 -1
  114. package/dist/assets/{NoDataTable-CePwfuWH-BOYJp_LB.js → NoDataTable-CePwfuWH-D8-A35SW.js} +1 -1
  115. package/dist/assets/{NotFoundPage-CdmLYWbu-BBjH4PMR.js → NotFoundPage-CdmLYWbu-DfpsdMwT.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-KThnHYOw-D0iY_voD.js → NotificationSettingsPage-KThnHYOw-CmEdDL1n.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-6ay7Y8AS-8Qyako_J.js → NotificationsListConfig-6ay7Y8AS-DAF0N_OI.js} +1 -1
  118. package/dist/assets/{NotificationsPage-BmNwL81h-yaYUcRR5.js → NotificationsPage-BmNwL81h-C57P76sI.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-DQPUJmPx-m9-ozd1L.js → OpExByVendorPage-DQPUJmPx-DE41S0Rz.js} +1 -1
  120. package/dist/assets/{OverlayContainerPage-D4QU0p4o-BPZC_JkQ.js → OverlayContainerPage-D4QU0p4o-C4MzxXMj.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-C6FwSybq-CjLuy8We.js → PandLWithForecastPage-C6FwSybq-CJc-rL-e.js} +1 -1
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DFCQGlZ--D6Xxd3zY.js → PaymentAccountSetupBillingAddressSection-DFCQGlZ--TnnueyHJ.js} +1 -1
  123. package/dist/assets/{PeoplePage-Df6QdrX5-CNBpk9Ed.js → PeoplePage-Df6QdrX5-njfW24bQ.js} +1 -1
  124. package/dist/assets/{Preview-Wpvi69S8.js → Preview-BETjTH8i.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-Bq0uDCW7-BchAY2K0.js → ProductsCarousel-Bq0uDCW7-C1uPDUmF.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-Bs1TPBeA-C7sFMDVT.js → PromoBaseCards-Bs1TPBeA-CxdL7Crr.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-CGH6M1BO-BTEhQpDo.js → QBOConnectionDialog-CGH6M1BO-CYPY4upl.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-BsFbgysY-CxagA6VQ.js → QBOSetupSection-BsFbgysY-LlwMRCuv.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CUf8BGfB-21mnbTVV.js → ReimbursementApprovalRuleDetailPage-CUf8BGfB-BNmwG449.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-SKRjcth4-C1ni0caN.js → ReimbursementApprovalRulesPage-SKRjcth4-BePIntFP.js} +1 -1
  131. package/dist/assets/{ReimbursementDetailPage-BzqZlk2B-BW3Uw4EQ.js → ReimbursementDetailPage-BzqZlk2B-nY_-R0Ul.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-X1o2D5fz-DfVtcv-q.js → ReimbursementPromoPage-X1o2D5fz-BPoQDtp2.js} +1 -1
  133. package/dist/assets/{ReimbursementSetUpPage-DfAhrvlw-x_fpcuRs.js → ReimbursementSetUpPage-DfAhrvlw-BjPPL-Iz.js} +1 -1
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-D0tGia3M-CiWkjF6g.js → ReimbursementsBulkReviewDrawerPage-D0tGia3M-DzmHpdvz.js} +1 -1
  135. package/dist/assets/{ReloadCard-DvIzOHkJ-SNPzaiS7.js → ReloadCard-DvIzOHkJ-CTnSG-K_.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-DikZuwk8-JNUnKB0r.js → ReportTableViewSelector-DikZuwk8-BZSBkOrP.js} +1 -1
  137. package/dist/assets/{ReportsPage-CgwJh87H-BukY4LEY.js → ReportsPage-CgwJh87H-BZeQQ_pR.js} +1 -1
  138. package/dist/assets/{RevenueChart-VvZ0y1TP-qC_rkSgA.js → RevenueChart-VvZ0y1TP-CMLRNb1Y.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-DC5Pr6t5-DriGh_oI.js → ReviewDetailsPage-DC5Pr6t5-AYbCrPzn.js} +1 -1
  140. package/dist/assets/{ReviewOverlay-BidXwnVw-CvEYNCbr.js → ReviewOverlay-BidXwnVw-Bwh5m-tK.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-CUpngYu7-DADn2aws.js → RoleWithToolTip-CUpngYu7-Cu0Lkb6W.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-P4en048K-D2xUyeCX.js → ScheduleDetailsFixedAssetsPage-P4en048K-DN5RiHLv.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-Bm8IOCpE-BZajG7cQ.js → ScheduleDetailsPage-Bm8IOCpE-CUdzjzFx.js} +1 -1
  144. package/dist/assets/{ScheduleSequenceTable-Cz46lcuv-DwCS-vmM.js → ScheduleSequenceTable-Cz46lcuv-DRnYGfRr.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-Cdqgwe4G.js → ScreenRoutes-ClG_a0f4.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-DBuoMbxP-u5yk_3Is.js → SetUpAccountSection-DBuoMbxP-PPrYgDDJ.js} +1 -1
  147. package/dist/assets/{SignIn-ogxsR98p-BbKEcQBe.js → SignIn-ogxsR98p-DRWJP45A.js} +1 -1
  148. package/dist/assets/{SignInScreen-DP-m_Sk_.js → SignInScreen-DUnOF1Us.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-DP6uWx2T-BVgklVNc.js → SpendManagementListViewPage-DP6uWx2T-PuUSMg98.js} +3 -3
  150. package/dist/assets/{SpendManagementPerTabPage-DSXg_agw-BBbTIsSz.js → SpendManagementPerTabPage-DSXg_agw-CTfU0t2u.js} +1 -1
  151. package/dist/assets/{SpendManagementSection-C-EIQv7m-QyOD3ve3.js → SpendManagementSection-C-EIQv7m-D_BlCqQ1.js} +1 -1
  152. package/dist/assets/{StatementItem-BSVnuQ3e-Bes_h96W.js → StatementItem-BSVnuQ3e-C0cFH0W4.js} +1 -1
  153. package/dist/assets/{StatementsPage-CgOC5W_I-Df-cPgLx.js → StatementsPage-CgOC5W_I-B_k5MEJ1.js} +1 -1
  154. package/dist/assets/{StatusSwitcher-BnSFSpJ0-DnH48_9z.js → StatusSwitcher-BnSFSpJ0-x7rigF2T.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-VHMqXmGa-DxiEBs88.js → SubTabSwitcher-VHMqXmGa-BIqXcuun.js} +1 -1
  156. package/dist/assets/{SummaryCard-BTnU1LYd-5Er4BGPP.js → SummaryCard-BTnU1LYd-BfFoBhUf.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-CeQkRFbn-JSqoMa4T.js → TaskManagementPage-CeQkRFbn-BBbIae3j.js} +1 -1
  158. package/dist/assets/{TimeRangeSwitcher-BifUYnpe-C0S2hPAm.js → TimeRangeSwitcher-BifUYnpe-CzHMfoBX.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcher-9X-6amWo-BHsPnDZX.js → TimeframeSwitcher-9X-6amWo-Cv3xGsto.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-C0fPwGaA-BBTlDoLy.js → TimeframeSwitcherWithToggle-C0fPwGaA-Dm9NyY_2.js} +1 -1
  161. package/dist/assets/{TopExCard-Bc812PB9-Cgf0i8AY.js → TopExCard-Bc812PB9-k1R0RbE3.js} +1 -1
  162. package/dist/assets/{TopExDetailPage-19FwjeX_-Udhi2GOz.js → TopExDetailPage-19FwjeX_-C3EFwGgq.js} +1 -1
  163. package/dist/assets/{TransactionActivityLogPage-7Lfwq_IY-CFdWRG9m.js → TransactionActivityLogPage-7Lfwq_IY-Dop9eCB6.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-C7Tv82YB-m9WgdlMS.js → TransactionDetailPage-C7Tv82YB-Cz7EhpbS.js} +1 -1
  165. package/dist/assets/{TransactionList-CSZxHqad-CHJszH5C.js → TransactionList-CSZxHqad-kJLmmtxR.js} +1 -1
  166. package/dist/assets/{TransactionListBig-gSPdjYSs-Dr__rrF5.js → TransactionListBig-gSPdjYSs-BIDGIJ5O.js} +1 -1
  167. package/dist/assets/{TransactionListPage-9ezEzYvU-Cm8yXVfl.js → TransactionListPage-9ezEzYvU-BbUjs7W7.js} +1 -1
  168. package/dist/assets/{TransactionVendorDetailPage-rcOVwgxy-Ow41gTpA.js → TransactionVendorDetailPage-rcOVwgxy-Dhn_DOC0.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-IeuD-8y4-BBbQ4FZg.js → TransferDrawerPage-IeuD-8y4-CXUcfJPn.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-bmv1c3nO-m6l1VttQ.js → TreasuryOverviewPage-bmv1c3nO-DAasRvhe.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-KuuzWIYO-BDjVQ4WN.js → TreasuryPromoPage-KuuzWIYO-D_4SPTF3.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-BAfN8DAx-CZoNN9-F.js → TreasuryStatementsPage-BAfN8DAx-DH3jCQK1.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-BRDygaXn-BgocidOv.js → TreasuryTaxLetterPage-BRDygaXn-BMu8n10r.js} +1 -1
  174. package/dist/assets/{TrendChart-BJqnjEu6-BacSdVAX.js → TrendChart-BJqnjEu6-BcUHR0yb.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-2pBj6qUR-T4OcbS5_.js → TrendWithTransactions-2pBj6qUR-Dk0X2YjA.js} +1 -1
  176. package/dist/assets/{UncategorizedAccountsMappingPage-DlxWCGZg-CdSrYHNM.js → UncategorizedAccountsMappingPage-DlxWCGZg-BJ_VedLW.js} +1 -1
  177. package/dist/assets/{UnitIntegrationPage-U85XCs_D-Bx8aLPRf.js → UnitIntegrationPage-U85XCs_D-BQIGh553.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-5-avyqy0-fJ0d5z1N.js → UploadAdditionalDocumentOverlay-5-avyqy0-CGB77bds.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-DLU7H22p-DEGIw5UY.js → Vendor2FAPopup-DLU7H22p-DFSgke-O.js} +1 -1
  180. package/dist/assets/{VendorACHDetailsPage-B-Zle7l9-BVROIXeh.js → VendorACHDetailsPage-B-Zle7l9-BDurNGLt.js} +1 -1
  181. package/dist/assets/{VendorDetailPage-prrUwTR_-BD-GdLo7.js → VendorDetailPage-prrUwTR_-C5B2dYP4.js} +1 -1
  182. package/dist/assets/{VendorDomesticWireDetailsPage-Cm6an-ZT-DTJS7RDE.js → VendorDomesticWireDetailsPage-Cm6an-ZT-Bb0BNolV.js} +1 -1
  183. package/dist/assets/{VendorFiling1099EditablePage-DIvLStyg-CYbK6ev_.js → VendorFiling1099EditablePage-DIvLStyg-B3tnAbVU.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-BJKFcgOq-CSmnGqyp.js → VendorFirstReviewPage-BJKFcgOq-berQxHZ8.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-Ctwg_CTY-CK5moP88.js → VendorInternationalWireDetailsPage-Ctwg_CTY-C8yeUuxK.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-D11DRwWL-NLsA0vGl.js → VendorInternationalWireSwiftDetailsPage-D11DRwWL-CJWEyaHp.js} +1 -1
  187. package/dist/assets/{VendorsAccountsSection-Bj840XXA-zylNCv6a.js → VendorsAccountsSection-Bj840XXA-DcvaDmXH.js} +1 -1
  188. package/dist/assets/{VerifyDevice-D5ce0rEk-ByWH1Q6_.js → VerifyDevice-D5ce0rEk-2mKDuP8G.js} +1 -1
  189. package/dist/assets/{VideoPlayer-XhlPd-AK-BJf7SfgL.js → VideoPlayer-XhlPd-AK-sfcdiova.js} +2 -2
  190. package/dist/assets/{VideoPopup-8ebccUQt-CoWKaT2k.js → VideoPopup-8ebccUQt-DLgjafny.js} +1 -1
  191. package/dist/assets/{WarningsDrawerPage-CXHMQPmw-V3zdlF1l.js → WarningsDrawerPage-CXHMQPmw-Q5l6-pXN.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-BCEccrGo-CidPyi4i.js → ZeniAccountDetailPage-BCEccrGo-BteMLofT.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-f_9PSaYv-D_Ll-dy-.js → ZeniAccountListViewPage-f_9PSaYv-BTKQlryD.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-oinah8Mu-H8pK0EkG.js → ZeniAccountNavBarPieces-oinah8Mu-CblFKevi.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-DGttDJGp-F0XlSRMz.js → ZeniAccountPromoPage-DGttDJGp-CO7GLUYm.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-5hc6Dfls-Csndezul.js → ZeniAccountSetupPage-5hc6Dfls-2ZN1wM3u.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-Ct2Gx1TW-CQmnzv8u.js → ZeniCopyright-Ct2Gx1TW-BbtfOFOY.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-CtSVUxFX-BrJYB_Am.js → ZeniTransferAmountSlider-CtSVUxFX-Bh7vu1XJ.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-vslLOG9x.js → add-to-wallet-DgdBD8_G-MMaCvn5R.js} +1 -1
  200. package/dist/assets/{analytics-DRVsD-is.js → analytics-B9bfzou3.js} +1 -1
  201. package/dist/assets/{analyticsHelper-BZApS5V7-B7rpJkUm.js → analyticsHelper-BZApS5V7-jZ1QnhW4.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BZQExm6b.js → analyticsHelper-CqJTIptA.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-CRc8KuMa.js → arrow-south-east-round-PEovUgvH-C9cLp2Q7.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-D9R5lS7d.js → auto-transfer-rule-mbafm5D3-DBBHJVgP.js} +1 -1
  205. package/dist/assets/{chartTypes-DcNGo46a-CqMbbGUL.js → chartTypes-DcNGo46a-Bl9Ba2Ec.js} +1 -1
  206. package/dist/assets/{commonDimensions-C5V1GwCs-CraAZnb_.js → commonDimensions-C5V1GwCs-DbsbwO-E.js} +1 -1
  207. package/dist/assets/{commonTypes-CGdrM7wg-Dv-NGJZV.js → commonTypes-CGdrM7wg-MFIO9_nl.js} +1 -1
  208. package/dist/assets/{constants-DTOPkqCr.js → constants-HGor04yO.js} +1 -1
  209. package/dist/assets/{core-D2KcXy_y.js → core-BWDnr9Gg.js} +1 -1
  210. package/dist/assets/{dash.all.min-BAllcYm-.js → dash.all.min-DvqMuEWA.js} +1 -1
  211. package/dist/assets/{detailCommon-DEXTnYE7-CjqtKJhq.js → detailCommon-DEXTnYE7-oCyoxXOa.js} +1 -1
  212. package/dist/assets/{downloadPdf-Cd1RR1sH-Cvu_thw4.js → downloadPdf-Cd1RR1sH-BNK3ZoUZ.js} +1 -1
  213. package/dist/assets/{empty-wMN4Rfol.js → empty-DfPuJRGa.js} +1 -1
  214. package/dist/assets/{empty-BTyrR5qF.js → empty-ue1aewHT.js} +1 -1
  215. package/dist/assets/{epic-CLSKdGkp.js → epic-k5dbNQki.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-DP-cJLna.js → gift-box-Cmt9OgIZ-qAHOzmcI.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-D-Fo2zgX.js → graphic-no-data-l-DU4J8fDt---tUPBNV.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-D8edm3HW.js → graphic-no-data-net-burn-l-CzmycA0m-BRkKEUUC.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-DJLp3b1-.js → handshake-BPg58FML-CkpwcVYW.js} +1 -1
  220. package/dist/assets/{helper-kGYJRbxq-D4mxVura.js → helper-kGYJRbxq-Cn9XMYVp.js} +1 -1
  221. package/dist/assets/{index-DH51hTsJ.js → index-B-pr-nku.js} +1 -1
  222. package/dist/assets/{index-CBio2FUy.js → index-BARtAQax.js} +1 -1
  223. package/dist/assets/{index-sotzB3Mx.js → index-BvSnP-a8.js} +7 -7
  224. package/dist/assets/{index-aDDisho3.js → index-DjnsipaT.js} +1 -1
  225. package/dist/assets/{index-Cpk1UVH8.js → index-Dn0w9kTl.js} +1 -1
  226. package/dist/assets/{index-DJK9rXmh.js → index-g3s4sosq.js} +1 -1
  227. package/dist/assets/{index-BHqxLcjt.js → index-vbmIzp_H.js} +1 -1
  228. package/dist/assets/{lexical-Dj2KAtCD.js → lexical-DYHIykLA.js} +1 -1
  229. package/dist/assets/{liveblocks-DezulwOD.js → liveblocks-YkknHVIE.js} +1 -1
  230. package/dist/assets/{lottie-D7_uSTtS.js → lottie-BkRKia_G.js} +1 -1
  231. package/dist/assets/{mapLoadingInProgressToTreeNode-BXVk4dIp-BuiNw2vq.js → mapLoadingInProgressToTreeNode-BXVk4dIp-DeIX1nZs.js} +1 -1
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-oqbfssc7-BaqyGbt-.js → mapSectionWithAcOnlyToTreeNode-oqbfssc7-CCvijdTA.js} +1 -1
  233. package/dist/assets/{mapSpacerToTreeNode-BA1RwyQy-BaPbOaZb.js → mapSpacerToTreeNode-BA1RwyQy-BkOTBMiU.js} +1 -1
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-B8pIGqbO-BJk8DWTQ.js → mapTimeframeBalancesToTreeNode-B8pIGqbO-Cnd0k88A.js} +1 -1
  235. package/dist/assets/{mapTimeframeBalancesToTreeNode-D-yDCyLa-BApfBpwP.js → mapTimeframeBalancesToTreeNode-D-yDCyLa-D9i_iz1i.js} +1 -1
  236. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BGId2YAo-D_Czi_I6.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BGId2YAo-B1tQ96V0.js} +1 -1
  237. package/dist/assets/{mui-CWqpJBOf.js → mui-DdaOYkOE.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-B2tDMGkf.js → page-detail-CWX5S47F-BVD8dmW3.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-HFnGkMgT.js → panelSelectedMixin-CzfD5-Zs-CcjL-J_0.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-0Atq9vXH.js → radio-default-CiSgisfh-B0I4aqIR.js} +1 -1
  241. package/dist/assets/{react-BxwoRjBq.js → react-B4NGp729.js} +1 -1
  242. package/dist/assets/{react-Bhq0KCUo.js → react-B4bj_-NQ.js} +1 -1
  243. package/dist/assets/{react-By_pdhPa.js → react-CwlUOqDq.js} +1 -1
  244. package/dist/assets/{react-4PtfPhor.js → react-D0jmMq2P.js} +2 -2
  245. package/dist/assets/{react-CjLH0WcG.js → react-DeafClR3.js} +1 -1
  246. package/dist/assets/{react-CSZP1bUd.js → react-DmOGTEV-.js} +1 -1
  247. package/dist/assets/{react-k1MNcgFc.js → react-mYMx6dtw.js} +1 -1
  248. package/dist/assets/{react-CPTbErTv.js → react-qfAcdN-7.js} +1 -1
  249. package/dist/assets/{recharts-H7gIkfSf.js → recharts-Draow00k.js} +1 -1
  250. package/dist/assets/{sentry-2bqpslFP.js → sentry-PIpBVFN8.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-BxoXXGpt.js → shield-DOlUxcFf-T6Vv8nW0.js} +1 -1
  252. package/dist/assets/{toCOABalancesWithID-Ckyq_c20-DzmyGaV3.js → toCOABalancesWithID-Ckyq_c20-DnNoEppB.js} +1 -1
  253. package/dist/assets/{toChartData-N0pkfSXY-BNdgZ-va.js → toChartData-N0pkfSXY-YtvmGVAK.js} +1 -1
  254. package/dist/assets/{uploadAttachment-CPTMCWWz-BHUe9KYn.js → uploadAttachment-CPTMCWWz-DM0DTgA-.js} +1 -1
  255. package/dist/assets/{uploadReceipts-Dge0cNF1-CAzr24hn.js → uploadReceipts-Dge0cNF1-BQ6IZcWG.js} +1 -1
  256. package/dist/assets/{url-FABckJBr.js → url-DgTtS9gh.js} +1 -1
  257. package/dist/assets/{url-BnPWfZoh.js → url-N0-iyJlp.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-isRXDDp5.js → useLongPress-GCK2COYQ-Zkw-eSxy.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-C5jzPmNs.js → usp-line-BBd1wKwW-Dv3JYmQ0.js} +1 -1
  260. package/dist/assets/{utils-Bfvb8rvn.js → utils-4eLQ8r7Q.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-DM-Ak8Gv.js → zeni-epic-state-pvbk7grM.js} +3 -3
  262. package/dist/index.html +1 -1
  263. package/package.json +1 -1
  264. package/dist/assets/CustomerOnboardingContainerPage-ecKRiXO1-B2Rv0uXK.js +0 -1
@@ -1,4 +1,4 @@
1
- import{y as W,u as L,d as M,J as G,O as U,aa as H,aS as J,aL as X,cH as Y,V as r,bE as K,ad as Q,aT as Z,o as b,gb as ee}from"./index-sotzB3Mx.js";import{a as T}from"./sentry-2bqpslFP.js";import{n as c}from"./mui-CWqpJBOf.js";import{b as te,f as le,o as B,l as _}from"./FollowStepsSection-D5ln-mii-C0ucHGsw.js";import"./liveblocks-DezulwOD.js";import"./core-D2KcXy_y.js";import"./recharts-H7gIkfSf.js";import"./zeni-epic-state-DM-Ak8Gv.js";import"./lottie-D7_uSTtS.js";import"./analytics-DRVsD-is.js";import"./lexical-Dj2KAtCD.js";import"./utils-Bfvb8rvn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="1078bca3-3439-4ebd-ac48-64b29318e79f",e._sentryDebugIdIdentifier="sentry-dbid-1078bca3-3439-4ebd-ac48-64b29318e79f")}catch{}})();const k="reimbursementApprovalRuleDetailPage",$="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",ae={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:l,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:i=!1,onBackClick:s,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:w}){const V=M(),A=G(),a=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,l==="approval_create"&&!t),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=J(u?.fetchState),{upperBound:P}=x,{allApprovalRules:d,allAccountingClasses:O,remiSetupApproverViewUpdateData:m}=e;let f=d.length>1?d.length-1:0,v=d.length>0?d[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=d.findIndex(p=>p.approvalRuleId===n),v=f>0?d[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,p)=>{g(p)};return T.useEffect(()=>{const n=y.watch((p,{name:D})=>{if(D!=null&&p!=null){const F=X(p);Y(()=>z(D,F))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&w()},[R,u?.fetchState,w]),r.jsxs(ie,{children:[r.jsx(K,{title:l==="approval_create"?a.newApproval:a.editApproval,backgroundColor:V.colors.grey4,style:{zIndex:4},onBackClick:()=>{s()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Q,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:C(k),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(te,{label:{label:i?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:$,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:n=>t?!0:n!=null&&n>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:i,additionalInfoLabel:a.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(le,{sectionId:I,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:O,stepsInfo:x[I],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:C(k),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&d.length===0?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:a.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:A==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(A)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,l)=>{const{criteria:t,steps:o}=e.remiSetupApproverViewUpdateData?.data??{},i=e.allApprovalRules.length===0;return{[h]:i?[]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),B(e.allAttributes),B(e.filteredAttributes),o??[])??[],[$]:l?void 0:t!=null?t.range.min.amount??0:0,[j]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},oe=(e,l,t,o,i)=>i&&i.length>0?i.map((s,g)=>({stepIndex:g,stepType:{selectedOption:s.action,allOptions:_},actors:{allUsers:l,selectedUsers:se(e,s.actors),allNonUsers:o,selectedNonUsers:ne(t,s.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:_},actors:{allUsers:l,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,l)=>e.filter(t=>t.userId!=null&&l.findIndex(o=>o.userId===t.userId)>-1),ne=(e,l)=>e.filter(t=>l.findIndex(o=>o.subType===t.value)>-1),C=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
1
+ import{y as W,u as L,d as M,J as G,O as U,aa as H,aS as J,aL as X,cH as Y,V as r,bE as K,ad as Q,aT as Z,o as b,gb as ee}from"./index-BvSnP-a8.js";import{a as T}from"./sentry-PIpBVFN8.js";import{n as c}from"./mui-DdaOYkOE.js";import{b as te,f as le,o as B,l as _}from"./FollowStepsSection-D5ln-mii-Cu5AdR6f.js";import"./liveblocks-YkknHVIE.js";import"./core-BWDnr9Gg.js";import"./recharts-Draow00k.js";import"./zeni-epic-state-pvbk7grM.js";import"./lottie-BkRKia_G.js";import"./analytics-B9bfzou3.js";import"./lexical-DYHIykLA.js";import"./utils-4eLQ8r7Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="1078bca3-3439-4ebd-ac48-64b29318e79f",e._sentryDebugIdIdentifier="sentry-dbid-1078bca3-3439-4ebd-ac48-64b29318e79f")}catch{}})();const k="reimbursementApprovalRuleDetailPage",$="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",ae={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:l,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:i=!1,onBackClick:s,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:w}){const V=M(),A=G(),a=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,l==="approval_create"&&!t),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=J(u?.fetchState),{upperBound:P}=x,{allApprovalRules:d,allAccountingClasses:O,remiSetupApproverViewUpdateData:m}=e;let f=d.length>1?d.length-1:0,v=d.length>0?d[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=d.findIndex(p=>p.approvalRuleId===n),v=f>0?d[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,p)=>{g(p)};return T.useEffect(()=>{const n=y.watch((p,{name:D})=>{if(D!=null&&p!=null){const F=X(p);Y(()=>z(D,F))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&w()},[R,u?.fetchState,w]),r.jsxs(ie,{children:[r.jsx(K,{title:l==="approval_create"?a.newApproval:a.editApproval,backgroundColor:V.colors.grey4,style:{zIndex:4},onBackClick:()=>{s()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Q,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:C(k),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(te,{label:{label:i?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:$,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:n=>t?!0:n!=null&&n>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:i,additionalInfoLabel:a.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(le,{sectionId:I,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:O,stepsInfo:x[I],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:C(k),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&d.length===0?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:a.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:A==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(A)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,l)=>{const{criteria:t,steps:o}=e.remiSetupApproverViewUpdateData?.data??{},i=e.allApprovalRules.length===0;return{[h]:i?[]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),B(e.allAttributes),B(e.filteredAttributes),o??[])??[],[$]:l?void 0:t!=null?t.range.min.amount??0:0,[j]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},oe=(e,l,t,o,i)=>i&&i.length>0?i.map((s,g)=>({stepIndex:g,stepType:{selectedOption:s.action,allOptions:_},actors:{allUsers:l,selectedUsers:se(e,s.actors),allNonUsers:o,selectedNonUsers:ne(t,s.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:_},actors:{allUsers:l,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,l)=>e.filter(t=>t.userId!=null&&l.findIndex(o=>o.userId===t.userId)>-1),ne=(e,l)=>e.filter(t=>l.findIndex(o=>o.subType===t.value)>-1),C=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{d as V,J as N,O as j,V as t,bE as G,T as F,aR as m,o,y as r,am as E,aP as P,bV as T,cr as O,cs as q,ct as K,d1 as J,u as l,bb as Q,H as k,ba as X,p as z,d0 as Y,bv as Z,b as ee}from"./index-sotzB3Mx.js";import{n as i}from"./mui-CWqpJBOf.js";import{a as te}from"./sentry-2bqpslFP.js";import"./liveblocks-DezulwOD.js";import"./core-D2KcXy_y.js";import"./recharts-H7gIkfSf.js";import"./zeni-epic-state-DM-Ak8Gv.js";import"./lottie-D7_uSTtS.js";import"./analytics-DRVsD-is.js";import"./lexical-Dj2KAtCD.js";import"./utils-Bfvb8rvn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="4fbb6f89-610f-42af-a270-6690c8a10872",e._sentryDebugIdIdentifier="sentry-dbid-4fbb6f89-610f-42af-a270-6690c8a10872")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},H={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:x=!1,approvalRule:b,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[g,w]=te.useState(!1),n=N(),{range:h}=b.criteria[0],{steps:$,approvalRuleId:p}=b,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},M={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,U)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(L,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(L,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},d.userId))]},U))})}),g?t.jsx(O,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:M}):null]})},ie=i.div`
1
+ import{d as V,J as N,O as j,V as t,bE as G,T as F,aR as m,o,y as r,am as E,aP as P,bV as T,cr as O,cs as q,ct as K,d1 as J,u as l,bb as Q,H as k,ba as X,p as z,d0 as Y,bv as Z,b as ee}from"./index-BvSnP-a8.js";import{n as i}from"./mui-DdaOYkOE.js";import{a as te}from"./sentry-PIpBVFN8.js";import"./liveblocks-YkknHVIE.js";import"./core-BWDnr9Gg.js";import"./recharts-Draow00k.js";import"./zeni-epic-state-pvbk7grM.js";import"./lottie-BkRKia_G.js";import"./analytics-B9bfzou3.js";import"./lexical-DYHIykLA.js";import"./utils-4eLQ8r7Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="4fbb6f89-610f-42af-a270-6690c8a10872",e._sentryDebugIdIdentifier="sentry-dbid-4fbb6f89-610f-42af-a270-6690c8a10872")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},H={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:x=!1,approvalRule:b,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[g,w]=te.useState(!1),n=N(),{range:h}=b.criteria[0],{steps:$,approvalRuleId:p}=b,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},M={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,U)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(L,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(L,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},d.userId))]},U))})}),g?t.jsx(O,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:M}):null]})},ie=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ax as Mt,a9 as Rt,J as Pt,d as Bt,cf as Nt,y as m,O as et,gl as Lt,gn as Ot,go as _t,V as t,cr as Ae,cs as Me,ct as Re,bE as Pe,aR as y,bq as Et,dx as Wt,gp as Kt,gA as Be,o as a,gq as Ne,fm as b,gt as x,fp as w,aP as Le,fl as Oe,b as V,gv as _e,aT as Ft,ap as Ut,gw as Vt,gx as re,bz as Ht,gy as Gt,x as Yt,H as qt,B as Jt,am as tt,bb as it,p as H,an as Zt,bX as Qt,aj as Xt,gS as ei,gO as ti,u as c,ck as ii,c$ as ai}from"./index-sotzB3Mx.js";import{a as p}from"./sentry-2bqpslFP.js";import{n as r}from"./mui-CWqpJBOf.js";import{a as ri}from"./liveblocks-DezulwOD.js";import{bL as oi,bP as ni,FS as li}from"./zeni-epic-state-DM-Ak8Gv.js";import si from"./InvoiceUploadSection-BJ_Sbytw-C6MkqA6t.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-D2KcXy_y.js";import"./lottie-D7_uSTtS.js";import"./recharts-H7gIkfSf.js";import"./analytics-DRVsD-is.js";import"./lexical-Dj2KAtCD.js";import"./utils-Bfvb8rvn.js";import"./AttachmentView-9Vrv319r-czchKUV5.js";import"./uploadReceipts-Dge0cNF1-CAzr24hn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="0c57e458-2d9f-4d4a-a18f-8d1c25a6feed",e._sentryDebugIdIdentifier="sentry-dbid-0c57e458-2d9f-4d4a-a18f-8d1c25a6feed")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new qt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:G,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,q]=p.useState(!1),[ct,J]=p.useState(!1),[Z,Q]=p.useState("approved"),N=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,xe=p.useRef({}),we=l=>{const n=xe.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&G()},[e,G]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);we(n)}},[]);const ut=()=>{G()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ye?.():j.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:O}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,E=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=_?.code==="paid",ft=Te?_:E?.code=="approved"&&W?.code?W:E,$=pi(e.remiDetails),R=E?.code=="approved"&&W?.code?W:E,K=e.remiDetails?.isDeleted??!1,Se=e.remiDetails?.amount,je=e.remiDetails?.amount.amount??0,Ie=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Q("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Ie()):(Q("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:F,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&F(z)},[z,F]);const{threads:P,isLoading:D}=Ot({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),F(null))},[ae,P,D,U,F]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:j.title}),descriptionComponent:t.jsx(Me,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Et,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(qe,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Kt,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:O.duplicateWarning.title,description:O.duplicateWarning.description}):ke?t.jsxs(Ee,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Ke,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ki,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:O.duplicateWarning.title,description:O.duplicateWarning.description}):ke?t.jsxs(Ee,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Ke,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:o,ref:ze=>{ze!=null&&(xe.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return we(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Oe,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:je,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Ei,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Oe,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(_e,{amount:je,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||K===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&q(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>q(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&Ct===!0?t.jsx(Si,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>q(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:xt,threadUnResolve:wt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
1
+ import{ax as Mt,a9 as Rt,J as Pt,d as Bt,cf as Nt,y as m,O as et,gl as Lt,gn as Ot,go as _t,V as t,cr as Ae,cs as Me,ct as Re,bE as Pe,aR as y,bq as Et,dx as Wt,gp as Kt,gA as Be,o as a,gq as Ne,fm as b,gt as x,fp as w,aP as Le,fl as Oe,b as V,gv as _e,aT as Ft,ap as Ut,gw as Vt,gx as re,bz as Ht,gy as Gt,x as Yt,H as qt,B as Jt,am as tt,bb as it,p as H,an as Zt,bX as Qt,aj as Xt,gS as ei,gO as ti,u as c,ck as ii,c$ as ai}from"./index-BvSnP-a8.js";import{a as p}from"./sentry-PIpBVFN8.js";import{n as r}from"./mui-DdaOYkOE.js";import{a as ri}from"./liveblocks-YkknHVIE.js";import{bL as oi,bP as ni,FS as li}from"./zeni-epic-state-pvbk7grM.js";import si from"./InvoiceUploadSection-BJ_Sbytw-C3YRKtbj.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-BWDnr9Gg.js";import"./lottie-BkRKia_G.js";import"./recharts-Draow00k.js";import"./analytics-B9bfzou3.js";import"./lexical-DYHIykLA.js";import"./utils-4eLQ8r7Q.js";import"./AttachmentView-9Vrv319r-BoIj7rqB.js";import"./uploadReceipts-Dge0cNF1-BQ6IZcWG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="0c57e458-2d9f-4d4a-a18f-8d1c25a6feed",e._sentryDebugIdIdentifier="sentry-dbid-0c57e458-2d9f-4d4a-a18f-8d1c25a6feed")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new qt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:G,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,q]=p.useState(!1),[ct,J]=p.useState(!1),[Z,Q]=p.useState("approved"),N=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,xe=p.useRef({}),we=l=>{const n=xe.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&G()},[e,G]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);we(n)}},[]);const ut=()=>{G()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ye?.():j.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:O}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,E=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=_?.code==="paid",ft=Te?_:E?.code=="approved"&&W?.code?W:E,$=pi(e.remiDetails),R=E?.code=="approved"&&W?.code?W:E,K=e.remiDetails?.isDeleted??!1,Se=e.remiDetails?.amount,je=e.remiDetails?.amount.amount??0,Ie=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Q("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Ie()):(Q("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:F,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&F(z)},[z,F]);const{threads:P,isLoading:D}=Ot({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),F(null))},[ae,P,D,U,F]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:j.title}),descriptionComponent:t.jsx(Me,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Et,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(qe,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Kt,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:O.duplicateWarning.title,description:O.duplicateWarning.description}):ke?t.jsxs(Ee,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Ke,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ki,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:O.duplicateWarning.title,description:O.duplicateWarning.description}):ke?t.jsxs(Ee,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Ke,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:o,ref:ze=>{ze!=null&&(xe.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return we(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Oe,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:je,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Ei,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Oe,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(_e,{amount:je,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||K===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&q(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>q(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&Ct===!0?t.jsx(Si,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>q(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:xt,threadUnResolve:wt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ax as ne,d as S,J as k,aS as le,V as e,aR as a,fx as ae,bE as de,i as u,af as d,O as V,o as r,ar as me,R as ce,aV as E,an as pe,y as xe,p as z,cG as he,aW as ue,bc as ge,u as we}from"./index-sotzB3Mx.js";import{a as j}from"./sentry-2bqpslFP.js";import{n as s}from"./mui-CWqpJBOf.js";import{FR as je,bT as be}from"./zeni-epic-state-DM-Ak8Gv.js";import{C as fe}from"./VideoPopup-8ebccUQt-CoWKaT2k.js";import{M as v}from"./usp-line-BBd1wKwW-C5jzPmNs.js";import"./liveblocks-DezulwOD.js";import"./core-D2KcXy_y.js";import"./recharts-H7gIkfSf.js";import"./lottie-D7_uSTtS.js";import"./analytics-DRVsD-is.js";import"./lexical-Dj2KAtCD.js";import"./utils-Bfvb8rvn.js";import"./VideoPlayer-XhlPd-AK-BJf7SfgL.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="d210d9bd-299a-4267-9db1-6955b38d8d21",i._sentryDebugIdIdentifier="sentry-dbid-d210d9bd-299a-4267-9db1-6955b38d8d21")}catch{}})();const F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
1
+ import{ax as ne,d as S,J as k,aS as le,V as e,aR as a,fx as ae,bE as de,i as u,af as d,O as V,o as r,ar as me,R as ce,aV as E,an as pe,y as xe,p as z,cG as he,aW as ue,bc as ge,u as we}from"./index-BvSnP-a8.js";import{a as j}from"./sentry-PIpBVFN8.js";import{n as s}from"./mui-DdaOYkOE.js";import{FR as je,bT as be}from"./zeni-epic-state-pvbk7grM.js";import{C as fe}from"./VideoPopup-8ebccUQt-DLgjafny.js";import{M as v}from"./usp-line-BBd1wKwW-Dv3JYmQ0.js";import"./liveblocks-YkknHVIE.js";import"./core-BWDnr9Gg.js";import"./recharts-Draow00k.js";import"./lottie-BkRKia_G.js";import"./analytics-B9bfzou3.js";import"./lexical-DYHIykLA.js";import"./utils-4eLQ8r7Q.js";import"./VideoPlayer-XhlPd-AK-sfcdiova.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="d210d9bd-299a-4267-9db1-6955b38d8d21",i._sentryDebugIdIdentifier="sentry-dbid-d210d9bd-299a-4267-9db1-6955b38d8d21")}catch{}})();const F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as Ee,J as Te,aS as N,aa as qe,cH as Ge,O as Ve,aX as Ce,V as t,ff as Je,p as J,y as s,bE as Ze,T as Ye,ad as Xe,fy as ve,dS as Ke,fz as Qe,by as et,dI as tt,aT as it,o as a,fB as nt,u as n,ck as ot,cL as at,ex as lt,fK as ke,fL as $e,gk as st,i as rt,aR as Pe,H as Ae,bO as dt,aj as ct,bv as ut}from"./index-sotzB3Mx.js";import{a as o}from"./sentry-2bqpslFP.js";import{n as i}from"./mui-CWqpJBOf.js";import{bJ as mt}from"./zeni-epic-state-DM-Ak8Gv.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-5-avyqy0-fJ0d5z1N.js";import"./liveblocks-DezulwOD.js";import"./core-D2KcXy_y.js";import"./recharts-H7gIkfSf.js";import"./lottie-D7_uSTtS.js";import"./analytics-DRVsD-is.js";import"./lexical-Dj2KAtCD.js";import"./utils-Bfvb8rvn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="f8026d5f-da5a-4043-9d2a-40409df31169",e._sentryDebugIdIdentifier="sentry-dbid-f8026d5f-da5a-4043-9d2a-40409df31169")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Te(),D=Ee(),{formState:{errors:Y},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:U,mileageStatus:b}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[S,T]=o.useState(F),[te,H]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!1||U.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&F&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Vt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{d as Ee,J as Te,aS as N,aa as qe,cH as Ge,O as Ve,aX as Ce,V as t,ff as Je,p as J,y as s,bE as Ze,T as Ye,ad as Xe,fy as ve,dS as Ke,fz as Qe,by as et,dI as tt,aT as it,o as a,fB as nt,u as n,ck as ot,cL as at,ex as lt,fK as ke,fL as $e,gk as st,i as rt,aR as Pe,H as Ae,bO as dt,aj as ct,bv as ut}from"./index-BvSnP-a8.js";import{a as o}from"./sentry-PIpBVFN8.js";import{n as i}from"./mui-DdaOYkOE.js";import{bJ as mt}from"./zeni-epic-state-pvbk7grM.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-5-avyqy0-CGB77bds.js";import"./liveblocks-YkknHVIE.js";import"./core-BWDnr9Gg.js";import"./recharts-Draow00k.js";import"./lottie-BkRKia_G.js";import"./analytics-B9bfzou3.js";import"./lexical-DYHIykLA.js";import"./utils-4eLQ8r7Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="f8026d5f-da5a-4043-9d2a-40409df31169",e._sentryDebugIdIdentifier="sentry-dbid-f8026d5f-da5a-4043-9d2a-40409df31169")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Te(),D=Ee(),{formState:{errors:Y},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:U,mileageStatus:b}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[S,T]=o.useState(F),[te,H]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!1||U.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&F&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Vt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -1 +1 @@
1
- import{V as f,cr as V,cs as M,ct as K,ke as W,a_ as q,O as z}from"./index-sotzB3Mx.js";import{a as b}from"./sentry-2bqpslFP.js";import{Gp as G}from"./zeni-epic-state-DM-Ak8Gv.js";import{u as X}from"./ReviewOverlay-BidXwnVw-CvEYNCbr.js";import"./liveblocks-DezulwOD.js";import"./core-D2KcXy_y.js";import"./recharts-H7gIkfSf.js";import"./mui-CWqpJBOf.js";import"./lottie-D7_uSTtS.js";import"./analytics-DRVsD-is.js";import"./lexical-Dj2KAtCD.js";import"./utils-Bfvb8rvn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="68100a13-4ed1-4476-92cb-bba161f8f976",e._sentryDebugIdIdentifier="sentry-dbid-68100a13-4ed1-4476-92cb-bba161f8f976")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=z.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=b.useState(!1),[m,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===m.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[m.length,B,h,e.fetchState,v,e,o]);const D=m.length,S=m.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:C}=Y(S);A({type:"reject",title:d,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:d=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,G(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",d)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},O=()=>{let d=a.footer.approve;return T?d=a.texts.close:t==="send_for_approval"&&(d=a.footer.submit),{label:d,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(V,{titleComponent:f.jsx(K,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(X,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:O(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:q("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let m="",_="";return e==="Completed"&&!u?(m=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(m=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
1
+ import{V as f,cr as V,cs as M,ct as K,ke as W,a_ as q,O as z}from"./index-BvSnP-a8.js";import{a as b}from"./sentry-PIpBVFN8.js";import{Gp as G}from"./zeni-epic-state-pvbk7grM.js";import{u as X}from"./ReviewOverlay-BidXwnVw-Bwh5m-tK.js";import"./liveblocks-YkknHVIE.js";import"./core-BWDnr9Gg.js";import"./recharts-Draow00k.js";import"./mui-DdaOYkOE.js";import"./lottie-BkRKia_G.js";import"./analytics-B9bfzou3.js";import"./lexical-DYHIykLA.js";import"./utils-4eLQ8r7Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="68100a13-4ed1-4476-92cb-bba161f8f976",e._sentryDebugIdIdentifier="sentry-dbid-68100a13-4ed1-4476-92cb-bba161f8f976")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=z.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=b.useState(!1),[m,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===m.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[m.length,B,h,e.fetchState,v,e,o]);const D=m.length,S=m.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:C}=Y(S);A({type:"reject",title:d,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:d=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,G(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",d)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},O=()=>{let d=a.footer.approve;return T?d=a.texts.close:t==="send_for_approval"&&(d=a.footer.submit),{label:d,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(V,{titleComponent:f.jsx(K,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(X,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:O(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:q("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let m="",_="";return e==="Completed"&&!u?(m=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(m=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
@@ -1,4 +1,4 @@
1
- import{d as l,V as r,aO as a,b4 as f,O as y,aR as m,aU as h,bG as g,aj as u,o as c,b5 as w}from"./index-sotzB3Mx.js";import{n as d}from"./mui-CWqpJBOf.js";import{a as s}from"./sentry-2bqpslFP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6f18c949-9689-4ee3-ab1d-702c078fdcad",e._sentryDebugIdIdentifier="sentry-dbid-6f18c949-9689-4ee3-ab1d-702c078fdcad")}catch{}})();function j({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{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 x=d(h)`
1
+ import{d as l,V as r,aO as a,b4 as f,O as y,aR as m,aU as h,bG as g,aj as u,o as c,b5 as w}from"./index-BvSnP-a8.js";import{n as d}from"./mui-DdaOYkOE.js";import{a as s}from"./sentry-PIpBVFN8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6f18c949-9689-4ee3-ab1d-702c078fdcad",e._sentryDebugIdIdentifier="sentry-dbid-6f18c949-9689-4ee3-ab1d-702c078fdcad")}catch{}})();function j({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{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 x=d(h)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(j,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const b=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.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"})),C=d(h)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{d as ee,J as de,cf as xe,aa as ye,V as o,ap as _e,cg as te,ad as we,y as P,aT as $e,o as a,O as oe,ch as ve,ci as ke,cj as Ce,ck as je,cl as Ie,an as he,cm as Se,aj as Ne,aF as X,bG as Pe,u as f,aX as Oe,am as De,au as Fe}from"./index-sotzB3Mx.js";import{a as u,P as ue}from"./sentry-2bqpslFP.js";import{n as d}from"./mui-CWqpJBOf.js";import{R as O,I as Be}from"./CollapsableReportTable-4bJMcvHV-DJSNBbx8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f2c1b47d-35d1-4f0b-ab8f-23534b9820e6",e._sentryDebugIdIdentifier="sentry-dbid-f2c1b47d-35d1-4f0b-ab8f-23534b9820e6")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(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(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Te(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,n){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(n)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:n.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
1
+ import{d as ee,J as de,cf as xe,aa as ye,V as o,ap as _e,cg as te,ad as we,y as P,aT as $e,o as a,O as oe,ch as ve,ci as ke,cj as Ce,ck as je,cl as Ie,an as he,cm as Se,aj as Ne,aF as X,bG as Pe,u as f,aX as Oe,am as De,au as Fe}from"./index-BvSnP-a8.js";import{a as u,P as ue}from"./sentry-PIpBVFN8.js";import{n as d}from"./mui-DdaOYkOE.js";import{R as O,I as Be}from"./CollapsableReportTable-4bJMcvHV-BEUZsZHH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="f2c1b47d-35d1-4f0b-ab8f-23534b9820e6",e._sentryDebugIdIdentifier="sentry-dbid-f2c1b47d-35d1-4f0b-ab8f-23534b9820e6")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(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(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Te(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,n){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(n)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:n.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
2
2
  padding: 0 ${a.sp3} 0 ${a.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{J as W,d as G,O as y,ax as ge,V as r,bQ as _e,aR as P,bF as be,bE as Se,o as w,aV as we,T as ye,y as B,bR as Ce,u as S,w as A,aF as X,$ as xe,aX as Oe,at as Re,bN as Ae}from"./index-sotzB3Mx.js";import{a as L,P as K}from"./sentry-2bqpslFP.js";import{n as _}from"./mui-CWqpJBOf.js";import{bg as Z,ES as Be,E$ as ve,F0 as $,F1 as Te,F2 as Le,F3 as Pe,F4 as Ne,F5 as Ie,F6 as ee,F7 as te}from"./zeni-epic-state-DM-Ak8Gv.js";import{m as z,l as q}from"./analyticsHelper-BZApS5V7-B7rpJkUm.js";import{x as ke}from"./ReportTableViewSelector-DikZuwk8-JNUnKB0r.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-BifUYnpe-C0S2hPAm.js";import{M as Me}from"./TimeframeSwitcherWithToggle-C0fPwGaA-BBTlDoLy.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-B61S0t5X-D_O4PIgS.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-4bJMcvHV-DJSNBbx8.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-oqbfssc7-BaqyGbt-.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-B8pIGqbO-BJk8DWTQ.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BGId2YAo-D_Czi_I6.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-BXVk4dIp-BuiNw2vq.js";import"./liveblocks-DezulwOD.js";import"./core-D2KcXy_y.js";import"./recharts-H7gIkfSf.js";import"./lottie-D7_uSTtS.js";import"./analytics-DRVsD-is.js";import"./lexical-Dj2KAtCD.js";import"./utils-Bfvb8rvn.js";import"./TimeframeSwitcher-9X-6amWo-BHsPnDZX.js";import"./page-detail-CWX5S47F-B2tDMGkf.js";import"./AccountRow-BsjoBGWz-XKpYWJFn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d89644e6-e3f9-454a-a0f2-9ef4188158b1",e._sentryDebugIdIdentifier="sentry-dbid-d89644e6-e3f9-454a-a0f2-9ef4188158b1")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),f=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
1
+ import{J as W,d as G,O as y,ax as ge,V as r,bQ as _e,aR as P,bF as be,bE as Se,o as w,aV as we,T as ye,y as B,bR as Ce,u as S,w as A,aF as X,$ as xe,aX as Oe,at as Re,bN as Ae}from"./index-BvSnP-a8.js";import{a as L,P as K}from"./sentry-PIpBVFN8.js";import{n as _}from"./mui-DdaOYkOE.js";import{bg as Z,ES as Be,E$ as ve,F0 as $,F1 as Te,F2 as Le,F3 as Pe,F4 as Ne,F5 as Ie,F6 as ee,F7 as te}from"./zeni-epic-state-pvbk7grM.js";import{m as z,l as q}from"./analyticsHelper-BZApS5V7-jZ1QnhW4.js";import{x as ke}from"./ReportTableViewSelector-DikZuwk8-BZSBkOrP.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-BifUYnpe-CzHMfoBX.js";import{M as Me}from"./TimeframeSwitcherWithToggle-C0fPwGaA-Dm9NyY_2.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-B61S0t5X-CiIfClXS.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-4bJMcvHV-BEUZsZHH.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-oqbfssc7-CCvijdTA.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-B8pIGqbO-Cnd0k88A.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BGId2YAo-B1tQ96V0.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-BXVk4dIp-DeIX1nZs.js";import"./liveblocks-YkknHVIE.js";import"./core-BWDnr9Gg.js";import"./recharts-Draow00k.js";import"./lottie-BkRKia_G.js";import"./analytics-B9bfzou3.js";import"./lexical-DYHIykLA.js";import"./utils-4eLQ8r7Q.js";import"./TimeframeSwitcher-9X-6amWo-Cv3xGsto.js";import"./page-detail-CWX5S47F-BVD8dmW3.js";import"./AccountRow-BsjoBGWz-C7szHK3C.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d89644e6-e3f9-454a-a0f2-9ef4188158b1",e._sentryDebugIdIdentifier="sentry-dbid-d89644e6-e3f9-454a-a0f2-9ef4188158b1")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),f=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${w.sp2};
@@ -1,4 +1,4 @@
1
- import{d as A,V as a,O as D,J as de,b5 as J,u as I,b as M,a_ as Q,o as m,aR as Ae,p as g,aF as Ve,y as xe,bO as ge,am as R,bP as V,bc as F}from"./index-sotzB3Mx.js";import{a as P,P as ee}from"./sentry-2bqpslFP.js";import{n as x}from"./mui-CWqpJBOf.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-DcNGo46a-CqMbbGUL.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-Ckyq_c20-DzmyGaV3.js";import{V as Z}from"./toChartData-N0pkfSXY-BNdgZ-va.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-H7gIkfSf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="df903ccf-7440-4f88-850f-8f2e4274f47b",e._sentryDebugIdIdentifier="sentry-dbid-df903ccf-7440-4f88-850f-8f2e4274f47b")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{d as A,V as a,O as D,J as de,b5 as J,u as I,b as M,a_ as Q,o as m,aR as Ae,p as g,aF as Ve,y as xe,bO as ge,am as R,bP as V,bc as F}from"./index-BvSnP-a8.js";import{a as P,P as ee}from"./sentry-PIpBVFN8.js";import{n as x}from"./mui-DdaOYkOE.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-DcNGo46a-Bl9Ba2Ec.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-Ckyq_c20-DnNoEppB.js";import{V as Z}from"./toChartData-N0pkfSXY-YtvmGVAK.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-Draow00k.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="df903ccf-7440-4f88-850f-8f2e4274f47b",e._sentryDebugIdIdentifier="sentry-dbid-df903ccf-7440-4f88-850f-8f2e4274f47b")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -1,4 +1,4 @@
1
- import{J as Tt,ax as Ct,y as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as le,fd as At,fe as Mt,ff as Bt,fg as Ft,aP as A,fh as Rt,aR as v,fi as Lt,fj as Be,fk as Fe,fl as Re,b as K,fm as O,p as j,fn as zt,fo as E,fp as W,fq as Nt,fr as Ot,bV as Le,o as n,aT as Et,u as d,O as Wt,ah as Vt,c4 as _t,H as Yt,B as Zt,fs as Gt,ck as Ht,am as ce,an as me,ft as Kt,fu as qt,bk as Ut,a as Xt,bb as Jt,fv as Qt,ar as tt,bM as en,aj as nt,bv as tn,fw as nn}from"./index-sotzB3Mx.js";import{a as _}from"./sentry-2bqpslFP.js";import{n as i}from"./mui-CWqpJBOf.js";import{bo as ze,bm as Ne,bH as I,bN as an,FG as on,bL as re,bP as ln}from"./zeni-epic-state-DM-Ak8Gv.js";import{t as rn,o as sn}from"./LowBalancePopup-DTwIs75G-MssgctsT.js";import{S as V}from"./LabeledText-BaYp8lyd-CYkwAQsC.js";import"./liveblocks-DezulwOD.js";import"./core-D2KcXy_y.js";import"./recharts-H7gIkfSf.js";import"./lottie-D7_uSTtS.js";import"./analytics-DRVsD-is.js";import"./lexical-Dj2KAtCD.js";import"./utils-Bfvb8rvn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="a5977ba0-ef20-4a91-9604-c2ef52e9e745",e._sentryDebugIdIdentifier="sentry-dbid-a5977ba0-ef20-4a91-9604-c2ef52e9e745")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Yt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:We}=mn,Ve=({attachment:e})=>{const[y,g]=_.useState(!1),M=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(qt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:J,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),P=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?Pt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=_.useState(!1),[te,be]=_.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);_.useEffect(()=>{(P?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[P,Q,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&Y?.code?Y:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&Y?.code?Y:N,ie=()=>{pe()},$e=()=>{pe()},Z=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=_e(h,G,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Ae=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Ae,Me):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Ae,Me)}}},Te=()=>{Ce===!0&&H(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,H]=_.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{H(!1),ie()},onClickAway:()=>{H(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(T)??"",paymentType:ve,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ue,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(_n,{children:[t.jsx(Zn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Lt(o);return o!=null?t.jsx(Yn,{children:it.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[o.attachments&&o.attachments.length>0?t.jsx(Ve,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:A("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsxs(U,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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(He,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(Ve,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsxs(Vn,{"data-testid":v("review-detail-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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})]})},o.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ke,{children:a.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ke,{children:a.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(V,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(V,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(q,{}),!x&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(V,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Z.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(Z.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(V,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(V,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ze,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?We.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ze,{children:[t.jsx(de,{children:We.transactionFee}),t.jsx(se,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ye(!1,C,h,G,s)}},primaryBtn:{label:_e(h,G,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?H(!0):Te()},style:{width:Ye(!0,C,h,G,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(Hn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(qn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ye=(e,y,g,M,S)=>g?128:y&&!e&&S==="small"?"auto":M?165:m.footerButtonWidth.value(S),pn=i(en)`
1
+ import{J as Tt,ax as Ct,y as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as le,fd as At,fe as Mt,ff as Bt,fg as Ft,aP as A,fh as Rt,aR as v,fi as Lt,fj as Be,fk as Fe,fl as Re,b as K,fm as O,p as j,fn as zt,fo as E,fp as W,fq as Nt,fr as Ot,bV as Le,o as n,aT as Et,u as d,O as Wt,ah as Vt,c4 as _t,H as Yt,B as Zt,fs as Gt,ck as Ht,am as ce,an as me,ft as Kt,fu as qt,bk as Ut,a as Xt,bb as Jt,fv as Qt,ar as tt,bM as en,aj as nt,bv as tn,fw as nn}from"./index-BvSnP-a8.js";import{a as _}from"./sentry-PIpBVFN8.js";import{n as i}from"./mui-DdaOYkOE.js";import{bo as ze,bm as Ne,bH as I,bN as an,FG as on,bL as re,bP as ln}from"./zeni-epic-state-pvbk7grM.js";import{t as rn,o as sn}from"./LowBalancePopup-DTwIs75G-DlRsdftD.js";import{S as V}from"./LabeledText-BaYp8lyd-WQtgU5L2.js";import"./liveblocks-YkknHVIE.js";import"./core-BWDnr9Gg.js";import"./recharts-Draow00k.js";import"./lottie-BkRKia_G.js";import"./analytics-B9bfzou3.js";import"./lexical-DYHIykLA.js";import"./utils-4eLQ8r7Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="a5977ba0-ef20-4a91-9604-c2ef52e9e745",e._sentryDebugIdIdentifier="sentry-dbid-a5977ba0-ef20-4a91-9604-c2ef52e9e745")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Yt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:We}=mn,Ve=({attachment:e})=>{const[y,g]=_.useState(!1),M=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(qt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:J,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),P=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?Pt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=_.useState(!1),[te,be]=_.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);_.useEffect(()=>{(P?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[P,Q,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&Y?.code?Y:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&Y?.code?Y:N,ie=()=>{pe()},$e=()=>{pe()},Z=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=_e(h,G,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Ae=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Ae,Me):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Ae,Me)}}},Te=()=>{Ce===!0&&H(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,H]=_.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{H(!1),ie()},onClickAway:()=>{H(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(T)??"",paymentType:ve,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ue,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(_n,{children:[t.jsx(Zn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Lt(o);return o!=null?t.jsx(Yn,{children:it.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[o.attachments&&o.attachments.length>0?t.jsx(Ve,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:A("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsxs(U,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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(He,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(Ve,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsxs(Vn,{"data-testid":v("review-detail-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{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})]})},o.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ke,{children:a.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ke,{children:a.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(V,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(V,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(q,{}),!x&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(V,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Z.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(Z.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(V,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(V,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ze,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?We.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ze,{children:[t.jsx(de,{children:We.transactionFee}),t.jsx(se,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ye(!1,C,h,G,s)}},primaryBtn:{label:_e(h,G,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?H(!0):Te()},style:{width:Ye(!0,C,h,G,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(Hn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(qn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ye=(e,y,g,M,S)=>g?128:y&&!e&&S==="small"?"auto":M?165:m.footerButtonWidth.value(S),pn=i(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{J as P,V as i,aR as m,o as r,aT as L,y as d,x as M,H as I,B as C,p as s,am as j,cE as W,T as R,aj as b,bj as D,u as n,eo as G,h as _,j0 as H,kd as J}from"./index-sotzB3Mx.js";import{n as t}from"./mui-CWqpJBOf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="4b40e475-f58a-41d9-a685-938ba4a788b7",e._sentryDebugIdIdentifier="sentry-dbid-4b40e475-f58a-41d9-a685-938ba4a788b7")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=P();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(O,{windowSize:a,children:[i.jsxs(q,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:F(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
1
+ import{J as P,V as i,aR as m,o as r,aT as L,y as d,x as M,H as I,B as C,p as s,am as j,cE as W,T as R,aj as b,bj as D,u as n,eo as G,h as _,j0 as H,kd as J}from"./index-BvSnP-a8.js";import{n as t}from"./mui-DdaOYkOE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="4b40e475-f58a-41d9-a685-938ba4a788b7",e._sentryDebugIdIdentifier="sentry-dbid-4b40e475-f58a-41d9-a685-938ba4a788b7")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=P();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(O,{windowSize:a,children:[i.jsxs(q,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:F(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{eT as h,eU as f,V as s,bV as g,o as d,aR as n,O as x,ao as y,aj as c}from"./index-sotzB3Mx.js";import{n as l}from"./mui-CWqpJBOf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e201b4f1-0173-4752-a00f-ac3ad0e319b3",e._sentryDebugIdIdentifier="sentry-dbid-e201b4f1-0173-4752-a00f-ac3ad0e319b3")}catch{}})();const{hyphen:a}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
1
+ import{eT as h,eU as f,V as s,bV as g,o as d,aR as n,O as x,ao as y,aj as c}from"./index-BvSnP-a8.js";import{n as l}from"./mui-DdaOYkOE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e201b4f1-0173-4752-a00f-ac3ad0e319b3",e._sentryDebugIdIdentifier="sentry-dbid-e201b4f1-0173-4752-a00f-ac3ad0e319b3")}catch{}})();const{hyphen:a}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aS as K,is as te,gL as me,eF as Je,it as Me,aa as _e,iu as Ve,cH as Pe,cI as Fe,V as a,ad as Ne,cr as qe,cs as Be,ct as Re,aT as Ue,iv as We,iw as ze,O as be,ab as pe,ix as Se,iy as $e,cL as Ge,J as Ke,iM as He,gQ as ue,u as R,p as De,y as ye,cM as Ze,iz as Qe,iA as Xe,iB as Ye,o as V}from"./index-sotzB3Mx.js";import{a as f}from"./sentry-2bqpslFP.js";import{n as W}from"./mui-CWqpJBOf.js";import{G9 as et,Ga as tt}from"./zeni-epic-state-DM-Ak8Gv.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-Cz46lcuv-DwCS-vmM.js";import"./liveblocks-DezulwOD.js";import"./core-D2KcXy_y.js";import"./recharts-H7gIkfSf.js";import"./lottie-D7_uSTtS.js";import"./analytics-DRVsD-is.js";import"./lexical-Dj2KAtCD.js";import"./utils-Bfvb8rvn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="29f08d6e-5168-4eda-ad9e-4d4391400534",e._sentryDebugIdIdentifier="sentry-dbid-29f08d6e-5168-4eda-ad9e-4d4391400534")}catch{}})();const U={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=W.div`
1
+ import{aS as K,is as te,gL as me,eF as Je,it as Me,aa as _e,iu as Ve,cH as Pe,cI as Fe,V as a,ad as Ne,cr as qe,cs as Be,ct as Re,aT as Ue,iv as We,iw as ze,O as be,ab as pe,ix as Se,iy as $e,cL as Ge,J as Ke,iM as He,gQ as ue,u as R,p as De,y as ye,cM as Ze,iz as Qe,iA as Xe,iB as Ye,o as V}from"./index-BvSnP-a8.js";import{a as f}from"./sentry-PIpBVFN8.js";import{n as W}from"./mui-DdaOYkOE.js";import{G9 as et,Ga as tt}from"./zeni-epic-state-pvbk7grM.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-Cz46lcuv-DRnYGfRr.js";import"./liveblocks-YkknHVIE.js";import"./core-BWDnr9Gg.js";import"./recharts-Draow00k.js";import"./lottie-BkRKia_G.js";import"./analytics-B9bfzou3.js";import"./lexical-DYHIykLA.js";import"./utils-4eLQ8r7Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="29f08d6e-5168-4eda-ad9e-4d4391400534",e._sentryDebugIdIdentifier="sentry-dbid-29f08d6e-5168-4eda-ad9e-4d4391400534")}catch{}})();const U={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=W.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aS as F,is as X,gL as Ie,eF as Je,it as we,aa as Le,iu as Me,cH as Ve,cI as Pe,V as a,ad as _e,cr as Fe,cs as $e,ct as Be,aT as Ne,iv as Ue,iw as ze,O as ye,ab as re,ix as pe,iy as We,cL as Re,J as qe,gQ as fe,u as Z,p as Ge,y as Ke,iz as He,iA as Ye,iB as Qe,o as w}from"./index-sotzB3Mx.js";import{a as y}from"./sentry-2bqpslFP.js";import{n as P}from"./mui-CWqpJBOf.js";import{G9 as Xe,Ga as Ze,bL as et}from"./zeni-epic-state-DM-Ak8Gv.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-Cz46lcuv-DwCS-vmM.js";import"./liveblocks-DezulwOD.js";import"./core-D2KcXy_y.js";import"./recharts-H7gIkfSf.js";import"./lottie-D7_uSTtS.js";import"./analytics-DRVsD-is.js";import"./lexical-Dj2KAtCD.js";import"./utils-Bfvb8rvn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="abde97a4-1031-4674-831f-7869e6c96889",e._sentryDebugIdIdentifier="sentry-dbid-abde97a4-1031-4674-831f-7869e6c96889")}catch{}})();const U={labelWidth:new Ke(160,160,160)},nt=P.div`
1
+ import{aS as F,is as X,gL as Ie,eF as Je,it as we,aa as Le,iu as Me,cH as Ve,cI as Pe,V as a,ad as _e,cr as Fe,cs as $e,ct as Be,aT as Ne,iv as Ue,iw as ze,O as ye,ab as re,ix as pe,iy as We,cL as Re,J as qe,gQ as fe,u as Z,p as Ge,y as Ke,iz as He,iA as Ye,iB as Qe,o as w}from"./index-BvSnP-a8.js";import{a as y}from"./sentry-PIpBVFN8.js";import{n as P}from"./mui-DdaOYkOE.js";import{G9 as Xe,Ga as Ze,bL as et}from"./zeni-epic-state-pvbk7grM.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-Cz46lcuv-DRnYGfRr.js";import"./liveblocks-YkknHVIE.js";import"./core-BWDnr9Gg.js";import"./recharts-Draow00k.js";import"./lottie-BkRKia_G.js";import"./analytics-B9bfzou3.js";import"./lexical-DYHIykLA.js";import"./utils-4eLQ8r7Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="abde97a4-1031-4674-831f-7869e6c96889",e._sentryDebugIdIdentifier="sentry-dbid-abde97a4-1031-4674-831f-7869e6c96889")}catch{}})();const U={labelWidth:new Ke(160,160,160)},nt=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{J as F,d as Z,V as t,iC as ie,iD as le,H as oe,iE as xe,dU as fe,fl as we,b as I,O as R,iF as ye,iB as be,o as i,y as b,p as j,a as $e,ab as re,dP as je,cr as Se,ct as ke,cL as Q,ex as ee,cQ as ve,iG as K,iH as De,b5 as Ce,iI as ze,cv as Me,iJ as Le,u as h,am as L,bb as Ee,cs as Oe,ap as pe,eG as Ie,b3 as ne,es as Fe,aT as Ae,iK as A,gk as Te,aP as Ve,iL as Je,aX as q,d1 as Be,bj as Pe}from"./index-sotzB3Mx.js";import{n as o,c as B}from"./mui-CWqpJBOf.js";import{a as C}from"./sentry-2bqpslFP.js";import{bh as G,Gb as Re}from"./zeni-epic-state-DM-Ak8Gv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="111a0d4f-7853-426a-a88e-e65c64dd7214",e._sentryDebugIdIdentifier="sentry-dbid-111a0d4f-7853-426a-a88e-e65c64dd7214")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:z},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=F(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(Ye,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:z.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Fe,{name:N(l,"dayOfMonth"),type:"number",placeholder:z.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:z.ofEveryMonth})]}),t.jsx(He,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:z.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ae,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:_e(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:z.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:z.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:z.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:z.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(_,{isSelected:r===e,onClick:()=>l(Re(r)),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const _e=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=o.div`
1
+ import{J as F,d as Z,V as t,iC as ie,iD as le,H as oe,iE as xe,dU as fe,fl as we,b as I,O as R,iF as ye,iB as be,o as i,y as b,p as j,a as $e,ab as re,dP as je,cr as Se,ct as ke,cL as Q,ex as ee,cQ as ve,iG as K,iH as De,b5 as Ce,iI as ze,cv as Me,iJ as Le,u as h,am as L,bb as Ee,cs as Oe,ap as pe,eG as Ie,b3 as ne,es as Fe,aT as Ae,iK as A,gk as Te,aP as Ve,iL as Je,aX as q,d1 as Be,bj as Pe}from"./index-BvSnP-a8.js";import{n as o,c as B}from"./mui-DdaOYkOE.js";import{a as C}from"./sentry-PIpBVFN8.js";import{bh as G,Gb as Re}from"./zeni-epic-state-pvbk7grM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="111a0d4f-7853-426a-a88e-e65c64dd7214",e._sentryDebugIdIdentifier="sentry-dbid-111a0d4f-7853-426a-a88e-e65c64dd7214")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:z},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=F(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(Ye,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:z.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Fe,{name:N(l,"dayOfMonth"),type:"number",placeholder:z.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:z.ofEveryMonth})]}),t.jsx(He,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:z.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ae,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:_e(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:z.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:z.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:z.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:z.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(_,{isSelected:r===e,onClick:()=>l(Re(r)),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const _e=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=o.div`
2
2
  position: relative;
3
3
  `,qe=o.div`
4
4
  display: flex;